@font-face { font-family: "Source Serif"; src: url("../fonts/source-serif.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("../fonts/source-serif-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* Matches FD Suite's own palette (fd-suite/public/css/app.css).
     --accent-strong is a slightly deeper blue so white button text meets WCAG AA. */
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --ink-3: #6b6a66;
  --paper: #f4f4f1;
  --paper-2: #e8e7e2;
  --white: #fcfcfb;
  --line: rgba(11, 11, 11, 0.14);
  --deep: #0d0d0d;
  --deep-2: #1a1a19;
  --on-deep: #f0efec;
  --on-deep-2: #c3c2b7;
  --accent: #2a78d6;
  --accent-strong: #2470cc;
  --accent-hover: #1c5fb3;
  --accent-on-deep: #5a9eee;
  --accent-on-light: #1f66bd;
  --on-accent: #ffffff;
  --good: #006300;
  --watch: #8a5a00;
  --action: #b42323;
  --display: "Source Serif", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --gutter: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tint { background: var(--paper-2); }
.section--deep { background: var(--deep); color: var(--on-deep); }
.eyebrow { margin-bottom: 16px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-on-light); }
.section--deep .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--accent-on-deep); }
.lede { max-width: 62ch; margin-top: 20px; font-size: clamp(1.125rem, 2vw, 1.3125rem); line-height: 1.5; color: var(--ink-2); }
.section--deep .lede { color: var(--on-deep-2); }
.section-head { max-width: 800px; margin-bottom: clamp(36px, 5vw, 64px); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 16px; background: var(--accent-strong); color: var(--on-accent); border-radius: 8px; }
.skip:focus { top: 12px; }
.todo { padding: 1px 6px; background: #ffe9b3; color: #5c3d00; border-radius: 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 26px; background: var(--accent-strong); color: var(--on-accent); border: 0; border-radius: 999px; font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background-color .15s, transform .15s; }
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn--small { min-height: 44px; padding: 8px 20px; font-size: .9375rem; }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { background: rgba(255,255,255,.09); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 10; background: var(--deep); color: var(--on-deep); border-bottom: 1px solid rgba(255,255,255,.1); }
.site-head__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text strong { font: 600 1.25rem/1.1 var(--display); }
.logo__text small { font-size: .75rem; color: var(--on-deep-2); }
.nav-toggle { min-height: 44px; padding: 8px 18px; background: transparent; color: inherit; border: 1.5px solid rgba(255,255,255,.4); border-radius: 999px; font: 500 .9375rem var(--body); cursor: pointer; }
.site-nav { display: none; flex-basis: 100%; flex-direction: column; gap: 4px; padding-bottom: 20px; }
.site-nav.is-open { display: flex; }
.site-nav a:not(.btn) { padding: 10px 0; text-decoration: none; }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--accent-on-deep); }
.site-nav .btn { margin-top: 8px; }
@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; flex-basis: auto; flex-direction: row; align-items: center; gap: 30px; padding: 0; }
  .site-nav a:not(.btn) { font-size: .9375rem; }
  .site-nav a:not(.btn):hover { color: var(--accent-on-deep); }
  .site-nav .btn { margin: 0 0 0 4px; }
}

