/* The Zero Fuss site (P0.12): the app's colours, type and shapes
   (apps/mobile/src/theme/theme.ts, docs/design/zero-fuss-design/DESIGN.md), day and night. */

@font-face {
  font-family: Inter;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Inter_400Regular.ttf') format('truetype');
}
@font-face {
  font-family: Inter;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Inter_600SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: Inter;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Inter_700Bold.ttf') format('truetype');
}

:root {
  --bg: #faf0ef;
  --bg-alt: #f6ede9;
  --surface: #fffdfb;
  --text: #5a3a2e;
  /* The app's secondary #B39688 is too light for paragraphs on the web; this is its darker step. */
  --text-secondary: #8c6b5d;
  --divider: #f3eae6;
  --honey: #f7b733;
  --honey-deep: #e39a12;
  --honey-tint: #fff3d6;
  --green: #86bd9d;
  --lavender: #c9b3e6;
  --sky-tint: #eef3f6;
  --sky-icon: #3e6380;
  --shadow: 0 20px 40px -12px rgba(90, 58, 46, 0.22);
  --shadow-soft: 0 8px 24px -10px rgba(90, 58, 46, 0.2);
  --radius: 28px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1a21;
    --bg-alt: #2a2528;
    --surface: #2e272c;
    --text: #f3eae2;
    --text-secondary: #c9b8ae;
    --divider: #3a3236;
    --honey-tint: #3a3236;
    --sky-tint: #332b30;
    --sky-icon: #c9b8ae;
    --shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.55);
    --shadow-soft: 0 8px 24px -10px rgba(0, 0, 0, 0.5);
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    17px/1.6 Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration-color: var(--honey);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--honey-deep);
}
h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}
p {
  margin: 0;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Header ---- */
.site-header {
  padding: 20px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand img {
  width: 34px;
  height: 34px;
}
.site-header nav {
  display: flex;
  gap: 20px;
  font-weight: 600;
  font-size: 15px;
}
.site-header nav a {
  text-decoration: none;
  color: var(--text-secondary);
}
.site-header nav a:hover,
.site-header nav a[aria-current] {
  color: var(--text);
}

/* ---- Hero ---- */
.hero {
  padding: 32px 0 72px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--honey-tint);
  color: var(--honey-deep);
  font-weight: 600;
  font-size: 14px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 62px);
  margin: 20px 0;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 62%, rgba(247, 183, 51, 0.45) 62%);
}
.lead {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 34ch;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--honey);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}
.button:hover {
  color: #fff;
  background: var(--honey-deep);
}
.note {
  font-size: 14px;
  color: var(--text-secondary);
}

.scenes {
  position: relative;
  aspect-ratio: 1 / 1;
}
.scene {
  position: absolute;
  width: 72%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid var(--surface);
}
.scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scene-day {
  top: 0;
  left: 0;
  transform: rotate(-3deg);
}
.scene-night {
  right: 0;
  bottom: 0;
  transform: rotate(4deg);
}
.scene-label {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 253, 251, 0.92);
  color: #5a3a2e;
  font-weight: 600;
  font-size: 13px;
}
.scene-night .scene-label {
  top: auto;
  bottom: 14px;
  background: rgba(46, 39, 44, 0.9);
  color: #f3eae2;
}
.floating-star {
  position: absolute;
  width: 72px;
  filter: drop-shadow(0 8px 12px rgba(227, 154, 18, 0.35));
  animation: bob 4s ease-in-out infinite;
}
.floating-star.one {
  top: 62%;
  left: -2%;
}
.floating-star.two {
  top: -4%;
  right: 6%;
  width: 52px;
  animation-delay: -2s;
}
@keyframes bob {
  50% {
    transform: translateY(-10px) rotate(6deg);
  }
}

/* ---- Sections ---- */
section {
  padding: 72px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 40px);
  margin-bottom: 14px;
}
.section-head p {
  color: var(--text-secondary);
  font-size: 18px;
}

