/* ============================================================
   BENCH DEPTH — production stylesheet
   Structure, grid and type from variant B.
   Palette retinted to variant C: warm paper, warm ink, oxide mark.
   Self-hosted type: Source Serif 4 (display) / Inter (body + UI).
   ============================================================ */

/* ---------- self-hosted faces (no third-party requests) ---------- */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("assets/fonts/source-serif-4-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */

:root {
  /* ground + panels */
  --paper:    #FBF7F0;
  --paper-2:  #F3ECE0;
  --paper-3:  #F8F2E8;

  /* ink */
  --ink:      #1F1B15;
  --ink-2:    #4B4339;
  --pencil:   #6F6557;
  --band:     #241E16;

  /* rules */
  --rule:     #DED3C2;
  --rule-2:   #C6B9A4;

  /* the one mark */
  --mark:     #A33B1E;
  --mark-2:   #853017;

  /* on dark / on mark */
  --on-band:   #FBF7F0;
  --on-band-2: #CBBCA6;
  --on-mark:   #FFF8F1;

  --display: "Source Serif 4", Georgia, "Times New Roman", Times, serif;
  --ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --pad: 24px;
  --sec-y: clamp(52px, 7.5vw, 100px);
  --gut: clamp(20px, 2.6vw, 34px);
}

/* ---------- base ---------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: clamp(1rem, 0.97rem + 0.16vw, 1.0625rem);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--mark); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- the grid ---------- */

.g { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: var(--gut); }
@media (min-width: 900px) {
  .g { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); }
  .col-a { grid-column: 1 / span 5; }
  .col-b { grid-column: 7 / span 6; }
  .col-half-a { grid-column: 1 / span 6; }
  .col-half-b { grid-column: 7 / span 6; }
  .col-full8 { grid-column: 1 / span 8; }
  .col-full10 { grid-column: 1 / span 10; }
}

/* ---------- sections + rules ---------- */

.section { padding-bottom: var(--sec-y); }
.section > .wrap { padding-top: var(--sec-y); position: relative; }
.section--ruled > .wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--pad);
  right: var(--pad);
  height: 1px;
  background: var(--rule);
}
.section--tint { background: var(--paper-2); }

/* ---------- type ---------- */

.h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.3rem, 5.6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.h1--inner { font-size: clamp(2.1rem, 4.8vw, 3.5rem); }

.h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 24px;
  max-width: 20ch;
  text-wrap: balance;
}
.h2--wide { max-width: 28ch; }

.h3 {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 8px;
}

.label {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mark);
  margin: 0 0 14px;
}

p { margin: 0 0 20px; max-width: 62ch; color: var(--ink-2); }
p:last-child { margin-bottom: 0; }

.lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); color: var(--ink); max-width: 54ch; }

strong, b { color: var(--ink); font-weight: 600; }

.fine {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pencil);
  margin-top: 26px;
}

/* content that sits under a list, panel or stat block */
.follows { margin-top: 28px; }

/* ---------- buttons + links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mark);
  color: var(--on-mark);
  font-family: var(--ui);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  padding: 16px 30px;
  border-radius: 3px;
  border: 1px solid var(--mark);
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--mark-2); border-color: var(--mark-2); }

.btn--sm { font-size: 0.8125rem; padding: 12px 17px; }

.btn--onband { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--onband:hover { background: var(--paper-2); border-color: var(--paper-2); }

.textlink {
  font-weight: 600;
  color: var(--mark);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-2);
  padding-bottom: 2px;
}
.textlink:hover { border-bottom-color: var(--mark); }

/* ---------- check glyph ---------- */

.check { position: relative; width: 17px; height: 17px; flex: 0 0 auto; }
.check::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 3px;
  width: 14px;
  height: 7px;
  border-left: 2px solid var(--mark);
  border-bottom: 2px solid var(--mark);
  transform: rotate(-45deg);
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 247, 240, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 14px 28px;
  flex-wrap: wrap;
  min-height: 72px;
  padding-block: 12px;
}
.nav__mark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  padding-block: 6px;
}
.nav__nav { margin-left: auto; }
.nav__links { display: flex; flex-wrap: wrap; gap: 6px 26px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  position: relative;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink-2);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.nav__links a:hover { color: var(--mark); }
/* which page you're on — the same oxide underline the hero uses */
.nav__links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--mark); }
/* tap area to 44px without moving anything: the bar stays the height it was */
.nav__links a::after { content: ""; position: absolute; inset: -14px 0; }

/* Narrow screens: a wrapped sticky bar would eat a fifth of the fold. */
@media (max-width: 860px) {
  .nav { position: static; }
  .nav__inner { min-height: 0; padding-block: 14px; gap: 12px; }
  .nav__nav { order: 3; flex: 1 0 100%; margin-left: 0; }
  .nav__cta { margin-left: auto; }
  /* row-gap tiles the 44px tap areas if the links ever wrap (below ~340px) */
  .nav__links { gap: 28px 20px; }
  .nav__links a { font-size: 0.875rem; }
}
@media (max-width: 400px) {
  .nav__mark { font-size: 1.2rem; }
  .btn--sm { font-size: 0.75rem; padding: 12px 14px; }
}

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

