/* ==========================================================================
   NOVE Funding design system  ·  v2
   Typography: Poppins (headings) + Lexend (body), self-hosted in ../fonts.
   Palette: white ground, soft-grey bands, near-black type, brand red,
   highlighter yellow for the primary action, teal for positive states.
   Every class name from v1 is preserved so all templates keep working.
   ========================================================================== */

@import url("fonts.css");

:root {
  /* ground */
  --background: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f6f6;
  --surface-3: #efefef;
  --surface-soft: #f8f9f9;
  --ink: #191919;

  /* lines */
  --border: #e6e8eb;
  --border-bright: #d5d7da;

  /* type */
  --text: #191919;
  --muted: #707070;
  --muted-dim: #a8afb9;

  /* brand */
  --brand: #ec1c24;
  --brand-deep: #d50911;
  --brand-soft: #ffebec;
  --accent: var(--brand);
  --accent-dim: var(--brand-deep);
  --accent-ink: #ffffff;
  --yellow: #efff04;
  --yellow-deep: #d9e800;
  --teal: #00f0b5;
  --teal-deep: #02c394;
  --orange: #ffbd00;

  /* semantic */
  --danger: #d50911;
  --danger-bg: #ffebec;
  --warning: #9a6b00;
  --warning-bg: #fff6d6;
  --success: #02866a;
  --success-bg: #edfffb;

  /* shape */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --pill: 999px;
  --maxw: 1240px;

  /* depth */
  --shadow-xs: 0 1px 2px rgba(25, 25, 25, .06);
  --shadow: 0 5px 7.2px rgba(25, 25, 25, .10), inset 1px 1px rgba(255, 255, 255, .9);
  --shadow-lg: 0 24px 48px -16px rgba(25, 25, 25, .22), 0 4px 10px rgba(25, 25, 25, .06);

  /* type stacks */
  --font-head: "Poppins", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --font: "Lexend", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --mono: "Lexend", "Segoe UI", -apple-system, sans-serif;

  /* motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .3s;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; transition: color .15s; }
p a, .small a, .tiny a { color: var(--brand); }
p a:hover, .small a:hover, .tiny a:hover { color: var(--brand-deep); }
img, svg, video { max-width: 100%; display: block; }
::selection { background: var(--yellow); color: var(--ink); }

h1, h2, h3, h4 {
  margin: 0 0 .6rem;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); line-height: 1.06; letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.12; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1rem; }
strong { font-weight: 600; }

/* the highlighter: one phrase in a headline sits on a yellow marker stroke */
mark, .mark {
  background: var(--yellow);
  color: var(--ink);
  padding: 0 .18em;
  margin: 0 -.04em;
  line-height: 1.15;
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero mark {
  background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 0 / 0% 100%;
  animation: mark-sweep .9s var(--ease) .35s forwards;
}
@keyframes mark-sweep { to { background-size: 100% 100%; } }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* ---------- typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head);
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand); font-weight: 600; margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--brand); border-radius: 2px; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 60ch; line-height: 1.7; font-weight: 300; }
.muted { color: var(--muted); }
.dim { color: var(--muted-dim); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .01em; font-weight: 500; }
.accent { color: var(--brand); }
/* positive money figures read as gains, not alerts */
td.accent, .mono.accent, .stat .v.accent, strong.accent { color: var(--success); }
.tiny { font-size: .78rem; }
.small { font-size: .88rem; }
.center { text-align: center; }
.center .lede, .center .eyebrow { margin-left: auto; margin-right: auto; }
.nowrap { white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 8px 24px -12px rgba(25, 25, 25, .18); }
.topbar-util {
  background: var(--surface-2);
  font-size: .74rem; color: var(--muted);
  max-height: 32px; overflow: hidden;
  transition: max-height .25s var(--ease), opacity .2s;
}
.site-header.scrolled .topbar-util { max-height: 0; opacity: 0; }
.topbar-util .container { display: flex; justify-content: flex-end; align-items: center; gap: .7rem; height: 32px; }
.topbar-util a:hover { color: var(--ink); }
.topbar-util .sep { color: var(--border-bright); }
.topbar-util .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-deep); display: inline-block; margin-right: .4rem; box-shadow: 0 0 0 3px rgba(2, 195, 148, .18); }

