/* Layout: a calm company column, a blue product band taken from the app's own
   video backdrop, phone stills beside chapter text. Colours are the app's
   palette (skating app/src/theme) so the site and the app read as one. */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --fg: #1f2933;
  --muted: #5d6676;
  --line: #e2e5ea;
  --primary: #1565c0;
  --primary-soft: #e3f0fc;
  --left: #12695c;
  --right: #9c3a63;
  --band-top: #1f6fd1;
  --band-bottom: #1253a6;
  --on-band: #ffffff;
  --on-band-muted: #d6e6fb;
  --todo-bg: #fff4d6;
  --todo-fg: #6b4d00;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  --measure: 62ch;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1419; --surface: #1a1f26; --fg: #e6e9ee; --muted: #a3adbb; --line: #2c333d;
    --primary: #5a9ef0; --primary-soft: #16324d; --left: #3fbfa6; --right: #eb8dcc;
    --band-top: #123e78; --band-bottom: #0b2a55; --on-band: #ffffff; --on-band-muted: #bcd4f5;
    --todo-bg: #3d3010; --todo-fg: #f3d27a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1419; --surface: #1a1f26; --fg: #e6e9ee; --muted: #a3adbb; --line: #2c333d;
  --primary: #5a9ef0; --primary-soft: #16324d; --left: #3fbfa6; --right: #eb8dcc;
  --band-top: #123e78; --band-bottom: #0b2a55; --on-band: #ffffff; --on-band-muted: #bcd4f5;
  --todo-bg: #3d3010; --todo-fg: #f3d27a;
  color-scheme: dark;
}

@font-face { font-family: "Archivo"; src: url("fonts/archivo-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.6;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 0.2em; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-3); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.stack { display: grid; gap: 1rem; }
.measure { max-width: var(--measure); }
.eyebrow { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: var(--step-1); line-height: 1.45; }
.muted { color: var(--muted); }

/* Site header and footer */
.site-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--fg); text-decoration: none; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; gap: 1.1rem; align-items: center; font-size: var(--step--1); flex-wrap: wrap; }
.nav a { color: var(--fg); text-decoration: none; font-weight: 600; }
.nav a[aria-current="page"] { color: var(--primary); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang a, .lang span { padding: 0.15rem 0.6rem; font-weight: 600; text-decoration: none; color: var(--muted); }
.lang span { background: var(--primary-soft); color: var(--primary); }

.site-foot { border-top: 1px solid var(--line); margin-top: 4rem; font-size: var(--step--1); color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1.75rem 2.5rem; }
.site-foot a { color: var(--muted); }

.section { padding-block: 3.5rem; }
.section + .section { border-top: 1px solid var(--line); }

/* Draft markers for facts the owner still has to confirm */
.todo { background: var(--todo-bg); color: var(--todo-fg); border-radius: 6px; padding: 0.05rem 0.4rem; font-weight: 600; font-size: 0.92em; }

/* Company page */
.company-hero { padding-block: 4.5rem 3rem; }
.company-hero h1 { max-width: 20ch; }
.product-card {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem 1.5rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; text-decoration: none; color: var(--fg); max-width: 760px;
}
.product-card:hover { border-color: var(--primary); }
.product-card .tile { width: 84px; height: 84px; border-radius: 20px; background: linear-gradient(160deg, var(--band-top), var(--band-bottom)); display: grid; place-items: center; }
.product-card .tile svg { width: 64px; height: 64px; }
.product-card .more { grid-column: 1 / -1; font-weight: 600; color: var(--primary); }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem 2rem; }
.principles h3 { margin-bottom: 0.35rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; gap: 0.1rem; } .facts dd { margin-bottom: 0.6rem; } }

