/* paddock.racing - direction C "Precision" (L22-1647).
   Geist for all text, Geist Mono for small labels and numbers. SIL OFL 1.1, self-hosted.
   No inline styles anywhere: every rule lives in this file (site CSP: style-src 'self'). */

@font-face { font-family: "Geist"; src: url("../fonts/Geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  /* Brand */
  --orange-1: #ff9824;
  --orange-2: #ff7510;
  --orange-3: #ff5000;
  --gradient: linear-gradient(135deg, var(--orange-1) 0%, var(--orange-2) 48%, var(--orange-3) 100%);
  --gradient-x: linear-gradient(90deg, var(--orange-1), var(--orange-2) 48%, var(--orange-3));
  --rim: linear-gradient(135deg, #e9a77e 0%, #563325 45%, #9c502f 100%);
  /* Surfaces */
  --bg: #050505;
  --surface: #0c0c0c;
  --surface-2: #121212;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  /* Text: --fg and --muted carry essential text (contrast 18:1 and 7.6:1 on --bg). */
  --fg: #f5f5f4;
  --muted: #a1a09c;
  --dim: #6b6a66;
  --accent-text: #ff8a33;
  /* Layout */
  --wrap: 1200px;
  --gutter: 32px;
  --radius: 16px;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
main { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font: 0.88em var(--mono); color: var(--fg); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
:focus-visible { outline: 2px solid var(--orange-1); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 20px; height: 20px; flex: none; }
.icon-lg { width: 28px; height: 28px; }
.grad { background: var(--gradient-x); -webkit-background-clip: text; background-clip: text; color: transparent; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 600; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ buttons */
.btn, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 600 15px/1 var(--font); white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
}
.btn {
  background: var(--gradient); color: #0b0b0b;
  box-shadow: 0 0 0 1px rgba(255, 152, 36, 0.5), 0 10px 40px -8px rgba(255, 80, 0, 0.6);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 152, 36, 0.7), 0 14px 50px -8px rgba(255, 80, 0, 0.75); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); color: var(--fg); font-weight: 500; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.06); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 13.5px; box-shadow: none; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn .icon { width: 18px; height: 18px; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }


/* ------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(5, 5, 5, 0.72); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); }
/* On a short screen the header scrolls away, so that an open menu stays reachable. */
@media (max-height: 560px) { .site-header { position: static; } }
.header-row { display: flex; align-items: center; gap: 40px; height: 68px; }
.brand img { height: 16px; width: auto; }
.primary { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.primary a { padding: 6px 0; }
.primary a:hover, .primary a[aria-current] { color: var(--fg); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 24px; font-size: 14px; }
.lang { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); }
.lang a { color: var(--muted); padding: 4px 0; }
.lang a[aria-current] { color: var(--fg); }
.lang a:hover { color: var(--fg); }
.app-link { color: var(--fg); }
.app-link.plain { color: inherit; }
.menu-link, .menu-btn { display: none; }
.mobile-row { display: none; }
.mobile-menu[hidden] { display: none; }
@media (min-width: 761px) { .mobile-menu { display: none !important; } }

/* ------------------------------------------------------------ hero */
.hero { position: relative; text-align: center; overflow: hidden; }
.hero-copy { position: relative; z-index: 3; padding-top: 88px; }
.hero:not(.hero-media) .hero-copy { padding-bottom: 96px; }
.hero h1 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -0.045em; max-width: 1000px; margin: 0 auto; }
.hero h1 .grad { display: block; }
.lede { margin: 24px auto 0; max-width: 620px; font-size: 18.5px; line-height: 1.55; color: var(--muted); }
.hero .ctas { margin-top: 36px; }

.horizon { position: absolute; z-index: -1; left: 50%; width: 100vw; transform: translateX(-50%); top: -150px; height: 420px; pointer-events: none; }
.horizon::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 1300px; height: 300px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 117, 16, 0.42), rgba(255, 80, 0, 0.1) 55%, transparent);
  filter: blur(10px);
}
.floor { position: absolute; left: 0; top: 118px; width: 100%; height: 400px; }
.floor path { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; vector-effect: non-scaling-stroke; }

