/* ==========================================================================
   JL Dennis Accounting — site styles
   --------------------------------------------------------------------------
   1. Fonts           6. Home sections      11. Contact
   2. Tokens          7. Inner pages        12. Footer
   3. Base            8. Tax & wealth       13. Motion
   4. Components      9. Forms              14. Print
   5. Header         10. Quote builder
   ========================================================================== */

/* 1. Fonts (self-hosted, SIL Open Font License) ---------------------------- */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* 2. Tokens ---------------------------------------------------------------- */

:root {
  --ink: #0b2527;
  --ink-2: #2a4244;
  --muted: #536668;
  --paper: #f7f3ea;
  --paper-2: #efe8d9;
  --card: #fffdf8;
  --white: #ffffff;
  --line: #e3dbc9;
  --line-2: #cfc3aa;

  /* Brand teal, taken from the JLD logo */
  --teal: #005a5d;
  --teal-2: #0b6b6e;
  --teal-deep: #003f41;
  --teal-deep-2: #054b4e;
  --teal-3: #002a2c;
  --tint: #d6ebea;
  --tint-2: #b3dbd8;
  --brass: #cf9f4a;
  --brass-2: #ddb466;
  --brass-soft: #f3e4c4;
  --brass-deep: #7f5a10;
  --error: #a3321f;

  --on-dark: #f7f3ea;
  --on-dark-muted: #b8cccb;
  --on-dark-line: rgba(247, 243, 234, 0.14);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(8, 36, 38, 0.05), 0 2px 8px rgba(8, 36, 38, 0.04);
  --shadow: 0 2px 4px rgba(8, 36, 38, 0.04), 0 16px 36px -12px rgba(8, 36, 38, 0.16);
  --shadow-lg: 0 4px 10px rgba(8, 36, 38, 0.05), 0 36px 72px -20px rgba(8, 36, 38, 0.3);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 3. Base ------------------------------------------------------------------ */

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 460;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

[hidden] {
  display: none !important;
}

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

.icon {
  display: inline-block;
  flex: none;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.2em;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.55rem, 1.5rem + 4vw, 4.4rem);
  font-weight: 440;
  line-height: 1.03;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 1.35rem + 2.3vw, 3.2rem);
  font-weight: 460;
  letter-spacing: -0.026em;
}

h3 {
  font-size: clamp(1.25rem, 1.12rem + 0.45vw, 1.5rem);
  font-weight: 560;
  line-height: 1.22;
  letter-spacing: -0.012em;
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--teal-2);
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

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

a {
  color: var(--teal-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--teal);
}

strong {
  font-weight: 750;
}

::selection {
  background: var(--brass-soft);
  color: var(--ink);
}

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

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 0.75em 1.25em;
  border-radius: 999px;
  background: var(--teal);
  color: var(--on-dark);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
  color: var(--on-dark);
}

html:not(.js) .js-only {
  display: none !important;
}

.js .no-js-only {
  display: none !important;
}

/* 4. Components ------------------------------------------------------------ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  margin: 0 0 1.25rem;
  color: var(--teal-2);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 4px rgba(207, 159, 74, 0.22);
}

.lead {
  max-width: 44ch;
  color: var(--ink-2);
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.28rem);
  line-height: 1.6;
}

.btn {
  --btn-bg: var(--teal);
  --btn-fg: var(--on-dark);
  --btn-bd: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 54px;
  padding: 0.8em 1.55em;
  border: 1.5px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.btn:hover {
  --btn-bg: var(--teal-2);
  --btn-bd: var(--teal-2);
  color: var(--btn-fg);
  box-shadow: 0 12px 26px -12px rgba(0, 90, 93, 0.65);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn .icon {
  width: 1.15em;
  height: 1.15em;
  transition: transform 0.2s var(--ease);
}

.btn:hover .icon-arrow-right {
  transform: translateX(3px);
}

.btn:hover .icon-arrow-left {
  transform: translateX(-3px);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-2);
}

.btn--ghost:hover {
  --btn-bg: var(--card);
  --btn-bd: var(--ink);
  box-shadow: none;
}

.btn--brass {
  --btn-bg: var(--brass);
  --btn-fg: var(--teal-3);
  --btn-bd: var(--brass);
}

.btn--brass:hover {
  --btn-bg: var(--brass-2);
  --btn-bd: var(--brass-2);
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.5);
}

.btn--sm {
  min-height: 44px;
  padding: 0.55em 1.15em;
  font-size: 0.95rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}

.btn-row--center {
  justify-content: center;
}

@media (max-width: 480px) {
  .btn-row .btn {
    width: 100%;
  }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--teal-2);
  font-weight: 750;
  text-decoration: none;
}

.link-arrow .icon {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover .icon,
.audience__card:hover .link-arrow .icon,
.service:hover .link-arrow .icon {
  transform: translateX(4px);
}

.checklist {
  display: grid;
  gap: 14px;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 620;
  line-height: 1.45;
}

.checklist .icon {
  width: 24px;
  height: 24px;
  margin-top: 0;
  padding: 5px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--teal);
  stroke-width: 3;
}

.fineprint {
  max-width: 80ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-disclaimer {
  margin: 0 0 clamp(40px, 5vw, 64px);
}

/* Section scaffolding */

