/* Reach website. Colours and type match the app (constants/theme.ts, DESIGN.md). */
:root {
  --sage-900: #1B281B;
  --sage-800: #324933;
  --sage-500: #4F6F53;
  --sage-300: #9BB894;
  --sage-100: #DCE7D8;
  --sage-50: #EEF3ED;
  --oat-500: #E2D9BF;
  --oat-300: #EDE7D6;
  --oat-100: #F5F1E8;
  --oat-50: #FBFAF7;
  --clay-500: #D97757;
  --clay-100: #F8D9CB;
  --clay-50: #FCEFE8;
  --text: #1F2024;
  --text-2: #494A50;
  --text-3: #71727A;
  --border: #D4D6DD;
  --white: #FFFFFF;
  --error: #C62834;

  --heading: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(31, 32, 36, .06), 0 12px 32px -8px rgba(31, 32, 36, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--oat-50);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--sage-500); }
h1, h2, h3 { font-family: var(--heading); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--sage-300); outline-offset: 2px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--sage-500); color: var(--white);
  font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--sage-800); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .7; cursor: default; }
.btn-small { height: 40px; padding: 0 18px; font-size: 14px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 250, 247, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-bottom-color: var(--oat-300); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 700 22px/1 var(--heading); }
.brand img { border-radius: 9px; }
.brand-small { font-size: 18px; }
.brand-small img { border-radius: 7px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { padding: 56px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--sage-50); color: var(--sage-800);
  font-weight: 600; font-size: 14px; margin-bottom: 20px;
}
.eyebrow-plain { background: none; padding: 0; color: var(--clay-500); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin-bottom: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage-500); box-shadow: 0 0 0 4px var(--sage-100); }
.hero h1 { font-size: clamp(40px, 6vw, 64px); max-width: 14ch; }
.lede { margin-top: 20px; font-size: 19px; color: var(--text-2); max-width: 32em; }

/* Waitlist */
.waitlist { margin-top: 32px; max-width: 480px; }
.waitlist-row {
  display: flex; gap: 6px; padding: 6px;
  background: var(--white); border: 1px solid var(--border); border-radius: 999px;
  box-shadow: var(--shadow);
  transition: border-color .15s ease;
}
.waitlist-row:focus-within { border-color: var(--sage-500); }
.waitlist input[type=email] {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 16px;
  font: 400 16px var(--body); color: var(--text); outline: none;
}
.waitlist input::placeholder { color: var(--text-3); }
.waitlist .btn { height: 48px; }
.waitlist-msg { margin-top: 12px; font-size: 14px; color: var(--text-3); padding-left: 16px; min-height: 1.5em; }
.waitlist-msg.is-error { color: var(--error); }
.waitlist.is-done .waitlist-row { display: none; }
.waitlist.is-done .waitlist-msg {
  margin: 0; padding: 16px 20px; border-radius: var(--radius);
  background: var(--sage-50); color: var(--sage-800); font-weight: 600; font-size: 16px;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.store-row { display: flex; align-items: center; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 16px 0 12px; border-radius: 10px;
  background: var(--text); color: var(--white); text-decoration: none;
}
.store-badge[aria-disabled=true] { opacity: .9; cursor: default; }
.store-badge svg { width: 24px; height: 24px; }
.store-badge span { display: flex; flex-direction: column; font: 600 18px/1.05 var(--body); }
.store-badge small { font-size: 10px; font-weight: 500; letter-spacing: .02em; }
.store-note { font-size: 14px; color: var(--text-3); }

/* Hero visual */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.hero-visual::before {
  content: ''; position: absolute; inset: 6% -8% 0 4%;
  background: radial-gradient(closest-side, var(--sage-100), transparent), radial-gradient(closest-side at 80% 80%, var(--clay-100), transparent 70%);
  border-radius: 50%; z-index: -1; opacity: .9;
}

/* Phone mockups, drawn in HTML to match the app's screens */
.phone {
  width: 300px; aspect-ratio: 9 / 19.5; padding: 10px;
  background: #16171A; border-radius: 48px;
  box-shadow: 0 0 0 1.5px #3A3B40 inset, 0 40px 80px -24px rgba(31, 32, 36, .4), 0 12px 24px -12px rgba(31, 32, 36, .25);
}
.phone-screen { width: 100%; height: 100%; border-radius: 39px; overflow: hidden; position: relative; background: var(--oat-50); }
.status { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 26px; font: 600 13px var(--body); color: var(--text); }
.status-light { color: var(--white); }
.island { width: 84px; height: 24px; border-radius: 20px; background: #000; }
.status-icons { width: 44px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, currentColor 0 30%, transparent 30% 38%, currentColor 38% 60%, transparent 60% 70%, currentColor 70%); opacity: .9; }

.screen-home { padding-bottom: 60px; }
.home-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 10px 18px 14px; }
.home-greeting { font: 700 19px/1.2 var(--heading); }
.home-date { font-size: 11px; color: var(--text-2); margin-top: 2px; }
.home-actions { display: flex; gap: 6px; }
.streak-pill { white-space: nowrap; height: 28px; padding: 0 9px; border-radius: 999px; background: var(--oat-100); font: 700 12px/28px var(--body); }
.avatar-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--oat-100); }
.home-section { font: 700 13px var(--heading); padding: 0 18px; margin: 4px 0 9px; }
.card-row { display: flex; gap: 9px; padding: 0 0 0 18px; margin-bottom: 16px; }
.r-card { position: relative; flex: 0 0 132px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--oat-300); }
.r-card img, .moment-img img, .player-video img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  /* Same crop as the app: hides the light at the left edge of the footage */
  transform: scale(1.18); transform-origin: 50% 65%;
}
.r-card::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.r-card-text { position: absolute; left: 9px; right: 9px; bottom: 8px; z-index: 1; color: var(--white); display: flex; flex-direction: column; }
.r-card-text b { font: 600 12px/1.2 var(--body); }
.r-card-text span { font-size: 10px; opacity: .9; }
.tile-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 18px; }
.tile { background: var(--oat-100); border-radius: 12px; padding: 8px 6px 7px; text-align: center; font: 600 10px var(--body); }
.tile img { width: 48px; height: 48px; object-fit: contain; margin: 0 auto 3px; }
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; display: flex; justify-content: space-around; align-items: flex-start; padding-top: 12px; background: var(--white); border-top: 1px solid var(--oat-300); }
.tabbar i { width: 18px; height: 18px; border-radius: 6px; background: var(--border); }
.tabbar i.on { background: var(--sage-500); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow);
  font-size: 13px; animation: bob 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: 14px; }
