/* The Sellable Company. "The Statement": a bank statement, made beautiful.
   Money is the only thing in vermilion. Documents look like documents. */

:root {
  --paper: #FFFFFF;      /* the page */
  --sheet: #FFFFFF;      /* documents laid on it */
  --tint: #F2F5F3;       /* quiet panels */
  --band: #153527;       /* deep green bands: top of page and booking */
  --on-band: #FFFFFF;
  --on-band-soft: #D3E0D9; /* running text on the band */
  --ink: #1F2A26;        /* ledger ink for headings and figures */
  --body: #3C4743;       /* running text */
  --muted: #56625D;      /* captions and small print */
  --green: #1E4A38;      /* actions and structure */
  --green-dark: #153527;
  --rule: #C7CFC9;       /* hairlines that separate rows */
  --rule-strong: #7D8E85;   /* form borders: 3:1 against white and paper */
  --money: #A63A24;      /* numbers that are money, nothing else */
  --pen: #2A4A9B;        /* the founders' ballpoint */

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Nanum Pen Script', 'Bradley Hand', 'Segoe Print', cursive;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --header-h: 72px;
  --lift: 0 1px 0 var(--rule), 0 22px 44px -30px rgba(31, 42, 38, 0.45);

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(46px, 7.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  font-variation-settings: 'opsz' 72;
}

h2 {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 60;
}

h3 {
  font-size: 25px;
  line-height: 1.25;
  font-weight: 500;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green); }

:focus-visible {
  outline: 3px solid var(--pen);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px; top: -60px;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; z-index: 100;
}
.skip:focus { top: 12px; color: var(--paper); }

.money {
  color: var(--money);
  font-family: var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 24px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: var(--sheet);
  font: 500 18px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.button:hover { background: var(--green-dark); color: var(--sheet); }
.button-small { min-height: 44px; padding: 8px 18px; font-size: 17px; }
.button-quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--rule-strong);
}
.button-quiet:hover { background: var(--sheet); color: var(--ink); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }

.header-row {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 23px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.005em;
  white-space: nowrap;
  margin: 0;
}
.wordmark .amp { font-style: italic; color: var(--green); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.button) { text-decoration: none; font-size: 17px; color: var(--body); }
.site-nav a:not(.button):hover { color: var(--ink); text-decoration: underline; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(32px, 6vw, 80px);
  padding-bottom: clamp(56px, 9vw, 120px);
}

.hero-copy h1 { max-width: 14ch; font-size: clamp(40px, 5.4vw, 74px); }

.lede {
  font-family: var(--serif);
  font-size: clamp(21px, 2.1vw, 25px);
  line-height: 1.5;
  color: var(--body);
  max-width: 34em;
  margin-top: 28px;
}

.hero-action { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 32px; }
.hint { font-size: 16px; color: var(--muted); max-width: 26em; }

/* Deep green bands, edge to edge: the top of the page and the booking section. */
.hero {
  background: var(--band);
  box-shadow: 0 0 0 100vmax var(--band);
  clip-path: inset(0 -100vmax);
}
.book-section { background: var(--band); border-top-color: var(--band); }
.hero h1, .book-section h2 { color: var(--on-band); }
.hero .lede, .book-text p { color: var(--on-band-soft); }
.hero .hint { color: var(--on-band-soft); }
.hero-copy a:not(.button), .book-text a { color: var(--on-band); }
.hero-copy a:not(.button):hover, .book-text a:hover { color: var(--on-band-soft); }
.hero .button { background: var(--on-band); color: var(--band); }
.hero .button:hover { background: var(--on-band-soft); color: var(--band); }
.hero :focus-visible, .book-text :focus-visible { outline-color: var(--on-band); }

/* The closing statement */
.statement {
  margin: 0;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 3px;
  box-shadow: var(--lift);
}

.band {
  height: 30px;
  background: url('../img/guilloche-band.svg') repeat-x center / auto 30px;
  border-bottom: 1px solid var(--rule);
  opacity: 0.9;
}
.band-bottom { border-bottom: 0; border-top: 1px solid var(--rule); }

.statement-body { padding: 26px clamp(20px, 3vw, 34px) 24px; }

.statement-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.statement-title { font-family: var(--serif); font-size: 24px; color: var(--ink); margin: 0; }
.statement-tag {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 1px 12px;
}

