/* ============================================================
   Installer MOT (/installer-mot)
   Brand language from the /forecast fold: navy radial, green glow, masked grid,
   soft orbs. One fixed backdrop sits behind every dark stage; the light results
   sections cover it. Mobile-first; colours from style.css tokens, plus the three
   /forecast navy stops and a "cold" blue for the thermometer, scoped below.
   ============================================================ */

.mot-body {
  --mot-navy-hi: #243349;
  --mot-navy: #161d2b;
  --mot-navy-lo: #0d121b;
  --mot-cold: #7cc4f5;
  --mot-glass: rgba(255,255,255,0.045);
  --mot-glass-line: rgba(255,255,255,0.1);
  background: var(--mot-navy-lo);
  color: var(--white);
  /* Footer always sits on the bottom edge, however short the current stage is. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
/* Stages and pills set their own display, so [hidden] needs restating. */
.mot-body [hidden] { display: none; }

.mot-wrap { position: relative; width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .mot-wrap { padding: 0 24px; } }
main { position: relative; z-index: 1; flex: 1 0 auto; display: flex; flex-direction: column; }
main > .mot-stage { flex: 1 0 auto; }

/* ── Backdrop ── */
.mot-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: radial-gradient(125% 90% at 50% -12%, var(--mot-navy-hi) 0%, var(--mot-navy) 46%, var(--mot-navy-lo) 100%); }
.mot-bg-glow { position: absolute; top: -30%; left: 50%; width: 1100px; max-width: 160%; height: 700px; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, rgba(74,158,79,0.4) 0%, rgba(74,158,79,0) 70%); filter: blur(24px); }
.mot-bg-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 46px 46px; -webkit-mask-image: radial-gradient(80% 70% at 50% 18%, #000 0%, transparent 78%); mask-image: radial-gradient(80% 70% at 50% 18%, #000 0%, transparent 78%); }
.mot-orb { position: absolute; border-radius: 50%; filter: blur(14px); }
.mot-orb-a { width: 620px; height: 620px; right: -220px; top: 18%; background: radial-gradient(closest-side, rgba(125,216,127,0.22), rgba(125,216,127,0.06) 50%, transparent 72%); animation: motDrift 22s ease-in-out infinite; }
.mot-orb-b { width: 420px; height: 420px; left: -180px; bottom: -120px; background: radial-gradient(closest-side, rgba(255,255,255,0.12), transparent 70%); animation: motDrift 28s ease-in-out infinite reverse; }
.mot-orb-c { width: 260px; height: 260px; left: 38%; top: 62%; background: radial-gradient(closest-side, rgba(74,158,79,0.2), transparent 70%); animation: motDrift 18s ease-in-out infinite; animation-delay: -6s; }

/* ── Top bar ── */
.mot-bar { position: sticky; top: 0; z-index: 50; background: rgba(13,18,27,0.6); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); border-bottom: 1px solid rgba(255,255,255,0.06); }
.mot-bar-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.mot-bar-logo img { height: 24px; width: auto; display: block; }
.mot-badge { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-mid); background: rgba(74,158,79,0.14); border: 1px solid rgba(125,216,127,0.35); border-radius: 999px; padding: 6px 12px; }

/* ── Shared bits ── */
.mot-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-mid); background: rgba(74,158,79,0.1); border: 1px solid rgba(125,216,127,0.25); border-radius: 999px; padding: 7px 14px; }
.mot-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-mid); animation: motPulse 1.8s ease-out infinite; }
.mot-label { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.mot-card { background: var(--white); color: var(--charcoal); border-radius: 22px; padding: 24px; box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 20px 60px rgba(0,0,0,0.45), 0 0 80px rgba(74,158,79,0.12); }
@media (min-width: 768px) { .mot-card { padding: 32px; } }

.mot-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 12px; padding: 16px 28px; font: 700 16px/1 var(--font); cursor: pointer; text-decoration: none; transition: all 0.2s ease; }
.mot-btn svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.mot-btn-primary { background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); color: var(--white); box-shadow: 0 6px 18px rgba(74,158,79,0.4), inset 0 1px 0 rgba(255,255,255,0.2); }
.mot-btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(74,158,79,0.5), inset 0 1px 0 rgba(255,255,255,0.2); }
.mot-btn-primary:hover:not(:disabled) svg { transform: translateX(3px); }
.mot-btn:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }
.mot-btn-block { width: 100%; }

.mot-pill { display: inline-block; flex: none; font-size: 12px; font-style: normal; font-weight: 800; padding: 6px 12px; border-radius: 999px; line-height: 1; }
.mot-pill.is-pass { background: var(--green-mid); color: var(--charcoal-dark); }
.mot-pill.is-advisory { background: var(--gold); color: var(--charcoal-dark); }
.mot-pill.is-fix { background: var(--red-header); color: var(--white); }

.mot-stage.is-in { animation: motStageIn 0.55s cubic-bezier(.2,.8,.2,1) both; }

