@font-face {
    font-family: "Archivo";
    src: url("fonts/archivo-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Archivo";
    src: url("fonts/archivo-latin-ext.woff2") format("woff2");
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Layout: one 1120px column. Each feature is copy on one side and a working instrument on the other.
   The dark treadmill console in the hero is the page's one loud object; everything else stays quiet. */
:root {
    --paper: #f5f7f6;
    --surface: #ffffff;
    --ink: #0f1514;
    --ink-2: #34403e;
    --muted: #5d6a68;
    --line: #dbe2e0;
    --fix: #0a7c6f;
    --fix-soft: rgba(10, 124, 111, 0.1);
    --on-fix: #ffffff;
    --hr: #d93a42;
    --brand-top: #1fa896;
    --brand-bottom: #05615a;
    --join-b: #5b62d6;
    --map: #e8eeec;
    --map-street: #ffffff;
    --map-water: #cfe0e8;
    --code-bg: #eef2f1;
    --console: #0b0e0e;
    --console-rim: #222a2b;
    --console-label: #7f8c8a;
    --led: #ff8a1f;
    --led-ghost: rgba(255, 138, 31, 0.07);
    --phone-rim: #161b1c;
    --shadow: rgba(16, 26, 24, 0.28);
    --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --rounded: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --wrap: 1120px;
    --gutter: clamp(16px, 4vw, 32px);
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper: #0b0f0f;
        --surface: #141a1a;
        --ink: #ebf1ef;
        --ink-2: #c3cdcb;
        --muted: #93a19f;
        --line: #253031;
        --fix: #4fd1c1;
        --fix-soft: rgba(79, 209, 193, 0.14);
        --on-fix: #04201c;
        --hr: #ff6b70;
        --join-b: #959bff;
        --map: #111919;
        --map-street: #1c2627;
        --map-water: #13252d;
        --code-bg: #0e1414;
        --console: #050707;
        --console-rim: #2b3435;
        --phone-rim: #2a3133;
        --shadow: rgba(0, 0, 0, 0.6);
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --paper: #0b0f0f;
    --surface: #141a1a;
    --ink: #ebf1ef;
    --ink-2: #c3cdcb;
    --muted: #93a19f;
    --line: #253031;
    --fix: #4fd1c1;
    --fix-soft: rgba(79, 209, 193, 0.14);
    --on-fix: #04201c;
    --hr: #ff6b70;
    --join-b: #959bff;
    --map: #111919;
    --map-street: #1c2627;
    --map-water: #13252d;
    --code-bg: #0e1414;
    --console: #050707;
    --console-rim: #2b3435;
    --phone-rim: #2a3133;
    --shadow: rgba(0, 0, 0, 0.6);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 17px/1.55 var(--body);
    -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--fix); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    margin-inline: auto;
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
:lang(ja) :is(h1, h2, h3, .lead) { word-break: auto-phrase; }
h1 {
    font-weight: 800;
    font-stretch: 112%;
    font-size: clamp(40px, 5.6vw, 70px);
    line-height: 0.98;
    letter-spacing: -0.025em;
}
h2 {
    font-weight: 800;
    font-stretch: 112%;
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1.03;
    letter-spacing: -0.02em;
}
h3 { font-weight: 700; font-stretch: 100%; font-size: 20px; line-height: 1.2; letter-spacing: -0.005em; }
p { margin: 0; }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
.label {
    font-family: var(--display);
    font-weight: 600;
    font-stretch: 85%;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}
.num { font-variant-numeric: tabular-nums; }

section { padding-block: clamp(56px, 7.5vw, 104px); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); }

/* Header */
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 23%; }
.brand span { font-family: var(--display); font-weight: 700; font-stretch: 106%; font-size: 18px; letter-spacing: -0.01em; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover { color: var(--ink); }
.site-nav .get {
    color: var(--paper);
    background: var(--ink);
    padding: 9px 15px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
}
.site-nav .get:hover { color: var(--paper); opacity: 0.88; }
.round-button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
    flex: none;
}
.site-nav .round-button { color: var(--ink); }
.round-button:hover { background: var(--fix-soft); }
.round-button svg { width: 18px; height: 18px; }
.lang-code { font: 700 12px/1 var(--body); letter-spacing: 0.02em; text-transform: uppercase; }
.theme-toggle .sun, .theme-toggle[aria-pressed="true"] .moon { display: none; }
.theme-toggle[aria-pressed="true"] .sun { display: block; }
.nav-tools { display: flex; align-items: center; gap: 8px; }