.ledger { width: 100%; border-collapse: collapse; }
.ledger th, .ledger td { text-align: left; font-weight: 400; vertical-align: baseline; }
.ledger .amt {
  text-align: right;
  white-space: nowrap;
  font-family: var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink);
}

.hero-ledger th, .hero-ledger td {
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 17px;
  line-height: 1.4;
}
.hero-ledger th { padding-right: 16px; color: var(--ink); }
.hero-ledger .memo { display: block; font-size: 15px; line-height: 1.4; color: var(--muted); margin-top: 1px; }
.hero-ledger tfoot th { white-space: nowrap; }
.hero-ledger .amt { font-size: 21px; }
.hero-ledger tfoot th, .hero-ledger tfoot td { border-bottom: 0; padding-top: 18px; }
.hero-ledger tfoot th { color: var(--ink); font-weight: 700; font-size: 18px; }
.hero-ledger tfoot .amt {
  font-size: clamp(30px, 3.2vw, 38px);
  color: var(--money);
  font-weight: 500;
  border-bottom: 4px double var(--money);
  padding-bottom: 2px;
}

.statement-note { font-size: 15px; line-height: 1.5; color: var(--muted); margin-top: 18px; }

/* Drag the statement: three sliders under the ledger. */
.statement-controls { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--rule-strong); display: grid; gap: 12px; }
.controls-title { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.slider { display: grid; gap: 4px; font-size: 15px; color: var(--body); }
.slider > span { display: flex; justify-content: space-between; gap: 12px; }
.slider output { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.slider input[type=range] { width: 100%; margin: 0; accent-color: var(--green); min-height: 28px; cursor: pointer; }
.hero-ledger tfoot .memo { font-weight: 400; }
.hero-ledger .amt { transition: color 0.2s; }

/* One moment of motion: the statement prints when the page opens. */
.js .hero-ledger .print { clip-path: inset(0 100% 0 0); }
.js .hero-ledger .print.is-printed {
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.55s steps(18, end);
}
.js .hero-ledger .total.is-printed .amt { animation: stamp 0.45s ease-out 0.5s both; }
@keyframes stamp {
  from { transform: scale(1.08); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Sections */
.section { padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--rule); }
.section-intro { max-width: 46em; margin-bottom: clamp(32px, 4vw, 52px); }
.section-intro h2 + p { margin-top: 18px; font-size: 20px; }

.sheet {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 3px;
  box-shadow: var(--lift);
}

/* The tool */
.tool-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.tool-intro-text { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.tool { max-width: 860px; padding: clamp(24px, 4vw, 48px); min-height: 340px; }
.tool-progress { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; font-size: 16px; color: var(--muted); }
.tool-bar { flex: 1; height: 3px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.tool-bar span { display: block; height: 100%; background: var(--green); transition: width 0.25s ease; }

.tool-question {
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 34px);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 10px;
  outline: none;
}
.tool-help { color: var(--muted); font-size: 17px; margin-bottom: 22px; max-width: 40em; }

.tool fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.tool legend { padding: 0; width: 100%; }

.choices { display: grid; gap: 10px; margin-top: 18px; }
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 12px 18px;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: var(--sheet);
  cursor: pointer;
  font-size: 18px;
  line-height: 1.35;
  color: var(--ink);
}
.choice:hover { border-color: var(--green); }
.choice input { appearance: none; margin: 0; flex: none; width: 20px; height: 20px; border: 1.5px solid var(--rule-strong); border-radius: 50%; background: var(--sheet); display: grid; place-items: center; }
.choice input::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--green); transform: scale(0); transition: transform 0.12s ease; }
.choice input:checked { border-color: var(--green); }
.choice input:checked::after { transform: scale(1); }
.choice:has(input:checked) { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.choice:has(input:focus-visible) { outline: 3px solid var(--pen); outline-offset: 3px; }
.choice input:focus-visible { outline: none; }

.money-input { display: flex; align-items: center; max-width: 340px; margin-top: 18px; border-bottom: 2px solid var(--ink); }
.money-input span { font-family: var(--serif); font-size: 34px; color: var(--muted); padding-right: 6px; }
.money-input input, .count-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--serif);
  font-size: 34px;
  color: var(--ink);
  padding: 6px 0;
  font-variant-numeric: lining-nums tabular-nums;
}
.count-input { max-width: 160px; border-bottom: 2px solid var(--ink); margin-top: 18px; display: block; }
.money-input input:focus, .count-input:focus { outline: none; }
.money-input:focus-within, .count-input:focus { border-bottom-color: var(--pen); box-shadow: 0 2px 0 var(--pen); }
.money-input:has([aria-invalid='true']), .count-input[aria-invalid='true'] { border-bottom-color: var(--pen); }