.float-card span { color: var(--text-3); }
.float-streak { left: -6%; bottom: 14%; }
.float-streak img { width: 36px; height: auto; }
.float-voice { right: -10%; top: 50%; animation-delay: -3s; }
.wave { display: flex; align-items: center; gap: 3px; width: 36px; height: 36px; justify-content: center; border-radius: 10px; background: var(--sage-50); }
.wave i { width: 3px; border-radius: 2px; background: var(--sage-500); animation: wave 1.2s ease-in-out infinite; }
.wave i:nth-child(1) { height: 8px; animation-delay: -.2s; }
.wave i:nth-child(2) { height: 16px; animation-delay: -.5s; }
.wave i:nth-child(3) { height: 22px; animation-delay: -.8s; }
.wave i:nth-child(4) { height: 14px; animation-delay: -.3s; }
.wave i:nth-child(5) { height: 8px; animation-delay: -.6s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes wave { 50% { transform: scaleY(.45); } }

/* Sections */
section { scroll-margin-top: 80px; }
.section-title { font-size: clamp(30px, 4vw, 44px); text-align: center; max-width: 18ch; margin: 0 auto; }
.section-title.left { text-align: left; margin: 0; }
.section-lede { text-align: center; color: var(--text-2); font-size: 18px; margin: 16px auto 0; max-width: 34em; }
.section-lede.left { text-align: left; margin-left: 0; }

.moments { padding: 88px 0; background: var(--oat-100); }
.moment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.moment-img { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--oat-300); margin-bottom: 18px; }
.moment h3 { font-size: 22px; }
.moment p { color: var(--text-2); margin-top: 6px; }

.features { padding: 104px 0; }
.features-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.features-visual { display: flex; justify-content: center; position: relative; }
.features-visual::before { content: ''; position: absolute; width: 380px; height: 380px; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: var(--sage-50); z-index: -1; }
.phone-dark .phone-screen { background: var(--text); }
.screen-player { display: flex; flex-direction: column; }
.player-video { flex: 1; overflow: hidden; margin-top: -44px; }
.player-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px 6px; color: var(--white); }
.player-bar b { display: block; font: 700 14px var(--heading); }
.player-bar span { font-size: 11px; color: var(--border); }
.ring { width: 46px; height: 46px; flex: none; }
.ring circle { fill: none; stroke-width: 4; }
.ring-track { stroke: rgba(255, 255, 255, .18); }
.ring-fill { stroke: var(--sage-300); stroke-linecap: round; stroke-dasharray: 163; stroke-dashoffset: 65; transform: rotate(-90deg); transform-origin: center; }
.ring text { fill: var(--white); font: 600 14px var(--body); }
.player-controls { display: flex; justify-content: center; align-items: center; gap: 36px; padding: 10px 0 26px; }
.player-controls i { width: 22px; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, .3); }
.player-controls i.play { width: 52px; height: 52px; border-radius: 50%; background: var(--white); position: relative; }
.player-controls i.play::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 16px; transform: translate(-50%, -50%); border-left: 5px solid var(--text); border-right: 5px solid var(--text); box-sizing: border-box; }

