/* ParkingAim — the app's language on the web: a graphite ground, the 3D world as the hero, one amber accent (the
   primary action, what's selected, what's earned), Archivo for titles and wide-caps labels, the system face for
   running text. The bay's four amber corners are the motif: they frame what matters. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2-variations"), url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0e0e10;
  --bg-top: #17171a;
  --surface: #151518;
  --surface-high: #1c1c20;
  --fill: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.66);
  --text-3: rgba(255, 255, 255, 0.45);
  --amber: #ffb524;
  --amber-hi: #ffc54a;
  --amber-deep: #ed7314;
  --ink: #17130a;
  --cyan: #33e0d1;
  --success: #3ddb85;
  /* the winter lessons' chapter colour (the app's ice) */
  --ice: #ccedff;

  --display: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(104px, 14vw, 184px);
  --radius: 22px;
  --radius-s: 14px;

  /* motion: premium, no overshoot */
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-io: cubic-bezier(0.4, 0, 0.2, 1);
  --quick: 180ms;
  --standard: 450ms;
  --slow: 900ms;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */

.kicker {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 640;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  /* a kicker that wraps (the hero's on a phone) breaks into even lines, not a word left alone */
  text-wrap: balance;
}
.kicker.amber { color: var(--amber); }

h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 720; letter-spacing: -0.015em; }
h1 {
  font-size: clamp(2.7rem, 6.4vw, 5.6rem);
  line-height: 0.98;
  font-stretch: 100%;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h3 { font-size: 1.22rem; line-height: 1.2; font-weight: 680; letter-spacing: -0.005em; }
p { margin: 0; }
.lede { font-size: clamp(1.06rem, 1.5vw, 1.24rem); line-height: 1.55; color: var(--text-2); max-width: 36em; text-wrap: pretty; }
.body { color: var(--text-2); max-width: 34em; text-wrap: pretty; }

/* Arabic, CJK: no wide caps tracking, system faces carry the script */
:lang(ar) .kicker, :lang(ja) .kicker, :lang(ko) .kicker, :lang(zh) .kicker { letter-spacing: 0.04em; font-stretch: 100%; }
/* Archivo is Latin only: each script's own system face takes over (Apple's first, then Windows', then Noto) */
:root:lang(ar) {
  --body: -apple-system, BlinkMacSystemFont, "Geeza Pro", "Segoe UI", "Noto Sans Arabic", Tahoma, system-ui, sans-serif;
  --display: "Archivo", -apple-system, BlinkMacSystemFont, "Geeza Pro", "Segoe UI", "Noto Sans Arabic", system-ui, sans-serif;
}
:root:lang(ja) {
  --body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", Meiryo, system-ui, sans-serif;
  --display: "Archivo", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Noto Sans JP", system-ui, sans-serif;
}
:root:lang(ko) {
  --body: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --display: "Archivo", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
}
:root:lang(zh) {
  --body: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif;
  --display: "Archivo", -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif;
}
/* tight Latin tracking and leading would break Arabic's joins and crowd tall scripts */
:root:is(:lang(ar), :lang(ja), :lang(ko), :lang(zh)) :is(h1, h2, h3, h4, .statement p, .quote, .faq-list summary, .car-name, .lineup span) { letter-spacing: 0; }
:root:lang(ar) h1 { line-height: 1.3; }
:root:lang(ar) h2, :root:lang(ar) .measured h3 { line-height: 1.35; }
:root:lang(ar) .statement p { line-height: 1.55; }
/* (a CJK phrase doesn't break: a size at which the longest still fits a phone) */
:root:is(:lang(ja), :lang(ko), :lang(zh)) h1 { line-height: 1.18; font-size: clamp(2.15rem, 5.4vw, 4.9rem); }
:root:is(:lang(ja), :lang(ko), :lang(zh)) h2, :root:is(:lang(ja), :lang(ko), :lang(zh)) .measured h3 { line-height: 1.24; }
:root:is(:lang(ja), :lang(ko), :lang(zh)) .statement p { line-height: 1.4; }
:root:is(:lang(ja), :lang(zh)) body { line-break: strict; }
/* Japanese and Chinese headlines break only where the copy marks a word boundary (a zero-width space), never inside a word */
:root:is(:lang(ja), :lang(zh)) :is(h1, h2, .measured h3) { word-break: keep-all; }
:root:lang(ko) body { word-break: keep-all; }
/* a word wider than the column never runs off the screen; a German legal title breaks at a hyphen
   (Datenschutz-erklärung; elsewhere the browser's own hyphenation splits compounds badly: a soft hyphen in the copy) */
h1, h2, h3, h4 { overflow-wrap: break-word; }
:root:lang(de) .doc h1 { hyphens: auto; -webkit-hyphens: auto; }

/* ---------- wordmark + mark ---------- */

.wordmark {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 720;
  letter-spacing: 0.15em;
  font-size: 15px;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}
.wordmark b { font-weight: inherit; color: var(--amber); }
.mark { width: 30px; height: 30px; flex: none; }

/* ---------- buttons ---------- */

.badge-link { display: inline-flex; border-radius: 12px; transition: transform var(--quick) var(--ease), filter var(--quick); }
.badge-link img { height: 54px; width: auto; }
.badge-link:hover { transform: translateY(-1px); filter: brightness(1.12); }
.badge-link:active { transform: scale(0.98); }

.soon {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding-block: 0; padding-inline: 18px 22px; border-radius: 14px;
  background: linear-gradient(180deg, #ffd06e 0%, var(--amber) 48%, #e8a01c 100%);
  color: var(--ink);
  font-weight: 650; font-size: 16px;
  box-shadow: 0 10px 30px -10px rgba(255, 181, 36, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}
.soon svg { width: 20px; height: 20px; }

.ghost-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 22px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--stroke-strong);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-weight: 600; font-size: 16px;
  transition: background var(--quick), transform var(--quick) var(--ease);
  white-space: nowrap;
}
.ghost-btn:hover { background: rgba(255, 255, 255, 0.13); }
.ghost-btn:active { transform: scale(0.98); }
.ghost-btn svg { width: 18px; height: 18px; }

/* ---------- nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background var(--standard) var(--ease-io), border-color var(--standard), -webkit-backdrop-filter var(--standard), backdrop-filter var(--standard);
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: rgba(14, 14, 16, 0.72);
  -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px);
  border-bottom-color: var(--stroke);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-inline-end: auto; }
.nav-links { display: flex; gap: 26px; font-size: 15px; color: var(--text-2); }
.nav-links a { transition: color var(--quick); }
.nav-links a:hover { color: var(--text); }
.nav-get {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 10px;
  background: var(--amber); color: var(--ink); font-weight: 650; font-size: 14px;
  transition: transform var(--quick) var(--ease), filter var(--quick);
  white-space: nowrap;
}
.nav-get:hover { filter: brightness(1.07); }
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 12px; border-radius: 10px; color: var(--text-2); font-size: 14px;
  border: 1px solid var(--stroke);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 16px; height: 16px; }
.lang[open] summary { color: var(--text); border-color: var(--stroke-strong); }
.lang ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; min-width: 190px;
  background: rgba(24, 24, 28, 0.96); border: 1px solid var(--stroke-strong); border-radius: 14px;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.lang li a { display: flex; justify-content: space-between; gap: 16px; padding: 9px 12px; border-radius: 9px; font-size: 15px; color: var(--text-2); }
.lang li a:hover { background: var(--fill); color: var(--text); }
.lang li a[aria-current="true"] { color: var(--text); }
.lang li a[aria-current="true"]::after { content: ""; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--amber); }

@media (max-width: 920px) {
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  .nav-inner { gap: 10px; }
  .wordmark { font-size: 13px; letter-spacing: 0.12em; }
  .nav-get { display: none; }
}

/* ---------- intro (the app's launch) ---------- */

.intro {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: #000;
  transition: opacity 700ms var(--ease-io), visibility 0s linear 700ms;
}
.intro video { width: min(78vmin, 560px); height: auto; aspect-ratio: 1; }
.intro.done { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-skip {
  position: absolute; inset-inline-end: 20px; bottom: 20px; font-size: 13px; color: var(--text-3);
  padding: 8px 12px; border-radius: 8px;
}
.intro-skip:hover { color: var(--text); }
html:not(.js) .intro, .no-intro .intro { display: none; }

/* ---------- hero ---------- */

/* Wide screens: the headline and the buttons, then the film in a frame the bay's corners lock round, then the line
   and the figures. Narrow or portrait screens: the film fills the screen behind the words. */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero h1 { max-width: 13em; }
.hero-head { display: grid; gap: 22px; }
.hero-foot { display: grid; gap: 22px; }
.hero-media { position: absolute; inset: 0; background: #08080a; overflow: hidden; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--text-2); font-size: 15px; list-style: none; margin: 0; padding: 0; }
.facts li { display: flex; align-items: baseline; gap: 8px; }
.facts b { font-family: var(--display); font-size: 1.5rem; font-weight: 640; color: var(--text); font-variant-numeric: tabular-nums; }
.facts .free { color: var(--amber); font-weight: 600; }

@media (min-width: 1000px) {
  .hero { padding: 132px 0 0; text-align: center; }
  .hero::before { content: ""; position: absolute; inset: 0; z-index: -3; background: radial-gradient(70% 55% at 50% 72%, #1d1810 0%, var(--bg) 72%); }
  .hero-head { justify-items: center; }
  .hero h1 { font-size: clamp(3rem, 5.2vw, 5.2rem); }
  .hero-head .cta-row { justify-content: center; margin-top: 10px; }
  .hero-stage { position: relative; width: min(1180px, 100% - 2 * var(--gutter) - 48px); aspect-ratio: 16 / 9; margin: 64px auto 0; }
  .hero-media { border-radius: 22px; box-shadow: 0 0 0 1px var(--stroke), 0 90px 180px -70px rgba(255, 181, 36, 0.3); }
  .hero-media::after { background: radial-gradient(130% 90% at 50% 40%, rgba(14, 14, 16, 0) 60%, rgba(14, 14, 16, 0.5) 100%); }
  .bay-corners { inset: -24px; }
  .hero-foot { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; text-align: start; margin-top: 52px; padding-bottom: 8px; }
  .hero-foot .lede { max-width: 34em; }
  .hero-foot .facts { justify-content: flex-end; }
}
@media (max-width: 999px) {
  .hero { min-height: 100svh; padding: 34svh 0 56px; }
  .hero-stage { position: absolute; inset: 0; z-index: -2; }
  .hero-media::after {
    background: linear-gradient(to bottom, rgba(14, 14, 16, 0.45) 0%, rgba(14, 14, 16, 0.05) 14%, rgba(14, 14, 16, 0.15) 26%,
      rgba(14, 14, 16, 0.86) 44%, var(--bg) 66%);
  }
  .hero-foot { margin-top: 22px; }
  .hero .lede { font-size: 1rem; }
  .bay-corners { inset: 78px 12px 14px; }
}
@media (max-width: 999px) and (min-width: 600px) { .hero { padding-top: 46svh; } }

/* the bay: four corners slide in and lock round the film (round the screen on phones) */
.bay-corners { position: absolute; pointer-events: none; }
.bay-corners i {
  position: absolute; width: clamp(34px, 5vw, 64px); height: clamp(34px, 5vw, 64px);
  border: 0 solid var(--amber); filter: drop-shadow(0 0 10px rgba(255, 181, 36, 0.55));
  opacity: 0;
}
.bay-corners i:nth-child(1) { left: 0; top: 0; border-left-width: 4px; border-top-width: 4px; border-top-left-radius: 6px; --dx: -40px; --dy: -40px; }
.bay-corners i:nth-child(2) { right: 0; top: 0; border-right-width: 4px; border-top-width: 4px; border-top-right-radius: 6px; --dx: 40px; --dy: -40px; }
.bay-corners i:nth-child(3) { right: 0; bottom: 0; border-right-width: 4px; border-bottom-width: 4px; border-bottom-right-radius: 6px; --dx: 40px; --dy: 40px; }
.bay-corners i:nth-child(4) { left: 0; bottom: 0; border-left-width: 4px; border-bottom-width: 4px; border-bottom-left-radius: 6px; --dx: -40px; --dy: 40px; }
.ready .bay-corners i { animation: corner-in 900ms var(--ease) forwards; animation-delay: var(--d, 420ms); }
.ready .bay-corners i:nth-child(2) { --d: 480ms; }
.ready .bay-corners i:nth-child(3) { --d: 540ms; }
.ready .bay-corners i:nth-child(4) { --d: 600ms; }
@keyframes corner-in {
  0% { opacity: 0; transform: translate(var(--dx), var(--dy)); }
  70% { opacity: 1; }
  100% { opacity: 0.92; transform: none; }
}
.hero-stage .hero-media { opacity: 0; transform: scale(0.985); }
.ready .hero-stage .hero-media { animation: film-in 1100ms var(--ease) 200ms forwards; }
@keyframes film-in { to { opacity: 1; transform: none; } }
html:not(.js) .hero-stage .hero-media { opacity: 1; transform: none; }

.hero-rise > * { opacity: 0; transform: translateY(22px); }
.ready .hero-rise > * { animation: rise 1000ms var(--ease) forwards; }
.ready .hero-rise > *:nth-child(2) { animation-delay: 90ms; }
.ready .hero-rise > *:nth-child(3) { animation-delay: 180ms; }
.ready .hero-rise > *:nth-child(4) { animation-delay: 270ms; }
.ready .hero-foot > * { animation-delay: 520ms; }
.ready .hero-foot > *:nth-child(2) { animation-delay: 600ms; }
@keyframes rise { to { opacity: 1; transform: none; } }
html:not(.js) .hero-rise > * { opacity: 1; transform: none; }

/* ---------- sections ---------- */

section { position: relative; }
.section { padding-block: var(--section) 0; }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .body { font-size: 1.1rem; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* ---------- statement ---------- */

.statement { padding-block: clamp(120px, 18vw, 220px) 0; }
.statement p {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.18;
  letter-spacing: -0.015em; max-width: 22em; text-wrap: pretty;
}
.statement .w { color: rgba(255, 255, 255, 0.16); transition: color 300ms linear; }
.statement .w.lit { color: var(--text); }
.statement .b { margin-top: 0.8em; color: var(--amber); }
.statement .b .w { color: rgba(255, 181, 36, 0.2); }
.statement .b .w.lit { color: var(--amber); }

/* ---------- voice ---------- */

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }

.player {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, #19191d, #121215);
  border: 1px solid var(--stroke);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.8);
}
.player-stage { position: relative; aspect-ratio: 16 / 10; }
.player-stage svg { width: 100%; height: 100%; }
.player-caption {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(14, 14, 16, 0.72); border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-weight: 600; font-size: clamp(14px, 1.6vw, 17px); line-height: 1.35; min-height: 52px;
  transition: opacity var(--standard) var(--ease);
}
.player-caption .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); flex: none; box-shadow: 0 0 12px var(--cyan); transition: background var(--quick), box-shadow var(--quick); }
.player-caption .dot.rev { background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.player-caption .dot.done { background: var(--success); box-shadow: 0 0 12px var(--success); }
.player-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--stroke); }
.play {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding-block: 0; padding-inline: 14px 18px; border-radius: 12px;
  background: var(--amber); color: var(--ink); font-weight: 650; font-size: 15px;
  transition: transform var(--quick) var(--ease), filter var(--quick);
}
.play:hover { filter: brightness(1.07); }
.play:active { transform: scale(0.97); }
.play svg { width: 18px; height: 18px; }
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--fill); border: 1px solid var(--stroke); }
.seg button { height: 36px; padding: 0 12px; border-radius: 8px; font-size: 14px; color: var(--text-2); transition: background var(--quick), color var(--quick); }
.seg button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.12); color: var(--text); }
@media (max-width: 640px) {
  .player-caption { position: static; margin: 12px 12px 0; min-height: 0; }
  .player-stage { aspect-ratio: auto; }
  .player-stage svg { aspect-ratio: 16 / 10; height: auto; }
}
.progress { flex: 1 1 120px; height: 4px; border-radius: 2px; background: var(--fill); overflow: hidden; min-width: 80px; }
.progress i { display: block; height: 100%; width: 0; background: var(--amber); }
.note { font-size: 13px; color: var(--text-3); margin-top: 14px; }
.legend { display: flex; gap: 18px; font-size: 13px; color: var(--text-3); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 18px; height: 3px; border-radius: 2px; background: var(--cyan); }
.legend i.rev { background: var(--amber); }

