/* At My Age — shares the Trynkit shell (dark + yellow), but the three acts are
 * colour-coded because the colours ARE the argument:
 *   Act I   cold slate — the ones who ran out of time
 *   Act II  brand yellow — the present tense, you and them at the same age
 *   Act III warm coral — the ones who had not begun
 * A reader should feel the temperature drop and lift before they finish reading.
 */
:root {
  --bg: #0e0f13;
  --panel: #171922;
  --panel-2: #1f2230;
  --ink: #f4f5f7;
  --muted: #9aa0b0;
  --line: #2a2e3d;
  --accent: #ffd23f;
  --accent-ink: #1a1400;
  --cold: #7f8db3;   /* Act I */
  --warm: #ff7a59;   /* Act III */
  --radius: 16px;
  --maxw: 640px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 50% -10%, #1b1e2b 0%, transparent 60%), var(--bg);
  line-height: 1.55;
  min-height: 100vh;
}
h1, h2, .age-big { font-family: "Space Grotesk", Inter, system-ui, sans-serif; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 8px 20px 56px; }

.hero { text-align: center; padding: 30px 0 24px; }
.hero h1 { font-size: clamp(1.9rem, 6vw, 2.9rem); line-height: 1.06; margin: 0 0 12px; letter-spacing: -.02em; }
.hero .sub { color: var(--muted); margin: 0 auto; max-width: 36ch; font-size: 1.02rem; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.field { display: block; }
.field-label { display: block; font-size: .82rem; color: var(--muted); margin: 0 0 8px; text-transform: uppercase; letter-spacing: .06em; }
#birth {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink);
  border-radius: 12px; padding: 14px 14px; font-size: 1.05rem; font-family: inherit;
}
#birth:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.cta-primary {
  width: 100%; margin-top: 14px; padding: 15px 18px; border: 0; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); font: 600 1.02rem/1 Inter, sans-serif;
  cursor: pointer;
}
.cta-primary:hover { filter: brightness(1.06); }
.cta-secondary {
  padding: 12px 20px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel-2); color: var(--ink); font: 500 .95rem/1 Inter, sans-serif; cursor: pointer;
}
.cta-secondary:hover { border-color: var(--muted); }

.status { min-height: 1.2em; margin: 10px 0 0; font-size: .9rem; color: var(--warm); }
.privacy { margin: 12px 0 0; font-size: .8rem; color: var(--muted); }

/* ---------------------------------------------------------------- result */

.result { margin-top: 34px; }

.age { text-align: center; padding: 8px 0 26px; border-bottom: 1px solid var(--line); }
.age-big {
  margin: 0; font-size: clamp(4rem, 20vw, 7rem); line-height: 1; font-weight: 700;
  letter-spacing: -.04em;
}
/* The day count is the quiet devastation — nobody has ever counted their own days.
   It is deliberately small and grey so it reads as a footnote, not a headline. */
.age-days { margin: 10px 0 0; color: var(--muted); font-size: .95rem; font-variant-numeric: tabular-nums; }

.act { padding: 28px 0 4px; }
.act h2 {
  margin: 0 0 16px; font-size: .82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
}
.act-outlived  h2 { color: var(--cold); }
.act-peers     h2 { color: var(--accent); }
.act-unstarted h2 { color: var(--warm); }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li {
  padding: 12px 0 12px 16px;
  border-left: 2px solid var(--line);
  margin-bottom: 2px;
}
.act-outlived  .rows li { border-left-color: rgba(127,141,179,.45); }
.act-peers     .rows li { border-left-color: rgba(255,210,63,.45); }
.act-unstarted .rows li { border-left-color: rgba(255,122,89,.45); }

/* One statement per line, set large enough to be read slowly. The restraint is the design. */
.line { margin: 0; font-size: 1.06rem; line-height: 1.45; }
.detail { margin: 4px 0 0; font-size: .86rem; color: var(--muted); }

.closing {
  margin: 34px 0 0; padding: 22px 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  text-align: center; font-size: 1.02rem; color: var(--ink);
}

.actions { margin-top: 20px; display: flex; justify-content: center; }

/* ---------------------------------------------------------------- notes */