.hero { padding-block: clamp(52px, 9vw, 124px) clamp(48px, 7vw, 100px); }
.hero--inner { padding-block: clamp(44px, 7vw, 92px) clamp(44px, 6vw, 84px); }
.hero__sub {
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  font-weight: 500;
  color: var(--ink);
  margin: 26px 0 30px;
  max-width: 30ch;
}
.hero__sub span { border-bottom: 2px solid var(--mark); padding-bottom: 3px; }
.hero .lead { margin-top: 26px; }
.hero__cta { margin-top: 32px; }

/* ---------- steps (numbered, 3 up) ---------- */

.steps { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.step { padding-block: 28px; border-top: 1px solid var(--rule); }
.step__n, .part__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--rule-2);
  border-radius: 50%;
  background: var(--paper-3);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--mark);
  margin-bottom: 16px;
}
.step p { margin: 0; }

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gut); }
  .step { padding: 28px var(--gut) 0 0; }
  .step + .step { border-left: 1px solid var(--rule); padding-left: var(--gut); }
}

/* ---------- parts (numbered blocks with body copy, 2 up) ---------- */

.parts { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.part { padding-block: 30px; border-top: 1px solid var(--rule); }
.part .h3 { font-family: var(--display); font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 600; letter-spacing: -0.015em; margin-bottom: 14px; }
.part p { max-width: 52ch; }

@media (min-width: 900px) {
  .parts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gut); }
  .part { padding-right: var(--gut); }
  .part:nth-child(even) { border-left: 1px solid var(--rule); padding-left: var(--gut); padding-right: 0; }
}

/* ---------- checked list ---------- */

.clist { list-style: none; margin: 0; padding: 0; }
.clist > li {
  display: flex;
  gap: 16px;
  padding-block: 22px;
  border-top: 1px solid var(--rule);
}
.clist > li:last-child { border-bottom: 1px solid var(--rule); }
.clist strong { display: block; margin-bottom: 4px; }
.clist p { margin: 0; max-width: 60ch; }

@media (min-width: 900px) {
  .clist--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gut); }
  .clist--two > li:nth-last-child(2) { border-bottom: 1px solid var(--rule); }
}

.closer {
  margin-top: 30px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--ink);
  letter-spacing: -0.015em;
  max-width: 40ch;
}

/* ---------- pull quote ---------- */

.pull {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.25;
  letter-spacing: -0.018em;
  color: var(--ink);
  border-left: 3px solid var(--mark);
  padding-left: 22px;
  margin-top: 30px;
  max-width: 24ch;
}

/* ---------- sourced stat line ---------- */

.statline {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--rule-2);
  color: var(--ink);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.45;
  max-width: 46ch;
}
.statline__fig {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.45em;
  letter-spacing: -0.02em;
  color: var(--mark);
}
.statline cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pencil);
}

/* ---------- card ---------- */

.card {
  background: var(--paper-3);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: clamp(28px, 4vw, 52px);
}
.card .h2 { max-width: 24ch; }
.card p { max-width: 66ch; }

/* ---------- for / not-for ---------- */

.pair { display: grid; gap: var(--gut); }
@media (min-width: 900px) { .pair { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }

.pair__yes { border: 1px solid var(--ink); border-radius: 4px; padding: clamp(24px, 3vw, 36px); }
.pair__yes .clist > li:first-child { border-top: 0; padding-top: 0; }
.pair__yes .clist > li:last-child { border-bottom: 0; padding-bottom: 0; }

.pair__no {
  background: var(--paper-2);
  border-radius: 4px;
  padding: clamp(24px, 3vw, 36px);
}
.pair__no p { max-width: 46ch; }

/* ---------- named blocks (bold lead-in prose) ---------- */

.notes { display: grid; gap: 0; margin: 0; padding: 0; }
.notes > li, .notes > .note { padding-block: 24px; border-top: 1px solid var(--rule); list-style: none; }
.notes > li > p:first-child, .notes > .note > p:first-child { margin-top: 0; }
.notes p { max-width: 54ch; }
.notes p + p { margin-top: 16px; }
/* single column: the divider rules must not outrun the measure they divide */
.notes:not(.notes--two) { max-width: 54ch; }
/* a notes list that opens a ruled section: the section rule is already the divider */
.notes--opens > li:first-child { border-top: 0; padding-top: 0; }

@media (min-width: 900px) {
  .notes--two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gut); }
  .notes--two > li:nth-child(even), .notes--two > .note:nth-child(even) { border-left: 1px solid var(--rule); padding-left: var(--gut); }
  .notes--two > li:nth-child(odd), .notes--two > .note:nth-child(odd) { padding-right: var(--gut); }
}

/* ---------- timeline rows ---------- */

.tline { list-style: none; margin: 0; padding: 0; }
.tline > li { padding-block: 20px; border-top: 1px solid var(--rule-2); }
.tline > li:last-child { border-bottom: 1px solid var(--rule-2); }
.tline__when {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mark);
  margin-bottom: 6px;
}
.tline p { margin: 0; max-width: 62ch; }