/* diagrams (shared by the player and the lesson cards) */
.diagram .trail { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3.2; }
.diagram .trail.fwd { stroke: var(--cyan); }
.diagram .trail.rev { stroke: var(--amber); }
.diagram .ghost { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-dasharray: 4 5; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.diagram .car-body { fill: #f4f3ef; }
.diagram .car-glass { fill: #0e0e10; }
.diagram .bay path { fill: none; stroke: var(--amber); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 600ms var(--ease), opacity 600ms; }
.diagram .bay { filter: drop-shadow(0 0 4px rgba(255, 181, 36, 0.6)); }
.diagram .bay.open path { opacity: 0.45; }
.diagram .bay.locked path { opacity: 1; }
.diagram .flash { fill: #fff; opacity: 0; }
.diagram .flash.on { animation: flash 700ms var(--ease) forwards; }
@keyframes flash { 0% { opacity: 0.55; } 100% { opacity: 0; } }

/* ---------- cars ---------- */

.garage {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--stroke);
  background: radial-gradient(120% 90% at 30% 20%, #1d1d22 0%, #111114 60%);
}
@media (max-width: 960px) { .garage { grid-template-columns: 1fr; } }
.garage-view { position: relative; min-height: 440px; display: grid; place-items: center; overflow: hidden; }
.garage-view img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 600ms var(--ease); }
.garage-view img.photo.on { opacity: 1; }
.garage-view svg.turn-plan { width: min(84%, 400px); aspect-ratio: 1; height: auto; overflow: visible; }
.garage-view.has-photo svg.turn-plan {
  position: absolute; inset-inline-end: 14px; bottom: 14px; width: min(34%, 190px); max-height: none; padding: 8px;
  border-radius: 14px; background: rgba(14, 14, 16, 0.62); border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.garage-info { padding: clamp(24px, 3.4vw, 40px); display: grid; gap: 20px; align-content: center; border-inline-start: 1px solid var(--stroke); }
@media (max-width: 960px) { .garage-info { border-inline-start: 0; border-top: 1px solid var(--stroke); } }
.garage-info .car-name { font-family: var(--display); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 720; letter-spacing: -0.02em; line-height: 1; }
.garage-info .car-tag { color: var(--text-2); min-height: 3.1em; }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--fill); border: 1px solid var(--stroke); color: var(--text-2); width: fit-content; }
.pill.free { color: var(--success); border-color: rgba(61, 219, 133, 0.35); background: rgba(61, 219, 133, 0.08); }
.pill.winter { color: var(--ice); border-color: rgba(204, 237, 255, 0.35); }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--stroke); border-radius: var(--radius-s); overflow: hidden; border: 1px solid var(--stroke); }
.specs div { background: #141417; padding: 14px 16px; display: grid; gap: 4px; }
.specs dt { font-size: 12.5px; color: var(--text-3); }
.specs dd { margin: 0; font-family: var(--display); font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.specs dd small { font-size: 0.9rem; color: var(--text-2); font-weight: 500; margin-inline-start: 2px; }

.lineup-wrap { margin-top: 18px; }
.lineup-label { font-size: 13px; color: var(--text-3); margin: 0 0 10px; }
.lineup {
  display: flex; gap: 6px; overflow-x: auto; padding: 8px 2px 14px; scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent;
}
.lineup button {
  flex: none; display: grid; justify-items: center; align-content: end; gap: 8px; padding: 12px 10px 10px;
  border-radius: 14px; border: 1px solid transparent; scroll-snap-align: start; min-width: 76px;
  transition: background var(--quick), border-color var(--quick);
}
.lineup button:hover { background: var(--fill); }
.lineup button[aria-pressed="true"] { background: rgba(255, 181, 36, 0.08); border-color: rgba(255, 181, 36, 0.45); }
.lineup svg { height: auto; }
.lineup .lb { fill: rgba(255, 255, 255, 0.78); }
.lineup .lg { fill: #141417; }
.lineup button[aria-pressed="true"] .lb { fill: var(--amber); }
.lineup span { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.lineup button[aria-pressed="true"] span { color: var(--amber); }

/* ---------- lessons ---------- */

.chapters { display: grid; gap: clamp(36px, 5vw, 56px); }
.chapter-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.chapter-head h3 { font-size: 1.3rem; }
.chapter-head p { color: var(--text-3); font-size: 15px; }
.chapter-head .swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--c); align-self: center; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card {
  position: relative; border-radius: 18px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--stroke); transition: border-color var(--quick), transform var(--standard) var(--ease);
}
.card:hover { border-color: var(--stroke-strong); transform: translateY(-2px); }
.card .diagram { aspect-ratio: 16 / 10; background: #18191c; }
.card .diagram svg { width: 100%; height: 100%; }
.card-body { padding: 14px 16px 16px; display: grid; gap: 4px; }
.card-body .num { font-family: var(--display); font-size: 12px; font-stretch: 125%; letter-spacing: 0.12em; color: var(--text-3); }
.card-body h4 { margin: 0; font-family: var(--display); font-size: 1.08rem; font-weight: 660; line-height: 1.25; }
.card-body p { color: var(--text-2); font-size: 14.5px; line-height: 1.45; }
.card .tags { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; gap: 6px; }
.card .tags .pill { height: 22px; font-size: 11.5px; background: rgba(14, 14, 16, 0.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lessons-note { margin-top: 26px; font-size: 13px; color: var(--text-3); }

/* the debrief, the garage hall: app screens in a quiet frame */
.wide-shot { margin: 0 0 18px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--stroke); aspect-ratio: 2000 / 1100; background: #111; }
.wide-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.measured { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(64px, 9vw, 120px); }
.measured figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--stroke); box-shadow: 0 50px 120px -50px rgba(0, 0, 0, 0.9); }
.measured h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 16px; }
@media (max-width: 860px) { .measured { grid-template-columns: 1fr; } }

/* ---------- realism ---------- */

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.tile {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface);
  border: 1px solid var(--stroke); min-height: 300px; isolation: isolate;
  grid-column: span 2;
}
.tile.wide { grid-column: span 4; }
.tile.half { grid-column: span 3; }
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1600ms var(--ease); }
.tile:hover img, .tile:hover video { transform: scale(1.03); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 10, 12, 0.92) 0%, rgba(10, 10, 12, 0.45) 38%, rgba(10, 10, 12, 0) 66%); }
.tile-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; display: grid; gap: 6px; }
.tile-copy p { color: var(--text-2); font-size: 15px; max-width: 30em; }
.tile .placeholder { position: absolute; inset: 0; z-index: -2; background: radial-gradient(80% 80% at 70% 20%, #24242a, #121215); }
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile.wide, .tile.half { grid-column: span 2; min-height: 280px; }
}
@media (min-width: 961px) { .tile.tall { min-height: 420px; } }

/* ---------- winter ---------- */

.winter { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .winter { grid-template-columns: 1fr; } }
.winter-shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--stroke); aspect-ratio: 16 / 9; background: #1a1d21; box-shadow: 0 50px 120px -50px rgba(0, 0, 0, 0.9); }
.winter-shot img { width: 100%; height: 100%; object-fit: cover; }
.winter-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.winter-facts li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: start; }
.winter-facts svg { width: 22px; height: 22px; color: var(--ice); margin-top: 1px; }
.winter-facts h3 { font-size: 1.12rem; margin-bottom: 4px; }
.winter-facts p { color: var(--text-2); font-size: 15.5px; }
.measured.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.measured.flip figure { order: 2; }
@media (max-width: 860px) { .measured.flip { grid-template-columns: 1fr; } .measured.flip figure { order: 0; } }