.nav {
  display: flex; align-items: center; gap: 2rem;
  height: 74px; max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
}
.brand {
  font-family: var(--font-head); font-weight: 800; font-size: 1.32rem; letter-spacing: -.04em;
  display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); line-height: 1;
}
.brand small { font-family: var(--font); font-weight: 400; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-left: .35rem; vertical-align: middle; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; flex: 0 0 32px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-head); font-size: .95rem; font-weight: 800;
  box-shadow: 0 6px 14px -6px rgba(236, 28, 36, .7);
}
.brand-mark svg { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 1.7rem; margin-left: .4rem; }
.nav-links a {
  position: relative; color: var(--ink); font-size: .92rem; font-weight: 500;
  padding: .3rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--brand); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.nav-toggle {
  display: none; background: #fff; border: 1px solid var(--border-bright);
  color: var(--ink); border-radius: 10px; width: 42px; height: 42px; cursor: pointer;
  font-size: 1.1rem; line-height: 1;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .74rem 1.55rem; border-radius: var(--pill); border: 1px solid transparent;
  font: inherit; font-size: .92rem; font-weight: 500; cursor: pointer;
  transition: background var(--dur), border-color var(--dur), color var(--dur),
              transform .15s var(--ease), box-shadow var(--dur);
  white-space: nowrap; user-select: none; line-height: 1.25;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 1.05em; height: 1.05em; flex: 0 0 auto; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { background: var(--yellow); border-color: var(--yellow); color: var(--ink); font-weight: 600; box-shadow: 0 10px 22px -12px rgba(25, 25, 25, .45); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-quiet { color: var(--ink); background: transparent; }
.btn-quiet:hover { background: var(--surface-2); }
.btn-danger { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-danger:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn-red { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-red:hover { background: var(--brand-deep); }
.btn-white { background: #fff; border-color: #fff; color: var(--ink); }
.btn-white:hover { background: var(--yellow); border-color: var(--yellow); }
.btn-lg { padding: .95rem 2.1rem; font-size: 1.02rem; }
.btn-sm { padding: .5rem 1.05rem; font-size: .83rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }

/* ---------- surfaces ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}
.card-tight { padding: 1.1rem 1.2rem; }
.card-hover { transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-bright); }
a.card { display: block; color: inherit; }

.panel {
  background: var(--surface-2); border: 1px solid transparent;
  border-radius: var(--radius); padding: 1.15rem 1.25rem;
}
.panel h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.section-soft .panel, .section-alt .panel, .content .panel { background: #fff; border-color: var(--border); }

/* ---------- layout ---------- */
.section { padding: 6rem 0; position: relative; }
.section-sm { padding: 3.2rem 0; }
.section-soft, .section-alt { background: var(--surface-2); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lede, .section-dark .muted { color: rgba(255, 255, 255, .68); }
.section-dark .dim { color: rgba(255, 255, 255, .45); }
.section-dark .panel { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); }
.section-head { margin-bottom: 2.6rem; max-width: 760px; }
.section-head h2 { margin-bottom: .8rem; }
.section-head.center { margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: 1.2rem; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.row { display: flex; gap: 1rem; align-items: center; }
.row-between { display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: .75rem; }

/* ---------- hero ---------- */
.hero { padding: 5.5rem 0 4.5rem; position: relative; overflow: hidden; background: #fff; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 420px at 85% 20%, rgba(239, 255, 4, .45), transparent 65%),
    radial-gradient(520px 380px at 100% 90%, rgba(236, 28, 36, .10), transparent 65%),
    radial-gradient(420px 300px at 10% 100%, rgba(0, 240, 181, .14), transparent 65%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    linear-gradient(rgba(25, 25, 25, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 25, 25, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 100%);
          mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 4rem;
  align-items: center; position: relative; z-index: 1;
}
.hero h1 { margin-bottom: 1.3rem; text-transform: uppercase; }
.hero h1 .line2 { display: block; }
.hero .lede { font-size: 1.22rem; }
.hero-cta { display: flex; gap: .8rem; margin: 2rem 0 1.4rem; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 1.2rem 2rem; flex-wrap: wrap; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.hero-proof div { font-size: .8rem; color: var(--muted); }
.hero-proof strong { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--ink); letter-spacing: -.02em; font-weight: 700; }

/* preview card on the right of the hero */
.hero-visual { position: relative; }
.hero-visual .card { box-shadow: var(--shadow-lg); border-color: transparent; padding: 1.7rem; animation: float-in .9s var(--ease) both; }
.hero-visual .balance { font-family: var(--font-head); font-size: 2rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; margin-top: .3rem; }
.hero-chip {
  position: absolute; background: #fff; border-radius: 14px; padding: .65rem .9rem;
  box-shadow: var(--shadow-lg); font-size: .78rem; display: flex; align-items: center; gap: .6rem;
  border: 1px solid var(--border); color: var(--muted); z-index: 2;
  animation: float-in .9s var(--ease) .5s both, bob 6s ease-in-out 1.4s infinite;
}
.hero-chip strong { display: block; font-family: var(--font-head); font-size: .9rem; color: var(--ink); }
.hero-chip .ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--success-bg); color: var(--success); }
.hero-chip .ico svg { width: 16px; height: 16px; }
.hero-chip.tl { top: -26px; left: 56%; }
.hero-chip.br { bottom: -18px; right: -22px; animation-delay: .7s, 2s; }
.hero-chip.br .ico { background: var(--yellow); color: var(--ink); }
@keyframes float-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.spark { width: 100%; height: 92px; margin: .9rem 0 .4rem; }
.spark .line { fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.2s var(--ease) .6s forwards; }
.spark .area { fill: url(#sparkFill); opacity: 0; animation: fade .8s ease 2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- trust bar / ticker ---------- */
.trust-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; overflow: hidden; }
.trust-items { display: flex; gap: 0; padding: 0; width: max-content; animation: ticker 38s linear infinite; }
.trust-bar:hover .trust-items { animation-play-state: paused; }
.trust-item {
  font-family: var(--font-head);
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); font-weight: 600; padding: 1.05rem 0 1.05rem 2.4rem; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 2.4rem;
}
.trust-item::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- numbers ---------- */
.numbers-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.numbers {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 2.5rem;
  background: #fff; border-radius: var(--radius-lg); padding: 2.6rem 2.8rem; box-shadow: var(--shadow);
}
.number { border-left: 4px solid var(--brand); padding: .3rem 0 .3rem 1.3rem; }
.number .n { font-family: var(--font-head); font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.number .l { margin-top: .5rem; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.number .l strong { display: block; color: var(--ink); font-weight: 600; }

/* ---------- programme card ---------- */
.prog-card { display: flex; flex-direction: column; height: 100%; position: relative; padding: 1.75rem; }
.prog-card.featured { border: 2px solid var(--brand); box-shadow: 0 24px 40px -24px rgba(236, 28, 36, .45); }
.prog-card h3 { font-size: 1.32rem; }
.badge {
  display: inline-block; padding: .3rem .75rem; border-radius: var(--pill);
  font-family: var(--font-head);
  font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 600; background: var(--surface-2); color: var(--ink);
  border: 1px solid var(--border);
}
.badge-accent { background: var(--brand); color: #fff; border-color: var(--brand); }
.badge-soon { background: var(--warning-bg); color: var(--warning); border-color: transparent; }

.spec-list { list-style: none; padding: 0; margin: 1.1rem 0; }
.spec-list li {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: .55rem 0; border-bottom: 1px solid var(--border); font-size: .9rem;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list .k { color: var(--muted); }
.spec-list .v { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.spec-list .v.accent { color: var(--brand); }
/* positive money figures read as gains, not alerts */
td.accent, .mono.accent, .stat .v.accent, strong.accent { color: var(--success); }

.price-row { display: flex; align-items: baseline; gap: .45rem; margin-top: auto; padding-top: 1rem; }
.price { font-family: var(--font-head); font-size: 2rem; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }

/* ---------- split payment callout (NOVE Flex) ---------- */
.split-pay {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin: 1rem 0;
}
.split-pay > div { background: var(--surface-2); padding: .9rem .6rem; text-align: center; }
.split-pay .lbl { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; font-weight: 500; }
.split-pay .amt { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.split-pay .total { background: #fff; }
.split-pay .total .amt { color: var(--brand); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .89rem; min-width: 560px; }
table.data th, table.data td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
table.data th {
  background: var(--surface-2); font-family: var(--font-head); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); font-weight: 600; position: sticky; top: 0;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background .15s; }
table.data tbody tr:hover { background: var(--surface-soft); }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tfoot th { background: var(--surface-2); font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: .89rem; color: var(--ink); }

/* ---------- progress + meters ---------- */
.meter { margin-bottom: 1.15rem; }
.meter-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .45rem; font-size: .85rem; }
.meter-head .lbl { color: var(--muted); }
.meter-head .val { font-weight: 600; font-variant-numeric: tabular-nums; }
.meter-track { height: 8px; background: var(--surface-3); border-radius: var(--pill); overflow: hidden; }
.meter-fill { height: 100%; border-radius: var(--pill); background: var(--brand); transition: width .9s var(--ease); }
.meter-fill.safe { background: var(--teal-deep); }
.meter-fill.attention { background: var(--orange); }
.meter-fill.danger { background: var(--brand-deep); }

/* ---------- status pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .7rem; border-radius: var(--pill);
  font-size: .72rem; font-weight: 600; border: 1px solid transparent; white-space: nowrap; line-height: 1.3;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.pill-success { background: var(--success-bg); color: var(--success); }
.pill-warning { background: var(--warning-bg); color: var(--warning); }
.pill-danger  { background: var(--danger-bg);  color: var(--danger); }
.pill-neutral { background: var(--surface-3); color: var(--muted); }

/* ---------- forms ---------- */
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: .82rem; font-weight: 500; margin-bottom: .4rem; color: var(--ink); }
.input, select.input, textarea.input {
  width: 100%; padding: .78rem 1rem; font: inherit; font-size: .93rem;
  background: #fff; border: 1px solid var(--border-bright);
  border-radius: 12px; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
select.input { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23191919' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(25, 25, 25, .08); }
.input::placeholder { color: var(--muted-dim); }
.input[disabled] { background: var(--surface-2); color: var(--muted); }
.input[type="file"] { padding: .6rem .8rem; }
.field-error { color: var(--danger); font-size: .8rem; margin-top: .3rem; }
.hp { position: absolute !important; left: -9999px !important; }

.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .88rem; cursor: pointer; }
.check input { margin-top: .28rem; accent-color: var(--brand); width: 16px; height: 16px; }
input[type="checkbox"] { accent-color: var(--brand); }

/* ---------- flashes ---------- */
.flashes { list-style: none; padding: 0; margin: 1.1rem 0; }
.flash { padding: .8rem 1.1rem; border-radius: 12px; margin-bottom: .5rem; font-size: .9rem; border: 1px solid transparent; }
.flash-success { background: var(--success-bg); color: var(--success); }
.flash-error   { background: var(--danger-bg);  color: var(--danger); }
.flash-warning { background: var(--warning-bg); color: var(--warning); }
.flash-info    { background: var(--surface-2);  color: var(--muted); border-color: var(--border); }
.flash a { color: inherit; text-decoration: underline; }

/* ---------- empty states ---------- */
.empty {
  text-align: center; padding: 3rem 1.5rem; color: var(--muted);
  border: 1px dashed var(--border-bright); border-radius: var(--radius-lg); background: #fff;
}
.empty h3 { color: var(--ink); }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.2rem; }
.step { display: flex; gap: 1.2rem; align-items: flex-start; }
.step-num {
  counter-increment: step; flex: 0 0 48px; height: 48px;
  border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 10px 18px -10px rgba(236, 28, 36, .8);
}
.step-num::before { content: counter(step); }
.step h3 { margin-bottom: .25rem; }
.step-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: step; }
.step-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem 1.4rem; position: relative; counter-increment: step; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-card::before { content: counter(step); font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; color: var(--brand); line-height: 1; display: block; margin-bottom: .9rem; letter-spacing: -.04em; }
.step-card h3 { font-size: 1.02rem; }
.step-card p { margin: 0; }

/* ---------- journey ---------- */
.journey { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.journey-node {
  padding: .55rem 1rem; border: 1px solid var(--ink); border-radius: var(--pill);
  font-family: var(--font-head); font-size: .74rem; font-weight: 600; letter-spacing: .1em; background: #fff;
}
.journey-arrow { color: var(--muted-dim); }

/* ---------- feature tiles ---------- */
.feature { display: flex; flex-direction: column; gap: .4rem; }
.feature .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: .5rem; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.feature p { margin: 0; }

/* ---------- FAQ ---------- */
details.panel { padding: 0; overflow: hidden; }
details.panel summary { list-style: none; cursor: pointer; padding: 1.05rem 1.25rem; font-weight: 500; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
details.panel summary::-webkit-details-marker { display: none; }
details.panel summary::after { content: "+"; font-family: var(--font-head); font-size: 1.3rem; color: var(--brand); transition: transform .25s var(--ease); line-height: 1; }
details.panel[open] summary::after { transform: rotate(45deg); }
details.panel > p { padding: 0 1.25rem 1.1rem; margin: 0 !important; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface-2); padding: 4rem 0 2rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 2.4rem; }
.footer-col h4 { font-family: var(--font-head); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: .9rem; }
.footer-col a { display: block; color: var(--muted); font-size: .88rem; padding: .24rem 0; }
.footer-col a:hover { color: var(--brand); }
.footer-col a.brand { display: inline-flex; padding: 0; color: var(--ink); }
.nav-links .mobile-only { display: none; }
.footer-tag { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; margin: 1.1rem 0 .4rem; color: var(--ink); }
.footer-reach { margin-top: 1.4rem; font-size: .85rem; color: var(--muted); }
.footer-reach strong { color: var(--ink); display: block; font-weight: 600; margin-bottom: .2rem; }
.footer-reach a { color: var(--brand); }
.risk-disclosure { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--border-bright); font-size: .78rem; color: var(--muted); line-height: 1.75; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; font-size: .78rem; color: var(--muted); }

/* ---------- banner ---------- */
.site-banner { background: var(--ink); color: #fff; padding: .6rem 0; font-size: .85rem; text-align: center; }

/* ---------- dashboard shell ---------- */
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; background: var(--surface-2); }
.sidebar {
  background: #fff; border-right: 1px solid var(--border);
  padding: 1.3rem 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar .brand { padding: 0 1.4rem 1.4rem; }
.side-nav { display: flex; flex-direction: column; gap: .15rem; padding: 0 .8rem; }
.side-nav a {
  padding: .6rem .85rem; border-radius: 10px; font-size: .9rem; font-weight: 500;
  color: var(--muted); display: flex; align-items: center; gap: .6rem; position: relative;
  transition: background .15s, color .15s;
}
.side-nav a:hover { background: var(--surface-2); color: var(--ink); }
.side-nav a.active { background: var(--brand-soft); color: var(--brand); }
.side-nav a.active::before { content: ""; position: absolute; left: -.8rem; top: 22%; bottom: 22%; width: 3px; background: var(--brand); border-radius: 0 3px 3px 0; }
.side-group { font-family: var(--font-head); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dim); padding: 1.2rem .85rem .45rem; font-weight: 600; }
.main { min-width: 0; }
.topbar {
  height: 66px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 1rem; padding: 0 1.8rem;
  background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 20;
}
.topbar strong { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; }
.content { padding: 1.8rem 1.8rem 4rem; }
.content .card { border-color: transparent; box-shadow: var(--shadow); }
.content .card.card-hover:hover { box-shadow: var(--shadow-lg); }
.content h2 { font-size: 1.15rem; }

/* ---------- stat tiles ---------- */
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; border-left: 4px solid var(--brand); }
.content .stat { border-color: transparent; border-left-color: var(--brand); box-shadow: var(--shadow); }
.stat .k { font-family: var(--font-head); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; font-weight: 600; }
.stat .v { font-family: var(--font-head); font-size: 1.55rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat .sub { font-size: .78rem; color: var(--muted); margin-top: .3rem; }

/* ---------- scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal="left"] { transform: translateX(-24px); }
[data-reveal="right"] { transform: translateX(24px); }
[data-reveal].in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > :nth-child(2) { transition-delay: .08s; }
.stagger.in > :nth-child(3) { transition-delay: .16s; }
.stagger.in > :nth-child(4) { transition-delay: .24s; }
.stagger.in > :nth-child(5) { transition-delay: .32s; }
.stagger.in > :nth-child(6) { transition-delay: .40s; }
.stagger.in > .card-hover:hover, .stagger.in > .step-card:hover { transform: translateY(-4px); transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], .stagger > * { opacity: 1; transform: none; transition: none; }
  .trust-items, .hero-chip, .hero-visual .card, .spark .line, .spark .area, .hero mark { animation: none; }
  .spark .line { stroke-dashoffset: 0; }
  .spark .area { opacity: 1; }
  .hero mark { background-size: 100% 100%; }
}

/* ---------- auth / narrow forms ---------- */
.auth-wrap { max-width: 440px; margin: 0 auto; }
.auth-wrap .card { box-shadow: var(--shadow); border-color: transparent; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { max-width: 560px; }
  .numbers-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .step-cards { grid-template-columns: repeat(3, 1fr); }
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; width: 272px; height: 100vh; z-index: 100;
    transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
  .topbar .nav-toggle { display: inline-grid; place-items: center; }
}

@media (max-width: 780px) {
  body { font-size: 15px; }
  .nav { height: 66px; gap: 1rem; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--border); padding: .8rem 24px 1.2rem; gap: .1rem;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open a { padding: .7rem 0; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .nav-links.open a::after { display: none; }
  .nav-actions .btn-quiet, .nav-actions .btn-primary { display: none; }
  .nav-links.open .mobile-only { display: flex; align-items: center; justify-content: center; margin-top: .9rem; border: 0; padding: .8rem 1.2rem; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .section { padding: 3.6rem 0; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero-chip.tl { left: auto; right: 0; top: -18px; }
  .hero-chip.br { right: 0; }
  .numbers { grid-template-columns: 1fr; padding: 1.8rem; gap: 1.4rem; }
  .step-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .split-pay { grid-template-columns: 1fr; }
  .topbar-util .hide-m { display: none; }
  .prog-card { padding: 1.4rem; }
}

@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .card { padding: 1.2rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .hero::before, .hero::after { display: none; }
  body { background: #fff; }
}
