/* YearWise website. Built from the Claude Design hand-off of 2026-10-18
   (E:\_Dokumenter\2026 - YearWise app\Handoff from claude design: HANDOFF.md, design-tokens.json,
   design-source\*.dc.html). Every inline style of the artboards lives here as a class.
   Fonts are self-hosted (fonts/, SIL OFL 1.1). Nothing is loaded from another host. */

@font-face {
  font-family: "Figtree";
  src: url("../fonts/Figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FAFAF7;
  --surface: #FFFFFF;
  --ink: #1C232B;
  --ink-2: #3A444F;
  --muted: #4D5864;
  --rule: #DAD6CD;
  --rule-soft: #E4E1DA;
  --rule-strong: #C9C4B9;
  --input-border: #A8A399;
  --accent: #24507F;
  --accent-hover: #163A5F;
  --accent-tint: #EEF3F8;
  --footer-field: #232B34;
  --footer-line: #55606C;
  --footer-text: #E8ECEF;
  --footer-muted: #AEB6BF;
  --night-link: #9FC2E6;
  --era-acoustic: #F4EEE4;
  --era-electrical: #ECF1F7;
  --era-magnetic: #EAF2EC;
  --era-digital: #F0EDF6;
  --cat-mechanical: #9A5B2E;
  --cat-electrical: #2F64A3;
  --cat-magnetic: #3E7D4F;
  --cat-digital: #67539A;
  --sans: "Figtree", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* The body is a column so the footer sits at the bottom of the window on short pages. */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
body > main { flex: 1 0 auto; width: 100%; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3, p { margin: 0; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--rule-soft); background: var(--paper); }
.site-header.is-sticky { position: sticky; top: 0; z-index: 5; background: rgba(250, 250, 247, 0.94); }
.hdr {
  min-height: 68px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand svg { flex: none; }
.brand span { font-weight: 600; font-size: 23px; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 4px; position: relative; }
.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.nav a:hover { color: var(--accent-hover); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
/* Home: the nav is a short axis, each link a hollow dot on it */
.nav.axis::before { content: ""; position: absolute; left: 12px; right: 12px; bottom: 9px; height: 1px; background: var(--rule-strong); }
.nav.axis a { position: relative; flex-direction: column; }
.nav.axis a::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--ink);
}

/* ---------- Hero ---------- */

.hero { padding-top: 88px; padding-bottom: 32px; }
.hero .eyebrow { margin: 0 0 20px; }

/* The timeline headline (HANDOFF.md, "signature element") */
.tl-head {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.14em;
  font: 600 clamp(34px, 5.5vw, 80px)/1 var(--sans);
  letter-spacing: -0.04em;
  color: var(--accent);   /* smaller and blue: the reader, 2026-10-18 ("a bit too bombastic") */
}
.tl-row { display: flex; align-items: center; gap: 0.2em; }
.tl-row + .tl-row { gap: 0; }
.tl-track { flex: 1 1 0; min-width: 0.8em; display: flex; align-items: center; }
.tl-dot { flex: none; width: 0.2em; height: 0.2em; border-radius: 50%; background: var(--accent); }
.tl-axis {
  flex: 1 1 0;
  min-width: 0.6em;
  height: 0.16em;
  background:
    linear-gradient(var(--ink), var(--ink)) left center / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 0.5em) left center / 100% 0.16em no-repeat;
}
.tl-stub { flex: 0 0 0.6em; height: 2px; background: var(--ink); }
.tl-period { padding: 0.03em 0.28em 0.11em; background: var(--accent); color: #FFFFFF; border-radius: 0.14em; }
.tl-now { flex: none; padding-left: 12px; font: 500 13px var(--mono); letter-spacing: 0.08em; color: var(--muted); }

.hero .lead { margin: 28px 0 0; max-width: 60ch; font-size: 19px; color: var(--ink-2); }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-dl {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 56px;
  padding: 8px 24px;
  background: var(--accent);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 6px;
}
.btn-dl:hover { background: var(--accent-hover); color: #FFFFFF; }
.btn-dl b { font-weight: 600; font-size: 17px; }
.btn-dl small { font-size: 13px; opacity: 0.88; }
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 22px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.btn-line:hover { background: var(--surface); color: var(--ink); }
.btn-text { display: inline-flex; align-items: center; min-height: 56px; padding: 0 12px; color: var(--ink); font-weight: 500; }
.hero-actions.off { gap: 16px; }
.hero-actions.off .btn-text { min-height: 44px; padding: 0 4px; color: var(--accent); }
.quiet { margin: 0; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 16px; }
.quiet::before { content: ""; flex: none; width: 10px; height: 10px; border: 1.5px dashed var(--muted); border-radius: 50%; }
.phone-note { display: none; }

/* ---------- Hero ruler: the sample timeline 1850 to 1990 ---------- */

.ruler { padding-top: 24px; }
.ruler-cards { position: relative; height: 322px; }   /* 300 in the hand-off; +22 so the two-line 1925 card clears the 1935 card (measured, 2026-10-18) */
/* The bands reach 6 px past the cards at both ends, as at the top (r2 cards 40 to 107, r1 cards 212 to 279); until 2026-10-18 they
   stopped at 270 px, and the cards below the axis stuck out of them (the reader's report) */
.era { position: absolute; top: 34px; bottom: 15px; }
.era-a { left: 19.29%; width: 34.28%; background: var(--era-acoustic); }
.era-e { left: 53.57%; width: 40.72%; background: var(--era-electrical); }
.era-m { left: 67.86%; width: 26.43%; background: var(--era-magnetic); opacity: 0.85; }
.era-d { left: 94.29%; right: 0; background: var(--era-digital); }
.era-label {
  position: absolute;
  top: 0;
  margin: 0;
  padding-left: 8px;
  border-left: 1px solid #B9B2A4;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.el-a { left: 19.29%; }
.el-e { left: 53.57%; }
.el-m { left: 67.86%; top: 16px; }
.el-d { right: 0; padding-left: 0; border-left: 0; }
.axis-line { position: absolute; left: 0; right: 0; top: 198px; height: 1.5px; background: var(--ink); }
/* Ticks every 10 years: 15 zero-width marks spread evenly, each centred on its year */
.ticks { position: absolute; left: 0; right: 0; top: 192px; margin: 0; display: flex; justify-content: space-between; }
.ticks span {
  width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.ticks span::before { content: ""; flex: none; width: 1px; height: 13px; margin-bottom: 5px; background: var(--ink); }

/* Category colours, used by the ruler, the list and the minis */
.c-m { --c: var(--cat-mechanical); }
.c-e { --c: var(--cat-electrical); }
.c-g { --c: var(--cat-magnetic); }
.c-d { --c: var(--cat-digital); }

.ruler-events { list-style: none; margin: 0; padding: 0; }
.ruler-events li { position: absolute; top: 0; height: 100%; }
.ruler-events li:nth-child(1) { left: 5%; }
.ruler-events li:nth-child(2) { left: 19.29%; }
.ruler-events li:nth-child(3) { left: 26.43%; }
.ruler-events li:nth-child(4) { left: 34.29%; }
.ruler-events li:nth-child(5) { left: 53.57%; }
.ruler-events li:nth-child(6) { left: 55.71%; }
.ruler-events li:nth-child(7) { left: 60.71%; }
.ruler-events li:nth-child(8) { left: 70%; }
.ruler-events li:nth-child(9) { left: 94.29%; }
.ruler-events .dot { position: absolute; left: -6px; top: 193px; width: 12px; height: 12px; border-radius: 50%; background: var(--c); border: 2px solid var(--paper); }
.ruler-events .stem { position: absolute; left: 0; width: 1px; background: #B9B2A4; }
.ruler-events .card {
  position: absolute;
  left: -2px;
  width: 132px;
  padding: 7px 9px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.3;
  box-shadow: 0 1px 0 rgba(28, 35, 43, 0.04);
}
/* The last card opens to the left, so it never pushes the page sideways */
.ruler-events li.flip .card { left: auto; right: -2px; }
.ruler-events .yr { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--ink); }
.ruler-events .yr::before { content: ""; width: 8px; height: 8px; border-radius: 1px; background: var(--c); }
.ruler-events .tt { display: block; margin-top: 2px; }
.ruler-events .r0 .card { top: 114px; }
.ruler-events .r0 .stem { top: 154px; height: 39px; }
.ruler-events .r1 .card { top: 234px; }
.ruler-events .r1 .stem { top: 205px; height: 29px; }
.ruler-events .r2 .card { top: 40px; }
.ruler-events .r2 .stem { top: 80px; height: 113px; }

/* Below 980 px the ruler turns into a vertical list (Mobile.dc.html) */
.ruler-list { display: none; }
.ruler-list .cap { margin: 0 0 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }
.ruler-list ol { list-style: none; margin: 0 0 0 6px; padding: 0 0 0 28px; border-left: 1.5px solid var(--ink); }
.ruler-list li { position: relative; padding: 0 0 14px; }
.ruler-list li::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid var(--paper);
}
.ruler-list .y { font-family: var(--mono); font-size: 13px; margin-right: 10px; }
.ruler-list .t { font-size: 15px; }

/* ---------- Screenshot ---------- */

.shot { padding-top: 48px; }
.shot figure { margin: 0; }
.shot .frame {
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 24px 48px -28px rgba(28, 35, 43, 0.35);
}
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); }
.shot .fig { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; }

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

.sec { padding-top: 112px; scroll-margin-top: 72px; }
#features { padding-top: 128px; }
.sec-head { padding-bottom: 20px; border-bottom: 1.5px solid var(--ink); }
.sec-head.split { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-end; justify-content: space-between; }
.sec-num { margin: 0 0 10px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--accent); }
.sec-head h2 { font-weight: 600; font-size: clamp(28px, 3.3vw, 42px); line-height: 1.08; letter-spacing: -0.02em; color: var(--accent); }   /* smaller and blue: the reader, 2026-10-18 ("a bit too bombastic") */
.sec-aside { margin: 0; max-width: 42ch; color: var(--ink-2); }
.sec-intro { margin: 18px 0 0; max-width: 66ch; color: var(--ink-2); }

/* 01 Four views */
.views { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); border-left: 1px solid var(--rule); }
.view { padding: 32px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.view-head { margin-top: 22px; display: flex; align-items: baseline; gap: 12px; }
.view-head h3 { font-weight: 600; font-size: 28px; }
.tier-tag { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tier-tag.pro { color: var(--accent); }
.view p { margin: 8px 0 0; max-width: 52ch; color: var(--ink-2); }

.mini { height: 200px; position: relative; border-radius: 4px; overflow: hidden; }
.mini-tl, .mini-chart { background: var(--surface); border: 1px solid var(--rule-soft); }
.mini-tl .era-1 { position: absolute; left: 22%; width: 34%; top: 0; bottom: 0; background: var(--era-acoustic); }
.mini-tl .era-2 { position: absolute; left: 56%; width: 38%; top: 0; bottom: 0; background: var(--era-electrical); }
.mini-tl .ax { position: absolute; left: 6%; right: 6%; top: 120px; height: 1.5px; background: var(--ink); }
.mini-dots span { position: absolute; border-radius: 50%; background: var(--c); }
.mini-dots span:nth-child(1) { left: 10.4%; }
.mini-dots span:nth-child(2) { left: 22.97%; }
.mini-dots span:nth-child(3) { left: 29.26%; }
.mini-dots span:nth-child(4) { left: 36.17%; }
.mini-dots span:nth-child(5) { left: 53.14%; }
.mini-dots span:nth-child(6) { left: 55.03%; }
.mini-dots span:nth-child(7) { left: 59.43%; }
.mini-dots span:nth-child(8) { left: 67.6%; }
.mini-dots span:nth-child(9) { left: 88.97%; }
.mini-tl .mini-dots span { top: 115px; width: 11px; height: 11px; margin-left: -5px; }
.mc { position: absolute; padding: 5px 8px; background: var(--surface); border: 1px solid var(--rule); border-radius: 3px; font-size: 12px; line-height: 1.25; }
.mc b { font-family: var(--mono); font-weight: 500; }
.mc1 { left: 9%; top: 52px; border: 1.5px solid var(--accent); }
.mc2 { left: 46%; top: 30px; }
.mc3 { left: 70%; top: 140px; }
.mini-yr { position: absolute; bottom: 8px; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.mini-yr.l { left: 6%; }
.mini-yr.r { right: 6%; }

.mini-story { background: var(--ink); color: var(--paper); display: flex; flex-direction: column; }
.ms-top { flex: 1; display: flex; gap: 20px; padding: 20px; }
.ms-pic {
  width: 42%;
  border-radius: 3px;
  background: repeating-linear-gradient(135deg, #2E3843 0 8px, #333E4A 8px 16px);
  display: flex;
  align-items: flex-end;
  padding: 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--footer-muted);
}
.ms-txt { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.ms-y { font-weight: 600; font-size: 44px; line-height: 1; }
.ms-t { margin-top: 6px; font-size: 15px; }
.ms-n { margin-top: 10px; font-family: var(--mono); font-size: 10px; color: var(--footer-muted); }
.ms-bar { height: 34px; position: relative; border-top: 1px solid var(--ink-2); }
.ms-bar::before { content: ""; position: absolute; left: 4%; right: 4%; top: 16px; height: 1px; background: var(--footer-line); }
.ms-bar span { top: 12px; width: 9px; height: 9px; margin-left: -4px; background: #6B7682; }
.ms-bar span:nth-child(2) { background: var(--paper); }

.mini-chart svg, .mini-map svg { display: block; width: 100%; height: 100%; }
.mini-label { position: absolute; left: 12px; top: 8px; font-family: var(--mono); font-size: 10px; color: var(--muted); }
/* the Chart drawing's two series, under its axis (the label above takes the top row) */
.mini-legend { position: absolute; left: 12px; bottom: 7px; display: flex; gap: 16px; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.mini-legend span::before { content: ""; display: inline-block; width: 14px; height: 3px; margin-right: 6px; vertical-align: middle; border-radius: 2px; }
.mini-legend .ml-a::before { background: var(--accent); }
.mini-legend .ml-b::before { background: #4A7F86; }
.mini-map { background: #DBE7F0; border: 1px solid var(--rule-soft); }   /* the sea, as in the app */
.mini-badge {
  position: absolute;
  right: 10px;
  bottom: 8px;
  padding: 2px 6px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink);
}

/* 02 And more */
.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px; padding-top: 40px; }
.more h3 { margin: 16px 0 0; font-weight: 600; font-size: 24px; }
.more p { margin: 8px 0 0; color: var(--ink-2); }
.dg-undated { height: 150px; position: relative; }
.dg-cap { position: absolute; left: 0; right: 0; top: 22px; display: flex; justify-content: center; }
.dg-cap span { position: relative; z-index: 1; padding: 0 10px; background: var(--paper); font-family: var(--mono); font-size: 11px; color: var(--muted); }
.dg-brace { position: absolute; left: 14%; right: 14%; top: 29px; height: 10px; border: 1px solid var(--muted); border-bottom: 0; }
.dg-row { position: absolute; left: 0; right: 0; top: 64px; display: flex; align-items: center; gap: 8px; }
.dg-row svg { flex: none; }
.dg-box { flex: 1; min-width: 0; padding: 8px; background: var(--surface); border: 1px solid var(--rule); border-radius: 3px; font-size: 12px; line-height: 1.25; }
.dg-box b { font-family: var(--mono); font-weight: 500; }
.dg-box.undated { background: transparent; border: 1.5px dashed var(--accent); color: var(--accent); }
.dg-entry { min-height: 150px; display: flex; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; }
.dg-pic {
  width: 38%;
  flex: none;
  border-radius: 2px;
  background: repeating-linear-gradient(135deg, #EEEBE5 0 7px, #F5F3EF 7px 14px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}
.dg-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12px; line-height: 1.3; }
.dg-info .y { font-weight: 600; font-size: 22px; line-height: 1; }
.dg-info .t { font-weight: 600; }
.dg-info dl { margin: 4px 0 0; display: grid; grid-template-columns: 54px 1fr; gap: 2px 6px; color: var(--ink-2); }
.dg-info dt { color: var(--muted); }
.dg-info dd { margin: 0; }
.dg-files {
  min-height: 150px;
  margin: 0;
  padding: 16px 18px;
  background: var(--ink);
  color: var(--footer-text);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  white-space: pre;
  overflow: hidden;
}
.dg-files span { color: var(--night-link); }

/* 03 Who keeps timelines */
.who-list { list-style: none; margin: 0; padding: 0; }
.who-list li { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.who-list .n { width: 48px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.who-list .w { flex: 1 1 220px; font-weight: 600; font-size: 26px; line-height: 1.2; }
.who-list .what { flex: 3 1 360px; color: var(--ink-2); }
.who-list .chips { flex: 1 1 180px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.chip { padding: 3px 10px; border: 1px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 500; }

/* 04 Free and Pro */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; padding-top: 40px; }
.plan { padding: 32px; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; display: flex; flex-direction: column; gap: 12px; }
.plan-pro { border: 2px solid var(--accent); }
.plan-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.plan-name { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--muted); }
.plan-pro .plan-name { color: var(--accent); }
.plan-tag { font-family: var(--mono); font-size: 12px; padding: 2px 8px; background: #E8EEF5; color: var(--accent-hover); border-radius: 3px; }
.price { font-weight: 600; font-size: 54px; line-height: 1; }
.plan-desc { color: var(--ink-2); }
.plan .btn-line { margin-top: auto; align-self: flex-start; min-height: 48px; }
.btn-buy {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.plan .quiet { font-size: 15px; }
.plan-try { margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--rule-soft); font-size: 15px; color: var(--ink-2); }
.plan-mor { font-size: 13px; color: var(--muted); }

.tiers-wrap { margin-top: 48px; overflow-x: auto; }
.tiers { width: 100%; min-width: 280px; border-collapse: collapse; font-size: 15px; }
.tiers caption { text-align: left; padding-bottom: 8px; font-weight: 600; font-size: 24px; }
.tiers th, .tiers td { padding: 10px 12px; border-bottom: 1px solid var(--rule-soft); text-align: left; vertical-align: top; }
.tiers td { text-align: center; width: 22%; }
.tiers thead th { font-weight: 600; text-align: center; }
.tiers thead th:first-child { font-weight: 500; color: var(--muted); text-align: left; }
.tiers thead th.pro { color: var(--accent); }
.tiers tbody th { font-weight: 400; }
/* Group titles as a light blue band with a blue bar on the left (the reader's choice of 2026-10-18: option C with D's bar).
   The band is the inner span, so the cell's top padding stays as space between the groups. */
.tiers tr.g th {
  padding: 22px 0 0;
  border-bottom: 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.tiers tr.g th span { display: block; padding: 9px 12px 9px 10px; background: var(--accent-tint); border-left: 4px solid var(--accent); }
.tiers svg { vertical-align: middle; }
.tiers .no { display: inline-block; width: 12px; height: 1.5px; background: #8A929B; vertical-align: middle; }
.tiers .txt { font-size: 14px; }
.tiers td.pro .txt { color: var(--accent); font-weight: 500; }
.after-note { margin: 16px 0 0; font-size: 14px; color: var(--muted); max-width: 72ch; }

/* 05 What it needs */
.needs { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border-left: 1px solid var(--rule); }
.needs div { padding: 24px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.needs dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.needs dd { margin: 10px 0 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--footer-text); }
.site-footer.home { margin-top: 128px; }
.foot-main { padding-top: 88px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 48px 80px; }
.foot-intro { flex: 1 1 300px; }
.foot-intro .sec-num { color: var(--night-link); }
.foot-intro h2 { font-weight: 600; font-size: clamp(28px, 3vw, 40px); line-height: 1.08; color: var(--paper); }   /* smaller, 2026-10-18; stays light on the dark footer */
.foot-intro p { margin: 18px 0 0; max-width: 38ch; color: #C3CBD3; }
.foot-bar.ruled { border-top: 1px solid var(--ink-2); }
.foot-bar .wrap { padding-top: 20px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.legal-links { display: flex; flex-wrap: wrap; gap: 0 4px; }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--footer-text); font-size: 15px; }
.legal-links a:hover { color: #FFFFFF; }
.legal-links a[aria-current="page"] { color: #FFFFFF; font-weight: 600; }
.site-footer a:focus-visible { outline-color: var(--night-link); }
.copy { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--footer-muted); }

/* ---------- The contact form (footer: dark; contact page and conversation: light) ---------- */

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form.dark { flex: 2 1 480px; }
.topics { margin: 0; padding: 0; border: 0; min-width: 0; }
.topics legend { padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 500; }
.topic-list { display: flex; flex-wrap: wrap; gap: 8px; }
.topic { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--footer-line); border-radius: 999px; cursor: pointer; }
.topic .tl { display: flex; align-items: center; gap: 8px; }
.topic input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--night-link); }
.topic:has(input:checked) { border-color: var(--night-link); }
.topic .hint { display: none; }
.cf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 500; }
.field .opt { font-weight: 400; color: var(--footer-muted); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="password"], .contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--footer-line);
  border-radius: 4px;
  background: var(--footer-field);
  color: var(--paper);
  font: inherit;
}
.contact-form textarea { padding: 12px 14px; resize: vertical; min-height: 140px; }
.contact-form input.ver { font-family: var(--mono); font-size: 15px; }
/* "Something went wrong" reveals the version and Windows fields; without :has() they never show */
.cf-problem { display: none; flex-direction: column; gap: 14px; padding: 18px; border-radius: 4px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--footer-line); }
.contact-form:has(input[name="topic"][value="problem"]:checked) .cf-problem { display: flex; }
.cf-problem p { margin: 0; font-size: 14px; color: #C3CBD3; }
/* The message label follows the topic where :has() works; "Message" otherwise */
.msg-label .lq, .msg-label .lf, .msg-label .lp { display: none; }
@supports selector(:has(*)) {
  .msg-label .lm { display: none; }
  .contact-form:has(input[name="topic"][value="question"]:checked) .msg-label .lq,
  .contact-form:has(input[name="topic"][value="feedback"]:checked) .msg-label .lf,
  .contact-form:has(input[name="topic"][value="problem"]:checked) .msg-label .lp { display: inline; }
}
.cf-send { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.contact-form button {
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.contact-form button:hover { background: #FFFFFF; }
.cf-note { margin: 0; font-size: 14px; color: var(--footer-muted); }
.form-error { margin: 0; font-size: 14px; font-weight: 500; color: #F2B8A0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-form.light { color: var(--ink); }
.contact-form.light .topic-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 8px; }
.contact-form.light .topic {
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  background: var(--surface);
}
.contact-form.light .topic .tl { font-weight: 600; }
.contact-form.light .topic .hint { display: block; padding-left: 26px; font-size: 13px; color: var(--muted); }
.contact-form.light .topic input { accent-color: var(--accent); }
.contact-form.light .topic:has(input:checked) { padding: 11px 13px; border: 2px solid var(--accent); background: var(--accent-tint); }
.contact-form.light .topics legend { font-size: 17px; font-weight: 600; }
.contact-form.light .field label { font-size: 17px; }
.contact-form.light .field .opt { color: var(--muted); }
.contact-form.light input[type="text"], .contact-form.light input[type="email"], .contact-form.light input[type="password"], .contact-form.light textarea {
  border-color: var(--input-border);
  background: var(--surface);
  color: var(--ink);
}
.contact-form.light .cf-problem { background: #F4F2EE; border: 0; }
.contact-form.light .cf-problem p { color: var(--ink-2); }
.contact-form.light .cf-problem input { min-height: 44px; }
.contact-form.light button { background: var(--accent); color: #FFFFFF; }
.contact-form.light button:hover { background: var(--accent-hover); }
.contact-form.light .cf-note { color: var(--muted); }
.contact-form.light .form-error { color: #9A3B1B; }
.contact-form.card { gap: 22px; padding: 36px; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; }

/* ---------- Contact page ---------- */

.contact-page { padding-top: 80px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 48px 96px; }
.cp-intro { flex: 1 1 300px; max-width: 420px; }
.cp-intro .sec-num { margin-bottom: 12px; }
.cp-intro h1 { font-weight: 600; font-size: clamp(32px, 3.8vw, 48px); line-height: 1.06; letter-spacing: -0.02em; color: var(--accent); }   /* smaller and blue: the reader, 2026-10-18 ("a bit too bombastic") */
.cp-intro > p { margin: 20px 0 0; color: var(--ink-2); }
.steps { list-style: none; margin: 40px 0 0; padding: 0 0 0 24px; border-left: 1.5px solid var(--ink); }
.steps li { position: relative; padding-bottom: 22px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--ink);
}
.steps li:first-child::before { background: var(--accent); border-color: var(--accent); }
.steps b { font-weight: 600; }
.steps span { color: var(--ink-2); font-size: 15px; }
.cp-form { flex: 2 1 480px; max-width: 680px; min-width: 0; }
.sent { padding: 44px 36px; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; }
.sent h2 { margin: 16px 0 0; font-weight: 600; font-size: 30px; line-height: 1.1; color: var(--accent); }   /* smaller and blue: the reader, 2026-10-18 ("a bit too bombastic") */
.sent p { margin: 14px 0 0; color: var(--ink-2); max-width: 52ch; }
.sent-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.sent-actions .btn-line { min-height: 48px; }
.link-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; color: var(--accent); font-weight: 500; }

/* ---------- Conversation page ---------- */

.thread-page { max-width: 820px; padding-top: 72px; padding-bottom: 96px; }
.thread-page .sec-num { margin-bottom: 12px; }
.thread-page h1 { font-weight: 600; letter-spacing: -0.03em; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.08; color: var(--accent); }   /* smaller and blue: the reader, 2026-10-18 ("a bit too bombastic") */
.tp-note { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.conv { list-style: none; margin: 48px 0 0; padding: 0 0 0 32px; border-left: 1.5px solid var(--ink); }
.conv > li { position: relative; padding-bottom: 36px; }
.conv > li:last-child { padding-bottom: 0; }
.conv > li::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
}
.conv > li.ours::before { background: var(--accent); border-color: var(--accent); }
.conv > li.now::before { border: 2px dashed var(--muted); }
.conv .when { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.conv > li.ours .when { color: var(--accent); }
.conv .said { margin: 8px 0 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; white-space: pre-wrap; }
.conv > li.ours .said { background: var(--accent-tint); border-color: #C9D6E5; }
.conv .contact-form { margin-top: 8px; gap: 14px; }
.conv .contact-form button { align-self: flex-start; }
.conv .done { margin: 8px 0 0; color: var(--ink-2); }

/* ---------- Legal pages ---------- */

.legal-page { padding-top: 72px; padding-bottom: 112px; display: flex; flex-wrap: wrap; gap: 40px 72px; }
.toc { flex: 1 1 220px; max-width: 280px; }
.toc nav { border-left: 1.5px solid var(--ink); padding-left: 20px; }
.toc p { margin: 0 0 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.toc a { display: flex; gap: 10px; min-height: 44px; align-items: center; color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.toc a span { flex: none; width: 18px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.legal-doc { flex: 999 1 560px; min-width: 0; max-width: 720px; line-height: 1.65; }
.legal-doc .sec-num { margin-bottom: 12px; }
.legal-doc h1 { font-weight: 600; font-size: clamp(32px, 3.8vw, 45px); line-height: 1.08; letter-spacing: -0.02em; color: var(--accent); }   /* smaller and blue: the reader, 2026-10-18 ("a bit too bombastic") */
.upd { margin: 14px 0 0; display: inline-flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.upd::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.ld-lead { margin: 28px 0 0; font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.legal-doc > p:not(.sec-num):not(.upd):not(.ld-lead) { margin: 20px 0 0; }
.legal-doc section { margin-top: 48px; scroll-margin-top: 24px; }
.legal-doc section:first-of-type { margin-top: 56px; }
.legal-doc h2 { margin: 0; display: flex; gap: 14px; align-items: baseline; font-weight: 600; font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; }
.legal-doc h2 .n { flex: none; font-family: var(--mono); font-size: 14px; font-weight: 400; color: var(--accent); }
.legal-doc section p { margin: 14px 0 0; }
.legal-doc ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.legal-doc li { position: relative; padding-left: 28px; }
.legal-doc li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 14px; height: 1.5px; background: var(--ink); }
.legal-doc code { font-family: var(--mono); font-size: 14px; }
.legal-table-wrap { margin-top: 20px; overflow-x: auto; }
.legal-table { width: 100%; min-width: 280px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.legal-table th { text-align: left; padding: 10px 12px; border-bottom: 1.5px solid var(--ink); font-weight: 600; }
.legal-table td { padding: 10px 12px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.in-short { margin-top: 20px; padding: 18px 20px; background: var(--accent-tint); border-radius: 4px; font-size: 15px; }

/* ---------- Plain pages (inbox, thank-you): kept from the copy, new colours ---------- */

.notice { padding-top: 56px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 20px; }
.notice h1 { font-weight: 600; font-size: clamp(28px, 3vw, 34px); line-height: 1.1; letter-spacing: -0.02em; color: var(--accent); }   /* smaller and blue: the reader, 2026-10-18 ("a bit too bombastic") */
.notice .who { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.lead { font-size: 19px; color: var(--ink-2); max-width: 60ch; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #C9D6E5;
  border-radius: 6px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.btn-tint { background: var(--accent-tint); color: var(--accent); }
.thread-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.turn { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 14px 18px; }
.turn.ours { background: var(--accent-tint); border-color: #C9D6E5; }
.turn .who { margin: 0 0 6px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.turn .said { margin: 0; white-space: pre-wrap; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.notice .contact-form { max-width: 640px; }

/* ---------- Narrower screens ---------- */

@media (max-width: 980px) {
  .ruler-cards { display: none; }
  .ruler-list { display: block; }
  .ruler { padding-top: 40px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .site-header.is-sticky { position: static; background: var(--paper); }
  .hdr { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 8px; padding-bottom: 8px; }
  .brand span { font-size: 21px; }
  .brand svg { width: 26px; height: 26px; }
  .nav { margin-left: -10px; gap: 0; }
  .nav a { padding: 0 10px; }
  .nav.axis::before, .nav.axis a::after { display: none; }

  .hero { padding-top: 44px; }
  .hero .eyebrow { margin-bottom: 14px; font-size: 12px; }
  .tl-head { font-size: 34px; line-height: 1.05; }
  .tl-row + .tl-row { flex-wrap: wrap; row-gap: 6px; }
  .tl-stub { display: none; }
  .hero .lead { margin-top: 20px; font-size: 16px; }
  .hero-actions { margin-top: 24px; flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn-line { min-height: 52px; }
  .hero-actions.off { align-items: flex-start; }
  .phone-note { display: block; margin: 14px 0 0; font-size: 14px; color: var(--muted); }

  .sec, #features { padding-top: 64px; }
  .sec-head h2 { font-size: 28px; line-height: 1.1; }
  .sec-num { font-size: 12px; }
  .view { padding: 22px 0; border-right: 0; }
  .views { border-left: 0; }
  .view-head h3 { font-size: 24px; }
  .plan { padding: 22px; }
  .price { font-size: 42px; }
  .who-list li { gap: 6px 14px; padding: 14px 0; }
  .who-list .n { width: 28px; font-size: 12px; }
  .who-list .w { font-size: 21px; }
  .who-list .chips { justify-content: flex-start; }

  .tiers { font-size: 14px; }
  .tiers caption { font-size: 20px; }
  .tiers th { padding: 9px 10px 9px 0; }
  .tiers td { width: 76px; padding: 9px 4px; font-size: 13px; }
  .tiers thead th:not(:first-child) { width: 76px; padding: 6px 4px; font-size: 13px; }
  .tiers tr.g th { padding: 16px 0 0; font-size: 12px; }
  .tiers tr.g th span { padding: 8px 10px 8px 8px; }

  .needs { border-left: 0; border-top: 1.5px solid var(--ink); }
  .needs div { padding: 12px 0; border-right: 0; }
  .needs dt { font-size: 11px; }
  .needs dd { margin-top: 4px; font-size: 15px; }

  .site-footer.home { margin-top: 72px; }
  .foot-main { padding-top: 48px; padding-bottom: 24px; gap: 20px; }
  .topic-list { flex-direction: column; }
  .contact-form:not(.light) .topic { border-radius: 6px; padding: 0 14px; }
  .contact-form.card { padding: 22px; }
  .legal-links { margin-left: -8px; }
  .legal-links a { padding: 0 8px; }
  .foot-bar .wrap { padding-top: 12px; padding-bottom: 24px; }

  .contact-page { padding-top: 44px; padding-bottom: 64px; }
  .sent { padding: 28px 22px; }
  .sent h2 { font-size: 26px; }
  .thread-page { padding-top: 44px; padding-bottom: 64px; }
  .legal-page { padding-top: 44px; padding-bottom: 64px; }
  .toc { max-width: none; }
  .legal-table { font-size: 14px; }
  .legal-table th, .legal-table td { padding: 8px 6px; overflow-wrap: anywhere; }
}
