/* Mangudai /savings — matches live site chrome (Nov 2026)
   Fonts: Inter, Space Grotesk, JetBrains Mono. Background #000. */

:root {
  --nuclear-white: #fff;
  --ghost-purple: #8b5cf6;
  --arctic-cyan: #38bdf8;
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --text: #eef4ff;
  --muted: #eef4ffa6;
  --dim: #eef4ff73;
  --line: #ffffff21;
  --panel: #07080c;
  --glow-blue: #4da3ff;
  --glow-purple: #a855f7;
  --glow-pink: #ff4fd8;
  --glow-orange: #ff8a4c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: #000; }
body {
  min-width: 320px;
  min-height: 100vh;
  background: #000;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ——— Top bar (live site) ——— */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 8px 0;
  background: #040509bf;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; min-width: 176px; min-height: 52px; padding: 0; }
.topbar .brand-logo { width: 176px; height: auto; object-fit: contain; display: block; filter: drop-shadow(0 12px 26px #00ccff1a); }
.desktop-nav { display: flex; align-items: center; gap: 8px; }
.desktop-nav a {
  color: #eef4ffa6;
  font-size: 13px;
  font-weight: 500;
  background: none;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  text-decoration: none;
  transition: color .25s;
  letter-spacing: 0;
  white-space: nowrap;
}
.desktop-nav a:hover { color: var(--arctic-cyan); }
.desktop-nav a.active { color: var(--nuclear-white); position: relative; }
.desktop-nav a.active:after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--arctic-cyan);
  box-shadow: 0 0 8px var(--arctic-cyan);
}
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}
.topbar-demo-btn {
  color: #ffffffd1;
  background: #ffffff0d;
  border: 1px solid #ffffff29;
}
.topbar-savings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 800;
  color: #efe7ff;
  background: #a855f71a;
  border: 1px solid #a855f766;
  box-shadow: none;
}
.topbar-savings-btn-legacy {
  color: #fff;
  background: transparent;
  border: 1px solid transparent;
  position: relative;
  isolation: isolate;
  padding: 0 !important;
}
.topbar-savings-btn.active { color: #fff; }
.topbar-cta-btn {
  color: #07111f;
  background: linear-gradient(135deg, #fff 0%, #d9e3ef 100%);
  border: 1px solid #ffffffbf;
}
.topbar-cta-btn:hover { filter: brightness(1.05); }
.topbar-napoleon-btn {
  color: #fff;
  background: linear-gradient(115deg, #ff4fd8 0%, #a855f7 48%, #7c3cff 100%);
  border: 1px solid #e1b1ff8c;
  box-shadow: 0 12px 34px #a855f747, inset 0 1px #ffffff4d;
  min-width: 174px;
}
.topbar-napoleon-btn:hover { box-shadow: 0 16px 44px #c641ff66, inset 0 1px #ffffff61; }
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: none;
  flex: 0 0 44px;
}
.hamburger span { display: block; width: 20px; height: 2px; background: #fff; }
.hamburger.open span:first-child { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.hamburger span { transition: transform .3s, opacity .3s; }

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 95;
  background: #040509fa;
  align-items: center;
  justify-content: center;
}
.mobile-nav-overlay.open { display: flex; }
.mobile-nav-overlay nav { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.mobile-nav-overlay a {
  color: #eef4ffb3;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.mobile-nav-overlay a:hover { color: var(--ghost-purple); }
.mobile-cta-btn {
  background: #fff !important;
  color: #03050a !important;
  border-radius: 999px;
  padding: 12px 28px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}
.mobile-napoleon-btn {
  color: #fff !important;
  background: linear-gradient(115deg, #ff4fd8 0%, #a855f7 48%, #7c3cff 100%) !important;
  border-radius: 999px;
  padding: 12px 28px !important;
}

@media (width <= 1180px) {
  .desktop-nav { gap: 0; }
  .desktop-nav a { padding: 6px 8px; font-size: 12px; }
  .topbar-napoleon-btn { padding: 0 13px; font-size: 11px; min-width: 0; }
}
@media (width <= 768px) {
  .hamburger { display: flex !important; }
  .desktop-nav,
  .topbar-actions .topbar-cta-btn,
  .topbar-actions .topbar-demo-btn,
  .topbar-actions .topbar-napoleon-btn,
  .topbar-actions .topbar-savings-btn { display: none !important; }
  .topbar .brand-logo { width: 142px; }
  .topbar-inner { padding-inline: 16px; }
}

/* ——— Apple Intelligence glow (colours travel; box stays still) ——— */
@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.ai-glow {
  position: relative;
  isolation: isolate;
}
.ai-glow > .ai-bloom,
.ai-glow > .ai-ring {
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
}
.ai-glow > .ai-bloom {
  inset: -22px;
  z-index: 0;
  border-radius: 40px;
  background: conic-gradient(from var(--spin), #3b82f6, #8b5cf6, #ff4fd8, #fb923c, #3b82f6);
  filter: blur(28px);
  opacity: 0.4;
  animation: ai-spin 8s linear infinite;
}
.ai-glow > .ai-ring {
  inset: -1.5px;
  z-index: 1;
  padding: 1.5px;
  background: conic-gradient(from var(--spin), #60a5fa, #a78bfa, #ff4fd8, #fb923c, #60a5fa);
  animation: ai-spin 8s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.95;
}
.ai-glow > .ai-body { position: relative; z-index: 2; border-radius: inherit; }
@keyframes ai-spin { to { --spin: 360deg; } }

.site-footer { position: relative; z-index: 5; background: #000; padding: 56px 24px 22px; }
.footer-inner {
  max-width: 1180px;
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: minmax(230px, .65fr) minmax(520px, 1.35fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
  background: linear-gradient(145deg, #ffffff07, #ffffff02), #000000e6;
  border: 1px solid #d8e2ff17;
  border-radius: 30px;
  padding: clamp(28px, 4vw, 46px);
  box-shadow: 0 42px 120px #000000b8, inset 0 1px #ffffff14;
}
.footer-brand-side { display: flex; flex-direction: column; align-items: flex-start; max-width: 340px; }
.footer-logo { width: 220px; height: auto; display: block; margin-bottom: 22px; }
.footer-mini-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #05070b;
  background: linear-gradient(135deg, #fff 0%, #e6edf7 100%);
  border: 1px solid #ffffffdb;
  border-radius: 999px;
  min-height: 52px;
  padding: 0 26px;
  font-size: .95rem;
  font-weight: 800;
  box-shadow: 0 18px 46px #e1ecff2e, inset 0 1px #ffffffd1;
}
.footer-links-side {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr)) minmax(200px, 1.2fr);
  gap: clamp(24px, 2.5vw, 36px);
}
.footer-links-col, .footer-office { display: flex; flex-direction: column; gap: 8px; }
.footer-links-heading {
  margin: 0 0 8px;
  color: #ffffffdb;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
}
.footer-links-col a {
  color: #f4f1eb94;
  font-size: 13.5px;
  padding: 6px 0;
  display: block;
}
.footer-links-col a:hover, .footer-social-link:hover { color: #fff; }
.footer-office-address {
  color: #ffffff94;
  font-size: 12.5px;
  font-style: normal;
  line-height: 1.5;
  display: grid;
  gap: 2px;
}
.footer-social-link { display: inline-flex; align-items: center; }
.social-icon { width: 15px; height: 15px; margin-right: 6px; fill: currentColor; }
.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  color: #f4f1eb75;
  font-size: 12px;
}
.footer-copyright { margin: 0; }


/* Subtle AI Savings nav — no glow */
.topbar-actions .topbar-savings-btn,
a.topbar-savings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 999px;
  min-height: 40px;
  min-width: 108px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 800;
  color: #efe7ff;
  background: #a855f71a;
  border: 1px solid #a855f766;
  box-shadow: none;
}
.topbar-actions .topbar-savings-btn::before { display: none !important; content: none !important; }
a.topbar-savings-btn.active { color: #fff; background: #a855f72e; }
@media (width <= 1180px) {
  .topbar-actions .topbar-savings-btn { padding: 0 12px; font-size: 11px; min-width: 96px; }
}
@media (width <= 768px) {
  .topbar-actions .topbar-savings-btn { display: none !important; }
}

.submit-glow { border-radius: 999px; display: inline-block; }
.submit-glow > .ai-bloom { inset: -12px; filter: blur(16px); opacity: 0.55; border-radius: 999px; }
.submit-glow > .ai-body { background: transparent; border-radius: 999px; }
.submit-glow > .ai-ring { border-radius: 999px; }

/* ——— Page (v6) ——— */
:root {
  --sage: #a8dcb8; --card: #0b0d12; --soft: #ffffff0d; --body2: #c9d0e0;
  --c1: #a855f7; --c2: #38bdf8; --c3: #38bdf855;
}
.page { padding-top: 120px; overflow-x: hidden; position: relative; }
.wrap { width: min(560px, calc(100% - 40px)); margin: 0 auto; }
.wrap-wide { width: min(1160px, calc(100% - 40px)); margin-left: auto; margin-right: auto; }
.hero-atmosphere {
  position: absolute; inset: 0; top: -80px; height: 680px; pointer-events: none;
  background: radial-gradient(ellipse 60% 45% at 50% 0%, #7c3cff14, transparent 65%);
}

/* Hero */
.hero { position: relative; text-align: center; padding: 40px 20px 0; max-width: 820px; margin: 0 auto; }
.kicker {
  display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: #eef4ffb3; margin-bottom: 22px; font-size: 12px;
}
.save-glow { position: relative; display: inline-block; font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(3.4rem, 12vw, 7.25rem); line-height: 1; letter-spacing: -0.025em; padding: 0 .06em .08em; }
.save-glow > span {
  background: linear-gradient(100deg, #ff4fd8, #a855f7 28%, #7c3cff 48%, #a8dcb8 68%, #ff4fd8 92%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sg-move 9s ease-in-out infinite alternate;
}
.sg-blur { position: absolute; inset: 0; padding: inherit; filter: blur(28px); opacity: .55; z-index: 0; }
.sg-blur::before { content: attr(data-text); }
.sg-text { position: relative; z-index: 1; }
@keyframes sg-move { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.hero-sub { margin-top: 18px; font-family: var(--font-heading); font-size: clamp(1.35rem, 3.2vw, 1.9rem); font-weight: 600; color: #fff; line-height: 1.2; }
.hero-lede { margin: 12px auto 0; max-width: 30em; color: var(--muted); font-size: clamp(1rem, 2vw, 1.1rem); line-height: 1.5; }

/* Before → After */
.ba { margin-top: 88px; }
.ba-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; align-items: stretch; }
.ba-label { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 14px; }
.ba-step { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: #ffffff0f; color: #eef4ff80; }
.ba-label.lit { color: #fff; margin-bottom: 6px; }
.ba-label.lit .ba-step { background: #a8dcb81f; color: var(--sage); }

/* Before: raw, muted, no glow */
.before { display: flex; flex-direction: column; min-width: 0; }
.after { min-width: 0; }
.raw {
  position: relative; flex: 1; min-height: 300px; max-height: 420px; overflow: hidden;
  border-radius: 14px; background: #08090c; border: 1px dashed #ffffff1c;
  -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent 100%), linear-gradient(#000 70%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, #000 72%, transparent 100%), linear-gradient(#000 70%, transparent);
  mask-composite: intersect;
}
.raw-scroll { padding: 14px 16px; animation: raw-scroll 60s linear infinite; }
.raw pre { font-family: var(--font-mono); font-size: 11px; line-height: 1.9; color: #eef4ff59; white-space: pre; }
.raw pre:first-line { color: #eef4ff8c; }
@keyframes raw-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.raw-totals { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 8px 16px; margin-top: 14px; padding: 0 4px; }
.raw-totals dt { font-size: 10.5px; color: var(--dim); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.raw-totals dd { font-family: var(--font-mono); font-size: 14px; color: #eef4ffa0; margin-top: 2px; }

/* Bridge */
.bridge { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 0; }
.bridge-line { width: 1px; height: 36px; background: linear-gradient(#ffffff00, #ffffff33); }
.bridge-line.glow { background: linear-gradient(#a8dcb8, #a8dcb800); box-shadow: 0 0 10px #a8dcb880; }
.khan-pulse { position: relative; width: 72px; height: 72px; display: grid; place-items: center; margin: 6px 0; }
.kp-core { position: relative; z-index: 2; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: #0b0d12; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; color: #fff;
  box-shadow: inset 0 0 0 1px #ffffff1f; }
.kp-ring { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from var(--spin), #ff4fd8, #a855f7, #7c3cff, #a8dcb8, #ff4fd8);
  animation: ai-spin 6s linear infinite; filter: blur(.5px); }
.kp-ring::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; background: inherit; filter: blur(16px); opacity: .55; animation: kp-pulse 2.8s ease-in-out infinite; }
@keyframes kp-pulse { 0%,100% { opacity: .35; transform: scale(.92); } 50% { opacity: .7; transform: scale(1.06); } }

/* After: the magic moment */
.after { position: relative; isolation: isolate; border-radius: 22px; display: flex; flex-direction: column; }
.after-body { flex: 1; }
.after-glow { position: absolute; inset: -1px; border-radius: 23px; z-index: 0; pointer-events: none;
  background: conic-gradient(from var(--spin), #a8dcb8, #a8dcb8 18%, #7c3cff 38%, #a8dcb8 58%, #ff4fd8 78%, #a8dcb8);
  animation: ai-spin 14s linear infinite; }
.after-glow::before { content: ""; position: absolute; inset: -14px; border-radius: 36px; background: inherit; filter: blur(30px); opacity: .32; }
.after-body { position: relative; z-index: 1; margin: 1px; border-radius: 21px; background: #0b0d12; padding: 24px 20px; }
.after-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.after-head h2 { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: #fff; line-height: 1.2; }
.tag { flex: none; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #d8c8ff; background: #a855f721; border-radius: 999px; padding: 4px 10px; }

.blocks { display: grid; grid-template-columns: 1fr; gap: 12px; }
.blk { background: var(--soft); border-radius: 14px; padding: 18px 18px 16px; display: flex; flex-direction: column; }
.blk h3 { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 14px; }
.blk h3 span { color: var(--dim); font-weight: 500; }
.insight { margin-top: auto; padding-top: 12px; font-size: 12px; color: var(--muted); line-height: 1.45; }

.split { display: grid; gap: 8px; }
.split-row { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 10px; font-size: 11.5px; color: var(--dim); }
.stack { display: flex; height: 10px; gap: 2px; border-radius: 999px; overflow: hidden; }
.stack b { width: var(--w); }
.c1 { background: var(--c1); } .c2 { background: var(--c2); } .c3 { background: var(--c3); }
.legend { list-style: none; display: grid; gap: 5px; margin-top: 14px; font-size: 12.5px; color: var(--body2); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.legend .lg-head { margin-bottom: -2px; }
.legend .lg-head em { font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.legend em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }

.perf { display: grid; grid-template-columns: 116px 1fr; gap: 18px; align-items: center; }
.gauge { position: relative; width: 116px; }
.gauge svg { display: block; width: 100%; height: auto; overflow: visible; }
.g-track, .g-val { fill: none; stroke-width: 10; stroke-linecap: round; }
.g-track { stroke: #ffffff17; }
.g-val { stroke-dasharray: 64 100; }
.gauge-num { position: absolute; left: 0; right: 0; top: 30px; text-align: center; font-family: var(--font-heading); font-size: 26px; font-weight: 700; color: #fff; line-height: 1; }
.gauge-num span { font-size: 11px; color: var(--dim); font-weight: 600; margin-left: 1px; }
.gauge-cap { text-align: center; font-size: 11px; color: var(--dim); margin-top: 8px; }
.hp-models { list-style: none; display: grid; gap: 9px; }
.hp-models li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n v" "b b"; align-items: center; gap: 4px 8px; font-size: 11.5px; color: var(--body2); }
.hp-models li span { grid-area: n; }
.hp-models li i { grid-area: b; }
.hp-models li em { grid-area: v; }
.hp-models i { display: block; height: 6px; border-radius: 999px; background: #ffffff12; overflow: hidden; }
.hp-models b { display: block; height: 100%; width: var(--w); border-radius: 999px; background: linear-gradient(90deg, #7c3cff, #38bdf8); }
.hp-models em { font-style: normal; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); text-align: right; }

.sugg { list-style: none; display: grid; gap: 6px; }
.sugg li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "kind save" "what save" "q save"; column-gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 12px; background: #ffffff08; }
.s-kind { grid-area: kind; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.s-what { grid-area: what; font-size: 13px; color: #fff; font-weight: 500; line-height: 1.35; margin-top: 2px; }
.s-q { grid-area: q; font-size: 11.5px; color: var(--dim); margin-top: 2px; }
.s-q.warn { color: #fda4af; }
.s-save { grid-area: save; white-space: nowrap; font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: #fff; }
.sugg li.alt .s-save { color: #eef4ff80; }
.sugg li.rec { background: #a8dcb812; box-shadow: inset 0 0 0 1px #a8dcb84d; }
.sugg li.rec .s-kind, .sugg li.rec .s-save { color: var(--sage); }
.rec-tag { font-size: 9.5px; letter-spacing: .05em; color: #0b0d12; background: var(--sage); border-radius: 999px; padding: 2px 7px; }
.total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #ffffff12; }
.total > span { font-size: 13px; color: #fff; font-weight: 600; }
.total > span small { display: block; font-size: 11.5px; color: var(--dim); font-weight: 400; }
.total > strong { font-family: var(--font-heading); font-size: 36px; line-height: 1; font-weight: 700; color: var(--sage); text-shadow: 0 0 24px #a8dcb859; }

.sample-caption { text-align: center; font-size: 12px; color: var(--dim); margin-top: 18px; }

/* Reveal (JS adds .js-reveal to <html>; content stays visible without JS) */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
.js-reveal .bridge.reveal { transition-delay: .25s; }
.js-reveal .after.reveal { transition-delay: .5s; transform: translateY(16px) scale(.985); }
.js-reveal .after.reveal.in { transform: none; }

/* Upload card */
.upload { padding: 104px 0 24px; }
.card { background: var(--card); border-radius: 20px; padding: 28px 22px; box-shadow: 0 0 0 1px #ffffff12; }
.card-title { font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 24px; line-height: 1.2; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
label { font-size: 13px; font-weight: 500; color: var(--muted); }
input[type="email"] {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid #ffffff17;
  background: #ffffff08; color: #fff; font-size: 15px; outline: none; transition: border-color .2s;
}
input[type="email"]::placeholder { color: #eef4ff40; }
input[type="email"]:focus { border-color: #a855f7aa; }
.drop { border: 1.5px dashed #ffffff26; border-radius: 14px; padding: 28px 20px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; outline: none; }
.drop:hover, .drop:focus-visible, .drop.drag { border-color: #a855f799; background: #a855f70d; }
.drop-icon { width: 24px; height: 24px; fill: none; stroke: #c4b5fd; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.drop strong { display: block; font-size: 15px; font-weight: 600; color: #fff; }
.drop strong u { color: #c4b5fd; text-underline-offset: 3px; }
.drop p { font-size: 12px; color: var(--dim); margin-top: 8px; line-height: 1.55; }
.file-pill { display: inline-block; margin-top: 12px; padding: 4px 12px; border-radius: 999px; border: 1px solid #a855f766; color: #e9d5ff; font-size: 12px; font-family: var(--font-mono); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-pill.bad { border-color: #fb7185; color: #fecdd3; }
.file-pill[hidden] { display: none !important; }
.consent { display: grid; gap: 12px; margin-top: 4px; }
.consent label { display: grid; grid-template-columns: 16px 1fr; gap: 12px; align-items: start; font-size: 12.5px; font-weight: 400; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent input { width: 16px; height: 16px; margin-top: 2px; accent-color: #a855f7; }
.consent a { color: #d8c8ff; text-decoration: underline; text-underline-offset: 2px; }
.actions { margin-top: 28px; display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.submit-glow { display: block; width: 100%; }
.btn-submit { width: 100%; height: 50px; border: 0; border-radius: 999px; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .01em; background: linear-gradient(115deg, #ff4fd8, #a855f7, #7c3cff); }
.btn-submit[disabled] { opacity: 0.55; cursor: default; }
.btn-secondary { display: block; line-height: 46px; height: 48px; white-space: nowrap; border-radius: 999px; border: 1px solid #ffffff38; color: #fff; font-size: 14px; font-weight: 600; text-align: center; padding: 0 16px; transition: border-color .2s, background .2s; }
.btn-secondary:hover { border-color: #ffffff70; background: #ffffff0a; }
.trust { font-size: 12px; color: var(--dim); text-align: center; margin-top: 4px; }
.more-link { text-align: center; font-size: 12.5px; color: var(--dim); margin: 28px 0 72px; }
.more-link a { color: #d8c8ff; text-decoration: underline; text-underline-offset: 3px; }
.confirm { text-align: center; padding: 8px 4px; }
.confirm .ok { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #0b0d12; background: var(--sage); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }
.confirm h2 { font-family: var(--font-heading); font-size: 24px; color: #fff; margin-bottom: 10px; }
.confirm p { color: var(--body2); font-size: 14px; }
.card form.hidden { display: none; }
.alert { display: none; margin-bottom: 18px; padding: 12px 14px; border-radius: 12px; border: 1px solid #fb718566; background: #fb718514; color: #fecdd3; font-size: 13px; }
.alert.show { display: block; }
.alert p { margin: 4px 0 0; }
.flagged { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.flagged code { font-family: var(--font-mono); font-size: 11px; padding: 2px 7px; border-radius: 999px; border: 1px solid #fb718566; background: #00000040; }
.hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@media (width >= 720px) {
  .blocks { grid-template-columns: 1fr 1fr; }
  .blk-wide { grid-column: 1 / -1; }
  .sugg li { grid-template-columns: 150px 1fr 96px; grid-template-areas: "kind what save" "kind q save"; padding: 12px 16px; }
  .s-what { margin-top: 0; }
  .s-save { text-align: right; }
  .after-body { padding: 28px; }
  .card { padding: 36px 36px 32px; }
}
@media (width >= 1100px) {
  .ba-grid { grid-template-columns: minmax(0, 0.82fr) 104px minmax(0, 1.5fr); }
  .bridge { flex-direction: row; padding: 0; }
  .bridge-line { width: 18px; height: 1px; background: linear-gradient(90deg, #ffffff00, #ffffff33); }
  .bridge-line.glow { background: linear-gradient(90deg, #a8dcb8, #a8dcb800); }
  .khan-pulse { margin: 0 2px; }
  .raw { max-height: none; height: 0; min-height: 0; flex: 1 1 auto; }
  .before { min-height: 0; }
  .before { padding-top: 0; }
}
@media (width <= 1024px) { .footer-inner { grid-template-columns: 1fr; } }
@media (width <= 760px) {
  .footer-links-side { grid-template-columns: 1fr; }
  .page { padding-top: 96px; }
  .ba { margin-top: 64px; }
  .raw { min-height: 220px; max-height: 260px; }
  .raw-totals { grid-template-columns: repeat(2, auto); justify-content: start; gap: 10px 32px; }
  .after-body { padding: 20px 16px; }
  .after-head h2 { font-size: 19px; }
  .after-head { flex-direction: column-reverse; gap: 12px; }
  .perf { grid-template-columns: 1fr; justify-items: center; }
  .hp-models { width: 100%; }
}
@media (width <= 420px) { .btn-secondary .long { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .save-glow > span, .raw-scroll, .kp-ring, .kp-ring::after, .after-glow { animation: none !important; }
  .js-reveal .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ——— v7: money sample ——— */
.ccy { display: flex; justify-content: flex-end; gap: 2px; margin: 0 0 14px auto; width: max-content; padding: 3px; border-radius: 999px; background: #ffffff0a; }
.ccy button { width: 30px; height: 24px; border: 0; border-radius: 999px; background: transparent; color: var(--dim); font-family: var(--font-mono); font-size: 12px; }
.ccy button:hover { color: #fff; }
.ccy button[aria-pressed="true"] { background: #ffffff1a; color: #fff; }
.raw-totals dd small { display: block; font-size: 11px; color: var(--dim); margin-top: 1px; }
.h-split { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.h-val { font-family: var(--font-heading); font-size: 17px; font-weight: 700; color: #fff; }
.h-val small { font-family: var(--font-body); font-size: 11px; color: var(--dim); font-weight: 500; margin-left: 2px; }
.s-save { text-align: right; line-height: 1.15; font-size: 18px; }
.s-save small { display: block; font-family: var(--font-body); font-size: 11px; font-weight: 500; color: var(--dim); margin-top: 3px; }
.sugg li.rec .s-save small { color: #a8dcb8b3; }
.total { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center; }
.flow { display: grid; gap: 10px; }
.flow-row { display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.flow-row i { display: flex; height: 8px; border-radius: 999px; background: #ffffff0f; overflow: hidden; }
.flow-row b { display: block; width: var(--w); height: 100%; background: #eef4ff59; }
.flow-row.opt b { background: var(--sage); }
.flow-row.opt b.rng { background: repeating-linear-gradient(90deg, #a8dcb873 0 3px, transparent 3px 6px); }
.flow-row em { font-style: normal; font-family: var(--font-mono); font-size: 12px; color: #fff; min-width: 110px; text-align: right; }
.flow-row.opt em { color: var(--sage); }
.total-save { display: flex; flex-direction: column; align-items: flex-start; }
.ts-label { font-size: 13px; color: #fff; font-weight: 600; }
.ts-label small { display: block; font-size: 11.5px; color: var(--dim); font-weight: 400; }
.total-save strong { margin-top: 6px; font-family: var(--font-heading); font-size: 38px; line-height: 1; font-weight: 700; color: var(--sage); text-shadow: 0 0 26px #a8dcb866; white-space: nowrap; }
.total-save strong small { font-size: 15px; font-weight: 600; text-shadow: none; color: #a8dcb8cc; }
.ts-mo { margin-top: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
@media (width >= 720px) {
  .sugg li { grid-template-columns: 152px 1fr 134px; }
  .total-save { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; }
  .ts-num { text-align: right; }
}
@media (width <= 760px) {
  .ccy { margin-right: 0; }
  .flow-row { grid-template-columns: 82px 1fr auto; gap: 8px; }
  .flow-row span { white-space: nowrap; }
  .flow-row em { min-width: 0; font-size: 11px; }
  .sugg li { grid-template-columns: minmax(0,1fr); grid-template-areas: "kind" "what" "q" "save"; }
  .s-save { font-size: 18px; text-align: left; margin-top: 10px; display: flex; align-items: baseline; gap: 8px; }
  .s-save small { display: inline; margin-top: 0; }
  .total-save strong { font-size: 32px; }
}
.ts-num { display: flex; flex-direction: column; }
.total-save .ts-num strong { margin-top: 6px; }
.flow { padding-bottom: 18px; border-bottom: 1px solid #ffffff0d; }
.blocks { grid-template-columns: minmax(0, 1fr); }
.blk, .sugg li { min-width: 0; }
@media (width >= 720px) { .blocks { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }

/* ——— v8: option tabs + performance ——— */
.opts { margin-bottom: 14px; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: #ffffff0a; }
.tabs button { position: relative; height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .25s, color .25s, box-shadow .25s; }
.tabs button:hover { color: #fff; }
.tabs button[aria-selected="true"] { background: #ffffff14; color: #fff; box-shadow: inset 0 0 0 1px #ffffff1f; }
.tabs button[data-opt="hybrid"][aria-selected="true"] { background: #a8dcb81a; box-shadow: inset 0 0 0 1px #a8dcb866; color: var(--sage); }
.tabs button:focus-visible { outline: 2px solid #a855f7; outline-offset: 2px; }
.t-short { display: none; }
.t-rec { font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; color: #0b0d12; background: var(--sage); border-radius: 999px; padding: 2px 7px; }
.op-agent { margin: 18px 2px 6px; font-size: 14px; font-weight: 600; color: #fff; }
.op-agent span { color: var(--dim); font-weight: 500; }
.op-panel { transition: opacity .16s ease, transform .16s ease; }
.op-panel.out { opacity: 0; transform: translateY(4px); }
.op-how { font-size: 12.5px; color: var(--muted); margin: 0 2px 16px; line-height: 1.5; }
.op-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.op-money, .op-perf { background: var(--soft); border-radius: 14px; padding: 18px; }
.op-money .flow { padding-bottom: 16px; border-bottom: 1px solid #ffffff0d; }
.op-money .flow-row { grid-template-columns: 74px 1fr auto; }
.op-money .flow-row span { white-space: nowrap; }
.op-money .flow-row b { transition: width .5s cubic-bezier(.2,.7,.2,1); }
.op-money .flow-row em { min-width: 0; }
.op-save-label { margin-top: 16px; font-size: 12px; color: var(--muted); font-weight: 600; }
.op-save { margin-top: 6px; font-family: var(--font-heading); font-size: 40px; line-height: 1; font-weight: 700; color: var(--sage); text-shadow: 0 0 28px #a8dcb866; white-space: nowrap; }
.op-save small { font-size: 15px; font-weight: 600; color: #a8dcb8cc; text-shadow: none; }
.op-save-sub { margin-top: 10px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-size: 15px; color: #fff; }
.op-save-sub b { font-weight: 600; font-family: var(--font-heading); }
.op-save-sub .dot { color: var(--dim); }
.opts[data-opt="hybrid"] .op-save-sub b { color: var(--sage); }
.pr { display: grid; grid-template-columns: 1fr 64px 64px 56px; align-items: baseline; gap: 6px; padding: 7px 0; border-top: 1px solid #ffffff0b; font-size: 12.5px; }
.pr:nth-child(2) { border-top: 0; }
.pr-head { padding-top: 0; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); border-top: 0; }
.pr-head .pr-l { color: #fff; letter-spacing: .08em; }
.pr-l { color: var(--muted); }
.pr-a, .pr-b, .pr-d { text-align: right; font-family: var(--font-mono); font-size: 12px; white-space: nowrap; }
.pr-head .pr-a, .pr-head .pr-b, .pr-head .pr-d { font-family: var(--font-body); font-size: 10.5px; }
.pr-a { color: var(--dim); }
.pr-b { color: #fff; }
.pr small { font-size: 10px; color: var(--dim); margin-left: 1px; }
.pr-d { font-size: 11px; }
.pr-d.good { color: #7dd3fc; }
.pr-d.bad { color: #fda4af; }
.pr-d.same { color: var(--dim); }
.pr-d.info { color: #d8c8ff; }
.op-note { margin: 12px 2px 0; font-size: 11.5px; color: var(--dim); line-height: 1.5; }
.hp-models li { grid-template-areas: "n v" "b b" "s s"; }
.hp-models li small { grid-area: s; font-size: 10.5px; color: var(--dim); font-family: var(--font-mono); }
.hp-models { gap: 11px; }
@media (width >= 720px) {
  .op-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
}
@media (width <= 760px) {
  .t-long, .t-rec { display: none; }
  .t-short { display: inline; }
  .tabs button { font-size: 13px; height: 40px; }
  .op-save { font-size: 32px; }
  .pr { grid-template-columns: 1fr 54px 58px 50px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .op-panel, .op-money .flow-row b, .tabs button { transition: none !important; }
}
.op-save { font-size: 34px; }
.op-save-sub { font-size: 14px; }
.pr { grid-template-columns: 1fr 58px 58px 52px; }
.perf { grid-template-columns: 1fr; justify-items: stretch; gap: 14px; }
.perf .gauge { margin: 0 auto; }
.hp-table { display: grid; }
.hpt { display: grid; grid-template-columns: 1fr 30px 40px 50px; gap: 8px; align-items: end; padding: 7px 0; border-top: 1px solid #ffffff0b; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); text-align: right; }
.hpt-head { border-top: 0; padding-top: 0; font-family: var(--font-body); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.hpt > span:first-child { text-align: left; }
.hpt-n { font-family: var(--font-body); font-size: 12px; color: var(--body2); display: grid; gap: 5px; }
.hpt-n i { display: block; height: 5px; border-radius: 999px; background: #ffffff12; overflow: hidden; }
.hpt-n b { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, #7c3cff, #38bdf8); border-radius: 999px; }
.hpt > span:nth-child(2) { color: #fff; }
@media (width <= 760px) { .op-save { font-size: 30px; } .pr { grid-template-columns: 1fr 48px 54px 60px; gap: 4px; } }

/* ——— v9: compute note + Horsepower per option ——— */
.op-excl { margin-top: 8px; font-size: 11.5px; color: var(--dim); }
.hp-top { display: grid; grid-template-columns: 1fr; gap: 12px; justify-items: center; }
.g-val { transition: stroke-dasharray .7s cubic-bezier(.2,.7,.2,1); }
.g-today { fill: none; stroke-width: 10; stroke-linecap: round; stroke: #eef4ff40; }
.gauge-num .g-of { font-size: 11px; color: var(--dim); font-weight: 600; margin-left: 1px; }
.hp-explain { text-align: center; }
.hp-explain p { font-size: 12px; color: var(--muted); line-height: 1.5; }
.hp-explain .hp-delta { font-family: var(--font-mono); font-size: 12px; color: var(--dim); margin-bottom: 8px; }
.hp-delta b { color: #7dd3fc; font-weight: 600; }
.hp-delta .arrow { color: var(--dim); }
.opts[data-opt="hybrid"] ~ .blocks .hp-delta b { color: var(--sage); }
.info { position: relative; display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 3px; border-radius: 50%; border: 1px solid #ffffff40; background: transparent; color: var(--muted); font-family: var(--font-mono); font-size: 9.5px; line-height: 1; vertical-align: 1px; }
.info .tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 220px; padding: 10px 12px; border-radius: 10px; background: #1a1d24; box-shadow: 0 0 0 1px #ffffff1a, 0 12px 30px #0009; color: var(--body2); font-family: var(--font-body); font-size: 11.5px; line-height: 1.45; text-align: left; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 5; }
.info:hover .tip, .info:focus .tip, .info:focus-visible .tip { opacity: 1; }
.hp-table { margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .g-val { transition: none !important; } }
.gauge-num #hp-num { font-size: inherit; color: #fff; font-weight: 700; margin: 0; }

/* ——— v7 Chrome & Palette Alignment ——— */
html, body { background: #09090b; color: #f4f4f5; }
:root {
  --text: #f4f4f5; --muted: #a1a1aa; --dim: #71717a; --line: #ffffff14; --line2: #ffffff22;
  --panel: #141418; --card: #141418; --soft: #111114; --body2: #d4d4d8;
  --sage: #4ade80; --c1: #a78bfa; --c2: #4ade80; --c3: #ffffff38;
  --ghost-purple: #a78bfa; --arctic-cyan: #a78bfa;
}
.frame { position: fixed; inset: 0; pointer-events: none; z-index: 0; display: flex; justify-content: center; }
.frame i { position: absolute; top: 0; bottom: 0; width: 1px; background: #ffffff14; }
.frame i:first-child { left: max(0px, calc(50% - 600px)); }
.frame i:last-child { right: max(0px, calc(50% - 600px)); }
main, header, .v7-footer { position: relative; z-index: 1; }

.nav { position: sticky; top: 0; z-index: 50; background: #09090bcc; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid #ffffff14; }
.nav-in { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 28px; height: 64px; padding: 0 24px; }
.nav .brand { min-width: 0; min-height: 0; display: flex; align-items: center; }
.nav .brand img { width: 132px; height: auto; display: block; }
.links { display: flex; gap: 24px; margin: 0 auto; font-size: 14px; color: #a1a1aa; }
.links a:hover { color: #f4f4f5; }
.nav-cta { display: flex; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 14px; border-radius: 8px; font: 500 13px/1 var(--font-body); transition: background .2s, border-color .2s; white-space: nowrap; }
.btn-w { background: #fff; color: #09090b; }
.btn-w:hover { background: #e4e4e7; }
.btn-ghost { border: 1px solid #ffffff22; color: #f4f4f5; }
.btn-ghost:hover { border-color: #ffffff44; background: #ffffff08; }

.page { padding-top: 64px; }
.hero-atmosphere { display: none; }
.kicker { color: #a78bfa; letter-spacing: .08em; }
.save-glow { padding: 0; }
.save-glow > span { background: none; color: #f4f4f5; -webkit-background-clip: border-box; background-clip: border-box; animation: none; }
.sg-blur { display: none; }
.after { background: #141418; border-color: #ffffff22; box-shadow: 0 16px 48px #00000066; }
.after-glow, .ai-bloom, .ai-ring { display: none !important; }
.upload .card { background: #141418; border: 1px solid #ffffff22; box-shadow: 0 16px 48px #00000066; }
.btn-submit { background: #fff; color: #09090b; border-radius: 8px; font-weight: 600; box-shadow: none; }
.btn-submit:hover { background: #e4e4e7; }
.btn-secondary { border-radius: 8px; border: 1px solid #ffffff22; background: transparent; color: #f4f4f5; }
.btn-secondary:hover { background: #ffffff0a; border-color: #ffffff44; }
.tabs button[aria-selected="true"] { background: #ffffff14; color: #fff; border-color: #ffffff2e; }
.hpt-n b { background: #4ade80; }
.pr-d.good { color: #4ade80; }
.pr-d.bad { color: #f5a524; }
.pr-d.info { color: #a78bfa; }

.v7-footer { max-width: 1200px; margin: 48px auto 0; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "logo office nav" "logo office copy"; column-gap: 32px; row-gap: 8px; align-items: start; padding: 28px 40px 40px; border-top: 1px solid #ffffff14; font-size: 13px; color: #71717a; }
.v7-footer img { grid-area: logo; width: 110px; height: auto; opacity: .85; align-self: center; }
.v7-footer nav { grid-area: nav; display: flex; flex-wrap: wrap; gap: 18px; justify-self: end; align-self: end; }
.v7-footer nav a:hover { color: #f4f4f5; }
.v7-footer address { grid-area: office; font-style: normal; font-size: 12.5px; line-height: 1.55; max-width: 42ch; }
.v7-footer .office-k { display: block; font: 500 11px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #71717a; margin-bottom: 6px; }
.v7-footer address span { display: block; }
.v7-footer p { grid-area: copy; justify-self: end; align-self: start; margin: 0; white-space: nowrap; }

@media (max-width: 1080px) {
  .links { display: none; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 640px) {
  .nav-in { padding: 0 16px; gap: 12px; }
  .nav .brand img { width: 112px; }
  .nav-cta .btn-ghost { display: none; }
  .v7-footer { grid-template-columns: 1fr; grid-template-areas: "logo" "nav" "office" "copy"; padding: 24px 20px 32px; row-gap: 16px; }
  .v7-footer nav, .v7-footer p { justify-self: start; align-self: start; }
  .v7-footer img { align-self: start; }
}
