/* Hol Fitness Journal website.
   Colors are the app's `natural` theme (src/theme/theme.ts). The *-ink tokens are
   darker variants used for small text so it passes WCAG AA (4.5:1) on cream. */
:root {
  --bg: #EDE4D3;
  --surface: #F6EFE1;
  --surface-2: #E5D9C3;
  --border: #D8CBB3;
  --text: #2E2A22;
  --text-2: #655B49;
  --terra: #B5613A;
  --terra-ink: #9A4A26;
  --clay: #E7C9B4;
  --sage: #6E7F63;
  --sage-ink: #55644B;
  --sage-soft: #D6DBC7;
  --forest: #3B4A3A;
  --forest-deep: #2F3B2E;
  --on-band: #EDE4D3;
  --on-band-2: #CFD3C2;
  --band-accent: #F2AE86;
  --carbs: #C58A3A;
  --fat: #9C6B4A;
  --protein: #5E8C55;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius: 28px;
  --wrap: 1180px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 30px 70px rgba(46, 42, 34, .16);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
a { color: var(--terra-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--terra-ink); outline-offset: 3px; border-radius: 6px; }
.band :focus-visible { outline-color: var(--band-accent); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--surface); padding: 10px 16px; border-radius: 12px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-md { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-lg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
section { position: relative; }
/* `clip` (not `hidden`) so the sticky tour phone still sticks; body's own overflow goes to the viewport and won't clip */
main { overflow-x: clip; }

/* ── type ── */
h1, .display, .statement { font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 2rem + 4.2vw, 5.4rem); }
.display { font-size: clamp(2.25rem, 1.6rem + 3vw, 4.25rem); margin-bottom: 20px; }
.accent { color: var(--terra); }
.lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.3rem); color: var(--text-2); line-height: 1.55; max-width: 38em; text-wrap: pretty; }
.kicker { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); margin-bottom: 14px; }
.kicker.sage { color: var(--sage-ink); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .9375rem; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 7px 16px; margin-bottom: 26px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--protein); box-shadow: 0 0 0 4px rgba(94, 140, 85, .2); }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .9375rem; }
.btn-primary { background: var(--terra-ink); color: var(--surface); }
.btn-primary:hover { background: #87401f; }
.btn-cream { background: var(--on-band); color: var(--forest-deep); }
.btn-cream:hover { background: #fff8ea; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; margin-top: 22px; min-height: 44px; }
.text-link .ic { transition: transform .2s var(--ease); }
.text-link:hover .ic { transform: translateX(4px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-row.stack { flex-direction: column; align-items: stretch; margin-top: 20px; }

.store { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 22px 8px 16px; border-radius: 16px; background: var(--text); color: var(--surface); text-decoration: none; transition: transform .2s var(--ease), opacity .2s; }
.store .ic { width: 26px; height: 26px; }
.store span { display: flex; flex-direction: column; font-weight: 700; font-size: 1.125rem; line-height: 1.15; }
.store small { font-size: .75rem; font-weight: 500; opacity: .85; }
.store:hover { transform: translateY(-2px); }
.store[aria-disabled="true"] { cursor: default; opacity: .88; }
.store[aria-disabled="true"]:hover { transform: none; }
.soon-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px dashed rgba(237, 228, 211, .45); color: var(--on-band-2); font-weight: 700; font-size: .9375rem; }
.store-band { background: var(--on-band); color: var(--forest-deep); justify-content: flex-start; }

/* ── header ── */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(237, 228, 211, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--border); }
.header-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -.02em; font-size: 1.0625rem; min-height: 44px; }
.brand img { border-radius: 50%; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; font-size: .9375rem; padding: 10px 12px; border-radius: 10px; transition: background-color .2s; }
.nav a:not(.btn):hover { background: var(--surface-2); }
.nav .btn { margin-left: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn .ic { width: 24px; height: 24px; }

/* ── hero ── */
.hero { padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(150px, 20vw, 290px); overflow: hidden; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: 40px; }
.hero h1 { margin-bottom: 22px; }
.hero-phone { --ps: .72; justify-self: center; }
.landscape { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(230px, 31vw, 470px); z-index: 1; pointer-events: none; }
.landscape .layer { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.landscape .sun { position: absolute; right: 13%; top: 4%; width: clamp(70px, 9vw, 130px); aspect-ratio: 1; border-radius: 50%; background: var(--terra); opacity: .92; will-change: transform; }

/* ── bands ── */
.band { background: var(--forest); color: var(--on-band); }
.on-band { color: var(--on-band); }
.kicker.on-band { color: var(--band-accent); }
.lead.on-band { color: var(--on-band-2); }
.accent-band { color: var(--band-accent); }

.promise { padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 9vw, 120px); margin-top: -1px; }
.promise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); margin-top: 18px; }
.promise-item .ic-lg { color: var(--band-accent); margin-bottom: 18px; }
.promise-item h3 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; margin-bottom: 12px; }
.promise-item p { color: var(--on-band-2); max-width: 30ch; }
.band-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--on-band); font-weight: 700; min-height: 44px; }

