/* ===========================================================
   Siobhan Accounting Services

   Cool paper, blue ink, red only for what is late. The one
   loud thing on the site is the adding-machine tape; the rest
   stays quiet so the numbers can be read.
   =========================================================== */

:root {
  --paper: #f3f5f7;
  --surface: #ffffff;
  --ink: #172536;
  --ink-soft: #4c5a69;
  --rule: #d5dee8;
  --rule-strong: #7d8ea3; /* 3.3:1 on white, enough for control borders */
  --blue: #1e4e9c;
  --blue-deep: #163b77;
  --blue-wash: #e7eef8;
  --red: #b23a30;

  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --tape: "Courier Prime", "Courier New", Courier, monospace;

  /* Type scale, ratio 1.25 from a 17px body. */
  --t-sm: 0.875rem;
  --t-body: 1.0625rem;
  --t-lead: 1.25rem;
  --t-h3: 1.3125rem;
  --t-h2: clamp(1.75rem, 1.2rem + 2vw, 2.45rem);
  --t-h1: clamp(2.35rem, 1.4rem + 4.2vw, 4rem);

  --wrap: 1140px;
  --gutter: 16px;
  --radius: 6px;

  color-scheme: light;
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  font-feature-settings: "tnum" 0;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  font-size: var(--t-h1);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

h2 {
  font-size: var(--t-h2);
  font-weight: 700;
  letter-spacing: -0.018em;
}

h3 {
  font-size: var(--t-h3);
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 0.9em; }

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--blue-deep); text-decoration-thickness: 2px; }

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

.num { font-variant-numeric: tabular-nums; }

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

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

.measure { max-width: 38rem; }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--ink-soft); }
.soft { color: var(--ink-soft); }
.small { font-size: var(--t-sm); }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  z-index: 20;
  border-radius: var(--radius);
}
.skip:focus { top: 10px; color: #fff; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7em 1.25em;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; text-decoration: none; }

.btn-quiet {
  background: transparent;
  color: var(--blue);
}
.btn-quiet:hover { background: var(--blue-wash); color: var(--blue-deep); }

.btn-small { min-height: 40px; padding: 0.45em 0.95em; font-size: 0.95rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

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

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

/* The wordmark sits on a double rule, the way a final total does. */
.brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  padding-bottom: 6px;
  border-bottom: 3px double var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-name { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand-sub { font-size: 0.78rem; font-weight: 500; color: var(--ink-soft); margin-top: 3px; letter-spacing: 0.01em; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.98rem;
}
.site-nav a:not(.btn):hover { background: var(--blue-wash); color: var(--blue-deep); }
.site-nav a:not(.btn)[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.site-nav .btn { margin-left: 10px; }

.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: 600 0.95rem var(--sans);
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .site-nav a:not(.btn)[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue); padding-left: 14px; }
  .site-nav .btn { margin: 16px 0 0; }
}

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-white { background: var(--surface); }

@media (min-width: 900px) {
  .section { padding: 104px 0; }
}

.section-head { max-width: 40rem; margin-bottom: 40px; }
.section-head p { margin-top: 14px; }

.page-head { padding: 64px 0 48px; border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.3rem); }
.page-head .lead { margin-top: 18px; max-width: 40rem; }

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

.hero { padding: 56px 0 72px; overflow: hidden; }

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: start;
}

@media (min-width: 960px) {
  .hero { padding: 80px 0 104px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 72px; }
}

.hero h1 { max-width: 13ch; }
.hero .lead { margin-top: 24px; max-width: 34rem; }
.hero .actions { margin-top: 32px; }
.hero-note { margin-top: 20px; font-size: var(--t-sm); color: var(--ink-soft); }

.hero-tape { justify-self: center; width: 100%; max-width: 380px; }
.hero-tape .tape-caption { margin-top: 14px; font-size: var(--t-sm); color: var(--ink-soft); }

/* ---------- The adding-machine tape ---------- */