.feature-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 24px; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.f-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--sage-50); display: grid; place-items: center; }
.f-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--sage-500); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-list h3 { font-size: 18px; }
.feature-list p { color: var(--text-2); margin-top: 4px; }

.areas { padding: 88px 0; background: var(--sage-50); }
.chip-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 44px; }
.chip { background: var(--white); border-radius: var(--radius); padding: 16px 10px 14px; text-align: center; font-weight: 600; font-size: 15px; }
.chip img { width: 72px; height: 72px; object-fit: contain; margin: 0 auto 8px; }

.pricing { padding: 104px 0; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 840px; margin: 48px auto 0; }
.plan { position: relative; padding: 32px; border-radius: 24px; background: var(--white); border: 1px solid var(--oat-300); }
.plan h3 { font-size: 22px; }
.price { font: 700 44px/1 var(--heading); margin-top: 16px; }
.price small { font: 500 16px var(--body); color: var(--text-3); margin-left: 4px; }
.price-sub { color: var(--text-3); font-size: 14px; margin-top: 8px; }
.plan-premium { background: var(--sage-500); border-color: var(--sage-500); color: var(--white); }
.plan-premium .price small, .plan-premium .price-sub { color: var(--sage-100); }
.plan-tag { position: absolute; top: 28px; right: 28px; padding: 5px 12px; border-radius: 999px; background: var(--clay-50); color: #964A35; font-size: 13px; font-weight: 600; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--sage-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%234F6F53' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.plan-premium .ticks li::before { background-color: var(--white); }

.faq { padding: 88px 0; background: var(--oat-100); }
.faq .section-title { margin-bottom: 40px; }
details { border-bottom: 1px solid var(--oat-500); }
summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-weight: 600; font-size: 18px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 28px/1 var(--body); color: var(--sage-500); transition: transform .2s ease; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--text-2); padding: 0 40px 22px 0; }

.cta { padding: 104px 0; }
.cta-card { text-align: center; padding: 56px 32px; border-radius: 32px; background: var(--clay-50); }
.cta-art { width: 180px; margin: 0 auto 24px; }
.cta h2 { font-size: clamp(30px, 4vw, 44px); max-width: 16ch; margin: 0 auto; }
.cta-card > p { color: var(--text-2); font-size: 18px; margin: 14px auto 0; max-width: 30em; }
.waitlist-center { margin: 32px auto 0; }
.waitlist-center .waitlist-msg { padding-left: 0; }

.footer { padding: 36px 0 48px; border-top: 1px solid var(--oat-300); }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 24px; margin-left: auto; }
.footer nav a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.footer nav a:hover { color: var(--text); }
.footer p { color: var(--text-3); font-size: 14px; }

/* Legal / support pages */
.doc { padding: 48px 0 96px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--text-2); }
.doc p + p { margin-top: 12px; }
.doc strong { color: var(--text); }
.doc ul { padding-left: 22px; margin: 8px 0 12px; }
.doc li { margin: 4px 0; }
.doc em { color: var(--text-3); }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--oat-300); vertical-align: top; }
.doc th { font-weight: 600; background: var(--oat-100); }
.table-scroll { overflow-x: auto; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .features-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .hero-copy { text-align: center; }
  .hero h1, .lede { margin-left: auto; margin-right: auto; }
  .waitlist { margin-left: auto; margin-right: auto; }
  .waitlist-msg { padding-left: 0; }
  .store-row { justify-content: center; }
  .features-visual { order: 2; }
  .chip-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .moment-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .moment-img { aspect-ratio: 16 / 11; }
  .moment-img img { object-position: center 45%; }
  .plan-grid { grid-template-columns: 1fr; }
  .chip-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .chip img { width: 56px; height: 56px; }
  .float-voice { right: 0; top: 46%; }
  .float-streak { left: 0; bottom: 8%; }
  .features, .pricing, .cta { padding: 72px 0; }
  .moments, .areas, .faq { padding: 64px 0; }
  .footer nav { margin-left: 0; width: 100%; order: 3; }
}
@media (max-width: 480px) {
  /* Stack as two separate controls: a full input field above a full button */
  .waitlist-row { flex-direction: column; gap: 10px; padding: 0; background: none; border: 0; box-shadow: none; }
  .waitlist input[type=email] {
    flex: none; height: 54px; padding: 0 22px; text-align: center;
    background: var(--white); border: 1px solid var(--border); border-radius: 999px;
    box-shadow: var(--shadow); transition: border-color .15s ease;
  }
  .waitlist input[type=email]:focus { border-color: var(--sage-500); }
  .waitlist .btn { width: 100%; height: 54px; }
  .phone { zoom: .86; }
  .float-card { font-size: 12px; padding: 10px 12px 10px 10px; }
  .float-card b { font-size: 13px; }
  .cta-card { padding: 40px 20px; }
  .plan { padding: 28px 24px; }
  .nav .btn-small { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-card, .wave i { animation: none; }
}
