/* ============================================================
   Lemuna waitlist site (layer 1)
   Every color and radius below is pulled from the app's design
   system: constants/colors.ts, constants/design.ts
   (see Brand Assets/lemuna-design-document 0717.md).
   ============================================================ */

:root {
  /* palette (colors.ts) */
  --bg: #FBF7F0;             /* offWhite */
  --card: #FFFFFF;
  --card-alt: #F5F0E8;       /* lightSurface */
  --surface: #EFE7D8;        /* lightTrack */
  --border: #ECE2D2;         /* lightBorder */
  --ink: #111111;            /* textPrimaryLight */
  --ink-2: #5F5A54;          /* textSecondaryLight */
  --ink-3: #9A948E;          /* textTertiaryLight */
  --dark-bg: #100D0A;
  --dark-card: #241E17;
  --dark-surface: #2A2318;
  --dark-border: #352D24;
  --dark-text: #F5F3EF;
  --dark-text-2: #A7A19A;
  --champagne: #C6A46A;      /* light tint */
  --champagne-dark: #D4B277; /* dark tint / fixed gold */
  --champagne-soft: #E7D7BA;
  --champagne-mid: #B89455;
  --on-champagne: #141414;   /* ON_CHAMPAGNE */
  --sage: #7BA88A;
  --sky: #9DB7C9;
  --rose: #D98C8C;
  --success: #3D7A4A;
  --danger: #C0392B;

  /* geometry (design.ts) */
  --r-control: 10px;
  --r-button: 14px;
  --r-card: 18px;
  --r-sheet: 24px;
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;

  /* SHADOW_CARD */
  --shadow-card: 0 2px 8px rgba(198, 164, 106, 0.18);
  --shadow-card-lift: 0 10px 32px rgba(198, 164, 106, 0.22);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- reveal-on-scroll ---------- */
[data-demo], .hero-copy, .hero-visual, .tuesdays-line, .tuesdays-body {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.in-view { opacity: 1 !important; transform: translateY(0) !important; }

@media (prefers-reduced-motion: reduce) {
  [data-demo], .hero-copy, .hero-visual, .tuesdays-line, .tuesdays-body {
    opacity: 1; transform: none; transition: none;
  }
  * { animation: none !important; }
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1040px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-wordmark { height: 20px; width: auto; }
.nav-cta {
  font-size: 14px; font-weight: 600; letter-spacing: -0.1px;
  background: var(--champagne-dark); color: var(--on-champagne);
  padding: 9px 18px; border-radius: var(--r-button);
  transition: transform 0.15s var(--ease), opacity 0.15s;
}
.nav-cta:hover { transform: scale(0.98); opacity: 0.9; }

/* ---------- hero ---------- */
.hero { overflow: hidden; }
.hero-inner {
  max-width: 1040px; margin: 0 auto; padding: 72px 24px 88px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.hero-headline {
  font-size: clamp(44px, 6vw, 68px);
  font-weight: 600; letter-spacing: -2px; line-height: 1.04;
  margin-bottom: 22px;
}
.hero-line { display: block; }

/* cycling word in the hero. the period is part of the typed string, so it
   is always flush against the word no matter how short the word is. */
.cycle-word {
  display: inline-flex; align-items: baseline; justify-content: center;
  white-space: nowrap;
}
.cycle-text { color: var(--champagne-mid); }
.cycle-text::after {
  content: ""; display: inline-block;
  width: 3px; height: 0.78em; margin-left: 4px;
  background: var(--champagne); vertical-align: -0.06em;
  animation: caretBlink 0.9s steps(1) infinite;
}
.cycle-word.cycle-done .cycle-text::after { display: none; }
.hero-sub {
  font-size: 18px; line-height: 1.6; color: var(--ink-2);
  max-width: 460px; margin-bottom: 28px;
}
.hero-note { font-size: 13px; color: var(--ink-3); margin-top: 14px; line-height: 1.6; }

/* ---------- CTA component ---------- */
.cta-form { display: flex; gap: 10px; max-width: 460px; }
.cta-input {
  flex: 1; height: 54px; border-radius: var(--r-button);
  border: 1px solid var(--border); background: var(--card);
  padding: 0 16px; font-size: 15px; font-family: var(--font); color: var(--ink);
  outline: none; transition: border-color 0.2s;
}
.cta-input::placeholder { color: var(--ink-3); }
.cta-input:focus { border-color: var(--champagne); }
.cta-input.cta-input-error { border-color: #E05252; }
.cta-button {
  height: 54px; padding: 0 24px; border: none; cursor: pointer;
  border-radius: var(--r-button); background: var(--champagne-dark);
  color: var(--on-champagne); font-family: var(--font);
  font-size: 16px; font-weight: 600; letter-spacing: -0.1px;
  transition: transform 0.15s var(--ease), opacity 0.15s;
  white-space: nowrap;
}
.cta-button:hover { transform: scale(0.98); opacity: 0.9; }
.cta-button:disabled { opacity: 0.45; cursor: default; }
.cta-error { font-size: 13px; color: #E05252; margin-top: 8px; }

/* store badges (layer 2, rendered by the same CTA component) */
.cta-badges { display: flex; gap: 12px; align-items: center; }
.cta-badges img { height: 52px; width: auto; }

/* confirmation moment */
.cta-confirm {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: 28px;
  box-shadow: var(--shadow-card);
  max-width: 460px;
  animation: confirmIn 0.7s var(--ease);
}
@keyframes confirmIn {
  0% { opacity: 0; transform: translateY(14px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.cta-confirm { text-align: center; }
/* in the centered hero and the closing CTA, the card centers with everything else */
.hero-center .cta-confirm, .section-cta .cta-confirm { margin-left: auto; margin-right: auto; }
.cta-confirm-mark {
  width: 40px; height: 40px; margin: 0 auto 14px;
  animation: markIn 0.9s var(--ease) 0.15s backwards;
}
@keyframes markIn {
  0% { opacity: 0; transform: scale(0.6) rotate(-8deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
.cta-confirm-title {
  font-size: 26px; font-weight: 600; letter-spacing: -0.5px; margin-bottom: 8px;
}
.cta-confirm-body { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin-bottom: 18px; }
.cta-confirm-share {
  border-top: 1px solid var(--border); padding-top: 16px;
}
.cta-confirm-share p { font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.cta-share-row { display: flex; gap: 10px; justify-content: center; }
.cta-share-btn {
  flex: none; cursor: pointer; font-family: var(--font);
  font-size: 13px; font-weight: 500; color: var(--ink);
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--r-control); padding: 9px 16px;
  transition: border-color 0.2s, background 0.2s;
}
.cta-share-btn:hover { border-color: var(--champagne); background: var(--card-alt); }

/* ---------- phone frame ---------- */
.hero-visual { display: flex; justify-content: center; }
.phone {
  width: 300px; border-radius: 48px; background: var(--dark-bg);
  padding: 10px; box-shadow: 0 24px 60px rgba(16, 13, 10, 0.28);
}
.phone-screen {
  position: relative;
  background: var(--bg); border-radius: 40px; overflow: hidden;
  padding: 52px 16px 30px; min-height: 620px;
}
/* dynamic island */
.phone-screen::before {
  content: ""; position: absolute; z-index: 40;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 24px; border-radius: 13px;
  background: var(--dark-bg);
}
/* home indicator */
.phone-screen::after {
  content: ""; position: absolute; z-index: 40;
  bottom: 7px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 4px; border-radius: 2px;
  background: rgba(17, 17, 17, 0.20);
}

/* in-screen tab bar (decorative) */
.app-tabbar {
  position: absolute; z-index: 30; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: space-around;
  padding: 9px 10px 16px;
  border-top: 1px solid var(--border);
  background: rgba(251, 247, 240, 0.94);
}
.app-tabbar .tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 9px; font-weight: 500; color: var(--ink-3);
}
.app-tabbar .tab svg { width: 17px; height: 17px; }
.app-tabbar .tab.active { color: var(--champagne-mid); }

/* out-of-focus filler content (suggests more app below the fold) */
.app-filler {
  filter: blur(2.5px); opacity: 0.55;
  pointer-events: none; user-select: none;
  margin-top: 20px;
}
.filler-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 14px; margin-top: 8px;
}
.filler-title { font-size: 14px; font-weight: 600; letter-spacing: -0.2px; margin: 6px 0 4px; }
.filler-card p { font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.filler-input {
  display: flex; align-items: center; gap: 10px; margin-top: 18px;
  filter: none; opacity: 0.75;
}
.filler-input .field {
  flex: 1; height: 38px; border-radius: 19px;
  background: var(--card-alt); border: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 14px;
  font-size: 13px; color: var(--ink-3);
}
.filler-input .send {
  width: 32px; height: 32px; border-radius: 16px; flex: none;
  background: var(--champagne-dark);
  display: flex; align-items: center; justify-content: center;
  color: var(--on-champagne);
}
.filler-input .send svg { width: 16px; height: 16px; }
.app-header { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.app-greeting { font-size: 12px; color: var(--ink-2); }
.app-date { font-size: 22px; font-weight: 600; letter-spacing: -0.5px; }
.app-label {
  font-size: 10px; font-weight: 500; letter-spacing: 1.2px;
  color: var(--ink-2); margin-bottom: 10px;
}
.app-chip-row { display: flex; gap: 8px; margin-top: 14px; }
.app-chip {
  font-size: 12px; font-weight: 500; color: var(--champagne-mid);
  background: rgba(198, 164, 106, 0.10); border: 1px solid rgba(198, 164, 106, 0.35);
  padding: 5px 10px; border-radius: 20px;
}
/* the quiet one: no explanation anywhere on the page, on purpose */
.app-chip-quiet {
  color: var(--ink-3); background: transparent; border-color: var(--border);
}
.app-profile-row {
  display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px;
  font-size: 16px;
}
.app-profile-row strong { font-weight: 600; letter-spacing: -0.3px; }
.app-profile-row span { font-size: 13px; color: var(--ink-2); }

/* ---------- focus card (faithful recreation) ---------- */
.focus-card {
  display: flex; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 16px; gap: 12px; box-shadow: var(--shadow-card);
}
.focus-accent {
  width: 3px; border-radius: 2px; background: var(--champagne);
  flex: none; align-self: stretch;
}
.focus-body { flex: 1; min-width: 0; }
.focus-overline {
  font-size: 10px; letter-spacing: 0.8px; color: var(--ink-3); margin-bottom: 6px;
}
.focus-phrase {
  font-size: 17px; font-weight: 600; letter-spacing: -0.3px;
  line-height: 1.4; min-height: 48px;
}
.focus-phrase .type-caret {
  display: inline-block; width: 2px; height: 1em; background: var(--champagne);
  vertical-align: -0.15em; animation: caretBlink 0.9s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }
.focus-divider { height: 1px; background: var(--border); margin: 14px 0; }
.effort-title {
  font-size: 9px; font-weight: 600; letter-spacing: 0.8px;
  color: var(--ink-3); margin-bottom: 8px;
}
.effort-bar {
  display: flex; height: 8px; border-radius: 5px; overflow: hidden;
  background: var(--surface); gap: 2px;
}
.effort-seg {
  width: var(--w); border-radius: 3px;
  transform-origin: left; transition: width 1.1s var(--ease) var(--seg-delay, 0.3s);
}
.seg-reassurance { background: var(--rose); }
.seg-warmth { background: var(--champagne); }
.seg-practical { background: var(--sage); }
.seg-space { background: var(--sky); }
.seg-repair { background: var(--champagne-mid); }
.effort-legend { margin-top: 8px; font-size: 11px; color: var(--ink-2); }
.effort-legend-full {
  margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px 12px;
  font-size: 10px; color: var(--ink-2);
}
.effort-legend-full span { display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 6px; height: 6px; border-radius: 3px; display: inline-block; }
.dot-reassurance { background: var(--rose); }
.dot-warmth { background: var(--champagne); }
.dot-practical { background: var(--sage); }
.dot-space { background: var(--sky); }
.dot-repair { background: var(--champagne-mid); }

/* effort bar segments animate from 0 when in view */
.effort-animate .effort-seg { width: 0; }
.in-view .effort-animate .effort-seg { width: var(--w); }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-overline {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  color: var(--champagne-mid); margin-bottom: 14px;
}

.section-tuesdays { background: var(--card-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.tuesdays-line {
  font-size: clamp(26px, 3.6vw, 38px); font-weight: 600;
  letter-spacing: -1px; line-height: 1.25; margin-bottom: 20px;
}
.tuesdays-body { font-size: 17px; color: var(--ink-2); line-height: 1.7; }

/* ---------- demos ---------- */
.section-demos { padding-bottom: 40px; }
.demo-row {
  max-width: 1040px; margin: 0 auto 110px; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.demo-row-flip .demo-copy { order: 2; }
.demo-row-flip .demo-visual { order: 1; }
.demo-overline {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  color: var(--champagne-mid); margin-bottom: 12px;
}
.demo-headline {
  font-size: clamp(24px, 3vw, 32px); font-weight: 600;
  letter-spacing: -0.8px; line-height: 1.25; margin-bottom: 16px;
}
.demo-body { font-size: 16px; color: var(--ink-2); line-height: 1.7; max-width: 440px; }
.demo-visual { display: flex; justify-content: center; }
.mini-screen {
  width: 100%; max-width: 380px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--r-sheet);
  padding: 22px 18px;
}
.demo-focus-card { transform: translateY(0); }

/* memory demo */
.memory-demo { display: flex; flex-direction: column; gap: 10px; }
.chat-date {
  font-size: 9px; letter-spacing: 0.8px; color: var(--ink-3);
  text-align: center; margin-bottom: 8px;
}
.chat-bubble {
  font-size: 14px; line-height: 1.5; padding: 10px 14px; max-width: 88%;
}
.chat-user {
  background: #E8D5B0; color: #3D2B0A;
  border-radius: 14px 14px 3px 14px; margin-left: auto;
}
.chat-assistant {
  background: var(--card-alt); color: var(--ink);
  border-radius: 16px 16px 16px 3px; margin-right: auto;
}
.memory-gap {
  display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 0;
}
.memory-gap span { width: 3px; height: 3px; border-radius: 2px; background: var(--champagne); opacity: 0.6; }
.focus-card-sm { padding: 14px; }
.focus-phrase-sm { font-size: 14px; min-height: 0; }

/* chat demo steps */
.chat-demo { display: flex; flex-direction: column; gap: 10px; }
.chat-step { opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.in-view .chat-step[data-step="1"] { opacity: 1; transform: none; transition-delay: 0.2s; }
.in-view .chat-step[data-step="2"] { opacity: 1; transform: none; transition-delay: 0.9s; }
.in-view .chat-step[data-step="3"] { opacity: 1; transform: none; transition-delay: 1.7s; }
.in-view .chat-step[data-step="4"] { opacity: 1; transform: none; transition-delay: 2.4s; }
.calendar-pop {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-button); padding: 12px 14px;
  box-shadow: var(--shadow-card);
}
.calendar-pop-icon {
  width: 32px; height: 32px; border-radius: 8px; flex: none;
  background: rgba(198, 164, 106, 0.14);
  position: relative;
}
.calendar-pop-icon::after {
  content: ""; position: absolute; inset: 9px;
  border: 1.5px solid var(--champagne-mid); border-radius: 3px; border-top-width: 4px;
}
.calendar-pop-title { font-size: 14px; font-weight: 600; }
.calendar-pop-sub { font-size: 12px; color: var(--ink-3); }
.calendar-pop-check {
  margin-left: auto; font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--success);
}

/* ideas deck demo */
.deck-demo { position: relative; height: 470px; }
.idea-card {
  position: absolute; background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 18px;
}
.idea-card-back2 { inset: 26px 20px auto 20px; height: 400px; opacity: 0.42; }
.idea-card-back1 { inset: 14px 10px auto 10px; height: 415px; opacity: 0.7; }
.idea-card-top {
  inset: 0 0 auto 0; min-height: 440px; box-shadow: var(--shadow-card-lift);
}
.in-view .idea-card-top { animation: ideaSwipe 5.5s var(--ease) 1.2s infinite; }
@keyframes ideaSwipe {
  0%, 55% { transform: translateX(0) rotate(0); }
  70%, 82% { transform: translateX(14px) rotate(2deg); }
  100% { transform: translateX(0) rotate(0); }
}
.in-view .idea-stamp { animation: stampIn 5.5s var(--ease) 1.2s infinite; }
@keyframes stampIn {
  0%, 60% { opacity: 0; transform: rotate(-12deg) scale(1.3); }
  72%, 90% { opacity: 1; transform: rotate(-12deg) scale(1); }
  100% { opacity: 0; }
}
.idea-badge {
  display: inline-block; font-size: 11px; font-weight: 500; color: var(--ink-2);
  background: rgba(198, 164, 106, 0.08); border-radius: 8px;
  padding: 4px 8px; margin-bottom: 12px;
}
.idea-title { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 8px; }
.idea-overview { font-size: 13px; color: var(--ink-2); line-height: 1.55; margin-bottom: 14px; }
.idea-why {
  border-left: 3px solid var(--champagne);
  background: rgba(198, 164, 106, 0.07);
  border-radius: 6px; padding: 10px 12px; margin-bottom: 14px;
}
.idea-why-label {
  font-size: 10px; font-weight: 600; color: var(--champagne-mid);
  letter-spacing: 0.6px; margin-bottom: 4px;
}
.idea-why p { font-size: 12px; line-height: 1.55; color: var(--ink-2); }
.idea-steps { margin-bottom: 14px; }
.idea-steps-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.8px;
  color: var(--ink-3); margin-bottom: 8px;
}
.idea-step {
  display: flex; align-items: flex-start; gap: 8px; margin-bottom: 7px;
}
.idea-step i {
  flex: none; width: 20px; height: 20px; border-radius: 10px;
  background: var(--champagne); color: #FFFFFF;
  font-style: normal; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.idea-step span { font-size: 12px; line-height: 1.55; color: var(--ink-2); }
.idea-tags { display: flex; gap: 8px; }
.idea-tag {
  font-size: 10px; font-weight: 500; letter-spacing: 0.5px;
  border-radius: 10px; padding: 4px 10px;
  background: var(--surface); color: var(--ink-2);
}
.idea-tag-low { background: rgba(109, 170, 110, 0.09); color: #6DAA6E; } /* EFFORT_LOW */
.idea-tag-med { background: rgba(212, 149, 106, 0.10); color: #D4956A; } /* EFFORT_MED */

/* ideas screen chrome (mirrors the real Ideas tab) */
.ideas-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.ideas-title { font-size: 28px; font-weight: 700; letter-spacing: -0.6px; }
.ideas-actions { display: flex; align-items: center; gap: 8px; }
.ib {
  width: 32px; height: 32px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--ink-2);
}
.ib svg { width: 16px; height: 16px; }
.ib-boxed { background: var(--card); border: 1px solid var(--border); border-radius: 9px; color: var(--ink); }
.ib-avatar {
  background: #2E7D5B; color: #FFFFFF;
  font-size: 13px; font-weight: 600;
}

/* segmented control */
.seg {
  display: flex; gap: 4px; padding: 4px; margin-bottom: 14px;
  background: var(--card-alt); border-radius: 14px;
}
.seg-opt {
  flex: 1; text-align: center; padding: 9px 6px;
  font-size: 13px; font-weight: 500; color: var(--ink-3);
  border-radius: 11px;
}
.seg-opt.active {
  background: var(--card); color: var(--champagne-mid); font-weight: 600;
  box-shadow: 0 1px 3px rgba(17, 17, 17, 0.06);
}

/* fanned deck: back cards peek out below the top card */
.deck-fan .idea-card-back1 { inset: 8px 8px -8px 8px; height: auto; opacity: 0.75; }
.deck-fan .idea-card-back2 { inset: 16px 16px -16px 16px; height: auto; opacity: 0.45; }
.deck-fan .idea-card-top { inset: 0 0 0 0; }

/* static card (no stack), used in the you-layer section */
.idea-card-flat {
  position: static; background: var(--card);
  border: 1px solid var(--border); border-radius: 16px; padding: 18px;
  box-shadow: var(--shadow-card);
}
.idea-stamp {
  position: absolute; top: 14px; right: 14px; opacity: 0;
  border: 2.5px solid var(--champagne-mid); border-radius: 6px;
  padding: 5px 10px; font-size: 13px; font-weight: 600; letter-spacing: 1.5px;
  color: var(--champagne-mid); transform: rotate(-12deg);
}

/* ---------- range ---------- */
.section-range { background: var(--card-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.range-headline {
  font-size: clamp(26px, 3.6vw, 38px); font-weight: 600;
  letter-spacing: -1px; line-height: 1.25; max-width: 720px; margin-bottom: 44px;
}
.range-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 72px;
}
.range-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: 26px;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), box-shadow 0.3s;
}
.range-card:hover { box-shadow: var(--shadow-card); }
.range-type {
  font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--champagne-mid); margin-bottom: 10px;
}
.range-text { font-size: 15px; color: var(--ink-2); line-height: 1.65; }

.modes-block { margin-bottom: 72px; }
.modes-headline {
  font-size: 24px; font-weight: 600; letter-spacing: -0.5px; margin-bottom: 24px;
}
.modes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mode-item {
  border-top: 2px solid var(--champagne); padding-top: 16px;
}
.mode-name { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.mode-text { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* ---------- seasons (rhythm line) ---------- */
.seasons-block { margin-bottom: 84px; }
.pulse-wrap { margin: 30px 0 6px; }
.pulse { width: 100%; height: 96px; display: block; overflow: visible; }
.pulse-base {
  fill: none; stroke: var(--border); stroke-width: 1;
}
/* the trace draws itself once, quickly, then stays */
/* --len is measured from the real path in JS, so the reveal and the
   travelling dot advance at exactly the same rate */
.pulse-line {
  fill: none; stroke: var(--champagne); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--len, 3000); stroke-dashoffset: var(--len, 3000);
}
.in-view .pulse-line { animation: pulseSweep 4.5s linear forwards; }
@keyframes pulseSweep {
  from { stroke-dashoffset: var(--len, 3000); }
  to { stroke-dashoffset: 0; }
}

.pulse-dot { fill: var(--champagne-mid); opacity: 0; }
.in-view .pulse-dot { animation: dotOn 4.5s linear forwards; }
@keyframes dotOn {
  0% { opacity: 0; }
  6%, 88% { opacity: 1; }
  100% { opacity: 0; }
}

/* no gap: each column is an exact third, so the beats above line up with it */
.seasons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.season { border-top: 1px solid var(--border); padding: 16px 32px 0 0; }
.season:last-child { padding-right: 0; }
.season-freq {
  font-size: 10px; font-weight: 600; letter-spacing: 1.2px;
  color: var(--champagne-mid); margin-bottom: 8px;
}

/* ---------- circle ---------- */
.circle-block {
  display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center;
  margin-bottom: 84px;
}
.circle-visual { position: relative; width: 320px; height: 300px; margin: 0 auto; }
.circle-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 78px; height: 78px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; justify-content: center;
}
.circle-center img { width: 36px; height: auto; }
.circle-person {
  position: absolute; display: flex; flex-direction: column;
  align-items: center; gap: 6px; width: 96px;
}
.avatar-art {
  width: 58px; height: 58px; border-radius: 50%;
  border: 2px solid var(--card); box-shadow: var(--shadow-card);
  background: var(--card-alt);
}
.circle-name {
  font-size: 12px; font-weight: 600; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; line-height: 1.35;
}
.circle-name em {
  font-style: normal; font-size: 10px; font-weight: 500;
  color: var(--ink-3); letter-spacing: 0.3px;
}
.cp-1 { top: 0; left: 50%; margin-left: -48px; animation: orbitBob 5s ease-in-out infinite; }
.cp-2 { bottom: 4px; left: 0; animation: orbitBob 5s ease-in-out 1.6s infinite; }
.cp-3 { bottom: 4px; right: 0; animation: orbitBob 5s ease-in-out 3.2s infinite; }
@keyframes orbitBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- you layer ---------- */
.self-block {
  display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: center;
}
.self-copy { max-width: 520px; }
.self-headline { font-size: 28px; font-weight: 600; letter-spacing: -0.6px; margin-bottom: 14px; }
.self-body { font-size: 16px; color: var(--ink-2); line-height: 1.7; }
.self-visual { display: flex; justify-content: center; }
.self-screen { background: var(--bg); }

/* ---------- founder ---------- */
.section-founder { background: var(--dark-bg); color: var(--dark-text); }
.section-overline-dark { color: var(--champagne-dark); }
.founder-headline {
  font-size: clamp(24px, 3.2vw, 34px); font-weight: 600;
  letter-spacing: -0.8px; line-height: 1.3; margin-bottom: 24px;
}
.founder-body { font-size: 16px; color: var(--dark-text-2); line-height: 1.75; margin-bottom: 18px; }
.founder-sign {
  font-size: 14px; color: var(--champagne-dark); font-weight: 500; margin-top: 28px;
}

/* ---------- final CTA ---------- */
.section-cta { text-align: center; padding: 120px 0; }
.cta-headline {
  font-size: clamp(32px, 4.4vw, 48px); font-weight: 600;
  letter-spacing: -1.2px; margin-bottom: 30px; line-height: 1.12;
}
.cta-line { display: block; }
.section-cta .cta-form, .section-cta .cta-confirm { margin: 0 auto; }
.cta-note { margin-top: 18px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 44px; }
.footer-inner {
  max-width: 1040px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
}
.footer-mark { width: 30px; height: auto; }
.footer-signature { font-size: 14px; color: var(--ink-2); letter-spacing: -0.1px; }
.footer-links { display: flex; gap: 22px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; justify-content: center; }
.footer-links a:hover { color: var(--ink-2); }
.footer-legal { font-size: 12px; color: var(--ink-3); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 48px 24px 64px; gap: 44px; }
  .hero-sub, .cta-form { max-width: none; }
  .demo-row { grid-template-columns: 1fr; gap: 32px; margin-bottom: 80px; }
  .demo-row-flip .demo-copy { order: 1; }
  .demo-row-flip .demo-visual { order: 2; }
  .range-grid, .modes-grid, .seasons-grid { grid-template-columns: 1fr; }
  .circle-block, .self-block { grid-template-columns: 1fr; gap: 36px; }
  .self-visual { order: 2; }
  .pulse { height: 70px; }
  .section { padding: 72px 0; }
}
@media (max-width: 520px) {
  .cta-form { flex-direction: column; }
  /* in a column, flex:1 collapses the field's height. pin it back. */
  .cta-input { flex: 0 0 auto; width: 100%; height: 56px; font-size: 16px; }
  .cta-button { width: 100%; height: 56px; }
  .hero-headline { font-size: clamp(38px, 12vw, 52px); letter-spacing: -1.4px; }
  .cta-headline { font-size: clamp(30px, 9vw, 40px); }
  .cta-confirm { padding: 24px 20px; }
  .phone { width: 268px; }
  .phone-screen { min-height: 556px; padding-top: 46px; }
}