.section {
  padding-block: var(--section-y);
}

.section--alt {
  background: var(--paper-2);
}

.section--flush-top {
  padding-top: 0;
}

.section--tight {
  padding-block: clamp(48px, 7vw, 88px);
}

.section--dark {
  overflow-x: clip;
  background: var(--teal-deep);
  color: var(--on-dark);
}

.section--dark h2,
.section--dark h3 {
  color: var(--on-dark);
}

.section--dark h2 em {
  color: var(--brass-2);
}

.section--dark .eyebrow {
  color: var(--brass-2);
}

.section--dark .lead,
.section--dark p {
  color: var(--on-dark-muted);
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head h2 {
  margin-bottom: 0.4em;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px clamp(32px, 6vw, 88px);
  align-items: end;
  max-width: none;
}

.section-head--split h2 {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .section-head--split {
    grid-template-columns: 1fr;
  }
}

/* Ledger-paper texture used behind hero areas */

.ledger {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.ledger::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: repeating-linear-gradient(to bottom, transparent 0 43px, rgba(0, 90, 93, 0.075) 43px 44px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 55%, transparent);
}

.ledger::after {
  content: "";
  position: absolute;
  top: -360px;
  right: -260px;
  z-index: -1;
  width: 960px;
  height: 960px;
  background: radial-gradient(closest-side, rgba(179, 219, 216, 0.8), rgba(179, 219, 216, 0));
  -webkit-mask-image: linear-gradient(to bottom, transparent 30%, #000 52%, transparent 86%);
  mask-image: linear-gradient(to bottom, transparent 30%, #000 52%, transparent 86%);
  pointer-events: none;
}

/* 5. Header ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(247, 243, 234, 0.84);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  transition: border-color 0.2s, background-color 0.2s;
}

.site-header.is-scrolled,
.site-header.is-open {
  border-bottom-color: var(--line);
  background: rgba(247, 243, 234, 0.95);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand__logo {
  flex: none;
  width: auto;
  height: 48px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.brand__sub {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__list {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  display: inline-flex;
  padding: 0.5em 0.95em;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.98rem;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.nav__link:hover {
  background: rgba(0, 90, 93, 0.07);
  color: var(--ink);
}

.nav__link[aria-current="page"] {
  background: var(--tint);
  color: var(--teal);
}

.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.5em 0.8em;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}

.nav__phone .icon {
  width: 18px;
  height: 18px;
  color: var(--teal-2);
}

.nav__phone:hover {
  color: var(--teal);
}

.header-call,
.nav-toggle {
  display: none;
}

@media (max-width: 1080px) {
  .nav__phone {
    display: none;
  }
}

@media (max-width: 400px) {
  .brand {
    gap: 10px;
  }

  .brand__logo {
    height: 38px;
  }

  .brand__name {
    font-size: 1.25rem;
  }
}

@media (max-width: 940px) {
  .js .header-call,
  .js .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--line-2);
    border-radius: 14px;
    background: var(--card);
    color: var(--ink);
    cursor: pointer;
  }

  .js .header-call {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--on-dark);
  }

  .header-call .icon,
  .nav-toggle .icon {
    width: 22px;
    height: 22px;
  }

  .nav-toggle .icon-x,
  .site-header.is-open .nav-toggle .icon-menu {
    display: none;
  }

  .site-header.is-open .nav-toggle .icon-x {
    display: block;
  }

  .js .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    padding: 12px var(--gutter) 28px;
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 30px 40px -30px rgba(8, 36, 38, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }

  .js .site-header.is-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s, transform 0.25s var(--ease);
  }

  .js .nav__list {
    flex-direction: column;
  }

  .js .nav__link {
    padding: 0.8em 1em;
    border-radius: 12px;
    font-size: 1.12rem;
  }

  .js .nav__phone {
    display: inline-flex;
    padding: 0.8em 1em;
    font-size: 1.12rem;
  }

  .js .nav .btn {
    width: 100%;
    min-height: 54px;
    margin-top: 6px;
    font-size: 1.05rem;
  }
}

/* 6. Home sections --------------------------------------------------------- */

.hero {
  padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 100px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero .lead {
  max-width: 40ch;
}

.reassure {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin: 1.5rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 650;
  list-style: none;
}

.reassure li {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}

.reassure .icon {
  width: 17px;
  height: 17px;
  color: var(--teal-2);
  stroke-width: 2.6;
}

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

/* "Year at a glance" illustration */

.hero-visual {
  position: relative;
  padding: 64px 0 68px;
}

.glance {
  position: relative;
  max-width: 500px;
  margin-inline: auto;
  padding: 20px 22px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.glance__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  padding: 2px 4px 16px;
  border-bottom: 1px dashed var(--line-2);
}

.glance__title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 560;
  line-height: 1.2;
}

.glance__meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.status {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 750;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16917f;
  box-shadow: 0 0 0 3px rgba(22, 145, 127, 0.22);
}

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

.glance__item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
}

.glance__item:last-child {
  border-bottom: 0;
}

.glance__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--on-dark);
}

