/* Landing page prototype. Colors and type from the brand guidelines (v2): coral #EC665D, charcoal #2E3136, cream #F9F5F1, Figtree.
   Coral as text uses the deep coral #A93E3A from docs/05, since the bright coral is 2.7:1 on cream. */
:root {
  --cream: #F9F5F1;
  --sand: #F0E7E1;
  --white: #FFFFFF;
  --ink: #2E3136;
  --ink-strong: #26282C;   /* text on coral: 4.7:1 */
  --muted: #57585B;        /* 6.6:1 on cream */
  --coral: #EC665D;
  --coral-hi: #F0857D;
  --coral-deep: #A93E3A;
  --t1: #E28A83;
  --t2: #E8AAA5;
  --t3: #F4DCD9;
  --t4: #FAF0EE;
  --outline: #888280;
  --ok: #3F5D45;
  --ok-bg: #E9F0E8;
  --warn: #8A4B00;
  --warn-bg: #FEF3DC;
  --attn: #8A3F10;
  --attn-bg: #FBEEE3;

  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* five type steps */
  --xl: clamp(56px, 7vw, 104px);
  --l: clamp(38px, 4vw, 58px);
  --m: clamp(24px, 2.2vw, 32px);
  --body: 18px;
  --small: 15px;

  --radius: 16px;
  --inset: 12px;
  --gutter: clamp(20px, 4vw, 64px);
  --section: clamp(120px, 14vw, 200px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 var(--body)/1.55 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--t2); color: var(--ink-strong); }