.tool-error { color: var(--ink); font-weight: 700; font-size: 17px; margin-top: 14px; padding-left: 12px; border-left: 3px solid var(--pen); }
.tool-nav { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

.tool-intro p { max-width: 40em; }
.tool-intro ul { margin: 0 0 26px; padding-left: 1.1em; }
.tool-intro li { margin-bottom: 6px; }

/* Results */
.result-range { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 46px); line-height: 1.1; color: var(--money); margin: 6px 0 12px; font-variant-numeric: lining-nums tabular-nums; }
.result-label { font-size: 17px; color: var(--muted); margin: 0; }
.result-after { margin: 14px 0 0; padding: 10px 14px; background: var(--tint); border-left: 3px solid var(--green); font-size: 17px; color: var(--ink); }
.result-after .money { font-weight: 700; white-space: nowrap; }
.section-intro .aside { font-size: 17px; color: var(--muted); margin-top: 14px; }
.result-block { margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--rule); }
.result-block h4 { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.25; color: var(--ink); margin: 0 0 14px; }

.how-ledger th, .how-ledger td, .home-ledger th, .home-ledger td {
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 17px;
}
.how-ledger th, .home-ledger th { padding-right: 16px; }
.how-ledger .amt, .home-ledger .amt { font-size: 20px; }
.home-ledger tfoot th { font-weight: 700; color: var(--ink); border-bottom: 0; padding-top: 14px; }
.home-ledger tfoot .amt { color: var(--money); font-size: 28px; border-bottom: 4px double var(--money); padding-top: 14px; }

.issues { list-style: none; margin: 0; padding: 0; counter-reset: issue; }
.issues li { display: grid; grid-template-columns: 2.2em 1fr; gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.issues li::before { counter-increment: issue; content: counter(issue); font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--green); grid-row: span 3; }
.issue-answer { font-weight: 700; color: var(--ink); }
.issue-cost { color: var(--body); }
.issue-cost .money { font-size: 21px; }
.strengths { margin: 0; padding-left: 1.1em; }
.strengths li { margin-bottom: 6px; }