/* ── 1. Intro ── */
.mot-intro { padding: 36px 0 64px; }
.mot-intro-grid { display: grid; gap: 28px; }
@media (min-width: 1024px) {
  .mot-intro { padding: 64px 0 96px; }
  .mot-intro-grid { grid-template-columns: 1.1fr 0.9fr; grid-template-rows: auto 1fr; column-gap: 64px; row-gap: 0; align-items: start; }
  .mot-intro-copy { grid-column: 1; grid-row: 1; }
  .mot-form-card { grid-column: 2; grid-row: 1 / span 2; }
  .mot-show { grid-column: 1; grid-row: 2; }
}
.mot-intro h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; margin: 18px 0 16px; }
.mot-intro h1 span { background: linear-gradient(100deg, var(--green-mid) 0%, var(--green) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mot-kicker { font-size: clamp(19px, 2.2vw, 23px); font-weight: 700; color: var(--white); margin-bottom: 10px; }
.mot-lede { font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: rgba(255,255,255,0.78); max-width: 540px; }

.mot-show { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; }
@media (min-width: 400px) { .mot-show { grid-template-columns: 128px 1fr; } }
@media (min-width: 768px) { .mot-show { grid-template-columns: 190px 1fr; gap: 28px; margin-top: 12px; } }
.mot-show-phone { position: relative; }
.mot-show-phone::before { content: ""; position: absolute; inset: 12% -18% 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(74,158,79,0.5), transparent); filter: blur(14px); }
.mot-show-phone img { position: relative; display: block; width: 100%; height: auto; animation: motFloat 6s ease-in-out infinite; }
.mot-gets { list-style: none; display: grid; gap: 14px; }
.mot-gets li { display: flex; gap: 14px; align-items: flex-start; }
.mot-gets-tick { flex: none; position: relative; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: rgba(125,216,127,0.15); border: 1px solid rgba(125,216,127,0.4); }
.mot-gets-tick::after { content: ""; position: absolute; left: 8px; top: 4px; width: 5px; height: 10px; border: solid var(--green-mid); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mot-gets b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.mot-gets small { display: none; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.6); margin-top: 2px; }

.mot-form-card { position: relative; }
.mot-form-card::before { content: ""; position: absolute; inset: -1px; border-radius: 23px; padding: 1px; background: linear-gradient(160deg, rgba(125,216,127,0.8), rgba(125,216,127,0) 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.mot-form-card h2 { font-size: 24px; font-weight: 800; line-height: 1.2; }
.mot-welcome { display: inline-block; font-size: 13px; font-weight: 700; color: var(--green-dark); background: var(--green-light); border: 1px solid var(--green-border); border-radius: 999px; padding: 5px 12px; margin-bottom: 10px; }
.mot-form-sub { font-size: 14px; color: var(--grey-text); margin: 6px 0 18px; line-height: 1.5; }
.mot-field { border: 0; margin: 0 0 12px; padding: 0; min-width: 0; }
.mot-field label, .mot-field legend { display: block; font-size: 13px; font-weight: 700; color: var(--charcoal); margin-bottom: 6px; padding: 0; }
.mot-field input[type="text"], .mot-field input[type="email"], .mot-field input[type="tel"] { width: 100%; font: 16px var(--font); color: var(--charcoal); padding: 13px 14px; border: 1.5px solid var(--grey-mid); border-radius: 10px; background: var(--grey-bg); transition: all 0.2s ease; }
.mot-field input:focus { outline: none; border-color: var(--green); background: var(--white); box-shadow: 0 0 0 4px rgba(74,158,79,0.15); }
.mot-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mot-chip { position: relative; cursor: pointer; }
.mot-chip input { position: absolute; opacity: 0; pointer-events: none; }
.mot-chip span { display: inline-block; font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--grey-mid); background: var(--white); transition: all 0.2s ease; }
.mot-chip:hover span { border-color: var(--green); }
.mot-chip input:checked + span { background: var(--green); border-color: var(--green); color: var(--white); box-shadow: 0 4px 12px rgba(74,158,79,0.3); }
.mot-chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(74,158,79,0.25); }
.mot-error { font-size: 14px; font-weight: 600; color: var(--red-header); margin: 4px 0 10px; }
.mot-error:empty { margin: 0; }
.mot-form-note { font-size: 12px; line-height: 1.5; color: var(--grey-text); text-align: center; margin-top: 12px; }
.mot-form-note a { color: var(--charcoal); }

/* ── 2. Quiz ── */
.mot-quiz { padding: 16px 0 32px; }
.mot-quiz-grid { display: grid; gap: 16px; }
@media (min-width: 1024px) { .mot-quiz { display: flex; align-items: center; padding: 48px 0; } .mot-quiz-grid { grid-template-columns: 300px 1fr; gap: 48px; align-items: start; } }

/* Live reading panel: compact strip on phones, full panel on desktop */
.mot-panel { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 4px 14px; padding: 12px 16px; background: var(--mot-glass); border: 1px solid var(--mot-glass-line); border-radius: 18px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
@media (min-width: 1024px) { .mot-panel { display: block; padding: 24px; border-radius: 22px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 20px 50px rgba(0,0,0,0.25); } }
.mot-dial { position: relative; grid-row: 1 / span 2; }
.mot-dial svg { display: block; width: 100%; height: auto; overflow: visible; }
.mot-dial path { fill: none; stroke-width: 12; stroke-linecap: round; }
.mot-dial-track { stroke: rgba(255,255,255,0.08); }
.mot-dial-arc { stroke: url(#mot-dial-grad); opacity: 0.9; }
.mot-stop-fix { stop-color: var(--red-header); }
.mot-stop-adv { stop-color: var(--gold); }
.mot-stop-pass { stop-color: var(--green-mid); }
.mot-dial-ticks line { stroke: rgba(255,255,255,0.28); stroke-width: 1.5; }
.mot-needle { transform-origin: 100px 100px; transition: transform 0.9s cubic-bezier(.3,1.5,.5,1); }
.mot-needle path { stroke: var(--white); stroke-width: 4; stroke-linecap: round; }
.mot-needle circle { fill: var(--white); stroke: var(--mot-navy); stroke-width: 3; }
.mot-needle.is-idle { animation: motIdle 2.4s ease-in-out infinite; }
.mot-dial-read { text-align: center; margin-top: -6px; }
.mot-dial-read b { display: block; font-size: 22px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.mot-dial-read b.is-pop { animation: motPop 0.4s cubic-bezier(.3,1.6,.5,1); }
.mot-dial-read span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-top: 4px; }
@media (min-width: 1024px) { .mot-dial { max-width: 220px; margin: 0 auto; } .mot-dial-read b { font-size: 40px; } }
.mot-panel-quip { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.8); line-height: 1.35; transition: color 0.2s ease; }
.mot-panel-quip.s3 { color: var(--green-mid); }
.mot-panel-quip.s0 { color: var(--gold); }
@media (min-width: 1024px) { .mot-panel-quip { text-align: center; margin: 14px 0 18px; min-height: 20px; } }
.mot-panel-areas { display: none; list-style: none; }
@media (min-width: 1024px) { .mot-panel-areas { display: grid; gap: 4px; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 14px; } }
.mot-panel-areas li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.4); padding: 8px 10px; border-radius: 10px; transition: all 0.3s ease; }
.mot-panel-areas li svg { width: 16px; height: 16px; flex: none; }
.mot-panel-areas li span { flex: 1; }
.mot-panel-areas li.is-current { color: var(--white); background: rgba(255,255,255,0.06); }
.mot-panel-areas li.is-current svg { color: var(--green-mid); }
.mot-panel-areas li.is-done { color: rgba(255,255,255,0.85); }
.mot-panel-areas .mot-pill:empty { display: none; }
.mot-pill.is-stamped { animation: motStamp 0.5s cubic-bezier(.3,1.6,.5,1) both; }

.mot-play { min-width: 0; }
.mot-quiz-top { display: flex; align-items: center; gap: 12px; }
.mot-back { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.05); color: var(--white); cursor: pointer; transition: all 0.2s ease; }
.mot-back svg { width: 18px; height: 18px; }
.mot-back:hover:not(:disabled) { background: rgba(255,255,255,0.12); transform: translateX(-2px); }
.mot-back:disabled { opacity: 0.3; cursor: default; }
.mot-progress { flex: 1; height: 8px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.mot-progress b { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--green-mid)); box-shadow: 0 0 12px rgba(125,216,127,0.6); transition: width 0.5s cubic-bezier(.2,.8,.2,1); }
.mot-count { flex: none; font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.55); font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }

.mot-deck { position: relative; padding-top: 22px; }
@media (min-width: 1024px) { .mot-deck { padding-top: 32px; } }
.mot-q { width: 100%; animation: motCardIn 0.45s cubic-bezier(.2,.8,.2,1) both; }
.mot-q[data-dir="back"] { animation-name: motCardBack; }
.mot-q.is-out { animation: motCardOut 0.23s ease-in both; }
.mot-q-area { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-mid); }
.mot-q-area svg { width: 15px; height: 15px; }
.mot-q-title { font-size: clamp(26px, 4.2vw, 40px); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin: 10px 0 6px; max-width: 18em; }
.mot-q-sub { font-size: 15px; color: rgba(255,255,255,0.55); }

/* Icon tiles */
.mot-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
@media (min-width: 768px) { .mot-opts { gap: 14px; } .mot-opts.is-3, .mot-opts.is-6 { grid-template-columns: repeat(3, 1fr); } .mot-opts.is-big { grid-template-columns: repeat(4, 1fr); } }
.mot-opts.is-3 .mot-opt:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 768px) { .mot-opts.is-3 .mot-opt:last-child:nth-child(odd) { grid-column: auto; } }
.mot-opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; min-height: 118px; text-align: left; font: inherit; color: var(--white); padding: 16px; border-radius: 18px; border: 1.5px solid rgba(255,255,255,0.1); background: linear-gradient(160deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%); cursor: pointer; overflow: hidden; transition: all 0.2s ease; animation: motOptIn 0.45s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0ms); }
@media (min-width: 768px) { .mot-opt { min-height: 150px; padding: 20px; } }
.mot-opt::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 0% 0%, rgba(125,216,127,0.25), transparent 60%); opacity: 0; transition: opacity 0.25s ease; }
.mot-opt:hover { border-color: rgba(125,216,127,0.5); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.3); }
.mot-opt:hover::before { opacity: 0.6; }
.mot-opt:active { transform: scale(0.97); }
.mot-opt:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(125,216,127,0.35); }
.mot-opt > * { position: relative; }
.mot-opt-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,0.07); color: var(--green-mid); margin-bottom: 8px; transition: all 0.25s ease; }
.mot-opt-icon svg { width: 22px; height: 22px; }
.mot-opt-big { font-size: clamp(34px, 5vw, 46px); font-weight: 900; line-height: 1; letter-spacing: -0.03em; color: var(--white); margin-bottom: 6px; }
.mot-opt-t { font-size: 16px; font-weight: 700; line-height: 1.25; }
.mot-opt-d { font-size: 13px; line-height: 1.35; color: rgba(255,255,255,0.55); }
.mot-opt kbd { position: absolute; right: 14px; bottom: 12px; font: 700 11px var(--font); color: rgba(255,255,255,0.3); display: none; }
@media (min-width: 1024px) { .mot-opt kbd { display: block; } }
.mot-opt-tick { position: absolute; right: 14px; top: 14px; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.2); transition: all 0.2s ease; }
.is-multi .mot-opt-tick { border-radius: 7px; }
.mot-opt.is-on { border-color: var(--green-mid); background: linear-gradient(160deg, rgba(74,158,79,0.35) 0%, rgba(74,158,79,0.12) 100%); box-shadow: 0 10px 30px rgba(74,158,79,0.25), 0 0 0 1px var(--green-mid); }
.mot-opt.is-on::before { opacity: 1; }
.mot-opt.is-on .mot-opt-icon { background: var(--green-mid); color: var(--charcoal-dark); transform: scale(1.06) rotate(-4deg); }
.mot-opt.is-on .mot-opt-tick { background: var(--green-mid); border-color: var(--green-mid); animation: motTick 0.35s cubic-bezier(.3,1.6,.5,1); }
.mot-opt.is-on .mot-opt-tick::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid var(--charcoal-dark); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.mot-next { margin-top: 22px; width: 100%; }
@media (min-width: 768px) { .mot-next { width: auto; min-width: 200px; } }