.glance__icon .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.6;
}

.glance__item.is-planned .glance__icon {
  background: var(--brass-soft);
  color: var(--brass-deep);
}

.glance__item.is-next .glance__icon {
  border: 1.5px dashed var(--line-2);
  background: transparent;
  color: var(--muted);
}

.glance__label {
  display: block;
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.3;
}

.glance__sub {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 750;
  white-space: nowrap;
}

.tag--done {
  background: var(--tint);
  color: var(--teal);
}

.tag--plan {
  background: var(--brass-soft);
  color: var(--brass-deep);
}

.chip-float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 270px;
  padding: 12px 18px 12px 12px;
  border-radius: 18px;
  background: var(--teal-deep);
  color: var(--on-dark);
  box-shadow: var(--shadow-lg);
}

.chip-float__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(247, 243, 234, 0.12);
  color: var(--brass-2);
}

.chip-float__icon .icon {
  width: 20px;
  height: 20px;
}

.chip-float strong {
  display: block;
  font-size: 0.96rem;
  line-height: 1.25;
}

.chip-float strong + span {
  display: block;
  color: var(--on-dark-muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

.chip-float--fee {
  bottom: 0;
  left: -36px;
}

.chip-float--call {
  top: 0;
  right: -24px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
}

.chip-float--call .chip-float__icon {
  background: var(--tint);
  color: var(--teal);
}

.chip-float--call strong + span {
  color: var(--muted);
}

@media (max-width: 1180px) {
  .chip-float--fee {
    left: 0;
  }

  .chip-float--call {
    right: 0;
  }
}

@media (max-width: 600px) {
  .hero-visual {
    padding: 0;
  }

  .glance {
    padding: 16px 14px 8px;
  }

  .glance__item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
  }

  .glance__icon {
    width: 34px;
    height: 34px;
  }

  .glance__item .tag {
    display: none;
  }

  .chip-float {
    position: relative;
    inset: auto;
    max-width: none;
    margin: 14px 0 0;
  }

  .chip-float--call {
    display: none;
  }
}

/* Promise strip */

.promises {
  border-block: 1px solid var(--line);
  background: var(--card);
}

.promises__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  background: var(--line);
  list-style: none;
}

.promises__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 22px;
  background: var(--card);
  font-size: 0.98rem;
  font-weight: 680;
  line-height: 1.32;
}

.promises__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--tint);
  color: var(--teal);
}

.promises__icon .icon {
  width: 22px;
  height: 22px;
}

@media (max-width: 980px) {
  .promises__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .promises__list {
    grid-template-columns: 1fr;
  }

  .promises__item {
    padding: 18px 4px;
  }
}

/* Audience cards */

.audience {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.audience__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}

.audience__card:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.audience__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.audience__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--teal);
  color: var(--brass-2);
}

.audience__icon .icon {
  width: 26px;
  height: 26px;
}

.audience__num {
  color: var(--brass-deep);
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  font-weight: 500;
}

.audience__card p {
  color: var(--muted);
}

.audience__card .link-arrow {
  margin-top: auto;
  padding-top: 20px;
}

.audience__card .link-arrow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

@media (max-width: 900px) {
  .audience {
    grid-template-columns: 1fr;
  }

  .audience__top {
    margin-bottom: 22px;
  }
}

/* Services grid */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  background: var(--card);
  transition: background-color 0.2s;
}

.service:hover {
  background: var(--white);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  border-radius: 14px;
  background: var(--tint);
  color: var(--teal);
  transition: background-color 0.2s, color 0.2s;
}

.service:hover .service__icon {
  background: var(--teal);
  color: var(--brass-2);
}

.service__icon .icon {
  width: 24px;
  height: 24px;
}

.service h3 {
  margin-bottom: 0.45em;
  font-size: 1.28rem;
}

