:root {
  --bg: #f5f7f6;
  --surface: #ffffff;
  --ink: #142023;
  --muted: #5b6b70;
  --line: #e1e6e4;
  --accent: #0f6b55;
  --accent-ink: #ffffff;
  --accent-soft: #e3f2ed;
  --hero-a: #0b3d33;
  --hero-b: #0f6b55;
  --shadow: 0 1px 2px rgba(16,32,30,.05), 0 4px 16px rgba(16,32,30,.06);
  --red: #b3261e;
  --red-bg: #fbe9e7;
  --amber: #8a5a00;
  --amber-bg: #fdf3dc;
  --green: #1e6b3a;
  --green-bg: #e5f3e9;
  --radius: 10px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15191c;
    --surface: #1d2327;
    --ink: #e8eaeb;
    --muted: #9aa5ae;
    --line: #333c42;
    --accent: #5fc4a6;
    --accent-ink: #0b1a16;
    --accent-soft: #173a31;
    --hero-a: #0a2a24;
    --hero-b: #0f4a3d;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
    --red: #f2a49c;
    --red-bg: #3a1f1d;
    --amber: #f0c36b;
    --amber-bg: #3a3020;
    --green: #8fd4a6;
    --green-bg: #1d3226;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); }
.wrap { max-width: 860px; margin: 0 auto; padding: 24px 16px 64px; }
header.top { border-bottom: 1px solid var(--line); background: var(--surface); }
header.top .wrap { padding-top: 14px; padding-bottom: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.brand { font-weight: 700; letter-spacing: -0.01em; }
.brand small { font-weight: 400; color: var(--muted); margin-left: 8px; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 8px 0 12px; letter-spacing: -0.02em; }
h2 { font-size: 1.25rem; margin: 0 0 4px; }
h3 { font-size: 1.05rem; margin: 18px 0 6px; }
p.lead { font-size: 1.08rem; color: var(--muted); margin: 0 0 20px; }
.muted { color: var(--muted); }
a { color: var(--accent); }

fieldset { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px 18px 8px; margin: 0 0 18px; }
legend { font-weight: 700; padding: 0 6px; font-size: 1.05rem; }
.hint { color: var(--muted); font-size: 0.9rem; margin: -4px 0 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px 16px; }
label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 12px; }
label span.sub { display: block; font-weight: 400; color: var(--muted); font-size: 0.83rem; }
input, select, textarea { width: 100%; margin-top: 4px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); color: var(--ink); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: 5px; }
.inc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 4px 16px; }

button, .btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px; padding: 12px 22px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
button.secondary, .btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); padding: 8px 14px; font-weight: 600; }
button:disabled { opacity: 0.6; cursor: wait; }
.error { color: var(--red); font-weight: 600; }

/* report */
.verdict { border-radius: var(--radius); padding: 18px 20px; margin: 8px 0 20px; border: 1px solid var(--line); background: var(--surface); }
.verdict .label { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; }
.v-red { border-left: 6px solid var(--red); }
.v-amber { border-left: 6px solid var(--amber); }
.v-green { border-left: 6px solid var(--green); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 16px; }
.q { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.q:first-of-type { border-top: 0; }
.pill { display: inline-block; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 999px; white-space: nowrap; align-self: start; margin-top: 2px; }
.pill.red { background: var(--red-bg); color: var(--red); }
.pill.amber { background: var(--amber-bg); color: var(--amber); }
.pill.green { background: var(--green-bg); color: var(--green); }
.q .title { font-weight: 700; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; }
td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 800; border-bottom: 0; }
.tablewrap { overflow-x: auto; }
ol.sq li, ul.plain li { margin-bottom: 6px; }
.key { font-weight: 700; }
.src { color: var(--muted); font-size: 0.85rem; }
.cta { background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); padding: 18px 20px; margin-top: 24px; }
.cta a { color: var(--accent-ink); font-weight: 700; }
.disclaimer { font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 24px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }

@media print {
  :root { --bg: #fff; --surface: #fff; --ink: #000; --muted: #444; --line: #ccc; }
  header.top, .actions, .noprint { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .card, .verdict { break-inside: avoid; }
  .cta { background: #fff; color: #000; border: 1px solid #000; }
  .cta a { color: #000; }
}

/* quote upload */
fieldset.upload { border: 2px dashed var(--accent); }
input[type=file] { background: transparent; border: 0; padding: 6px 0; }
.from-quote input, .from-quote select { border-color: var(--accent); background: var(--green-bg); }
.from-quote::after { content: "From your quote: check it"; display: block; font-weight: 400; font-size: 0.78rem; color: var(--accent); margin-top: 3px; }
.clause { border-left: 3px solid var(--amber); padding: 4px 0 4px 12px; margin: 10px 0; }
.clause q { font-style: italic; }
.narrative p { margin: 0 0 10px; }
.narrative h3 { margin-top: 16px; }
.writing { display: flex; gap: 10px; align-items: center; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

button.secondary.chosen { background: var(--accent); color: var(--accent-ink); }
textarea { font: 0.92rem/1.5 var(--font); }

/* quote comparison */
.wrap.wide { max-width: 1200px; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.quote-card label { margin-bottom: 8px; }
table.compare th[scope], table.compare tbody th { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 0.9rem; white-space: nowrap; }
table.compare thead th { color: var(--ink); text-transform: none; font-size: 0.95rem; }
table.compare .pill { margin-top: 4px; }

/* register */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 12px; margin: 8px 0 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tile .n { font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; }
tr.status-down td:first-child { border-left: 4px solid var(--red); }
tr.status-partly td:first-child { border-left: 4px solid var(--amber); }
tr.status-retired { opacity: 0.55; }
form.add { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 4px; }
td select { width: auto; margin: 0; }

/* accounts */
nav.acct { display: flex; gap: 14px; align-items: center; margin-left: auto; }
nav.acct a { font-weight: 600; }
nav.acct a.warn { color: var(--red); }
.btn.small, button.small { padding: 6px 12px; font-size: 0.88rem; }
nav.acct .btn.small { color: var(--accent-ink); }
.wrap.narrow { max-width: 520px; }
a.plain-link { color: inherit; text-decoration: none; }
.card.highlight { border: 2px solid var(--accent); }
.trial-cta { background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 18px; }

/* modern look */
:root { --radius: 14px; }
body { -webkit-font-smoothing: antialiased; }
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.12rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand::before { content: "F"; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); color: #fff; font-weight: 800; font-size: 1rem; }
h1, h2 { letter-spacing: -0.025em; }
.hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(95,196,166,.35), transparent 60%), linear-gradient(135deg, var(--hero-a), var(--hero-b)); color: #fff; }
.hero .wrap { padding-top: 64px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); line-height: 1.05; margin: 6px 0 16px; letter-spacing: -0.035em; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; opacity: .8; margin: 0; }
.hero-lead { font-size: 1.15rem; max-width: 600px; opacity: .92; margin: 0 0 24px; }
.hero .actions { margin: 0 0 20px; }
.btn.big { padding: 14px 26px; font-size: 1.02rem; border-radius: 12px; }
.hero .btn { background: #fff; color: var(--hero-a); }
.hero .btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.trust { font-size: .9rem; opacity: .8; margin: 0; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; margin-top: -40px; padding-top: 0; padding-bottom: 8px; position: relative; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.feature h3 { margin: 10px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .94rem; }
.ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.section-title { font-size: 1.7rem; margin: 16px 0 8px; }
fieldset, .card, .verdict, .tile, .trial-cta { border-radius: var(--radius); box-shadow: var(--shadow); }
fieldset { padding: 22px 22px 10px; }
legend { background: var(--surface); border-radius: 8px; padding: 2px 10px; }
input, select, textarea { border-radius: 10px; padding: 11px 12px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
button, .btn { border-radius: 10px; transition: transform .1s, filter .15s, background .15s; }
button:hover, .btn:hover { filter: brightness(1.08); }
button:active, .btn:active { transform: translateY(1px); }
#go { width: 100%; padding: 16px; font-size: 1.08rem; }
@media (prefers-reduced-motion: reduce) { button, .btn, input, select, textarea { transition: none; } }

/* Stripe-style layout (7 Oct): navy ink, angled colour band, product preview, stats, dark band */
:root { --ink: #0a2540; --muted: #425466; --bg: #ffffff; --line: #e3e8ee; --navy: #0a2540;
  --shadow: 0 2px 5px rgba(50,50,93,.08), 0 15px 35px rgba(50,50,93,.12); }
@media (prefers-color-scheme: dark) { :root { --ink: #e8eef5; --muted: #a3b1c2; --bg: #0b1622; --surface: #121f2e; --line: #23344a; --navy: #06101b; } }
header.top .wrap { max-width: 1080px; }
nav.site-links { display: flex; gap: 22px; margin-left: 28px; }
nav.site-links a { color: var(--ink); font-weight: 600; font-size: .94rem; text-decoration: none; opacity: .85; }
nav.site-links a:hover { opacity: 1; }
@media (max-width: 760px) { nav.site-links { display: none; } }
.btn span[aria-hidden] { display: inline-block; margin-left: 6px; transition: transform .15s; }
.btn:hover span[aria-hidden] { transform: translateX(3px); }
.btn.big { border-radius: 999px; }

.hero { position: relative; overflow: hidden; background: none; color: var(--ink); }
.hero-band { position: absolute; inset: -40% 0 auto 0; height: 150%; transform: skewY(-8deg); transform-origin: 0 0;
  background: radial-gradient(40% 60% at 15% 40%, #5fc4a6 0, transparent 70%), radial-gradient(35% 55% at 55% 30%, #2f80ed 0, transparent 70%),
    radial-gradient(35% 60% at 85% 55%, #f2c14e 0, transparent 70%), radial-gradient(45% 70% at 70% 90%, #0f6b55 0, transparent 70%), linear-gradient(120deg, #0b3d33, #12806a);
  background-size: 200% 200%; animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { background-position: 100% 100%; } }
@media (prefers-reduced-motion: reduce) { .hero-band { animation: none; } }
.hero .wrap.hero-grid { position: relative; max-width: 1080px; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 48px; align-items: center; padding-top: 80px; padding-bottom: 110px; }
@media (max-width: 860px) { .hero .wrap.hero-grid { grid-template-columns: minmax(0,1fr); padding-bottom: 80px; } }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6.5vw, 4.4rem); letter-spacing: -0.04em; }
.hero .eyebrow, .hero-lead { color: #fff; }
.hero .btn { background: var(--navy); color: #fff; }
.hero .btn.ghost { background: #fff; color: var(--navy); border: 0; }

.preview { margin: 0; background: var(--surface); color: var(--ink); border-radius: 16px; padding: 22px 22px 16px; box-shadow: 0 30px 60px -12px rgba(50,50,93,.35), 0 18px 36px -18px rgba(0,0,0,.4); transform: perspective(1200px) rotateY(-6deg) rotateX(2deg); }
@media (max-width: 860px) { .preview { transform: none; } }
.preview-tag { margin: 0 0 10px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.preview-verdict { margin: 0 0 14px; }
.preview-verdict .pill { font-size: .85rem; padding: 5px 12px; }
.preview-cost { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.preview-cost div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.preview-cost .k { display: block; font-size: .78rem; color: var(--muted); }
.preview-cost .v { display: block; font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.preview-qs { list-style: none; margin: 0 0 12px; padding: 0; font-size: .9rem; }
.preview-qs li { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.red { background: var(--red); } .dot.amber { background: #e0a100; }
.preview figcaption { font-size: .78rem; color: var(--muted); }

.stats { border-bottom: 1px solid var(--line); }
.stats .wrap.stats-grid { max-width: 1080px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 24px; padding-top: 36px; padding-bottom: 36px; }
.stats-grid div { border-left: 1px solid var(--accent); padding-left: 16px; }
.stats .n { display: block; font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.stats .l { color: var(--muted); font-size: .95rem; }

.wrap.features { display: block; max-width: 1080px; margin-top: 0; padding-top: 72px; padding-bottom: 72px; }
.eyebrow.accent { color: var(--accent); opacity: 1; }
.big-h { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.12; letter-spacing: -0.03em; margin: 8px 0 32px; max-width: 640px; }
.feature-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 32px; }
.feature-cols .feature { background: none; border: 0; box-shadow: none; border-left: 1px solid var(--accent); border-radius: 0; padding: 0 0 0 16px; }
.feature-cols .feature h3 { margin-top: 0; }

.dark { background: var(--navy); color: #fff; }
.dark .wrap { max-width: 1080px; padding-top: 72px; padding-bottom: 72px; }
.dark .eyebrow { color: #5fc4a6; opacity: 1; }
.dark .big-h { color: #fff; margin-bottom: 12px; }
.dark-lead { color: #adbdcc; font-size: 1.12rem; max-width: 620px; margin: 0; }
#check { padding-top: 64px; }

/* quick check: key questions only */
form.short .extra { display: none; }
.mode-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--accent-soft); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 18px; }
.mode-bar span { font-weight: 600; }

/* paid review offer at the end of a report */
.cta { border-radius: var(--radius); padding: 22px 24px; }
.cta h3 { margin: 0 0 8px; font-size: 1.25rem; color: var(--accent-ink); }
.cta ul { margin: 8px 0 14px; padding-left: 20px; }
.cta .btn { background: var(--accent-ink); color: var(--accent); }
