/*
 * The Next Twenty (/the-next-twenty).
 *
 * The page keeps the layout it was designed with — dark hero, rule of twenty,
 * four findings, the five-month timeline, the deliverables, the spec, the ask —
 * but drops the original navy/rust palette and Inter body face. Everything here
 * resolves to the sitewide tokens in application.css: paper, ink, prussian,
 * Spectral and IBM Plex Mono.
 *
 * Two things are local to the programme and live only in this file:
 *
 *   1. One accent, in two tones. Sitewide, prussian is the only accent, and
 *      against ink it measures 1.40:1 — which is to say it is black on every
 *      dark band, so the page had no action colour at all. The programme gets
 *      its own, scoped here and leaking nowhere: --tnt-accent on dark grounds
 *      (5.22:1 on ink), --tnt-accent-deep on light ones (5.79:1 on paper,
 *      5.37:1 on vellum). It appears in four places only: the primary CTA, the
 *      first eight segments of the rule of twenty, the Blueprint diamond in the
 *      timeline, and form focus and error states.
 *
 *   2. A raised type floor. The readership is 48 to 65, so body copy sits at
 *      17px and no uppercase mono label runs below 12.5px.
 *
 * All rules are prefixed .tnt- so nothing leaks into the rest of the site.
 */

:root {
  /* Programme accent. Declared here rather than in application.css so the
     sitewide "one accent only: prussian" rule stands for the author site. Both
     tones are .tnt- prefixed and both clear 4.5:1 on their own ground. */
  --tnt-accent: #C08A2E;
  --tnt-accent-deep: #7A5A25;
}

.tnt-hero,
.tnt-band,
.tnt-dark { font-family: var(--reading); }

/* ── Hero, the one dark band ─────────────────────────────────────── */
.tnt-hero {
  background: var(--ink);
  color: var(--bone);
  padding: 92px 0 76px;
}
.tnt-mark { display: block; width: 52px; height: 52px; margin-bottom: 24px; }
.tnt-hero .tnt-eyebrow { color: #8A9299; display: block; margin-bottom: 22px; }
.tnt-hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--bone);
  max-width: 20ch;
}
.tnt-hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: #A9B3B9; }
.tnt-lede { margin-top: 26px; font-size: 18.5px; line-height: 1.7; color: #C3CACE; max-width: 62ch; }
.tnt-lede b { color: var(--bone); font-weight: 500; }

.tnt-eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.tnt-cta-row { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.tnt-hero .btn { border-color: #4E5A61; color: var(--bone); }
.tnt-hero .btn:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }

/* Accent, use 1 of 4: the primary CTA. Ink on accent is 5.22:1. */
.tnt-hero .btn-ink { background: var(--tnt-accent); color: var(--ink); border-color: var(--tnt-accent); }
.tnt-hero .btn-ink:hover { background: #D9A245; border-color: #D9A245; color: var(--ink); }

.tnt-clause {
  margin-top: 34px;
  max-width: 62ch;
  border-left: 2px solid var(--prussian-light);
  padding-left: 18px;
  font-size: 17px;
  color: #A9B3B9;
}
.tnt-clause b { color: var(--bone); font-weight: 500; }

/* ── The rule of twenty ──────────────────────────────────────────── */
/* Accent, use 2 of 4: eight of twenty, the weeks to the Blueprint. On paper the
   deep tone is used, since the bright one measures 2.77:1 there and would miss
   the 3:1 floor for non-text. */
.tnt-rule20 { display: flex; gap: 6px; padding: 34px 0; }
.tnt-rule20 span { flex: 1; height: 3px; background: var(--hairline); }
.tnt-rule20 span:nth-child(-n+8) { background: var(--tnt-accent-deep); }

/* ── Section heads ───────────────────────────────────────────────── */
.tnt-sec-head { max-width: 720px; margin-bottom: 12px; }
.tnt-sec-head .tnt-eyebrow { color: var(--prussian); display: block; margin-bottom: 14px; }
.tnt-sec-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-size: clamp(28px, 3.6vw, 42px);
  color: var(--ink);
}
.tnt-sec-head p.tnt-intro { margin-top: 16px; max-width: 66ch; color: var(--ink-soft); font-size: 17.5px; }

section.tnt-band { padding: 80px 0; }

/* ── Four findings ───────────────────────────────────────────────── */
.tnt-pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.tnt-pain {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--prussian);
  padding: 28px 26px;
}
.tnt-pain .tnt-tag { display: block; font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--prussian); }
.tnt-pain h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 12px 0 6px; color: var(--ink); }
.tnt-pain .tnt-killer { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--prussian); margin-bottom: 12px; }
.tnt-pain p { font-size: 17px; color: var(--ink-soft); }

