/* Kickstand website, "Night Ride". Dark always, like the app and the sign-in page.
   No inline styles and no scripts anywhere on the site: nginx.conf sends a Content-Security-Policy
   that allows neither, so everything visual lives in this file. */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/Barlow-Regular.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/Barlow-Medium.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/Barlow-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/BarlowCondensed-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/BarlowCondensed-Bold.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: italic; font-display: swap; src: url("/fonts/BarlowCondensed-ExtraBoldItalic.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --ground: #0b0b0c;
  --surface: #121214;
  --raised: #1f1f22;
  --line: #2c2c30;
  --text: #f5f1ea;
  --body: #d9d4cb;
  --muted: #a9a49c;
  --orange: #fc4900;
  /* Orange text is a lighter orange: #fc4900 is the fill, and near-black goes on top of it.
     White on the fill is 3.4:1 and fails, which is why the button label is --ground. */
  --orange-text: #ff6a2b;
  --orange-hover: #ff8a57;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Barlow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --page: 75rem;
  --gutter: 2.5rem;
  --section: 7rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { flex-grow: 1; }
img { max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--orange-text); }
a:hover { color: var(--orange-hover); }
:focus-visible { outline: 2px solid var(--orange-text); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 1.5rem; }

.wrap { width: 100%; max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999rem; top: 0.5rem; padding: 0.75rem 1rem; background: var(--orange); color: var(--ground); font-weight: 600; border-radius: 8px; z-index: 10; }
.skip:focus { left: 0.5rem; color: var(--ground); }
.placeholder { color: var(--orange-text); }

/* Type roles */
.eyebrow { font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1.25; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-text); }
.display { font-family: var(--display); font-style: italic; font-weight: 800; line-height: 1; text-transform: uppercase; color: var(--text); text-wrap: balance; }
h2.display { font-size: clamp(2.375rem, 3vw + 1.25rem, 3.5rem); }
.lead { font-size: clamp(1.125rem, 0.5vw + 1rem, 1.3125rem); line-height: 1.55; color: var(--body); text-wrap: pretty; }
.text { color: var(--body); text-wrap: pretty; }

/* Top bar */
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 6rem; }
.nav__logo { display: inline-flex; align-items: center; min-height: 2.75rem; }
.nav__logo img { display: block; height: 1.875rem; width: auto; }
.nav__right { display: flex; align-items: center; gap: 2.25rem; }
.nav__links { display: flex; align-items: center; gap: 2.25rem; }
.nav__links a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 1.0625rem; font-weight: 500; color: var(--body); text-decoration: none; }
.nav__links a:hover { color: var(--text); }
.lang { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang a, .lang span { display: inline-flex; align-items: center; justify-content: center; height: 2.75rem; min-width: 3.25rem; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.08em; text-decoration: none; }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--text); }
.lang span { background: var(--raised); color: var(--text); }

/* Hero */
.hero { padding: 2.5rem 0 6rem; }
.hero__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 1.75rem; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 1rem; border: 1px solid var(--orange); border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-text); }
.hero h1 { font-size: clamp(3.75rem, 6vw + 1rem, 6.25rem); line-height: 0.92; text-wrap: initial; }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--orange-text); }
.hero .lead { max-width: 35rem; }
.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.5rem; padding: 0 2rem; background: var(--orange); color: var(--ground); font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.375rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; border-radius: 12px; transition: background-color 0.15s ease; }
.button:hover { background: var(--orange-text); color: var(--ground); }
.link { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 1.0625rem; font-weight: 500; }
.hero__art { height: 37.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.hero__art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 56% 50%; }

/* Sections */
.section { padding: var(--section) 0; }
.section--band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--last { padding-bottom: 0; }
.section__head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 3.5rem; }
.section__head .lead { max-width: 45rem; margin-top: 0.25rem; }
.section__head h2 { max-width: 56rem; }
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid + .grid, .grid + .card { margin-top: 1.5rem; }

.card { display: flex; flex-direction: column; gap: 1rem; padding: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.card--raised { gap: 0.875rem; padding: 2.5rem; background: var(--raised); }
.card h3 { font-size: 1.5rem; line-height: 1.2; font-weight: 600; color: var(--text); }
.card h3.display { font-size: clamp(2.125rem, 1.5vw + 1.5rem, 2.625rem); line-height: 1; font-weight: 800; }
.card--raised .text { max-width: 47.5rem; }
.card__num { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 3.5rem; line-height: 1; color: var(--orange); }
.card__step { display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--orange); border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: 1.375rem; color: var(--orange-text); }

