/* Rentquarter.
   VOICE   everyday money help, plain and calm, with one moment of delight
   IDEA    the headline is the form: "My rent is £___ a year, so MTD starts ___."
   COLOUR  warm white ground, brick fields, butter for what matters
   TYPE    Archivo (wide, heavy headlines) + Public Sans (reading)
   LAYOUT  hero sentence and income ruler; sticky "how it works"; software-or-accountant chooser */

:root {
  color-scheme: light;
  --bg: #FFFDF9;
  --alt: #FAF3EA;
  --surface: #FFFFFF;
  --ink: #22160F;
  --ink-2: #43322A;
  --muted: #6F5A4E;
  --green: #742415;
  --green-dark: #4E170D;
  --green-mid: #A8432A;
  --mint: #FBE8DE;
  --mint-2: #F3CDBA;
  --lime: #F5D184;
  --line: #EEE3D7;
  --line-2: #DCCBBA;
  --alert: #C1272D;
  --alert-soft: #FDE8E8;
  --stone: #FAF3EA;
  --board: #24130B;
  --char: #FFF6E8;
  --amber: #FFB347;
  --on-green: #FBE3D6;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(40, 22, 14, .06), 0 6px 18px -10px rgba(40, 22, 14, .25);
  --shadow-lg: 0 2px 4px rgba(40, 22, 14, .06), 0 18px 40px -24px rgba(40, 22, 14, .45);

  --font-head: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
  --hh: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hh) + 20px); }
body {
  margin: 0; overflow-x: clip;
  background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 18px; } }

img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--green-dark); text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--green-mid); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.3rem); line-height: 1; font-weight: 800; font-stretch: 112%; letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); line-height: 1.05; font-weight: 800; font-stretch: 106%; letter-spacing: -.03em; }
h3 { font-size: 1.22rem; line-height: 1.25; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .4em; }
strong { font-weight: 700; }
.hl { background: linear-gradient(transparent 55%, var(--lime) 55%, var(--lime) 90%, transparent 90%); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

.small { font-size: .88rem; color: var(--muted); }
.muted { color: var(--muted); }
.brass { color: var(--green); font-weight: 700; }
.hide-sm { display: inline; }
.show-sm { display: none; }
@media (max-width: 559px) { .hide-sm { display: none; } .show-sm { display: inline; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; color: #fff; }

.kicker, .pill { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 700; color: var(--green); }
.pill { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 8px; }
.pill .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; }
.pill .dot svg { width: 13px; height: 13px; color: var(--green); }
.eyebrow { display: block; font: 700 .95rem/1.2 var(--font-body); color: var(--green-mid); margin: 0 0 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  background: var(--green); color: #fff; border: 2px solid var(--green);
  font: 700 1rem/1.15 var(--font-body); text-decoration: none; text-align: center;
  cursor: pointer; transition: background .15s, border-color .15s, transform .15s, color .15s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .15s; }
.btn:hover svg { transform: translateX(3px); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: .95rem; }
.btn-block { display: flex; width: 100%; }
.btn-outline { background: transparent; color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-lime, .btn-light, .btn-ghost { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.btn-lime:hover, .btn-light:hover, .btn-ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.scroll-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--green-mid); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 800 1.25rem/1.05 var(--font-head); font-stretch: 110%; letter-spacing: -.02em; }
.brand-tag { font-size: .76rem; color: var(--muted); margin-top: 2px; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 10px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.nav a:hover { background: var(--mint); color: var(--green-dark); }
.nav a[aria-current="page"] { background: var(--mint); color: var(--green); }
.you-chip { display: none; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--lime); color: var(--green); font: 700 .86rem/1 var(--font-body); text-decoration: none; white-space: nowrap; }
.you-chip.show { display: inline-flex; animation: chip-in .4s cubic-bezier(.2, .8, .2, 1); }
.you-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.you-chip:hover { color: var(--green-dark); }
@keyframes chip-in { from { opacity: 0; transform: translateY(-6px) scale(.96); } }

@media (max-width: 859px) {
  .header-row { flex-wrap: wrap; gap: 0 12px; min-height: 0; padding-top: 10px; }
  .brand { min-height: 48px; }
  .nav { order: 3; width: 100%; justify-content: space-between; margin: 6px -8px 0; padding-bottom: 6px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 10px 10px; font-size: .92rem; }
}
@media (max-width: 639px) { .you-chip.show { display: none; } }
@media (max-width: 400px) { .brand-tag { display: none; } }
@media (max-width: 480px) { .nav .nav-sm-hide { display: none; } }

/* ---------- Hero: the headline is the form ---------- */
.hero { position: relative; background: var(--green); color: var(--on-green); padding: 36px 0 40px; overflow: hidden; }
.hero::after {
  /* a giant outlined pound sign sits behind the sentence */
  content: "£"; position: absolute; right: -3vw; top: 52%; transform: translateY(-50%);
  font: 900 min(52vw, 660px)/.8 var(--font-head); font-stretch: 100%;
  color: transparent; -webkit-text-stroke: 2px rgba(245, 209, 132, .09); pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero .pill { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; }
.hero-q { margin: 22px 0 10px; font: 700 clamp(1.1rem, 1.7vw, 1.4rem)/1.3 var(--font-body); letter-spacing: 0; color: var(--on-green); max-width: none; }
@media (min-width: 980px) { .hero { padding: 52px 0 48px; } }

/* The sentence */
.sentence { margin: 0; }
.s-line { margin: 0; color: #fff; font: 800 clamp(2.3rem, 5.6vw, 5rem)/1.05 var(--font-head); font-stretch: 112%; letter-spacing: -.035em; }
@media (max-width: 559px) { .s-line { font-stretch: 104%; } }
.s-money { display: inline-flex; align-items: baseline; white-space: nowrap; color: var(--lime); position: relative; }
.s-money .cur { margin-right: -.02em; }
.sentence .s-money input[type=text] {
  width: 3.2em; min-width: .8em; min-height: 0; margin: 0; padding: 0 .04em 0 0;
  font: inherit; font-stretch: inherit; letter-spacing: -.02em; color: var(--lime); font-variant-numeric: tabular-nums;
  background: transparent; border: 0; border-radius: 4px; caret-color: var(--lime);
  box-shadow: inset 0 -.08em 0 rgba(245, 209, 132, .45); transition: box-shadow .2s, background .2s;
}
.sentence .s-money input[type=text]::placeholder { color: rgba(245, 209, 132, .3); }
.sentence .s-money input[type=text]:hover { box-shadow: inset 0 -.08em 0 rgba(245, 209, 132, .8); }
.sentence .s-money input[type=text]:focus { outline: none; background: rgba(245, 209, 132, .08); box-shadow: inset 0 -.08em 0 var(--lime); }
.sentence .s-money input[aria-invalid="true"] { box-shadow: inset 0 -.08em 0 #FFE08A !important; }
.s-mirror { position: absolute; left: 0; top: 0; visibility: hidden; white-space: pre; pointer-events: none; font-variant-numeric: tabular-nums; letter-spacing: -.02em; padding: 0 .04em; }

/* The answer: rolls up to a new line whenever it changes */
.s-ans { position: relative; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ans-txt { display: block; transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .4s; }
.ans-txt em { font-style: normal; color: var(--lime); white-space: nowrap; }
.ans-txt.in { transform: translateY(100%); opacity: 0; transition: none; }
.ans-txt.out { position: absolute; left: 0; top: 0; right: 0; transform: translateY(-100%); opacity: 0; }
.blank { display: inline-block; width: 3.6em; height: .74em; margin: 0 .04em; vertical-align: -.02em; border-bottom: .08em dashed rgba(245, 209, 132, .55); }

.s-sub { margin: 18px 0 0; max-width: 44em; font-size: 1.06rem; line-height: 1.55; color: var(--on-green); min-height: 1.55em; }
.s-sub b { color: #fff; }
.s-sub .n { font-variant-numeric: tabular-nums; }
.hero .field-error { color: #FFE08A; margin-top: 8px; }

.more { margin: 8px 0 0; }
.more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .93rem; color: var(--lime); padding: 8px 0; }
.more summary::-webkit-details-marker { display: none; }
.more summary .plus { width: 20px; height: 20px; border-radius: 50%; background: rgba(245, 209, 132, .18); display: grid; place-items: center; font-weight: 800; line-height: 1; transition: transform .2s; }
.more[open] summary .plus { transform: rotate(45deg); }
.more .more-body { display: grid; gap: 14px; padding: 8px 0 4px; max-width: 640px; }
@media (min-width: 560px) { .more .more-body { grid-template-columns: 1fr 1fr; } }
.hero .more label { color: #fff; }
.hero .more .hint { color: #F1C4AF; }
.money { position: relative; }
.money::before { content: "£"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); pointer-events: none; }
.money input[type=text] { padding-left: 34px; }

/* Bottom row: income ruler + the next step */
.hero-bottom { display: grid; gap: 30px; margin-top: 30px; }
@media (min-width: 980px) { .hero-bottom { grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: end; margin-top: 34px; } }
.ruler-cap { margin: 0 0 12px; font: 700 .76rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: #EDB9A2; }
.ruler { position: relative; padding-bottom: 40px; }
.r-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.r-when { display: block; margin-bottom: 9px; font: 700 .86rem/1.2 var(--font-body); color: #F1C4AF; white-space: nowrap; transition: color .3s; }
.r-when .short { display: none; }
@media (max-width: 639px) { .r-when .long { display: none; } .r-when .short { display: inline; } }
.r-seg i { display: block; height: 12px; border-radius: 3px; background: rgba(255, 255, 255, .13); transform-origin: 0 50%; transition: background .3s; }
.r-seg:first-child i { border-radius: 7px 3px 3px 7px; }
.r-seg:last-child i { border-radius: 3px 7px 7px 3px; }
.r-seg.on .r-when { color: var(--lime); }
.r-seg.on i { background: var(--lime); }
.r-ticks { position: relative; height: 16px; margin-top: 8px; }
.r-ticks span { position: absolute; top: 0; transform: translateX(-50%); font-size: .76rem; font-weight: 600; color: #EDB9A2; white-space: nowrap; }
.r-ticks span:first-child { left: 0; transform: none; }
.r-ticks span:last-child { right: 0; transform: none; }
.r-pin { position: absolute; top: 0; bottom: 0; left: 0; width: 0; opacity: 0; transition: left .5s cubic-bezier(.25, 1.25, .4, 1), opacity .3s; pointer-events: none; }
.ruler.has .r-pin { opacity: 1; }
.r-pin i { position: absolute; left: -2px; top: 19px; width: 4px; height: 25px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 3px var(--green); }
.r-pin b { position: absolute; left: 0; bottom: 0; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--green); font: 800 .78rem/1.2 var(--font-body); white-space: nowrap; }
.r-pin.edge-l b { transform: translateX(-12px); }
.r-pin.edge-r b { transform: translateX(calc(-100% + 12px)); }

.hero-next { margin: 0 0 14px; font-size: .98rem; color: var(--on-green); }
.hero-next strong { color: #fff; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 14px 0 0; font-size: .9rem; font-weight: 600; color: var(--on-green); }
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.hero-trust svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--lime); color: var(--green); }
.hero-small { margin: 30px 0 0; font-size: .82rem; color: #EDB9A2; }
.hero-small a { color: #fff; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 104px 0; } }
.section-white { background: var(--alt); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p:not(.eyebrow) { font-size: 1.1rem; color: var(--ink-2); margin: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- How it works: sticky heading, numbers fill as you pass ---------- */
.how-grid { display: grid; gap: 36px; }
@media (min-width: 940px) {
  .how-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 80px; align-items: start; }
  .how-head { position: sticky; top: calc(var(--hh) + 56px); }
}
.how-head p:not(.eyebrow) { font-size: 1.1rem; color: var(--ink-2); max-width: 26em; }
.how-head .btn { margin-top: 10px; }
.steps-list { list-style: none; padding: 0; margin: 0; }
.step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; margin: 0; padding: 30px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 940px) { .step { gap: 34px; padding: 44px 0; } }
.step-n {
  --f: 1;
  display: block; min-width: 1.25em;
  font: 900 clamp(3.4rem, 7vw, 6rem)/.82 var(--font-head); font-stretch: 112%; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 2px var(--green);
  background: linear-gradient(to top, var(--green) calc(var(--f) * 100%), transparent calc(var(--f) * 100%));
  -webkit-background-clip: text; background-clip: text;
}
.step h3 { margin: 4px 0 8px; font-size: 1.45rem; font-stretch: 104%; }
.step p { margin: 0; color: var(--ink-2); max-width: 32em; }
.tag { display: inline-block; margin-top: 14px; font-size: .8rem; font-weight: 700; color: var(--green-mid); background: var(--mint); border-radius: 999px; padding: 4px 10px; transition: background .3s, color .3s; }
.step.on .tag { background: var(--lime); color: var(--green); }

/* ---------- Software or accountant: three taps, a straight answer ---------- */
.decide-sec { background: var(--alt); }
.decide-grid { display: grid; gap: 32px; }
@media (min-width: 940px) {
  .decide-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 80px; align-items: start; }
  .decide-head { position: sticky; top: calc(var(--hh) + 56px); }
}
.decide-head p:not(.eyebrow) { font-size: 1.1rem; color: var(--ink-2); max-width: 26em; }
.decide { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px 18px; }
@media (min-width: 560px) { .decide { padding: 30px 30px 26px; } }
.dq { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.dq legend { display: flex; align-items: center; gap: 10px; padding: 0; margin: 0 0 12px; font: 800 1.12rem/1.25 var(--font-head); font-stretch: 104%; color: var(--ink); }
.dq-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; flex: none; font: 800 .82rem/1 var(--font-body); background: var(--mint); color: var(--green); transition: background .25s, color .25s; }
.dq.done .dq-n { background: var(--green); color: var(--lime); }
.dq-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.dq-opts label { position: relative; cursor: pointer; }
.dq-opts input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.dq-opts span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: .95rem; color: var(--ink-2); transition: background .2s, border-color .2s, color .2s, transform .2s; }
.dq-opts label:hover span { border-color: var(--green-mid); }
.dq-opts input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.dq-opts input:focus-visible + span { outline: 3px solid var(--green-mid); outline-offset: 2px; }
.dq-opts input:active + span { transform: scale(.96); }
.dv { margin-top: 4px; padding-top: 22px; border-top: 1.5px dashed var(--line-2); }
.dv-scale { position: relative; height: 10px; margin: 6px 11px 0; border-radius: 999px; background: linear-gradient(90deg, var(--mint-2), var(--green)); }
.dv-dot { position: absolute; top: 50%; left: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: var(--lime); border: 3px solid var(--ink); box-shadow: var(--shadow); opacity: .3; transition: left .7s cubic-bezier(.3, 1.45, .5, 1), opacity .3s; }
.dv:not([data-v="none"]) .dv-dot { opacity: 1; }
.dv-ends { display: flex; justify-content: space-between; gap: 12px; margin: 12px 0 0; font-size: .8rem; font-weight: 700; color: var(--muted); }
.dv-t { margin: 18px 0 6px; font: 800 clamp(1.4rem, 2.4vw, 1.75rem)/1.15 var(--font-head); font-stretch: 104%; letter-spacing: -.02em; color: var(--ink); }
.dv[data-v="none"] .dv-t { font: 600 1rem/1.45 var(--font-body); letter-spacing: 0; color: var(--muted); }
.dv-s { margin: 0; color: var(--ink-2); max-width: 34em; }
.dv-s:empty, .dv-cta:empty { display: none; }
.dv-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
.dv-cta a:not(.btn) { font-weight: 700; color: var(--green); }
.dv-small { margin: 18px 0 0; font-size: .8rem; color: var(--muted); }
.dv-t.pop { animation: dvpop .45s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes dvpop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dv-dot { transition: none; } .dv-t.pop { animation: none; } }

/* ---------- Who we help ---------- */
.who { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 700px) { .who { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .who { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.who li { margin: 0; background: var(--alt); border: 1px solid var(--line); border-radius: 18px; padding: 20px 20px 18px; transition: transform .2s, border-color .2s; }
.who li:hover { transform: translateY(-2px); border-color: var(--mint-2); }
.who strong { display: block; font: 700 1.08rem/1.25 var(--font-head); font-stretch: 104%; margin-bottom: 4px; }
.who span { color: var(--muted); font-size: .94rem; }
.who li.cta-tile { background: var(--lime); border-color: var(--lime); display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.who li.cta-tile span { color: var(--ink-2); }
.who li.cta-tile a { font-weight: 800; color: var(--green); }
.section-white .who li { background: #fff; }

/* ---------- Match (form) ---------- */
.match-grid { display: grid; gap: 36px; }
@media (min-width: 980px) { .match-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; } }
.match-copy .lede { font-size: 1.15rem; color: var(--ink-2); }
.next-steps { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 14px; counter-reset: ns; }
.next-steps li { counter-increment: ns; display: flex; gap: 14px; align-items: flex-start; margin: 0; }
.next-steps li::before { content: counter(ns); flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--lime); font: 800 .9rem/1 var(--font-head); }
.honest { background: var(--surface); border: 1px dashed var(--line-2); border-radius: 18px; padding: 20px 22px 6px; }
.honest h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.honest h3 svg { width: 22px; height: 22px; color: var(--green); }
.honest p { font-size: .94rem; color: var(--ink-2); }
.match-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 22px; padding: 12px 16px; border-radius: 14px; background: var(--green); color: var(--on-green); font-size: .92rem; }
.match-summary[hidden] { display: none; }
.match-summary .ms-label { font: 700 .7rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
.match-summary b { color: #fff; }
.match-summary a { margin-left: auto; color: var(--lime); font-weight: 700; font-size: .88rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 22px; box-shadow: var(--shadow-lg); }
@media (min-width: 560px) { .card { padding: 36px; } }
.card-title { font-size: 1.5rem; margin-bottom: 4px; }
.card-sub { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; }
@media (min-width: 620px) { .form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .field.full { grid-column: 1 / -1; } }
.field { margin-bottom: 0; }
form > .field { margin: 20px 0; }
label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 7px; color: var(--ink); }
.hint { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); margin-top: 2px; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; min-height: 54px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--font-body); font-size: max(16px, 1rem); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-2); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
textarea { min-height: 96px; resize: vertical; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23742415' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px;
}
input:hover, select:hover, textarea:hover { border-color: #BCA99A; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--mint-2); }
[aria-invalid="true"] { border-color: var(--alert) !important; }
[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px var(--alert-soft) !important; }
.field-error { display: none; margin: 7px 0 0; color: var(--alert); font-size: .9rem; font-weight: 600; }
.field-error.show { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .92rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; margin: 2px 0 0; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; }
.form-status.error { background: var(--alert-soft); color: var(--alert); font-weight: 600; border-radius: 12px; padding: 12px 14px; }
.form-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 14px 0 0; padding: 0; list-style: none; font-size: .82rem; color: var(--muted); }
.form-trust li { margin: 0; display: inline-flex; gap: 6px; align-items: center; }
.form-trust svg { width: 15px; height: 15px; color: var(--green); }
.thanks { text-align: left; }
.thanks:focus { outline: none; }
.thanks .big-tick { width: 56px; height: 56px; border-radius: 18px; background: var(--lime); display: grid; place-items: center; margin-bottom: 16px; }
.thanks .big-tick svg { width: 30px; height: 30px; color: var(--green); }
.thanks h3 { font-size: 1.5rem; }

/* ---------- Guides ---------- */
.guides { display: grid; gap: 14px; }
@media (min-width: 760px) { .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
.guide {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px 24px 22px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.guide:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--mint-2); color: var(--ink); }
.guide .num { font-size: .84rem; font-weight: 600; color: var(--muted); }
.guide h3 { margin: 2px 0 2px; font-stretch: 104%; }
.guide p { margin: 0; color: var(--muted); font-size: .95rem; }
.guide .go { margin-top: 10px; font-weight: 700; color: var(--green); display: inline-flex; gap: 6px; align-items: center; font-size: .95rem; }
.guide .go svg { width: 16px; height: 16px; transition: transform .15s; }
.guide:hover .go svg { transform: translateX(4px); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 48px 20px 0; position: relative; font: 700 1.08rem/1.35 var(--font-head); font-stretch: 102%; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' fill='none' stroke='%23742415' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--green); }
.faq details > div { padding: 0 0 18px; color: var(--ink-2); max-width: 68ch; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Accountant band ---------- */
.band { padding: 88px 0; }
.band-inner .eyebrow { color: var(--lime); }
.band-inner { position: relative; overflow: hidden; background: var(--green); color: var(--on-green); border-radius: 28px; padding: 36px 26px; display: grid; gap: 22px; align-items: center; }
.band-inner::after { content: "£80"; position: absolute; right: -10px; bottom: -40px; font: 800 11rem/1 var(--font-head); font-stretch: 112%; letter-spacing: -.06em; color: rgba(245, 209, 132, .08); pointer-events: none; }
.band-inner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.band-inner p { margin: 0; max-width: 46em; }
@media (min-width: 860px) { .band-inner { grid-template-columns: minmax(0, 1fr) auto; padding: 48px 52px; gap: 40px; } }

/* ---------- For accountants ---------- */
.crumbs-hero { padding-top: 0; margin-bottom: 16px; color: #F1C4AF; }
.crumbs-hero a { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .5); }
.hero .btn-outline:hover { background: #fff; color: var(--green); border-color: #fff; }
.hero .ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.hero .ticks li { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-weight: 600; color: var(--on-green); }
.hero .ticks svg { width: 22px; height: 22px; flex: none; padding: 4px; border-radius: 50%; background: var(--lime); color: var(--green); margin-top: 2px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; margin: 0; color: var(--ink-2); }
.ticks svg { width: 24px; height: 24px; flex: none; padding: 4px; border-radius: 50%; background: var(--mint); color: var(--green); margin-top: 1px; }

.split { display: grid; gap: 32px; }
@media (min-width: 940px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; } }
.split h2 { margin-bottom: 14px; }
.split-lede { font-size: 1.1rem; color: var(--ink-2); margin-bottom: 24px; }
.split .ticks li strong { font-weight: 700; }
.intro-card { margin: 0; box-shadow: var(--shadow-lg); border-radius: var(--radius-lg); }
.intro-card th, .intro-card td { padding: 14px 18px; }
.terms li a { font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: #2A140C; color: #E9CFC2; padding: 64px 0 36px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, .35); }
.site-footer a:hover { color: var(--lime); }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand-name { color: #fff; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .85rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-about { max-width: 30em; }
.legal-line { margin: 44px 0 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8rem; color: #BFA092; max-width: 90ch; }

/* ---------- Article pages (guides, legal) ---------- */
main.article { padding: 0 0 80px; }
.article .wrap { max-width: 800px; }
.crumbs { font-size: .88rem; color: var(--muted); margin: 0 0 18px; padding-top: 40px; }
.crumbs a { color: var(--muted); }
.article h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1.04; margin-bottom: 14px; }
.article .meta { color: var(--muted); font-size: .95rem; padding-bottom: 26px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.article h2 { font-size: clamp(1.5rem, 2.8vw, 1.95rem); margin: 2.1em 0 .6em; }
.article h3 { margin: 1.6em 0 .5em; }
.article p, .article li { color: var(--ink-2); }
.article ul li::marker { color: var(--green-mid); }
.article ol li::marker { color: var(--green); font-weight: 800; font-family: var(--font-head); }
.callout { background: var(--mint); border: 1px solid var(--mint-2); border-radius: 14px; padding: 18px 20px; margin: 28px 0; }
.callout p:last-child { margin-bottom: 0; }
.cta-box { position: relative; overflow: hidden; background: var(--green); color: var(--on-green); border-radius: 24px; padding: 32px 28px; margin: 44px 0; }
.cta-box h2, .article .cta-box h2 { color: #fff; margin: 0 0 10px; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.article .cta-box p { color: var(--on-green); }
.cta-box .btn { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.cta-box .btn:hover { background: #fff; border-color: #fff; }
.cta-box a:not(.btn) { color: #fff; }
.table-wrap { overflow-x: auto; margin: 22px 0 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--alt); font-weight: 700; font-size: .85rem; color: var(--ink); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 700; color: var(--ink); width: 34%; }
caption { color: var(--muted); }
.sources { margin-top: 44px; padding: 20px 22px; background: var(--alt); border-radius: 16px; font-size: .9rem; }
.sources p, .sources li { color: var(--muted); }
.sources ul { margin-bottom: 0; }
.article .faq { margin-top: 8px; }
.article .kicker { margin-top: 56px; display: inline-block; background: var(--lime); color: var(--green); border-radius: 999px; padding: 5px 12px; }

/* ---------- Motion: the load-in, then quiet ---------- */
.rise .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.rise .w > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  /* logo draws itself: house outline, then the tick */
  .js .site-header .brand-mark .house { stroke-dasharray: 1; animation: draw .7s cubic-bezier(.6, 0, .3, 1) .1s both; }
  .js .site-header .brand-mark .tick { stroke-dasharray: 1; animation: draw .35s ease-out .7s both; }
  .js .rise .w > span { animation: word-up .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.12s + var(--i, 0) * 60ms); }
  .js .load-in { animation: rise-in .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
  .js .r-seg i { animation: grow .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(1.05s + var(--k, 0) * 110ms); }
  .blank { animation: blank-pulse 1.6s ease-in-out 1.4s infinite; }
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes word-up { from { transform: translateY(105%); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes blank-pulse { 50% { border-bottom-color: rgba(245, 209, 132, .15); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .band, .cta-box, #match, .hero-bottom, .more { display: none !important; }
  .hero { background: #fff; color: #000; }
  .hero h1 { color: #000; }
  body { background: #fff; }
}


/* ===== For-accountants hero (offer + deal card) ===== */
.hero-grid { display: grid; gap: 32px; align-items: start; padding-top: 20px; padding-bottom: 8px; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; padding-top: 44px; padding-bottom: 24px; }
  .hero-ticks { grid-column: 1 / -1; }
  .hero-ticks .ticks { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 34px; margin-top: 0; }
}
.hero-copy h1 { color: #fff; max-width: 15ch; font-size: clamp(2.3rem, 5vw, 3.9rem); }
.hero-copy .hl { background: none; color: var(--lime); }
.hero-copy .lede { color: var(--on-green); font-size: 1.12rem; max-width: 56ch; }
.hero-copy .lede strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.hero-copy .btn:not(.btn-outline) { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.hero-copy .btn:not(.btn-outline):hover { background: #fff; border-color: #fff; color: var(--ink); }
@media (max-width: 520px) { .hero-actions .btn { width: 100%; } }
.formerly { margin: 18px 0 0; font-size: .92rem; color: #F1C4AF; }
.deal-card { background: var(--surface); color: var(--ink); border-radius: 22px; padding: 28px; box-shadow: 0 24px 60px rgba(20, 6, 2, .35); }
.deal-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 18px; }
.deal-price .amt { font: 900 3.4rem/1 var(--font-head); font-stretch: 112%; letter-spacing: -.03em; color: var(--green); }
.deal-price .per { color: var(--ink-2); font-weight: 600; max-width: 20ch; line-height: 1.3; }
.deal-list { list-style: none; margin: 0 0 22px; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.deal-list li { display: flex; gap: 10px; align-items: flex-start; margin: 0; color: var(--ink-2); }
.deal-list b { color: var(--ink); }
.deal-list svg { width: 22px; height: 22px; flex: none; padding: 4px; border-radius: 50%; background: var(--mint); color: var(--green); margin-top: 1px; }
.checker-note { margin: 12px 0 0; font-size: .88rem; color: var(--muted); text-align: center; }

/* For-accountants: three step cards */
.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 16px; counter-reset: st; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.steps li { counter-increment: st; display: flex; flex-direction: column; margin: 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.steps li::before { content: counter(st); font: 900 2.2rem/1 var(--font-head); color: var(--green); margin-bottom: 12px; }
.steps h3 { font-size: 1.2rem; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-2); }
.steps .tag { align-self: flex-start; margin-top: auto; padding-top: 4px; }
.steps p + .tag { margin-top: 16px; }