.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 34px; }
.text-button { background: none; border: 0; padding: 8px 2px; font: 17px/1.3 var(--sans); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-button:hover { color: var(--green); }

/* The visitor's own result arrives on the same closing-statement paper. */
.tool { position: relative; }
.tool[data-state='results'] { padding-top: calc(30px + clamp(24px, 4vw, 48px)); padding-bottom: calc(30px + clamp(24px, 4vw, 48px)); }
.tool[data-state='results']::before, .tool[data-state='results']::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 30px;
  background: url('../img/guilloche-band.svg') repeat-x center / auto 30px;
}
.tool[data-state='results']::before { top: 0; border-bottom: 1px solid var(--rule); }
.tool[data-state='results']::after { bottom: 0; border-top: 1px solid var(--rule); }
.small-print { font-size: 15px; color: var(--muted); margin-top: 26px; }
.small-print details summary { cursor: pointer; }
.small-print ul { padding-left: 1.1em; margin: 8px 0 0; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.step {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 230px;
  gap: 8px 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.numeral { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--green); }
.step-text h3 { margin-bottom: 8px; }
.step-text p { max-width: 40em; }
.step-price { margin: 0; text-align: right; display: flex; flex-direction: column; gap: 2px; }
.step-price .money { font-size: 34px; line-height: 1.1; }
.step-time { font-size: 16px; color: var(--muted); }

/* Sample report */
.sample-section { overflow: hidden; }
.sheets { position: relative; }
.doc { position: relative; padding: clamp(22px, 3vw, 36px); }
.doc-one { width: min(100%, 940px); padding-right: 250px; transform: rotate(-0.5deg); }
.doc-two { width: min(100%, 720px); margin: 36px 0 0 auto; padding-right: 230px; transform: rotate(0.7deg); }
.doc-head { border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 8px; }
.doc-title { font-family: var(--serif); font-size: 23px; color: var(--ink); margin: 0; }
.doc-meta { font-size: 15px; color: var(--muted); margin: 2px 0 0; }

.doc-table th, .doc-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.4; }
.doc-table thead th { font-weight: 700; color: var(--ink); font-size: 15px; }
.doc-table td:last-child { white-space: nowrap; color: var(--muted); padding-right: 0; }
.doc-value th, .doc-value td { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
.doc-value th { padding-right: 16px; }
.doc-value .amt { font-size: 22px; }

.num { display: inline-block; min-width: 1.4em; color: var(--ink); }
.circled { position: relative; }
.circled::after {
  content: '';
  position: absolute;
  left: -5px; top: -3px;
  width: 1.45em; height: 1.45em;
  border: 1.6px solid var(--pen);
  border-radius: 50% 46% 52% 44%;
  transform: rotate(-8deg);
}
.underlined { background: linear-gradient(var(--pen), var(--pen)) no-repeat 0 100% / 100% 1.6px; padding-bottom: 2px; }

.note {
  position: absolute;
  right: 26px;
  width: 190px;
  font-family: var(--hand);
  color: var(--pen);
  font-size: 27px;
  line-height: 1.05;
  margin: 0;
}
.note .sig { display: block; text-align: right; }
.note-a { top: 128px; transform: rotate(-3deg); }
.note-b { bottom: 34px; transform: rotate(2deg); }
.note-c { top: 118px; right: 22px; transform: rotate(-2deg); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.about-text > p { font-family: var(--serif); font-size: 22px; line-height: 1.55; margin-top: 22px; max-width: 34em; }
.facts { width: 100%; border-collapse: collapse; margin: 34px 0 40px; border-top: 1px solid var(--ink); }
.facts th, .facts td { text-align: left; vertical-align: baseline; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
.facts th { font-weight: 400; color: var(--muted); width: 40%; padding-right: 16px; }
.facts td { color: var(--ink); }
.promises { list-style: none; padding: 0; margin: 14px 0 0; }
.promises li { padding: 10px 0 10px 22px; border-bottom: 1px solid var(--rule); position: relative; }
.promises li::before { content: ''; position: absolute; left: 0; top: 21px; width: 10px; height: 2px; background: var(--green); }

.portraits { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: sticky; top: calc(var(--header-h) + 24px); }
.portrait { margin: 0; }
.portrait:nth-child(2) { margin-top: 48px; }
.photo-slot {
  aspect-ratio: 4 / 5;
  border: 1.5px dashed var(--rule-strong);
  border-radius: 3px;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(135deg, transparent 0 11px, rgba(31, 42, 38, 0.04) 11px 12px);
  color: var(--muted);
  font-size: 15px;
  text-align: center;
  padding: 12px;
}
.portrait figcaption { font-family: var(--serif); font-size: 21px; color: var(--ink); margin-top: 10px; }
.portrait .photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--sheet);
  padding: 8px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  box-shadow: var(--lift);
}
/* Gonzalo leads; Langdon is the operations specialist he brings in. */
.portraits:has(.portrait-lead) { grid-template-columns: 1fr 1fr; align-items: start; }
.portrait-support { margin-top: 0 !important; }
.portrait-support .photo-slot { font-size: 14px; }
.portrait figcaption .role { display: block; font-family: var(--sans); font-size: 15px; color: var(--muted); margin-top: 2px; }
.partner { margin: 0 0 40px; padding: 18px 0 0 22px; border-left: 2px solid var(--green); }
.partner h3 { margin-top: 0; }
.partner p { margin: 10px 0 0; max-width: 34em; }

/* Work */
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 40px 28px; }
.work { grid-column: span 2; }
.work-wide { grid-column: span 3; }
.work a { display: block; text-decoration: none; color: inherit; }
.work img { padding: 10px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px; box-shadow: var(--lift); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.work h3 { margin-top: 18px; font-size: 23px; }
.work p { margin: 4px 0 6px; font-size: 17px; color: var(--muted); }
.visit { font-size: 16px; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.work a:hover .visit, .work a:hover h3 { color: var(--green); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 44px 20px 0;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq summary::before {
  content: '';
  position: absolute;
  right: 6px; top: 50%;
  width: 16px; height: 1.5px;
  background: var(--green);
  transition: transform 0.2s ease;
}
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0deg); }
.faq details p { padding: 0 0 22px; max-width: 40em; }

/* Booking */
.book-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.book-text p { margin-top: 18px; max-width: 30em; }
.book-form, .book-done { padding: clamp(22px, 3.4vw, 40px); }
.book-done h3 { margin-bottom: 10px; }
.field { margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-size: 17px; color: var(--ink); margin-bottom: 6px; font-weight: 500; padding: 0; }
.optional { color: var(--muted); font-weight: 400; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field input[type='text'], .field input[type='tel'], .field input[type='email'], .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 10px 12px;
  font: 18px/1.4 var(--sans);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--pen); outline-offset: 1px; border-color: var(--pen); }