:focus-visible { outline: 3px solid var(--coral-deep); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Buttons and fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--coral); color: var(--ink-strong);
  font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), transform .15s var(--ease);
}
.btn:hover { background: var(--coral-hi); }
.btn:active { transform: scale(.97); }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--ink-strong); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: var(--white); }
.btn-text { background: none; border: 0; padding: 12px 8px; min-height: 44px; font-weight: 600; font-size: 16px; color: var(--coral-deep); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

input[type="email"] {
  min-height: 52px; padding: 0 22px; border-radius: 999px;
  border: 1.5px solid var(--outline); background: var(--white); font-size: 17px; color: var(--ink);
  transition: border-color .2s var(--ease);
}
input[type="email"]::placeholder { color: #636467; }
input[type="email"]:hover { border-color: var(--ink); }
input[type="email"]:focus-visible { outline-offset: 2px; border-radius: 999px; }
.form-status { flex-basis: 100%; font-size: var(--small); font-weight: 600; min-height: 0; }
.form-status:empty { display: none; }

/* ---------- Tint band (the brand palette's tint scale, used as the page's one ornament) ---------- */
.tint-band { display: flex; height: 56px; flex: none; }
.tint-band span { flex: 1; }
.tint-band span:nth-child(1) { background: var(--coral); }
.tint-band span:nth-child(2) { background: var(--t1); }
.tint-band span:nth-child(3) { background: var(--t2); }
.tint-band span:nth-child(4) { background: var(--t3); }
.tint-band span:nth-child(5) { background: var(--t4); }
.tint-band-thin { height: 8px; }

/* ---------- Top bar: sticky, plain, one action ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 0 var(--gutter); background: var(--cream);
  transition: background-color .3s var(--ease);
}
.topbar.is-scrolled { background: var(--white); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; justify-self: start; min-height: 44px; }
.brand-mark { width: 36px; height: 36px; }
.brand-text { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.topnav { display: flex; gap: 4px; }
.topnav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-size: var(--small); font-weight: 600; text-decoration: none; color: var(--muted); border-radius: 999px;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.topnav a:hover { color: var(--ink); background: var(--sand); }
.topnav a[aria-current="true"] { color: var(--ink-strong); background: var(--t3); }
.topbar .btn { justify-self: end; }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--inset); padding: var(--inset);
  height: calc(100svh - var(--nav-h)); min-height: 640px; max-height: 940px; padding-top: 0;
}
.hero-card { background: var(--white); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; }
.hero-card-body {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 40px clamp(24px, 4vw, 72px);
}
.hero h1 { font-size: var(--l); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; max-width: 13ch; }
.hero-lede { margin-top: 24px; font-size: var(--body); max-width: 38ch; }
.waitlist { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; width: 100%; max-width: 480px; }
.waitlist input { flex: 1 1 220px; }
.hero-note { margin-top: 16px; font-size: var(--small); color: var(--muted); max-width: 40ch; }

.hero-photo { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--t3); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 35%; animation: drift 24s var(--ease) infinite alternate; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1.5%, -1%); } }

.notif-stack { position: absolute; left: 24px; right: 24px; bottom: 24px; display: grid; gap: 10px; max-width: 420px; }
.notif {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 22px;
  background: var(--white); box-shadow: /* taste-skill-ignore: floats above content, inside data-ui */ 0 12px 32px rgba(38, 40, 44, .18);
  opacity: 0; transform: translateY(16px) scale(.98);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.notif.is-on { opacity: 1; transform: none; }
.notif-icon { flex: none; width: 38px; height: 38px; padding: 6px; border-radius: 10px; background: var(--coral); }
.notif-app { font-size: 13px; font-weight: 600; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.notif-app span { font-weight: 400; }
.notif-text { font-size: 15px; line-height: 1.35; color: var(--ink); }

/* ---------- Shared grid ---------- */
.intro, .faq { padding: var(--section) var(--gutter); }

/* ---------- Intro ---------- */
.intro {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center;
  max-width: 1440px; margin: 0 auto;
}
.intro-copy { grid-column: 2 / span 5; }
.intro h2 { font-size: var(--m); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; margin-bottom: 28px; }
.intro-copy p { max-width: 44ch; }
.intro-copy p + p { margin-top: 20px; }
.intro-first { font-weight: 600; }
.intro-thread { grid-column: 8 / span 4; background: var(--white); border-radius: var(--radius); padding: 20px 18px 24px; }
.thread-head { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; }
.thread-av { width: 44px; height: 44px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; font-weight: 700; }
.thread-name { font-weight: 700; font-size: 16px; }
.thread-sub { font-size: 14px; color: var(--coral-deep); font-weight: 600; }
.thread-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.m { display: flex; align-items: flex-end; gap: 8px; }
.m-me { justify-content: flex-end; }
.m-av { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--ink-strong); }
.m-group { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; max-width: 82%; }
.m-me .m-group { align-items: flex-end; }
.m-name { font-size: 13px; font-weight: 600; color: var(--muted); padding-left: 12px; margin-bottom: 1px; }
.b { padding: 8px 13px; border-radius: 18px; background: var(--sand); font-size: 15px; line-height: 1.35; }
.m-them .b:last-child { border-bottom-left-radius: 6px; }
.b-me { background: var(--t3); }
.m-me .b:last-child { border-bottom-right-radius: 6px; }
.m-day { text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 0 2px; }

/* ---------- Ask for help (the live thing) ---------- */
.ask { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 92svh; }
.ask-in, .ask-out { position: relative; padding: clamp(72px, 12vh, 128px) var(--gutter); }
.ask-in { background: var(--ink); color: var(--cream); }
.ask-out { background: var(--t3); display: flex; flex-direction: column; align-items: center; }
.ask-prompt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 6px; font-size: 16px; line-height: 1.2; font-weight: 600; }
.ask-prompt > span:last-child { margin-left: -5px; }
.ask-try { margin-top: 36px; font-size: var(--body); font-weight: 600; color: var(--t2); }
.ask-select {
  appearance: none; -webkit-appearance: none; border: 0; cursor: pointer;
  background: #43474D url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5' fill='none' stroke='%23F4DCD9' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 12px 8px;
  color: var(--t3); font-weight: 700; padding: 7px 28px 8px 10px; border-radius: 10px; margin: 0;
  field-sizing: content; /* sizes to the chosen option where supported; the script does it elsewhere */
  transition: background-color .2s var(--ease);
}
.ask-select:hover { background-color: #50555C; }
.ask-select option { color: var(--ink); background: var(--white); }
.ask-body { max-width: 46ch; color: var(--cream); }
.ask-prompt { margin-top: 12px; }
.ask-body + .ask-body { margin-top: 16px; }
.ask-split { margin: 0 0 36px; font-size: var(--l); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
.ask-split-a { color: var(--cream); }
.ask-split-b { color: var(--ink); width: min(460px, 100%); }

/* the help request, as the app draws it */
.req { width: min(460px, 100%); background: var(--white); border-radius: var(--radius); padding: 26px 24px 20px; font-size: 16px; }
.req-loop { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.loop-dot { width: 10px; height: 10px; border-radius: 3px; }
.loop-a { background: var(--coral-deep); }
.loop-b { background: var(--ink); }
.loop-c { background: var(--coral); }
.req-title { margin-top: 10px; font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.req-where { margin-top: 6px; color: var(--muted); }
.req-status { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.pill-open { background: var(--warn-bg); color: var(--warn); }
.pill-covered { background: var(--ok-bg); color: var(--ok); }
.pill-attn { background: var(--attn-bg); color: var(--attn); }
.req-count { font-size: 15px; color: var(--muted); }
.req-people { list-style: none; margin: 18px 0 0; padding: 14px; background: var(--cream); border-radius: 12px; display: grid; gap: 12px; }
.req-people li { display: grid; grid-template-columns: 36px auto 1fr; align-items: center; gap: 10px; font-size: 15px; }
.req-name { font-weight: 700; }
.req-ok { color: var(--ok); justify-self: end; text-align: right; }
.req-no { color: var(--muted); justify-self: end; text-align: right; }
.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--ink-strong); flex: none; }
.av-d { background: var(--t2); } .av-j { background: var(--t1); } .av-m { background: var(--t3); } .av-y { background: var(--sand); font-size: 12px; }
.req-msg { margin: 18px 0 16px; font-size: 15px; color: var(--muted); min-height: 2.8em; }
.req[data-state="covered"] .req-msg { color: var(--ok); font-weight: 600; }
.req[data-state="covered"] .req-people li:first-child { background: var(--ok-bg); margin: -6px; padding: 6px; border-radius: 10px; }
.req [data-req-reset] { display: block; margin: 6px auto 0; }
.req [data-req-reset][hidden] { display: none; }
.pill-flip { animation: flip .5s var(--ease); }
@keyframes flip { 0% { transform: scale(.85); opacity: .4; } 60% { transform: scale(1.08); } 100% { transform: none; opacity: 1; } }

/* ---------- Phone (the product's own screen, no hardware frame) ---------- */
.phone {
  position: relative; width: 340px; height: 712px; border-radius: 46px; overflow: hidden;
  background: var(--cream); color: var(--ink); font-size: 15px; line-height: 1.4; flex: none;
}
.phone-status { position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 50px; display: flex; justify-content: space-between; align-items: center; padding: 6px 30px 0 36px; font-size: 15px; font-weight: 700; }
.phone-icons { display: flex; gap: 5px; align-items: center; }
.phone-icons i { display: block; width: 17px; height: 11px; border-radius: 3px; background: var(--ink); }
.phone-icons i:nth-child(1) { width: 16px; clip-path: polygon(0 100%, 100% 0, 100% 100%); border-radius: 1px; }
.phone-icons i:nth-child(2) { width: 14px; height: 10px; border-radius: 10px 10px 2px 2px; }
.phone-icons i:nth-child(3) { width: 24px; height: 12px; border-radius: 4px; }
.view { position: absolute; inset: 50px 0 0; padding: 14px 20px 20px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s .45s; }
.phone[data-view="checkin"] [data-v="checkin"], .phone[data-view="week"] [data-v="week"], .phone[data-view="kids"] [data-v="kids"], .phone[data-view="quiet"] [data-v="quiet"],
.phone[data-step-view="new"] [data-s="new"], .phone[data-step-view="invite"] [data-s="invite"], .phone[data-step-view="joined"] [data-s="joined"] {
  opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s;
}
.ph-back { color: var(--coral-deep); font-weight: 600; font-size: 15px; }
.ph-title { margin-top: 10px; font-size: 28px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.ph-sub { margin-top: 6px; color: var(--muted); font-size: 15px; }
.ph-center { text-align: center; }
.ph-h { margin: 18px 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.ph-card { background: var(--white); border-radius: 14px; padding: 14px; margin-top: 12px; }
.ph-row { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.ph-msg { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.ph-msg .av { width: 30px; height: 30px; font-size: 12px; }
.ph-timeline { display: grid; gap: 12px; }
.tl { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.tl b { color: var(--ink); }
.tl-dot { width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--sand); flex: none; transition: background-color .3s var(--ease), transform .3s var(--ease); }
.tl.is-done .tl-dot { background: var(--ok); transform: scale(1.1); }
.tl.is-done [data-tl-text] { color: var(--ok); font-weight: 600; }
.phone-banner {
  position: absolute; z-index: 4; top: 54px; left: 10px; right: 10px; display: flex; gap: 10px; align-items: center;
  padding: 12px 14px; border-radius: 20px; background: var(--white); box-shadow: /* taste-skill-ignore: floats above content, inside data-ui */ 0 10px 28px rgba(38, 40, 44, .2);
  font-size: 14px; font-weight: 600; opacity: 0; transform: translateY(-24px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.phone-banner .notif-icon { width: 32px; height: 32px; padding: 5px; border-radius: 9px; }
.phone-banner.is-on { opacity: 1; transform: none; }

.ph-chips { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.chip { padding: 6px 11px; border-radius: 999px; background: var(--white); font-size: 13px; font-weight: 600; transition: background-color .25s var(--ease), color .25s var(--ease); }
.chip.is-on { background: var(--ink); color: var(--cream); }
.ph-day { margin: 16px 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.ev { display: flex; gap: 10px; background: var(--white); border-radius: 12px; padding: 10px 12px; margin-top: 6px; font-size: 13px; color: var(--muted); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.ev b { color: var(--ink); font-size: 14px; }
.ev-bar { width: 5px; border-radius: 3px; flex: none; }
.ev.is-off { opacity: .25; transform: scale(.98); }

.kid-head { display: flex; gap: 14px; align-items: center; margin-top: 10px; }
.kid-av { width: 64px; height: 64px; border-radius: 50%; background: var(--t1); display: grid; place-items: center; font-weight: 800; font-size: 26px; color: var(--ink-strong); flex: none; }
.kid-head .ph-title { margin-top: 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }
.kv span { color: var(--muted); }
.kid-care, .kid-hidden, .kid-none { display: none; font-size: 14px; }
.phone[data-kid="care"] .kid-care, .phone[data-kid="photo"] .kid-hidden, .phone[data-kid="none"] .kid-none { display: block; animation: fadeup .35s var(--ease); }
@keyframes fadeup { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.view-lock { background: var(--ink); color: var(--cream); inset: 0; padding-top: 96px; text-align: center; }
.view-lock .notif-icon { width: 34px; height: 34px; padding: 5px; border-radius: 9px; }
.lock-time { font-size: 76px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.lock-date { margin-top: 8px; font-size: 16px; font-weight: 600; }
.lock-list { margin-top: 40px; display: grid; gap: 8px; text-align: left; }
.lock-n { display: flex; gap: 10px; align-items: flex-start; background: var(--white); color: var(--ink); border-radius: 18px; padding: 12px 14px; font-size: 14px; animation: fadeup .35s var(--ease) both; }
.lock-n:nth-child(2) { animation-delay: .06s; } .lock-n:nth-child(3) { animation-delay: .12s; } .lock-n:nth-child(4) { animation-delay: .18s; }
.phone:not(.quiet-on) [data-quiet-on], .phone.quiet-on [data-quiet-off] { display: none; }

.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.tpl { background: var(--white); border-radius: 12px; padding: 12px; font-size: 14px; font-weight: 600; }
.tpl.is-sel { background: var(--ink); color: var(--cream); }
.ph-label { margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--muted); }
.ph-field { margin-top: 6px; background: var(--white); border-radius: 12px; padding: 12px 14px; font-size: 15px; display: flex; align-items: center; }
.caret { display: inline-block; width: 2px; height: 18px; background: var(--coral-deep); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ph-btn { display: flex; align-items: center; justify-content: center; margin-top: 16px; min-height: 48px; border-radius: 999px; background: var(--coral); color: var(--ink-strong); font-weight: 700; font-size: 16px; }
.ph-btn-2 { margin-top: 8px; background: var(--white); color: var(--ink); }
.qr { width: 168px; height: 168px; margin: 18px auto 8px; padding: 12px; background: var(--white); border-radius: 14px; display: grid; grid-template-columns: repeat(21, 1fr); }
.qr i { display: block; }
.qr i.on { background: var(--ink); }
.ph-toggle { justify-content: space-between; font-weight: 600; }
.mini-switch { width: 44px; height: 26px; border-radius: 999px; background: var(--coral-deep); position: relative; flex: none; }
.mini-switch::after { content: ''; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); }
.members { display: flex; align-items: center; gap: 4px; margin-top: 14px; }
.members .av { width: 38px; height: 38px; }
.members-n { margin-left: 8px; font-size: 14px; color: var(--muted); font-weight: 600; }

/* ---------- Features ---------- */
.feat { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.feat-stage { position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); background: var(--coral); display: grid; place-items: center; overflow: hidden; }
.feat-col { padding: 120px var(--gutter) 14vh; }
.feat-col > h2 { font-size: var(--l); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; max-width: 14ch; }
.feat-block { min-height: 64vh; display: flex; flex-direction: column; justify-content: center; max-width: 46ch; }
.feat-line { font-size: var(--m); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
.feat-block p { margin-top: 16px; }
.ctl { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.seg {
  min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--outline); background: var(--white);
  font-weight: 600; font-size: 16px; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.seg:hover { border-color: var(--ink); }
.seg:active { transform: scale(.97); }
.seg[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.switch { margin-top: 24px; display: inline-flex; align-items: center; gap: 14px; font-weight: 600; cursor: pointer; min-height: 46px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { width: 56px; height: 32px; border-radius: 999px; background: var(--outline); position: relative; transition: background-color .25s var(--ease); flex: none; }
.switch-knob { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--white); transition: transform .25s var(--ease); }
.switch input:checked + .switch-track { background: var(--coral-deep); }
.switch input:checked + .switch-track .switch-knob { transform: translateX(24px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--coral-deep); outline-offset: 3px; }

/* tabs: only on small screens, where the pinned phone becomes a phone you switch */
.tabs { display: none; }
.tab { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--sand); font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease); }
.tab[aria-pressed="true"] { background: var(--ink); color: var(--cream); }

/* ---------- Loop templates ---------- */
.loops { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: var(--section) max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter))); background: var(--t3); align-items: start; }
.loops-photo { grid-column: 1 / span 5; position: sticky; top: calc(var(--nav-h) + 6vh); aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--t2); }
.lp { margin: 0; position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.lp.is-on { opacity: 1; }
.lp img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.lp.is-on img { transform: scale(1); }
.loops-col { grid-column: 7 / span 6; }
.loops h2 { font-size: var(--l); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; max-width: 14ch; }
.loops-lede { margin-top: 20px; max-width: 44ch; }
.loop-list { list-style: none; margin: 40px 0 0; padding: 0; }
.lr { padding: 14px 0; cursor: pointer; border-radius: 10px; }
.lr-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.lr-name { font-size: var(--m); font-weight: 700; letter-spacing: -0.02em; color: var(--muted); display: inline-flex; align-items: center; gap: 12px; transition: color .25s var(--ease); }
.lr-name::before { content: ''; width: 12px; height: 12px; border-radius: 4px; background: var(--coral); opacity: 0; transform: scale(.6); transition: transform .3s var(--ease), opacity .3s var(--ease); flex: none; }
.lr-meta { font-size: var(--small); color: var(--muted); white-space: nowrap; }
.lr-desc { max-width: 40ch; padding-left: 24px; margin-top: 8px; overflow: hidden; }
.lr.is-on .lr-name { color: var(--ink); }
.lr.is-on .lr-name::before { transform: scale(1); opacity: 1; }
.js .lr .lr-desc { max-height: 0; margin-top: 0; opacity: 0; transition: max-height .45s var(--ease), margin .45s var(--ease), opacity .45s var(--ease); }
.js .lr.is-on .lr-desc { max-height: 8em; margin-top: 8px; opacity: 1; }
.lr-photo { display: none; margin: 0; }
.loops-foot { margin-top: 36px; max-width: 46ch; }

/* ---------- How it works ---------- */
.how { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; align-items: start; }
.how-col { grid-column: 1 / span 5; padding: var(--section) 0 20vh; }
.how h2 { font-size: var(--l); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; max-width: 13ch; }
.how-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; max-width: 44ch; }
.how-line { font-size: var(--m); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; color: var(--muted); transition: color .3s var(--ease); }
.how-step.is-on .how-line { color: var(--ink); }
.how-step p + p { margin-top: 14px; }
.how-stage { grid-column: 7 / span 6; position: sticky; top: calc(var(--nav-h) + 3vh); height: calc(94vh - var(--nav-h)); margin-top: var(--section); background: var(--white); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: 7fr 5fr; min-height: 92svh; margin-top: var(--section); }
.plan { display: flex; flex-direction: column; padding: 48px var(--gutter); }
.plan-free { background: var(--t3); color: var(--ink); }
.plan-premium { background: var(--ink); color: var(--cream); }
.plan-name { font-size: var(--l); line-height: 1; letter-spacing: -0.035em; font-weight: 800; }
.plan-for { margin-top: 20px; font-size: var(--m); line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; max-width: 24ch; }
.plan-inc { margin-top: 24px; max-width: 48ch; }
.plan-foot { margin-top: auto; padding-top: 48px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.plan-price { font-size: var(--xl); line-height: .9; font-weight: 800; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.plan-price span { font-size: var(--body); font-weight: 600; letter-spacing: 0; margin-left: 10px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; max-width: 1440px; margin: 0 auto; padding-bottom: 120px; }
.faq h2 { grid-column: 1 / span 3; font-size: var(--m); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
.faq-list { grid-column: 5 / span 8; display: grid; gap: 8px; }
.faq-item { background: var(--white); border-radius: var(--radius); transition: background-color .2s var(--ease); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 64px; padding: 16px 22px; font-weight: 700; font-size: var(--body); line-height: 1.35; border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--coral-deep); }
.faq-chev { flex: none; width: 22px; height: 22px; color: var(--coral-deep); transition: transform .3s var(--ease); }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-item p { padding: 0 22px 22px; max-width: 64ch; font-size: 17px; line-height: 1.6; animation: fadeup .35s var(--ease); }

/* ---------- CTA ---------- */
.cta { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; background: var(--coral); color: var(--ink-strong); padding: clamp(96px, 11vw, 136px) var(--gutter); align-items: center; }
.cta-copy { grid-column: 1 / span 6; padding-bottom: 8px; }
.cta h2 { font-size: var(--xl); line-height: .92; letter-spacing: -0.045em; font-weight: 800; max-width: 8ch; }
.cta-copy p { margin-top: 24px; max-width: 38ch; font-weight: 500; }
.dialog { grid-column: 8 / span 4; background: var(--white); color: var(--ink); border-radius: 24px; padding: 28px; box-shadow: /* taste-skill-ignore: floats above content, inside data-ui */ 0 24px 60px rgba(38, 40, 44, .22); display: grid; gap: 10px; }
.dialog-title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.dialog-label { font-size: 15px; font-weight: 700; padding: 0; }
.dialog input[type="email"] { width: 100%; border-radius: 14px; }
.dialog-seg { border: 0; margin: 8px 0 12px; padding: 0; min-width: 0; }
.dialog-seg legend { margin-bottom: 8px; }
.seg-track { display: grid; grid-template-columns: 1fr 1fr; background: var(--sand); border-radius: 14px; padding: 4px; }
.dialog-seg label { position: relative; }
.dialog-seg input { position: absolute; opacity: 0; inset: 0; }
.dialog-seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 11px; font-weight: 600; cursor: pointer; transition: background-color .2s var(--ease); }
.dialog-seg input:checked + span { background: var(--white); color: var(--ink); }
.dialog-seg input:focus-visible + span { outline: 3px solid var(--coral-deep); outline-offset: 1px; }

/* ---------- Footer ---------- */
.foot { padding: 64px 0 24px; }
.foot-line { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: baseline; padding: 28px var(--gutter) 0; font-size: var(--small); }
.foot-right { justify-self: end; color: var(--muted); display: flex; gap: 24px; flex-wrap: wrap; }
.foot-right a { color: var(--ink); font-weight: 600; text-decoration: none; padding: 10px 0; margin: -10px 0; }
.foot-right a:hover { color: var(--coral-deep); text-decoration: underline; text-underline-offset: 4px; }
.credits { margin: 20px var(--gutter) 0; font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 62ch; }

/* ---------- Entrance motion ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { transform: none; }
  .hero-photo img { animation: none; transform: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .topbar { grid-template-columns: auto 1fr auto; }
  .topnav { justify-self: center; }
  .topnav a { padding: 0 10px; }
  .intro-copy { grid-column: 1 / span 6; }
  .intro-thread { grid-column: 8 / span 5; }
  .faq h2 { grid-column: 1 / -1; margin-bottom: 32px; }
  .faq-list { grid-column: 1 / -1; }
  .dialog { grid-column: 7 / span 6; }
}

/* ---------- Phone and small tablet ---------- */
@media (max-width: 860px) {
  :root { --gutter: 20px; --section: 72px; --nav-h: 102px; }
  /* two rows on a phone: the logo and the action, then every section link, still sticky */
  .topbar { grid-template-columns: 1fr auto; grid-template-rows: 56px 46px; gap: 0 12px; padding: 0; }
  .brand { padding-left: var(--gutter); }
  .topbar .btn { margin-right: var(--gutter); }
  .topnav {
    grid-column: 1 / -1; grid-row: 2; justify-self: stretch; align-items: center;
    overflow-x: auto; scrollbar-width: none; padding: 0 calc(var(--gutter) - 12px); scroll-padding-inline: var(--gutter);
  }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav { justify-content: space-between; }
  .topnav a { flex: none; padding: 0 9px; min-height: 40px; font-size: 14px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-text { font-size: 20px; }
  .btn-small { padding: 0 16px; font-size: 14px; }
  .hero { padding-top: 0; }
  .hero { grid-template-columns: 1fr; height: auto; min-height: 0; max-height: none; }
  .hero-photo { order: -1; height: 36svh; min-height: 260px; }
  .hero-card { margin-top: -36px; position: relative; z-index: 2; }
  .tint-band { height: 40px; }
  .hero-card-body { padding: 28px 24px 24px; }
  .notif-stack { left: 12px; right: 12px; bottom: 52px; }
  .notif:not(.is-latest) { display: none; }

  .intro { display: block; }
  .intro-thread { margin-top: 48px; }

  .ask { grid-template-columns: 1fr; }
  .ask { display: flex; flex-direction: column; background: var(--ink); padding: 72px var(--gutter); }
  .ask-in, .ask-out { display: contents; background: none; }
  .ask-split-a { order: 1; margin-bottom: 24px; }
  .ask-body { order: 2; }
  .ask-try { order: 3; margin-top: 28px; }
  .ask-prompt { order: 3; margin-top: 12px; }
  .ask-split-b { order: 4; color: var(--cream); font-size: var(--m); margin: 32px 0 14px; }
  .req { order: 5; width: 100%; }

  .feat, .how { display: flex; flex-direction: column; align-items: stretch; padding: var(--section) 0 0; margin: 0; }
  .feat-col, .how-col { display: contents; }
  .feat-col > h2, .how-col > h2 { order: 1; padding: 0 var(--gutter); }
  .tabs { order: 2; display: flex; flex-wrap: nowrap; gap: 4px; padding: 20px var(--gutter) 0; }
  .tab { flex: 1 1 auto; padding: 0 10px; font-size: 14px; }
  .feat-stage, .how-stage { order: 6; position: relative; top: auto; height: 440px; margin: 20px 0 0; border-radius: 0; place-items: start center; padding-top: 20px; }
  .feat-stage .phone, .how-stage .phone { transform: scale(.86); transform-origin: top center; }
  .feat-block, .how-step { order: 4; min-height: 0; padding: 20px var(--gutter) 0; }
  .js .feat-block:not(.is-active), .js .how-step:not(.is-on) { display: none; }
  .js .feat-block.is-active, .js .how-step.is-on { display: contents; }
  .js .feat-block.is-active > .feat-line, .js .how-step.is-on > .how-line { order: 3; padding: 20px var(--gutter) 0; }
  .js .feat-block.is-active > .ctl { order: 5; margin: 16px var(--gutter) 0; }
  .ctl { gap: 6px; }
  .seg { padding: 0 12px; font-size: 15px; }
  .js .feat-block.is-active > .switch { order: 5; margin: 16px var(--gutter) 0; align-self: flex-start; }
  .js .feat-block.is-active > p:not(.feat-line), .js .how-step.is-on > p:not(.how-line) { order: 4; margin: 0; padding: 12px var(--gutter) 0; }

  .loops { display: flex; flex-direction: column; align-items: stretch; }
  .loops-col { display: contents; }
  .loops h2 { order: 1; }
  .loops-lede { order: 2; }
  /* on phones the photo lives inside its own row and opens and closes with it */
  .loops-photo { display: none; }
  .lr-photo { display: block; margin-top: 14px; height: calc((100vw - 2 * var(--gutter)) * .75); border-radius: var(--radius); overflow: hidden; background: var(--t2); }
  .lr-photo img { width: 100%; height: 100%; object-fit: cover; }
  .js .lr .lr-photo { height: 0; margin-top: 0; opacity: 0; transition: height .45s var(--ease), margin .45s var(--ease), opacity .45s var(--ease); }
  .js .lr.is-on .lr-photo { height: calc((100vw - 2 * var(--gutter)) * .75); margin-top: 14px; opacity: 1; }
  .loop-list { order: 4; margin-top: 24px; }
  .loops-foot { order: 5; }

  .pricing { grid-template-columns: 1fr; }
  .plan { min-height: 0; padding: 56px var(--gutter); }
  .plan-foot .btn { width: 100%; }

  .faq { display: block; }
  .faq-item summary { padding: 14px 18px; }
  .faq-item p { padding: 0 18px 18px; font-size: 16px; }

  .cta { display: flex; flex-direction: column; align-items: stretch; gap: 40px; padding: 80px var(--gutter) 56px; }
  .cta-copy { align-self: auto; }
  .dialog { padding: 22px; }

  .foot { padding-top: 48px; }
  .foot-line { grid-template-columns: 1fr; gap: 8px; }
  .foot-right { justify-self: start; }
}

@media (max-width: 440px) {
  .topnav a[href="#loops"] { display: none; }
}

@media (max-width: 380px) {
  .phone { transform: scale(.94); transform-origin: top center; }
}