/* ---------- challenges ---------- */

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- film ---------- */

.film { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 860px) { .film { grid-template-columns: 1fr; } .film .phones { order: 2; } }
.phones { display: flex; justify-content: center; gap: clamp(12px, 2vw, 24px); }
/* the share films as they are posted: a 9:16 story card, the film edge to edge */
.phone {
  position: relative; width: min(290px, 44vw); aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 50px 100px -30px rgba(0, 0, 0, 0.9), 0 30px 80px -40px rgba(255, 181, 36, 0.25);
}
.phone .screen { position: absolute; inset: 0; }
.phone .screen video, .phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone.back { transform: translateY(40px) scale(0.9); opacity: 0.8; }
@media (max-width: 520px) { .phone.back { display: none; } .phone { width: min(320px, 80vw); } }
.quote { font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 650; color: var(--amber); margin-top: 26px; letter-spacing: -0.01em; }
.styles { margin-top: 12px; color: var(--text-3); font-size: 14px; }

/* ---------- museum ---------- */

.showcase {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--stroke);
  min-height: clamp(420px, 56vw, 640px); display: flex; align-items: flex-end; isolation: isolate; background: #0b0b0d;
}
.showcase > img, .showcase > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.showcase::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgba(9, 9, 11, 0.92) 0%, rgba(9, 9, 11, 0.55) 40%, rgba(9, 9, 11, 0) 70%), linear-gradient(to top, rgba(9, 9, 11, 0.7), rgba(9, 9, 11, 0) 40%); }
/* (wide enough for the longest word of a title: Parkführerschein, estacionamento) */
.showcase-copy { padding: clamp(28px, 5vw, 64px); display: grid; gap: 18px; max-width: 640px; }
/* right to left: the copy stands on the right, the shade follows it */
[dir="rtl"] .showcase::after { background: linear-gradient(to left, rgba(9, 9, 11, 0.92) 0%, rgba(9, 9, 11, 0.55) 40%, rgba(9, 9, 11, 0) 70%), linear-gradient(to top, rgba(9, 9, 11, 0.7), rgba(9, 9, 11, 0) 40%); }
.showcase-copy small { color: var(--text-3); font-size: 13px; }
/* phones: the screen above, the words under it (laid over it, the screen's own labels ran through the headline) */
@media (max-width: 720px) {
  .showcase { display: block; min-height: 0; }
  .showcase::after, [dir="rtl"] .showcase::after { content: none; }
  .showcase > img, .showcase > video { position: relative; z-index: 0; height: auto; aspect-ratio: 16 / 11; object-position: 62% 50%; }
  .showcase-copy { position: relative; margin-top: -56px; padding-top: 72px; background: linear-gradient(to bottom, rgba(11, 11, 13, 0), #0b0b0d 56px); }
}

/* ---------- world ---------- */

.world-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .world-grid { grid-template-columns: 1fr; } }
.world-item { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--stroke); display: grid; gap: 10px; align-content: start; }
.world-item svg { width: 36px; height: 36px; color: var(--amber); margin-bottom: 6px; }
.world-item p { color: var(--text-2); }
/* card copy never leaves one word alone on its last line */
.world-item p, .tile-copy p, .winter-facts p, .plan p, .card-body p, .faq-list details p { text-wrap: pretty; }
.ticker { margin-top: 18px; overflow: hidden; direction: ltr; -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; gap: 12px; width: max-content; animation: ticker 60s linear infinite; padding-block: 6px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: var(--fill); border: 1px solid var(--stroke); white-space: nowrap; font-size: 15px; }
.ticker-item b { font-family: var(--display); font-stretch: 125%; font-size: 11px; letter-spacing: 0.14em; color: var(--amber); font-weight: 640; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 920px; }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--stroke); display: grid; gap: 12px; align-content: start; }
.plan h3 { font-size: 1.5rem; }
.plan p { color: var(--text-2); font-size: 15.5px; }
.plan.best { background: linear-gradient(180deg, rgba(255, 181, 36, 0.1), rgba(255, 181, 36, 0.02)), var(--surface); border-color: rgba(255, 181, 36, 0.45); }
.plan .pill.best { background: var(--amber); color: var(--ink); border-color: transparent; }
.plan .corner { position: absolute; top: 18px; right: 18px; width: 26px; height: 26px; color: var(--amber); opacity: 0.85; }
[dir="rtl"] .plan .corner { right: auto; left: 18px; transform: scaleX(-1); }
.terms-line { margin-top: 22px; color: var(--text-2); font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.terms-line span { display: inline-flex; align-items: center; gap: 8px; }
.terms-line svg { width: 16px; height: 16px; color: var(--success); }

/* ---------- faq ---------- */

.faq-list { border-top: 1px solid var(--stroke); max-width: 860px; }
.faq-list details { border-bottom: 1px solid var(--stroke); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-family: var(--display); font-size: clamp(1.08rem, 1.8vw, 1.3rem); font-weight: 620;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i { position: relative; width: 16px; height: 16px; flex: none; }
.faq-list summary i::before, .faq-list summary i::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; border-radius: 1px; background: var(--text-2); transition: transform var(--standard) var(--ease); }
.faq-list summary i::after { transform: rotate(90deg); }
.faq-list details[open] summary i::after { transform: rotate(0deg); }
.faq-list details p { padding: 0 0 24px; color: var(--text-2); max-width: 44em; }

/* ---------- final ---------- */

.final { padding-block: var(--section); text-align: center; }
.final-mark { width: min(300px, 64vw); margin: 0 auto -10px; mix-blend-mode: screen; }
.final-mark video, .final-mark img { width: 100%; height: auto; }
.final h2 { margin-bottom: 14px; }
.final .lede { margin: 0 auto 30px; }
.final .cta-row { justify-content: center; }
.qr { display: inline-grid; grid-template-columns: auto auto; align-items: center; gap: 16px; margin-top: 34px; padding-block: 12px; padding-inline: 12px 18px; border-radius: 18px; background: var(--fill); border: 1px solid var(--stroke); text-align: start; }
.qr svg { width: 92px; height: 92px; border-radius: 10px; }
.qr span { font-size: 14px; color: var(--text-2); max-width: 12em; }
@media (hover: none), (max-width: 720px) { .qr { display: none; } }

/* ---------- sticky mobile CTA ---------- */

.dock {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40;
  display: none; align-items: center; gap: 12px; padding: 10px; padding-inline-start: 14px; border-radius: 18px;
  background: rgba(24, 24, 28, 0.86); border: 1px solid var(--stroke-strong);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(140%); transition: transform var(--standard) var(--ease);
}
.dock img.icon { width: 40px; height: 40px; border-radius: 10px; }
.dock div { flex: 1; min-width: 0; display: grid; }
.dock strong { font-size: 15px; }
.dock small { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock .badge-link img { height: 40px; }
.dock .soon { height: 40px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
@media (max-width: 720px) { .dock { display: flex; } .dock.show { transform: none; } }

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--stroke); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); color: var(--text-3); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a:hover { color: var(--text); }
.foot .langs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
@media (max-width: 720px) { footer { padding-bottom: 110px; } }

/* ---------- legal + support pages ---------- */

.doc { width: min(760px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: 130px 0 90px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 14px 0 10px; }
.doc .date { color: var(--text-3); margin-bottom: 36px; }
.doc .date:has(+ .translation) { margin-bottom: 10px; }
.doc .translation { color: var(--text-3); font-size: 14px; margin-bottom: 36px; }
.doc h2 { font-size: 1.35rem; margin: 40px 0 12px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--text-2); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-inline-start: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--amber); }
.doc .summary { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius-s); padding: 20px 24px; margin-bottom: 8px; }
.doc .summary b { display: block; margin-bottom: 6px; color: var(--text); }
.doc details { border-bottom: 1px solid var(--stroke); }
.doc details summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--text); }
.doc details p { padding-bottom: 16px; }
.doc .contact { margin-top: 40px; padding: 22px 24px; border-radius: var(--radius-s); background: rgba(255, 181, 36, 0.07); border: 1px solid rgba(255, 181, 36, 0.3); }