.service h3 a {
  color: inherit;
  text-decoration: none;
}

.service h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.service p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.55;
}

.service--cta {
  background: var(--teal-deep);
  color: var(--on-dark);
}

.service--cta:hover {
  background: var(--teal-deep-2);
}

.service--cta h3 {
  color: var(--on-dark);
}

.service--cta p {
  color: var(--on-dark-muted);
}

.service--cta .link-arrow {
  margin-top: auto;
  padding-top: 22px;
  color: var(--brass-2);
}

.service--cta .service__icon {
  background: rgba(247, 243, 234, 0.1);
  color: var(--brass-2);
}

@media (max-width: 1060px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 2px 16px;
    padding: 22px 20px;
  }

  .service__icon {
    grid-row: span 3;
    width: 44px;
    height: 44px;
    margin: 0;
  }

  .service h3 {
    margin: 8px 0 4px;
    font-size: 1.2rem;
  }

  .service--cta .link-arrow {
    padding-top: 12px;
  }
}

/* Steps */

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

.step {
  position: relative;
  padding-top: 80px;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1.5px solid var(--teal);
  border-radius: 50%;
  background: var(--card);
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.step:first-child::before {
  background: var(--teal);
  color: var(--on-dark);
}

.step::after {
  content: "";
  position: absolute;
  top: 28px;
  right: -20px;
  left: 70px;
  height: 1.5px;
  background: repeating-linear-gradient(to right, var(--line-2) 0 6px, transparent 6px 12px);
}

.step:last-child::after {
  display: none;
}

.step h3 {
  font-size: 1.3rem;
}

.step p {
  color: var(--muted);
}

@media (max-width: 960px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
  }

  .step:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .step {
    padding: 4px 0 0 76px;
    min-height: 56px;
  }

  .step::after {
    display: none;
  }
}

/* Fixed fee band + receipt */

.fee {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
}

.fee .lead {
  max-width: 46ch;
}

.fee .checklist {
  margin-bottom: 2.25rem;
}

.fee .checklist li {
  color: var(--on-dark);
}

.fee .checklist .icon {
  background: var(--brass);
  color: var(--teal-3);
}

.receipt {
  position: relative;
  max-width: 400px;
  margin: 0 auto 48px;
  padding: 30px 30px 34px;
  border-radius: 14px 14px 0 0;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 50px 80px -40px rgba(0, 0, 0, 0.7);
  font-variant-numeric: tabular-nums;
  transform: rotate(1.6deg);
}

.receipt::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 12px;
  background:
    linear-gradient(135deg, var(--card) 50%, transparent 50%) 0 0 / 16px 12px repeat-x,
    linear-gradient(225deg, var(--card) 50%, transparent 50%) 0 0 / 16px 12px repeat-x;
}

.receipt__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}

.receipt__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.receipt__brand img {
  width: auto;
  height: 26px;
}

.receipt__kind {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.receipt__lines {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-2);
}

.receipt__lines div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  font-size: 0.95rem;
}

.receipt__lines dt {
  font-weight: 600;
}

.receipt__lines dd {
  margin: 0;
  color: var(--teal-2);
  font-weight: 750;
  white-space: nowrap;
}

.receipt__lines .is-zero dt {
  color: var(--muted);
}

.receipt__lines .is-zero dd {
  color: var(--muted);
}

.receipt__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
}

.receipt__total span {
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.receipt__total strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 560;
  text-align: right;
}

.receipt__stamp {
  position: absolute;
  z-index: 2;
  right: -40px;
  bottom: -58px;
  display: grid;
  place-items: center;
  width: 98px;
  height: 98px;
  border: 3px double var(--brass-deep);
  border-radius: 50%;
  color: var(--brass-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-14deg);
  background: rgba(243, 228, 196, 0.92);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1100px) {
  .receipt__stamp {
    right: -12px;
  }
}

@media (max-width: 900px) {
  .fee {
    grid-template-columns: 1fr;
  }

  .receipt__stamp {
    right: -8px;
  }
}

@media (max-width: 420px) {
  .receipt {
    padding: 24px 20px 28px;
    transform: none;
  }

  .receipt__stamp {
    right: -4px;
    bottom: -50px;
    width: 84px;
    height: 84px;
    font-size: 0.66rem;
  }
}

/* Making Tax Digital timeline */

