/*
  Moxie Miles marketing site.
  Colors and type come straight from the logo: Midnight Navy ink on a cool sky-white page,
  Drive Blue for links, Sky Cyan for highlights, and Moxie Orange only for the action that
  starts a subscription.
*/
:root {
  --navy: #0b1f4d;
  --navy-2: #13306b;
  --blue: #2563eb;
  --cyan: #22d3ee;
  --orange: #ff6b2c;
  --orange-dark: #e4551a;
  --page: #ffffff;
  /* A whisper of Drive Blue for small inset panels, so they read on the white page. */
  --tint: #eef4fd;
  --white: #ffffff;
  --ink: #0b1f4d;
  --ink-2: #3a4a6b;
  --muted: #5f6f8c;
  --line: #dbe3ef;

  --display: "Outfit", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.08; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -0.025em; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-block; text-align: center;
  padding: 11px 20px; border-radius: 999px;
  font: 600 0.98rem/1.2 var(--body); text-decoration: none;
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-big { padding: 15px 28px; font-size: 1.06rem; }
.btn-wide { width: 100%; }
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange-dark); }
.btn-line { border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--white); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  background: rgb(255 255 255 / .9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand span { font: 800 1.4rem/1 var(--display); letter-spacing: -0.02em; }
.brand b { font-weight: 300; color: var(--blue); }
.nav nav { display: flex; align-items: center; gap: 26px; }
.nav nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav nav a:not(.btn):hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }

/* Shared section rhythm */
main > section { padding: clamp(72px, 9vw, 120px) var(--gutter); }
main > section > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; margin-bottom: 56px; }
.section-head p { color: var(--ink-2); font-size: 1.12rem; max-width: 46ch; }
.fine { color: var(--muted); font-size: .88rem; }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center;
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto;
  padding-top: clamp(48px, 7vw, 96px) !important;
}
.hero > * { max-width: none !important; margin: 0 !important; }
.hero h1 {
  font-size: clamp(3rem, 5.8vw, 5rem); font-weight: 800; letter-spacing: -0.04em; line-height: .98;
  max-width: 14ch; text-wrap: balance;
}
.lede { margin-top: 26px; font-size: 1.2rem; color: var(--ink-2); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: .95rem; }

.stage { position: relative; display: grid; place-items: center; min-height: 600px; }
.stage-ring {
  position: absolute; width: min(560px, 118%); opacity: .95; inset: 50% auto auto 50%;
  transform: translate(-50%, -50%) rotate(-140deg);
}
.stage.play .stage-ring { transform: translate(-50%, -50%) rotate(0deg); transition: transform 1.8s cubic-bezier(.2, .8, .2, 1); }
.stage.still .stage-ring { transition: none; }

.phone {
  position: relative; width: 300px; padding: 18px 14px 22px; border-radius: 46px;
  background: linear-gradient(170deg, #1d2f57, #0a1736 70%);
  box-shadow: 0 0 0 9px #050c1f, 0 40px 80px -30px rgb(11 31 77 / .7);
}
.lock { display: grid; justify-items: center; color: var(--white); padding: 14px 0 16px; }
.lock-time { font: 300 3.6rem/1 var(--display); letter-spacing: -0.02em; }
.lock-date { font-size: .85rem; opacity: .8; margin-top: 4px; }

.note {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-bottom: 12px;
  background: rgb(255 255 255 / .9); border-radius: 18px; font-size: .78rem; line-height: 1.35; color: #111827;
  opacity: 0; transform: translateY(-14px);
}
.note strong { display: block; font-size: .8rem; }
.note-icon {
  flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--white); overflow: hidden; box-shadow: 0 0 0 1px rgb(11 31 77 / .1);
}
.note-icon img { width: 100%; height: 100%; object-fit: contain; }
.stage.play .note { opacity: 1; transform: none; transition: opacity .5s ease 1.9s, transform .5s cubic-bezier(.2, .9, .3, 1.2) 1.9s; }
.stage.still .note { transition: none; }

