/* Platecard launch site. Tokens from docs/site/BRIEF.md. */
:root {
  --bg: #f4f8fb;
  --bg-glow: #dcebf8;
  --surface: #ffffff;
  --surface-sunken: #e9f0f5;
  --border: #d5e0e8;
  --border-strong: #a9bccb;
  --ink: #0f2230;
  --ink-muted: #4a6072;
  --accent: #0a6cc2;
  --accent-hover: #0858a0;
  --accent-soft: #e0efff;
  --on-accent: #ffffff;
  --plate: #ffd84a;
  --plate-ink: #121212;
  --success: #17794a;
  --success-soft: #ddf5e8;
  --night: #0b2a45;
  --night-ink: #e8f1f7;
  --night-muted: #9fc0da;
  --focus: #0a6cc2;

  --shadow-md: 0 2px 4px rgb(15 34 48 / 0.06), 0 8px 24px rgb(15 34 48 / 0.08);
  --shadow-lg: 0 4px 8px rgb(15 34 48 / 0.06), 0 18px 40px -8px rgb(15 34 48 / 0.18);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4vw, 40px);
  --max: 1280px;
  --mini-w: 280px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b141b;
    --bg-glow: #10263a;
    --surface: #13202a;
    --surface-sunken: #0f1a22;
    --border: #26384a;
    --border-strong: #3d566c;
    --ink: #e8f1f7;
    --ink-muted: #9fb4c4;
    --accent: #4fb0ff;
    --accent-hover: #7cc4ff;
    --accent-soft: #12324d;
    --on-accent: #04182a;
    --plate: #f2cc3d;
    --plate-ink: #121212;
    --success: #4cd38c;
    --success-soft: #113222;
    --night: #061423;
    --night-ink: #e8f1f7;
    --night-muted: #8fb0c8;
    --focus: #7cc4ff;
    --shadow-md: 0 2px 4px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.35);
    --shadow-lg: 0 4px 8px rgb(0 0 0 / 0.35), 0 18px 40px -8px rgb(0 0 0 / 0.6);
  }
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 960px) {
  body {
    font-size: 1.125rem;
  }
}
h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}
h1,
h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.6rem, 8vw, 5.5rem);
}
h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 1.5rem;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
a {
  color: var(--accent);
}
a:hover {
  color: var(--accent-hover);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
main:focus {
  outline: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.defs {
  position: absolute;
}
.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section {
  padding-block: clamp(64px, 10vw, 128px);
}
.fine {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* Skip link */
.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  font-weight: 600;
  transform: translateY(-150%);
}
.skip:focus-visible {
  transform: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 120ms ease-out,
    color 120ms ease-out,
    border-color 120ms ease-out,
    transform 120ms ease-out;
}
.btn:active {
  transform: translateY(1px) scale(0.98);
}
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}
.btn--secondary {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn--secondary:hover {
  background: var(--accent-soft);
}
.btn--large {
  min-height: 56px;
  padding: 0 32px;
  font-size: 1.125rem;
}
.btn--ghost {
  border-color: color-mix(in srgb, var(--night-ink) 40%, transparent);
  color: var(--night-ink);
}
.btn--ghost:hover {
  color: var(--night-ink);
  border-color: var(--night-ink);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease-out;
}
.site-header[data-scrolled] {
  border-bottom-color: var(--border);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 12px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.logo:hover {
  color: var(--ink);
}
.logo__mark {
  flex: none;
}
.logo__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 100%;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
@media (max-width: 639px) {
  .nav-link {
    display: none;
  }
}

/* Plates */
.plate {
  display: inline-block;
  background: var(--plate);
  color: var(--plate-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 62%;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.plate-face {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 62%;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.plate--chip {
  font-size: 1.25rem;
  padding: 6px 10px;
  border: 2px solid var(--plate-ink);
  border-radius: 6px;
}
.plate--tiny {
  font-size: 0.95rem;
  padding: 3px 6px;
  border: 1.5px solid var(--plate-ink);
  border-radius: 4px;
}

/* Punch circles */
.punches {
  --ps: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--ps) * 0.3);
}
.p {
  position: relative;
  width: var(--ps);
  height: var(--ps);
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
}
.p::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: scale(0.6);
}
.p svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--on-accent);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 6;
  stroke-dashoffset: 6;
}
.p.on::before {
  opacity: 1;
  transform: scale(1);
  transition:
    transform 200ms var(--spring),
    opacity 120ms ease-out;
}
.p.on svg {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 200ms ease-out 80ms;
}
.punches--mini {
  --ps: 18px;
  gap: 6px;
}
.punches--step1,
.punches--step2,
.punches--step3 {
  --ps: 18px;
  gap: 6px;
}
.punches--tile {
  --ps: 34px;
}
/* A row of ten either holds one line or splits exactly 5 + 5, like a real card. */
.punches--hero {
  display: grid;
  grid-template-columns: repeat(5, var(--ps));
  gap: 10px 14px;
  justify-content: start;
}
@media (max-width: 959px) {
  .punches--hero {
    --ps: 24px;
  }
}
/* Containers so the narrower rows can switch to 5 + 5 by the space they really have. */
.step,
.mini-ui,
.tile--a {
  container-type: inline-size;
}
/* Ten 18 px circles with 6 px gaps need 234 px. */
@container (width < 234px) {
  .punches--step1,
  .punches--step2,
  .punches--step3 {
    display: grid;
    grid-template-columns: repeat(5, var(--ps));
    justify-content: start;
  }
}
/* Ten 34 px circles with 10.2 px gaps need 432 px. */
@container (width < 432px) {
  .punches--tile {
    display: grid;
    grid-template-columns: repeat(5, var(--ps));
    gap: 10px 14px;
    justify-content: start;
  }
}
@media (max-width: 599px) {
  .punches--tile {
    display: grid;
    grid-template-columns: repeat(5, var(--ps));
    gap: 10px 14px;
    justify-content: start;
  }
}
@media (min-width: 960px) {
  .only-sm {
    display: none;
  }
}

/* Badge and tier pill */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-weight: 700;
  font-size: 0.875rem;
}
.badge[hidden] {
  display: none;
}
.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.badge:not(.badge--static) {
  animation: pop 320ms var(--spring) both;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}