/* Beta */
.beta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5rem; align-items: start; }
.beta__copy { display: flex; flex-direction: column; gap: 1.25rem; }
.checks li { display: flex; gap: 1rem; padding: 1.375rem 0; border-bottom: 1px solid var(--line); }
.checks li:first-child { padding-top: 0; }
.checks li:last-child { border-bottom: 0; padding-bottom: 0; }
.checks svg { flex-shrink: 0; margin-top: 2px; stroke: var(--orange); }
.checks h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; color: var(--text); margin-bottom: 0.375rem; }
.checks p { font-size: 1.0625rem; color: var(--body); }

.art-band { display: block; width: 100%; height: auto; margin-top: 2.5rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-direction: column; gap: 2rem; padding: 3.5rem 0 3rem; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 3rem; }
.footer__brand { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__brand img { display: block; height: 1.75rem; width: auto; align-self: flex-start; }
.footer__tagline { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.375rem; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2.25rem; }
.footer__links a, .footer__links span { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 1.0625rem; }
.footer__links > a { font-weight: 500; color: var(--text); text-decoration: none; }
.footer__links > a:hover { color: var(--orange-hover); }
.footer__links span { gap: 0.375rem; color: var(--muted); }
.footer__note { font-size: 0.9375rem; color: var(--muted); }

/* Privacy and terms */
.legal-head { padding: 3.5rem 0 4rem; }
.legal-head .wrap { display: flex; flex-direction: column; gap: 1.25rem; }
.legal-head h1 { font-size: clamp(3rem, 5vw + 1rem, 5.5rem); line-height: 0.95; }
.legal-head .lead { max-width: 48.75rem; }
.legal-head__date { font-size: 1rem; color: var(--muted); }
.legal { display: grid; grid-template-columns: 16.25rem minmax(0, 48.75rem); gap: 5rem; align-items: start; padding-bottom: var(--section); }
.toc { position: sticky; top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; max-height: calc(100vh - 3rem); overflow-y: auto; }
.toc a { display: flex; align-items: center; min-height: 2.5rem; font-size: 1rem; line-height: 1.3; color: var(--body); text-decoration: none; }
.toc a:hover { color: var(--orange-hover); }
.legal__body { display: flex; flex-direction: column; gap: 4rem; }
.legal__body section { display: flex; flex-direction: column; gap: 1.125rem; }
.legal__body h2 { display: flex; align-items: baseline; gap: 1rem; font-family: var(--display); font-weight: 700; font-size: 2.125rem; line-height: 1.15; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text); }
.legal__body h2 .num { font-style: italic; font-weight: 800; color: var(--orange); }
.legal__body p { line-height: 1.7; color: var(--body); text-wrap: pretty; }
.short h2 { font-size: 1.75rem; line-height: 1.1; letter-spacing: 0.04em; }
.bullets { display: flex; flex-direction: column; gap: 0.75rem; line-height: 1.65; color: var(--body); }
.bullets li { position: relative; padding-left: 1.375rem; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 8px; height: 8px; background: var(--orange); border-radius: 2px; }

/* 404 */
.notfound { padding: 6rem 0 8rem; }
.notfound .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.notfound h1 { font-size: clamp(3rem, 5vw + 1rem, 5.5rem); }
.notfound__group { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }

@media (max-width: 60rem) {
  :root { --gutter: 1.25rem; --section: 4.5rem; }
  .nav { min-height: 4.75rem; }
  .nav__logo img { height: 1.5rem; }
  .nav__links { display: none; }
  .hero { padding: 1rem 0 4.5rem; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .hero__cta { align-items: stretch; }
  .hero__art { height: clamp(18.75rem, 60vw, 30rem); border-radius: 16px; }
  .section__head { margin-bottom: 3rem; }
  .grid--3, .grid--2 { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 1.5rem; }
  .card--raised { padding: 1.75rem; }
  .beta { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .art-band { margin-top: 1.5rem; }
  .footer__top { flex-direction: column; gap: 1.5rem; }
  .footer__links { flex-direction: column; align-items: flex-start; }
  .legal-head { padding: 2rem 0 3rem; }
  .legal { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .toc { position: static; max-height: none; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
  .legal__body { gap: 3rem; }
  .legal__body h2 { font-size: 1.75rem; }
}

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

@media print {
  body { background: #fff; color: #000; }
  .nav__right, .toc, .footer__links, .hero__art, .art-band { display: none; }
  .legal { grid-template-columns: minmax(0, 1fr); }
  .legal__body p, .bullets, .lead, .text, .legal__body h2, .display { color: #000; }
}