@media (min-width: 780px) {
  .tline > li { display: grid; grid-template-columns: 190px minmax(0, 1fr); column-gap: var(--gut); align-items: baseline; }
  .tline__when { margin-bottom: 0; }
}

/* ---------- guarantee / clause cards ---------- */

.gcards { display: grid; gap: var(--gut); }
.gcard {
  background: var(--paper-3);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--mark);
  border-radius: 4px;
  padding: clamp(22px, 2.6vw, 32px);
}
.gcard .h3 { font-family: var(--display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.012em; }
.gcard p { margin: 0; max-width: 46ch; }

@media (min-width: 860px) {
  .gcards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gcards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- questions ---------- */

.qa { display: grid; gap: 0; }
.qa > .q { padding-block: 26px; border-top: 1px solid var(--rule); }
.qa__q {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 10px;
  max-width: 26ch;
}
.qa p { margin: 0; max-width: 62ch; }

@media (min-width: 980px) {
  .qa > .q { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--gut); }
  .qa__q { margin-bottom: 0; }
}

/* ---------- pricing ---------- */

.tiers { display: grid; gap: 0; margin-block: 34px; }
.tier { padding-block: 30px; border-top: 1px solid var(--rule); }
.tier--pick { border-top: 3px solid var(--mark); }
.tier__tag {
  /* block, not inline-block: an inline-block sits on a text baseline, and the
     extra leading pushed this tier's name and price below its neighbours' */
  display: block;
  width: max-content;
  background: var(--mark);
  color: var(--on-mark);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
  margin-bottom: 14px;
}
.tier__name {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pencil);
  margin: 0 0 12px;
}
.tier__price {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.4vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.028em;
  color: var(--ink);
  display: block;
}
.tier__unit { display: block; font-size: 0.9375rem; color: var(--mark); font-weight: 500; margin-top: 8px; }
.tier p { margin: 14px 0 0; max-width: 34ch; }

@media (min-width: 860px) {
  .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gut); }
  .tier { padding-right: var(--gut); }
  .tier + .tier { border-left: 1px solid var(--rule); padding-left: var(--gut); }
  /* reserve the tag's height in untagged tiers so names and prices line up.
     30px = the tag's 28px box + the 2px their 1px top border gives away to
     the picked tier's 3px one. */
  .tier:not(.tier--pick)::before { content: ""; display: block; height: 30px; margin-bottom: 14px; }
}

/* same panel treatment as .card / .gcard / .panel — it sits directly above the
   clause cards, and two panel fills on one page read as an accident */
.addon {
  background: var(--paper-3);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: clamp(22px, 2.6vw, 32px);
  display: grid;
  gap: 8px;
}
.addon .h3 { font-family: var(--display); font-size: 1.25rem; letter-spacing: -0.012em; margin: 0; }
.addon p { margin: 0; max-width: 60ch; }

.terms-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.terms-row p { margin: 0; }

/* ---------- contact bits ---------- */

.altline { margin-top: 26px; color: var(--pencil); font-size: 0.9375rem; }

.panel {
  background: var(--paper-3);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: clamp(24px, 3vw, 36px);
}
.panel .h3 { margin-bottom: 12px; }
.panel p { margin: 0; }

/* ---------- final CTA band ---------- */

.cta-band { background: var(--band); color: var(--on-band); padding-block: clamp(52px, 8vw, 100px); }
.cta-band .h2 { color: var(--on-band); max-width: 18ch; }
.cta-band p { color: var(--on-band-2); max-width: 58ch; }
.cta-band .btn { margin-top: 30px; }

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

.foot { padding-block: clamp(34px, 5vw, 54px); border-top: 1px solid var(--rule); }
.foot__grid { display: grid; gap: 22px; }
.foot__line { color: var(--pencil); margin: 0; font-size: 0.9375rem; max-width: 48ch; }
/* 26px row-gap so the 44px tap areas below tile exactly when the links wrap */
.foot__links { display: flex; flex-wrap: wrap; gap: 26px; list-style: none; margin: 0; padding: 0; }
.foot__links a { position: relative; font-size: 0.9375rem; color: var(--pencil); text-decoration: none; }
.foot__links a:hover { color: var(--mark); }
.foot__links a[aria-current="page"] { color: var(--ink); }
.foot__links a::after { content: ""; position: absolute; inset: -13px 0; }

@media (min-width: 820px) {
  .foot__grid { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .foot__links { justify-content: flex-end; }
}

/* lists that open a ruled section would otherwise double the section rule */
.section--ruled > .wrap > .qa > .q:first-child { border-top: 0; padding-top: 0; }

@media (max-width: 859px) {
  .section--ruled > .wrap > .steps > .step:first-child,
  .section--ruled > .wrap > .tiers > .tier:first-child { border-top: 0; padding-top: 0; }
}
@media (max-width: 899px) {
  .section--ruled > .wrap > .parts > .part:first-child { border-top: 0; padding-top: 0; }
}

/* where the bar is sticky it would otherwise cover an anchored section's rule
   and first card (pricing.html#terms, linked from how-it-works) */
@media (min-width: 861px) {
  :target { scroll-margin-top: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