.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 24px; }
.notfound .bay { width: 160px; height: 160px; margin: 0 auto 28px; }
.notfound p { color: var(--text-2); margin: 12px 0 28px; }

/* ---------- the parking guides ---------- */

.guide { width: min(820px, 100% - 2 * var(--gutter)); }
.guide.hub { width: min(1120px, 100% - 2 * var(--gutter)); }
.guide h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.06; margin: 12px 0 10px; }
.guide h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin: 52px 0 16px; }
.guide .lead { font-size: 1.12rem; line-height: 1.65; color: var(--text); margin-top: 20px; text-wrap: pretty; }
.guide .hand-note { font-size: 13px; color: var(--text-3); margin-top: 12px; }
.guide p, .guide li { line-height: 1.65; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--text-3); margin-bottom: 22px; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--amber); }
.crumbs [aria-hidden] { opacity: 0.5; }
.g-fig { margin: 28px 0 0; border-radius: var(--radius-s); overflow: hidden; border: 1px solid var(--stroke); background: var(--surface); }
.g-fig + .g-fig { margin-top: 16px; }
.g-fig img { display: block; width: 100%; height: auto; }
.g-fig .diagram { aspect-ratio: 16 / 9; background: #18191c; }
.g-fig .diagram svg { display: block; width: 100%; height: 100%; }
.g-fig figcaption { padding: 12px 16px; font-size: 13px; color: var(--text-3); }
.diagram svg.flip { transform: scaleY(-1); }
.g-steps { list-style: none; padding: 0 !important; margin: 0; counter-reset: step; display: grid; gap: 12px; }
.g-steps li { counter-increment: step; position: relative; margin: 0 !important; padding: 18px 20px 18px 66px; padding-inline: 66px 20px; border: 1px solid var(--stroke); border-radius: var(--radius-s); background: var(--surface); }
.g-steps li::before { content: counter(step); position: absolute; inset-inline-start: 18px; top: 17px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: var(--ink); font: 700 15px/1 var(--display); }
.g-steps h3 { font-size: 1.05rem; color: var(--text); margin-bottom: 6px; }
.g-list { display: grid; gap: 10px; }
.g-list li { margin: 0 !important; }
.g-list strong { color: var(--text); font-weight: 650; }
.g-faq { display: grid; gap: 18px; }
.g-q h3 { font-size: 1.02rem; color: var(--text); margin-bottom: 4px; }
.g-practice { margin-top: 56px; padding: 26px 24px; border-radius: var(--radius); background: rgba(255, 181, 36, 0.06); border: 1px solid rgba(255, 181, 36, 0.28); }
.guide.hub .g-practice { margin-top: 48px; }
.guide.hub .g-grid { margin-top: 36px; }
.g-practice h2 { margin-top: 0; }
.g-lessons { list-style: none; padding: 0 !important; margin: 20px 0 0; display: grid; gap: 8px; }
.g-lessons li { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 !important; padding: 12px 14px; border-radius: 12px; background: rgba(14, 14, 16, 0.6); border: 1px solid var(--stroke); }
.g-lessons strong { display: block; color: var(--text); font-weight: 650; }
.g-lessons span:not(.pill) { display: block; font-size: 13px; color: var(--text-3); line-height: 1.4; }
.g-cta { margin-top: 26px; display: grid; gap: 10px; }
.g-cta h3 { font-size: 1.2rem; }
.g-cta .cta-row { margin-top: 10px; }
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.guide:not(.hub) .g-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .guide:not(.hub) .g-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.g-card { display: block; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--stroke); overflow: hidden; color: inherit; text-decoration: none; transition: border-color var(--quick), transform var(--quick); }
.doc a.g-card { color: inherit; }
.g-card:hover { border-color: rgba(255, 181, 36, 0.5); transform: translateY(-2px); }
.g-card .diagram { aspect-ratio: 16 / 10; background: #18191c; overflow: hidden; }
.g-card .diagram svg, .g-card .diagram img { display: block; width: 100%; height: 100%; object-fit: cover; }
.g-card-body { padding: 16px 18px 18px; display: grid; gap: 6px; }
.g-card-body h3 { font-size: 1.08rem; color: var(--text); }
.g-card-body p { font-size: 14px; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.g-card.text .g-card-body { padding: 20px; }

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-rise > *, .hero-stage .hero-media { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  .bay-corners i { opacity: 0.9 !important; animation: none !important; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; }
  .statement .w { color: inherit !important; }
  .scroll-cue span::after { animation: none; }
  .tile img, .tile video { transition: none; }
}
