/* ============================================================================
   WhatIsYourLife: the shared shell for every page on whatisyourlife.com.

   Tokens, type, nav, footer, buttons, hero, ledger, and the legal-page layout live here. Every page
   links this file FIRST and carries only its own page-specific CSS inline, so a change to the shell is
   one change. No build step: the nav and footer markup is repeated per page and `node check.mjs`
   asserts the copies match.

   PRODUCT COLOURS come from `data-product` on <html>. No attribute, or "lifebinder", is gold on warm
   black. "noteify" is a calm blue on cool black, taken from the app's own theme.css (ground #0e0e11, accent
   #7fb3e0 since 2026-10-04, Jeremy's ruling in the Noteify repo, docs/features.md §1.30; the amber #f5b301
   before). The lighter step and the darker step are derived here because the app does not define them: the
   lighter a quarter of the way to white, the darker at the lightness the amber's had (4.8:1 on the ground, so
   an 11-px label in it still reads). Page CSS keeps using --gold, --gold2 and --gold-dim: they alias the accent
   tokens below, so a Noteify page turns blue without a single page rule changing.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080705;
  --bg-rgb: 8, 7, 5;
  --surface: #0f0e0b;
  --s2: #151310;
  --s3: #1c1a14;
  --border: #211e17;
  --border2: #2e2a20;
  --accent: #c9a84c;
  --accent2: #e8c870;
  --accent-dim: #7a6428;
  --accent-rgb: 201, 168, 76;
  --gold: var(--accent);
  --gold2: var(--accent2);
  --gold-dim: var(--accent-dim);
  --text: #ede5d5;
  --text2: #b8a888;
  --text3: #a59888;
  --text4: #8a7e70;
}

html[data-product="noteify"] {
  --bg: #0e0e11;
  --bg-rgb: 14, 14, 17;
  --surface: #15151a;
  --s2: #1a1a20;
  --s3: #20202a;
  --border: #22222a;
  --border2: #2e2e38;
  --accent: #7fb3e0;
  --accent2: #9fc6e8;
  --accent-dim: #5f84a5;
  --accent-rgb: 127, 179, 224;
  --text: #f4f4f6;
  --text2: #c3c3cc;
  --text3: #a3a3ad;
  --text4: #84848f;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1000; opacity: 0.4;
}

.ambient { position: fixed; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: 0; }
.ambient-1 { width: 600px; height: 400px; background: rgba(var(--accent-rgb), 0.05); top: -100px; left: -100px; }
.ambient-2 { width: 500px; height: 500px; background: rgba(var(--accent-rgb), 0.03); bottom: 20%; right: -150px; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* NAV: the company wordmark, a dot, the product name. The company part hides on phones. */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 20px 48px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid transparent; transition: all 0.4s; }
nav.scrolled { background: rgba(var(--bg-rgb), 0.92); backdrop-filter: blur(20px); border-bottom-color: var(--border); }
.nav-brand { display: inline-flex; align-items: baseline; gap: 12px; }
.nav-company { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 3px; color: var(--text4); text-transform: uppercase; text-decoration: none; transition: color 0.2s; }
.nav-company:hover { color: var(--text2); }
.nav-sep { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--text4); }
.nav-logo { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 4px; color: var(--gold); text-transform: uppercase; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 13px; color: var(--text3); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { font-size: 12px !important; font-weight: 500; color: var(--bg) !important; background: var(--gold); padding: 8px 20px; border-radius: 6px; }
.nav-cta:hover { background: var(--gold2) !important; }
.nav-mobile { display: none; align-items: center; gap: 18px; }
.nav-signin-mobile { font-size: 12px; color: var(--text3); text-decoration: none; }
.nav-cta-mobile { font-size: 12px; font-weight: 500; color: var(--bg); background: var(--gold); padding: 8px 16px; border-radius: 6px; text-decoration: none; }
.nav-cta-mobile:hover { background: var(--gold2); }
.nav-link-mobile { font-size: 12px; color: var(--text3); text-decoration: none; }

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px 24px 100px; overflow: hidden; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%); opacity: 0.4; }
.hero-eyebrow { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 4px; color: var(--gold); text-transform: uppercase; margin-bottom: 28px; opacity: 0; animation: fadeUp 0.8s ease forwards 0.2s; }
.hero-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(56px, 9vw, 120px); font-weight: 300; line-height: 0.95; margin-bottom: 12px; opacity: 0; animation: fadeUp 0.8s ease forwards 0.4s; }
.hero-title em { color: var(--gold); font-style: italic; }
.hero-question { font-family: 'Cormorant Garamond', serif; font-size: clamp(18px, 3vw, 28px); font-weight: 300; font-style: italic; color: var(--text3); margin-bottom: 48px; opacity: 0; animation: fadeUp 0.8s ease forwards 0.6s; }
.hero-sub { font-size: 16px; color: var(--text3); font-weight: 400; max-width: 560px; line-height: 1.8; margin: 0 auto 56px; opacity: 0; animation: fadeUp 0.8s ease forwards 0.7s; }
.hero-actions { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.8s ease forwards 0.9s; }
.hero-web { margin-top: 22px; opacity: 0; animation: fadeUp 0.8s ease forwards 1.05s; }
.hero-web a { font-size: 13px; color: var(--text3); text-decoration: none; border-bottom: 1px solid var(--border2); padding-bottom: 2px; transition: color 0.2s, border-color 0.2s; }
.hero-web a:hover { color: var(--text); border-color: var(--gold-dim); }