/* ── How it works ────────────────────────────────────────────────── */
.tnt-how { background: var(--card); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.tnt-timeline { overflow-x: auto; margin-top: 36px; -webkit-overflow-scrolling: touch; }
.tnt-timeline svg { min-width: 900px; width: 100%; height: auto; display: block; }
.tnt-after { margin-top: 26px; max-width: 66ch; color: var(--ink-soft); font-size: 17px; }

/* ── What you hold ───────────────────────────────────────────────── */
/* This band used to be a second ink field. Reversed body copy at length is the
   wrong ask of a presbyopic reader, and it put three heavy bands in a row, so
   it now sits on vellum with a prussian rule dividing it from the band above. */
.tnt-dark { background: var(--card); color: var(--ink); border-top: 1px solid var(--prussian-light); }
.tnt-dark .tnt-sec-head h2 { color: var(--ink); }
.tnt-dark .tnt-sec-head .tnt-eyebrow { color: var(--prussian); }
.tnt-hold-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  margin-top: 36px;
}
.tnt-hold-card { background: var(--paper); padding: 28px 26px; }
.tnt-hold-card .tnt-eyebrow { color: var(--prussian); display: block; margin-bottom: 12px; }
.tnt-hold-card h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.tnt-hold-card p { font-size: 17px; color: var(--ink-soft); }
.tnt-guarantee { margin-top: 36px; border: 1px solid var(--prussian-light); padding: 26px 28px; max-width: 760px; background: var(--paper); }
.tnt-guarantee p { color: var(--ink-soft); font-size: 17px; }
.tnt-guarantee b { color: var(--ink); font-weight: 500; }

/* ── The spec ────────────────────────────────────────────────────── */
.tnt-spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-top: 36px; }
.tnt-cellhead { font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--prussian); margin-bottom: 10px; }
.tnt-spec-grid p { font-size: 17px; color: var(--ink-soft); }

/* ── The ask ─────────────────────────────────────────────────────── */
.tnt-final { background: var(--card); border-top: 1px solid var(--ink); }
.tnt-final .tnt-eyebrow { color: var(--prussian); display: block; margin-bottom: 14px; }
.tnt-final h2 { font-family: var(--serif); font-weight: 500; line-height: 1.12; font-size: clamp(28px, 3.4vw, 40px); color: var(--ink); max-width: 24ch; }
.tnt-final p { margin-top: 16px; max-width: 62ch; color: var(--ink-soft); font-size: 17px; }
.tnt-final .tnt-fine { margin-top: 22px; font-family: var(--mono); font-size: 12.5px; color: var(--prussian); }

/* Accent, use 3 of 4: the primary CTA on a light ground. Paper on the deep tone
   is 5.79:1. */