/* Product band */
.band { background: linear-gradient(170deg, var(--band-top), var(--band-bottom)); color: var(--on-band); }
.band a { color: var(--on-band); }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 2rem; align-items: center; padding-block: 3.5rem 0; }
.hero .copy { display: grid; gap: 1.25rem; padding-bottom: 3.5rem; }
.hero .eyebrow { color: var(--on-band-muted); }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); }
.hero .lead { color: var(--on-band); font-weight: 600; }
.hero .sub { color: var(--on-band-muted); max-width: 46ch; }
.hero .phones { position: relative; align-self: end; display: flex; justify-content: center; min-height: 100%; }
.hero .phones img { width: min(250px, 46%); border-radius: 22px 22px 0 0; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28); }
.hero .phones img + img { margin-left: -9%; margin-top: 2.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.button { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.25rem; border-radius: 999px; font-weight: 700; text-decoration: none; font-family: var(--display); }
.button.solid { background: var(--on-band); color: var(--band-bottom); }
.button.ghost { border: 2px solid var(--on-band-muted); color: var(--on-band); }
.button.primary { background: var(--primary); color: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .button.primary { color: #0b1420; } }
:root[data-theme="dark"] .button.primary { color: #0b1420; }
.beta-chip { display: inline-block; width: fit-content; font-size: var(--step--1); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--on-band-muted); border-radius: 999px; padding: 0.15rem 0.7rem; color: var(--on-band-muted); }

/* Video */
.video-block { display: grid; gap: 1.25rem; }
.video-frame { border-radius: var(--radius); overflow: hidden; background: #0b1420; box-shadow: 0 10px 40px rgba(16, 24, 40, 0.18); aspect-ratio: 16 / 9; max-width: 100%; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.scenes { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: var(--step--1); color: var(--muted); }
.scenes b { color: var(--fg); font-variant-numeric: tabular-nums; margin-right: 0.35rem; }

/* Chapters: the route mark's dots climbing to a ring mark where the reader is */
.chapters { display: grid; gap: 4rem; }
.chapter { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2.5rem; align-items: center; }
.chapter:nth-child(even) .shot { order: 2; }
.chapter .shot { background: linear-gradient(170deg, var(--band-top), var(--band-bottom)); border-radius: var(--radius); padding: 1.75rem 1.75rem 0; display: flex; justify-content: center; overflow: hidden; }
.chapter .shot img { width: min(270px, 100%); border-radius: 18px 18px 0 0; }
.chapter .text { display: grid; gap: 0.9rem; min-width: 0; }
.chapter .says { font-family: var(--display); font-weight: 600; font-size: var(--step-1); line-height: 1.3; list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.chapter .says li::before { content: ""; display: inline-block; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--primary); margin-right: 0.6em; vertical-align: 0.12em; }
.route { display: inline-flex; align-items: flex-end; gap: 6px; height: 22px; }
.route i { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); opacity: 0.3; }
.route i:nth-child(2) { margin-bottom: 3px; } .route i:nth-child(3) { margin-bottom: 6px; } .route i:nth-child(4) { margin-bottom: 9px; } .route i:nth-child(5) { margin-bottom: 12px; }
.route i.here { opacity: 1; background: transparent; border: 3px solid var(--primary); width: 12px; height: 12px; }
.chapter-head { display: flex; align-items: center; gap: 0.9rem; }

.feet { display: inline-flex; gap: 0.9rem; font-size: var(--step--1); color: var(--muted); }
.feet span::before { content: ""; display: inline-block; width: 0.7em; height: 0.7em; border-radius: 50%; margin-right: 0.35em; vertical-align: -0.02em; }
.feet .l::before { background: var(--left); } .feet .r::before { background: var(--right); }

.free { background: var(--surface); border-block: 1px solid var(--line); }
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.75rem; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 700; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-variant-numeric: tabular-nums; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-block: 2.5rem 0; }
  .hero .copy { padding-bottom: 0.5rem; }
  .chapter, .join { grid-template-columns: 1fr; gap: 1.5rem; }
  .chapter:nth-child(even) .shot { order: 0; }
  .product-card { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .product-card { transition: border-color 0.15s ease; }
}
