/* LifeByte marketing site. Momentum tokens mirror apps/mobile/lib/design_system/momentum/theme.dart.
   No external requests: self-hosted font, no inline styles required (strict CSP: default-src 'self'). */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/PlusJakartaSans-Variable.a214036365.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f5f0e6;
  --surface: #ffffff;
  --elevated: #fcfbf7;
  --text: #1e2d5c;
  --muted: #566078;
  --border: #d9dce6;
  --accent: #b9502a;
  --accent-pressed: #9e4122;
  --on-accent: #ffffff;
  --accent-text: #9e4122;
  --notice-bg: #f6e4ce;
  --notice-text: #72451b;
  --info-bg: #dce9f6;
  --success-bg: #dfede2;
  --success-text: #295c46;
  --focus: #5b50c8;
  --navy: #101629;
  --navy-2: #1a2339;
  --cream: #f5f0e6;
  --peach: #f2b89f;
  --glow: #ee8a63;
  --shadow: 0 1px 2px rgba(16, 22, 41, 0.06), 0 12px 32px -12px rgba(16, 22, 41, 0.18);
  --radius: 20px;
  --radius-sm: 12px;
  --gutter: 20px;
  --maxw: 1120px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101629;
    --surface: #1a2339;
    --elevated: #25304a;
    --text: #f5f0e6;
    --muted: #b5bed1;
    --border: #3f4d69;
    --accent-text: #f2b89f;
    --notice-bg: #3a2b24;
    --notice-text: #f2d3b5;
    --info-bg: #1d2c47;
    --success-bg: #183d33;
    --success-text: #9fd5b6;
    --focus: #c9c1fa;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(2.5rem, 7.2vw, 4.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.65rem); }
h3, .h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: 0.4em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--navy); color: var(--cream);
  padding: 12px 18px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-text); margin-bottom: 0.9rem;
}
.lead { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 40em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 36px; width: auto; }
.nav { display: none; gap: 4px; align-items: center; }
.nav a {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 10px 12px; border-radius: 999px;
}
.nav a:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.nav a[aria-current="page"] { background: color-mix(in srgb, var(--text) 10%, transparent); }
.site-header .header-cta { display: none; }

.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after {
  display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; content: ""; position: relative;
}
.menu summary span::before { position: absolute; top: -6px; }
.menu summary span::after { position: absolute; top: 6px; }
.menu[open] summary span { background: transparent; }
.menu[open] summary span::before { top: 0; transform: rotate(45deg); }
.menu[open] summary span::after { top: 0; transform: rotate(-45deg); }
.menu-panel {
  position: absolute; right: 0; top: 54px; width: min(86vw, 320px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 10px; display: grid;
}
.menu-panel a {
  color: var(--text); text-decoration: none; font-weight: 600; padding: 13px 14px; border-radius: 12px;
}
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: color-mix(in srgb, var(--text) 8%, transparent); }
.menu-panel .btn { margin-top: 8px; text-align: center; }

@media (min-width: 900px) {
  .nav { display: flex; }
  .site-header .header-cta { display: inline-flex; }
  .menu { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; font: inherit; font-weight: 700;
  font-size: 1rem; text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -10px rgba(185, 80, 42, 0.7); }
.btn--primary:hover { background: var(--accent-pressed); transform: translateY(-1px); }
.btn--ghost { color: var(--text); border-color: color-mix(in srgb, var(--text) 35%, transparent); background: transparent; }
.btn--ghost:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 0.95rem; }
.on-dark .btn--ghost { color: var(--cream); border-color: rgba(245, 240, 230, 0.45); }
.on-dark .btn--ghost:hover { background: rgba(245, 240, 230, 0.1); }
.on-dark a { color: var(--peach); }
.on-dark a.btn--primary { color: var(--on-accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--cream);
  background:
    radial-gradient(900px 520px at 85% 10%, rgba(185, 80, 42, 0.38), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(91, 80, 200, 0.22), transparent 60%),
    var(--navy);
}
.hero .wrap { display: grid; gap: 40px; padding-block: 56px 64px; align-items: center; }
.hero h1 { color: var(--cream); }
.hero h1 .line { display: block; }
.hero h1 em { font-style: normal; color: var(--glow); }
.hero .lead { color: #c9d0e0; margin-bottom: 0; }
.hero .eyebrow { color: var(--peach); }
.hero-note { margin-top: 18px; font-size: 0.95rem; color: #b5bed1; }
.hero-art { position: relative; justify-self: center; width: min(100%, 460px); }
.hero-art picture, .hero-art img { border-radius: 28px; }
.hero-art img { width: 100%; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.65); }
.hero-art::after {
  content: ""; position: absolute; inset: -1px; border-radius: 28px; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(245, 240, 230, 0.12);
}
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; padding-block: 88px 96px; gap: 56px; }
}