.mtd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.mtd p {
  color: var(--ink-2);
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.timeline li.is-now {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px var(--tint);
}

.timeline__date {
  color: var(--teal-2);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline__amount {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.timeline__desc {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.timeline__now {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--on-dark);
  font-size: 0.74rem;
  font-weight: 750;
}

@media (max-width: 900px) {
  .mtd {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .timeline li {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 20px;
  }
}

/* Values */

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}

.value {
  padding-top: 26px;
  border-top: 2px solid var(--teal);
}

.value__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--brass-soft);
  color: var(--brass-deep);
}

.value__icon .icon {
  width: 24px;
  height: 24px;
}

.value p {
  color: var(--ink-2);
}

.values--cards .value {
  padding: 32px 30px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: 6px 6px var(--radius-lg) var(--radius-lg);
  background: var(--card);
}

@media (max-width: 900px) {
  .values {
    grid-template-columns: 1fr;
  }
}

/* FAQ */

.faq {
  max-width: 900px;
  margin-inline: auto;
  border-top: 1px solid var(--line-2);
}

.faq details {
  border-bottom: 1px solid var(--line-2);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.02rem + 0.5vw, 1.42rem);
  font-weight: 520;
  line-height: 1.3;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 13px 1.75px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.75px 13px no-repeat;
  transition: transform 0.25s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}

.faq summary:hover::after {
  border-color: var(--teal);
}

.faq details[open] summary::after {
  border-color: var(--teal);
  background-color: var(--teal);
  color: var(--on-dark);
  transform: rotate(45deg);
}

.faq__body {
  max-width: 70ch;
  padding: 0 4px 26px;
  color: var(--ink-2);
}

/* Call-to-action panel */

.cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: 40px clamp(40px, 6vw, 80px);
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(36px, 6vw, 80px);
  border-radius: var(--radius-lg);
  background: var(--teal-deep);
  color: var(--on-dark);
}

.cta::before,
.cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(221, 180, 102, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.cta::before {
  top: -180px;
  right: -140px;
  width: 460px;
  height: 460px;
}

.cta::after {
  top: -100px;
  right: -60px;
  width: 300px;
  height: 300px;
}

.cta h2 {
  color: var(--on-dark);
}

.cta h2 em {
  color: var(--brass-2);
}

.cta p:not(.eyebrow) {
  max-width: 48ch;
  color: var(--on-dark-muted);
  font-size: 1.1rem;
}

.cta .eyebrow {
  color: var(--brass-2);
}

.cta__contact {
  display: grid;
  gap: 12px;
}

.contact-pill {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--on-dark-line);
  border-radius: 18px;
  background: rgba(247, 243, 234, 0.06);
  color: var(--on-dark);
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

.contact-pill:hover {
  border-color: rgba(247, 243, 234, 0.4);
  background: rgba(247, 243, 234, 0.1);
  color: var(--on-dark);
  transform: translateY(-2px);
}

.contact-pill__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--brass);
  color: var(--teal-3);
}

.contact-pill__icon .icon {
  width: 22px;
  height: 22px;
}

.contact-pill small {
  display: block;
  color: var(--on-dark-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-pill strong {
  display: block;
  font-size: 1.12rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .cta {
    grid-template-columns: 1fr;
  }
}

/* 7. Inner pages ----------------------------------------------------------- */

.page-hero {
  padding: clamp(48px, 7vw, 104px) 0 clamp(48px, 6vw, 88px);
}

.page-hero .lead {
  max-width: 58ch;
}

.page-hero h1 {
  max-width: 17ch;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2.25rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 1.05em;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 680;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.chip .icon {
  width: 17px;
  height: 17px;
  color: var(--teal-2);
}

.chip:hover {
  border-color: var(--teal);
  background: var(--white);
  color: var(--teal);
}

/* Service detail rows */

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px clamp(40px, 6vw, 96px);
  align-items: start;
  padding-block: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line-2);
}

.detail:first-child {
  border-top: 0;
  padding-top: 0;
}

.detail__kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  color: var(--teal-2);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.detail__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--teal);
  color: var(--brass-2);
}

.detail__icon .icon {
  width: 24px;
  height: 24px;
}

.detail .lead {
  max-width: none;
  margin-bottom: 1.1em;
}

.detail__body p {
  color: var(--ink-2);
}

.included {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.included h3 {
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.included ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.included li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 620;
  line-height: 1.45;
}

.included li .icon {
  width: 24px;
  height: 24px;
  padding: 5px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--teal);
  stroke-width: 3;
}

.note {
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 3px solid var(--brass);
  border-radius: 4px var(--radius) var(--radius) 4px;
  background: var(--brass-soft);
  color: #3f3210;
  font-size: 0.96rem;
  line-height: 1.55;
}

.note strong {
  color: var(--ink);
}

.note a {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 900px) {
  .detail {
    grid-template-columns: 1fr;
  }
}

/* About page */

.story {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 40px clamp(40px, 7vw, 104px);
  align-items: start;
}

.story__text h2 {
  max-width: 18ch;
}

.story__text p {
  max-width: 62ch;
  color: var(--ink-2);
  font-size: 1.08rem;
}

