/* Life Progress site styles.

   Palette lifted from the shipping app's theme tokens in
   ~/Projects/lifeprogress/src/theme/index.ts — `themes.minimal` for light and
   `themes.dark` for dark:
     minimal  #ffffff bg, #f5f5f5 bg2, #ffffff card, rgba(0,0,0,0.06) border,
              rgba(0,0,0,1) text, rgba(0,0,0,0.72) text2
     dark     #09090f bg, #0f0f1a bg2, rgba(255,255,255,0.06) card,
              rgba(255,255,255,0.10) border, rgba(255,255,255,0.72) text2

   The mint accent is the app icon's sun (~/Projects/lifeprogress/assets/icon.png,
   sampled: #82EBC5 at the crown fading to #56C7A1 at the horizon). #82EBC5 is
   used as-is on the dark ground, which is where the icon puts it (13.8:1 against
   #09090f). On white it measures 1.4:1, so the light theme uses #0E7C5A — the
   same hue deepened to 5.2:1, which is what src/theme/contrast.ts's
   deepenForWhiteText exists to do inside the app.

   The life-grid hero art's five stage colours are the shipping values from
   src/constants/life.ts STAGES:
     childhood #34d399, adolescence #60a5fa, youngAdult #fbbf24,
     middleAge #f97316, senior #f87171
   and the ten-cells-per-row layout is GRID_COLS = 10 in
   src/components/LifeGrid.tsx. Nothing here is invented.

   No web fonts, no CDN, no client JS. */

:root {
  --bg: #FFFFFF;
  --panel: #F5F5F5;
  --panel-2: #EBEBEE;
  --line: #E4E4E8;
  --ink: #000000;
  --ink-dim: #52525B;
  --accent: #0E7C5A;
  --accent-2: #0A5C44;
  --btn-ink: #FFFFFF;
  --radius: 14px;
  --maxw: 1080px;

  /* Stage colours — src/constants/life.ts STAGES. Used only in the hero art. */
  --st-1: #34d399;
  --st-2: #60a5fa;
  --st-3: #fbbf24;
  --st-4: #f97316;
  --st-5: #f87171;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090F;
    --panel: #14141F;
    --panel-2: #1C1C29;
    --line: #262634;
    --ink: #FFFFFF;
    --ink-dim: #A1A1AE;
    --accent: #82EBC5;
    --accent-2: #56C7A1;
    --btn-ink: #09090F;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
        "Hiragino Sans", "Noto Sans CJK JP", "Apple SD Gothic Neo", Arial, sans-serif;
  overflow-wrap: break-word;
}

a { color: var(--accent); }

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }

/* ---------------------------------------------------------- chrome */

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--panel); color: var(--ink); padding: 10px 16px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

.topbar {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  max-width: var(--maxw); margin: 0 auto; padding: 18px 20px;
}

.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none;
}
/* The mark is the icon in miniature: a mint sun on a near-black ground. */
.brand-mark {
  width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 8px; font-size: 14px; font-weight: 700;
  background: #09090F; color: #82EBC5;
}

.topnav { display: flex; gap: 18px; flex-wrap: wrap; margin-inline-start: auto; }
.topnav a { color: var(--ink-dim); text-decoration: none; font-size: 15px; }
.topnav a:hover { color: var(--ink); }

.btn {
  display: inline-block; background: var(--accent); color: var(--btn-ink);
  text-decoration: none; font-weight: 700; border-radius: 999px;
  padding: 13px 26px; border: 1px solid transparent;
}
.btn:hover { filter: brightness(1.08); }
.btn-small { padding: 8px 16px; font-size: 14px; }
.btn-big { font-size: 17px; }

/* ---------------------------------------------------------- hero */

.hero {
  max-width: var(--maxw); margin: 0 auto; padding: 40px 20px 12px;
  display: grid; gap: 40px; grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; align-items: center; padding-top: 64px; }
}

.kicker {
  margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
}
.hero h1 { margin: 0 0 18px; font-size: clamp(30px, 5.2vw, 50px); }
.lede { color: var(--ink-dim); font-size: 17px; margin: 0 0 26px; max-width: 60ch; }
.cta-row { margin: 0; }
.cta-note { color: var(--ink-dim); font-size: 14px; margin: 12px 0 0; }

/* A life grid drawn in CSS — no image, no font file, no request.
   Ten cells to a row, so a row is a decade (GRID_COLS = 10 in LifeGrid.tsx).
   Lived years carry their life-stage colour; the current year is ringed; the
   years ahead are empty outlines. */