/* Scales: thermometer + stopwatch */
.mot-scale { position: relative; margin-top: 24px; padding: 24px 20px 20px; border-radius: 22px; background: linear-gradient(160deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%); border: 1px solid var(--mot-glass-line); overflow: hidden; --pct: 33%; }
@media (min-width: 768px) { .mot-scale { padding: 32px 32px 26px; } }
.mot-scale-val { position: relative; display: block; font-size: clamp(34px, 6vw, 52px); font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.mot-scale-val.is-pop { animation: motPop 0.3s cubic-bezier(.3,1.6,.5,1); }
.mot-scale-d { position: relative; font-size: 15px; color: rgba(255,255,255,0.6); margin: 8px 0 22px; min-height: 22px; }
.mot-scale-row { position: relative; display: flex; align-items: center; gap: 12px; }
.mot-end { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.mot-end svg { width: 20px; height: 20px; }
.mot-end.is-cold { color: var(--mot-cold); background: rgba(124,196,245,0.12); }
.mot-end.is-hot { color: var(--red-header); background: rgba(197,48,48,0.15); }
.mot-scale input[type="range"] { flex: 1; -webkit-appearance: none; appearance: none; height: 14px; border-radius: 99px; outline: none; cursor: pointer; background: rgba(255,255,255,0.1); }
.mot-scale input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 36px; height: 36px; border-radius: 50%; background: var(--white); border: 6px solid var(--green-mid); box-shadow: 0 6px 18px rgba(0,0,0,0.4); transition: transform 0.2s ease; }
.mot-scale input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 6px solid var(--green-mid); box-shadow: 0 6px 18px rgba(0,0,0,0.4); }
.mot-scale input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.mot-scale input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(125,216,127,0.35); }
.mot-scale-ticks { position: relative; height: 20px; margin: 14px 18px 0; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.45); }
.mot-scale-thermo .mot-scale-ticks { margin-left: 66px; margin-right: 66px; }
.mot-scale-ticks span { position: absolute; top: 0; left: var(--at); transform: translateX(-50%); white-space: nowrap; transition: color 0.2s ease; }
.mot-scale-ticks span:first-child { transform: translateX(-18px); }
.mot-scale-ticks span:last-child { transform: translateX(calc(-100% + 18px)); }
.mot-scale-ticks span:not(:first-child):not(:last-child) { display: none; }
.mot-scale-ticks span.is-on { color: var(--white); }
@media (min-width: 768px) { .mot-scale-ticks span:not(:first-child):not(:last-child) { display: block; } }

.mot-scale-thermo input[type="range"] { background: linear-gradient(90deg, var(--mot-cold) 0%, var(--gold) 55%, var(--red-header) 100%); box-shadow: inset 0 0 0 2px rgba(0,0,0,0.15); }
.mot-scale-thermo input[type="range"]::-webkit-slider-thumb { border-color: var(--white); background: var(--gold); }
.mot-scale-thermo[data-v="0"] input[type="range"]::-webkit-slider-thumb { background: var(--mot-cold); }
.mot-scale-thermo[data-v="3"] input[type="range"]::-webkit-slider-thumb { background: var(--red-header); }
.mot-thermo-glow { position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; filter: blur(30px); opacity: 0.55; transition: background 0.4s ease; background: radial-gradient(closest-side, var(--gold), transparent); }
.mot-scale-thermo[data-v="0"] .mot-thermo-glow { background: radial-gradient(closest-side, var(--mot-cold), transparent); }
.mot-scale-thermo[data-v="3"] .mot-thermo-glow { background: radial-gradient(closest-side, var(--red-header), transparent); }
.mot-scale-thermo[data-v="0"] .mot-scale-val { color: var(--mot-cold); }
.mot-scale-thermo[data-v="1"] .mot-scale-val, .mot-scale-thermo[data-v="2"] .mot-scale-val { color: var(--gold); }
.mot-scale-thermo[data-v="3"] .mot-scale-val { color: var(--red-header); text-shadow: 0 0 24px rgba(197,48,48,0.5); }

.mot-scale-clock input[type="range"] { background: linear-gradient(90deg, var(--green-mid) 0%, var(--green) var(--pct), rgba(255,255,255,0.1) var(--pct)); }
.mot-scale-clock .mot-scale-val { color: var(--green-mid); }
.mot-scale-clock[data-v="3"] .mot-scale-val, .mot-scale-clock[data-v="4"] .mot-scale-val { color: var(--gold); }
.mot-watch { position: absolute; right: 16px; top: 16px; width: 88px; height: 88px; }
@media (min-width: 768px) { .mot-watch { width: 120px; height: 120px; right: 28px; top: 24px; } }
.mot-watch svg { width: 100%; height: 100%; overflow: visible; }
.mot-watch-face { fill: rgba(255,255,255,0.04); stroke: rgba(255,255,255,0.2); stroke-width: 3; }
.mot-watch-arc { fill: none; stroke: var(--green-mid); stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(125,216,127,0.6)); }
.mot-scale-clock[data-v="3"] .mot-watch-arc, .mot-scale-clock[data-v="4"] .mot-watch-arc { stroke: var(--gold); }
.mot-watch rect { fill: rgba(255,255,255,0.3); }
.mot-watch circle:last-child { fill: var(--white); }
.mot-watch-hand { stroke: var(--white); stroke-width: 3.5; stroke-linecap: round; transform-origin: 50px 54px; transition: transform 0.4s cubic-bezier(.3,1.5,.5,1); }

/* Stars */
.mot-stars { display: flex; gap: 6px; margin-top: 28px; }
@media (min-width: 768px) { .mot-stars { gap: 14px; } }
.mot-star { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 4px 14px; border-radius: 18px; border: 1.5px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.55); font: 700 13px var(--font); cursor: pointer; transition: all 0.2s ease; animation: motOptIn 0.45s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0ms); }
@media (min-width: 768px) { .mot-star { font-size: 15px; padding: 22px 8px 18px; } }
.mot-star svg { width: 100%; max-width: 56px; height: auto; fill: rgba(255,255,255,0.1); stroke: rgba(255,255,255,0.25); stroke-width: 1.2; stroke-linejoin: round; transition: all 0.2s ease; }
.mot-star:hover { transform: translateY(-3px); }
.mot-star:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(125,216,127,0.35); }
.mot-star.is-hover svg { fill: rgba(251,191,36,0.5); stroke: var(--gold); }
.mot-star.is-on { border-color: rgba(251,191,36,0.5); background: rgba(251,191,36,0.08); color: var(--white); }
.mot-star.is-on svg { fill: var(--gold); stroke: var(--gold); filter: drop-shadow(0 0 10px rgba(251,191,36,0.55)); animation: motTick 0.4s cubic-bezier(.3,1.6,.5,1); }

.mot-keys { display: none; }
@media (min-width: 1024px) {
  .mot-keys { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.4); }
  .mot-keys kbd { min-width: 22px; height: 22px; display: inline-grid; place-items: center; padding: 0 5px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.18); border-bottom-width: 2px; font: 700 11px var(--font); color: rgba(255,255,255,0.7); }
  .mot-keys span { margin: 0 4px; }
}