/* ── hook ── */
.hook { padding: clamp(80px, 11vw, 150px) 0 clamp(40px, 6vw, 80px); }
.hook-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.hook .display { font-size: clamp(2.5rem, 1.6rem + 3.8vw, 4.8rem); }
.notes { background: #FBF7EE; border: 1px solid var(--border); border-radius: 32px; box-shadow: var(--shadow); padding: 36px 40px 44px; transform: rotate(-3deg); min-height: 380px; }
.notes-hd { font-size: .875rem; font-weight: 600; color: var(--text-2); }
.notes-tt { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; margin: 4px 0 14px; }
.notes-body { font: 1.125rem/1.75 var(--mono); color: #3a352b; white-space: pre-wrap; margin: 0; }
.caret { display: inline-block; width: 2px; height: 1.15em; background: var(--terra); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }


/* ── paying twice: a receipt that prints itself ── */
.pay { padding-top: clamp(40px, 6vw, 80px); }
.hook-grid.flip { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
.receipt-wrap { position: relative; justify-self: center; width: min(100%, 430px); transform: rotate(2.5deg); filter: drop-shadow(0 26px 34px rgba(46, 42, 34, .18)); }
.receipt { background: #FBF7EE; padding: 30px 30px 44px; border-radius: 6px 6px 0 0; font: 1rem/1.5 var(--mono); color: #3a352b;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 22px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 22px 100%; }
.rc-head { display: flex; justify-content: space-between; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); padding-bottom: 14px; margin-bottom: 8px; border-bottom: 2px dashed var(--border); }
.rc-line { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.rc-small { font-size: .8125rem; color: var(--text-2); padding-top: 0; }
.rc-rule { border-top: 2px dashed var(--border); margin: 10px 0; }
.rc-data span:last-child { color: var(--terra-ink); font-weight: 700; background: linear-gradient(transparent 55%, rgba(181, 97, 58, .2) 55%); }
.rc-total { font-weight: 800; font-size: 1.125rem; }
.rc-stamp { position: absolute; right: 22px; bottom: -20px; font: 800 1.375rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--terra-ink); border: 3px solid currentColor; border-radius: 10px; padding: 8px 14px; transform: rotate(-14deg); opacity: .85; mix-blend-mode: multiply; }

/* ── tour ── */
.tour { padding: clamp(60px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); }
.tour-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-top: 24px; }
.tour-phone { --ps: var(--tour-ps, .74); position: sticky; top: calc(var(--header-h) + (100vh - var(--header-h) - 948px * var(--ps)) / 2); align-self: start; justify-self: center; z-index: 2; }
.steps { list-style: none; padding: 0; }
.step { min-height: 88vh; display: flex; align-items: center; }
.step-card { max-width: 30rem; opacity: .32; transform: translateY(12px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.step.is-active .step-card { opacity: 1; transform: none; }
.step-num { font-weight: 800; font-size: .875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--terra-ink); margin-bottom: 10px; }
.step h3 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; margin-bottom: 16px; }
.step p { color: var(--text-2); font-size: 1.1875rem; }

/* ── features ── */
.features { padding: clamp(60px, 8vw, 110px) 0; }
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.feat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform .25s var(--ease), box-shadow .25s; }
.feat:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(46, 42, 34, .1); }
.feat .ic-md { color: var(--terra); margin-bottom: 18px; }
.feat h3 { font-size: 1.1875rem; font-weight: 750; letter-spacing: -.015em; margin-bottom: 8px; line-height: 1.3; }
.feat p { color: var(--text-2); font-size: 1rem; }