.field [aria-invalid='true'] { border-color: var(--pen); box-shadow: inset 0 0 0 1px var(--pen); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills label { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 16px; border: 1px solid var(--rule-strong); border-radius: 999px; font-weight: 400; cursor: pointer; margin: 0; }
.pills label:has(input:checked) { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.pills input { accent-color: var(--green); width: 18px; height: 18px; margin: 0; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.check input { accent-color: var(--green); width: 20px; height: 20px; margin: 4px 0 0; flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--ink); font-weight: 700; margin: 0 0 16px; padding-left: 12px; border-left: 3px solid var(--pen); }

/* Footer */
.site-footer { border-top: 1px solid var(--ink); padding-block: 40px 56px; }
.footer-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px 40px; align-items: baseline; }
.footer-note { font-size: 15px; color: var(--muted); max-width: 46em; margin: 0; }
.footer-links { display: flex; gap: 20px; font-size: 15px; margin: 0; color: var(--muted); }

/* Smaller screens */
@media (max-width: 1080px) {
  .doc-one, .doc-two { width: 100%; padding-right: clamp(22px, 3vw, 36px); transform: none; }
  .doc-two { margin-top: 32px; }
  .note { position: static; transform: none; width: auto; max-width: none; margin-top: 16px; }
  .note .sig { display: inline; }
  .note-b, .note-c { margin-top: 8px; }
}

@media (max-width: 900px) {
  .site-nav a:not(.button) { display: none; }
  .hero, .about-grid, .book-grid, .faq-wrap, .tool-layout { grid-template-columns: minmax(0, 1fr); }
  .tool-intro-text { position: static; }
  .hero-copy h1 { max-width: 13ch; }
  .portraits { position: static; max-width: 520px; }
  .step { grid-template-columns: 48px minmax(0, 1fr); }
  .numeral { font-size: 32px; }
  .step-price { grid-column: 2; text-align: left; flex-direction: row; align-items: baseline; gap: 12px; flex-wrap: wrap; }
  .work, .work-wide { grid-column: span 6; }
  .footer-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 18px; }
  :root { --header-h: 64px; }
  .wordmark { font-size: 20px; }
  .button-small { padding: 8px 14px; font-size: 16px; }
  .hero-ledger th, .hero-ledger td { font-size: 16px; }
  .hero-ledger .amt { font-size: 19px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .hero-ledger tfoot th { white-space: normal; }
  .hero-ledger tfoot .amt { font-size: 28px; }
  .statement-body { padding-inline: 18px; }
  .doc-table thead { display: none; }
  .doc-table tr { display: grid; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .doc-table td { border: 0; padding: 2px 0; }
  .doc-table td:first-child { font-weight: 700; color: var(--ink); }
  .portrait:nth-child(2) { margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .hero-ledger .print { clip-path: none; }
}

/* Privacy and terms */
.legal { max-width: calc(46em + 2 * var(--gutter)); padding-block: clamp(40px, 7vw, 88px); }
.legal h1 { font-size: clamp(40px, 5vw, 60px); margin-bottom: 8px; }
.legal h2 { font-size: 26px; margin: 36px 0 10px; }
.legal-date { color: var(--muted); font-size: 16px; }

@media print {
  .js .hero-ledger .print { clip-path: none; }
  .site-header, .book-section, .tool-section { display: none; }
}
