/* ============================================================
   Cloudi — meetcloudi.com
   Single source of truth for colors: the iOS app's palette.
   ============================================================ */

:root {
  /* Brand */
  --cloud-purple: #8F8BFF;
  --soft-lavender: #B8AEFF;
  --sky-blue: #A9D8FF;
  --cloud-white: #FFFFFF;
  --cream-glow: #FFF8F0;

  /* Accents */
  --sunrise: #FFD7B5;
  --sunset: #FFB8D2;
  --moon-glow: #D6D7FF;
  --cheeks: #FFB7CE;

  /* Ink */
  --ink: #1E2457;
  --ink-secondary: #54597F;
  --ink-light: #797EA6;

  /* Button gradient */
  --btn-top: #8F8BFF;
  --btn-bottom: #7A73FF;

  --radius-card: 28px;
  --shadow-soft: 0 18px 50px rgba(30, 36, 87, 0.10);
  --font-rounded: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-rounded);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #FBFAFF;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--cloud-purple); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Header ---------------- */

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 20px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 4px 14px rgba(30, 36, 87, 0.15);
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: var(--ink-secondary);
  font-weight: 700;
  font-size: 15px;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }

.nav-cta {
  background: linear-gradient(180deg, var(--btn-top), var(--btn-bottom));
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(122, 115, 255, 0.35);
}
.nav-cta:hover { filter: brightness(1.05); }