/* ---------- Sections ---------- */
.section { padding-block: 72px; }
.section--alt { background: var(--surface); border-block: 1px solid var(--border); }
.section--navy { background: var(--navy); color: var(--cream); }
.section--navy h2, .section--navy h3 { color: var(--cream); }
.section--navy .lead { color: #c9d0e0; }
.section-head { max-width: 46em; margin-bottom: 40px; }
.section-head p:last-child { margin-bottom: 0; }

.page-head { padding-block: 56px 24px; }
.page-head h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }

.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 959px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.section--alt .card { background: var(--bg); box-shadow: none; }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent-text); margin-bottom: 16px;
}
.icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* feature row (alternating) */
.feature { display: grid; gap: 28px; align-items: center; padding-block: 36px; }
.feature + .feature { border-top: 1px solid var(--border); }
.feature ul { color: var(--muted); }
@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; padding-block: 56px; }
  .feature:nth-child(even) .feature-media { order: -1; }
}

/* ---------- Screenshot slots ---------- */
.shot { margin: 0; justify-self: center; width: min(100%, 300px); }
.shot img {
  width: 100%; border-radius: 28px; border: 1px solid var(--border); box-shadow: var(--shadow);
}
.shot--pending {
  aspect-ratio: 9 / 16; border-radius: 28px; position: relative; overflow: hidden; color: var(--cream);
  background:
    radial-gradient(120% 70% at 80% 0%, rgba(185, 80, 42, 0.55), transparent 60%),
    linear-gradient(180deg, var(--navy-2), var(--navy));
  border: 1px solid rgba(245, 240, 230, 0.14); box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
}
.shot--pending::before {
  content: ""; position: absolute; inset: 0; opacity: 0.2; background: url("/assets/img/brand-heart.52f4ad3aaa.webp") center 22% / 120% auto no-repeat;
  mix-blend-mode: screen;
}
.shot--pending span { position: relative; font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; }
.shot--pending small { position: relative; color: #c9d0e0; font-size: 0.9rem; line-height: 1.4; margin-top: 4px; }
.shots { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .shots { grid-template-columns: repeat(4, 1fr); } }
.shots .shot { width: 100%; }
.shots .shot--pending { padding: 18px; }
.shots .shot--pending span { font-size: 1.25rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 6px 16px; align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 0;
}
.steps li::before {
  content: counter(step); grid-row: span 3; width: 44px; height: 44px; border-radius: 50%; background: var(--accent);
  color: var(--on-accent); font-weight: 800; display: grid; place-items: center;
}
.steps h2, .steps h3 { margin: 0; font-size: 1.1rem; letter-spacing: -0.01em; }
.callout-title { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; margin: 0 0 0.3em; line-height: 1.2; }
.steps p { margin: 0; color: var(--muted); }
.steps .glyph {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px;
  background: var(--bg); border: 1px dashed var(--border); width: fit-content; font-weight: 600; font-size: 0.95rem; color: var(--text);
}
.glyph svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.steps--cols { grid-template-columns: 1fr; }
@media (min-width: 900px) { .steps--home { grid-template-columns: repeat(3, 1fr); } .steps--home li { grid-template-columns: 1fr; } .steps--home li::before { grid-row: auto; margin-bottom: 8px; } }

.platform { margin-bottom: 56px; }
.platform-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.platform-head h2 { margin: 0; font-size: clamp(1.5rem, 3.4vw, 2rem); }
.platform-head .icon { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--cream); }
.platform.is-you > .platform-head::after {
  content: "Your device"; margin-left: auto; font-size: 0.8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  background: var(--success-bg); color: var(--success-text);
}