/* ── yours ── */
.yours { padding: clamp(80px, 11vw, 150px) 0; text-align: center; background: linear-gradient(180deg, var(--bg), var(--surface) 50%, var(--bg)); }
.statement { font-size: clamp(2.4rem, 1.3rem + 4.4vw, 5rem); margin-bottom: 26px; }
.yours .narrow { width: min(1080px, 100% - 32px); }
.statement .line { display: block; }
.yours .lead { margin-inline: auto; }

/* ── guides ── */
.guides { padding: clamp(60px, 8vw, 110px) 0; }
.video-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--text); margin-top: 36px; aspect-ratio: 16 / 9; }
.promo { width: 100%; height: 100%; object-fit: cover; }
.guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.guide { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 14px 14px 20px; }
.guide-thumb { position: relative; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; font: inherit; border-radius: 14px; background: linear-gradient(160deg, var(--surface-2), var(--sage-soft)); display: flex; align-items: center; justify-content: center; color: var(--sage-ink); margin-bottom: 14px; overflow: hidden; }
.guide-thumb .ic-md { width: 36px; height: 36px; }
.soon { position: absolute; left: 10px; bottom: 10px; font-size: .75rem; font-weight: 700; background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 4px 10px; }
.guide-thumb.has-video { cursor: pointer; background: var(--text); }
.guide-thumb.has-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.guide-thumb.has-video:hover img { transform: scale(1.04); }
.play { position: relative; width: 56px; height: 56px; border-radius: 50%; background: rgba(246, 239, 225, .94); color: var(--terra-ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.play svg { width: 24px; height: 24px; fill: currentColor; margin-left: 3px; }
.guide-thumb.has-video:hover .play { transform: scale(1.08); }
.guide h3 { font-size: 1.0625rem; font-weight: 750; padding: 0 6px; margin-bottom: 4px; }
.guide p { font-size: .9375rem; color: var(--text-2); padding: 0 6px; }

/* ── guide video lightbox ── */
.lightbox { margin: auto; width: min(1100px, 100% - 32px); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 22px; background: var(--forest-deep); color: var(--on-band); overflow: hidden; }
.lightbox::backdrop { background: rgba(30, 27, 21, .72); backdrop-filter: blur(4px); }
.lb-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 20px; font-weight: 700; }
.lb-close { width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-close:hover { background: rgba(237, 228, 211, .12); }
.lightbox video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }

/* ── faq ── */
.faq { padding: clamp(60px, 8vw, 110px) 0 clamp(100px, 12vw, 160px); }
.faq-list { margin-top: 28px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; font-weight: 700; font-size: 1.1875rem; cursor: pointer; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--terra-ink); transition: transform .25s var(--ease); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { padding: 0 4px 24px; color: var(--text-2); max-width: 44em; }

/* ── community ── */
.community { padding: clamp(40px, 6vw, 70px) 0 clamp(70px, 9vw, 110px); }
.band-top { position: absolute; left: 0; right: 0; top: -39px; width: 100%; height: 40px; }
.comm-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.download { background: rgba(237, 228, 211, .07); border: 1px solid rgba(237, 228, 211, .16); border-radius: var(--radius); padding: 32px; text-align: center; }
.dl-logo { width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 14px; }
.dl-title { font-weight: 800; font-size: 1.375rem; letter-spacing: -.02em; }

/* ── footer ── */
.site-footer { padding: 48px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.foot-brand img { width: 96px; height: auto; margin-bottom: 10px; }
.foot-brand p { color: var(--text-2); font-size: .9375rem; }
.foot-brand .fine { font-size: .875rem; margin-top: 4px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.foot-links a { color: var(--text); font-weight: 600; text-decoration: none; padding: 10px 12px; border-radius: 10px; }
.foot-links a:hover { background: var(--surface-2); }
.copy { grid-column: 1 / -1; color: var(--text-2); font-size: .875rem; border-top: 1px solid var(--border); padding-top: 20px; }

/* ── legal pages ── */
.legal { padding: clamp(40px, 6vw, 72px) 0 clamp(80px, 10vw, 120px); }
.legal .doc { width: min(760px, 100% - 32px); margin-inline: auto; }
.legal h1 { font-size: clamp(2.25rem, 1.8rem + 2vw, 3.5rem); margin-bottom: 10px; }
.legal .updated { color: var(--text-2); font-weight: 600; margin-bottom: 28px; }
.legal .intro { font-size: 1.125rem; }
.legal .toc { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 20px 24px; margin: 28px 0 8px; }
.legal .toc p { font-weight: 700; margin-bottom: 6px; }
.legal .toc ol { margin: 0; padding-left: 1.25em; columns: 2; column-gap: 32px; }
.legal .toc li { padding: 3px 0; break-inside: avoid; }
.legal h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin: 40px 0 12px; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal p { margin: 12px 0; }
.legal ul { padding-left: 1.25em; }
.legal li { margin: 8px 0; }
.legal li::marker { color: var(--terra); }
.legal .back { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 20px; min-height: 44px; }
.legal .back .ic { transform: rotate(180deg); }
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }

/* ═════════════════ PHONE MOCKUP (mirrors the app's screens) ═════════════════ */
.hero-phone, .tour-phone { width: calc(446px * var(--ps)); height: calc(948px * var(--ps)); }
.phone { width: 446px; height: 948px; transform: scale(var(--ps)); transform-origin: 0 0; border-radius: 72px; background: #24211b; padding: 13px; box-shadow: 0 40px 90px rgba(46, 42, 34, .28), inset 0 0 0 2px #3a362e; }
.screen { position: relative; width: 420px; height: 922px; border-radius: 60px; overflow: hidden; background: var(--bg); }
.scr { position: absolute; left: 0; top: 0; width: 390px; height: 856px; transform: scale(1.0769); transform-origin: 0 0; font-family: var(--font); color: var(--text); line-height: normal; }
.island { position: absolute; left: 50%; top: 11px; width: 118px; height: 34px; margin-left: -59px; border-radius: 20px; background: #000; z-index: 20; }
.status { position: absolute; top: 0; left: 0; right: 0; height: 50px; display: flex; justify-content: space-between; align-items: center; padding: 6px 34px 0 40px; font-weight: 600; font-size: 16px; z-index: 19; transition: color .3s; }
.status-r { display: flex; gap: 6px; align-items: center; }
.bat { width: 25px; height: 12px; border: 1.5px solid currentColor; border-radius: 4px; position: relative; opacity: .9; }
.bat::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: currentColor; border-radius: 1.5px; }
.mi { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m16 { width: 16px; height: 16px; } .m18 { width: 18px; height: 18px; } .m22 { width: 22px; height: 22px; } .m24 { width: 24px; height: 24px; }
.faint { color: var(--text-2); }
.view { position: absolute; inset: 0; padding-top: 50px; }
.scr .card { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 16px; margin: 0 16px 16px; }
.scr .row { display: flex; align-items: center; }
.scr .sb { justify-content: space-between; }
.scr .center { justify-content: center; }
.g4 { gap: 4px; } .g8 { gap: 8px; } .g12 { gap: 12px; } .g14 { gap: 14px; } .g16 { gap: 16px; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mb4 { margin-bottom: 4px; } .mb6 { margin-bottom: 6px; } .mb10 { margin-bottom: 10px; } .mb16 { margin-bottom: 16px; } .mb18 { margin-bottom: 18px; }
.t-sm { font-size: 12px; line-height: 16px; } .t-md2 { font-size: 14px; line-height: 20px; } .t-md { font-size: 16px; line-height: 24px; font-weight: 500; } .t-body { font-size: 16px; line-height: 24px; }
.t-ts { font-size: 14px; line-height: 20px; font-weight: 500; } .t-lg { font-size: 16px; line-height: 24px; } .t-title { font-size: 22px; line-height: 28px; }
.t-hs { font-size: 24px; line-height: 32px; } .t-hm { font-size: 28px; line-height: 36px; } .t-xl { font-size: 22px; line-height: 28px; } .t-ds { font-size: 36px; line-height: 44px; }
.b6 { font-weight: 600; } .b7 { font-weight: 700; } .t2 { color: #7A6F5C; } .pri { color: var(--terra); }
.pill { border-radius: 999px; height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: 15px; }
.contained { background: var(--terra); color: var(--surface); transition: filter .15s; }
.outlined { margin: 0 16px; border: 1px solid var(--border); color: var(--terra); }
.tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; background: var(--surface); border-top: 1px solid var(--border); display: flex; justify-content: space-around; padding-top: 8px; z-index: 5; }
.tab { width: 64px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #7A6F5C; font-size: 11px; }
.tab .mi { width: 25px; height: 25px; }
.tab.on { color: var(--terra); }

/* home screen */
.scene { position: absolute; left: 0; top: 0; width: 390px; height: 285px; }
.home-view { padding: 50px 16px 0; }
.home-view .card { margin: 0 0 14px; }
.home-head { display: flex; justify-content: space-between; align-items: flex-start; margin: 8px 0 14px; }
.h-title { font-size: 28px; line-height: 32px; font-weight: 800; letter-spacing: -.5px; }
.h-date { text-align: right; }
.h-day { font-size: 16px; font-weight: 700; color: var(--terra); }
.h-sub { font-size: 14px; color: #7A6F5C; }
.date-pill { width: max-content; margin: 0 auto 16px; display: flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 10px; }
.date-pill span { min-width: 120px; text-align: center; font-size: 16px; font-weight: 600; color: var(--terra); }
.badge { background: var(--terra); color: var(--surface); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.macros { display: flex; gap: 16px; margin-top: 8px; }
.macros div { display: flex; flex-direction: column; }
.macros b { font-size: 14px; font-weight: 600; }
.macros span { font-size: 11px; color: #7A6F5C; }
.c-pro { color: var(--protein); } .c-carb { color: var(--carbs); } .c-fat { color: var(--fat); }
.ring70 { width: 70px; height: 70px; }
.hero-ring { stroke-dasharray: 204.2; stroke-dashoffset: 71.5; }

/* set logger */
.ex-head { padding: 16px 16px 8px; }
.progress { margin: 4px 16px 16px; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress-fill { height: 100%; width: 25%; background: var(--terra); border-radius: 999px; transition: width .5s var(--ease); }
.setof { min-width: 90px; text-align: center; }
.tonal { width: 40px; height: 40px; border-radius: 20px; background: var(--sage-soft); display: flex; align-items: center; justify-content: center; color: #2f3a2a; }
.tonal .mi { width: 22px; height: 22px; }
.val { min-width: 100px; padding: 8px 12px; background: var(--surface-2); border-radius: 16px; text-align: center; font-size: 28px; line-height: 36px; transition: transform .2s var(--ease); }
.val.pop { transform: scale(1.12); }
.set-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.set-new { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.set-new > * { overflow: hidden; }
.set-new.open { grid-template-rows: 1fr; }
.set-new.open .set-row { animation: flash 1.4s ease-out; }
@keyframes flash { from { background: rgba(181, 97, 58, .18); } to { background: transparent; } }
.chart { width: 326px; height: 96px; margin-top: 8px; }
.chart-line { stroke-dasharray: 330; stroke-dashoffset: 330; }
.chart-dot { opacity: 0; transition: opacity .3s .9s; }
.drawn .chart-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease); }
.drawn .chart-dot { opacity: 1; }
.touch { position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(46, 42, 34, .22); border: 3px solid rgba(255, 255, 255, .9); box-shadow: 0 4px 14px rgba(0, 0, 0, .2); opacity: 0; transform: scale(1.3); pointer-events: none; z-index: 30; }
.touch.tap { animation: tap .55s var(--ease); }
@keyframes tap { 0% { opacity: 0; transform: scale(1.35); } 35% { opacity: 1; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.1); } }

/* scanner */
.scan-view { padding-top: 0; }
.cam { position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 45%, #b9a58a 0%, #8a755c 50%, #4d4033 100%); overflow: hidden; }
.bar-pack { position: absolute; left: 70px; top: 262px; width: 250px; height: 290px; border-radius: 22px; background: linear-gradient(160deg, #d99a4a, #b9742f); box-shadow: 0 30px 60px rgba(0, 0, 0, .45); transform: translate(-40px, 120px) rotate(-9deg) scale(.9); transition: transform 1.2s var(--ease); }
.scan-view.drift .bar-pack { transform: rotate(-1.5deg); }
.bp-brand { position: absolute; left: 22px; top: 22px; color: #fff6e6; font-weight: 900; font-size: 30px; line-height: 1; letter-spacing: -.5px; }
.bp-kind { position: absolute; left: 22px; top: 92px; color: #fbe3c0; font-weight: 600; font-size: 15px; }
.bp-code { position: absolute; left: 35px; top: 150px; width: 180px; height: 110px; background: #fffaf0; border-radius: 8px; padding: 12px 14px 22px; display: flex; gap: 2px; }
.bp-code i { display: block; height: 100%; background: #1d1a15; }
.bp-code span { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font: 600 11px Menlo, monospace; color: #1d1a15; letter-spacing: 1px; }
.ov { position: absolute; background: rgba(0, 0, 0, .5); }
.ov-t { left: 0; right: 0; top: 0; height: 292px; } .ov-b { left: 0; right: 0; top: 565px; bottom: 0; } .ov-l { left: 0; width: 58px; top: 292px; height: 273px; } .ov-r { right: 0; width: 59px; top: 292px; height: 273px; }
.corners i { position: absolute; width: 30px; height: 30px; border: 0 solid var(--terra); transition: border-color .15s, transform .15s; }
.c-tl { left: 58px; top: 292px; border-top-width: 3px !important; border-left-width: 3px !important; }
.c-tr { left: 301px; top: 292px; border-top-width: 3px !important; border-right-width: 3px !important; }
.c-bl { left: 58px; top: 535px; border-bottom-width: 3px !important; border-left-width: 3px !important; }
.c-br { left: 301px; top: 535px; border-bottom-width: 3px !important; border-right-width: 3px !important; }
.scan-view.beep .corners i { border-color: #fff6e6; transform: scale(1.2); }
.scanline { position: absolute; left: 70px; width: 250px; top: 300px; height: 2px; background: var(--terra); box-shadow: 0 0 12px 2px rgba(181, 97, 58, .8); animation: sweep 1.5s ease-in-out infinite alternate; }
.scan-view.beep .scanline, .scan-view.look .scanline { opacity: 0; }
@keyframes sweep { to { top: 555px; } }
.circ { position: absolute; top: 62px; width: 48px; height: 48px; border-radius: 24px; background: rgba(0, 0, 0, .5); color: #fff; display: flex; align-items: center; justify-content: center; }
.circ .mi { width: 26px; height: 26px; }
.circ-l { left: 20px; } .circ-r { right: 20px; }
.hint { position: absolute; left: 50%; transform: translateX(-50%); bottom: 120px; background: var(--surface); border-radius: 999px; padding: 10px 20px; font-size: 16px; white-space: nowrap; display: flex; align-items: center; gap: 10px; transition: opacity .2s; }
.hint-b { opacity: 0; }
.scan-view.look .hint-a { opacity: 0; } .scan-view.look .hint-b { opacity: 1; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--clay); border-top-color: var(--terra); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* nutrition */
.nut-head { padding: 12px 16px 4px; }
.today { min-width: 120px; text-align: center; font-size: 16px; font-weight: 600; color: var(--terra); }
.ring80 { width: 80px; height: 80px; margin-right: 4px; }
[data-bind="ring"] { transition: stroke-dashoffset .9s var(--ease); }
.mrow { margin-top: 14px; }
.track { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.fill { height: 100%; width: 0; border-radius: 3px; transition: width .9s var(--ease); }
.f-pro { background: var(--protein); } .f-carb { background: var(--carbs); } .f-fat { background: var(--fat); }
.more { margin-top: 14px; color: var(--terra); font-size: 14px; font-weight: 600; }
.snack { padding: 14px 16px; }
.food-new { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.food-new > * { overflow: hidden; }
.food-new.open { grid-template-rows: 1fr; }
.food-row { padding: 6px 0; }
.food-new.open .food-row { animation: flash 1.4s ease-out; }

/* replays reset instantly */
.snap, .snap * { transition: none !important; }

/* tour view switching: old out, then new in */
.tv { opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility 0s .22s; }
.tv.is-on { opacity: 1; visibility: visible; transition: opacity .3s ease .18s, visibility 0s; }

/* ═════════════════ MOTION ═════════════════ */
@media (scripting: enabled) {
  [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
  [data-reveal="phone"] { transform: translateY(60px) rotate(2deg); transition-duration: 1.1s; }
  [data-reveal="tilt"] { transform: translateY(40px) rotate(-8deg); }
  [data-reveal].in { opacity: 1; transform: none; }
  [data-reveal="tilt"].in { transform: rotate(-3deg); }
  [data-reveal="tilt-r"] { transform: translateY(40px) rotate(8deg); }
  [data-reveal="tilt-r"].in { transform: rotate(2.5deg); }
  .receipt-wrap:not(.printed) .rc-line, .receipt-wrap:not(.printed) .rc-rule { opacity: 0; transform: translateY(-6px); }
  .receipt-wrap .rc-line, .receipt-wrap .rc-rule { transition: opacity .3s ease, transform .3s var(--ease); }
  .receipt-wrap:not(.stamped) .rc-stamp { opacity: 0; transform: rotate(-14deg) scale(1.8); }
  .receipt-wrap .rc-stamp { transition: opacity .18s ease, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
  .hero .landscape .layer, .hero .landscape .sun { transition: none; }
}
.hero-phone.in .hc { animation: rise .7s var(--ease) .5s both; }
.hero-phone.in .hc + .hc { animation-delay: .68s; }
.hero-phone.in .hero-ring { animation: ring 1.4s var(--ease) .8s both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes ring { from { stroke-dashoffset: 204.2; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  [data-reveal], [data-reveal="phone"], [data-reveal="tilt"] { opacity: 1 !important; transform: none !important; }
  .notes { transform: rotate(-3deg) !important; }
  .receipt-wrap { transform: rotate(2.5deg) !important; }
  .receipt-wrap .rc-line, .receipt-wrap .rc-rule, .receipt-wrap .rc-stamp { opacity: 1 !important; transform: none !important; }
  .receipt-wrap .rc-stamp { transform: rotate(-14deg) !important; }
  .scanline { display: none; }
}

/* ═════════════════ RESPONSIVE ═════════════════ */
@media (max-width: 1100px) {
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 20px 30px rgba(46, 42, 34, .1); display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 1.0625rem; }
  .nav .btn { margin: 8px 0 0; min-height: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-phone { --ps: .6; }
  .promise-grid { grid-template-columns: 1fr; gap: 36px; }
  .hook-grid, .hook-grid.flip { grid-template-columns: 1fr; }
  .hook-grid.flip > div { order: -1; }
  .notes { max-width: 460px; }
  .comm-grid { grid-template-columns: 1fr; }
  .download { max-width: 420px; }

  /* tour: phone sticks to the top, step cards rise underneath it */
  .tour-grid { grid-template-columns: 1fr; gap: 0; }
  .tour-phone { --ps: var(--tour-ps, .5); top: calc(var(--header-h) + 8px); z-index: 3; }
  .tour-phone::before { content: ""; position: absolute; inset: -12px -50vw -28px; background: linear-gradient(var(--bg) 88%, rgba(237, 228, 211, 0)); z-index: -1; }
  .steps { position: relative; z-index: 2; margin-top: -30vh; }
  .step { min-height: 92vh; align-items: flex-end; padding-bottom: 6vh; }
  .step-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 20px 22px; box-shadow: 0 -10px 40px rgba(46, 42, 34, .12); max-width: none; width: 100%; }
  .step h3 { font-size: 1.875rem; margin-bottom: 8px; }
  .step p { font-size: 1rem; }
  .legal .toc ol { columns: 1; }
}
@media (max-width: 600px) {
  .feat-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .hero-phone { --ps: .56; }
  .notes { padding: 28px 26px 32px; min-height: 0; }
  .notes-body { font-size: 1rem; }
  .receipt { padding: 24px 22px 40px; font-size: .9375rem; }
  .rc-stamp { font-size: 1.125rem; right: 14px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .store { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand span { font-size: 1rem; }
}
.center-row { justify-content: center; }
