/* Two identities share one sheet: the company is neutral ink and grey
   (body.company); SkatingZone keeps the app's own blue (the default tokens,
   from the skating app's app/src/theme) on its own pages and its card. */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --fg: #1f2933;
  --muted: #5d6676;
  --line: #e2e5ea;
  --primary: #1565c0;
  --primary-soft: #e3f0fc;
  --on-primary: #ffffff;
  --left: #12695c;
  --right: #9c3a63;
  --band-top: #1f6fd1;
  --band-bottom: #1253a6;
  --on-band: #ffffff;
  --on-band-muted: #d6e6fb;
  --glow: rgba(120, 130, 145, 0.16);
  --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.3rem, 1.4rem + 3.6vw, 4rem);
  --measure: 62ch;
  --radius: 14px;
}
body.company { --bg: #f6f7f8; --fg: #1d2024; --muted: #5f646c; --line: #e3e5e8; --primary: #1d2024; --primary-soft: #eceef0; --on-primary: #ffffff; }
@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; --on-primary: #0b1420; --left: #3fbfa6; --right: #eb8dcc;
    --band-top: #123e78; --band-bottom: #0b2a55; --on-band: #ffffff; --on-band-muted: #bcd4f5;
    --glow: rgba(160, 170, 185, 0.08); --todo-bg: #3d3010; --todo-fg: #f3d27a;
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) body.company { --bg: #121417; --surface: #1b1e22; --fg: #e8eaed; --muted: #a2a8b1; --line: #2b2f35; --primary: #e8eaed; --primary-soft: #2a2e34; --on-primary: #121417; }
}
:root[data-theme="dark"] {
  --bg: #0f1419; --surface: #1a1f26; --fg: #e6e9ee; --muted: #a3adbb; --line: #2c333d;
  --primary: #5a9ef0; --primary-soft: #16324d; --on-primary: #0b1420; --left: #3fbfa6; --right: #eb8dcc;
  --band-top: #123e78; --band-bottom: #0b2a55; --on-band: #ffffff; --on-band-muted: #bcd4f5;
  --glow: rgba(160, 170, 185, 0.08); --todo-bg: #3d3010; --todo-fg: #f3d27a;
  color-scheme: dark;
}
:root[data-theme="dark"] body.company { --bg: #121417; --surface: #1b1e22; --fg: #e8eaed; --muted: #a2a8b1; --line: #2b2f35; --primary: #e8eaed; --primary-soft: #2a2e34; --on-primary: #121417; }

@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%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
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, summary: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; }
[id] { scroll-margin-top: 84px; }

.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); }
.section { padding-block: 3.5rem; }
.section + .section { border-top: 1px solid var(--line); }
.todo { background: var(--todo-bg); color: var(--todo-fg); border-radius: 6px; padding: 0.05rem 0.4rem; font-weight: 600; font-size: 0.92em; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--primary); color: var(--on-primary); padding: 0.5rem 0.9rem; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

/* Header: sticky; nothing in it changes size while scrolling */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--surface); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--fg); text-decoration: none; }
.nav { display: flex; gap: 1.1rem; align-items: center; font-size: var(--step--1); }
.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 { display: inline-flex; align-items: center; min-height: 34px; padding: 0 0.75rem; font-weight: 600; text-decoration: none; color: var(--muted); }
.lang span { background: var(--primary-soft); color: var(--primary); }
.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); white-space: nowrap; }
.button.primary { background: var(--primary); color: var(--on-primary); }
.head-cta { padding: 0.45rem 0.95rem; font-size: var(--step--1); visibility: hidden; opacity: 0; }
body.past-hero .head-cta, html:not(.js) .head-cta { visibility: visible; opacity: 1; }
@media (max-width: 640px) {
  .nav { gap: 0.45rem; }
  .nav > a:not(.head-cta) { display: none; }
  .company .nav > a:not([aria-current]) { display: inline-flex; }
  .lang a, .lang span { padding: 0 0.55rem; }
  .head-cta { padding: 0.45rem 0.8rem; }
}

.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-direction: column; gap: 0.75rem; padding-block: 1.75rem 2.5rem; }
.site-foot a { color: var(--muted); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.foot-nav a { color: var(--fg); text-decoration: none; font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }

/* Company */
.company-hero-band { position: relative; overflow: hidden; }
.company-hero-band::before { content: ""; position: absolute; width: 46vmax; height: 46vmax; right: -12vmax; top: -24vmax; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.company-hero { position: relative; padding-block: 5.5rem 4rem; }
.company-hero h1 .line { display: block; }
.company-hero .lead { max-width: 46ch; }
.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(--muted); }
.product-card .tile { width: 84px; height: 84px; border-radius: 20px; background: var(--primary-soft); color: var(--fg); 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(--fg); }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem 2rem; }
.principles h3 { margin-bottom: 0.35rem; }
.statements { gap: 2.5rem 3rem; }
.statements > div { padding-top: 1.2rem; border-top: 1px solid var(--fg); }
.statements h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.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; } }
@media (max-width: 700px) { .company-hero { padding-block: 3.5rem 2.5rem; } .product-card { grid-template-columns: 1fr; } }