/* The sample card wears the real Moxie Auto Care brand: its logo on a white banner over a deep Moxie blue. */
.card {
  background: #1b5a94; color: var(--white); border-radius: 18px; padding: 0 16px 14px; overflow: hidden;
  font-size: .78rem;
}
.card small { display: block; font-size: .62rem; color: #a9d2f5; font-weight: 600; }
.card-banner { display: grid; place-items: center; margin: 0 -16px; padding: 12px 0; background: var(--white); }
.card-banner img { width: 150px; height: auto; }
.card-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: 14px; }
.card-next { text-align: right; font-weight: 600; }
.card-points { display: grid; gap: 4px; }
.odo { display: inline-flex; font: 800 2.6rem/1 var(--display); font-variant-numeric: tabular-nums; height: 1em; }
.odo > .wheel { width: .6em; text-align: center; }
.wheel { display: inline-block; height: 1em; overflow: hidden; }
.wheel-strip { display: block; transform: translateY(0); }
.wheel-strip span { display: block; height: 1em; }
.stage.play .wheel-strip { transform: translateY(calc(var(--steps) * -1em)); transition: transform 1.7s cubic-bezier(.25, .8, .25, 1) .2s; }
.card-bar { margin-top: 12px; height: 6px; border-radius: 6px; background: rgb(255 255 255 / .18); overflow: hidden; }
.card-bar span { display: block; height: 100%; width: 0; background: #a9d2f5; border-radius: inherit; }
.stage.play .card-bar span { width: 82%; transition: width 1.7s cubic-bezier(.25, .8, .25, 1) .2s; }
.stage.still .card-bar span { transition: none; }
.card-progress { margin-top: 6px; opacity: .85; }
.card-sticker {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; margin-top: 14px; padding: 10px 12px;
  background: rgb(255 255 255 / .1); border-radius: 12px; font-weight: 600;
}
.card-code {
  display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px; border-radius: 12px;
  background: var(--white); color: #1b5a94; font-weight: 600;
}
.card-code small { color: #5f6f8c; opacity: 1; }
.qr { width: 46px; height: 46px; flex: none; }

/* Price promise strip */
.promise {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  max-width: none !important; padding: 0 !important; background: var(--navy); color: #c7d3ea;
}
.promise p { margin: 0; padding: 26px var(--gutter); border-left: 1px solid rgb(255 255 255 / .12); font-size: .98rem; }
.promise p:first-child { border-left: 0; }
.promise strong { display: block; color: var(--white); font: 800 1.45rem/1.2 var(--display); }
.promise p:first-child strong { color: var(--orange); }

/* How it works: a road with four stops, because it is a sequence */
.road { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: stop; position: relative; }
.road::before {
  content: ""; position: absolute; top: 21px; left: 22px; right: 0; height: 4px;
  background: repeating-linear-gradient(90deg, var(--navy) 0 22px, transparent 22px 36px);
  opacity: .22;
}
.road li { counter-increment: stop; position: relative; }
.road li::before {
  content: counter(stop); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--blue); color: var(--navy);
  font: 800 1.15rem/1 var(--display); margin-bottom: 22px; position: relative;
}
.road li:last-child::before { border-color: var(--orange); }
.road p { margin-top: 10px; color: var(--ink-2); }

.status {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center;
  margin-top: 88px; padding: 40px; background: var(--white); border-radius: 28px; border: 1px solid var(--line);
}
.status-copy p { margin-top: 12px; color: var(--ink-2); max-width: 46ch; }
.stages { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.stages li {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px;
  background: var(--tint); color: var(--muted); font-weight: 500;
}
.stages li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.stages .done { color: var(--navy); }
.stages .done::before { background: var(--blue); border-color: var(--blue); }
.stages .now { background: #fff1ea; color: #a83a0c; font-weight: 600; }
.stages .now::before { background: var(--orange); border-color: var(--orange); }

/* Shop modes and scoreboard */
.shop, .setup { border-top: 1px solid var(--line); }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 2px solid var(--navy); }
.modes article { padding: 36px 40px 40px 0; }
.modes article + article { padding-left: 40px; border-left: 1px solid var(--line); }
.modes p { margin-top: 12px; color: var(--ink-2); max-width: 48ch; }
.counter {
  display: grid; gap: 12px; margin-top: 24px; padding: 18px; max-width: 360px;
  border-radius: 18px; background: var(--tint); border: 1px solid var(--line);
}
.counter-total { font: 800 2rem/1 var(--display); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: .88rem; font-weight: 500; }
.chips .on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.counter-earn { color: var(--blue); font-weight: 600; }

.board {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center;
  margin-top: 88px; padding: 48px; border-radius: 28px; background: var(--navy); color: #c7d3ea;
}
.board h3 { color: var(--white); font-size: 1.7rem; font-weight: 800; }
.board-copy p { margin-top: 14px; }
.board-copy .fine { color: #8fa1c4; margin-top: 18px; }
.board-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: rgb(255 255 255 / .12); border-radius: 18px; overflow: hidden; }
.board-stats div { display: flex; flex-direction: column-reverse; gap: 6px; padding: 24px; background: var(--navy-2); }
.board-stats dt { font-size: .92rem; }
.board-stats dd { margin: 0; color: var(--white); font: 800 2.4rem/1 var(--display); letter-spacing: -0.02em; }
.board-stats div:nth-child(3) dd { color: var(--cyan); }

/* Pricing */
.price-card {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px;
  padding: clamp(32px, 5vw, 56px); background: var(--white); border-radius: 32px;
  border: 1px solid var(--line); border-top: 8px solid var(--orange);
  box-shadow: 0 30px 60px -40px rgb(11 31 77 / .45);
}
.price { display: flex; align-items: flex-end; gap: 14px; margin: 28px 0 10px; }
.amount { font: 800 clamp(4.5rem, 9vw, 6.5rem)/.85 var(--display); letter-spacing: -0.05em; color: var(--navy); }
.per { color: var(--ink-2); font-weight: 500; line-height: 1.3; padding-bottom: 6px; }
.price-sub { color: var(--ink-2); margin-bottom: 28px; }
.price-head .fine { margin-top: 12px; text-align: center; }
.included { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; align-content: center; }
.included li { display: flex; gap: 12px; color: var(--ink-2); }
.included li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* Setup steps */
.steps { list-style: none; padding: 0; margin-block: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; padding: 26px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: block; font: 800 2.6rem/1 var(--display); color: var(--blue); margin-bottom: 18px; }
.steps p { margin-top: 8px; color: var(--ink-2); font-size: .98rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq h2 { margin-bottom: 36px; }
.faq-list { border-top: 2px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px;
  padding: 22px 0; font: 700 1.2rem/1.3 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.6rem; line-height: 1; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 70ch; }

/* Closer */
.closer { text-align: center; background: var(--navy); color: #c7d3ea; }
.closer img { margin: 0 auto 28px; }
.closer h2 { color: var(--white); max-width: 16ch; margin: 0 auto; }
.closer p { margin: 18px auto 34px; max-width: 52ch; }

/* Footer */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  padding: 28px var(--gutter); color: var(--muted); font-size: .92rem; background: var(--page); border-top: 1px solid var(--line);
}
.brand-foot span { font-size: 1.1rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot nav a { color: var(--ink-2); }

/* Responsive */
@media (max-width: 1000px) {
  .hero, .section-head, .status, .board, .price-card { grid-template-columns: 1fr; }
  .stage { min-height: 560px; }
  .road, .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .road::before { display: none; }
  .promise { grid-template-columns: 1fr 1fr; }
  .promise p:nth-child(3) { border-left: 0; }
  .promise p:nth-child(n+3) { border-top: 1px solid rgb(255 255 255 / .12); }
}
@media (max-width: 760px) {
  .nav nav a:not(.btn) { display: none; }
  .modes { grid-template-columns: 1fr; }
  .modes article, .modes article + article { padding: 32px 0; border-left: 0; }
  .modes article + article { border-top: 1px solid var(--line); }
  .board { padding: 32px 24px; }
  .status { padding: 28px 22px; }
}
@media (max-width: 560px) {
  .road, .steps, .board-stats, .promise { grid-template-columns: 1fr; }
  .promise p { border-left: 0 !important; border-top: 1px solid rgb(255 255 255 / .12); }
  .promise p:first-child { border-top: 0; }
  .hero-actions .btn { width: 100%; }
  .stage { min-height: 520px; }
  .phone { width: 280px; }
  .nav .btn { padding: 9px 14px; font-size: .9rem; }
}
