/* Aesthetic direction: dark diagnostic console — Navy Depth canvas, circuit-grid atmosphere,
   glowing Signal-Blue→Cyan→Mint accents, a locked "recovery meter" as the hero moment.
   Audience: independent auto-repair shop owners. Tone: high-tech authority, money-on-the-table tension. */

:root {
  --blue:      #3B6FD4;
  --blue-dark: #2E5FB8;
  --cyan:      #1A9FAD;
  --mint:      #5EEAD4;
  --navy:      #0B1628;
  --navy-2:    #0E1B31;
  --slate:     #1C3159;
  --muted:     #8496B0;
  --line:      rgba(132,150,176,0.18);
  --off-white: #F7F9FF;
  --radius:    16px;
  --radius-sm: 10px;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --grad:      linear-gradient(120deg, var(--blue) 0%, var(--cyan) 55%, var(--mint) 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #C7D2E4;
  background: var(--navy);
  overflow-x: hidden;
  position: relative;
}
h1, h2, h3, .brand-word, .result-figure, .mean-no {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}
a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ── ATMOSPHERE ─────────────────────────────────────────────── */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
  opacity: 0.5;
}
.bg-glow {
  position: fixed; z-index: 0; pointer-events: none;
  width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(90px); opacity: 0.22;
}
.bg-glow--1 { top: -22vmax; left: -14vmax; background: radial-gradient(circle, var(--blue), transparent 62%); }
.bg-glow--2 { top: 28vmax; right: -22vmax; background: radial-gradient(circle, var(--cyan), transparent 62%); opacity: 0.16; }

.container { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 22px; position: relative; z-index: 1; }

/* ── NAV ────────────────────────────────────────────────────── */
.nav {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 22px; max-width: 1000px; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-word { font-weight: 800; letter-spacing: 0.22em; font-size: 15px; color: var(--off-white); }
.nav-tag { font-size: 12.5px; color: var(--muted); letter-spacing: 0.02em; text-align: right; }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 16px;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}
.btn-primary {
  color: #06101F; background: var(--grad);
  box-shadow: 0 8px 26px rgba(59,111,212,0.38), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 12px 34px rgba(26,159,173,0.45); }
.btn-primary:active { transform: translateY(0); }
.btn-block { width: 100%; }