/* SCROLL INDICATOR */
.scroll-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0; animation: fadeUp 0.8s ease forwards 1.4s; transition: opacity 0.4s; }
.scroll-line { width: 1px; height: 48px; background: linear-gradient(to bottom, transparent, var(--gold-dim)); position: relative; overflow: hidden; }
.scroll-line::after { content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, transparent, var(--gold)); animation: scrollDrop 1.8s ease infinite; }
.scroll-label { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 3px; color: var(--text3); text-transform: uppercase; font-weight: 500; }

/* BUTTONS */
.btn-primary { display: inline-flex; align-items: center; gap: 10px; background: var(--gold); color: var(--bg); font-size: 14px; font-weight: 600; padding: 14px 32px; border-radius: 8px; text-decoration: none; transition: all 0.2s; }
.btn-primary:hover { background: var(--gold2); transform: translateY(-1px); box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.25); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--text2); font-size: 14px; padding: 14px 24px; border-radius: 8px; text-decoration: none; border: 1px solid var(--border2); transition: all 0.2s; }
.btn-ghost:hover { border-color: var(--gold-dim); color: var(--text); }
.btn-icon { width: 15px; height: 15px; flex-shrink: 0; }
.btn-store { padding: 11px 26px 12px; }
.store-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; }
.btn-store .store-over { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; opacity: 0.75; }
.btn-store .store-name { font-size: 15px; font-weight: 600; line-height: 1.2; }
.btn-store-row { display: inline-flex; align-items: center; gap: 10px; }
.btn-soon { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: var(--text2); padding: 11px 22px 12px; border-radius: 8px; border: 1px solid var(--border2); cursor: default; }
.btn-soon .store-over { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; color: var(--gold); }
.btn-soon .store-name { font-size: 15px; font-weight: 600; line-height: 1.2; color: var(--text2); }
.btn-soon .btn-icon { width: 17px; height: 17px; color: var(--text2); }

/* SHARED SECTION BITS */
.section-label { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 4px; color: var(--gold-dim); text-transform: uppercase; margin-bottom: 20px; display: block; }
.big-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(36px, 5vw, 64px); font-weight: 300; line-height: 1.1; }
.big-title em { color: var(--gold); font-style: italic; }
.soon-chip { display: inline-block; font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(var(--accent-rgb), 0.35); border-radius: 4px; padding: 1px 6px; vertical-align: 2px; }

