/* Fleepo public site
   Layout: left-aligned editorial hero with a windscreen "lot ticket" as the one bold element; quiet sections below.
   Colour: cool white ground, navy ink, UK number-plate yellow as the single accent, deal green/red only inside the ticket. */
:root {
  --ground: #f3f5f7;
  --paper: #ffffff;
  --ink: #15233b;
  --ink-soft: #4a5872;
  --line: #d9dee6;
  --plate: #f4c20d;
  --go: #1f8a5b;
  --stop: #c23a2b;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0f1726; --paper: #16213a; --ink: #eef2f8; --ink-soft: #a9b5c9; --line: #2a3755;
    --plate: #f4c20d; --go: #46c08a; --stop: #f07a63; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17px/1.6 var(--body); }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--plate); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); }

/* header */
.top { padding-block: 16px; position: sticky; top: 0; z-index: 50; background: var(--ground); box-shadow: 0 0 0 100vmax var(--ground); clip-path: inset(0 -100vmax); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: 24px; letter-spacing: -0.01em; }
.brand-mark { width: 56px; height: 21px; background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 22"%3E%3Cpath d="M6 16.6V12.4c0-1.4 1-2.5 2.4-2.8l9.6-1.8 6.6-4.5c.9-.6 2-1 3.1-1h17.9c1.3 0 2.5.5 3.4 1.4l4.6 4.8 1.5.6c1 .4 1.6 1.4 1.6 2.4v5.1z" fill="%23f4c20d" stroke="%2315233b" stroke-width="1.5" stroke-linejoin="round"/%3E%3Cpath d="M20.4 8.4l5.3-3.7c.5-.3 1-.5 1.6-.5h8v4.2zM37 4.2h7.8c.8 0 1.5.3 2 .9l3.1 3.3H37z" fill="%2315233b"/%3E%3Cpath d="M0 9.5h4.5M1.5 13h3" stroke="%23f4c20d" stroke-width="1.6" stroke-linecap="round"/%3E%3Ccircle cx="17" cy="17" r="4.3" fill="%2315233b" stroke="%23f4c20d" stroke-width="1.3"/%3E%3Ccircle cx="46" cy="17" r="4.3" fill="%2315233b" stroke="%23f4c20d" stroke-width="1.3"/%3E%3Ccircle cx="17" cy="17" r="1.4" fill="%23f4c20d"/%3E%3Ccircle cx="46" cy="17" r="1.4" fill="%23f4c20d"/%3E%3C/svg%3E') no-repeat center / contain; flex: none; }
.nav { display: flex; align-items: center; gap: 10px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; }
.btn { display: inline-flex; align-items: center; justify-content: center; font: 600 16px/1 var(--body); padding: 14px 22px; border-radius: 8px; text-decoration: none; cursor: pointer; border: 2px solid var(--ink); }
.btn-plate { background: var(--plate); color: #15233b; }
.btn-plate:hover { filter: brightness(1.05); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--paper); }
.btn-sm { padding: 10px 16px; font-size: 15px; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; padding-block: 48px 80px; }
.hero h1 { font-family: var(--display); font-weight: 800; font-stretch: 118%; font-size: clamp(38px, 5.2vw, 64px); line-height: 0.98; letter-spacing: -0.025em; margin: 0 0 22px; text-wrap: balance; }
.hero > div > p { font-size: 19px; color: var(--ink-soft); max-width: 34em; margin: 0 0 30px; }
.hero > div > p.strap { font-size: clamp(19px, 1.9vw, 23px); line-height: 1.45; font-weight: 600; color: var(--ink); max-width: 30em; }
.strap mark { background: none; color: inherit; box-shadow: inset 0 -0.42em 0 color-mix(in srgb, var(--plate) 70%, transparent); }
.sell { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.sell span { font-size: 13px; font-weight: 600; color: var(--ink-soft); width: 100%; }
.sell button { flex: 1 1 0; font: 700 14px var(--body); padding: 9px 10px; border-radius: 8px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; }
.sell button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.sell-note { font-size: 13.5px; color: var(--ink-soft); margin: 8px 0 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* the lot ticket */
.ticket { background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 10px 10px 0 var(--ink); overflow: hidden; transform: rotate(-1.5deg); max-width: 440px; justify-self: end; width: 100%; }
.plate { display: flex; justify-content: center; align-items: center; background: var(--plate); color: #15233b; font-family: var(--display); font-weight: 800; font-stretch: 125%; font-size: 30px; letter-spacing: 0.06em; padding: 12px; border-bottom: 2px solid var(--ink); }
.ticket-body { padding: 18px 22px 20px; }
.car { font-family: var(--display); font-weight: 700; font-stretch: 105%; font-size: 22px; margin: 0 0 4px; }
.lotline { color: var(--ink-soft); font-size: 14px; margin: 0 0 14px; }
.rows { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; font-variant-numeric: tabular-nums; font-size: 15px; }
.rows dt { color: var(--ink-soft); }
.rows dd { margin: 0; text-align: right; font-weight: 600; }
.rows .total { border-top: 1px dashed var(--line); padding-top: 8px; }
.verdict { margin-top: 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--go) 12%, var(--paper)); border: 1px solid color-mix(in srgb, var(--go) 40%, transparent); }
.verdict strong { color: var(--go); font-size: 15px; }
.verdict span { font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--go); font-variant-numeric: tabular-nums; }
.ticket-note { font-size: 12.5px; color: var(--ink-soft); margin: 10px 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .ticket { animation: drop 700ms cubic-bezier(.2,.8,.2,1) both; }
  @keyframes drop { from { transform: translateY(-18px) rotate(-5deg); opacity: 0; } to { transform: rotate(-1.5deg); opacity: 1; } }
}

/* sections */
section.band { padding-block: 72px; border-top: 1px solid var(--line); }
.band h2 { font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 14px; max-width: 22em; text-wrap: balance; }
.band .lead { color: var(--ink-soft); max-width: 40em; margin: 0 0 36px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 3px solid var(--ink); padding-top: 14px; }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; display: block; margin-bottom: 10px; }
.steps h3, .who h3 { font-size: 18px; margin: 0 0 6px; }
.steps p, .who p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.see { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.see ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 28px; }
.see li { break-inside: avoid; padding: 8px 0 8px 18px; border-bottom: 1px solid var(--line); position: relative; font-size: 16px; }
.see li::before { content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 8px; background: var(--plate); border: 1.5px solid var(--ink); border-radius: 2px; }
.sources { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.sources span { border: 1.5px solid var(--ink); border-radius: 6px; padding: 6px 12px; font-weight: 600; font-size: 15px; background: var(--paper); }
.closing { background: var(--ink); color: var(--ground); border-radius: 18px; padding: 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.closing h2 { color: inherit; margin: 0; }
.closing p { color: color-mix(in srgb, var(--ground) 75%, transparent); margin: 8px 0 0; max-width: 34em; }
.closing .btn-plate { border-color: var(--plate); }
footer.foot { padding-block: 36px 48px; color: var(--ink-soft); font-size: 15px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer.foot nav { display: flex; gap: 20px; }

/* forms */
.formpage { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; padding-block: 40px 80px; align-items: start; }
.formpage h1 { font-family: var(--display); font-weight: 800; font-stretch: 115%; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance; }
.formpage .intro p { color: var(--ink-soft); }
form.card { background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f.full { grid-column: 1 / -1; }
.f label { font-weight: 600; font-size: 15px; }
.f .opt { font-weight: 400; color: var(--ink-soft); }
.f input, .f select, .f textarea { font: inherit; font-size: 16px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--ground); color: var(--ink); width: 100%; }
.f textarea { min-height: 120px; resize: vertical; }
.f input:user-invalid, .f select:user-invalid, .f textarea:user-invalid { border-color: var(--stop); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.form-msg { font-size: 15px; }
.form-msg.err { color: var(--stop); }
.done { grid-column: 1 / -1; }
.done h2 { font-family: var(--display); font-weight: 800; font-size: 28px; margin: 0 0 8px; }

@media (max-width: 900px) {
  .hero, .see, .formpage { grid-template-columns: 1fr; gap: 40px; }
  .ticket { justify-self: start; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .who { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .see ul { columns: 1; }
  form.card { grid-template-columns: 1fr; padding: 20px; }
  .closing { padding: 28px; }
  .nav .hide-sm { display: none; }
}

/* product screenshots */
.shot { margin: 0; background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; box-shadow: 8px 8px 0 color-mix(in srgb, var(--ink) 85%, transparent); }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 2px solid var(--ink); background: var(--ground); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); display: block; }
.shot-bar span { margin-left: 10px; font-size: 13px; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 2px 10px; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 10px 14px; font-size: 14px; color: var(--ink-soft); border-top: 1px solid var(--line); }
.showcase { padding-block: 8px 72px; }

/* benefits */
.benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.benefit { background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 22px 24px; }
.benefit h3 { font-family: var(--display); font-weight: 800; font-stretch: 108%; font-size: 21px; margin: 0 0 6px; }
.benefit p { margin: 0; color: var(--ink-soft); }

/* feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px; align-items: center; padding-block: 36px; }
.feature + .feature { border-top: 1px dashed var(--line); }
.feature.flip > :first-child { order: 2; }
.feature h3 { font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.1; margin: 0 0 10px; text-wrap: balance; }
.feature p { color: var(--ink-soft); margin: 0 0 12px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2.5px solid var(--go); border-bottom: 2.5px solid var(--go); transform: rotate(-45deg); }

/* who + faq */
.who4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.who4 div { border-top: 3px solid var(--plate); padding-top: 14px; }
.who4 h3 { font-size: 18px; margin: 0 0 6px; }
.who4 p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.faq { max-width: 820px; display: grid; gap: 10px; }
.faq details { background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; position: relative; padding-left: 26px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; position: absolute; left: 2px; top: 8px; width: 8px; height: 8px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg); transition: transform .15s; }
.faq details[open] summary::before { transform: rotate(45deg); top: 5px; }
.faq details > *:not(summary) { padding-left: 26px; }
.faq details { padding: 16px 22px; }
.faq details[open] summary { margin-bottom: 8px; }
.faq p { margin: 0; color: var(--ink-soft); }
.hero-note { font-size: 15px; color: var(--ink-soft); margin-top: 18px !important; }

@media (max-width: 900px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 24px; }
  .feature.flip > :first-child { order: 0; }
  .who4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .benefits, .who4 { grid-template-columns: 1fr; }
  .shot-bar span { display: none; }
}
.hero > * { min-width: 0; }
.ticket { margin: 0; }
@media (max-width: 560px) {
  .ticket { transform: none; animation: none; box-shadow: 6px 6px 0 var(--ink); max-width: calc(100% - 6px); }
  .plate { font-size: 24px; }
  .verdict { flex-wrap: wrap; }
  .verdict span { font-size: 26px; }
}

/* sample-data mocks (replace screenshots) */
.sample-tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-soft); background: var(--ground); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.mock { background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; box-shadow: 8px 8px 0 color-mix(in srgb, var(--ink) 85%, transparent); }
.mock-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 2px solid var(--ink); background: var(--ground); }
.mock-bar strong { font-size: 14px; }
.mock-scroll { overflow-x: auto; }
.mock table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.mock th { text-align: left; font-weight: 600; color: var(--ink-soft); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 13px; }
.mock td { padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mock tr:last-child td { border-bottom: 0; }
.mock .r { text-align: right; }
.mock .car { font-weight: 600; }
.mock .pos { color: var(--go); font-weight: 700; }
.mock .neg { color: var(--stop); font-weight: 700; }
.rg { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.rg::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.rg.g { color: var(--go); } .rg.a { color: #c27c0e; } .rg.r { color: var(--stop); }
.src { border: 1px solid var(--line); border-radius: 5px; padding: 1px 7px; font-size: 12px; font-weight: 600; }
.risk { border: 1.5px solid; border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 600; }
.risk.l { color: var(--go); } .risk.m { color: #c27c0e; } .risk.h { color: var(--stop); }
.mock-cap { padding: 10px 16px; font-size: 14px; color: var(--ink-soft); border-top: 1px solid var(--line); margin: 0; }
.work { padding: 20px 22px; display: grid; gap: 14px; }
.work h4 { margin: 0 0 4px; font-size: 15px; }
.work p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.work .sum { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; font-variant-numeric: tabular-nums; font-size: 15px; }
.work .sum dd { margin: 0; text-align: right; font-weight: 600; }
.work .sum .t { border-top: 1px dashed var(--line); padding-top: 6px; font-weight: 700; }
.mrules { padding: 20px 22px; }
.mtabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.mtab { border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14px; }
.mtab.on { background: var(--ink); color: var(--paper); }
.mtab.add { border-style: dashed; color: var(--ink-soft); border-color: var(--ink-soft); }
.mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mcell { background: var(--ground); border-radius: 10px; padding: 10px 14px; }
.mcell small { display: block; color: var(--ink-soft); font-size: 12.5px; margin-bottom: 4px; }
.mcell b { font-family: var(--display); font-size: 17px; }
.mcell.full { grid-column: 1 / -1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); }
.chip.on { background: var(--plate); border-color: var(--ink); color: #15233b; }
.msearch { padding: 22px; display: grid; gap: 14px; }
.msearch .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.msearch .go { background: var(--go); color: #fff; border-radius: 8px; padding: 10px 18px; font-weight: 600; display: inline-block; }
.mtiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mtiles div { background: var(--ground); border-radius: 10px; padding: 12px 14px; }
.mtiles small { color: var(--ink-soft); font-size: 13px; display: block; }
.mtiles b { font-family: var(--display); font-size: 26px; }
.cap input { max-width: 200px; }
@media (max-width: 560px) { .mgrid, .mtiles { grid-template-columns: 1fr; } .mock .hs { display: none; } }
.mock td.car { font: 600 14px/1.4 var(--body); font-stretch: normal; }
.mock th, .mock td { padding-inline: 10px; }
@media (max-width: 560px) { .mock td.car { white-space: normal; min-width: 130px; } }
/* write-off categories table */
.cattable { border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--paper); }
.cattable table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.cattable thead th { background: var(--ink); color: var(--paper); text-align: left; font-weight: 600; font-size: 14px; padding: 12px 16px; }
.cattable tbody th { text-align: left; font-family: var(--display); font-weight: 800; font-stretch: 108%; font-size: 17px; white-space: nowrap; padding: 14px 16px; vertical-align: top; }
.cattable td { padding: 14px 16px; vertical-align: top; color: var(--ink-soft); }
.cattable tbody tr + tr > * { border-top: 1px solid var(--line); }
.cattable tbody tr:nth-child(even) { background: color-mix(in srgb, var(--ground) 60%, var(--paper)); }
.cattable td:nth-child(3) { color: var(--ink); font-weight: 600; }
.catnote { color: var(--ink-soft); font-size: 14px; margin: 12px 0 0; }
.mock .tp, .mock .pp { font-weight: 600; }
.mock th.tp, .mock th.pp { color: var(--ink); }
@media (max-width: 760px) {
  .cattable thead { display: none; }
  .cattable tbody tr { display: block; padding: 14px 16px; }
  .cattable tbody th, .cattable td { display: block; padding: 2px 0; border: 0 !important; }
  .cattable tbody th { font-size: 19px; margin-bottom: 4px; }
  .cattable td::before { content: attr(data-l) ": "; font-weight: 600; color: var(--ink); }
}
@media (max-width: 560px) {
  .mock .rg { font-size: 0; gap: 0; } .mock .rg::before { width: 11px; height: 11px; }
  .mock table { font-size: 13px; } .mock th { font-size: 12px; } .mock th, .mock td { padding: 9px 6px; }
  .mock td.car { min-width: 108px; font-size: 13px; }
}