/* Area-checked toast */
.mot-toast { position: fixed; left: 50%; top: 68px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 999px; background: var(--white); color: var(--charcoal); font-size: 14px; font-weight: 700; white-space: nowrap; box-shadow: 0 12px 34px rgba(0,0,0,0.4); opacity: 0; transform: translate(-50%, -14px) scale(0.96); pointer-events: none; transition: all 0.35s cubic-bezier(.2,.8,.2,1); }
.mot-toast svg { width: 16px; height: 16px; color: var(--green); }
.mot-toast.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.mot-toast.is-on .mot-pill { animation: motStamp 0.5s cubic-bezier(.3,1.6,.5,1) 0.15s both; }
@media (min-width: 1024px) { .mot-toast { display: none; } }

/* ── 3. Loading ── */
/* Details, asked after the last question (19 Oct 2026): one centred card. */
.mot-details { padding: 32px 0 64px; }
.mot-details-inner { max-width: 520px; }
.mot-details-eyebrow { color: var(--green-dark); margin-bottom: 12px; }
.mot-details .mot-restart.mot-details-back { margin-top: 14px; color: var(--grey-text); }
.mot-details .mot-restart.mot-details-back:hover { color: var(--charcoal); }
@media (min-width: 768px) { .mot-details { padding: 64px 0 96px; } .mot-details .mot-card { padding: 32px; } }
.mot-loading { display: grid; place-items: center; padding: 40px 0; }
.mot-loading-inner { max-width: 520px; text-align: center; }
.mot-gauge { position: relative; width: 132px; height: 132px; margin: 0 auto 24px; }
.mot-gauge::before { content: ""; position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(closest-side, rgba(74,158,79,0.4), transparent); filter: blur(10px); }
.mot-gauge svg { position: relative; width: 100%; height: 100%; }
.mot-gauge circle { fill: none; stroke-width: 8; }
.mot-gauge-track { stroke: rgba(255,255,255,0.08); }
.mot-gauge-spin { stroke: var(--green-mid); stroke-linecap: round; stroke-dasharray: 90 327; transform-origin: 60px 60px; animation: motSpin 1s linear infinite; }
.mot-gauge .mot-gauge-icon { position: absolute; inset: 0; margin: auto; width: 42px; height: 42px; color: var(--white); animation: motWrench 1.2s ease-in-out infinite; }
.mot-loading h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; margin-bottom: 20px; }
.mot-checks { list-style: none; display: grid; gap: 6px; text-align: left; padding: 12px; border-radius: 20px; background: var(--mot-glass); border: 1px solid var(--mot-glass-line); }
.mot-checks li { position: relative; font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.3); padding: 10px 14px 10px 44px; border-radius: 12px; transition: all 0.3s ease; }
.mot-checks li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.15); }
.mot-checks li.is-active { color: var(--white); background: rgba(255,255,255,0.06); }
.mot-checks li.is-active::before { border-color: var(--green-mid); border-right-color: transparent; animation: motSpin 0.7s linear infinite; }
.mot-checks li.is-done { color: rgba(255,255,255,0.85); }
.mot-checks li.is-done::before { background: var(--green-mid); border-color: var(--green-mid); animation: motTick 0.35s cubic-bezier(.3,1.6,.5,1); }
.mot-checks li.is-done::after { content: ""; position: absolute; left: 20px; top: 50%; width: 5px; height: 9px; margin-top: -6px; border: solid var(--charcoal-dark); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ── Score ring ── */
.mot-ring { position: relative; flex: none; }
.mot-ring-sm { width: 104px; height: 104px; }
.mot-ring-lg { width: 150px; height: 150px; }
@media (min-width: 768px) { .mot-ring-lg { width: 180px; height: 180px; } }
.mot-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.mot-ring circle { fill: none; stroke-width: 9; }
.mot-ring-track { stroke: rgba(255,255,255,0.1); }
.mot-ring-val { stroke: var(--green-mid); stroke-linecap: round; transition: stroke-dashoffset 1.4s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 0 8px rgba(125,216,127,0.5)); }
.mot-ring.is-advisory .mot-ring-val { stroke: var(--gold); filter: drop-shadow(0 0 8px rgba(251,191,36,0.5)); }
.mot-ring.is-fix .mot-ring-val { stroke: var(--red-header); filter: drop-shadow(0 0 8px rgba(197,48,48,0.6)); }
.mot-ring-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.mot-ring-num b { font-size: 34px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.mot-ring-num i { font-style: normal; font-size: 13px; font-weight: 700; opacity: 0.6; margin: 10px 0 0 2px; }
.mot-ring-lg .mot-ring-num b { font-size: 48px; }
@media (min-width: 768px) { .mot-ring-lg .mot-ring-num b { font-size: 58px; } }
.mot-ring-lg .mot-ring-num i { font-size: 16px; margin-top: 18px; }

/* ── 4. Results ── */
.mot-res-top { padding: 32px 0 56px; }
.mot-res-top-grid { display: grid; gap: 28px; }
.mot-res-top-grid > * { min-width: 0; }
@media (min-width: 1024px) { .mot-res-top { padding: 56px 0 88px; } .mot-res-top-grid { grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; } }
.mot-res-teaser { display: flex; gap: 20px; align-items: flex-start; }
@media (min-width: 1024px) { .mot-res-teaser { flex-direction: column; position: sticky; top: 96px; } }
.mot-res-teaser h1 { font-size: clamp(26px, 3.8vw, 42px); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin: 12px 0 10px; }
.mot-res-verdict { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.75); }
.mot-jump { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 15px; font-weight: 700; color: var(--green-mid); text-decoration: none; transition: all 0.2s ease; }
.mot-jump svg { width: 16px; height: 16px; animation: motBob 1.6s ease-in-out infinite; }
.mot-jump:hover { color: var(--white); }
.mot-cal-card h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; line-height: 1.2; }
.mot-cal-sub { font-size: 15px; color: var(--grey-text); line-height: 1.6; margin: 8px 0 16px; }
.mot-cal-embed { margin: 0 -8px; }
.mot-cal-embed iframe { display: block; width: 100%; min-height: 640px; border: 0; }