/* LEDGER: mono spec-sheet rows, the privacy promise in plain terms */
.ledger { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; border: 1px solid var(--border); border-radius: 20px; background: var(--bg); padding: 56px 52px; }
.ledger-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(28px, 3.5vw, 42px); font-weight: 300; line-height: 1.15; margin-bottom: 18px; }
.ledger-title em { color: var(--gold); font-style: italic; }
.ledger-lead { font-size: 14px; color: var(--text3); line-height: 1.85; font-weight: 400; }
.ledger-rows { display: flex; flex-direction: column; }
.lr { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 15px 0; border-bottom: 1px solid var(--border2); }
.lr:first-child { padding-top: 0; }
.lr:last-child { border-bottom: none; padding-bottom: 0; }
.lr-label { font-size: 13px; color: var(--text2); font-weight: 400; }
.lr-value { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; white-space: nowrap; }

/* DOCUMENT PAGES: the header and sections used by the legal and account pages */
main { position: relative; z-index: 1; }
.page-header { max-width: 860px; margin: 0 auto; padding: 168px 48px 56px; border-bottom: 1px solid var(--border); }
.page-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(44px, 6.5vw, 76px); font-weight: 300; line-height: 1.02; margin-bottom: 24px; }
.page-title em { color: var(--gold); font-style: italic; }
.page-lead { font-size: 16px; color: var(--text2); line-height: 1.8; max-width: 600px; margin-bottom: 34px; }
.page-jump { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.page-meta { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 2px; color: var(--text4); text-transform: uppercase; }

.doc { max-width: 860px; margin: 0 auto; padding: 0 48px 48px; }
.doc-section { padding: 72px 0 56px; border-bottom: 1px solid var(--border); scroll-margin-top: 92px; }
.doc-section:last-child { border-bottom: none; }
.doc-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(34px, 4.5vw, 52px); font-weight: 300; line-height: 1.08; margin-bottom: 18px; }
.doc-title em { color: var(--gold); font-style: italic; }
.doc-intro { font-size: 15px; color: var(--text2); line-height: 1.8; max-width: 640px; margin-bottom: 44px; }

.block { margin-bottom: 48px; }
.block:last-child { margin-bottom: 0; }
.block-title { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; display: block; }
.block p { font-size: 15px; color: var(--text2); line-height: 1.8; margin-bottom: 12px; max-width: 680px; }
.block p:last-child { margin-bottom: 0; }
.doc a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-dim); transition: color 0.2s, border-color 0.2s; }
.doc a:hover { color: var(--gold2); border-color: var(--gold); }
.doc strong { color: var(--text); font-weight: 500; }

.note { border: 1px solid var(--border2); border-left: 2px solid var(--gold-dim); border-radius: 12px; background: var(--surface); padding: 18px 22px; max-width: 680px; }
.note p { font-size: 14px; color: var(--text2); line-height: 1.75; }

.steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; max-width: 680px; }
.steps li { counter-increment: step; position: relative; padding: 16px 0 16px 56px; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--text2); line-height: 1.75; }
.steps li:first-child { padding-top: 0; }
.steps li:last-child { border-bottom: none; padding-bottom: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 22px; font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: 1px; color: var(--gold); }
.steps li:first-child::before { top: 6px; }