.hero-shot { position: relative; z-index: 2; isolation: isolate; margin-top: 150px; }
.glow {
  position: absolute; z-index: 0; left: 50%; top: -120px; width: 1100px; height: 520px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 117, 16, 0.16), rgba(255, 80, 0, 0.04) 60%, transparent);
}
.glow-soft { opacity: 0.6; }

/* App window and image panels */
.window {
  position: relative; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14); background: #0a0a0a;
  box-shadow: 0 -1px 0 rgba(255, 152, 36, 0.5), 0 -20px 80px -20px rgba(255, 117, 16, 0.55), 0 40px 100px rgba(0, 0, 0, 0.7);
}
.hero-shot .window { max-width: 1120px; margin: 0 auto; animation: rise 1.2s cubic-bezier(.2,.7,.1,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
.chrome { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #0d0d0d; }
.chrome span { width: 10px; height: 10px; border-radius: 50%; background: #2a2a2a; }
.chrome em { margin: 0 auto; transform: translateX(-25px); font: 400 11.5px var(--mono); font-style: normal; color: var(--dim); }
.window img, .panel img { width: 100%; height: auto; }
.window picture { display: block; }
.hero-caption { margin-top: 18px; font: 400 12.5px/1.6 var(--mono); color: var(--muted); }
.panel { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: #0a0a0a; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); }
.panel.flush { border: 0; border-radius: 0; box-shadow: none; }

/* ------------------------------------------------------------ sections */
.section { position: relative; padding: 120px 0 0; }
.section-tight { padding-top: 64px; }
.sec-head { display: grid; row-gap: 14px; max-width: 760px; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -0.035em; }
.sec-head p { color: var(--muted); font-size: 18px; max-width: 620px; }

/* Home: what Paddock helps you do */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { padding: 20px 20px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step-shot { height: 190px; border-radius: 10px; }
.step-shot img { height: 100%; width: 100%; object-fit: cover; object-position: center; }
.step-text { margin-top: 28px; font-size: 19px; line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; }
.step-body { margin-top: 10px; font-size: 16px; color: var(--muted); }

/* Cards */
.card { position: relative; padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.card > .icon-lg { color: var(--fg); margin-bottom: 28px; }
.card h2 { font-size: 26px; line-height: 1.15; letter-spacing: -0.03em; }
.card p { margin-top: 12px; color: var(--muted); font-size: 16.5px; }
.card .btn, .card .btn-ghost { margin-top: 28px; }

.bento { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; }
.card-circuit, .card-browser { padding: 40px; min-height: 520px; display: flex; flex-direction: column; }
.card-circuit h2, .card-browser h2 { font-size: 32px; }
.card-browser .window-card { flex: none; width: 900px; max-width: none; margin: 40px -40px -40px 40px; border-radius: 12px 0 0 0; box-shadow: 0 -20px 60px -30px rgba(255, 117, 16, 0.5); }

/* Diagram: MyChron -> iPhone -> Web */
.diagram-stage { position: relative; flex: 1; display: flex; align-items: center; margin: 40px -40px -40px; padding: 48px 40px; min-height: 280px; border-top: 1px solid var(--line);
  background: radial-gradient(60% 70% at 50% 100%, rgba(255, 117, 16, 0.16), transparent 70%), linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015)); overflow: hidden; }
.stage-floor { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: min(60%, 240px); }
.stage-floor path { fill: none; stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; vector-effect: non-scaling-stroke; }
.diagram { position: relative; z-index: 1; width: 100%; display: flex; align-items: center; }
.node { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 14px; min-width: 92px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); font: 500 12px/1 var(--mono); color: var(--muted); }
.node .icon { width: 26px; height: 26px; color: var(--fg); }
.node-main { position: relative; padding: 24px 22px; border-color: rgba(255, 152, 36, 0.55); box-shadow: 0 0 40px -10px rgba(255, 117, 16, 0.6); color: var(--fg); }
.node-main .icon { width: 32px; height: 32px; }
.badge-off { position: absolute; top: -10px; right: -10px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); }
.badge-off .icon { width: 15px; height: 15px; color: var(--muted); }
.link { position: relative; flex: 1; height: 1px; margin: 0 6px; background: repeating-linear-gradient(90deg, rgba(255, 152, 36, 0.8) 0 6px, transparent 6px 12px); background-size: 24px 1px; animation: flow 1.2s linear infinite; }
@keyframes flow { to { background-position: 24px 0; } }
.link-icon { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); }
.link-icon .icon { width: 16px; height: 16px; color: var(--orange-1); }

/* In development band */
.dev-band {
  padding: 40px; border-radius: var(--radius); border: 1px dashed rgba(255, 255, 255, 0.18);
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0 12px, transparent 12px 24px);
}
.dev-text { display: grid; row-gap: 12px; max-width: 760px; }
.dev-text h2 { font-size: 30px; letter-spacing: -0.03em; }
.dev-text p { color: var(--muted); font-size: 16.5px; }

/* Price band */
.section-band { padding-top: 24px; }
.price-band { display: flex; align-items: center; justify-content: space-between; gap: 64px; padding: 40px; border-radius: var(--radius); border: 1px solid rgba(255, 152, 36, 0.4); background: var(--surface); }
.price-text { display: grid; row-gap: 12px; max-width: 752px; }
.price-text h2 { font-size: 30px; letter-spacing: -0.03em; }
.price-text p { color: var(--muted); font-size: 16.5px; }
.price-label { font-size: 15px; font-weight: 500; color: var(--accent-text); }
.price-action { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; flex: none; }

/* CTA band */
.cta { position: relative; margin-top: 128px; padding: 120px 0 128px; text-align: center; overflow: hidden; border-top: 1px solid var(--line); }
.cta::before { content: ""; position: absolute; z-index: 1; left: 50%; top: 0; width: 640px; height: 1px; transform: translateX(-50%); background: var(--gradient-x); box-shadow: 0 0 30px 4px rgba(255, 117, 16, 0.6); }
.cta .glow { top: -260px; }
.cta-inner { position: relative; z-index: 2; }
.cta h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.04em; }
.cta p { margin: 20px auto 0; max-width: 560px; color: var(--muted); font-size: 18px; }
.cta .ctas { margin-top: 36px; }