/* Hero */
.hero { padding-block: clamp(20px, 4vw, 56px) clamp(48px, 7vw, 96px); }
.hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}
.hero-copy { display: grid; gap: 28px; min-width: 0; }
.hero h1 { margin-top: 8px; }

.readout { display: grid; gap: 18px; }
.console {
    direction: ltr;
    background: var(--console);
    border-radius: 22px;
    padding: clamp(16px, 2.2vw, 24px) clamp(18px, 2.8vw, 30px) clamp(18px, 2.4vw, 26px);
    display: grid;
    grid-template-columns: auto auto auto;
    grid-template-areas: "time dist speed";
    justify-content: space-between;
    align-items: end;
    gap: 18px 24px;
    box-shadow:
        inset 0 0 0 1px var(--console-rim),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 28px 50px -30px var(--shadow);
}
.console-cell { display: grid; gap: 10px; justify-items: start; }
.console-cell .label { color: var(--console-label); }
.cell-time { grid-area: time; }
.cell-dist { grid-area: dist; }
.cell-speed { grid-area: speed; }
.led {
    display: block;
    color: var(--led);
    font-family: var(--display);
    font-stretch: 70%;
    font-weight: 600;
    font-size: clamp(36px, 4.2vw, 46px);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.cell-dist .led { font-size: clamp(64px, 7.6vw, 92px); }
.led svg { height: 1em; width: auto; display: block; overflow: visible; }
.led .lit { fill: var(--led); filter: drop-shadow(0 0 0.06em rgba(255, 138, 31, 0.55)); }
.led .dim { fill: var(--led-ghost); }

.watch { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 20px; row-gap: 6px; padding-inline: 4px; }
.watch .label { flex-basis: 100%; }
.watch-val {
    font-family: var(--rounded);
    font-weight: 600;
    font-size: clamp(36px, 4.6vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.watch-val small { font-size: 0.44em; font-weight: 600; margin-inline-start: 0.18em; letter-spacing: 0; }
.was { position: relative; color: var(--muted); }
.was::after {
    content: "";
    position: absolute;
    inset-inline: -4% -3%;
    top: 54%;
    height: 0.075em;
    border-radius: 1em;
    background: var(--fix);
    transform: rotate(-6deg);
    transform-origin: left center;
    animation: strike 0.45s cubic-bezier(0.25, 0.8, 0.25, 1) 0.3s backwards;
}
.now { color: var(--fix); animation: settle 0.5s ease-out 0.6s backwards; }
.watch-arrow { width: 0.62em; height: 0.62em; color: var(--muted); align-self: center; font-size: clamp(36px, 4.6vw, 54px); }
[dir="rtl"] .watch-arrow { transform: scaleX(-1); }
@keyframes strike { from { transform: rotate(-6deg) scaleX(0); } }
@keyframes settle { from { color: var(--ink); } }
@keyframes power { 0%, 100% { opacity: 1; } 18% { opacity: 0.35; } 30% { opacity: 1; } 44% { opacity: 0.6; } }
.led svg .lit { animation: power 0.5s steps(2, end) both; }
.cell-dist .led svg .lit { animation-delay: 0.12s; }
.cell-speed .led svg .lit { animation-delay: 0.22s; }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.badge { display: inline-block; line-height: 0; border-radius: 10px; }
.badge img { height: 54px; width: auto; }
.cta p { font-size: 15px; color: var(--muted); max-width: 22em; }

.phone {
    position: relative;
    width: 100%;
    background: var(--phone-rim);
    padding: 2.6%;
    border-radius: 15% / 7%;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 40px 70px -40px var(--shadow);
}
.phone img { width: 100%; height: auto; aspect-ratio: 720 / 1564; border-radius: 12.5% / 5.8%; background: #000; }
/* Light and dark captures: only the one matching the appearance is displayed (and fetched). */
.phone .shot-dark { display: none; }
:root[data-theme="dark"] .phone .shot-light { display: none; }
:root[data-theme="dark"] .phone .shot-dark { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .phone .shot-light { display: none; }
    :root:not([data-theme="light"]) .phone .shot-dark { display: block; }
}
.hero .phone { max-width: 340px; justify-self: center; }

/* Feature index */
.index { border-block: 1px solid var(--line); }
.index .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; padding-block: 16px; }
.index .label { margin-inline-end: 4px; }
.index a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; white-space: nowrap; }
.index a:hover { color: var(--fix); }

/* Shared feature layout */
.feature .wrap {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: start;
}
.feature-copy { display: grid; gap: 20px; min-width: 0; }
.feature-shot { margin-top: 12px; max-width: 250px; }
.feature-shot figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }
.points { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; color: var(--ink-2); font-size: 16px; max-width: 30em; }
.points li { position: relative; padding-inline-start: 18px; }
.points li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-top); }
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: clamp(18px, 2.6vw, 28px);
    display: grid;
    gap: 22px;
    min-width: 0;
}
.panel-note { font-size: 14px; color: var(--muted); }
.seg { display: inline-flex; padding: 3px; background: var(--fix-soft); border-radius: 10px; width: max-content; max-width: 100%; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 6px 16px; border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--fix); white-space: nowrap; }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px var(--shadow); }
.seg input:focus-visible + span { outline: 2px solid var(--fix); outline-offset: 1px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; }
.stats div { display: grid; gap: 2px; min-width: 0; }
.stats dt { font-size: 13px; color: var(--muted); }
.stats dd { margin: 0; font-family: var(--rounded); font-weight: 600; font-size: 22px; font-variant-numeric: tabular-nums; }
.stats .changed { color: var(--fix); }

