/* ==========================================================================
   Mickles — marketing website
   Plain CSS, no build step. Fonts, colours and shapes match the Mickles app (v2):
   one typeface throughout (IBM Plex Sans), warm paper, navy and blue,
   a gold accent, hairlines instead of heavy shadows, and no gradients.
   ========================================================================== */

:root {
  /* Brand (same values as the app theme) */
  --blue: #2A4E8F;        /* primary: buttons, links */
  --blue-bright: #3A5FA6;
  --blue-deep: #1F3D73;   /* statement panels */
  --navy: #0b2a5b;        /* sidebar, dark bands */
  --blue-50: #EEF2F9;
  --blue-100: #DCE4F2;
  --blue-200: #B9C8E4;
  --gold: #f2c14e;        /* accent on navy */
  --brass: #b8873a;       /* accent on paper */

  /* Ink and paper */
  --ink: #1a1915;
  --ink-2: #3d3a33;
  --muted: #6b675d;
  --paper: #f6f4ef;
  --paper-50: #fbfaf7;
  --paper-200: #efece4;
  --paper-300: #e3dfd4;
  --white: #ffffff;
  --line: var(--paper-200);
  --line-strong: var(--paper-300);

  /* Meaning */
  --ok: #23744b;
  --ok-soft: #e4f0e9;
  --warn: #b26b12;
  --warn-soft: #f6ead8;
  --bad: #b23a2e;
  --bad-soft: #f6e3e0;

  /* Chart colours, in the app's order */
  --c1: #2A4E8F; --c2: #b8873a; --c3: #2f8a87; --c4: #b4533c; --c5: #6d5a8c;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 0 0 1px var(--line);
  --shadow-md: 0 0 0 1px var(--line), 0 10px 30px -14px rgba(26, 25, 21, .18);
  --shadow-lg: 0 0 0 1px var(--line), 0 24px 56px -28px rgba(26, 25, 21, .28);

  --container: 1180px;
  --header-h: 68px;
  --font: "IBM Plex Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --font-display: var(--font); /* same family everywhere, as in the app */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; color: var(--ink); }
h1, h2 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em;
}
h3, h4 { font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
::selection { background: var(--blue-100); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

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

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* Money and big figures: semibold, tabular, like the app */
.mock-big, .float-credit b, .alloc-head b, .cc b, .sip-result .total dd, .fuel-stats b, .step-num {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: 999px;
  font: 550 15px/1 var(--font); letter-spacing: -0.005em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.btn:hover svg { transform: translateX(2px); }
.btn-lg { height: 50px; padding: 0 26px; font-size: 16px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: #cfc9bb; }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(26, 25, 21, .05); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--blue-50); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(246, 244, 239, .88);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line-strong); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--ink); letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; width: 30px; height: 30px; }
.main-nav { display: flex; gap: 2px; margin-left: 12px; }
.main-nav a { color: var(--ink-2); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.main-nav a:hover { background: rgba(26, 25, 21, .05); color: var(--ink); text-decoration: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px;
}
.eyebrow.light { color: rgba(244, 241, 232, .6); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
/* Kept for older markup: an italic accent, not a gradient */
.text-gradient, .accent { font-style: italic; color: var(--blue); }
.chip-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.chip-pill.ok { background: var(--ok-soft); color: var(--ok); }
.chip-pill.warn { background: var(--warn-soft); color: var(--warn); }
.chip-pill.bad { background: var(--bad-soft); color: var(--bad); }

.section { padding: 104px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2, .split-copy h2, .install-copy h2, .cta h2 { font-size: clamp(32px, 4vw, 46px); }
.section-head p:last-child { margin-top: 16px; color: var(--muted); font-size: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 0 104px; overflow: hidden; }
.hero-glow { display: none; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(42px, 5.6vw, 68px); letter-spacing: -0.03em; line-height: 1.04; }
.lead { margin-top: 24px; font-size: 19px; color: var(--ink-2); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-cta.center { justify-content: center; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 14px; font-weight: 500; }
.hero-points li { display: flex; align-items: center; gap: 6px; }
.hero-points svg { width: 16px; height: 16px; fill: none; stroke: var(--ok); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Product mock-up: drawn like the real app (navy sidebar, paper page, serif figures) */
.hero-visual { position: relative; padding: 28px 0 64px; }
.mock-window { background: var(--white); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-bar { height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: var(--paper-50); border-bottom: 1px solid var(--line); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--paper-300); }
.mock-body { display: grid; grid-template-columns: 150px 1fr; min-height: 330px; }
.mock-side { background: var(--navy); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: rgba(244, 241, 232, .66); }
.mock-logo { display: flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 600; color: #f4f1e8; font-size: 15px; margin: 2px 4px 14px; }
.mock-logo img { width: 20px; height: 20px; border-radius: 6px; }
.mock-side span { position: relative; padding: 7px 10px; border-radius: 8px; }
.mock-side span.active { background: rgba(244, 241, 232, .1); color: #f4f1e8; font-weight: 600; }
.mock-side span.active::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.mock-main { padding: 22px 24px; background: var(--paper); }
.mock-title { font-size: 13px; color: var(--muted); font-weight: 500; }
.mock-big { font-size: 34px; margin-top: 2px; color: var(--ink); }
.mock-up { font-size: 13px; color: var(--ok); font-weight: 600; }
.mock-chart { height: 96px; margin: 14px -4px 16px; }
.mock-chart svg { width: 100%; height: 100%; }
.mock-chart .area { fill: var(--blue-100); fill-opacity: .75; }
.mock-chart .line { stroke: var(--blue); stroke-width: 2.4; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.8s .3s ease forwards; }
.mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--white); border-radius: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.mock-tiles div { padding: 10px 12px; }
.mock-tiles div + div { border-left: 1px solid var(--line); }
.mock-tiles small { display: block; font-size: 11px; color: var(--muted); }
.mock-tiles b { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.mock-tiles b.neg { color: var(--bad); }

.float-card {
  position: absolute; background: var(--white); border-radius: 14px; box-shadow: var(--shadow-md);
  padding: 14px 16px;
}
.float-credit { right: -24px; bottom: 0; width: 220px; }
.float-credit .fc-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); gap: 8px; }
.float-credit b { display: block; font-size: 24px; margin: 6px 0 8px; }
.float-credit small { font-size: 11.5px; color: var(--muted); }
.bar { height: 6px; border-radius: 6px; background: var(--paper-100, #f6f4ef); overflow: hidden; margin-bottom: 6px; }
.bar i { display: block; height: 100%; border-radius: 6px; background: var(--blue); }
.float-gold { left: -32px; top: -10px; display: flex; align-items: center; gap: 12px; }
.float-gold small { display: block; font-size: 11.5px; color: var(--muted); }
.float-gold b { font-size: 15px; }
.gold-dot { width: 32px; height: 32px; border-radius: 10px; background: #f6ead8; position: relative; }
.gold-dot::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--brass); }

/* ---------- Coverage strip ---------- */
.strip { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: var(--paper-50); }
.strip-inner { display: flex; align-items: center; gap: 20px; padding-top: 20px; padding-bottom: 20px; }
.strip-inner > span { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; white-space: nowrap; }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.strip li { font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 5px 12px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow-sm); }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.feature:hover { box-shadow: 0 0 0 1px var(--line-strong); }
.feature h3 { font-size: 18px; margin: 18px 0 8px; }
.feature p { color: var(--muted); font-size: 15.5px; }
.f-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.f-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* One family of soft tints, as in the app's icon tiles */
.f-icon.blue { background: var(--blue-50); color: var(--c1); }
.f-icon.teal { background: #e4f1f0; color: var(--c3); }
.f-icon.violet { background: #ece8f2; color: var(--c5); }
.f-icon.amber { background: #f5ecdc; color: var(--c2); }
.f-icon.rose { background: #f5e5e0; color: var(--c4); }
.f-icon.sky { background: #e6eef5; color: #3e6a8a; }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.reverse .split-copy { order: 2; }
.split-copy > p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 18px; }
.tick-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.tick-list li { position: relative; padding-left: 30px; color: var(--ink-2); font-weight: 500; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A4E8F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Segmented control, like the app's toggle groups */
.tabs { display: inline-flex; gap: 2px; padding: 3px; margin-top: 28px; background: var(--paper-200); border-radius: 999px; flex-wrap: wrap; }
.tabs button {
  border: 0; background: transparent; font: 550 14px var(--font); color: var(--muted);
  padding: 7px 16px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s;
}
.tabs button[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(26, 25, 21, .12); }
.tabs button:not([aria-selected="true"]):hover { color: var(--ink); }
.tab-panel .tick-list { margin-top: 20px; min-height: 120px; }

/* Allocation card */
.alloc-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 28px; }
.alloc-head { display: flex; justify-content: space-between; align-items: flex-start; }
.alloc-head small { color: var(--muted); font-size: 13px; }
.alloc-head b { display: block; font-size: 32px; }
.alloc-body { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; margin-top: 24px; }
.donut { position: relative; }
.donut svg { transform: rotate(-90deg) scaleY(-1); }
.donut span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 500; color: var(--muted); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-2); padding: 8px 0; border-bottom: 1px solid var(--line); }
.legend li:last-child { border-bottom: 0; }
.legend i { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.legend b { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Daily utilities: fuel efficiency mock-up */
#utilities .tick-list + .btn { margin-top: 28px; }
.fuel-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 26px; }
.fuel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fuel-vehicle { display: flex; align-items: center; gap: 12px; }
.fuel-vehicle b { display: block; font-size: 18px; letter-spacing: -0.01em; }
.fuel-vehicle small { color: var(--muted); font-size: 12.5px; letter-spacing: .04em; }
.fuel-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); flex-shrink: 0; }
.fuel-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fuel-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 22px; border-radius: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.fuel-stats div { padding: 12px 14px; }
.fuel-stats div + div { border-left: 1px solid var(--line); }
.fuel-stats small { display: block; color: var(--muted); font-size: 12px; }
.fuel-stats b { display: block; margin-top: 4px; font-size: 20px; }
.fuel-stats em { font-style: normal; font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--muted); }
.fuel-log { list-style: none; margin: 18px 0 0; padding: 0; display: grid; }
.fuel-log li { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 12px; padding: 11px 2px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fuel-log .km { background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: 12px; border-radius: 999px; padding: 3px 9px; }
@media (max-width: 560px) {
  .fuel-card { padding: 20px; }
  .fuel-stats { grid-template-columns: 1fr 1fr; }
  .fuel-stats div:nth-child(3) { border-left: 0; }
  .fuel-stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .fuel-log li { grid-template-columns: 52px 1fr auto; gap: 8px; font-size: 13px; }
}

/* Credit card stack: solid card faces, no gloss */
.cc-stack { position: relative; height: 380px; max-width: 460px; margin: 0 auto; }
.cc {
  position: absolute; width: 88%; aspect-ratio: 1.6; border-radius: 18px; padding: 22px 24px; color: #f4f1e8;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 20px 40px -20px rgba(11, 42, 91, .55);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.cc-navy { top: 0; left: 0; background: var(--navy); transform: rotate(-4deg); }
.cc-blue { bottom: 0; right: 0; background: var(--blue-deep); transform: rotate(3deg); }
.cc-stack:hover .cc-navy { transform: rotate(-5deg) translate(-6px, -6px); }
.cc-stack:hover .cc-blue { transform: rotate(4deg) translate(6px, 6px); }
.cc-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cc-name { font-weight: 600; }
.cc-chip { width: 42px; height: 30px; border-radius: 7px; background: var(--gold); opacity: .85; }
.cc-num { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 3px; font-size: 16px; opacity: .85; }
.cc small { display: block; font-size: 11.5px; opacity: .7; }
.cc b { font-size: 20px; }
.cc .right { text-align: right; }

.feature-link { display: inline-block; margin-top: 14px; font-weight: 550; font-size: 15px; }

/* ---------- Finance calculators ---------- */
.calc-list {
  list-style: none; padding: 0; margin: 28px 0 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
}
.calc-list li {
  padding: 12px 16px; display: flex; flex-direction: column; gap: 1px; min-width: 0;
  border-bottom: 1px solid var(--line);
}
.calc-list li:nth-child(odd) { border-right: 1px solid var(--line); }
.calc-list b { font-size: 15px; font-weight: 600; color: var(--ink); }
.calc-list span { font-size: 13px; color: var(--muted); }

.sip-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 28px; }
.sip-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.sip-head h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.sip-field { margin-bottom: 20px; }
.sip-field label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 10px; }
.sip-field output {
  font-weight: 600; color: var(--blue); background: var(--blue-50); padding: 3px 10px; border-radius: 999px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.sip-field input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; cursor: pointer;
  background: linear-gradient(var(--blue), var(--blue)) 0 / var(--fill, 50%) 100% no-repeat, var(--paper-200);
}
.sip-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--blue); box-shadow: 0 1px 3px rgba(26, 25, 21, .2);
}
.sip-field input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2px solid var(--blue); box-shadow: 0 1px 3px rgba(26, 25, 21, .2);
}
.sip-result { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.sip-split { display: flex; gap: 2px; height: 8px; border-radius: 8px; overflow: hidden; background: var(--paper-200); margin-bottom: 16px; }
.sip-split i { display: block; height: 100%; transition: width .3s ease; }
#sip-bar-invested, .dot-invested { background: var(--blue-200); }
#sip-bar-returns, .dot-returns { background: var(--blue); }
.sip-result dl { margin: 0; display: grid; gap: 8px; }
.sip-result dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sip-result dt { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14.5px; }
.sip-result dt i { width: 8px; height: 8px; border-radius: 50%; }
.sip-result dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.sip-result .total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.sip-result .total dt { color: var(--ink); font-weight: 600; font-size: 16px; }
.sip-result .total dd { font-size: 30px; color: var(--ink); }
.sip-note { margin-top: 16px; font-size: 12.5px; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-strong); }
.steps li { position: relative; padding: 28px 28px 8px 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.section-alt .steps li { background: transparent; box-shadow: none; }
.step-num {
  display: block; width: auto; height: auto; background: none; color: var(--blue);
  font-size: 40px; line-height: 1; margin-bottom: 16px;
}
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { color: var(--muted); }

/* ---------- Install ---------- */
.install-card {
  position: relative; overflow: hidden; border-radius: 24px; padding: 56px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center;
  background: var(--navy); color: rgba(244, 241, 232, .75);
}
.install-card::after { display: none; }
.install-copy h2 { color: #f4f1e8; }
.install-copy h2 em { color: var(--gold); }
.install-copy p:not(.eyebrow) { margin: 16px 0 28px; font-size: 17px; color: rgba(244, 241, 232, .7); }
.install-steps { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.platform { background: rgba(244, 241, 232, .05); border: 1px solid rgba(244, 241, 232, .14); border-radius: 16px; padding: 22px; }
.platform h3 { display: flex; align-items: center; gap: 8px; color: #f4f1e8; font-size: 17px; margin-bottom: 12px; }
.platform h3 svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.platform ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14.5px; }
.platform b { color: #f4f1e8; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.faq details { background: transparent; border-bottom: 1px solid var(--line-strong); padding: 0 4px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 36px 22px 0; position: relative;
  font-weight: 550; font-size: 17px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 680px; }

/* ---------- Final CTA ---------- */
.cta-section { padding-top: 104px; }
.cta { text-align: center; max-width: 720px; }
.cta img { margin: 0 auto 22px; border-radius: 14px; }
.cta p { margin-top: 14px; color: var(--muted); font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-strong); background: var(--paper-50); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-brand p { margin-top: 12px; color: var(--muted); font-size: 14.5px; }
.site-footer h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 14px; }
.site-footer .footer-grid a:not(.brand) { display: block; color: var(--ink-2); font-size: 15px; padding: 4px 0; cursor: pointer; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 44px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.to-top { color: var(--muted); }

/* ---------- Motion (quiet) ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .mock-chart .line { animation: none; stroke-dashoffset: 0; }
  .cc, .btn svg { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .main-nav a { padding: 8px 9px; font-size: 14.5px; }
  .hero-grid { gap: 40px; }
  .install-card { grid-template-columns: 1fr; padding: 44px; }
}

@media (max-width: 900px) {
  :root { --header-h: 62px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h); margin: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--paper); border-bottom: 1px solid var(--line-strong);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 14px 8px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }

  .hero { padding: 48px 0 72px; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split.reverse .split-copy { order: 0; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0 16px; border-left: 0; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 0; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .hide-sm { display: none; }
  .header-actions .btn-primary { height: 38px; padding: 0 16px; font-size: 14px; }
  .lead { font-size: 17px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mock-main { padding: 18px; }
  .mock-big { font-size: 28px; }
  .float-credit { right: 4px; bottom: -14px; width: 190px; }
  .float-gold { left: 4px; top: 4px; }
  .strip-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .feature-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .alloc-card { padding: 22px; }
  .alloc-body { grid-template-columns: 1fr; justify-items: center; }
  .donut { width: 170px; }
  .legend { width: 100%; }
  .cc-stack { height: 330px; }
  .cc { width: 92%; padding: 18px; }
  .install-card { padding: 32px 22px; border-radius: 20px; }
  .install-steps { grid-template-columns: 1fr; }
  .calc-list li { padding: 10px 12px; }
  .calc-list span { font-size: 12px; }
  #calculators .btn-lg { width: 100%; }
  .sip-card { padding: 22px 18px; }
  .sip-result .total dd { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
