/* riderautobox.com — the box's own packaging: black leather, copper stitching, the gold R.
   The stage's positions (where Rider's screen and the claim sit on the art) are appended by site/build.py. */

@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url("../fonts/OpenSans-Regular.ttf") format("truetype"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-display: swap; src: url("../fonts/OpenSans-Bold.ttf") format("truetype"); }

:root {
  --black: #09090a;
  --leather: #121212;
  --hide: #1b1a19;
  --line: rgba(226, 192, 140, 0.14);
  --ink: #f4efe7;
  --mute: #a69f94;
  --gold: #dcb47a;
  --gold-hi: #f3dcb0;
  --gold-metal: linear-gradient(180deg, #f6e3bd 0%, #e0b878 45%, #b07d42 100%);
  --gold-metal-hi: linear-gradient(180deg, #fff0cf 0%, #ebc488 45%, #c08c4f 100%);
  --on-gold: #1c140a;
  --good: #a8e4b9;
  --wrong: #ff8a80;
  --page: min(1200px, calc(100% - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font: 400 17px/1.6 "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-weight: 700; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; max-width: 20ch; }
h3 { font-size: 20px; line-height: 1.3; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px;
  background: var(--gold-metal); color: var(--on-gold);
  font-family: inherit; font-weight: 700; font-size: 16px; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 12px 30px -14px rgba(224, 168, 96, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.15s, filter 0.15s;
}
.btn:hover { background: var(--gold-metal-hi); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn.ghost { background: rgba(226, 192, 140, 0.07); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(226, 192, 140, 0.32); }
.btn.ghost:hover { background: rgba(226, 192, 140, 0.14); }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------------- top bar */

.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 28px;
  height: 68px; padding: 0 max(16px, calc((100% - 1200px) / 2));
  background: rgba(9, 9, 10, 0.8);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 26px; width: auto; }
.links { display: flex; gap: 24px; margin-right: auto; }
.links a, .langs a { color: var(--mute); text-decoration: none; font-size: 15px; transition: color 0.15s; }
.links a:hover, .langs a:hover { color: var(--ink); }
.langs { display: flex; gap: 14px; margin-left: auto; }
.links + .langs { margin-left: 0; }
.langs a[aria-current] { color: var(--ink); box-shadow: 0 2px 0 var(--gold); }
.langs .short { display: none; }

@media (max-width: 900px) { .links { display: none; } }
@media (max-width: 560px) {
  .bar { gap: 12px; height: 60px; }
  .brand img { height: 21px; }
  .langs { gap: 10px; }
  .langs .full { display: none; }
  .langs .short { display: inline; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
  .bar .btn.small { padding: 0 14px; font-size: 14px; min-height: 36px; }
}

/* ---------------------------------------------------------------- the stage: the box's own picture */

.stage { padding: clamp(8px, 2vw, 28px) 0 0; overflow: hidden; }
.poster {
  position: relative; container-type: inline-size;
  width: min(1240px, 100%, calc((100vh - 150px) * 1422 / 1106));
  min-width: min(100%, 720px);
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 86%, transparent);
  mask-composite: intersect;
}
.poster .art { width: 100%; height: auto; }

.glass { position: absolute; overflow: hidden; border-radius: 0.8cqi; background: #050506; }
.glass img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.glass img.on { animation: screen-in 0.35s ease-out; }
.glass::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0.08), transparent 30%);
}
@keyframes screen-in { from { opacity: 0; transform: scale(1.01); } }

/* The packaging's bottom-left line, in the visitor's language. */
.claim {
  position: absolute; display: flex; align-items: center; gap: 2.2cqi;
  font-size: 4.1cqi; font-weight: 700; line-height: 1; letter-spacing: -0.01em; white-space: nowrap;
  background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0.2cqi 0.5cqi rgba(0, 0, 0, 0.7));
}
.claim svg { width: 7.4cqi; height: auto; flex: none; }

.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.tabs button {
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px;
  background: rgba(226, 192, 140, 0.08); color: var(--mute);
  font-family: inherit; font-weight: 700; font-size: 15px; line-height: 1; cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.tabs button:hover { color: var(--ink); background: rgba(226, 192, 140, 0.16); }
.tabs button[aria-selected="true"] { background: var(--gold-metal); color: var(--on-gold); }
@media (max-width: 560px) {
  .tabs { gap: 6px; }
  .tabs button { min-height: 38px; padding: 0 12px; font-size: 13px; }
}

/* ---------------------------------------------------------------- what it is */

.hero { width: var(--page); margin: 0 auto; padding: clamp(48px, 7vw, 88px) 0 0; }
.hero-copy { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px clamp(32px, 5vw, 80px); align-items: end; }
.hero h1 { font-size: clamp(38px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -0.035em; }
.lead { color: var(--mute); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; max-width: 58ch; margin: 0 0 28px; }
.hero .lead { color: #c8c0b4; }
@media (max-width: 900px) { .hero-copy { grid-template-columns: 1fr; } }

.facts {
  list-style: none; padding: 0; margin: clamp(44px, 6vw, 72px) 0 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(226, 192, 140, 0.3);
}
.facts li { padding: 22px 18px 0 0; }
.facts b { display: block; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; color: var(--gold); }
.facts span { color: var(--mute); font-size: 15px; }
@media (max-width: 860px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li:last-child { grid-column: 1 / -1; }
}

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

.block { width: var(--page); margin: 0 auto; padding: clamp(64px, 9vw, 120px) 0 0; }
.block > h2 { margin-bottom: clamp(32px, 4vw, 52px); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  padding: 12px 12px 26px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--hide), var(--leather));
  box-shadow: inset 0 0 0 1px var(--line);
}
.feature .shot { overflow: hidden; border-radius: 12px; aspect-ratio: 16 / 9; background: #050506; margin-bottom: 22px; }
.feature .shot img { width: 100%; height: 100%; object-fit: cover; }
.feature h3, .feature p { padding: 0 10px; }
.feature p { color: var(--mute); font-size: 16px; margin-top: 8px; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 18px; border-top: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  display: block; margin-bottom: 14px;
  font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -0.04em;
  background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps p { font-size: 18px; }
.note { margin-top: 36px; padding: 20px 24px; border-radius: 16px; background: rgba(226, 192, 140, 0.08); color: #ddd2c1; max-width: 70ch; box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 19px; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 28px; font-weight: 400; line-height: 1; color: var(--gold); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--mute); padding: 0 0 24px; max-width: 68ch; }

/* ---------------------------------------------------------------- order */

.order { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.order .lead { margin-bottom: 28px; }
.request {
  display: grid; gap: 16px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--hide), var(--leather));
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 90px -50px rgba(224, 168, 96, 0.45);
}
.request .or { color: var(--gold); font-weight: 700; }
.request label { display: grid; gap: 6px; font-size: 14px; color: var(--mute); }
.request input, .request textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(0, 0, 0, 0.45); color: var(--ink);
  font-family: inherit; font-weight: 400; font-size: 17px; line-height: 1.4;
}
.request textarea { resize: vertical; }
.request input:focus, .request textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(224, 180, 122, 0.2); }
.request [aria-invalid="true"] { border-color: var(--wrong); }
.request .btn { justify-self: start; }
.consent { font-size: 14px; color: var(--mute); }
.consent a { color: var(--ink); }
.status:empty { display: none; }
.status { font-weight: 700; }
.status.ok { color: var(--good); }
.status.bad { color: var(--wrong); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .order { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- footer, privacy, picker */

.foot { width: var(--page); margin: clamp(80px, 10vw, 140px) auto 0; padding: 28px 0 40px; border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; color: var(--mute); font-size: 15px; }
.foot-row a { text-decoration: none; }
.foot-row a:hover { color: var(--ink); }
.foot-row .brand { margin-right: auto; }
.foot-row .brand img { height: 22px; }
.fine { margin-top: 18px; font-size: 13px; color: #6f6a62; max-width: 90ch; }

.paper { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: clamp(48px, 7vw, 88px) 0 0; }
.paper h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; }
.paper .updated { color: var(--mute); margin: 10px 0 24px; }
.paper h2 { font-size: 22px; margin: 36px 0 10px; }
.paper p { color: #cfc7bb; }
.paper .btn { margin-top: 40px; }

.picker { min-height: 100vh; display: grid; place-items: center; }
.picker main { display: grid; justify-items: center; gap: 28px; }
.picker img { width: min(320px, 70vw); height: auto; }
.picker nav { display: flex; gap: 20px; }
.picker a { color: var(--mute); text-decoration: none; font-size: 18px; }
.picker a:hover { color: var(--ink); }
.order h2 { margin-bottom: 18px; }

/* generated by site/build.py from site/stage.py */
.poster .glass { left: 13.221%; top: 20.389%; width: 75.879%; height: 36.347%; }
.poster .claim { left: 11.603%; top: 84.087%; }
