/* Colours taken from the app's own blueprint theme, so the site and the app match. */
:root {
  --bg: #04111f;
  --panel: #112133;
  --raised: #1a2c40;
  --accent: #00aefa;
  --accent-soft: rgba(0, 174, 250, 0.14);
  --orange: #f08a3c;
  --green: #4ec97b;
  --text: #f0f5ff;
  --muted: #a6bdd9;
  --dim: #7793b0;
  --border: #294761;
  --radius: 18px;
  --max: 1120px;
  --cta-height: 54px;
  --cta-height-inline: 48px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 12% -5%, rgba(0, 120, 220, 0.22), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* The faint grid echoes the drafting paper in the app. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 174, 250, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 174, 250, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  z-index: 0;
}

main, .topbar, footer { position: relative; z-index: 1; }

a { color: var(--accent); }

.lead a,
.timeline-foot a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: rgba(0, 174, 250, 0.10);
  border: 1px solid rgba(0, 174, 250, 0.20);
  border-radius: 5px;
  padding: 0.1em 0.35em;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--accent);
  color: #002033;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  z-index: 10;
}

/* ---------------------------------------------------------------- top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand img { border-radius: 9px; }

.topbar nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.topbar nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.topbar nav a:hover { color: var(--text); }

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: clamp(-15rem, -16vw, -6rem);
  top: 4.5rem;
  width: min(52vw, 680px);
  aspect-ratio: 6 / 5;
  background: url("img/motorcycle-blueprint.svg") center / contain no-repeat;
  opacity: 0.18;
  transform: scaleX(-1) rotate(-2deg);
  pointer-events: none;
}
.hero-text {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

@media (max-width: 900px) {
  .hero::after { display: none; }
}

.eyebrow {
  font: 700 0.72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0 0 1.8rem;
  max-width: 34em;
}

/* ------------------------------------------------------------- screenshots */
.gallery-band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 3.5rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.2rem;
}

.gallery figure {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  background: #041420;
  border-bottom: 1px solid var(--border);
}

.gallery figcaption {
  padding: 0.85rem 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* The first shot leads: it spans the full width above the other two. */
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery figure:first-child { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------- timeline */
.timeline-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.timeline-head h2 { margin: 0; flex: 1 1 auto; }

.clock {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  flex: none;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.clock svg { width: 1.7rem; height: 1.7rem; }

.range {
  font: 700 0.82rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.09em;
  color: var(--accent);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(0, 174, 250, 0.45);
  white-space: nowrap;
}

.timeline-card {
  margin-top: 1.6rem;
  padding: 1.1rem 1.2rem 0.6rem;
  background: rgba(26, 44, 64, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.3);
}

.timeline-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}
.timeline-card-head h3 { margin: 0; font-size: 1.05rem; }
.scroll-hint {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}
/* At full width the whole timeline fits, so the hint would be a lie. */
@media (min-width: 1080px) {
  .scroll-hint { display: none; }
}

.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0.6rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(132px, 1fr);
  overflow-x: auto;
  /* The strip still scrolls on narrow screens; the bar itself is just noise here. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.timeline::-webkit-scrollbar { display: none; }

/* One continuous rail behind the markers: blue for the past, green at the rescue,
   orange where Graphic stops opening — the same reading as in the app. */
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(5.6rem + 1.7rem - 1px);
  height: 2px;
  background: linear-gradient(90deg,
    #2f6fb0 0%, #3d8fd0 48%, var(--green) 72%, var(--orange) 96%);
}

.timeline li {
  position: relative;
  z-index: 1;
  padding: 0 0.6rem;
  display: grid;
  grid-template-rows: 5.6rem 3.4rem 5.6rem;
  justify-items: center;
  text-align: center;
}

.timeline .label {
  grid-row: 1;
  align-self: end;
  padding-bottom: 0.7rem;
  display: block;
}
.timeline li.below .label {
  grid-row: 3;
  align-self: start;
  padding: 0.7rem 0 0;
}

.timeline .year {
  display: block;
  font: 700 0.76rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}
.timeline .event {
  display: block;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.timeline .node {
  grid-row: 2;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: #0a1a2b;
  border: 1.5px solid rgba(0, 174, 250, 0.55);
  color: var(--accent);
  box-shadow: 0 0 0 6px rgba(4, 17, 31, 0.9), 0 0 18px rgba(0, 174, 250, 0.28);
}
.timeline .node svg { width: 1.5rem; height: 1.5rem; }

.timeline .is-rescue .node {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 0 6px rgba(4, 17, 31, 0.9), 0 0 22px rgba(78, 201, 123, 0.45);
}
.timeline .is-rescue .year,
.timeline .is-rescue .event { color: var(--green); }

.timeline .is-warning .node {
  border-color: var(--orange);
  background: var(--orange);
  color: #2a1400;
  box-shadow: 0 0 0 6px rgba(4, 17, 31, 0.9), 0 0 22px rgba(240, 138, 60, 0.5);
}
.timeline .is-warning .node svg { stroke-width: 2; }
.timeline .is-warning .year,
.timeline .is-warning .event { color: var(--orange); }

.timeline-foot {
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.timeline-foot a { margin-left: 0.4rem; }

/* ---------------------------------------------------------------- buttons */
.cta {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1.4rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(180deg, #16b7ff, var(--accent));
  color: #00243a;
  box-shadow: 0 10px 24px rgba(0, 174, 250, 0.25);
}
.btn-secondary {
  background: var(--raised);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: #22374e; }

/* Official Apple badge: artwork is used unmodified, only scaled. */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.12s ease;
}
.btn-appstore:hover { transform: translateY(-1px); }
.btn-appstore img {
  display: block;
  width: auto;
  height: var(--cta-height);
}
.cta-inline .btn-appstore img { height: var(--cta-height-inline); }

/* Buttons sitting beside an Apple badge match its height, since the badge
   artwork itself may not be reshaped to match them. */
.cta .btn {
  height: var(--cta-height);
  padding-block: 0;
  justify-content: center;
  line-height: 1.3;
  /* Apple's badge rounds its corners to ~16.3% of the rendered height, so the
     button beside it is curved by the same ratio instead of a fixed radius. */
  border-radius: calc(var(--cta-height) * 0.163);
}
.cta-inline .btn {
  height: var(--cta-height-inline);
  border-radius: calc(var(--cta-height-inline) * 0.163);
}

.btn-title { font-size: 1rem; }
.btn-sub {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.8;
}

.cta-note {
  margin: 1.1rem 0 0;
  font-size: 0.9rem;
  color: var(--dim);
  max-width: 38em;
}

.demo-advice {
  max-width: 40em;
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(240, 138, 60, 0.45);
  border-radius: 14px;
  background: rgba(240, 138, 60, 0.10);
  color: var(--muted);
  font-size: 0.92rem;
}
.demo-advice strong { color: var(--text); }

.cta-inline { margin-top: 2rem; }
.cta-inline .btn { flex-direction: row; align-items: center; }

/* ------------------------------------------------------------------ bands */
.band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}
.band.alt {
  max-width: none;
  background: linear-gradient(180deg, rgba(17, 33, 51, 0.75), rgba(17, 33, 51, 0.35));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.band.alt > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
  margin: 0 0 1.6rem;
}

.section-lead {
  color: var(--muted);
  max-width: 46em;
  margin: -0.8rem 0 2rem;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}
.two-col p { color: var(--muted); }
.two-col p:first-child { margin-top: 0; }

/* The intro sits above the cards so the icons get a full-width grid to live in. */
.what-intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.2rem;
}
.what-intro p { color: var(--muted); margin: 0; }

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 1.1rem;
}
.checks li {
  padding: 1.4rem 1.3rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--muted);
  font-size: 0.96rem;
}
.checks li p { margin: 0; }
.checks li strong { color: var(--text); }
/* Big enough for the shading and the badge to read; below ~44px they turn to mush. */
.check-icon {
  display: block;
  width: 4rem;
  height: 4rem;
  margin-bottom: 0.95rem;
}

/* ---------------------------------------------------------------- pricing */
/* The one bright band on an otherwise dark page, borrowed from the App Store
   screenshots so the site and the store listing read as the same product. */
.pricing {
  max-width: none;
  padding-inline: 1.5rem;
}
.pricing > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.price-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2.2rem;
  padding: 2.6rem 2.4rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0a4fbe 0%, #0a7bea 46%, #35a4ff 100%);
  color: #fff;
}
/* The diagonal light sweep from the store screenshots. */
.price-panel::after {
  content: "";
  position: absolute;
  inset: -45% -15% auto auto;
  z-index: -1;
  width: 65%;
  height: 190%;
  background: linear-gradient(200deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 62%);
  transform: rotate(-14deg);
  pointer-events: none;
}
.price-head { flex: 1 1 22rem; }
.price-panel .eyebrow { color: rgba(255, 255, 255, 0.72); }
.price-panel h2 {
  margin-bottom: 1rem;
  line-height: 1.1;
}
.price-lead {
  margin: 0;
  max-width: 30rem;
  color: rgba(255, 255, 255, 0.88);
}
.price-lead a { color: #fff; }
.price-figure {
  flex: 0 1 20rem;
  display: grid;
  justify-items: start;
  gap: 0.9rem;
}
.price-amount {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-fine {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.82);
}
.price-alt {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}
.price-demo-link {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.price-demo-link:hover { text-decoration-thickness: 2px; }
.price-why {
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 52rem;
}
.price-why strong { color: var(--text); }

/* ------------------------------------------------------------------ steps */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}
.steps li {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
}
.step-no {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(0, 174, 250, 0.4);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.steps h3 { margin: 0 0 0.4rem; font-size: 1.12rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* --------------------------------------------------------------- compare */
.table-wrap { overflow-x: auto; }

.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 460px;
}
.compare th, .compare td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(41, 71, 97, 0.7);
}
.compare thead th {
  background: var(--raised);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.compare th:nth-child(2), .compare td:nth-child(2),
.compare th:nth-child(3), .compare td:nth-child(3) {
  width: 7.5rem;
  text-align: center;
}
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td { color: var(--muted); }
.compare td.yes { color: var(--green); font-weight: 600; }
.compare td.no { color: var(--dim); }

/* ------------------------------------------------------------------- faq */
details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 1.2rem;
  margin-bottom: 0.8rem;
}
details[open] { padding-bottom: 0.4rem; }
summary {
  cursor: pointer;
  padding: 1.05rem 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: "+";
  color: var(--accent);
  font-weight: 700;
  width: 1rem;
  flex: none;
}
details[open] summary::before { content: "–"; }
details p {
  margin: 0 0 1rem 1.7rem;
  color: var(--muted);
}

/* --------------------------------------------------------------- contact */
.contact-line { margin: 0; }
.mail {
  display: inline-block;
  padding: 0.8rem 1.3rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
}
.mail:hover { background: var(--raised); }

/* ---------------------------------------------------------------- footer */
footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.2rem 1.5rem 3.5rem;
  border-top: 1px solid var(--border);
  color: var(--dim);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-left { flex: 1 1 26rem; }

.footer-app {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.5rem;
}
.footer-app img { border-radius: 6px; }

.fine {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.75;
  max-width: 44em;
}

/* Same block as in the app: right aligned lines, logo on the outside. */
.notbastards {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: none;
}

.nb-lines {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  text-align: right;
  color: #b3b5b8;
}

.nb-app {
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.11em;
}
.nb-app a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nb-app a:hover { color: var(--text); }

.nb-claim {
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.065em;
}

.nb-logo {
  border-radius: 5px;
  flex: none;
}

@media (max-width: 860px) {
  .hero { padding-top: 1rem; }
  .topbar { gap: 0.8rem; }
  .topbar nav { gap: 1rem; }
  .timeline { grid-auto-columns: minmax(128px, 1fr); }
  footer { justify-content: flex-start; }
  .notbastards { margin-top: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn,
  .btn-appstore { transition: none; }
}