.callout {
  border-radius: var(--radius); padding: 22px 24px; background: var(--info-bg); border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
}
.callout h3 { margin-bottom: 0.3em; }
.callout p:last-child { margin-bottom: 0; }
.callout--warn { background: var(--notice-bg); color: var(--notice-text); }
.callout--warn h3 { color: inherit; }
.copy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.copy-row code {
  background: var(--surface); color: var(--text); border: 1px solid var(--border); padding: 10px 14px; border-radius: 10px;
  font-family: inherit; font-weight: 700; font-size: 1rem; word-break: break-all;
}
.js-only { display: none; }
.js .js-only { display: inline-flex; }
.inapp-note[hidden] { display: none; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 18px 56px 18px 20px; list-style: none; position: relative; border-radius: var(--radius-sm);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 500; color: var(--accent-text);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 20px 18px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Prose (legal, about) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: 0.96rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.prose th { font-weight: 700; }
.table-scroll { overflow-x: auto; }
.meta { color: var(--muted); font-size: 0.95rem; }

.draft-banner {
  background: var(--notice-bg); color: var(--notice-text); border-bottom: 1px solid color-mix(in srgb, var(--notice-text) 25%, transparent);
  font-size: 0.92rem; font-weight: 600;
}
.draft-banner .wrap { padding-block: 10px; display: flex; gap: 10px; align-items: baseline; }
.draft-banner strong { letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; border: 1.5px solid currentColor; padding: 1px 8px; border-radius: 999px; flex: none; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .btn-row { justify-content: center; }
.cta-band p { margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c9d0e0; padding-block: 56px 40px; font-size: 0.95rem; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); }
.footer-brand { grid-column: 1 / -1; max-width: 34em; }
.footer-brand img { height: 36px; width: auto; margin-bottom: 14px; }
.footer-grid h2 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--peach); margin-bottom: 12px; font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(245, 240, 230, 0.14); display: grid; gap: 8px; font-size: 0.88rem; color: #b5bed1; }
.footer-legal p { margin: 0; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { display: none; }
@media (max-width: 899px) {
  .sticky-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 10px; align-items: center; justify-content: space-between;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--navy) 94%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid rgba(245, 240, 230, 0.14); color: var(--cream);
  }
  .sticky-cta p { margin: 0; font-size: 0.85rem; line-height: 1.3; font-weight: 600; }
  .sticky-cta .btn { min-height: 46px; padding: 0 22px; flex: none; }
  body { padding-bottom: 76px; }
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: 96px; }
.notfound .btn-row { justify-content: center; }

/* ---------- Motion (CSS only, restrained) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes lift { from { transform: translateY(18px); } to { transform: none; } }
  @keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
  .hero .wrap > div:first-child > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero .wrap > div:first-child > *:nth-child(2) { animation-delay: 0.08s; }
  .hero .wrap > div:first-child > *:nth-child(3) { animation-delay: 0.16s; }
  .hero .wrap > div:first-child > *:nth-child(4) { animation-delay: 0.24s; }
  .hero .wrap > div:first-child > *:nth-child(5) { animation-delay: 0.32s; }
  .hero-art { animation: rise 0.9s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both, drift 9s 1.2s ease-in-out infinite; }
  @supports (animation-timeline: view()) {
    .reveal { animation: lift linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* vary the fallback tiles so the row does not repeat identically */
.shot--pending[data-slot="eat"]::before { background-position: 15% 30%; }
.shot--pending[data-slot="move"]::before { background-position: 90% 18%; }
.shot--pending[data-slot="health"]::before { background-position: 50% 38%; }
.hero + .section .btn-row, .section .grid + .btn-row { margin-top: 32px; }
.menu-panel .btn--primary { color: var(--on-accent); }