/* ── HERO ───────────────────────────────────────────────────── */
.hero { padding: 46px 0 30px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 12.5px; font-weight: 600;
  color: var(--mint); margin-bottom: 20px;
}
.hero h1 {
  font-weight: 900; font-size: clamp(2.05rem, 6.4vw, 3.7rem); line-height: 1.06;
  letter-spacing: -0.02em; color: var(--off-white); margin-bottom: 22px;
}
.lede { font-size: clamp(1.02rem, 2.4vw, 1.2rem); color: #A9B8D0; max-width: 40ch; margin-bottom: 30px; }
.hero .btn { margin-bottom: 14px; }
.micro { font-size: 13px; color: var(--muted); letter-spacing: 0.01em; }

/* ── CALCULATOR ─────────────────────────────────────────────── */
.calc-section { padding: 22px 0 20px; }
.calc-card {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 0;
  background: linear-gradient(180deg, rgba(28,49,89,0.55), rgba(14,27,49,0.75));
  border: 1px solid rgba(132,150,176,0.22);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(6px);
}
.calc-inputs { padding: 34px 32px; }
.calc-inputs h2 { font-size: 1.32rem; color: var(--off-white); font-weight: 800; letter-spacing: -0.01em; }
.calc-sub { font-size: 14px; color: var(--muted); margin: 8px 0 26px; }

.field { margin-bottom: 22px; }
.field label {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  font-size: 14.5px; font-weight: 600; color: #D3DEF0; margin-bottom: 10px;
}
.field .hint { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.field .val {
  font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--mint);
  font-variant-numeric: tabular-nums; font-size: 15px;
}
.toggle {
  font-weight: 600; font-size: 12px; color: var(--cyan);
  border: 1px solid rgba(26,159,173,0.5); border-radius: 999px; padding: 3px 10px; cursor: pointer;
  transition: var(--ease); user-select: none;
}
.toggle:hover { background: rgba(26,159,173,0.12); }

input[type="number"] {
  width: 100%; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 20px;
  color: var(--off-white); background: rgba(6,16,31,0.6);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; outline: none; transition: var(--ease); -moz-appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"]:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,111,212,0.22); }
.input-money { position: relative; }
.input-money > span {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 20px; color: var(--muted); pointer-events: none;
}
.input-money input { padding-left: 30px; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  border-radius: 999px; background: rgba(6,16,31,0.7); outline: none; cursor: pointer; margin-top: 4px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--off-white); border: 4px solid var(--cyan);
  box-shadow: 0 2px 10px rgba(26,159,173,0.6); transition: transform 0.15s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--off-white);
  border: 4px solid var(--cyan); box-shadow: 0 2px 10px rgba(26,159,173,0.6);
}
.scale { display: block; font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ── RESULT (locked) ────────────────────────────────────────── */
.calc-result {
  padding: 34px 32px;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(59,111,212,0.16), transparent 60%),
    linear-gradient(180deg, rgba(11,22,40,0.4), rgba(6,16,31,0.65));
  border-left: 1px solid rgba(132,150,176,0.18);
  display: flex; flex-direction: column; justify-content: center;
}
.result-label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 12px; }
.result-figure {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-weight: 900; font-size: clamp(2.4rem, 8vw, 3.4rem); color: var(--off-white);
  letter-spacing: -0.02em; line-height: 1;
}
.result-figure .per { font-size: 1.05rem; font-weight: 700; color: var(--muted); }
.result-figure .lock { color: var(--mint); margin-left: 4px; align-self: center; }
.result-figure .blur { filter: blur(9px); opacity: 0.85; user-select: none; }
.result-figure .mask { display: inline-flex; }
.result-annual { font-size: 14.5px; color: #A9B8D0; margin: 14px 0 22px; }
.result-annual .blur { filter: blur(5px); }

.unlock-copy { font-size: 14.5px; color: #C7D2E4; margin-bottom: 16px; }
.unlock-fields { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.unlock input {
  width: 100%; font-family: 'DM Sans', sans-serif; font-size: 15.5px; color: var(--off-white);
  background: rgba(6,16,31,0.7); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 14px; outline: none; transition: var(--ease);
}
.unlock input::placeholder { color: #6C7C97; }
.unlock input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(26,159,173,0.2); }
.unlock input.invalid { border-color: #E4685E; box-shadow: 0 0 0 3px rgba(228,104,94,0.18); }
.unlock-fine { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.unlock-fine.err { color: #F0968C; }
#unlockBtn[disabled] { opacity: 0.6; cursor: default; }

/* ── CONFIRMATION ───────────────────────────────────────────── */
.result-done { text-align: center; animation: fade-up 0.5s var(--ease) both; }
.result-done .check {
  width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; color: #06101F; background: var(--grad);
  box-shadow: 0 8px 24px rgba(26,159,173,0.5);
}
.result-done h3 { font-size: 1.5rem; color: var(--off-white); font-weight: 800; margin-bottom: 8px; }
.result-done p { font-size: 15px; color: #A9B8D0; margin-bottom: 6px; }
.result-done .done-sub { margin: 16px 0 20px; }
.result-done strong { color: var(--mint); }
.done-roi { font-size: 12.5px; color: var(--muted); margin-top: 16px; }

/* ── BENCHMARK NOTE ─────────────────────────────────────────── */
.bench { max-width: 62ch; margin: 22px auto 0; text-align: center; font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* ── MEANS ──────────────────────────────────────────────────── */
.means { padding: 68px 0 40px; }
.means > .container > h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem); color: var(--off-white); font-weight: 800;
  letter-spacing: -0.015em; max-width: 22ch; margin-bottom: 34px; line-height: 1.15;
}
.means-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mean {
  padding: 26px 22px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(28,49,89,0.35), rgba(14,27,49,0.3));
  border: 1px solid rgba(132,150,176,0.16);
}
.mean-no {
  display: inline-block; font-weight: 900; font-size: 13px; letter-spacing: 0.1em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.mean h3 { font-size: 1.12rem; color: var(--off-white); font-weight: 700; margin-bottom: 8px; }
.mean p { font-size: 14.5px; color: #9FB0C9; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer { padding: 50px 0 44px; border-top: 1px solid rgba(132,150,176,0.14); margin-top: 40px; }
.footer-inner { text-align: center; }
.footer .brand { justify-content: center; margin-bottom: 16px; }
.footer-line { font-size: 14.5px; color: #A9B8D0; max-width: 46ch; margin: 0 auto 14px; }
.footer-fine { font-size: 12px; color: var(--muted); }

/* ── MOTION ─────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); animation: fade-up 0.7s var(--ease) forwards; animation-delay: calc(var(--d) * 90ms + 60ms); }
@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }
.result-figure.locked .lock { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .result-done { animation: none; opacity: 1; transform: none; }
  .result-figure.locked .lock { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 820px) {
  .calc-card { grid-template-columns: 1fr; }
  .calc-result { border-left: 0; border-top: 1px solid rgba(132,150,176,0.18); }
  .means-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { padding: 16px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav-tag { text-align: left; }
  .hero { padding: 30px 0 20px; }
  .calc-inputs, .calc-result { padding: 26px 20px; }
  .btn { width: 100%; }
  .lede { max-width: none; }
}