/* Distance demo */
.stepper { display: grid; gap: 14px; margin-top: 8px; }
.stepper-row { display: flex; align-items: center; gap: 14px; }
.step {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 0;
    background: var(--fix);
    color: var(--on-fix);
    cursor: pointer;
    display: grid;
    place-items: center;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}
.step:active { transform: scale(0.94); }
.step svg { width: 22px; height: 22px; }
.target-field { display: flex; align-items: baseline; gap: 8px; border-bottom: 2px solid var(--line); padding-inline: 6px; }
.target-field:focus-within { border-color: var(--fix); }
#target {
    width: 4.2ch;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--display);
    font-weight: 800;
    font-stretch: 100%;
    font-size: 46px;
    line-height: 1.15;
    text-align: center;
    font-variant-numeric: tabular-nums;
    padding: 0;
}
#target:focus { outline: none; }
.target-unit { font-size: 18px; font-weight: 600; color: var(--muted); }
.note { font-size: 15px; color: var(--muted); max-width: 30em; }

.compare { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.compare th, .compare td { text-align: start; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { padding-top: 0; }
.compare tbody th { font-weight: 500; color: var(--muted); width: 26%; }
.compare td { width: 37%; }
.compare .old { color: var(--muted); }
.compare .new { font-weight: 650; }
.compare .changed { color: var(--fix); }
.delta { display: inline-block; margin-inline-start: 6px; font-size: 13px; font-weight: 600; color: var(--fix); background: var(--fix-soft); padding: 2px 7px; border-radius: 6px; white-space: nowrap; }

.laps { display: grid; gap: 12px; }
.laps-head, .lap {
    display: grid;
    grid-template-columns: 2.2ch 4.6ch minmax(0, 1fr) 7.6em;
    gap: 14px;
    align-items: center;
    font-variant-numeric: tabular-nums;
}
.laps-head { font-size: 13px; color: var(--muted); }
.laps-head span:last-child, .lap .pace { text-align: end; }
.laps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lap { font-size: 15px; }
.lap .n { color: var(--muted); }
.bars { display: grid; gap: 3px; }
.bar { display: block; height: 6px; border-radius: 3px; width: calc(var(--w) * 100%); transition: width 0.3s ease; }
.bar.before { background: var(--line); }
.bar.after { background: var(--fix); }
.pace s { color: var(--muted); text-decoration-thickness: 1.5px; margin-inline-end: 6px; font-size: 13px; }
.pace b { font-weight: 650; color: var(--fix); }

/* Trim demo */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart text { fill: var(--muted); font: 11px var(--body); font-variant-numeric: tabular-nums; }
.chart .hr-all { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linejoin: round; opacity: 0.4; }
.chart .hr-kept { fill: none; stroke: var(--hr); stroke-width: 2.2; stroke-linejoin: round; }
.chart .cut { fill: url(#hatch); }
.chart .hatch-line { stroke: var(--line); stroke-width: 2; }
.chart .edge { stroke: var(--fix); stroke-width: 2; }
.sliders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.slider { display: grid; gap: 6px; }
.slider-top { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.slider-top output { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.slider input { width: 100%; accent-color: var(--fix); margin: 0; }

/* Join demo */
.timeline { display: grid; gap: 10px; direction: ltr; }
.tl-axis { position: relative; height: 16px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-axis span { position: absolute; top: 0; transform: translateX(-50%); }
.tl-axis span:first-child { transform: none; }
.tl-axis span:last-child { transform: translateX(-100%); }
.tl-tracks { position: relative; height: 74px; transition: height 0.45s cubic-bezier(0.3, 0.8, 0.3, 1); }
.tl-bar, .tl-gap { position: absolute; height: 30px; border-radius: 8px; }
.tl-bar {
    display: flex;
    align-items: center;
    padding-inline: 10px;
    color: var(--on-fix);
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    transition: top 0.45s cubic-bezier(0.3, 0.8, 0.3, 1), border-radius 0.45s, background-color 0.45s;
}
.tl-bar.a { top: 0; left: 0; width: 40%; background: var(--fix); }
.tl-bar.b { top: 44px; left: 44%; width: 50%; background: var(--join-b); }
.tl-gap {
    top: 0;
    left: 40%;
    width: 4%;
    border-radius: 0;
    background: repeating-linear-gradient(135deg, var(--muted) 0 1.5px, transparent 1.5px 5px);
    opacity: 0;
    transition: opacity 0.3s;
}
.join[data-state="joined"] .tl-tracks { height: 30px; }
.join[data-state="joined"] .tl-bar.b { top: 0; background: var(--fix); }
.join[data-state="joined"] .tl-bar.a { border-radius: 8px 0 0 8px; }
.join[data-state="joined"] .tl-bar.b { border-radius: 0 8px 8px 0; }
.join[data-state="joined"] .tl-gap { opacity: 0.6; transition-delay: 0.3s; }
.rows { display: grid; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.row b { font-weight: 600; }
.row span { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.row .v { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-family: var(--rounded); font-weight: 600; font-size: 20px; color: var(--ink); }
.row.joined .v { color: var(--fix); }

/* GPS demo */
.map { width: 100%; height: auto; display: block; border-radius: 16px; background: var(--map); }
.map .water { fill: none; stroke: var(--map-water); stroke-width: 26; stroke-linecap: round; }
.map .street { fill: none; stroke: var(--map-street); stroke-width: 9; stroke-linecap: round; }
.map .route { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map .base { stroke: var(--muted); stroke-width: 4; opacity: 0.75; }
.map .ok { stroke: var(--fix); stroke-width: 5; opacity: 0; transition: opacity 0.3s; }
.map .skip { stroke: var(--hr); stroke-width: 4; stroke-dasharray: 1 8; opacity: 0; transition: opacity 0.3s; }
.map .tag { opacity: 0; transition: opacity 0.3s; }
.map .tag text { fill: var(--ink-2); font: 600 12px var(--body); paint-order: stroke; stroke: var(--map); stroke-width: 4px; }
.map .start { fill: var(--surface); stroke: var(--ink); stroke-width: 2.5; }
.gps[data-source="gps"] .map .ok, .gps[data-source="gps"] .map .skip, .gps[data-source="gps"] .map .tag { opacity: 1; }
.gps[data-source="gps"] .map .base { opacity: 0.35; }
.sources { display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.source { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 13px 16px; cursor: pointer; }
.source + .source { border-top: 1px solid var(--line); }
.source input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.source b { font-weight: 600; }
.source .v { font-family: var(--rounded); font-weight: 600; font-size: 20px; font-variant-numeric: tabular-nums; }
.source i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.source input:checked ~ i { border-color: var(--fix); background: var(--fix); box-shadow: inset 0 0 0 4px var(--surface); }
.source input:checked ~ .v { color: var(--fix); }
.source input:focus-visible ~ b { outline: 2px solid var(--fix); outline-offset: 2px; border-radius: 4px; }

/* Shots row: How it works and charts */
.shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.shots li { display: grid; gap: 12px; align-content: start; }
.shots .phone { max-width: 300px; margin-bottom: 14px; }
.shots h3 { display: flex; gap: 10px; align-items: baseline; }
.step-n { font-family: var(--display); font-weight: 800; font-stretch: 112%; color: var(--fix); font-variant-numeric: tabular-nums; }
.shots p { color: var(--ink-2); max-width: 22em; }

/* FIT */
.fit .wrap { display: grid; gap: clamp(32px, 4vw, 48px); }
.fit .section-head { margin-bottom: 0; }
.fit-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.import { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.import .phone { max-width: 220px; }
.import-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.import-steps li { display: grid; grid-template-columns: 1.6em minmax(0, 1fr); gap: 8px; color: var(--ink-2); font-size: 16px; counter-increment: step; }
.import-steps li::before { content: counter(step); font-family: var(--display); font-weight: 800; color: var(--fix); }
.tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--line); }
.tab {
    border: 0;
    background: none;
    padding: 10px 14px;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    font: 600 15px var(--body);
    color: var(--muted);
    cursor: pointer;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--fix); }
.tabpanel { display: grid; gap: 14px; min-width: 0; }
.tabpanel p { color: var(--ink-2); font-size: 16px; }
pre {
    direction: ltr;
    text-align: left;
    margin: 0;
    overflow-x: auto;
    background: var(--code-bg);
    border-radius: 12px;
    padding: 16px 18px;
    font: 12.5px/1.65 var(--mono);
    color: var(--ink-2);
    tab-size: 2;
}
pre .t { color: var(--fix); }
pre .c { color: var(--muted); }

/* Also in the editor */
.also { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 48px); }
.also li { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 1px solid var(--line); }
.also h3 { font-size: 18px; }
.also p { color: var(--ink-2); font-size: 16px; }

/* Original stays */
.original .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.original-copy { display: grid; gap: 20px; min-width: 0; }
.facts { margin: 20px 0 0; display: grid; gap: 22px; }
.facts div { display: grid; gap: 4px; }
.facts dt { font-family: var(--display); font-weight: 700; font-size: 18px; }
.facts dd { margin: 0; color: var(--ink-2); max-width: 30em; }
.health-list { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 6px 22px; }
.health-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 18px 0; }
.health-row + .health-row { border-top: 1px solid var(--line); }
.glyph { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(var(--brand-top), var(--brand-bottom)); grid-row: span 2; }
.glyph svg { width: 26px; height: 26px; }
.health-row .title { font-weight: 600; }
.health-row .meta { grid-column: 2; font-size: 14px; color: var(--muted); }
.health-row .dist { grid-row: 1 / span 2; grid-column: 3; font-family: var(--rounded); font-weight: 600; font-size: 24px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.health-row .dist small { font-size: 0.6em; color: var(--muted); margin-inline-start: 2px; }
.health-row.copy .dist { color: var(--fix); }
.status { display: inline-flex; align-items: center; gap: 6px; }
.status svg { width: 14px; height: 14px; flex: none; }
.health-caption { margin-top: 14px; font-size: 14px; color: var(--muted); padding-inline: 4px; }

/* Price and key facts */
.price .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: end; }
.price-copy { display: grid; gap: 18px; min-width: 0; }
.price h2 { font-size: clamp(36px, 5vw, 60px); }
.key-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px clamp(24px, 4vw, 48px); margin: 16px 0 0; }
.key-facts div { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line); min-width: 0; }
.key-facts dd { margin: 0; font-size: 16px; color: var(--ink-2); }

/* FAQ */
.faq .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); min-width: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    font-family: var(--display);
    font-weight: 650;
    font-size: 19px;
    line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--body); font-weight: 400; font-size: 26px; line-height: 1; color: var(--muted); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 36em; }
.faq-more { margin-top: 24px; display: grid; gap: 10px; }
.faq-more a { color: var(--fix); text-decoration: none; font-weight: 600; }
.faq-more a:hover { text-decoration: underline; }

/* Guides */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 20px; padding: 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.article .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.article-body { display: grid; gap: 40px; min-width: 0; }
.article-head { display: grid; gap: 20px; }
.article h1 { font-size: clamp(36px, 4.6vw, 56px); }
.article-section { display: grid; gap: 14px; }
.article-section h2 { font-size: clamp(24px, 2.6vw, 30px); }
.article-section p, .article-section li { color: var(--ink-2); max-width: 36em; }
.article-section ul { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 8px; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps-list li { display: grid; grid-template-columns: 2em minmax(0, 1fr); gap: 6px; counter-increment: step; }
.steps-list li::before { content: counter(step); font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.3; color: var(--fix); }
.article-aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 24px); display: grid; gap: 20px; justify-items: center; }
.article-aside .phone { max-width: 280px; }
.callout { display: grid; gap: 14px; justify-items: start; padding: clamp(20px, 3vw, 28px); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.callout p { color: var(--ink-2); }
.related { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.related li { border-bottom: 1px solid var(--line); }
.related a { display: grid; gap: 4px; padding: 16px 0; text-decoration: none; }
.related a strong { font-family: var(--display); font-weight: 700; font-size: 18px; }
.related a span { color: var(--muted); font-size: 15px; }
.related a:hover strong { color: var(--fix); }
.byline { font-size: 14px; color: var(--muted); max-width: 40em; }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 48px); }
.guide-list li { border-top: 1px solid var(--line); }
.guide-list a { display: grid; gap: 8px; padding-top: 18px; text-decoration: none; }
.guide-list strong { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.25; }
.guide-list span { color: var(--ink-2); font-size: 16px; }
.guide-list a:hover strong { color: var(--fix); }

/* Privacy policy, terms and support */
.legal .wrap { max-width: calc(780px + 2 * var(--gutter)); }
.legal-body { display: grid; gap: 14px; }
.legal-body h1 { font-size: clamp(36px, 4.6vw, 52px); margin-bottom: 4px; }
.legal-body h2 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 28px; }
.legal-body h3 { font-size: 18px; margin-top: 10px; }
.legal-body p, .legal-body li { color: var(--ink-2); }
.legal-body ul { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 6px; }
.legal-body a { color: var(--fix); }
.legal-body .note { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: grid; gap: 10px; }
.last-updated { font-size: 14px; color: var(--muted); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 40px 56px; font-size: 15px; color: var(--muted); }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.langs { grid-column: 1 / -1; display: grid; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.langs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.langs a { text-decoration: none; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.fine { grid-column: 1 / -1; font-size: 13px; }

@media (max-width: 960px) {
    .hero .wrap, .feature .wrap, .fit-grid, .original .wrap, .faq .wrap, .article .wrap { grid-template-columns: minmax(0, 1fr); }
    .hero .phone { max-width: 290px; }
    .site-nav > a:not(.get) { display: none; }
    .shots {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: min(76%, 300px);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 12px;
    }
    .shots li { scroll-snap-align: start; }
    .also, .key-facts, .guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .price .wrap { grid-template-columns: minmax(0, 1fr); align-items: start; }
    .article-aside { position: static; justify-items: start; }
    .article-aside .phone { max-width: 240px; }
}
@media (max-width: 560px) {
    .console { grid-template-columns: auto auto; grid-template-areas: "dist dist" "time speed"; justify-content: space-between; }
    .site-foot .wrap { grid-template-columns: minmax(0, 1fr); }
    .laps-head, .lap { grid-template-columns: 2ch 4.4ch minmax(0, 1fr) 6.6em; gap: 10px; }
    .pace s { display: none; }
    .site-nav { gap: 10px; }
    .brand span { font-size: 16px; }
    .sliders, .also, .key-facts, .guide-list { grid-template-columns: minmax(0, 1fr); }
    .stats dd { font-size: 19px; }
    .import { grid-template-columns: minmax(0, 1fr); }
    .import .phone { max-width: 200px; }
    .feature-shot { max-width: 210px; }
    .chart text { font-size: 19px; }
    .map .tag text { font-size: 21px; stroke-width: 6px; }
}
@media (max-width: 430px) {
    .site-nav .get { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