/* SkatingZone: hero band */
.band { background: linear-gradient(170deg, var(--band-top), var(--band-bottom)); color: var(--on-band); overflow: hidden; }
.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 h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); }
.hero .lead { font-weight: 600; }
.hero .sub { color: var(--on-band-muted); max-width: 46ch; }
.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); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.button.solid { background: var(--on-band); color: var(--band-bottom); }
.button.ghost { border: 2px solid var(--on-band-muted); color: var(--on-band); }
.facts-strip { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; color: var(--on-band-muted); font-size: var(--step--1); }
.facts-strip b { display: block; font-family: var(--display); font-size: 1.6rem; line-height: 1.1; color: var(--on-band); font-variant-numeric: tabular-nums; }
.phones { position: relative; align-self: stretch; min-height: 480px; }
.phones img { position: absolute; width: min(220px, 42%); border-radius: 9% / 4.2%; box-shadow: 0 22px 50px rgba(5, 20, 50, 0.35); }
.phones .phone-back { right: 46%; top: 3.5rem; }
.phones .phone-front { right: 8%; top: 1.5rem; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-block: 2.5rem 0; }
  .hero .copy { padding-bottom: 0.5rem; }
  .phones { min-height: 400px; }
  .phones img { width: min(190px, 44%); }
  .phones .phone-back { right: auto; left: 8%; top: 2.5rem; }
  .phones .phone-front { right: 8%; top: 0.5rem; }
}

/* SkatingZone: how it works, one phone and five tabs */
.tour { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 3rem; align-items: center; margin-top: 2rem; overflow-x: clip; }
.tour-device { position: relative; width: min(260px, 100%); justify-self: center; aspect-ratio: 540 / 1162; }
.tour-device::before { content: ""; position: absolute; inset: -12% -40%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 22%, transparent), transparent); }
.tour-device img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 9% / 4.2%; box-shadow: 0 24px 56px rgba(5, 20, 50, 0.28); opacity: 0; }
.tour-device img.on { opacity: 1; }
.tour-text { display: grid; gap: 1.5rem; min-width: 0; }
.tour-tabs { display: none; }
.js .tour-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tour-tabs button { font: 600 var(--step--1) / 1 var(--text); color: var(--fg); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 0.6rem 1rem; min-height: 40px; cursor: pointer; }
.tour-tabs button[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.tour-panels { display: grid; gap: 2rem; }
.js .tour-panels { gap: 0; }
.js .tour-panel { grid-area: 1 / 1; visibility: hidden; opacity: 0; }
.js .tour-panel.on { visibility: visible; opacity: 1; }
.tour-panel { display: grid; gap: 0.8rem; align-content: start; }
.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; }
.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; }
.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); }
@media (max-width: 820px) {
  .tour { grid-template-columns: 1fr; gap: 1.75rem; }
  .tour-device { width: min(220px, 70%); }
  .tour-device::before { inset: -10% -20%; }
  .js .tour-tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .js .tour-tabs button { flex: none; }
}

/* SkatingZone: the rest */
.free { background: var(--surface); border-block: 1px solid var(--line); }
.faq-list { display: grid; max-width: 820px; border-top: 1px solid var(--line); margin-top: 1.5rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0.25rem; font-family: var(--display); font-weight: 600; font-size: var(--step-1); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 0.75rem; height: 0.75rem; border-radius: 50%; border: 3px solid var(--primary); }
.faq details[open] summary::after { background: var(--primary); }
.faq details p { padding: 0 0.25rem 1.25rem; color: var(--muted); max-width: 64ch; }
.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; }
@media (max-width: 820px) { .join { grid-template-columns: 1fr; } }

/* Motion, only where reduced motion is not asked for (the script sets .motion) */
.motion [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.motion [data-reveal].in { opacity: 1; transform: none; }
.motion [data-depth] { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.motion .head-cta { transition: opacity 0.25s ease, visibility 0.25s; }
.motion .tour-device img { transition: opacity 0.45s ease; }
.motion .tour-panel { transition: opacity 0.35s ease, visibility 0.35s; }
.motion .company-hero-band::before { animation: drift 28s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-6vmax, 5vmax) scale(1.08); } }
.motion .faq details[open] p { animation: fade-down 0.35s ease; }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } }
