/* Glue Health landing — design tokens from docs/BUILD_PLAN.md §2 (2018 Figma) */
:root {
  --ink: #1C1C1C;
  --ink2: #262626;
  --sun: #F7C128;
  --rose: #E97A98;
  --leaf: #558E79;
  --bark: #A97C50;
  --mist: #F1F2F2;
  --fog: #E6E7E8;
  --cloud: #D1D3D4;
  --white: #FFFFFF;

  --bg: var(--white);
  --bg-alt: var(--mist);
  --card: var(--white);
  --card-border: var(--fog);
  --text: var(--ink);
  --text-muted: #555A5E;
  --stripe-a: var(--mist);
  --stripe-b: var(--fog);
  --leaf-text: #3F7360;

  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1120px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141414;
    --bg-alt: #1C1C1C;
    --card: #262626;
    --card-border: #333;
    --text: #F1F2F2;
    --text-muted: #B8BCC0;
    --stripe-a: #2A2A2A;
    --stripe-b: #303030;
    --leaf-text: #8CC4AE;
  }
}
:root[data-theme="dark"] {
  --bg: #141414;
  --bg-alt: #1C1C1C;
  --card: #262626;
  --card-border: #333;
  --text: #F1F2F2;
  --text-muted: #B8BCC0;
  --stripe-a: #2A2A2A;
  --stripe-b: #303030;
  --leaf-text: #8CC4AE;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 6.5vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 4.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.nowrap { white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: 56px 0; }
.section--mist { background: var(--bg-alt); }
.section__lede { max-width: 56ch; color: var(--text-muted); margin-bottom: 1.6em; }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--leaf-text); margin: 0 0 .9em;
}
.eyebrow--sun { color: var(--sun); }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--sun); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 8px; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 10px 22px; border-radius: 999px;
  font-weight: 800; font-size: 1rem; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; font-family: inherit; line-height: 1.1; transition: transform .12s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--rose { background: var(--rose); color: var(--ink); }
.btn--rose:hover { background: #F08BA6; }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { background: #FFD04A; }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--sm { min-height: 40px; padding: 6px 16px; font-size: .92rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 1.2em; }

/* ---------- Dark band: header + hero ---------- */
.band { background: var(--ink); color: var(--white); }

.topbar { position: relative; z-index: 10; }
.topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding-top: 8px; padding-bottom: 8px; }
.brand img { width: 84px; height: auto; }

.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px; border: 0; background: transparent; cursor: pointer;
}
.dots { display: grid; grid-template-columns: 7px 7px; gap: 5px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--white); display: block; }
.menu-btn[aria-expanded="true"] .dots i { background: var(--sun); }

.site-nav {
  display: none; position: absolute; left: var(--gutter); right: var(--gutter); top: 100%;
  background: var(--ink2); border-radius: var(--radius); padding: 10px;
  flex-direction: column; gap: 2px; box-shadow: 0 20px 40px rgba(0,0,0,.35);
}
.site-nav.is-open { display: flex; }
.site-nav a { text-decoration: none; font-weight: 700; padding: 12px 14px; border-radius: 10px; }
.site-nav a:not(.btn):hover { background: rgba(255,255,255,.08); }
.site-nav .btn { margin-top: 6px; }

.hero { padding: 24px 0 0; overflow: hidden; }
.hero__grid { display: grid; gap: 28px; }
.hero__copy { padding-bottom: 8px; }
.hero h1 { color: var(--white); }
.lede { font-size: 1.08rem; color: #D7D9DB; max-width: 54ch; }
.hero__note { color: #B8BCC0; font-size: .95rem; margin: 0; }

.stores { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 .9em; }
.store-pill {
  display: inline-block; border: 1.5px solid rgba(255,255,255,.3); border-radius: 999px;
  padding: 6px 12px; font-size: .82rem; font-weight: 700; color: #D7D9DB; letter-spacing: .02em;
}

.hero__art { display: flex; justify-content: center; }
.glu-stage { position: relative; width: min(100%, 360px); height: 340px; }
.glu-stage::before {
  content: ""; position: absolute; left: -4%; right: -4%; bottom: -6px; height: 46%;
  background: var(--mist); border-radius: 50% 50% 0 0 / 100% 100% 0 0; opacity: .96;
}
.glu-anim {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 240px; height: 300px;
}
.glu-anim svg, .glu-anim__fallback { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.glu-anim__canvas { position: absolute; inset: 0; }
.glu-anim.is-animated .glu-anim__fallback { display: none; }
.glu-peek { position: absolute; }
.glu-peek--a { width: 110px; left: 0; bottom: 6px; }
.glu-peek--b { width: 96px; right: 4px; bottom: 10px; }

.toast {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--ink); font-weight: 700; font-size: .85rem;
  padding: 8px 12px; border-radius: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.35); white-space: nowrap;
}
.toast--a { top: 14px; left: 0; }
.toast--b { top: 64px; right: 0; }
.toast__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.toast__dot--leaf { background: var(--leaf); }
.toast__dot--rose { background: var(--rose); }

/* ---------- Why strip ---------- */
.why { background: var(--bg); border-bottom: 1px solid var(--card-border); }
.why__grid { display: grid; gap: 18px; padding-top: 28px; padding-bottom: 28px; }
.stat { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.stat strong { font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1; min-width: 4.2ch; }
.stat span { color: var(--text-muted); font-size: .95rem; }

/* ---------- How it works ---------- */
.steps { display: grid; gap: 22px; margin-top: 1.4em; }
.step {
  position: relative; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 24px 22px 22px;
}
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; background: var(--sun); color: var(--ink);
  font-weight: 800; font-size: 1.35rem; margin-bottom: 14px;
}
.step h3 { margin-bottom: .35em; }
.step p { color: var(--text-muted); }

.glu-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.glu-row img { width: 46px; height: 46px; object-fit: contain; }

.family { display: flex; gap: 14px; margin-top: 12px; }
.family figure { margin: 0; text-align: center; }
.family img { width: 60px; height: 60px; object-fit: contain; margin: 0 auto 4px; }
.family figcaption { font-size: .8rem; font-weight: 700; color: var(--rose); }

.feed {
  position: relative; background: var(--ink); color: var(--white); border-radius: 16px;
  padding: 14px 16px 14px; margin-top: 12px; overflow: hidden;
}
.feed__head { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: #B8BCC0; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.badge { background: var(--rose); color: var(--ink); border-radius: 999px; min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; letter-spacing: 0; }
.feed__item { font-size: .9rem; padding: 6px 0; padding-right: 64px; border-top: 1px solid rgba(255,255,255,.08); }
.feed__item time { color: #B8BCC0; font-size: .8rem; margin-left: 6px; }
.feed .name { color: var(--rose); }
.heart { color: var(--rose); }
.feed__peek { position: absolute; right: -6px; bottom: -10px; width: 74px; height: 74px; object-fit: contain; transform: rotate(-8deg); }

/* ---------- Product shots ---------- */
.phones { display: grid; gap: 26px; margin-top: 1.6em; justify-items: center; }
.phone-fig { margin: 0; width: min(100%, 250px); }
.phone {
  background: var(--ink); border-radius: 34px; padding: 10px; box-shadow: 0 24px 48px rgba(0,0,0,.18);
}
.phone img { border-radius: 24px; width: 100%; aspect-ratio: 640 / 1136; object-fit: cover; }
.phone-fig figcaption { text-align: center; color: var(--text-muted); font-size: .9rem; margin-top: 12px; font-weight: 600; }

/* ---------- Avatar states ---------- */
.states { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.state {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 18px 14px 14px; text-align: center; border-top: 6px solid var(--cloud);
}
.state img { width: 96px; height: 96px; object-fit: contain; margin: 0 auto 10px; }
.state h3 { font-size: 1.05rem; margin-bottom: .3em; }
.state p { font-size: .9rem; color: var(--text-muted); margin: 0; }
.state--thriving { border-top-color: var(--leaf); }
.state--okay { border-top-color: var(--sun); }
.state--tired { border-top-color: var(--bark); }
.state--sick { border-top-color: var(--rose); }

/* ---------- Features ---------- */
.features { display: grid; gap: 14px; margin-top: 1.4em; }
.feature { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 20px; }
.feature h3 { font-size: 1.08rem; margin: 12px 0 .3em; }
.feature p { font-size: .95rem; color: var(--text-muted); margin: 0; }
.feature__icon { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.feature__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature__icon--sun { background: var(--sun); }
.feature__icon--rose { background: var(--rose); }
.feature__icon--leaf { background: var(--leaf); }
.feature__icon--leaf svg { stroke: var(--white); }

/* ---------- Care teams ---------- */
.care { background: var(--ink); color: var(--white); }
.care__grid { display: grid; gap: 28px; }
.care p { color: #D7D9DB; }
.checks { display: grid; gap: 10px; margin: 1em 0 1.3em; }
.checks li { position: relative; padding-left: 30px; color: #D7D9DB; }
.checks li b { color: var(--white); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='%23558E79'/><path d='M7 12.5l3 3 7-7' stroke='white' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}
.audience { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.audience span { border: 1.5px solid rgba(255,255,255,.3); border-radius: 999px; padding: 5px 12px; font-size: .82rem; font-weight: 700; color: #D7D9DB; }

.roster { background: var(--white); color: var(--ink); border-radius: var(--radius); overflow: hidden; align-self: center; width: 100%; }
.roster__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-weight: 800; font-size: .95rem; }
.roster__head span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #555A5E; }
.roster__row { display: grid; grid-template-columns: 40px 1fr auto; grid-template-areas: "img name pill" "img bar bar"; gap: 4px 12px; align-items: center; padding: 10px 16px; }
.roster__row:nth-child(even) { background: var(--mist); }
.roster__row:nth-child(odd):not(:first-child) { background: var(--fog); }
.roster__row img { grid-area: img; width: 40px; height: 40px; object-fit: contain; }
.roster__name { grid-area: name; font-weight: 800; font-size: .95rem; }
.roster__name small { font-weight: 600; color: #555A5E; margin-left: 6px; }
.roster__bar { grid-area: bar; height: 8px; border-radius: 4px; background: var(--cloud); overflow: hidden; }
.roster__bar i { display: block; height: 100%; background: var(--sun); border-radius: 4px; }
.pill { grid-area: pill; font-size: .72rem; font-weight: 800; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.pill--leaf { background: var(--leaf); color: var(--white); }
.pill--sun { background: var(--sun); color: var(--ink); }
.pill--rose { background: var(--rose); color: var(--ink); }

/* ---------- Coming soon ---------- */
.soon { display: grid; gap: 14px; margin-top: 1.4em; }
.soon__card { background: var(--card); border: 1px dashed var(--cloud); border-radius: var(--radius); padding: 22px; }
.tag { display: inline-block; background: var(--sun); color: var(--ink); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; border-radius: 999px; padding: 3px 10px; margin-bottom: 12px; }
.soon__card h3 { margin-bottom: .3em; }
.soon__card p { color: var(--text-muted); margin: 0; }

/* ---------- Waitlist ---------- */
.waitlist { padding-top: 64px; }
.waitlist__box {
  position: relative; max-width: 640px; background: var(--card); border: 1px solid var(--card-border);
  border-radius: 24px; padding: 32px 22px 26px; text-align: left;
}
.waitlist__box > p { color: var(--text-muted); max-width: 48ch; }
.waitlist__glu { position: absolute; right: 14px; top: -54px; width: 96px; height: 96px; object-fit: contain; }

.form { margin-top: 1.4em; }
.form__row { display: grid; gap: 6px; margin-bottom: 14px; }
.form label { font-weight: 700; font-size: .92rem; }
.form input[type="email"], .form select {
  width: 100%; min-height: 50px; border-radius: 12px; border: 2px solid var(--cloud); background: var(--bg-alt);
  color: var(--text); font: inherit; padding: 10px 14px;
}
.form input:focus, .form select:focus { outline: none; border-color: var(--sun); }
.form input[aria-invalid="true"] { border-color: var(--rose); }
.form__row--submit { margin-top: 18px; }
.form__row--submit .btn { width: 100%; }
.form__status { font-weight: 700; margin: 10px 0 0; min-height: 1.4em; }
.form__status.is-ok { color: var(--leaf-text); }
.form__status.is-err { color: #C6456B; }
.form__fine { font-size: .82rem; color: var(--text-muted); margin: 10px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form.is-sent .form__row, .form.is-sent .form__fine { display: none; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #D7D9DB; padding: 44px 0 32px; margin-top: 24px; }
.footer__grid { display: grid; gap: 22px; }
.footer__brand img { width: 76px; margin-bottom: 10px; }
.footer__brand p { margin: 0; font-weight: 700; color: var(--white); }
.footer__links { display: grid; gap: 8px; }
.footer__links a { text-decoration: none; font-weight: 600; width: fit-content; }
.footer__links a:hover { color: var(--sun); text-decoration: underline; }
.footer__legal { font-size: .82rem; color: #9DA2A6; margin: 0; border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; }

/* ---------- Legal pages ---------- */
.legal { padding: 40px 0 64px; }
.legal .wrap { max-width: 720px; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal p, .legal li { color: var(--text); }
.legal ul { list-style: disc; padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.notice { background: var(--sun); color: var(--ink); border-radius: 12px; padding: 12px 16px; font-weight: 700; }
.back { display: inline-block; margin-top: 2em; font-weight: 700; }

/* Dark theme: the characters' black legs need a pale plate, and phone bezels need an edge */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .state img { background: var(--mist); border-radius: 50%; padding: 6px; }
  :root:not([data-theme="light"]) .phone { border: 1px solid #3a3a3a; }
  :root:not([data-theme="light"]) .waitlist__glu { background: var(--mist); border-radius: 50%; padding: 6px; }
}
:root[data-theme="dark"] .state img { background: var(--mist); border-radius: 50%; padding: 6px; }
:root[data-theme="dark"] .phone { border: 1px solid #3a3a3a; }
:root[data-theme="dark"] .waitlist__glu { background: var(--mist); border-radius: 50%; padding: 6px; }

/* ---------- Tablet / desktop ---------- */
@media (min-width: 640px) {
  .section { padding: 72px 0; }
  .why__grid { grid-template-columns: repeat(3, 1fr); }
  .stat { grid-template-columns: 1fr; gap: 6px; }
  .states { grid-template-columns: repeat(4, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .soon { grid-template-columns: repeat(2, 1fr); }
  .phones { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .phone-fig { width: 100%; max-width: 250px; }
  .form__row--submit .btn { width: auto; }
  .waitlist__box { padding: 40px 36px 32px; }
  .waitlist__glu { right: 30px; top: -58px; width: 110px; height: 110px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__legal { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .menu-btn { display: none; }
  .site-nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 4px; background: none; padding: 0; box-shadow: none; }
  .site-nav a { padding: 8px 12px; font-size: .95rem; }
  .site-nav .btn { margin: 0 0 0 8px; }
  .topbar__row { min-height: 84px; }
  .brand img { width: 96px; }

  .hero { padding: 40px 0 0; }
  .hero__grid { grid-template-columns: 1.15fr 1fr; align-items: end; gap: 40px; }
  .hero__copy { padding-bottom: 56px; }
  .glu-stage { width: 440px; height: 420px; }
  .glu-anim { width: 300px; height: 380px; }
  .glu-peek--a { width: 140px; left: -10px; bottom: 8px; }
  .glu-peek--b { width: 120px; right: -6px; bottom: 14px; }
  .toast--a { top: 30px; left: -8px; }
  .toast--b { top: 90px; right: -10px; }

  .steps { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(3, 1fr); }
  .care__grid { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
  .footer__grid { grid-template-columns: 1.2fr 1fr; }
}