.menu-btn {
  display: none;
  margin-left: 4px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .menu-btn { display: flex; }
  .site-nav a:not(.nav-cta) { display: none; }
  .site-nav.open {
    position: absolute;
    top: 74px;
    left: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-radius: 22px;
    padding: 16px;
    box-shadow: var(--shadow-soft);
    z-index: 20;
  }
  .site-nav.open a { display: block !important; padding: 12px 14px; font-size: 17px; }
  .site-nav.open .nav-cta {
    margin-top: 8px;
    text-align: center;
    color: #fff !important;
  }
  /* The dropdown panel is always light — keep its links dark even at night. */
  body[data-sky="night"] .site-header .site-nav.open a:not(.nav-cta) { color: var(--ink); }
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 180px;
  text-align: center;
  background: var(--sky, linear-gradient(180deg, #C4C5F2 0%, #D2CBF8 52%, #EFE0F0 100%));
}

/* Soft, cozy cloud bank at the bottom of the hero. Big overlapping puffs with
   flat white cores, a rising mist, and a heavy blur so the dark night sky melts
   into cloud with no hard line — then settles into the next section's colour. */
.hero::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -1px;
  height: 360px;
  z-index: 1;
  pointer-events: none;
  background:
    /* Faint, wispy clouds — low opacity so the bottom of the header is a soft
       cloudy haze, never a bright white band. Still taller on the L/R edges. */
    radial-gradient(420px 360px at -7% 420px, rgba(255,255,255,0.48) 0 38%, rgba(255,255,255,0) 72%),
    radial-gradient(420px 360px at 107% 420px, rgba(255,255,255,0.48) 0 38%, rgba(255,255,255,0) 72%),
    radial-gradient(300px 230px at 19% 444px, rgba(255,255,255,0.38) 0 42%, rgba(255,255,255,0) 75%),
    radial-gradient(300px 230px at 81% 444px, rgba(255,255,255,0.38) 0 42%, rgba(255,255,255,0) 75%),
    radial-gradient(240px 180px at 40% 456px, rgba(255,255,255,0.32) 0 42%, rgba(255,255,255,0) 75%),
    radial-gradient(250px 188px at 60% 458px, rgba(255,255,255,0.32) 0 42%, rgba(255,255,255,0) 75%),
    /* very gentle fade into the section colour — no bright white peak */
    linear-gradient(180deg,
      rgba(255,255,255,0) 42%,
      rgba(255,255,255,0.06) 66%,
      rgba(255,255,255,0.15) 86%,
      var(--section-top, #F6F2FF) 100%);
  filter: blur(11px);
}

/* A dreamy field of soft, faded white clouds filling the whole header. Sits
   behind the content (z-index 0) and is clipped to the hero, so it only ever
   shows in the header. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    /* top band */
    radial-gradient(300px 120px at 15% 8%, rgba(255,255,255,0.6), transparent 72%),
    radial-gradient(360px 140px at 71% 6%, rgba(255,255,255,0.55), transparent 72%),
    radial-gradient(240px 100px at 45% 15%, rgba(255,255,255,0.42), transparent 72%),
    /* left side, top to bottom */
    radial-gradient(270px 115px at 4% 30%, rgba(255,255,255,0.6), transparent 72%),
    radial-gradient(220px 92px at 16% 48%, rgba(255,255,255,0.42), transparent 72%),
    radial-gradient(280px 118px at 6% 68%, rgba(255,255,255,0.6), transparent 72%),
    /* right side, top to bottom */
    radial-gradient(300px 122px at 96% 28%, rgba(255,255,255,0.6), transparent 72%),
    radial-gradient(230px 96px at 85% 46%, rgba(255,255,255,0.42), transparent 72%),
    radial-gradient(300px 122px at 94% 70%, rgba(255,255,255,0.6), transparent 72%),
    /* a couple of faint ones drifting through the middle */
    radial-gradient(260px 105px at 38% 40%, rgba(255,255,255,0.26), transparent 72%),
    radial-gradient(260px 105px at 63% 56%, rgba(255,255,255,0.26), transparent 72%);
  filter: blur(16px);
}

/* ---- Time-of-day sky (matches the app's own gradients) ---- */
body[data-sky="morning"] .hero { --sky: linear-gradient(180deg, #E4DCFF 0%, #EAD9F2 52%, #FFDCC0 100%); }
body[data-sky="day"]     .hero { --sky: linear-gradient(180deg, #C4C5F2 0%, #D2CBF8 52%, #EFE0F0 100%); }
body[data-sky="evening"] .hero { --sky: linear-gradient(180deg, #CBC4FF 0%, #B7A8FF 50%, #FFC2D6 100%); }
body[data-sky="night"]   .hero { --sky: linear-gradient(180deg, #141B4D 0%, #262366 52%, #3A2E73 100%); }

/* The section right below the hero picks up a soft tint of the same time of day,
   so the top of the page feels like one continuous sky. --section-top is also
   the colour the hero's cloud bank fades into, keeping the seam invisible. */
body                     { --section-top: #F6F2FF; --section-bottom: #EFEAFF; }
body[data-sky="morning"] { --section-top: #FBEBDD; --section-bottom: #F3E9F3; }
body[data-sky="day"]     { --section-top: #EFEBFF; --section-bottom: #E9E3FB; }
body[data-sky="evening"] { --section-top: #FBE6EF; --section-bottom: #EDE2F6; }
body[data-sky="night"]   { --section-top: #E2E0F2; --section-bottom: #E7E3F6; }

/* At night the sky is dark, so the hero text and header flip to light. */
body[data-sky="night"] .hero h1 { color: #fff; }
body[data-sky="night"] .hero .lede { color: rgba(255, 255, 255, 0.82); }
body[data-sky="night"] .hero .cta-note { color: rgba(255, 255, 255, 0.62); }
body[data-sky="night"] .site-header .brand { color: #fff; }
body[data-sky="night"] .site-header .site-nav a:not(.nav-cta) { color: rgba(255, 255, 255, 0.8); }
body[data-sky="night"] .menu-btn { background: rgba(255, 255, 255, 0.15); color: #fff; }

.hero .wrap { position: relative; z-index: 2; }

.mascot-stage {
  position: relative;
  display: inline-block;
  margin-bottom: 8px;
}

/* soft white glow hugging the mascot. Many gentle stops with a long tail to
   zero, plus a blur, so there is no visible circle edge on the dark night sky. */
.mascot-stage::before {
  content: "";
  position: absolute;
  inset: -60%;
  z-index: -1;
  background: radial-gradient(closest-side at 50% 52%,
    rgba(255,255,255,0.6) 0%,
    rgba(255,255,255,0.34) 30%,
    rgba(255,255,255,0.15) 50%,
    rgba(255,255,255,0.05) 68%,
    rgba(255,255,255,0) 85%);
  filter: blur(14px);
  animation: glow-breathe 8s ease-in-out infinite;
}

/* wide dreamy halo — lavender melting into sunset pink */
.mascot-stage::after {
  content: "";
  position: absolute;
  inset: -120%;
  z-index: -1;
  background: radial-gradient(closest-side at 50% 50%,
    rgba(214,215,255,0.42) 0%,
    rgba(224,200,255,0.22) 34%,
    rgba(255,184,210,0.1) 56%,
    rgba(214,215,255,0) 80%);
  filter: blur(22px);
  animation: glow-breathe 8s ease-in-out infinite;
  animation-delay: -1.2s;
}

.hero-mascot {
  position: relative;
  z-index: 1;
  width: 240px;
  animation: float 6s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { transform: scale(0.94); opacity: 0.8; }
  50%      { transform: scale(1.08); opacity: 1; }
}

.hero h1 {
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.12;
  margin: 10px 0 18px;
}

.hero .lede {
  max-width: 560px;
  margin: 0 auto 34px;
  font-size: 20px;
  color: var(--ink-secondary);
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, var(--btn-top), var(--btn-bottom));
  color: #fff;
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: 18px;
  padding: 16px 38px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(122, 115, 255, 0.42);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(122, 115, 255, 0.5);
}

.hero .cta-note {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-light);
}

/* Twinkling sparkles (decorative) */
.sparkle {
  position: absolute;
  width: 18px;
  height: 18px;
  background: radial-gradient(circle, #fff 30%, rgba(255, 255, 255, 0.9) 60%, rgba(255, 255, 255, 0) 100%);
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  z-index: 1;
  animation: twinkle 5s ease-in-out infinite;
}
.sparkle.small { width: 12px; height: 12px; animation-delay: 1.6s; }
.sparkle.tiny  { width: 8px;  height: 8px;  animation-delay: 3.1s; }

.dot-star {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  z-index: 1;
  animation: twinkle 6s ease-in-out infinite;
}
.dot-star:nth-of-type(even) { animation-delay: 2.4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ---------------- Sections ---------------- */

section { padding: 90px 0; }

.section-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
}

.section-sub {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 56px;
  font-size: 18px;
  color: var(--ink-secondary);
}

/* ---------------- How it works ---------------- */

#how {
  background: linear-gradient(180deg, #F1EAFF 0%, #FCE8F0 100%);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 8px;
}

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  text-align: center;
  padding: 12px;
}

.step-bubble {
  width: 150px;
  height: 150px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

.step-bubble img { width: 96px; }

.bubble-in  { background: linear-gradient(180deg, #EAF3FF, var(--sky-blue)); }
.bubble-out { background: linear-gradient(180deg, #FFF1F6, var(--sunset)); }
.bubble-calm{ background: linear-gradient(180deg, #F3F3FF, var(--moon-glow)); }

.bubble-in img { animation: breathe 8s ease-in-out infinite; }

@keyframes breathe {
  0%, 100% { transform: scale(0.92); }
  45%, 60% { transform: scale(1.08); }
}

.step h3 { font-size: 21px; font-weight: 800; margin: 0 0 6px; }
.step p { margin: 0 auto; max-width: 260px; color: var(--ink-secondary); }

/* ---------------- Features ---------------- */

.features-section { background: linear-gradient(180deg, #FCE8F0 0%, #FCEEDF 100%); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-card);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
}

.feature-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 14px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 8px;
}

.feature-card p {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink-secondary);
}

/* ---------------- Privacy band ---------------- */

.privacy-band {
  background: linear-gradient(180deg, #FCEFE0 0%, #F3EAFB 100%);
  text-align: center;
}

.privacy-band .inner { max-width: 620px; margin: 0 auto; }

.privacy-band h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  margin: 0 0 14px;
}

.privacy-band p {
  font-size: 18px;
  color: var(--ink-secondary);
  margin: 0 0 26px;
}

.btn-secondary {
  display: inline-block;
  font-weight: 800;
  font-size: 16px;
  color: var(--cloud-purple);
  background: #fff;
  padding: 13px 30px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.btn-secondary:hover { text-decoration: none; transform: translateY(-2px); }

/* ---------------- Try one breath ---------------- */

.try-breath {
  background: linear-gradient(180deg, var(--section-bottom, #EFEAFF) 0%, #E9F1FC 100%);
  padding: 64px 0;
}

/* Two columns: copy + button on the left, breathing cloud on the right. */
.try-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.try-copy { text-align: left; }
.try-copy .section-title { text-align: left; margin-bottom: 10px; }
.try-copy .section-sub { text-align: left; margin: 0 0 28px; max-width: 420px; }
.try-copy .breath-actions { justify-content: flex-start; }

.try-visual { display: flex; flex-direction: column; align-items: center; }

@media (max-width: 760px) {
  .try-grid { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .try-copy { text-align: center; }
  .try-copy .section-title,
  .try-copy .section-sub { text-align: center; }
  .try-copy .section-sub { margin-left: auto; margin-right: auto; }
  .try-copy .breath-actions { justify-content: center; }
  .try-visual { order: -1; }
}

.breath-stage {
  position: relative;
  width: 210px;
  height: 210px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.breath-ring {
  position: absolute;
  inset: -45%;
  background: radial-gradient(circle, rgba(169, 216, 255, 0.5) 0%, rgba(184, 174, 255, 0.28) 42%, rgba(184, 174, 255, 0) 66%);
  transform: scale(1);
  transition: transform 4s ease-in-out;
}

.breath-cloud {
  position: relative;
  width: 150px;
  transform: scale(1);
  transition: transform 4s ease-in-out;
}

.breath-label {
  min-height: 1.7em;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-secondary);
  margin: 0 0 22px;
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.breath-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.breath-actions .btn-secondary {
  font-family: var(--font-rounded);
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

/* ---------------- Testimonials ---------------- */

.testimonials { background: linear-gradient(180deg, #FCEEDF 0%, #EAF2FB 100%); }

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }

.quote-card {
  background: #fff;
  border: 1px solid rgba(184, 174, 255, 0.25);
  border-radius: var(--radius-card);
  padding: 30px 28px;
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.quote-card .mark {
  display: block;
  font-size: 44px;
  line-height: 1;
  font-weight: 800;
  color: var(--soft-lavender);
  margin-bottom: 10px;
}

.quote-card p {
  margin: 0 0 16px;
  font-size: 16.5px;
  color: var(--ink-secondary);
}

.quote-card .who {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

/* ---------------- Guides ---------------- */

.guides-section { background: linear-gradient(180deg, #EAF2FB 0%, #F0EAFF 100%); }

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) { .guide-grid { grid-template-columns: 1fr; } }

.guide-card {
  display: block;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-card);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  transition: transform 0.2s ease;
}

.guide-card:hover { text-decoration: none; transform: translateY(-3px); }

.guide-card h3 { font-size: 19px; font-weight: 800; margin: 0 0 8px; }

.guide-card p { margin: 0 0 14px; font-size: 15.5px; color: var(--ink-secondary); }

.guide-card .go {
  font-weight: 800;
  font-size: 15px;
  color: var(--cloud-purple);
}

/* ---------------- FAQ ---------------- */

.faq-section { background: linear-gradient(180deg, #FBE7EF 0%, #FCEFE0 100%); }

.faq-list { max-width: 720px; margin: 0 auto; }

.faq-list details {
  background: #fff;
  border: 1px solid rgba(184, 174, 255, 0.25);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(30, 36, 87, 0.06);
  padding: 18px 24px;
  margin-bottom: 14px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 17px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 700;
  color: var(--cloud-purple);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after { transform: rotate(45deg); }

.faq-list details p {
  margin: 12px 0 4px;
  color: var(--ink-secondary);
  font-size: 16px;
}

/* ---------------- Email sign-up ---------------- */

.notify {
  background: linear-gradient(180deg, #FCEFE0 0%, #E7E0F5 100%);
  text-align: center;
}

.notify .inner { max-width: 560px; margin: 0 auto; }

.notify h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  margin: 0 0 12px;
}

.notify p.lede-note {
  font-size: 18px;
  color: var(--ink-secondary);
  margin: 0 0 26px;
}

.notify-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.notify-input {
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(143, 139, 255, 0.35);
  border-radius: 999px;
  padding: 14px 22px;
  width: min(320px, 100%);
  outline: none;
}

.notify-input:focus {
  border-color: var(--cloud-purple);
  box-shadow: 0 0 0 4px rgba(143, 139, 255, 0.18);
}

.form-note {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-light);
}

/* ---------------- Guide article pages ---------------- */

.article { max-width: 680px; margin: 0 auto; }

.article h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 36px 0 10px;
  color: var(--ink);
}

.article p { color: var(--ink-secondary); margin: 0 0 12px; }

.article ol, .article ul { color: var(--ink-secondary); padding-left: 24px; margin: 0 0 12px; }

.article li { margin-bottom: 10px; }

.article li strong { color: var(--ink); }

.steps-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 26px 30px;
  margin: 18px 0;
}

.article-cta {
  background: linear-gradient(180deg, #F6F2FF, #EFEAFF);
  border-radius: var(--radius-card);
  text-align: center;
  padding: 36px 30px;
  margin-top: 48px;
}

.article-cta img { width: 90px; margin-bottom: 8px; }

.article-cta h3 { font-size: 22px; font-weight: 800; margin: 0 0 8px; }

.article-cta p { margin: 0 0 22px; }

/* ---------------- Intent chooser (asymmetric split) ---------------- */

.intent { padding: 80px 0; background: linear-gradient(180deg, #E9F1FC 0%, #F1EAFF 100%); }

.intent-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.intent-copy .section-title,
.intent-copy .section-sub { text-align: left; }
.intent-copy .section-title { margin-bottom: 10px; }
.intent-copy .section-sub { margin: 0; max-width: 380px; }

.intent-options { display: flex; flex-direction: column; gap: 14px; }

.intent-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 20px;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
}
.intent-row:hover { text-decoration: none; transform: translateX(4px); }

.intent-row .ir-emoji { font-size: 28px; flex: 0 0 auto; }
.intent-row .ir-label { font-size: 18px; font-weight: 800; flex: 1; }
.intent-row .ir-arrow { font-size: 18px; color: var(--cloud-purple); opacity: 0.7; }

.intent-calm  { background: linear-gradient(120deg, #EAF3FF, #DCEBFF); }
.intent-focus { background: linear-gradient(120deg, #F3F1FF, #E6E1FF); }
.intent-sleep { background: linear-gradient(120deg, #FCEAF2, #F6D9E8); }

@media (max-width: 760px) {
  .intent-split { grid-template-columns: 1fr; gap: 28px; }
  /* Stacked: put the heading + copy ABOVE the option cards. */
  .intent-copy { order: -1; text-align: center; }
  .intent-copy .section-title,
  .intent-copy .section-sub { text-align: center; }
  .intent-copy .section-sub { margin: 0 auto; }
}

/* ---------------- App preview (#11) ---------------- */

.app-preview { background: linear-gradient(180deg, var(--section-top, #F6F2FF) 0%, var(--section-bottom, #EFEAFF) 100%); }

/* Day / Night toggle */
.app-toggle {
  display: flex;
  gap: 4px;
  width: fit-content;
  margin: 0 auto 36px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(143, 139, 255, 0.14);
}
.tog-btn {
  border: none;
  background: transparent;
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: 15px;
  color: var(--ink-secondary);
  padding: 9px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.tog-btn.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(30, 36, 87, 0.12);
}

.app-shot { transition: opacity 0.25s ease; }

.phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

/* iPhone frame holding a real screenshot */
.phone {
  width: 250px;
  padding: 8px;
  border-radius: 42px;
  background: linear-gradient(160deg, #2b2f52, #14173a);
  box-shadow: 0 30px 70px rgba(30, 36, 87, 0.28), inset 0 0 0 1.5px rgba(255,255,255,0.12);
  flex: 0 0 auto;
}

.phone-screen {
  border-radius: 34px;
  overflow: hidden;
  line-height: 0;
}

.phone-screen img { width: 100%; height: auto; display: block; }

/* Apple Watch frame holding a real screenshot */
.watch {
  flex: 0 0 auto;
  width: 138px;
  align-self: center;
}
.watch-body {
  background: linear-gradient(160deg, #2b2f52, #14173a);
  border-radius: 36px;
  padding: 8px;
  box-shadow: 0 22px 44px rgba(30,36,87,0.3), inset 0 0 0 1.5px rgba(255,255,255,0.12);
}
.watch-screen {
  border-radius: 28px;
  overflow: hidden;
  line-height: 0;
}
.watch-screen img { width: 100%; height: auto; display: block; }
.watch-band {
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-secondary);
  margin-top: 12px;
}

.preview-note {
  text-align: center;
  max-width: 560px;
  margin: 40px auto 0;
  font-size: 15px;
  color: var(--ink-secondary);
}

.preview-cta { text-align: center; margin-top: 26px; }

/* ---------------- Mid-page download band (#15) ---------------- */

.download-band {
  background: linear-gradient(180deg, #F0EAFF 0%, #FBE7EF 100%);
  text-align: center;
}
.download-band .inner { max-width: 560px; margin: 0 auto; }
.download-band img { width: 84px; margin-bottom: 6px; }
.download-band h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; margin: 0 0 10px; }
.download-band p { font-size: 18px; color: var(--ink-secondary); margin: 0 0 24px; }

/* ---------------- Footer ---------------- */

.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #E7E0F5 0%, #2A2F63 16%, #1E2457 100%);
  color: var(--moon-glow);
  text-align: center;
  padding: 80px 0 50px;
}

.site-footer img.footer-mascot {
  width: 110px;
  margin-bottom: 14px;
  animation: float 7s ease-in-out infinite;
}

.site-footer .goodnight {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 26px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 26px;
  font-weight: 700;
  font-size: 15px;
}

.footer-links a { color: var(--moon-glow); }
.footer-links a:hover { color: #fff; }

.site-footer .fineprint {
  font-size: 13.5px;
  color: #8E93C4;
  margin: 0;
}

/* Stars */
.star {
  position: absolute;
  width: 3px; height: 3px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.7;
  animation: twinkle 4s ease-in-out infinite;
}
.star.s2 { animation-delay: 1.3s; }
.star.s3 { animation-delay: 2.6s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 0.9; }
}

/* ---------------- Inner pages (privacy) ---------------- */

.page-hero {
  background: linear-gradient(180deg, #BFD3FF 0%, #CFC6FF 100%);
  padding: 140px 0 60px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}

.page-hero .lede {
  font-size: 19px;
  color: var(--ink-secondary);
  margin: 0;
}

.page-body { padding: 60px 0 90px; }

.page-body .inner { max-width: 660px; margin: 0 auto; }

.page-body h2 {
  font-size: 21px;
  font-weight: 800;
  margin: 34px 0 8px;
}

.page-body p { margin: 0 0 8px; color: var(--ink-secondary); }

.page-body .date {
  margin-top: 42px;
  font-size: 14px;
  color: var(--ink-light);
}

/* ---------------- Reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mascot,
  .mascot-stage::before,
  .mascot-stage::after,
  .sparkle,
  .dot-star,
  .breath-ring,
  .breath-cloud,
  .guide-card,
  .bubble-in img,
  .site-footer img.footer-mascot,
  .star,
  .btn-primary,
  .btn-secondary {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------------- Tighter vertical rhythm on phones ---------------- */
/* Desktop spacing is generous on purpose; on a narrow screen it reads as big
   empty gaps, so pull the vertical spacing in. Phone-only — desktop unchanged.
   (Only affects spacing; the section colour blends are matched by colour, not
   height, so the seamless fades are unaffected.) */
@media (max-width: 640px) {
  section { padding: 52px 0; }
  .hero { padding: 116px 0 96px; }
  .section-sub { margin-bottom: 30px; }
  .intent { padding: 52px 0; }
  .try-breath { padding: 44px 0; }
  .app-toggle { margin-bottom: 26px; }
  .preview-note { margin-top: 28px; }
  .site-footer { padding: 56px 0 40px; }
}