/* Hero */
.hero { background: var(--deep); color: var(--on-deep); overflow: hidden; }
.hero__inner { padding-block: clamp(56px, 8vw, 96px) 0; }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent-on-deep); }
.hero .lede { color: var(--on-deep-2); }
.hero__note { margin-top: 18px; font-size: .9375rem; color: var(--on-deep-2); }
.hero__shot { margin: clamp(44px, 6vw, 72px) 0 calc(-1 * clamp(40px, 8vw, 120px)); }
.hero__after { height: clamp(40px, 8vw, 120px); background: var(--paper); }
.shot { overflow: hidden; background: #111; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(11,11,11,.28); }
.caption { margin-top: 12px; font-size: .875rem; color: var(--ink-3); }
.section--deep .caption { color: var(--on-deep-2); }

/* The gap */
.gap { display: grid; gap: 12px; }
.gap__item { padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.gap__item p { margin-top: 10px; color: var(--ink-2); font-size: 1rem; }
.gap__item--here { background: var(--deep); color: var(--on-deep); border-color: var(--deep); }
.gap__item--here p { color: var(--on-deep-2); }
.gap__tag { display: inline-block; margin-bottom: 14px; padding: 3px 10px; background: var(--accent-strong); color: var(--on-accent); border-radius: 999px; font-size: .8125rem; font-weight: 600; }
.gap__scale { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; font-size: .875rem; color: var(--ink-3); }
@media (min-width: 880px) { .gap { grid-template-columns: 1fr 1.25fr 1fr 1fr; } }

/* Tailoring demo */
.tailor { background: var(--white); color: var(--ink); border-radius: calc(var(--radius) + 4px); overflow: hidden; }
.tailor__controls { margin: 0; padding: 12px; border: 0; background: var(--paper-2); display: grid; gap: 6px; }
.tailor__controls legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tailor__option { position: relative; }
.tailor__option input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tailor__option span { display: block; padding: 12px 16px; border-radius: 10px; }
.tailor__option strong { display: block; font-weight: 600; }
.tailor__option small { font-size: .875rem; color: var(--ink-3); }
.tailor__option input:checked + span { background: var(--deep); color: var(--on-deep); }
.tailor__option input:checked + span small { color: var(--on-deep-2); }
.tailor__option input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.tailor__body { display: grid; gap: 32px; padding: clamp(20px, 4vw, 40px); }
.tailor__company { font-size: .875rem; color: var(--ink-3); }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.kpi { padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.kpi__label { font-size: .875rem; color: var(--ink-2); }
.kpi__value { display: block; font: 500 1.625rem/1.2 var(--display); font-variant-numeric: tabular-nums; }
.kpi__status { font-size: .8125rem; font-weight: 600; }
.is-good { color: var(--good); } .is-watch { color: var(--watch); } .is-action { color: var(--action); }
.narrative { margin-top: 20px; }
.narrative p + p { margin-top: 10px; }
.narrative strong { font-weight: 600; }
.pack h3 { font: 600 1rem/1.3 var(--body); letter-spacing: 0; }
.pack ul { margin: 12px 0 0; padding: 0; list-style: none; }
.pack li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.pack li:last-child { border-bottom: 0; }
.pack li::after { content: "Off"; flex: none; min-width: 42px; padding: 1px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font-size: .75rem; font-weight: 600; text-align: center; }
.pack li.is-on::after { content: "On"; background: var(--deep); color: var(--on-deep); }
.pack li:not(.is-on) { color: var(--ink-3); }
[hidden] { display: none !important; }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(4, 1fr); } .kpis--many { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 880px) {
  .tailor__controls { grid-template-columns: repeat(3, 1fr); }
  .tailor__body { grid-template-columns: 1.7fr 1fr; gap: 48px; }
}

/* Reasons */
.reasons { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.reasons li { display: grid; gap: 8px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.reasons p { color: var(--ink-2); max-width: 58ch; }
@media (min-width: 720px) { .reasons li { grid-template-columns: 1fr 1.2fr; gap: 40px; } }

/* Lion band */
.lion { background: var(--accent-strong); color: var(--on-accent); }
.lion__inner { padding-block: clamp(56px, 8vw, 104px); }
.lion blockquote { margin: 0; max-width: 20ch; font: 500 clamp(2.25rem, 6vw, 4.25rem)/1.05 var(--display); letter-spacing: -.02em; }
.lion p { max-width: 54ch; margin-top: 22px; font-size: 1.125rem; }

/* CTA */
.cta { text-align: left; }
.cta h2 { max-width: 18ch; }

/* Inner page hero */
.page-hero { background: var(--deep); color: var(--on-deep); padding-block: clamp(56px, 8vw, 96px); }
.page-hero h1 { max-width: 18ch; font-size: clamp(2.25rem, 6vw, 4rem); }
.page-hero .lede { color: var(--on-deep-2); }

/* Feature rows */
.feature { display: grid; gap: 28px; align-items: center; padding-block: clamp(36px, 5vw, 64px); }
.feature + .feature { border-top: 1px solid var(--line); }
.feature__text p { margin-top: 14px; color: var(--ink-2); }
.feature__text ul { margin: 16px 0 0; padding-left: 20px; color: var(--ink-2); }
.feature__text li + li { margin-top: 6px; }
@media (min-width: 880px) {
  .feature { grid-template-columns: 1fr 1.5fr; gap: 56px; }
  .feature--flip .feature__text { order: 2; }
  .feature--flip { grid-template-columns: 1.5fr 1fr; }
}
.reassure { padding: clamp(24px, 4vw, 40px); background: var(--deep); color: var(--on-deep); border-radius: var(--radius); }
.reassure p { margin-top: 12px; max-width: 64ch; color: var(--on-deep-2); }

/* UK cards */
.cards { display: grid; gap: 14px; }
.card { padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.card p { margin-top: 10px; font-size: 1rem; color: var(--ink-2); }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.section--tint .shot, .section .shot { border-color: rgba(11,11,11,.2); }

/* Questions table */
.q-table { width: 100%; border-collapse: collapse; }
.q-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.q-table th, .q-table td { display: block; padding: 0; text-align: left; }
.q-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.q-table tr { display: block; padding: 22px 0; border-bottom: 1px solid var(--line); }
.q-table tbody th { font: 500 1.375rem/1.25 var(--display); }
.q-table td { margin-top: 8px; color: var(--ink-2); }
@media (min-width: 720px) {
  .q-table thead { position: static; display: table-header-group; width: auto; height: auto; clip-path: none; overflow: visible; }
  .q-table tr { display: table-row; padding: 0; }
  .q-table th, .q-table td { display: table-cell; padding: 20px 28px 20px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
  .q-table thead th { font-size: .875rem; font-weight: 600; color: var(--ink-3); }
  .q-table tbody th { width: 46%; }
  .q-table td { margin: 0; }
}

/* Prose */
.prose { max-width: 68ch; }
.prose h2 { margin: 48px 0 16px; font-size: clamp(1.625rem, 3vw, 2.25rem); }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 16px; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 8px; }
.notice { margin-bottom: 32px; padding: 14px 18px; background: #ffe9b3; color: #5c3d00; border-radius: 10px; }

/* Demo form */
.demo { display: grid; gap: 48px; }
@media (min-width: 880px) { .demo { grid-template-columns: 1fr 1.2fr; gap: 72px; } }
.steps { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 0 0 22px 44px; counter-increment: step; color: var(--ink-2); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; display: grid; place-items: center; background: var(--deep); color: var(--on-deep); border-radius: 50%; font-size: .875rem; font-weight: 600; }
.form { padding: clamp(22px, 4vw, 40px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .9375rem; }
.field small { display: block; margin-top: 6px; color: var(--ink-3); font-size: .875rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; background: #fff; color: var(--ink); border: 1px solid rgba(11,11,11,.5); border-radius: 8px; font: inherit; }
.field textarea { min-height: 110px; resize: vertical; }
.form__grid { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .form__grid { grid-template-columns: 1fr 1fr; } }
.form__legal { margin-top: 14px; font-size: .875rem; color: var(--ink-3); }
.form__status { margin-top: 14px; font-weight: 600; color: var(--action); }
.form__done h2 { font-size: 2rem; }
.form__done p { margin-top: 14px; color: var(--ink-2); }

/* Footer */
.site-foot { padding-block: 56px; background: var(--deep); color: var(--on-deep-2); font-size: .9375rem; }
.site-foot__grid { display: grid; gap: 32px; }
.site-foot__brand { margin-bottom: 8px; color: var(--on-deep); font: 500 1.375rem var(--display); }
.site-foot nav { display: flex; flex-direction: column; gap: 8px; }
.site-foot nav a { text-decoration: none; }
.site-foot nav a:hover { color: var(--accent-on-deep); text-decoration: underline; }
.site-foot__legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
@media (min-width: 720px) { .site-foot__grid { grid-template-columns: 2fr 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.about-gap { margin-block: 40px 56px; }

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