.person {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

.person__avatar {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--brass-2);
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.person__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 560;
  line-height: 1.2;
}

.person__role {
  margin: 2px 0 16px;
  color: var(--brass-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.person p:not([class]) {
  color: var(--muted);
}

.person .link-arrow {
  margin-top: 18px;
}

@media (max-width: 900px) {
  .story {
    grid-template-columns: 1fr;
  }
}

.pledges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  list-style: none;
}

.pledge {
  padding: 30px 28px;
  background: var(--card);
}

.pledge__num {
  display: block;
  margin-bottom: 18px;
  color: var(--brass-deep);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
}

.pledge p {
  color: var(--muted);
}

.pledge strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 560;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

@media (max-width: 960px) {
  .pledges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .pledges {
    grid-template-columns: 1fr;
  }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px clamp(40px, 6vw, 96px);
  align-items: start;
}

.split .lead {
  max-width: none;
}

.split p {
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.tool {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.tool strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 560;
}

.tool span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

@media (max-width: 560px) {
  .tools {
    grid-template-columns: 1fr;
  }
}

/* Long-form text (privacy notice) */

.prose {
  max-width: 72ch;
}

.prose h2 {
  margin-top: 2.2em;
  font-size: clamp(1.45rem, 1.3rem + 0.6vw, 1.8rem);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--ink-2);
}

.prose ul {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose li::marker {
  color: var(--brass-deep);
}

/* 8. Tax & wealth ---------------------------------------------------------- */

.rates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rate {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.rate__pct {
  margin: 0 0 18px;
  color: var(--teal);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem);
  font-weight: 480;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
}

.rate h3 {
  margin-bottom: 0.3em;
  font-size: 1.2rem;
}

.rate p:last-child {
  color: var(--muted);
}

.rate--feature {
  border-color: var(--teal-deep);
  background: var(--teal-deep);
}

.rate--feature .rate__pct,
.rate--feature h3 {
  color: var(--on-dark);
}

.rate--feature .rate__pct {
  color: var(--brass-2);
}

.rate--feature p:last-child {
  color: var(--on-dark-muted);
}

@media (max-width: 860px) {
  .rates {
    grid-template-columns: 1fr;
  }
}

/* Corporation tax estimator */

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

.calc__input,
.calc__output {
  padding: clamp(26px, 4vw, 48px);
}

.calc__output {
  background: var(--teal-deep);
  color: var(--on-dark);
}

.money-input {
  display: flex;
  align-items: center;
  margin: 12px 0 26px;
  padding: 0 18px;
  border: 1.5px solid var(--line-2);
  border-radius: 16px;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.money-input:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px var(--tint);
}

.money-input span {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 2rem;
}

.money-input input {
  width: 100%;
  min-width: 0;
  padding: 14px 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.5rem + 1vw, 2.3rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.money-input input:focus-visible {
  outline: none;
}

.range {
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  --fill: 20%;
}

.range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--teal) var(--fill), var(--line) var(--fill));
}

.range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--teal) var(--fill), var(--line) var(--fill));
}

.range::-webkit-slider-thumb {
  width: 26px;
  height: 26px;
  margin-top: -10px;
  border: 4px solid var(--card);
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 1.5px var(--teal), var(--shadow-sm);
  -webkit-appearance: none;
  appearance: none;
}

.range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 4px solid var(--card);
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 1.5px var(--teal);
}

.range:focus-visible {
  outline: none;
}

.range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 1.5px var(--teal), 0 0 0 6px var(--brass-soft);
}

.range-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
}

.calc .hint {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.88rem;
}

.calc__band {
  display: inline-flex;
  margin-bottom: 26px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(221, 180, 102, 0.16);
  color: var(--brass-2) !important;
  font-size: 0.8rem;
  font-weight: 750;
}

.calc__label {
  margin-bottom: 6px;
  color: var(--on-dark-muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.calc__big {
  margin: 0;
  color: var(--on-dark) !important;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 2rem + 2.2vw, 3.8rem);
  font-weight: 460;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.calc__bar {
  display: flex;
  height: 12px;
  margin-top: 26px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(247, 243, 234, 0.12);
}

.calc__bar span {
  display: block;
  height: 100%;
  transition: width 0.35s var(--ease);
}

.calc__bar span:first-child {
  background: var(--brass);
}

.calc__bar span:last-child {
  background: var(--tint-2);
}

.calc__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 10px 0 0;
  color: var(--on-dark-muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.calc__legend span::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 3px;
  background: var(--brass);
}

.calc__legend span:last-child::before {
  background: var(--tint-2);
}

.calc__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 26px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--on-dark-line);
}

.calc__stats dt {
  color: var(--on-dark-muted);
  font-size: 0.85rem;
  font-weight: 650;
}