/* Booking: three more MOT questions on dark glass (see api/book.js). Sized to sit beside the
   score in the hero: long time lists scroll inside the card instead of growing it. */
.mot-cal-card.is-glass { background: linear-gradient(170deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.025) 100%); color: var(--white); border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 60px rgba(0,0,0,0.45), 0 0 80px rgba(74,158,79,0.12); }
.mot-bk-eyebrow { margin-top: 22px; }
.mot-bk .mot-q-title { font-size: clamp(24px, 3vw, 32px); margin: 8px 0 6px; }
.mot-bk .mot-q-sub { font-size: 14.5px; line-height: 1.5; }
.mot-bk-deck { min-height: 380px; }
.mot-bk-loading { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 70px; }
.mot-bk-loading span { height: 120px; border-radius: 18px; background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.04) 100%); background-size: 200% 100%; animation: motShimmer 1.4s linear infinite; }
@keyframes motShimmer { to { background-position: -200% 0; } }

/* Step 1: day tiles */
.mot-bk-opts { margin-top: 18px; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mot-bk-day.mot-opt { min-height: 0; padding: 14px 14px 12px; gap: 2px; }
.mot-bk-dow { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-mid); }
.mot-bk-day .mot-opt-big { font-size: clamp(30px, 3.4vw, 40px); margin: 2px 0 0; }
.mot-bk-day .mot-opt-t { font-size: 14px; }
.mot-bk-day .mot-opt-d { font-size: 12px; }
.mot-bk-day .mot-opt-tick { width: 20px; height: 20px; right: 12px; top: 12px; }
.mot-bk-day.is-on .mot-opt-tick::after { left: 6px; top: 2px; }
.mot-bk-pager { display: flex; justify-content: space-between; margin-top: 12px; }
.mot-bk-link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0; font: 700 14px/1 var(--font); color: var(--green-mid); cursor: pointer; }
.mot-bk-link svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.mot-bk-link:hover svg { transform: translateX(3px); }
.mot-bk-pager [data-page="1"] { margin-left: auto; }

/* Step 2: time tiles */
.mot-bk-scroll { margin-top: 16px; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; padding: 4px 6px 4px 2px; margin-left: -2px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent; }
.mot-bk-part { margin-bottom: 14px; }
.mot-bk-part > span { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.mot-bk-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.mot-bk-time.mot-opt { min-height: 0; padding: 13px 8px; align-items: center; font-size: 16px; font-weight: 800; border-radius: 14px; }
.mot-bk-time.mot-opt:hover { transform: translateY(-2px); }

/* Step 3: the GHL form's questions, prefilled */
.mot-bk-form { margin-top: 16px; }
.mot-bk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 10px; margin-bottom: 14px; }
.mot-bk-wide { grid-column: 1 / -1; }
.mot-bk-field { display: block; min-width: 0; }
.mot-bk-field span { display: block; font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.7); margin-bottom: 5px; }
.mot-bk-kept { margin: 0; padding: 9px 0; font-size: 14px; line-height: 1.4; color: rgba(255,255,255,0.85); }
.mot-bk-new-phone { background: none; border: 0; padding: 0; font: 700 14px var(--font, inherit); color: var(--green-mid, #7dd87f); text-decoration: underline; cursor: pointer; }
.mot-bk-field input { width: 100%; font: 600 15px var(--font); color: var(--white); padding: 11px 12px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.05); transition: all 0.2s ease; }
.mot-bk-field input::placeholder { color: rgba(255,255,255,0.3); }
.mot-bk-field input:focus { outline: none; border-color: var(--green-mid); background-color: rgba(255,255,255,0.08); box-shadow: 0 0 0 4px rgba(125,216,127,0.18); }
.mot-bk-field input:placeholder-shown:not(:focus) { border-color: rgba(125,216,127,0.45); }
#mot-bk-go { white-space: normal; text-align: center; line-height: 1.3; }
#mot-bk-go.is-busy { opacity: 0.7; cursor: progress; }
.mot-bk-err { font-size: 14px; font-weight: 600; color: #fc8181; margin: 10px 0 0; }
.mot-bk-err:empty { display: none; }
.mot-bk-note { color: rgba(255,255,255,0.6); }
.mot-bk-note a { color: var(--white); }
@keyframes motBkIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Booked */
.mot-bk-done { text-align: center; padding: 48px 0 16px; }
.mot-bk-tick { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%); color: var(--white); box-shadow: 0 0 0 10px rgba(125,216,127,0.14), 0 14px 34px rgba(74,158,79,0.4); animation: motStamp 0.5s cubic-bezier(.3,1.6,.5,1) both; }
.mot-bk-tick svg { width: 34px; height: 34px; }
.mot-bk-when { font-size: 18px; font-weight: 800; color: var(--green-mid); margin: 0 0 6px; }
.mot-bk-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.mot-bk-next { display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; color: var(--white); text-decoration: none; border-radius: 12px; padding: 13.5px 20px; background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%); box-shadow: 0 8px 20px rgba(74,158,79,0.35); transition: all 0.2s ease; }
.mot-bk-next:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(74,158,79,0.45); }
.mot-bk-gcal { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--white); text-decoration: none; border: 1.5px solid rgba(255,255,255,0.2); border-radius: 12px; padding: 12px 18px; transition: all 0.2s ease; }
.mot-bk-gcal svg { width: 17px; height: 17px; color: var(--green-mid); }
.mot-bk-gcal:hover { border-color: var(--green-mid); background: rgba(74,158,79,0.12); }

@media (max-width: 420px) { .mot-bk-opts { gap: 8px; } .mot-bk-day.mot-opt { padding: 12px 10px 10px; } }
@media (prefers-reduced-motion: reduce) { .mot-bk-loading span, .mot-bk-more, .mot-bk-tick { animation: none; } }

.mot-res-board, .mot-res-opps, .mot-res-fixes { position: relative; padding: 56px 0; color: var(--charcoal); }
.mot-res-board, .mot-res-fixes { background: var(--grey-bg); }
.mot-res-opps { background: var(--white); }
@media (min-width: 1024px) { .mot-res-board, .mot-res-opps, .mot-res-fixes { padding: 88px 0; } }
.mot-res-board h2, .mot-res-opps h2, .mot-res-fixes h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }

.mot-board-head { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
@media (min-width: 768px) { .mot-board-head { flex-direction: row; align-items: center; gap: 36px; } }
.mot-board-head p { font-size: 17px; line-height: 1.6; color: var(--grey-text); margin-top: 8px; max-width: 600px; }
.mot-res-board .mot-ring { background: radial-gradient(125% 90% at 50% -12%, var(--mot-navy-hi) 0%, var(--mot-navy-lo) 100%); color: var(--white); border-radius: 50%; padding: 12px; box-shadow: 0 12px 34px rgba(13,18,27,0.3); }

.mot-grades { display: grid; gap: 10px; margin-top: 32px; }
@media (min-width: 768px) { .mot-grades { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .mot-grades { grid-template-columns: 1fr 1fr 1fr; gap: 14px; } }
.mot-grade { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--white); border-radius: 16px; border: 1px solid var(--grey-mid); box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04); opacity: 0; transform: translateY(14px); transition: all 0.5s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d); }
.mot-grades.is-seen .mot-grade { opacity: 1; transform: none; }
.mot-grade-icon { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--green-light); color: var(--green-dark); }
.mot-grade.is-advisory .mot-grade-icon { background: rgba(251,191,36,0.15); color: var(--charcoal); }
.mot-grade.is-fix .mot-grade-icon { background: var(--red-light); color: var(--red-header); }
.mot-grade-icon svg { width: 20px; height: 20px; }
.mot-grade-name { flex: 1; font-size: 15.5px; font-weight: 700; min-width: 0; }
.mot-grade-bar { display: block; height: 6px; border-radius: 99px; background: var(--grey-mid); margin-top: 8px; overflow: hidden; }
.mot-grade-bar b { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--green); transition: width 1s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--d) + 200ms); }
.mot-grades.is-seen .mot-grade-bar b { width: var(--w); }
.mot-grade.is-advisory .mot-grade-bar b { background: var(--gold); }
.mot-grade.is-fix .mot-grade-bar b { background: var(--red-header); }
.mot-grades.is-seen .mot-grade .mot-pill { animation: motStamp 0.5s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--d) + 500ms); }

.mot-opps { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 768px) { .mot-opps { grid-template-columns: 1fr 1fr; gap: 20px; } }
.mot-opp { position: relative; overflow: hidden; isolation: isolate; padding: 28px; border-radius: 22px; background: radial-gradient(125% 110% at 0% 0%, var(--mot-navy-hi) 0%, var(--mot-navy) 55%, var(--mot-navy-lo) 100%); color: var(--white); box-shadow: 0 20px 50px rgba(13,18,27,0.25); opacity: 0; transform: translateY(14px); transition: all 0.5s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d); }
@media (min-width: 768px) { .mot-opp { padding: 36px; } }
.mot-opps.is-seen .mot-opp { opacity: 1; transform: none; }
.mot-opp:hover { transform: translateY(-3px); }
.mot-opp::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: radial-gradient(70% 90% at 100% 100%, #000, transparent 75%); mask-image: radial-gradient(70% 90% at 100% 100%, #000, transparent 75%); }
.mot-opp-glow { position: absolute; z-index: -1; right: -60px; bottom: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(closest-side, rgba(74,158,79,0.55), transparent); filter: blur(20px); }
.mot-opp-icon { position: absolute; right: 22px; top: 22px; width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: rgba(125,216,127,0.14); color: var(--green-mid); }
.mot-opp-area { font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-mid); }
.mot-opp h3 { font-size: clamp(22px, 2.6vw, 26px); font-weight: 800; line-height: 1.2; margin: 10px 60px 10px 0; }
.mot-opp p { font-size: 15.5px; line-height: 1.6; color: rgba(255,255,255,0.72); }

.mot-fixes { display: grid; gap: 20px; margin-top: 28px; }
.mot-fix-group { position: relative; background: var(--white); border-radius: 20px; padding: 20px; border: 1px solid var(--grey-mid); box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04); overflow: hidden; opacity: 0; transform: translateY(14px); transition: all 0.5s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 768px) { .mot-fix-group { padding: 28px; } }
.mot-fix-group::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: var(--grey-mid); }
.mot-fix-group.is-seen { opacity: 1; transform: none; }
.mot-fix-group.is-fix::before { background: linear-gradient(90deg, var(--red-header), var(--gold)); }
.mot-fix-group.is-advisory::before { background: linear-gradient(90deg, var(--gold), var(--green-mid)); }
.mot-fix-group.is-later::before { background: linear-gradient(90deg, var(--grey-text), var(--grey-mid)); }
.mot-fix-group.is-pass::before { background: linear-gradient(90deg, var(--green), var(--green-mid)); }
.mot-fix-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 14px; }
.mot-fix-head h3 { font-size: 20px; font-weight: 800; }
.mot-fix-head span { font-size: 14px; color: var(--grey-text); }
.mot-fix-group ol { list-style: none; display: grid; gap: 12px; counter-reset: fix; }
@media (min-width: 1024px) { .mot-fix-group ol { grid-template-columns: 1fr 1fr; } }
.mot-fix-group li { position: relative; padding: 16px 16px 16px 56px; border-radius: 14px; background: var(--grey-bg); counter-increment: fix; transition: all 0.2s ease; }
.mot-fix-group li::before { content: counter(fix); position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 800; background: var(--charcoal); color: var(--white); }
.mot-fix-group.is-fix li::before { background: var(--red-header); }
.mot-fix-group.is-advisory li::before { background: var(--gold); color: var(--charcoal-dark); }
.mot-fix-group.is-pass li::before { content: ""; background: var(--green-mid); }
.mot-fix-group.is-pass li::after { content: ""; position: absolute; left: 27px; top: 23px; width: 5px; height: 10px; border: solid var(--charcoal-dark); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mot-fix-group li:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.mot-fix-area { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-text); }
.mot-fix-area svg { width: 13px; height: 13px; }
.mot-fix-group li b { display: block; font-size: 16px; font-weight: 800; margin: 4px 0 4px; }
.mot-fix-group li p { font-size: 14.5px; line-height: 1.6; color: var(--grey-text); }

