/* LyveLyfe site. Black and white like the app; photos carry the colour. */
:root {
  --bg: #fafaf7; --ink: #171717; --soft: #5f5f58; --line: #e1e1da; --card: #ffffff; --paper: #f3f0e8; --accent: #171717; --on-accent: #fafaf7;
  --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --sans: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #121211; --ink: #f2f2ec; --soft: #a8a8a0; --line: #2c2c29; --card: #1b1b19; --paper: #24231f; --accent: #f2f2ec; --on-accent: #121211; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #121211; --ink: #f2f2ec; --soft: #a8a8a0; --line: #2c2c29; --card: #1b1b19; --paper: #24231f; --accent: #f2f2ec; --on-accent: #121211; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
h1, h2 { font-family: var(--serif); }
h1 { font-size: clamp(2.5rem, 7vw, 4.2rem); line-height: 1.03; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.12; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0; }
.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.narrow { max-width: 44rem; }
.kicker { font-size: 0.76rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 700; color: var(--soft); }
.muted { color: var(--soft); }
.small { font-size: 0.92rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo img { height: 34px; width: auto; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo img, :root:not([data-theme="light"]) .invert-dark { filter: invert(1); } }
:root[data-theme="dark"] .logo img, :root[data-theme="dark"] .invert-dark { filter: invert(1); }
.nav { display: flex; gap: 20px; align-items: center; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--soft); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); transition: transform .12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn[aria-disabled="true"] { background: transparent; color: var(--soft); border-color: var(--line); cursor: default; transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding-block: clamp(36px, 7vw, 80px) clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; grid-template-columns: 1.05fr 0.95fr; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.lede { margin-top: 20px; font-size: clamp(1.08rem, 2vw, 1.22rem); color: var(--soft); max-width: 34rem; }
.hero .btn-row { margin-top: 30px; }
.hero-note { margin-top: 14px; font-size: 0.9rem; color: var(--soft); }

/* The book on the table */
.stage { position: relative; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; justify-self: center; }
.print { position: absolute; background: #fff; padding: 9px 9px 34px; box-shadow: 0 14px 30px rgba(0,0,0,.22); border-radius: 2px; }
.print img { width: 100%; height: 100%; object-fit: cover; }
.print figcaption { position: absolute; left: 0; right: 0; bottom: 7px; text-align: center; font-family: var(--serif); font-size: 15px; color: #2a2a29; }
.print.p1 { width: 46%; height: 50%; left: 2%; top: 8%; transform: rotate(-7deg); }
.print.p2 { width: 42%; height: 46%; right: 0; top: 0; transform: rotate(6deg); }
.print.p3 { width: 50%; height: 54%; left: 24%; top: 36%; transform: rotate(-1.5deg); z-index: 2; }
.story-card { position: absolute; z-index: 3; right: 0; bottom: 4%; width: 54%; background: var(--paper); color: #2a2a29; padding: 16px 18px; border-radius: 4px; box-shadow: 0 12px 26px rgba(0,0,0,.2); font-family: var(--serif); font-size: clamp(15px, 1.8vw, 18px); line-height: 1.35; }
:root[data-theme="dark"] .story-card, :root:not([data-theme="light"]) .story-card { color: var(--ink); }
.story-card small { display: block; margin-top: 8px; font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }

/* Sections */
section.block { padding-block: clamp(48px, 8vw, 96px); border-top: 1px solid var(--line); }
.section-head { max-width: 40rem; }
.section-head p { margin-top: 14px; color: var(--soft); font-size: 1.08rem; }

/* Video */
.video { margin-top: 32px; position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #0b0b0c; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.video img, .video video { width: 100%; height: 100%; object-fit: cover; }
.video .veil { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.55)); color: #fff; text-align: center; padding: 20px; }
.video .play { width: 76px; height: 76px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.8); display: grid; place-items: center; margin: 0 auto 14px; }
.video .play svg { width: 28px; height: 28px; margin-left: 4px; }
.video .veil b { font-size: 1.1rem; }

/* Steps */
.steps { margin-top: 36px; display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.step img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.step .body { padding: 20px 22px 24px; }
.step .body::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); font-family: var(--serif); color: var(--soft); margin-bottom: 12px; }
.step p { margin-top: 6px; color: var(--soft); }

/* Feature list */
.features { margin-top: 32px; display: grid; gap: 0 40px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 20px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.feature svg { width: 24px; height: 24px; margin-top: 2px; }
.feature p { color: var(--soft); margin-top: 2px; }

/* Promise cards */
.promises { margin-top: 32px; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .promises { grid-template-columns: 1fr; } }
.promise { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.promise p { margin-top: 6px; color: var(--soft); }

/* FAQ */
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 1.4rem; color: var(--soft); font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 18px; color: var(--soft); }

/* CTA */
.cta { text-align: center; }
.cta .btn-row { justify-content: center; margin-top: 26px; }

/* Legal and help pages */
.page { padding-block: clamp(32px, 6vw, 64px) clamp(48px, 8vw, 80px); }
.page h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.page .lede { margin-top: 14px; }
.short { margin-top: 30px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 4vw, 30px); }
.short h2 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; letter-spacing: .02em; }
.short ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.short li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.short li::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); margin-top: 9px; }
.full { margin-top: 30px; }
.full > summary { cursor: pointer; font-weight: 700; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; display: flex; justify-content: space-between; }
.full > summary::-webkit-details-marker { display: none; }
.full > summary::after { content: 'Show'; color: var(--soft); font-weight: 400; }
.full[open] > summary::after { content: 'Hide'; }
.legal { padding-top: 10px; }
.legal h3 { margin-top: 28px; }
.legal p, .legal li { color: var(--soft); }
.legal p { margin-top: 8px; }
.legal ul { margin: 8px 0 0; padding-left: 20px; }
.legal li { margin-top: 4px; }
.steps-list { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: n; display: grid; gap: 16px; }
.steps-list li { counter-increment: n; display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.steps-list li::before { content: counter(n); width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--serif); color: var(--soft); }
.callout { margin-top: 24px; border-left: 3px solid var(--ink); padding: 4px 0 4px 16px; }
.mail { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.mail code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95rem; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; word-break: break-all; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 36px 48px; color: var(--soft); font-size: .92rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 28px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