.calc__stats dd {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.calc__cta {
  margin-top: 26px;
  font-size: 0.95rem;
}

.calc__cta a {
  color: var(--brass-2);
  font-weight: 700;
}

@media (max-width: 860px) {
  .calc {
    grid-template-columns: 1fr;
  }
}

.levers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.lever {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 22px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.lever__icon {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--teal);
  color: var(--brass-2);
}

.lever__icon .icon {
  width: 26px;
  height: 26px;
}

.lever h3 {
  margin: 4px 0 0.35em;
}

.lever p {
  color: var(--muted);
}

@media (max-width: 860px) {
  .levers {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .lever {
    grid-template-columns: 1fr;
  }

  .lever__icon {
    grid-row: auto;
    margin-bottom: 14px;
  }
}

/* 9. Forms ----------------------------------------------------------------- */

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

legend {
  padding: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  display: grid;
  align-content: start;
  gap: 8px;
}

.field > legend {
  margin-bottom: 10px;
}

.label,
.field > label {
  display: block;
  color: var(--ink);
  font-size: 0.97rem;
  font-weight: 720;
  line-height: 1.35;
}

.req {
  color: var(--error);
}

.optional {
  color: var(--muted);
  font-weight: 550;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 54px;
  padding: 0.8em 1em;
  border: 1.5px solid var(--line-2);
  border-radius: 13px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 520;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input::placeholder,
.textarea::placeholder {
  color: #8a958f;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: #b5a98f;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--teal);
  outline: none;
  box-shadow: 0 0 0 4px var(--tint);
}

.select {
  padding-right: 2.8em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23005a5d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 1em center;
  background-repeat: no-repeat;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

.error {
  display: none;
  margin: 0;
  color: var(--error);
  font-size: 0.88rem;
  font-weight: 650;
}

.field.is-invalid .input,
.field.is-invalid .textarea,
.field.is-invalid .select {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(163, 50, 31, 0.12);
}

.field.is-invalid .error,
.is-invalid ~ .error {
  display: block;
}

.form-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.88rem;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Option tiles */

.options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 12px;
}

.option {
  position: relative;
  display: block;
}

.option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.option__box {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 16px 16px;
  border: 1.5px solid var(--line-2);
  border-radius: 16px;
  background: var(--white);
  font-weight: 720;
  line-height: 1.3;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.option__box small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 550;
}

.option__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--teal);
  transition: background-color 0.15s, color 0.15s;
}

.option__icon .icon {
  width: 21px;
  height: 21px;
}

.option__tick {
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: auto;
  border: 1.5px solid var(--line-2);
  border-radius: 50%;
  color: transparent;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.option input[type="checkbox"] + .option__box .option__tick {
  border-radius: 7px;
}

.option__tick .icon {
  width: 14px;
  height: 14px;
  stroke-width: 3.2;
}

.option:hover .option__box {
  border-color: #b5a98f;
}

.option input:checked + .option__box {
  border-color: var(--teal);
  background: #eef7f6;
  box-shadow: 0 0 0 1px var(--teal);
}

.option input:checked + .option__box .option__icon {
  background: var(--teal);
  color: var(--brass-2);
}

.option input:checked + .option__box .option__tick {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--on-dark);
}

.option input:focus-visible + .option__box {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

.options--compact .option__box {
  padding: 14px 16px;
}

.options.is-invalid .option__box {
  border-color: rgba(163, 50, 31, 0.55);
}

/* Pill radios (Yes / No etc.) */

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-option {
  position: relative;
}

.pill-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.pill-option span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0.55em 1.2em;
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.97rem;
  font-weight: 680;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.pill-option:hover span {
  border-color: #b5a98f;
}

.pill-option input:checked + span {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--on-dark);
}

.pill-option input:focus-visible + span {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

/* Success panel */

.form-success {
  padding: clamp(12px, 3vw, 32px) 0;
  text-align: center;
}

.form-success:focus {
  outline: none;
}

.form-success__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--teal);
}

.form-success__icon .icon {
  width: 34px;
  height: 34px;
  stroke-width: 2.6;
}

.form-success p {
  max-width: 52ch;
  margin-inline: auto;
  color: var(--ink-2);
}

/* 10. Quote builder -------------------------------------------------------- */

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.quote-card,
.form-card {
  padding: clamp(22px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

.progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.progress__bar {
  flex: 1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper-2);
}

.progress__fill {
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 0.4s var(--ease);
}

.progress__label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  white-space: nowrap;
}

.step-panel + .step-panel {
  margin-top: 44px;
}

.js .step-panel + .step-panel {
  margin-top: 0;
}