.hero-art { display: flex; justify-content: center; }
.lg {
  position: relative;
  width: 100%; max-width: 400px;
  padding: 26px 24px 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #09090F;
  box-shadow: 0 24px 60px rgba(9, 9, 15, 0.28);
  overflow: hidden;
}
.lg::before {
  content: ""; position: absolute; inset: -40% -20% auto -20%; height: 150%;
  background: radial-gradient(60% 50% at 50% 0%,
              rgba(130, 235, 197, 0.18), rgba(130, 235, 197, 0) 70%);
  pointer-events: none;
}
.lg-cap {
  position: relative;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #82EBC5;
  margin-bottom: 14px;
}
.lg-rows { position: relative; display: grid; gap: 5px; }
.lg-row { display: grid; grid-template-columns: 18px repeat(10, 1fr); gap: 5px; align-items: center; }
.lg-age {
  font-size: 10px; font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.50); text-align: end;
}
.lg-c {
  aspect-ratio: 1 / 1; border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.lg-c.s1 { background: var(--st-1); border-color: var(--st-1); }
.lg-c.s2 { background: var(--st-2); border-color: var(--st-2); }
.lg-c.s3 { background: var(--st-3); border-color: var(--st-3); }
.lg-c.s4 { background: var(--st-4); border-color: var(--st-4); }
.lg-c.s5 { background: var(--st-5); border-color: var(--st-5); }
.lg-c.now { box-shadow: 0 0 0 2px #82EBC5; }
.lg-rule {
  position: relative; height: 1px; border: 0; margin: 18px 0 14px;
  background: rgba(255, 255, 255, 0.14);
}
.lg-marks { position: relative; display: flex; gap: 8px; flex-wrap: wrap; }
.lg-mark {
  font-size: 12px; font-weight: 600;
  border-radius: 9999px; padding: 6px 12px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.lg-mark.on {
  color: #09090F; background: #82EBC5; border-color: #82EBC5;
}

/* ---------------------------------------------------------- sections */

section { max-width: var(--maxw); margin: 0 auto; padding: 34px 20px; }
section h2 { font-size: clamp(23px, 3.4vw, 32px); margin: 0 0 18px; }

.stats ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 700px) { .stats ul { grid-template-columns: repeat(4, 1fr); } }
.stats li {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-align: center;
}
.stats strong { display: block; font-size: 30px; color: var(--accent); }
.stats span { color: var(--ink-dim); font-size: 14px; }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--ink-dim); font-size: 15px; }

.setup { border-top: 1px solid var(--line); }
.steps { counter-reset: step; list-style: none; margin: 8px 0 0; padding: 0; }
.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 20px 46px; border-inline-start: 2px solid var(--line);
  margin-inline-start: 13px;
}
.steps li:last-child { border-inline-start-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; inset-inline-start: -15px; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--btn-ink);
  font-size: 14px; font-weight: 700;
}
.steps strong { display: block; }
.steps span { color: var(--ink-dim); font-size: 15px; }
.note { color: var(--ink-dim); font-size: 14px; }

.privacy, .pricing, .guides-teaser { border-top: 1px solid var(--line); }

/* Home-page teaser for the long-tail pages: without it the only route to them
   from the home page is the single link in the top nav. */
.guide-links { list-style: none; margin: 0 0 18px; padding: 0; }
.guide-links li { margin-bottom: 10px; }
.guide-links a { font-weight: 600; }
.privacy p, .pricing p { color: var(--ink-dim); max-width: 72ch; }

.faq { border-top: 1px solid var(--line); }
.faq details {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--ink-dim); margin: 10px 0 0; }

/* ---------------------------------------------------------- guides
   Additive only: these classes exist solely on /guides/ and the long-tail
   pages, so nothing above changes on the home pages. */

.guide {
  max-width: var(--maxw); margin: 0 auto; padding: 28px 20px 8px;
}
.guide h1 { margin: 8px 0 14px; font-size: clamp(26px, 4.2vw, 40px); }
.guide h2 { margin: 34px 0 12px; font-size: 22px; }
.guide h3 { margin: 24px 0 8px; font-size: 18px; }
.guide p { color: var(--ink-dim); max-width: 72ch; line-height: 1.65; }
.guide ul, .guide ol { color: var(--ink-dim); max-width: 72ch; line-height: 1.65; }
.guide li { margin-bottom: 8px; }
.guide .faq, .guide .pricing { border-top: none; padding: 0; }
.crumbs { font-size: 14px; color: var(--ink-dim); }
.guide-index { list-style: none; margin: 0; padding: 0; }
.guide-index li { margin-bottom: 22px; }
.guide-index h2 { margin: 0 0 6px; font-size: 19px; }
.guide-index p { margin: 0; font-size: 15px; }
.related { list-style: none; margin: 0 0 18px; padding: 0; }

/* ---------------------------------------------------------- footer */

.footer {
  max-width: var(--maxw); margin: 0 auto; padding: 28px 20px 56px;
  border-top: 1px solid var(--line);
}
.langs ul {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px;
  margin: 0 0 16px; padding: 0; font-size: 15px;
}
.lang-current { color: var(--ink); font-weight: 700; }
.legal { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; margin-bottom: 12px; }
.small { color: var(--ink-dim); font-size: 13px; margin: 0; }

/* Mobile product entry and keyboard access. */
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn:active { transform: scale(.97); filter: brightness(.94); }
@media (max-width: 700px) {
  .topbar { gap: 8px 10px; padding: 14px 16px 8px; }
  .brand { font-size: 17px; }
  .topbar .btn-small { order: 2; margin-inline-start: auto; padding: 8px 12px; font-size: 12px; }
  .topnav { order: 3; flex-basis: 100%; margin-inline-start: 0; gap: 16px; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav a { display: inline-block; padding: 6px 0; font-size: 13px; }
  .hero { padding-top: 20px; gap: 20px; }
  .hero h1 { font-size: clamp(30px, 8vw, 39px); line-height: 1.12; margin-bottom: 12px; }
  .hero .lede { font-size: 15px; line-height: 1.55; margin-bottom: 18px; }
}