/* Features rows */
.row-section { padding-top: 128px; }
.feature-row { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
.feature-row.flip { grid-template-columns: 7fr 5fr; }
.feature-row.flip .feature-text { order: 2; }
.feature-text { display: grid; row-gap: 16px; }
.feature-text h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.035em; }
.feature-text p { color: var(--muted); font-size: 18px; }
.feature-media { position: relative; }
.feature-media::before { content: ""; position: absolute; inset: -60px; z-index: -1; background: radial-gradient(closest-side, rgba(255, 117, 16, 0.10), transparent); }

/* Formats visual */
.formats { padding: 32px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); }
.drop { display: flex; align-items: center; justify-content: center; height: 180px; border-radius: 12px; border: 1.5px dashed rgba(255, 152, 36, 0.45); background: radial-gradient(closest-side, rgba(255, 117, 16, 0.12), transparent); position: relative; }
.drop .icon { width: 40px; height: 40px; color: var(--orange-1); }
.drop-line { position: absolute; left: 24px; right: 24px; bottom: 20px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.drop-line::after { content: ""; position: absolute; inset: 0; width: 62%; background: var(--gradient-x); border-radius: 3px; animation: load 2.4s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes load { from { width: 0; } 70% { width: 100%; } to { width: 100%; opacity: 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chips li { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); }
.chips strong { font: 600 14px/1 var(--mono); color: var(--fg); }
.chips span { font-size: 13px; color: var(--muted); }

/* Platform tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 112px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); }
.tile img { width: 26px; height: 26px; margin-bottom: 0; }
.tile-name { font: 500 13px/1 var(--mono); }
.tile-status { font: 500 11px/1 var(--mono); }
.tile-live { border-color: rgba(255, 152, 36, 0.45); background: radial-gradient(closest-side, rgba(255, 117, 16, 0.14), transparent), var(--surface); color: var(--fg); }
.tile-live .tile-status { color: var(--accent-text); }
.panel-video img { aspect-ratio: 656 / 386; object-fit: cover; }

/* Platforms */
.plat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.plat-live { grid-column: 1 / -1; display: grid; grid-template-columns: 471fr 615fr; column-gap: 48px; align-items: center; border-color: rgba(255, 152, 36, 0.4); background: radial-gradient(80% 120% at 100% 0%, rgba(255, 117, 16, 0.10), transparent 60%), var(--surface); }
.plat-logo { width: 28px; height: 28px; object-fit: contain; }
.plat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.status { display: inline-block; font-size: 13.5px; font-weight: 500; line-height: 1.3; color: var(--muted); }
.status::first-letter { text-transform: uppercase; }
.status-live { color: var(--accent-text); }
.note { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); }
.note .icon-lg { color: var(--fg); }
.note h2 { font-size: 24px; }
.note p { margin-top: 8px; color: var(--muted); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: 480fr 696fr; gap: 24px; align-items: start; }
.price-card { padding: 40px 32px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 24px; }
.amount { font: 600 56px/1.05 var(--font); letter-spacing: -0.04em; }
.period { font-size: 18px; color: var(--muted); }
.price-card .price-note { margin-top: 12px; }
.price-card .btn { display: flex; width: 100%; margin-top: 28px; }
.price-lists { display: grid; gap: 24px; }
.rows { margin-top: 18px; display: grid; gap: 14px; }
.rows li { display: flex; gap: 12px; color: var(--muted); font-size: 16.5px; }
.rows .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--dim); }
.rows-check .icon { color: var(--accent-text); }

