/* ============================================================
   Promo Box brand audit.

   Magnetic's homepage system, narrowed to one job. Mobile first for
   real: this is opened from a phone, in a truck, from a DM. Every
   tap target is at least 48px and nothing needs a horizontal scroll.
   ============================================================ */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/inter-700.woff2') format('woff2'); }

:root {
  --bg: #EEEEEE;
  --card: #FDFDFD;
  --panel: #F7F7F7;
  --ink: #1C1C1C;
  --dim: #575757;
  --faint: #8A8A8A;
  --line: rgba(0,0,0,.09);
  --accent: #2F6BFF;
  --accent-soft: #E4ECFF;
  --accent-ink: #1B4FC4;
  --green: #16B70D;
  --r: 26px;
  --r-sm: 16px;
  --shadow: 0 1px 2px rgba(12,38,110,.05), 0 14px 38px rgba(12,38,110,.10);
  --shadow-blue: 0 8px 20px rgba(47,107,255,.34), 0 2px 6px rgba(47,107,255,.28), inset 0 1px 0 rgba(255,255,255,.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* The header is sticky, so anything scrolled to must clear it or the first
   line of the card ends up underneath the logo. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  /* Clears the fixed progress bar pinned to the top of the viewport. */
  padding-top: 4px;
  background: var(--bg); color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500; font-size: 16px; line-height: 1.45; letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }

.wrap { width: 100%; max-width: 620px; margin: 0 auto; padding: 0 20px; }

/* ---------- chrome ---------- */
.top { position: sticky; top: 4px; z-index: 40; background: rgba(238,238,238,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 12px; height: 58px; }
.mark { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.mark img { width: 26px; height: 26px; object-fit: contain; }
.top-call { margin-left: auto; font-weight: 600; font-size: 14.5px; color: var(--accent-ink); padding: 8px 14px; border-radius: 999px; background: var(--accent-soft); }

/* ---------- hero ---------- */
.hero {
  position: relative; padding: 40px 0 30px; color: #fff; overflow: hidden;
  background: radial-gradient(130% 100% at 50% 0%, #4C87FF 0%, #2F6BFF 46%, #1E52DB 100%);
}
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.26); margin-bottom: 16px;
}
.hero h1 { font-size: 31px; font-weight: 700; line-height: 1.12; letter-spacing: -0.038em; }
.hero h1 em { font-style: normal; opacity: .72; }
.lead { margin-top: 16px; font-size: 19px; font-weight: 600; letter-spacing: -0.025em; color: #fff; }
.sub { margin-top: 10px; font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.9); max-width: 38ch; }
.lead + .sub { margin-top: 8px; }
.trustline { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 20px; font-size: 12.5px; color: rgba(255,255,255,.82); }
.trustline i { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.5); }

/* ---------- progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: 4px; background: rgba(0,0,0,.10); overflow: hidden;
}
.progress i {
  display: block; height: 100%; width: 100%; background: var(--accent);
  transform: scaleX(0); transform-origin: left center; will-change: transform;
  transition: transform .34s cubic-bezier(.33,1,.68,1);
}

/* ---------- stage ---------- */
.stage-wrap { padding-top: 22px; padding-bottom: 60px; }
.q {
  background: var(--card); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 26px 22px 22px; opacity: 0; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s cubic-bezier(.33,1,.68,1);
}
.q.is-in { opacity: 1; transform: none; }
.q-step { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.q-title { font-size: 23px; font-weight: 700; line-height: 1.22; letter-spacing: -0.032em; }
.q-hint { margin-top: 8px; font-size: 14px; color: var(--dim); line-height: 1.45; }

.q-opts { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px;
  padding: 14px 16px; text-align: left; border-radius: var(--r-sm);
  background: var(--panel); border: 1.5px solid transparent; font-size: 16px; font-weight: 600;
  transition: border-color .14s ease, background .14s ease, transform .14s ease;
}
.opt::before {
  content: ''; flex: 0 0 auto; width: 21px; height: 21px; border-radius: 50%;
  border: 2px solid #C6C6C6; transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
.opt:active { transform: scale(.985); }
.opt:hover { background: #F1F1F1; }
.opt.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.opt.is-on::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3.5px #fff; }

.field {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: var(--r-sm);
  background: var(--panel); border: 1.5px solid var(--line); font-size: 16px; font-weight: 500;
  appearance: none; -webkit-appearance: none;
}
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,107,255,.2); }
.q-select { margin-top: 18px; position: relative; }
.q-select::after {
  content: ''; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 15px 26px; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.015em;
  transition: transform .15s ease, filter .15s ease, opacity .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; }
.btn-blue { background: var(--accent); color: #fff; box-shadow: var(--shadow-blue); }
.btn-blue:hover:not(:disabled) { filter: brightness(1.06); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 6px 14px rgba(0,0,0,.22); }
.btn-ghost { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-wide { width: 100%; }
.q-next { width: 100%; margin-top: 16px; }
.q-back { display: block; margin: 16px auto 0; font-size: 14px; font-weight: 600; color: var(--faint); padding: 10px 16px; }
.q-back:hover { color: var(--ink); }

/* ---------- computing ---------- */
.compute { text-align: center; padding: 26px 0 10px; }
.spin {
  width: 30px; height: 30px; margin: 0 auto 18px; border-radius: 50%;
  border: 3px solid rgba(0,0,0,.1); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- score ---------- */
.ring { display: flex; align-items: baseline; gap: 12px; margin: 20px 0 4px; }
.ring-num { display: flex; align-items: baseline; gap: 3px; }
.ring-num span { font-size: 58px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.ring-num small { font-size: 17px; font-weight: 600; color: var(--faint); }
.ring-grade { margin-left: auto; padding: 8px 16px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 15px; }

.bars { margin-top: 20px; display: flex; flex-direction: column; gap: 15px; }
.bar-head { display: flex; align-items: baseline; gap: 10px; font-size: 14.5px; font-weight: 600; }
.bar-head b { margin-left: auto; font-variant-numeric: tabular-nums; }
.bar-track { margin-top: 7px; height: 8px; border-radius: 999px; background: #E6E6E6; overflow: hidden; }
.bar-track i { display: block; height: 100%; width: 100%; background: var(--accent); border-radius: 999px; transform-origin: left center; transition: transform .6s cubic-bezier(.33,1,.68,1); }
.bar-note { margin-top: 6px; font-size: 13px; color: var(--dim); }
.bar-row.is-locked { filter: blur(6px); opacity: .55; user-select: none; pointer-events: none; }

.lockbox { margin-top: 20px; padding: 18px; border-radius: var(--r-sm); background: var(--accent-soft); }
.lock-line { font-size: 16px; font-weight: 600; color: var(--accent-ink); line-height: 1.4; }
.lock-sub { margin-top: 6px; font-size: 14px; color: var(--accent-ink); opacity: .82; }

/* ---------- opt in ---------- */
.optin { margin-top: 20px; display: flex; flex-direction: column; gap: 13px; }
.optin h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.028em; }
.optin label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: var(--dim); }
.opt-company span { font-weight: 500; color: var(--faint); }
.optin-note { font-size: 12.5px; color: var(--faint); text-align: center; }

/* ---------- report ---------- */
.report .ring.is-open .ring-num span { color: var(--accent); }
.cost { margin-top: 24px; padding: 22px 20px; border-radius: var(--r-sm); background: var(--ink); color: #fff; }
.cost-head { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; opacity: .62; }
.cost-num { font-size: 42px; font-weight: 700; letter-spacing: -0.045em; line-height: 1.05; margin-top: 8px; }
.cost-sub { font-size: 14.5px; opacity: .8; margin-top: 3px; }
.cost-math { margin-top: 14px; font-size: 14px; line-height: 1.5; opacity: .9; }
.cost-fine { margin-top: 10px; font-size: 11.5px; line-height: 1.45; opacity: .5; }

.plan { margin-top: 26px; }
.plan-head { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.step { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.step-n { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.step-body { min-width: 0; }
.step-top { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.step-body h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.028em; line-height: 1.25; }
.step-score { font-size: 12px; font-weight: 600; color: var(--faint); }
.step-body p { font-size: 14.5px; line-height: 1.5; color: var(--dim); }
.step-do { margin-top: 9px; color: var(--ink) !important; }
.step-do b { color: var(--accent-ink); }

.notes { margin-top: 24px; padding: 18px; border-radius: var(--r-sm); background: var(--panel); }
.note { font-size: 14.5px; line-height: 1.5; color: var(--dim); }
.note + .note { margin-top: 10px; }

.cta { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.cta-card { padding: 22px 20px; border-radius: var(--r-sm); background: var(--accent-soft); }
.cta-card.is-alt { background: var(--panel); }
.cta-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.03em; }
.cta-card p { margin: 8px 0 16px; font-size: 14.5px; line-height: 1.5; color: var(--dim); }
.cta-card .btn + .btn { margin-top: 9px; }

/* ---------- foot ---------- */
.foot { padding: 28px 0 40px; text-align: center; font-size: 13px; color: var(--dim); }
.foot a { color: var(--accent-ink); font-weight: 600; }
.foot-fine { margin-top: 6px; font-size: 12px; color: var(--faint); }

/* ---------- wider screens ---------- */
@media (min-width: 640px) {
  .hero { padding: 60px 0 44px; }
  .hero h1 { font-size: 42px; }
  .sub { font-size: 17px; }
  .q { padding: 34px 32px 28px; }
  .q-title { font-size: 27px; }
  .ring-num span { font-size: 70px; }
  .step-top { flex-direction: row; align-items: baseline; }
  .step-score { margin-left: auto; }
  .cta { flex-direction: row; }
  .cta-card { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