.mot-res-cta { position: relative; overflow: hidden; isolation: isolate; padding: 72px 0; text-align: center; background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); }
.mot-res-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px); background-size: 48px 48px; }
.mot-res-cta::after { content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -200px; top: 50%; transform: translateY(-50%); background: radial-gradient(closest-side, rgba(255,255,255,0.26), rgba(255,255,255,0.08) 46%, transparent 72%); filter: blur(12px); }
.mot-res-cta-inner { max-width: 640px; }
.mot-res-cta h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; line-height: 1.2; }
.mot-res-cta p { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.88); margin: 10px 0 24px; }
.mot-res-cta .mot-btn-primary { background: var(--white); color: var(--green-dark); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.mot-res-cta .mot-btn-primary:hover { background: var(--charcoal-dark); color: var(--white); }
.mot-restart { display: block; margin: 18px auto 0; background: none; border: 0; font: 600 14px var(--font); color: rgba(255,255,255,0.85); text-decoration: underline; cursor: pointer; transition: all 0.2s ease; }
.mot-restart:hover { color: var(--white); }

.mot-body .footer-onepager { position: relative; z-index: 1; flex: none; }
.mot-bar { flex: none; }

/* ── Animations ── */
@keyframes motPulse { 0% { box-shadow: 0 0 0 0 rgba(125,216,127,0.6); } 100% { box-shadow: 0 0 0 10px rgba(125,216,127,0); } }
@keyframes motDrift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-40px, 30px); } }
@keyframes motFloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(-1deg); } }
@keyframes motStageIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes motCardIn { from { opacity: 0; transform: translateX(60px) rotate(1.5deg); } to { opacity: 1; transform: none; } }
@keyframes motCardBack { from { opacity: 0; transform: translateX(-60px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
@keyframes motCardOut { to { opacity: 0; transform: translateX(-80px) rotate(-2deg); } }
@keyframes motOptIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes motTick { 0% { transform: scale(0.4); } 100% { transform: scale(1); } }
@keyframes motPop { 0% { transform: scale(0.9); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes motSpin { to { transform: rotate(360deg); } }
@keyframes motWrench { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(18deg); } }
@keyframes motBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@keyframes motStamp { 0% { opacity: 0; transform: scale(1.8) rotate(-8deg); } 100% { opacity: 1; transform: none; } }
@keyframes motIdle { 0%, 100% { transform: rotate(-80deg); } 50% { transform: rotate(-66deg); } }

@media (prefers-reduced-motion: reduce) {
  .mot-stage.is-in, .mot-q, .mot-q.is-out, .mot-opt, .mot-star, .mot-dot, .mot-jump svg, .mot-gauge .mot-gauge-icon, .mot-orb, .mot-show-phone img, .mot-needle.is-idle, .mot-pill.is-stamped, .mot-grades.is-seen .mot-grade .mot-pill { animation: none; }
  .mot-gauge-spin, .mot-checks li.is-active::before { animation-duration: 2s; }
  .mot-grade, .mot-fix-group, .mot-opp { opacity: 1; transform: none; transition: none; }
  .mot-grade-bar b, .mot-ring-val, .mot-needle { transition: none; }
}

/* Phones: the list sits beside the mockup, so keep it to the headlines. */
@media (min-width: 768px) { .mot-gets small { display: block; } .mot-gets b { font-size: 15.5px; } }

/* InstallrHub strip: a quiet branded aside under a fix or opportunity, not a pitch.
   On the light fix cards it runs edge to edge along the bottom of the card. */
.mot-strip { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin: 20px -20px -20px; padding: 22px 20px; border-radius: 0; background: radial-gradient(120% 160% at 0% 0%, var(--mot-navy-hi) 0%, var(--mot-navy) 55%, var(--mot-navy-lo) 100%); color: #fff; }
.mot-strip::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, var(--green-mid), var(--green)); }
.mot-strip::after { content: ""; position: absolute; z-index: -1; right: -50px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(74,158,79,0.45), transparent); filter: blur(14px); }
.mot-strip-line { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: -0.005em; }
.mot-strip-line img { display: inline-block; width: 96px; height: auto; margin-right: 6px; vertical-align: -3px; }
.mot-strip-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 100px; background: var(--green); color: #fff; font-size: 14px; font-weight: 800; text-decoration: none; box-shadow: 0 8px 20px rgba(74,158,79,0.35); transition: transform 0.2s ease, background 0.2s ease; }
.mot-strip-cta svg { width: 16px; height: 16px; }
.mot-strip-cta:hover { background: var(--green-dark); transform: translateY(-1px); }
.mot-strip-cta:focus-visible { outline: 3px solid var(--green-light); outline-offset: 2px; }
@media (min-width: 768px) {
  .mot-fix-group > .mot-strip { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; margin: 24px -28px -28px; padding: 24px 28px; }
  .mot-strip-line { font-size: 17px; }
  .mot-strip-line img { width: 108px; }
  .mot-strip-cta { flex-shrink: 0; }
}
.mot-strip.is-band { margin: 22px 0 0; padding: 24px; border-radius: 18px; box-shadow: 0 16px 36px rgba(13,18,27,0.22); }
@media (min-width: 768px) { .mot-strip.is-band { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 30px; } .mot-strip.is-band .mot-strip-line { font-size: 18px; } }
.mot-res-opps.is-scale .mot-opps { grid-template-columns: 1fr; }
@media (min-width: 768px) { .mot-res-opps.is-scale .mot-opps { grid-template-columns: 1fr 1fr; } }
.mot-res-opps.is-scale .mot-opp h3 { margin-right: 0; }
/* Logo reads as the first word of the sentence ("InstallrHub calls every lead…"). */
.mot-ring.is-full .mot-ring-num b { font-size: 24px; } .mot-ring.is-full .mot-ring-num i { font-size: 10px; margin-top: 8px; }
.mot-ring-lg.is-full .mot-ring-num b { font-size: 40px; }
@media (min-width: 768px) { .mot-ring-lg.is-full .mot-ring-num b { font-size: 48px; } }
#mot-book { scroll-margin-top: 80px; }