.notes { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.notes h2 { margin: 0 0 12px; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.note { margin: 0 0 10px; font-size: .86rem; color: var(--muted); line-height: 1.6; }
.note-src { font-size: .8rem; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- shared chrome
 * Header, footer, prose, and the house-promo slot are lifted verbatim from the other
 * Trynkit tools so this page inherits the same shell (and the same cross-brand promo
 * rotation) without drifting. Do not restyle these here — fix them upstream. */
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }

.site-head, .site-foot { max-width: var(--maxw); margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.05rem; letter-spacing: -.01em; }
.brand-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .8rem; }
.tag { font-size: .78rem; color: var(--muted); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }

.about { margin-top: 30px; color: var(--muted); }
.about h2 { color: var(--ink); font-size: 1.15rem; margin: 22px 0 8px; }
.about p, .about li { font-size: .96rem; }
.about strong, .about em { color: var(--ink); }
.about ul { padding-left: 20px; }
.faq dt { color: var(--ink); font-weight: 600; margin-top: 14px; }
.faq dd { margin: 4px 0 0; }
.sources { font-size: .82rem; color: #6b7180; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 22px; }
.about ul.deep-list { padding-left: 20px; margin: 8px 0; }
.about ul.deep-list li { margin: 4px 0; }
.site-foot { flex-direction: column; align-items: flex-start; gap: 8px; border-top: 1px solid var(--line); margin-top: 26px; font-size: .9rem; color: var(--muted); }
.site-foot a { color: var(--ink); }
.foot-links { display: flex; gap: 14px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }
[hidden]{display:none!important}
/* House promo slot (result-area cross-brand -> Toolio). Reserved 336x280 box = CLS 0 in house & ad states. Spec: 105_growth HOUSE_AD_PLACEMENT_PLAN_2026-07 (2.5) */
.promo-slot { margin: 24px auto 0; padding: 0 20px; display: flex; justify-content: center; }
.promo-slot__card { width: 100%; max-width: 336px; height: 280px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: 26px; border-radius: var(--radius, 14px); border: 1px solid var(--line, #2a2e3d); background: var(--panel, #171922); color: var(--ink, #f4f5f7); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.promo-slot__card:hover { border-color: var(--accent, #ffd23f); transform: translateY(-2px); }
.promo-slot__brand { font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.promo-slot__hook { color: var(--muted, #9aa0b0); font-size: .95rem; line-height: 1.55; }
.promo-slot__cta { color: var(--accent, #ffd23f); font-weight: 700; font-size: .95rem; margin-top: auto; }
@media (max-width: 380px) { .promo-slot__card { max-width: 300px; height: 250px; padding: 22px; } }
/* cross-brand rotation: reserve container height (CLS 0) + clamp long titles + slim anchor bar */
.promo-slot { min-height: 280px; align-items: center; }
.promo-slot__hook { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 380px) { .promo-slot { min-height: 250px; } }
.promo-anchor { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; gap: 8px; justify-content: center; padding: 9px 14px calc(9px + env(safe-area-inset-bottom)); background: var(--panel-2, #1f2230); border-top: 1px solid var(--line, #2a2e3d); box-shadow: 0 -6px 22px rgba(0,0,0,.28); }
/* [hidden] must override the display:flex above (author rules beat the UA [hidden] rule) or the close button cannot dismiss the bar. */
.promo-anchor[hidden] { display: none; }
/* Reserve the anchor's height so the fixed bar never covers page content. */
body:has(.promo-anchor:not([hidden])) { padding-bottom: 52px; }
.promo-anchor__link { display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 92vw; text-decoration: none; color: var(--ink, #f4f5f7); font-size: .9rem; }
.promo-anchor__brand { flex: 0 0 auto; font-weight: 700; }
.promo-anchor__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted, #9aa0b0); }
.promo-anchor__cta { flex: 0 0 auto; color: var(--accent, #ffd23f); font-weight: 700; }
.promo-anchor__close { flex: 0 0 auto; background: transparent; border: 0; color: var(--muted, #9aa0b0); font-size: 1.25rem; line-height: 1; cursor: pointer; padding: 2px 6px; }
/* promo card hierarchy: small brand chip · prominent title · description subtitle · CTA */
.promo-slot__card { align-items: stretch; text-align: left; }
.promo-slot__brand { font-weight: 700; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--accent, #ffd23f); opacity: .85; }
.promo-slot__hook { color: var(--ink, #f4f5f7); font-weight: 700; font-size: 1.12rem; line-height: 1.3; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.promo-slot__desc { color: var(--muted, #9aa0b0); font-size: .88rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.promo-slot__cta { color: var(--accent, #ffd23f); font-weight: 700; font-size: .9rem; margin-top: auto; }
/* promo card v2: branded emoji header + padded body */
.promo-slot__card { padding: 0; gap: 0; overflow: hidden; align-items: stretch; }
.promo-slot__thumb { height: 92px; display: flex; align-items: center; justify-content: center; font-size: 2.7rem; flex: 0 0 auto; }
.promo-slot__body { display: flex; flex-direction: column; gap: 6px; padding: 15px 18px 18px; flex: 1 1 auto; text-align: left; }
.promo-slot__cta { margin-top: auto; padding-top: 6px; }
.promo-slot__card[data-brand="toolio"] .promo-slot__thumb { background: linear-gradient(135deg, #1e8af0, #18cfe6); }
.promo-slot__card[data-brand="trynkit"] .promo-slot__thumb { background: linear-gradient(135deg, #ffd23f, #ff7a59); }
.promo-slot__card[data-brand="ggreflex"] .promo-slot__thumb { background: linear-gradient(135deg, #7c5cff, #15d9a0); }
.promo-slot__card[data-brand="tesil"] .promo-slot__thumb { background: linear-gradient(135deg, #ff7ac0, #ffb15c); }
.promo-anchor__emoji { flex: 0 0 auto; }

/* Deep-content lists (about.more) — .about has an <ol> rule but no plain <ul> rule. */
.about ul.deep-list { padding-left: 20px; margin: 8px 0; }
.about ul.deep-list li { margin: 4px 0; }

@media (min-width: 560px) { .site-foot { flex-direction: row; align-items: center; } }

/* Language switch + a11y helper. The other tools ship these unstyled (browser default
   select); giving them a minimal skin here keeps the header from looking broken. */
.app-head-right { display: inline-flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; }
.lang-switch select {
  background: var(--panel-2); color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 10px; font: 500 .8rem/1 Inter, sans-serif; cursor: pointer;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