.sheet { border: 1px solid var(--border); border-radius: 20px; background: var(--surface); padding: 8px 32px; }
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 22px 0 18px; border-bottom: 1px solid var(--border2); }
.sheet-head h3 { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 300; line-height: 1.1; }
.sheet-head span { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; white-space: nowrap; }
.sheet-head span.dim { color: var(--text4); }
.row { display: grid; grid-template-columns: 190px 1fr; gap: 28px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.row:last-child { border-bottom: none; padding-bottom: 22px; }
.row-k { font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.6; }
.row-v { font-size: 14px; color: var(--text3); line-height: 1.75; }

.contact-lines { font-size: 15px; color: var(--text2); line-height: 1.9; }

/* LEGAL TEXT: numbered sections of a policy or terms */
.legal { max-width: 860px; margin: 0 auto; padding: 56px 48px 96px; }
.legal .callout { border: 1px solid var(--border2); border-left: 2px solid var(--gold-dim); border-radius: 12px; background: var(--surface); padding: 20px 24px; margin-bottom: 8px; max-width: 720px; }
.legal .callout p { margin: 0; font-size: 14.5px; }
.legal h2 { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 400; line-height: 1.15; color: var(--text); margin: 56px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); max-width: 720px; }
.legal p { font-size: 15px; color: var(--text2); line-height: 1.8; margin-bottom: 16px; max-width: 720px; }
.legal ul { list-style: none; margin: 12px 0 20px; max-width: 720px; }
.legal ul li { font-size: 15px; color: var(--text2); line-height: 1.8; padding: 6px 0 6px 24px; position: relative; border-bottom: 1px solid var(--border); }
.legal ul li:last-child { border-bottom: none; }
.legal ul li::before { content: '◈'; position: absolute; left: 0; top: 10px; color: var(--gold-dim); font-size: 10px; }
.legal a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-dim); transition: color 0.2s, border-color 0.2s; }
.legal a:hover { color: var(--gold2); border-color: var(--gold); }
.legal strong { color: var(--text); font-weight: 500; }

/* FOOTER: the company, then one column per product, identical on every page */
footer { position: relative; z-index: 1; padding: 56px 48px 36px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; max-width: 1100px; margin: 0 auto 44px; }
.footer-logo { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 4px; color: var(--text4); text-transform: uppercase; margin-bottom: 16px; }
.footer-about { font-size: 13px; color: var(--text3); line-height: 1.75; max-width: 320px; }
.footer-about a { color: var(--text3); text-decoration: none; border-bottom: 1px solid var(--border2); transition: color 0.2s, border-color 0.2s; }
.footer-about a:hover { color: var(--text); border-color: var(--gold-dim); }
.footer-col-title { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--text3); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.footer-col-title .soon-chip { font-size: 9px; letter-spacing: 1px; padding: 1px 5px; vertical-align: 0; }
.footer-links { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.footer-links a { font-size: 12px; color: var(--text4); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text3); }
.footer-bottom { max-width: 1100px; margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-copy { font-size: 11px; color: var(--text4); font-family: 'DM Mono', monospace; }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scrollDrop { 0% { top: -100%; } 100% { top: 100%; } }
.reveal { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-eyebrow, .hero-title, .hero-question, .hero-sub, .hero-actions, .hero-web, .scroll-indicator { animation: none; opacity: 1; }
  .scroll-line::after { animation: none; }
  nav, .nav-company, .nav-links a, .btn-ghost, .doc a, .legal a, .footer-links a, .footer-about a { transition: none; }
}

@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-company, .nav-sep { display: none; }
  .nav-links { display: none; }
  .nav-mobile { display: flex; }
  .hero { min-height: auto; padding: 100px 24px 60px; }
  .hero-sub { margin-bottom: 36px; }
  .scroll-indicator { position: relative; bottom: auto; left: auto; transform: none; margin-top: 32px; }
  .ledger { grid-template-columns: 1fr; gap: 36px; padding: 36px 28px; }
  .page-header { padding: 118px 24px 40px; }
  .page-lead { margin-bottom: 28px; }
  .page-jump { margin-bottom: 28px; }
  .page-jump .btn-ghost { padding: 12px 18px; font-size: 13px; }
  .doc { padding: 0 24px 24px; }
  .doc-section { padding: 56px 0 44px; scroll-margin-top: 76px; }
  .doc-intro { margin-bottom: 36px; }
  .block { margin-bottom: 40px; }
  .steps li { padding: 14px 0 14px 42px; }
  .steps li::before { top: 20px; }
  .steps li:first-child::before { top: 6px; }
  .sheet { padding: 4px 20px; border-radius: 16px; }
  .sheet-head { flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 0 14px; }
  .sheet-head h3 { font-size: 24px; }
  .row { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .row:last-child { padding-bottom: 18px; }
  .legal { padding: 40px 24px 72px; }
  .legal h2 { font-size: 26px; margin-top: 44px; }
  footer { padding: 44px 24px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; margin-bottom: 36px; }
  .footer-about { max-width: none; }
}