.tnt-final .btn-ink,
.tnt-form input[type="submit"] {
  background: var(--tnt-accent-deep);
  color: var(--paper);
  border-color: var(--tnt-accent-deep);
}
.tnt-final .btn-ink:hover,
.tnt-form input[type="submit"]:hover { background: #63491D; border-color: #63491D; color: var(--paper); }

/* ── The Map application ─────────────────────────────────────────── */
/* An application to a room of twelve, so it is a document, not a signup box:
   two columns on the desk, one on the phone, every group in its own fieldset. */
.tnt-form { margin-top: 34px; max-width: 680px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.tnt-form .tnt-field { display: flex; flex-direction: column; gap: 7px; margin: 0; }
.tnt-form .tnt-field-wide { grid-column: 1 / -1; }
.tnt-form label,
.tnt-form legend {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--prussian);
}
.tnt-form .tnt-help {
  margin: 0;
  font-family: var(--reading);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0;
}
.tnt-form input[type="text"],
.tnt-form input[type="email"],
.tnt-form select,
.tnt-form textarea {
  width: 100%;
  font-family: var(--reading);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--prussian-light);
  border-radius: 2px;
  padding: 12px 13px;
}
/* The timezone list. Kept on the same slab as the text fields, with the native
   chevron drawn in rather than hidden, so it reads as a list and not a box the
   applicant is meant to type into. */
.tnt-form select {
  appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--prussian) 50%), linear-gradient(135deg, var(--prussian) 50%, transparent 50%);
  background-position: calc(100% - 21px) calc(50% + 2px), calc(100% - 15px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.tnt-form textarea { resize: vertical; min-height: 104px; }
.tnt-form ::placeholder { color: var(--muted); opacity: 1; }

/* Groups. A fieldset carries the group's own name, so the legend is the label
   and each option gets a real one of its own. */
.tnt-form .tnt-group { border: 1px solid var(--hairline); background: var(--paper); padding: 20px 22px 18px; gap: 10px; }
.tnt-form .tnt-group legend { padding: 0 8px; }
.tnt-form .tnt-check { display: flex; align-items: flex-start; gap: 11px; }
.tnt-form .tnt-check input { flex: none; width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--prussian); }
.tnt-form .tnt-check label {
  font-family: var(--reading);
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
}
.tnt-form .tnt-consent { gap: 8px; }

/* Accent, use 4 of 4: focus and error. The sitewide --oxide is aliased onto
   --muted, so an error drawn in it is grey; the deep tone reads as a fault at
   5.37:1 on vellum. */
.tnt-form input:focus-visible,
.tnt-form select:focus-visible,
.tnt-form textarea:focus-visible {
  outline: 2px solid var(--tnt-accent-deep);
  outline-offset: 1px;
  border-color: var(--tnt-accent-deep);
}
.tnt-form-summary {
  grid-column: 1 / -1;
  border: 1px solid var(--tnt-accent-deep);
  border-left-width: 3px;
  background: var(--paper);
  padding: 18px 20px;
}
.tnt-form-summary:focus-visible { outline: 2px solid var(--tnt-accent-deep); outline-offset: 2px; }
.tnt-form-summary-head {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--tnt-accent-deep);
}
.tnt-form-summary ul { margin: 0; padding-left: 20px; }
.tnt-form-summary li { font-size: 16px; line-height: 1.5; color: var(--ink); }
.tnt-form-summary a { color: var(--tnt-accent-deep); }
.tnt-field-error {
  margin: 0;
  font-family: var(--reading);
  font-size: 15.5px;
  color: var(--tnt-accent-deep);
  text-transform: none;
  letter-spacing: 0;
}
.tnt-form [aria-invalid="true"] { border-color: var(--tnt-accent-deep); }

.tnt-form .tnt-privacy {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.tnt-form .tnt-privacy a { color: var(--prussian); }
.tnt-form input[type="submit"] { grid-column: 1 / -1; justify-self: start; cursor: pointer; font-size: 15px; }
.tnt-form .tnt-submit-note {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--prussian);
}
.tnt-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 760px) {
  .tnt-hero { padding: 64px 0 56px; }
  section.tnt-band { padding: 60px 0; }
  .tnt-rule20 span { height: 2px; }
  .tnt-form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .tnt-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .tnt-reveal.is-in { opacity: 1; transform: none; }
}