.step-title {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 1.3rem + 1vw, 2.1rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.step-title:focus {
  outline: none;
}

.step-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--brass-deep);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.step-help {
  margin-bottom: 24px;
  color: var(--muted);
}

.step-panel .options,
.step-panel .form-grid {
  margin-top: 22px;
}

.step-help + .options,
.step-help + .form-grid {
  margin-top: 0;
}

.js .step-panel.is-active {
  animation: panel-in 0.35s var(--ease);
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
}

.form-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.form-nav [data-next],
.form-nav [data-submit] {
  margin-left: auto;
}

@media (max-width: 480px) {
  .form-nav .btn {
    flex: 1 1 100%;
  }

  .form-nav [data-back] {
    order: 2;
  }
}

.quote-aside {
  display: grid;
  gap: 16px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.aside-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.aside-card--dark {
  border-color: var(--teal-deep);
  background: var(--teal-deep);
  color: var(--on-dark);
}

.aside-title {
  margin-bottom: 18px;
  font-size: 1.35rem;
}

.aside-card--dark .aside-title {
  color: var(--on-dark);
}

.aside-card--dark p {
  color: var(--on-dark-muted);
  font-size: 0.95rem;
}

.mini-steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: mini;
}

.mini-steps li {
  position: relative;
  padding-left: 44px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.mini-steps li::before {
  content: counter(mini);
  counter-increment: mini;
  position: absolute;
  top: -2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

.mini-steps strong {
  display: block;
  color: var(--ink);
}

.aside-links {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.aside-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--on-dark);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.aside-links a:hover {
  color: var(--brass-2);
}

.aside-links .icon {
  width: 20px;
  height: 20px;
  color: var(--brass-2);
}

@media (max-width: 960px) {
  .quote-layout {
    grid-template-columns: 1fr;
  }

  .quote-aside {
    position: static;
  }
}

/* 11. Contact -------------------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 14px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}

a.contact-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow);
  color: inherit;
  transform: translateY(-2px);
}

.contact-card__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--teal);
  color: var(--brass-2);
}

.contact-card__icon .icon {
  width: 23px;
  height: 23px;
}

.contact-card__label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-card__value {
  display: block;
  margin: 2px 0 4px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.55rem);
  font-weight: 520;
  line-height: 1.25;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.contact-card__hint {
  display: block;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.contact-card--accent {
  border-color: var(--brass);
  background: var(--brass-soft);
}

.contact-card--accent .contact-card__icon {
  background: var(--brass);
  color: var(--teal-3);
}

.contact-card--accent .contact-card__label,
.contact-card--accent .contact-card__hint {
  color: #5a4718;
}

.form-card h2 {
  font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem);
}

.form-card > p {
  margin-bottom: 26px;
  color: var(--muted);
}

.form-card .btn[type="submit"] {
  margin-top: 8px;
}

@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* 12. Footer --------------------------------------------------------------- */

.site-footer {
  padding: clamp(56px, 7vw, 92px) 0 32px;
  background: var(--teal-3);
  color: var(--on-dark-muted);
  font-size: 0.96rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.site-footer .brand {
  color: var(--on-dark);
  margin-bottom: 22px;
}

.site-footer .brand__logo {
  height: 52px;
}

.site-footer .brand__sub {
  color: var(--on-dark-muted);
}

.footer-brand p {
  max-width: 36ch;
  margin-bottom: 24px;
}

.footer-title {
  margin-bottom: 18px;
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:not(.btn):not(.brand) {
  color: var(--on-dark-muted);
  text-decoration: none;
}

.site-footer a:not(.btn):not(.brand):hover {
  color: var(--on-dark);
  text-decoration: underline;
}

.footer-contact li > * {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow-wrap: anywhere;
}

.footer-contact .icon {
  width: 18px;
  height: 18px;
  color: var(--brass-2);
}

.footer-legal {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 12px 40px;
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid var(--on-dark-line);
  font-size: 0.84rem;
  line-height: 1.55;
}

.footer-legal p {
  margin: 0;
}

.footer-legal p:last-child {
  text-align: right;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-legal {
    grid-template-columns: 1fr;
  }

  .footer-legal p:last-child {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-contact-col {
    grid-column: 1 / -1;
  }
}

/* 13. Motion --------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .glance__item {
    animation: rise 0.7s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 110ms + 250ms);
  }

  .chip-float--fee {
    animation: bob 6s ease-in-out 1.2s infinite;
  }

  .chip-float--call {
    animation: bob 7s ease-in-out infinite reverse;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
  }

  @keyframes bob {
    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-7px);
    }
  }
}

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

/* 14. Print ---------------------------------------------------------------- */

@media print {
  .site-header,
  .site-footer,
  .cta,
  .hero-visual,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