/* Teams */
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Request access */
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.access-main { grid-column: 1 / -1; padding: 48px; border-color: rgba(255, 152, 36, 0.45); }
.access-main h2 { font-size: 36px; }
.access-main p { max-width: 640px; font-size: 18px; }
.access-glow { position: absolute; right: -200px; top: -200px; width: 600px; height: 600px; background: radial-gradient(closest-side, rgba(255, 117, 16, 0.22), transparent); pointer-events: none; }
.caption { margin-top: 16px !important; font: 400 12.5px/1.6 var(--mono) !important; color: var(--muted) !important; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: linear-gradient(90deg, var(--orange-2), rgba(255, 255, 255, 0.12) 70%); }
.timeline li { position: relative; padding: 32px 32px 0 0; }
.timeline p { font-size: 18px; line-height: 1.45; color: var(--fg); }
.timeline li:last-child p { color: var(--muted); }
.tl-dot { position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 2px solid var(--orange-2); }
.timeline li:last-child .tl-dot { border-color: var(--line-2); }

/* Legal */
.legal { position: relative; padding: 72px 0 0; overflow: hidden; }
.legal-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 260px minmax(0, 760px); gap: 80px; }
.toc { position: sticky; top: 100px; align-self: start; padding-top: 12px; }
.toc li a { display: flex; padding: 8px 0; font-size: 14px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 16px; }
.toc li a:hover { color: var(--fg); border-left-color: var(--orange-2); }
.legal-body h1 { font-size: clamp(36px, 4vw, 56px); letter-spacing: -0.04em; line-height: 1.05; }
.notice { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; padding: 16px 18px; border-radius: 12px; border: 1px solid rgba(255, 152, 36, 0.4); background: rgba(255, 117, 16, 0.06); color: var(--fg); font-size: 15.5px; }
.notice .icon { color: var(--accent-text); margin-top: 2px; }
.legal-sec { padding: 40px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.legal-sec:last-child { border-bottom: 0; }
.legal-sec h2 { display: flex; gap: 16px; align-items: baseline; font-size: 22px; letter-spacing: -0.02em; }
.legal-sec p { margin-top: 14px; color: var(--muted); font-size: 16.5px; line-height: 1.7; }
.nowrap { white-space: nowrap; }
.text-link { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.text-link:hover { text-decoration-color: var(--fg); }

/* 404 */
.hero-404 .hero-copy { padding: 120px var(--gutter) 40px; }
.big-404 { font: 600 clamp(120px, 18vw, 220px)/0.9 var(--font); letter-spacing: -0.06em; background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.05)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 24px; }
.small { margin-top: 32px; font-size: 14.5px; color: var(--muted); }

/* ------------------------------------------------------------ footer */
.site-footer { margin-top: 0; padding: 72px 0 40px; border-top: 1px solid var(--line); background: #070707; }
.legal + .site-footer, main > .section:last-child { margin-top: 0; }
.foot-top { display: flex; justify-content: space-between; gap: 48px; }
.foot-brand img { height: 18px; width: auto; }
.foot-nav { display: grid; grid-template-columns: repeat(3, minmax(150px, auto)); gap: 48px; }
.foot-nav li { font-size: 14.5px; }
.foot-nav li + li { margin-top: 12px; }
.foot-nav a { font-size: 14.5px; color: var(--muted); }
.foot-nav a:hover { color: var(--fg); }
.foot-nav .app-link { color: var(--muted); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
main::after { content: ""; display: block; height: 120px; }
main:has(> .cta:last-child)::after { height: 0; }
main:has(> .cta:last-child) + .site-footer { border-top: 0; }

/* ------------------------------------------------------------ medium screens (tablet, small laptop) */
@media (max-width: 1180px) {
  :root { --gutter: 28px; }
  .header-row { gap: 28px; }
  .primary { gap: 22px; }
  .header-actions { gap: 18px; }
  .bento { grid-template-columns: 1fr; }
  .card-circuit, .card-browser { min-height: 0; }
  .card-browser .window-card { width: 100%; }
  .feature-row, .feature-row.flip { grid-template-columns: 1fr 1fr; gap: 48px; }
  .plat-live { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .price-band { gap: 32px; }
  .legal-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 56px; }
}

/* Three role cards are too narrow for the longest Spanish words. */
@media (max-width: 960px) {
  .role-grid { grid-template-columns: minmax(0, 1fr); }
}

/* The page links, the language links and the two actions do not fit on one row. */
@media (min-width: 761px) and (max-width: 1120px) {
  .header-row { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 6px; row-gap: 4px; }
  .primary { order: 3; width: 100%; }
}

/* ------------------------------------------------------------ phones */
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .header-row { height: 60px; gap: 12px; }
  .primary, .header-actions { display: none; }
  html:not(.js) .menu-link, html.js .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 44px; padding: 0 16px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.04); color: var(--fg); border: 1px solid var(--line-2); font: 500 14px/1 var(--font); cursor: pointer;
  }
  .menu-btn .icon, .menu-link .icon { width: 18px; height: 18px; }
  .mobile-row { display: flex; align-items: center; justify-content: space-between; height: 44px; border-top: 1px solid var(--line); font-size: 14px; }
  .mobile-row .lang { display: flex; }
  .mobile-row .lang a { min-height: 44px; display: inline-flex; align-items: center; }
  .mobile-row .app-link { min-height: 44px; display: inline-flex; align-items: center; }
  .mobile-menu { display: grid; gap: 8px; padding-bottom: 20px; border-top: 1px solid var(--line); }
  .mobile-menu nav { display: grid; }
  .mobile-menu nav a { display: flex; align-items: center; min-height: 52px; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 12px; min-height: 52px; }
  .menu-close { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--fg); font: 500 15px/1 var(--font); }
  .menu-close .icon { width: 18px; height: 18px; }

  .hero-copy { padding-top: 48px; }
  .hero > .glow { top: -60px; height: 340px; }
  .hero:not(.hero-media) .hero-copy { padding-bottom: 56px; }
  .hero h1 { font-size: 40px; letter-spacing: -0.04em; }
  .lede { font-size: 16.5px; }
  .hero .ctas { flex-direction: column; align-items: stretch; }
  .hero-shot { margin-top: 96px; padding-right: 0; }
  .hero-shot .window { width: 760px; max-width: none; }
  .hero-shot-fit { padding-right: var(--gutter); }
  .hero-shot .window-fit { width: auto; max-width: 100%; }
  .horizon { top: -120px; }

  .section { padding-top: 88px; }
  .section-tight { padding-top: 40px; }
  .sec-head { margin-bottom: 32px; }
  .sec-head p { font-size: 16.5px; }
  .sec-head h2 { font-size: 30px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .step-shot { height: 150px; }
  .step-text { font-size: 17.5px; }

  .card { padding: 24px; }
  .card-circuit, .card-browser { padding: 28px 24px; }
  .card-circuit h2, .card-browser h2, .card h2 { font-size: 24px; }
  .card-browser .window-card { width: 640px; margin: 32px -24px -28px 0; }
  .diagram-stage { margin: 32px -24px -28px; padding: 40px 16px; min-height: 220px; }
  .node { min-width: 0; padding: 14px 10px; font-size: 11px; }
  .node-main { padding: 18px 14px; }
  .link { margin: 0 4px; }

  .dev-band { padding: 24px; }
  .dev-text h2 { font-size: 26px; }

  .cta { margin-top: 112px; padding: 88px 0 96px; }
  .cta .ctas { flex-direction: column; align-items: stretch; }

  .row-section { padding-top: 88px; }
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.flip .feature-text { order: 0; }
  .feature-text p { font-size: 16.5px; }
  .formats { padding: 20px; }
  .drop { height: 140px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile { height: 104px; }

  .plat-grid, .role-grid, .access-grid, .pricing-grid { grid-template-columns: 1fr; gap: 16px; }
  .note { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .note p { font-size: 16px; }
  .price-band { flex-direction: column; align-items: flex-start; gap: 24px; padding: 24px; }
  .price-text h2 { font-size: 26px; }
  .price-action { align-items: flex-start; }
  .price-lists { gap: 16px; }
  .price-card { padding: 32px 24px; }
  .price { flex-direction: column; align-items: flex-start; }
  .list-card { padding: 24px; }
  .access-main { padding: 28px 24px; }
  .access-main h2 { font-size: 28px; }
  .access-main .btn-lg { width: 100%; white-space: normal; text-align: center; min-height: 56px; padding: 12px 20px; line-height: 1.3; }
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--orange-2), rgba(255, 255, 255, 0.12) 80%); }
  .timeline li { padding: 0 0 28px 40px; }

  .legal { padding-top: 40px; }
  .legal-grid { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .legal-sec { padding: 32px 0; }
  .legal-sec h2 { font-size: 20px; }

  .site-footer { padding-top: 56px; }
  .foot-top { flex-direction: column; }
  .foot-nav { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-nav ul:last-child { grid-column: 1 / -1; }
  .foot-nav a { display: inline-flex; min-height: 32px; align-items: center; }
  .foot-bottom { flex-direction: column; align-items: flex-start; margin-top: 48px; }
  .foot-lang { display: flex !important; }
  main::after { height: 88px; }
}

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