.tier-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-sunken);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}
.tier-pill__part {
  white-space: nowrap;
}
/* On a phone the hero pill takes two lines, so it breaks after "visits" and
   becomes a rounded box rather than a stretched capsule. */
@media (max-width: 959px) {
  .hero-panel .tier-pill {
    border-radius: 12px;
    line-height: 1.4;
    padding: 8px 12px;
  }
  .hero-panel .tier-pill__part {
    display: block;
  }
  .hero-panel .tier-pill__sep {
    display: none;
  }
}
.tier-pill--sm {
  font-size: 0.8rem;
  padding: 4px 10px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(92vh, 860px);
  display: grid;
  align-content: center;
  padding-block: clamp(40px, 8vw, 96px);
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, var(--bg-glow), transparent 70%),
    var(--bg);
}
.hero__bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.bubble {
  position: absolute;
  overflow: visible;
}
.bubble circle {
  fill: none;
  stroke: var(--accent);
  stroke-opacity: 0.12;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.bubble path {
  fill: none;
  stroke: #fff;
  stroke-opacity: 0.7;
  stroke-width: 1.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.hero__grid {
  position: relative;
  /* Auto margins on a grid item stop it stretching, so keep the full width. */
  width: 100%;
  display: grid;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  margin-bottom: 18px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.br-lg {
  display: none;
}
.hero__sub {
  max-width: 34ch;
  margin-top: 24px;
  font-size: 1.125rem;
  color: var(--ink-muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 16px;
}
.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 28px;
}
.hero-panel {
  width: 100%;
  max-width: 420px;
  padding: 48px 24px 24px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.hero-panel__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.hero-panel__car {
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.tray {
  align-self: stretch;
  margin: 16px 0 12px;
  padding: 14px;
  border: 2px dashed var(--border-strong);
  border-radius: 14px;
  background: var(--surface-sunken);
}
.hero-panel .badge {
  margin-top: 10px;
}
.hero-plate-move {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  z-index: 2;
}
.hero-plate {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  padding: 0.16em 0.3em;
  border: 4px solid var(--plate-ink);
  border-radius: 10px;
  outline: 1px solid rgb(18 18 18 / 0.3);
  outline-offset: -8px;
  transform: rotate(2deg);
  box-shadow: 0 18px 30px -12px rgb(15 34 48 / 0.35);
}
.hero__fg {
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  top: 64px;
  z-index: 3;
  pointer-events: none;
}
.bubble--extra {
  display: none;
}
@media (max-width: 959px) {
  .hero__visual {
    margin-top: 0;
  }
  .hero-plate-move {
    top: 0;
  }
}
@media (min-width: 960px) {
  .br-lg {
    display: inline;
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(460px, 1fr);
  }
  /* The brief's clamp is kept; it is only capped so "The loyalty card" holds one line. */
  .hero h1 {
    font-size: min(5.5rem, 4.9vw);
  }
  .hero__visual {
    display: block;
    padding: 60px 0 40px 40px;
  }
  .hero-panel {
    width: 420px;
    padding: 72px 32px 28px;
    transform: rotate(-4deg);
  }
  .hero-plate-move {
    top: 20px;
    left: 0;
    translate: none;
  }
  .hero-plate {
    transform: rotate(3deg);
  }
  .hero__fg {
    top: 120px;
    left: 0;
    width: 420px;
  }
  .bubble--extra {
    display: block;
  }
}

/* Sticky mini card: wide screens with motion only, shown by JS. */
.mini {
  display: none;
}
@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  .mini {
    position: fixed;
    top: 96px;
    right: calc(max(0px, (100vw - var(--max)) / 2) + var(--gutter));
    z-index: 40;
    width: var(--mini-w);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition:
      opacity 240ms ease-out,
      transform 240ms var(--ease-out),
      visibility 0s linear 240ms;
  }
  .mini.is-shown {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 240ms ease-out,
      transform 240ms var(--ease-out);
  }
  .gutter > .wrap {
    padding-right: calc(var(--gutter) * 2 + var(--mini-w));
  }
}
.mini__line {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* Problem */
.problem {
  padding-top: clamp(48px, 6vw, 80px);
}
.problem__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
.problem__lines {
  display: grid;
  gap: 20px;
}
.problem__lines p {
  padding-left: 16px;
  border-left: 3px solid var(--border-strong);
  max-width: 48ch;
}
.paper {
  justify-self: center;
  width: 70%;
  max-width: 360px;
  transform: rotate(3deg);
  filter: drop-shadow(0 12px 18px rgb(15 34 48 / 0.18));
}
@media (min-width: 960px) {
  .problem__grid {
    grid-template-columns: 7fr 5fr;
  }
  .paper {
    width: 100%;
    transform: rotate(6deg);
  }
}

/* How it works */
.how {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 40px;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 64px;
}
.step__num {
  position: absolute;
  left: 0;
  top: -6px;
  width: 44px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 62%;
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  background: var(--surface);
}
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 52px;
  bottom: -40px;
  width: 2px;
  background: var(--accent);
}
.step > p {
  color: var(--ink-muted);
}
.mini-ui {
  margin-top: 8px;
  padding: 14px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: grid;
  gap: 8px;
  font-size: 0.875rem;
}
.mini-ui__search {
  padding: 8px 12px;
  border-radius: 10px;
  border: 2px solid var(--accent);
  background: var(--surface);
  font-size: 1.1rem;
}
.mini-ui__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.mini-ui__name {
  flex: 1;
  color: var(--ink-muted);
}
.mini-ui__chev {
  color: var(--ink-muted);
  font-size: 1.2rem;
  line-height: 1;
}
.mini-ui__seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.mini-ui__seg span {
  padding: 8px 4px;
  text-align: center;
  border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  font-weight: 600;
}
.mini-ui__seg .is-sel {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--ink);
}
.mini-ui__acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.mini-ui__primary {
  flex: 1 1 100%;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.mini-ui__muted {
  color: var(--ink-muted);
}
.mini-ui__line {
  color: var(--ink-muted);
}
.mini-ui .tier-pill {
  justify-self: start;
}
/* Below 1180 px the gutter leaves too little room for three columns, so the
   numbered rail stays. From 1180 px each step is a subgrid, so the numeral,
   heading, paragraph and miniature line up across all three. */
@media (min-width: 1180px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto auto 1fr;
    gap: 12px 32px;
  }
  .step {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    gap: 12px;
    padding-left: 0;
    /* Size containment turns off subgrid; the rows it served are hidden here. */
    container-type: normal;
  }
  .step .mini-ui {
    align-content: start;
  }
  .step__num {
    position: static;
    width: auto;
    text-align: left;
    background: none;
  }
  .step:not(:last-child)::before {
    display: none;
  }
}

/* Features */
.bento {
  display: grid;
  gap: 20px;
}
.tile {
  padding: 28px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.tile > p {
  color: var(--ink-muted);
}
.tile .punches {
  margin-top: auto;
  padding-top: 12px;
}
.tiers {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
  margin-top: auto;
}
.tiers li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface-sunken);
  font-size: 0.875rem;
}
.tiers__name {
  font-weight: 700;
}
.tiers__at {
  color: var(--ink-muted);
}
.tiers__bar {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(var(--ink-muted), var(--ink-muted)) 0 0 / var(--w) 100% no-repeat,
    var(--border);
}
.tally {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  margin-top: auto;
}
.tally caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.tally th,
.tally td {
  padding: 7px 10px;
  text-align: right;
  border-bottom: 1px solid var(--border);
}
.tally th[scope="row"],
.tally thead th:first-child {
  text-align: left;
}
.tally thead th {
  background: var(--surface-sunken);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}
.tally tbody th {
  font-weight: 400;
}
.tally tfoot th,
.tally tfoot td {
  font-weight: 700;
  border-bottom: 0;
}
.tile--d {
  display: grid;
  gap: 24px;
}
.tile--d__half {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tile--d__half p {
  color: var(--ink-muted);
}
.tile--d__half + .tile--d__half {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.tile--d .file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-sunken);
  color: var(--ink);
  font: 500 0.8rem/1.2 ui-monospace, "SF Mono", Menlo, monospace;
  white-space: nowrap;
}
@media (max-width: 419px) {
  .tile--d .file-chip {
    font-size: 0.72rem;
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tile--a:hover .p::before {
    opacity: 1;
    transform: scale(1);
    transition:
      transform 200ms var(--spring) calc(var(--i) * 45ms),
      opacity 120ms ease-out calc(var(--i) * 45ms);
  }
  .tile--a:hover .p svg {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 200ms ease-out calc(var(--i) * 45ms + 80ms);
  }
}
@media (min-width: 1100px) {
  .bento {
    grid-template-columns: repeat(12, 1fr);
  }
  .tile--a {
    grid-column: span 7;
  }
  .tile--b,
  .tile--c {
    grid-column: span 5;
  }
  /* The halves stay stacked: side by side each one is too narrow. */
  .tile--d {
    grid-column: span 7;
  }
}

/* Showcase */
.showcase {
  position: relative;
  background: var(--night);
  color: var(--night-ink);
  overflow: hidden;
}
.showcase::before {
  content: "";
  position: absolute;
  inset: 20% -10% -10% -10%;
  background: radial-gradient(ellipse 50% 45% at 40% 55%, var(--accent), transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}
.showcase .wrap {
  position: relative;
}
.showcase :focus-visible {
  outline-color: var(--night-ink);
}
.showcase__sub {
  max-width: 52ch;
  margin-bottom: 40px;
  color: var(--night-muted);
}
.showcase__grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.showcase__grid .try {
  order: -1;
}
.frame {
  width: 100%;
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #1a3550;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.6);
}
.frame__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 28px;
  padding: 0 12px;
}
.frame__dots {
  display: flex;
  gap: 6px;
}
.frame__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff33;
}
.frame__addr {
  flex: 1;
  max-width: 260px;
  margin-inline: auto;
  padding: 2px 12px;
  border-radius: 999px;
  background: #ffffff1a;
  color: var(--night-muted);
  font-size: 0.75rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.frame iframe {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
  background: #fff;
}
.try h3 {
  margin-bottom: 16px;
}
.try__list {
  list-style: none;
  padding: 0;
  counter-reset: try;
  display: grid;
  gap: 14px;
}
.try__list li {
  counter-increment: try;
  position: relative;
  padding-left: 40px;
}
.try__list li::before {
  content: counter(try);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  font: 800 0.8rem/1 var(--font-display);
}
.try__list strong {
  color: #fff;
}
.try__full {
  display: none;
  margin-top: 28px;
}
.showcase__phone-link {
  align-self: flex-start;
}
@media (min-width: 960px) {
  .showcase {
    min-height: 110vh;
  }
  .showcase__grid {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 40px;
    align-items: start;
  }
  .showcase__grid .try {
    order: 0;
  }
  .frame__bar {
    height: 36px;
  }
  .frame iframe {
    height: 720px;
  }
  .try__full {
    display: inline-flex;
  }
  .showcase__phone-link {
    display: none;
  }
}

/* Limits */
.limits__grid {
  display: grid;
  gap: 32px;
}
.limits__drop {
  width: 96px;
}
.limits__list {
  display: grid;
  gap: 24px 40px;
}
.limits__list dt {
  font-weight: 700;
  margin-bottom: 4px;
}
.limits__list dd {
  color: var(--ink-muted);
}
@media (min-width: 960px) {
  .limits__grid {
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
  }
  .limits__drop {
    grid-column: 1 / 5;
    width: 70%;
    max-width: 240px;
    justify-self: center;
  }
  .limits__copy {
    grid-column: 6 / 13;
  }
  .limits__list {
    grid-template-columns: 1fr 1fr;
  }
}

/* Closing CTA */
.close {
  padding-inline: 24px;
}
.close__panel {
  max-width: 960px;
  margin-inline: auto;
  padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 64px);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.close__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.punches--close {
  justify-content: center;
}
@media (max-width: 479px) {
  .punches--close {
    --ps: 24px;
    display: grid;
    grid-template-columns: repeat(5, var(--ps));
    gap: 10px 12px;
  }
}
.close h2 {
  margin-bottom: 0;
}
.close__line {
  max-width: 44ch;
  color: var(--ink-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--ink-muted);
}
.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  padding-block: 20px;
}
.site-footer__links {
  display: flex;
  gap: 8px;
}
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
}

/* Reveals: classes added by JS only, so the page without JS shows everything. */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal [data-reveal] {
    transition:
      opacity 520ms ease-out calc(var(--i, 0) * var(--stagger, 80ms)),
      transform 520ms var(--ease-out) calc(var(--i, 0) * var(--stagger, 80ms));
  }
  .js-reveal [data-reveal]:not(.is-in) {
    opacity: 0;
    transform: translateY(var(--rise, 12px));
  }
  .js-reveal .step {
    --rise: 16px;
    --stagger: 100ms;
  }
  .js-reveal .tile {
    --rise: 16px;
    --stagger: 70ms;
  }
  .js-reveal .frame.is-in {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}
