/* Outly Ride — the product site.
 *
 * Deliberately its own stylesheet rather than an extension of site.css: the notes site is a light,
 * paper-like page and this one is a dark, high-contrast training page. Sharing a sheet would mean
 * every rule fighting the other product's defaults, and one of them would keep losing.
 *
 * Type: Barlow Condensed 800 for anything that has to hit hard (it is already in the repo for the
 * app's own headings), Figtree for reading. Colour: near-black surfaces, one accent (#FF4B1F,
 * the icon's bike orange) and a warm gradient for emphasis. Nothing else - a second accent colour
 * would make the screenshots look dull by comparison, which is the opposite of the point.
 */

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
}

:root {
  --bg: #0B0C0E;
  --surface: #14161A;
  --surface-2: #191C21;
  --line: #24272D;
  --text: #F5F6F7;
  --muted: #9BA1A9;
  --accent: #FF4B1F;
  --accent-2: #FF7A3D;
  --good: #34C77B;
  --radius: 18px;
  --gutter: clamp(20px, 5vw, 64px);
  --measure: 64rem;
}

* { box-sizing: border-box; }

/* The templates say "not for this state" with the `hidden` attribute - a signed-out visitor must
 * not see Sign out, and a form's error box starts empty. The browser's own [hidden] rule is a
 * user-agent rule, so any author rule that sets `display` on the same element (.btn is
 * inline-flex, .cta-row is flex) quietly beats it and the element stays on screen. Restating it
 * here, with the weight a state rule deserves, makes the attribute mean what it says everywhere. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* A single warm light source behind the hero. Cheap, and it stops a black page reading as a
   template. */
body::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw auto -10vw;
  height: 90vh;
  background:
    radial-gradient(60% 55% at 22% 0%, rgba(255, 75, 31, 0.22), transparent 70%),
    radial-gradient(45% 45% at 85% 8%, rgba(255, 122, 61, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; }

img { max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 12px; top: 12px;
  background: var(--accent); color: #fff;
  padding: 10px 16px; border-radius: 10px; z-index: 99;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(11, 12, 14, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand__icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: block;
}

.brand__name { font-size: 17px; }
.brand__name span { color: var(--muted); font-weight: 500; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  transition: color 0.15s ease;
}
.nav a:hover, .nav a:focus-visible { color: var(--text); }

@media (max-width: 620px) {
  .nav { gap: 14px; }
  .nav a.hide-sm { display: none; }
}

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

.hero {
  padding: clamp(56px, 9vw, 108px) 0 clamp(48px, 7vw, 84px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

h1 {
  font-family: "Barlow Condensed", Figtree, sans-serif;
  font-weight: 800;
  font-size: clamp(44px, 7.2vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  text-wrap: balance;
}
h1 em {
  font-style: normal;
  background: linear-gradient(96deg, var(--accent2, #FF7A3D), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(17px, 2.1vw, 20px);
  color: #C9CED5;
  max-width: 34ch;
  margin: 0 0 30px;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
  color: var(--muted);
}
.chip--live {
  border-color: rgba(255, 75, 31, 0.45);
  background: rgba(255, 75, 31, 0.10);
  color: #FFD9CB;
}
.chip__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 75, 31, 0.18);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn--primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 75, 31, 0.28);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(255, 75, 31, 0.36); }
.btn--ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover { border-color: #3A3F47; }

.note-sm { color: var(--muted); font-size: 14px; margin: 16px 0 0; }

/* Hero visual: the icon on a plinth, so the page has the product's own face at the top. */
.hero__art {
  position: relative;
  display: grid;
  place-items: center;
}
.hero__icon {
  width: min(74%, 340px);
  aspect-ratio: 1;
  border-radius: 26%;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* ---------- screenshot gallery ---------- */

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tight { padding-top: 0; }

.section-head { margin-bottom: 38px; }
.section-head h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--muted); margin: 0; max-width: 60ch; }

/* The screenshot grid that lived here is gone: the hero phone shows the same six captures,
   larger and swipeable, and the grid made the page say the same thing twice. The rules are
   deleted rather than left unused so the next edit cannot resurrect a section no template has. */

/* ---------- features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}

.feature {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.feature h3 {
  font-size: 17px;
  margin: 14px 0 8px;
  letter-spacing: -0.01em;
}
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.feature__icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(255, 75, 31, 0.12);
  border: 1px solid rgba(255, 75, 31, 0.22);
  color: var(--accent-2);
}

/* ---------- status strip ---------- */

.status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.status__cell {
  background: var(--surface);
  padding: 22px 24px;
}
.status__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
.status__value { font-weight: 700; margin: 0; font-size: 16px; }
.status__value--live { color: #FFC9B8; }
.status__value--soon { color: var(--muted); }

/* ---------- prose (privacy) ---------- */

.prose { max-width: 68ch; }
.prose h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 4vw, 40px);
  margin: 0 0 8px;
}
.prose h3 { font-size: 18px; margin: 34px 0 8px; }
.prose p, .prose li { color: #C7CCD3; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--accent-2); }
.prose code {
  background: rgba(255,255,255,0.06);
  padding: 1px 6px; border-radius: 6px; font-size: 0.9em;
}
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; }

/* ---------- form ---------- */

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  max-width: 520px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 7px; }
.field input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0E1013;
  color: var(--text);
  font: inherit;
}
.field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.field__hint { font-size: 13px; color: var(--muted); margin: 7px 0 0; }

.alert {
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 22px;
  font-size: 15px;
  border: 1px solid rgba(255, 75, 31, 0.35);
  background: rgba(255, 75, 31, 0.10);
  color: #FFD9CB;
}
.alert--ok {
  border-color: rgba(52, 199, 123, 0.35);
  background: rgba(52, 199, 123, 0.10);
  color: #C8F3DE;
}

.btn--danger {
  background: linear-gradient(180deg, #FF6A43, #E23B12);
  color: #fff;
  box-shadow: 0 10px 28px rgba(226, 59, 18, 0.26);
}
.btn--danger:hover { transform: translateY(-1px); }

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

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 40px 0 56px;
  margin-top: 40px;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
}
.footer-links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-copy { margin: 0 0 0 auto; }

@media (max-width: 620px) {
  .footer-copy { margin-left: 0; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