/* How a routine works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px 30px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.step img {
  width: 168px;
  height: 168px;
  margin: 0 auto 20px;
  border-radius: 50%;
}
.step h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.step p {
  color: var(--text-secondary);
  font-size: 16px;
}
.star-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
}
.star-row img {
  width: 40px;
}
.star-row img.current {
  width: 52px;
  margin-top: -6px;
}
.caption {
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 12px;
}

/* Feature rows */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature + .feature {
  margin-top: 88px;
}
.feature.flip .feature-art {
  order: 2;
}
.feature h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  margin: 14px 0;
}
.feature p {
  color: var(--text-secondary);
  font-size: 18px;
}
.tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--honey-deep);
}
.feature-art {
  position: relative;
  display: flex;
  justify-content: center;
}
.weather-card {
  position: relative;
  width: min(380px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.weather-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pill {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--sky-tint);
  color: var(--sky-icon);
  font-weight: 600;
  font-size: 16px;
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
}
.presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 120px));
  gap: 18px;
  justify-content: center;
}
.presets img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 5px solid var(--surface);
  box-shadow: var(--shadow-soft);
}
.presets img.selected {
  border-color: var(--green);
}
.stickers {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.sticker {
  width: 150px;
  padding: 14px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}
.sticker:nth-child(1) {
  transform: rotate(-4deg);
}
.sticker:nth-child(3) {
  transform: rotate(4deg);
}
.sticker img {
  width: 100%;
  border-radius: 18px;
  margin-bottom: 8px;
}

/* Promises */
.promises {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.promise {
  background: var(--surface);
  border-radius: 24px;
  padding: 26px 22px;
}
.promise .icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--honey-tint);
  color: var(--honey-deep);
  margin-bottom: 16px;
}
.promise h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.promise p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Night band */
.night-band {
  background: linear-gradient(180deg, #1a1620, #241f26 55%, #2a2528);
  color: #f3eae2;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.night-band h2 {
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 14px;
}
.night-band p {
  color: #c9b8ae;
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto;
}
.night-band .moon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  box-shadow: inset -16px -6px 0 0 #e9c46a;
  transform: rotate(-20deg);
}
.night-band .dot {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #f3eae2;
  opacity: 0.5;
}

/* ---- Text pages (privacy, support) ---- */
.page {
  padding: 24px 0 72px;
}
.page article {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 48px clamp(22px, 6vw, 56px);
  box-shadow: var(--shadow-soft);
}
.page h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin-bottom: 18px;
}
.page h2 {
  font-size: 24px;
  margin: 40px 0 12px;
  padding-top: 28px;
  border-top: 2px solid var(--divider);
}
.page h3 {
  font-size: 19px;
  margin: 28px 0 8px;
}
.page p,
.page li {
  color: var(--text);
}
.page p + p {
  margin-top: 14px;
}
.page h1 + p {
  color: var(--text-secondary);
  font-size: 15px;
}
.page ul {
  padding-left: 0;
  list-style: none;
  margin: 14px 0;
}
.page li {
  position: relative;
  padding-left: 30px;
  margin: 8px 0;
}
.page li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  background: url('img/star.webp') center / contain no-repeat;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 28px 0 8px;
  padding: 22px 24px;
  border-radius: 22px;
  background: var(--honey-tint);
}
.contact-card img {
  width: 56px;
  flex: none;
}
.contact-card a {
  font-weight: 600;
  font-size: 18px;
  overflow-wrap: break-word;
}

/* ---- Footer ---- */
.site-footer {
  padding: 40px 0 56px;
  color: var(--text-secondary);
  font-size: 15px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* ---- Small screens ---- */
@media (max-width: 860px) {
  .hero .wrap,
  .feature {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feature.flip .feature-art {
    order: 0;
  }
  .hero {
    padding-top: 8px;
  }
  .scenes {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
  }
  .steps {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .promises {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  body {
    font-size: 16px;
  }
  .site-header nav {
    gap: 14px;
  }
  .promises {
    grid-template-columns: 1fr;
  }
  .stickers {
    flex-wrap: nowrap;
    gap: 12px;
  }
  .sticker {
    width: 31%;
    padding: 8px;
    border-radius: 18px;
  }
  section {
    padding: 56px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-star {
    animation: none;
  }
}