.tape {
  --tooth: 9px;
  position: relative;
  background: var(--surface);
  color: #1d2733;
  font-family: var(--tape);
  font-size: 0.95rem;
  line-height: 1.55;
  padding: 26px 22px 30px;
  filter: drop-shadow(0 1px 0 rgba(23, 37, 54, 0.08)) drop-shadow(0 10px 22px rgba(23, 37, 54, 0.12));
  /* Torn top and bottom edges, cut with a zigzag mask. */
  -webkit-mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(var(--tooth) * 2) var(--tooth) repeat-x,
    linear-gradient(#000 0 0) center / 100% calc(100% - var(--tooth) * 2) no-repeat;
  mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(var(--tooth) * 2) var(--tooth) repeat-x,
    linear-gradient(#000 0 0) center / 100% calc(100% - var(--tooth) * 2) no-repeat;
}

/* drop-shadow is clipped by the mask, so the shadow lives on a wrapper. */
.tape-shadow {
  filter: drop-shadow(0 1px 1px rgba(23, 37, 54, 0.12)) drop-shadow(0 12px 24px rgba(23, 37, 54, 0.12));
}
.tape-shadow .tape { filter: none; }

.tape-head {
  text-align: center;
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px dashed #b9c4cf;
}
.tape-head strong { display: block; font-weight: 700; letter-spacing: 0.04em; }
.tape-head span { display: block; font-size: 0.85rem; color: #5b6774; }

.tape-lines { list-style: none; margin: 0; padding: 0; }

.tape-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 1.4ch;
  column-gap: 10px;
  align-items: baseline;
}
.tape-line .lbl { overflow-wrap: anywhere; }
.tape-line .amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tape-line .sym { text-align: right; color: #5b6774; }

.tape-section {
  margin-top: 12px;
  font-size: 0.82rem;
  color: #5b6774;
  letter-spacing: 0.02em;
}

.tape-sub .amt { border-top: 1px solid #1d2733; padding-top: 2px; }
.tape-sub { font-weight: 700; margin-top: 4px; }

/* The grand total gets the double underline, as it would in a ledger. */
.tape-total {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px dashed #b9c4cf;
  font-weight: 700;
  font-size: 1.05rem;
}
.tape-total .amt { border-bottom: 3px double #1d2733; }

.tape-note { margin-top: 12px; font-size: 0.82rem; color: #5b6774; line-height: 1.45; }
.tape-custom .amt { color: var(--red); }

/* One orchestrated moment: the tape prints, a line at a time.
   Lines are only hidden while the animation is running (fill
   mode backwards), so if animations never run the tape still
   shows in full. */
.tape.is-printing .tape-lines > li,
.tape.is-printing .tape-note {
  animation: print-line 1ms steps(1, end) backwards;
  animation-delay: calc(var(--i, 0) * 140ms + 250ms);
}
@keyframes print-line { from { opacity: 0; } to { opacity: 0; } }
.tape.is-printing.is-waiting .tape-lines > li,
.tape.is-printing.is-waiting .tape-note { animation-play-state: paused; }

@media (max-width: 420px) {
  .tape { font-size: 0.875rem; padding: 24px 16px 28px; }
  .tape-line { column-gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .tape.is-printing .tape-lines > li,
  .tape.is-printing .tape-note { animation: none; }
}

/* ---------- Ledger rows (services, plans) ---------- */

.ledger { border-top: 2px solid var(--ink); }

.ledger-row {
  display: grid;
  gap: 6px 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 760px) {
  .ledger-row { grid-template-columns: 15rem minmax(0, 1fr) 9rem; align-items: baseline; }
}

.ledger-row h3 { font-size: 1.15rem; }
.ledger-row h3 a { color: var(--ink); text-decoration: none; }
.ledger-row h3 a:hover { color: var(--blue); text-decoration: underline; }
.ledger-row p { color: var(--ink-soft); }
.ledger-price { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
@media (min-width: 760px) { .ledger-price { text-align: right; } }
.ledger-price small { display: block; font-weight: 400; color: var(--ink-soft); font-size: var(--t-sm); }

.ledger-foot { margin-top: 24px; }

/* ---------- Situations list ---------- */

.situations {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0 48px;
}
@media (min-width: 760px) { .situations { grid-template-columns: 1fr 1fr; } }

.situations li {
  padding: 20px 0 20px 34px;
  border-top: 1px solid var(--rule);
  position: relative;
}
/* An accountant's tick, the mark for "checked". */
.situations li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 27px;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: rotate(-48deg);
}
.situations strong { display: block; font-weight: 650; }
.situations span { color: var(--ink-soft); }

/* ---------- Steps (a real sequence) ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; } }

.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 16px; }
.steps li::before {
  content: counter(step);
  display: block;
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--blue);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: 1.1rem; margin-bottom: 8px; }
.steps p { color: var(--ink-soft); }

/* ---------- Deadlines ---------- */

.deadline-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }

.deadline {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 4px 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 760px) {
  .deadline { grid-template-columns: 5.5rem minmax(0, 1fr) auto; align-items: start; }
}

.deadline-date { font-variant-numeric: tabular-nums; line-height: 1.15; }
.deadline-date .m { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.deadline-date .d { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; }
.deadline-date .w { display: block; font-size: 0.8rem; color: var(--ink-soft); }

.deadline-form { font-weight: 650; }
.deadline-title { margin-top: 2px; }
.deadline-detail { margin-top: 6px; color: var(--ink-soft); font-size: 0.95rem; max-width: 44rem; }
.deadline-meta { margin-top: 8px; font-size: var(--t-sm); color: var(--ink-soft); }
.deadline-soon { color: var(--red); font-weight: 600; }

.deadline-actions { grid-column: 2; }
@media (min-width: 760px) { .deadline-actions { grid-column: 3; } }

.link-btn {
  background: none;
  border: 0;
  padding: 8px 0;
  color: var(--blue);
  font: 500 0.95rem var(--sans);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
  white-space: nowrap;
}
.link-btn:hover { color: var(--blue-deep); text-decoration-thickness: 2px; }

.deadline-compact .deadline { grid-template-columns: 4.5rem minmax(0, 1fr); }
@media (min-width: 760px) { .deadline-compact .deadline { grid-template-columns: 5.5rem minmax(0, 1fr); } }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: end;
  padding: 20px;
  margin-bottom: 32px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.filters .field { min-width: 15rem; }
.filters-actions { margin-left: auto; }
@media (max-width: 760px) { .filters-actions { margin-left: 0; } }

/* ---------- Forms (estimator, filters) ---------- */

.field { display: grid; gap: 8px; }
.field > label, .field > .label, fieldset > legend {
  font-weight: 600;
  font-size: 0.98rem;
}
.field .hint { font-size: var(--t-sm); color: var(--ink-soft); margin-top: -4px; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

select {
  min-height: 48px;
  padding: 0 40px 0 12px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23172536' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--ink);
  font: 1rem var(--sans);
  appearance: none;
}

.check {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  font-weight: 500;
}
.check input { width: 20px; height: 20px; accent-color: var(--blue); margin: 0; }

/* Entity choice as a set of large radio rows. */
.choices { display: grid; gap: 8px; margin-top: 10px; }
@media (min-width: 560px) { .choices { grid-template-columns: 1fr 1fr; } }

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  line-height: 1.3;
}
.choice input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; flex: none; }
.choice:has(input:checked) { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: var(--blue-wash); }
.choice:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }

.range-row { display: flex; align-items: center; gap: 16px; }
.range-row output { min-width: 6.5rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }

input[type="range"] {
  flex: 1;
  height: 44px;
  margin: 0;
  accent-color: var(--blue);
  background: transparent;
}

.stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  width: max-content;
}
.stepper button {
  width: 48px;
  min-height: 46px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font: 600 1.35rem/1 var(--sans);
  cursor: pointer;
}
.stepper button:hover:not([aria-disabled="true"]) { background: var(--blue-wash); }
.stepper button[aria-disabled="true"] { color: #8f9cab; cursor: not-allowed; }
/* The stepper clips its children, so draw focus rings inside them. */
.stepper button:focus-visible,
.stepper input:focus-visible { outline-offset: -3px; border-radius: 4px; }
.stepper input {
  width: 4rem;
  border: 0;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  text-align: center;
  font: 600 1.05rem var(--sans);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: transparent;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Estimator layout ---------- */

.estimator {
  display: grid;
  gap: 48px;
  align-items: start;
}
@media (min-width: 1000px) {
  .estimator { grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; }
  .estimator-tape { position: sticky; top: 24px; }
}

.estimator-form { display: grid; gap: 34px; }
.field-grid { display: grid; gap: 28px; }
@media (min-width: 620px) { .field-grid { grid-template-columns: 1fr 1fr; } }

.estimator-actions { margin-top: 22px; display: grid; gap: 10px; }
.estimator-actions .btn { width: 100%; }
.estimator-small { margin-top: 14px; font-size: var(--t-sm); color: var(--ink-soft); }

/* ---------- Plain tables ---------- */

.table-wrap { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table caption { text-align: left; font-weight: 650; padding-bottom: 12px; }
.price-table th, .price-table td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.price-table thead th { border-bottom: 2px solid var(--ink); font-size: var(--t-sm); font-weight: 600; color: var(--ink-soft); }
.price-table td:last-child, .price-table th:last-child { text-align: right; padding-right: 0; white-space: nowrap; }

.two-col { display: grid; gap: 48px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* ---------- Prose blocks ---------- */

.prose { max-width: 40rem; }
.prose h2 { font-size: 1.6rem; margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 28px 0 8px; }
.prose ul { padding-left: 1.2em; margin: 12px 0 0; }
.prose li + li { margin-top: 6px; }
.prose p + ul, .prose ul + p { margin-top: 12px; }

.service { padding: 48px 0; border-top: 1px solid var(--rule); scroll-margin-top: 16px; }
.service:first-child { border-top: 2px solid var(--ink); }
.service-grid { display: grid; gap: 20px 48px; }
@media (min-width: 900px) { .service-grid { grid-template-columns: 18rem minmax(0, 1fr); } }
.service h2 { font-size: 1.55rem; }
.service .from { margin-top: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.service .from small { display: block; font-weight: 400; color: var(--ink-soft); font-size: var(--t-sm); }
.service ul { margin: 14px 0 0; padding-left: 1.2em; }
.service li + li { margin-top: 6px; }

.not-list { list-style: none; padding: 0; margin: 16px 0 0; }
.not-list li { padding: 12px 0; border-top: 1px solid var(--rule); }

/* ---------- FAQ ---------- */

.faq { border-top: 2px solid var(--ink); max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-weight: 600;
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 1.2em;
  text-align: center;
  color: var(--blue);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.1;
}
.faq summary::after { content: "+" / ""; }
.faq details[open] summary::after { content: "\2212"; content: "\2212" / ""; }
.faq details > div { padding: 0 0 22px; color: var(--ink-soft); max-width: 42rem; }

/* ---------- Call to action band ---------- */

.cta-band { background: var(--ink); color: #fff; padding: 72px 0; }
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { color: #c9d4e0; margin-top: 14px; max-width: 36rem; }
.cta-band .actions { margin-top: 28px; }
.cta-band .btn { background: #fff; border-color: #fff; color: var(--ink); }
.cta-band .btn:hover { background: var(--blue-wash); border-color: var(--blue-wash); }
.cta-band .btn-quiet { background: transparent; color: #fff; border-color: #6d8199; }
.cta-band .btn-quiet:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.cta-band :focus-visible { outline-color: #fff; }

/* ---------- Booking ---------- */

.book-grid { display: grid; gap: 48px; align-items: start; }
/* On a phone the calendar comes first; the notes follow it. */
@media (max-width: 999px) { .book-grid .booker { order: -1; } }
@media (min-width: 1000px) { .book-grid { grid-template-columns: 20rem minmax(0, 1fr); gap: 56px; } }

.book-aside h2 { font-size: 1.25rem; margin-bottom: 10px; }
.book-aside h2:not(:first-child) { margin-top: 32px; }
.book-aside ul { margin: 0; padding-left: 1.2em; color: var(--ink-soft); }
.book-aside li + li { margin-top: 6px; }

.quote-chip {
  margin-top: 28px;
  padding: 16px;
  border: 1px solid var(--rule-strong);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.95rem;
}
.quote-chip strong { display: block; margin-bottom: 4px; }
.quote-chip-note { display: block; margin-top: 8px; color: var(--ink-soft); font-size: var(--t-sm); }
.booking-state h2:focus { outline: none; }

.booking-state { max-width: 34rem; }
.booking-state h2 { font-size: 1.5rem; margin-bottom: 12px; }
.booking-state .actions { margin-top: 24px; }

.booked-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-wash);
  position: relative;
  margin-bottom: 18px;
}
.booked-mark::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 13px;
  width: 16px;
  height: 9px;
  border-left: 3px solid var(--blue);
  border-bottom: 3px solid var(--blue);
  transform: rotate(-48deg);
}

/* ---------- Booking calendar ---------- */

.booker {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px 20px;
}
@media (min-width: 620px) { .booker { padding: 32px; } }

.booker h2 { font-size: 1.3rem; }
.booker-step + .booker-step { margin-top: 32px; }
.booker-note { margin-top: 6px; font-size: var(--t-sm); color: var(--ink-soft); }

.notice {
  margin-bottom: 24px;
  padding: 14px 16px;
  border-left: 4px solid var(--blue);
  background: var(--blue-wash);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.97rem;
}
.notice-error { border-left-color: var(--red); background: #fbeceb; }

/* Days run in a strip, like the columns of a ledger page. */
.day-strip {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding: 2px 2px 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}
.day-btn {
  flex: 0 0 auto;
  width: 76px;
  padding: 10px 6px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: center;
  cursor: pointer;
  scroll-snap-align: start;
  line-height: 1.15;
}
.day-btn .w { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.day-btn .d { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.day-btn .m { display: block; font-size: 0.82rem; color: var(--ink-soft); }
.day-btn:hover { border-color: var(--blue); }
.day-btn[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.day-btn[aria-pressed="true"] .w,
.day-btn[aria-pressed="true"] .m { color: #dbe5f5; }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.slot-btn {
  min-height: 46px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--blue);
  font: 600 1rem var(--sans);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.slot-btn:hover { border-color: var(--blue); background: var(--blue-wash); }
.slot-btn[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }

.chosen {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 14px;
  padding: 16px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.chosen strong { font-size: 1.1rem; }
.chosen span { color: var(--ink-soft); font-size: var(--t-sm); }

.form-grid { display: grid; gap: 20px; margin-top: 24px; }
@media (min-width: 620px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .wide { grid-column: 1 / -1; } }

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: 1rem/1.4 var(--sans);
}
textarea { min-height: 112px; resize: vertical; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.field select { width: 100%; }
.optional { font-weight: 400; color: var(--ink-soft); }
.field-error { color: var(--red); font-size: var(--t-sm); font-weight: 500; }

.turnstile-host { margin-top: 24px; min-height: 65px; }

/* Hidden from people, irresistible to form-filling bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-actions .fine-print { flex-basis: 100%; font-size: var(--t-sm); color: var(--ink-soft); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.done-when { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; margin-top: 6px; }
.done-sub { color: var(--ink-soft); margin-top: 4px; }
.done-list { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--rule); }
.done-list li { display: grid; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 620px) { .done-list li { grid-template-columns: 9rem minmax(0, 1fr); } }
.done-list .k { font-weight: 600; }
.done-list a { overflow-wrap: anywhere; }
.link-row { display: flex; flex-wrap: wrap; gap: 6px 20px; }

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

.site-footer { padding: 56px 0 40px; background: var(--paper); border-top: 1px solid var(--rule); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-grid p { color: var(--ink-soft); font-size: 0.95rem; margin-top: 14px; max-width: 22rem; }
.footer-grid h2 { font-size: 0.95rem; font-weight: 650; margin-bottom: 10px; letter-spacing: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--blue); text-decoration: underline; }
.fine { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: var(--t-sm); color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- Print: a quote prints as just the tape ---------- */

@media print {
  body { background: #fff; }
  .site-header, .site-footer, .page-head, .estimator-form, .estimator-actions, .estimator-small, .cta-band, .no-print { display: none !important; }
  .estimator { display: block; }
  .estimator-tape { position: static; max-width: 380px; margin: 0 auto; }
  .tape-shadow { filter: none; }
  .tape { -webkit-mask: none; mask: none; border: 1px solid #999; }
  .tape.is-printing .tape-lines > li, .tape.is-printing .tape-note { animation: none; }
}
