/* Valance — website styles.
   A native-Mac feel: system font, quiet neutral surfaces, hairline borders, and one accent,
   the icon's indigo → violet gradient. Light by default, dark via prefers-color-scheme.

   Contrast: filled surfaces (buttons, the featured price card, card icons) always use the
   light-mode gradient, because white text on the brighter dark-mode stops falls below 4.5:1.
   The dark-mode stops are for accent TEXT and glows on the dark background. */

:root {
    --indigo: #5856d6;
    --violet: #9b4ddb;
    --fill-gradient: linear-gradient(135deg, #5856d6, #9b4ddb);
    --accent-gradient: var(--fill-gradient);
    --accent: #5856d6;

    --bg: #fbfbfd;
    --bg-raised: #ffffff;
    --bg-sunken: #f2f2f7;
    --line: rgb(0 0 0 / 0.08);
    --ink: #1d1d1f;
    --ink-soft: rgb(29 29 31 / 0.70);
    --ink-faint: rgb(29 29 31 / 0.50);
    --glow: rgb(88 86 214 / 0.22);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 28px -12px rgb(30 20 80 / 0.14);

    --diff-old-bg: rgb(255 59 48 / 0.09);
    --diff-old-ink: #c4271d;
    --diff-new-bg: rgb(52 199 89 / 0.12);
    --diff-new-ink: #1d7f37;

    --radius: 22px;
    --max: 1080px;
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --accent-gradient: linear-gradient(135deg, #7d7aff, #bf7af5);
        --accent: #9d9bff;

        --bg: #0c0b14;
        --bg-raised: #17161f;
        --bg-sunken: #121119;
        --line: rgb(255 255 255 / 0.09);
        --ink: #f5f5f7;
        --ink-soft: rgb(245 245 247 / 0.70);
        --ink-faint: rgb(245 245 247 / 0.48);
        --glow: rgb(125 122 255 / 0.30);
        --shadow: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 20px 50px -25px rgb(0 0 0 / 0.7);

        --diff-old-bg: rgb(255 69 58 / 0.14);
        --diff-old-ink: #ff8a80;
        --diff-new-bg: rgb(48 209 88 / 0.14);
        --diff-new-ink: #63e08a;
    }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }

/* ---------- Navigation ---------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    border-bottom: 1px solid var(--line);
}

.nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.brand img { width: 26px; height: 26px; }

.nav-end { display: flex; align-items: center; gap: 1.5rem; }

.nav-links { display: flex; gap: 1.6rem; font-size: 0.875rem; }
.nav-links a { text-decoration: none; color: var(--ink-soft); transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }

/* ---------- Language menu (appears once a second language exists) ---------- */

.lang-menu { position: relative; font-size: 0.85rem; }

.lang-menu summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    cursor: pointer;
    color: var(--ink-soft);
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: color 0.2s, background 0.2s;
}

.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--ink); background: var(--line); }
.lang-menu summary svg { width: 16px; height: 16px; }

.lang-menu ul {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    z-index: 20;
    list-style: none;
    margin: 0;
    padding: 0.35rem;
    width: max-content;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--bg-raised);
    box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.35);
    display: grid;
    grid-template-columns: repeat(2, auto);
}

.lang-menu a {
    display: block;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--ink-soft);
    white-space: nowrap;
}

.lang-menu a:hover { background: var(--line); color: var(--ink); }
.lang-menu a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.lang-menu a[aria-current="true"]::after { content: " ✓"; color: var(--accent); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Type ---------- */

h1, h2, h3 {
    font-family: var(--font-display);
    letter-spacing: -0.03em;
    line-height: 1.06;
    margin: 0;
}

h1 { font-size: clamp(3.25rem, 9vw, 5.75rem); font-weight: 700; letter-spacing: -0.045em; }
h2 { font-size: clamp(2rem, 4.8vw, 3.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }

.eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 0.9rem;
}

.lead { font-size: clamp(1.125rem, 2vw, 1.3rem); color: var(--ink-soft); line-height: 1.5; }

/* ---------- Buttons ---------- */

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, filter 0.2s;
}

.button-prominent {
    background: var(--fill-gradient);
    color: #fff;
    box-shadow: 0 8px 28px -10px var(--glow);
}

.button-prominent:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 12px 36px -10px rgb(88 86 214 / 0.55); }

.button-quiet { color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, transparent); }
.button-quiet:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }

.button svg { width: 1.1em; height: 1.1em; }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    text-align: center;
    padding: clamp(4rem, 10vw, 7rem) 0 clamp(3.5rem, 7vw, 5.5rem);
    overflow: hidden;
}

/* A soft wash of the accent behind the icon, like a Mac desktop's light. */
.hero::before {
    content: "";
    position: absolute;
    inset: -30% -10% auto;
    height: 90%;
    z-index: -1;
    background: radial-gradient(50% 55% at 50% 40%, var(--glow), transparent 70%);
}

.hero-icon {
    width: clamp(120px, 16vw, 168px);
    margin: 0 auto 2.25rem;
}

.hero-icon img { filter: drop-shadow(0 18px 30px rgb(40 30 120 / 0.28)); }

.tagline {
    margin: 0.9rem 0 0;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.6vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .lead { max-width: 36rem; margin: 1.5rem auto 2.25rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

.hero-note { margin-top: 1.25rem; font-size: 0.875rem; color: var(--ink-faint); }

/* ---------- Sections ---------- */

section { padding: clamp(4rem, 9vw, 7rem) 0; }

.section-head { max-width: 44rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head .lead { margin: 1.1rem 0 0; }

/* ---------- The loop ---------- */

.flow { background: var(--bg-sunken); border-block: 1px solid var(--line); }

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    counter-reset: none;
}

.steps li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.5rem 1.25rem;
    border-radius: 18px;
    background: var(--bg-raised);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.steps strong { font-size: 1.1rem; letter-spacing: -0.01em; }
.steps li > span:last-child { color: var(--ink-soft); font-size: 0.95rem; }

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--fill-gradient);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
    .steps { grid-template-columns: 1fr; }
    .steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: baseline; }
    .step-num { grid-row: span 2; margin: 0; align-self: center; }
}

/* ---------- Feature bento ---------- */

.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.card {
    position: relative;
    grid-column: span 2;
    padding: 1.9rem;
    border-radius: var(--radius);
    background: var(--bg-raised);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.card p { margin: 0; color: var(--ink-soft); }
.card .eyebrow { color: var(--accent); }

.card-wide { grid-column: span 3; }

.card-hero {
    grid-column: span 6;
    padding: clamp(1.9rem, 5vw, 3.25rem);
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(2rem, 4vw, 3.25rem);
    align-items: center;
    background:
        radial-gradient(70% 120% at 100% 0%, color-mix(in srgb, var(--glow) 70%, transparent), transparent 65%),
        var(--bg-raised);
}

.card-hero-copy { display: flex; flex-direction: column; gap: 0.75rem; }
.card-hero-copy .eyebrow { margin: 0; }
.card-hero h3 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.1; max-width: 20ch; }

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--fill-gradient);
    color: #fff;
    margin-bottom: 0.35rem;
    flex: none;
}

.card-icon svg { width: 22px; height: 22px; }

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 0.6rem 0 0;
}

.tag-list li {
    font-size: 0.8rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: var(--bg-sunken);
    border: 1px solid var(--line);
    color: var(--ink-soft);
}

/* A project on disk, as a Finder-ish listing. */
.tree {
    margin: 0.6rem 0 0;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    background: var(--bg-sunken);
    border: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--ink-soft);
    overflow-x: auto;
}

.tree b { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
    .card, .card-wide { grid-column: span 3; }
    .card-hero { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .bento { grid-template-columns: 1fr; }
    .card, .card-wide, .card-hero { grid-column: auto; }
}

/* ---------- Review sheet mock-up ---------- */

.window-mock {
    border-radius: 14px;
    background: var(--bg-raised);
    border: 1px solid var(--line);
    box-shadow: 0 30px 70px -30px rgb(20 10 70 / 0.45), 0 0 0 0.5px rgb(0 0 0 / 0.08);
    overflow: hidden;
    font-size: 0.9rem;
}

.window-bar {
    position: relative;
    display: flex;
    align-items: center;
    height: 38px;
    padding: 0 0.9rem;
    background: var(--bg-sunken);
    border-bottom: 1px solid var(--line);
}

.lights { display: flex; gap: 7px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }

.window-title {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--ink-soft);
    pointer-events: none;
}

.window-body { padding: 1.1rem 1.15rem 1.15rem; }

.card .mock-locale { margin: 0 0 0.9rem; font-weight: 600; color: var(--ink); }

.diff-field { margin-bottom: 0.95rem; }

.card .mock-label {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.card .diff-row {
    display: flex;
    gap: 0.55rem;
    margin: 0 0 3px;
    padding: 0.35rem 0.6rem;
    border-radius: 7px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.45;
}

.card .diff-old { background: var(--diff-old-bg); color: var(--diff-old-ink); text-decoration: line-through; text-decoration-thickness: 1px; }
.card .diff-new { background: var(--diff-new-bg); color: var(--diff-new-ink); }
.diff-sign { flex: none; text-decoration: none; display: inline-block; font-weight: 700; }

.mock-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
    color: var(--ink-faint);
}

.mock-button {
    padding: 0.3rem 0.95rem;
    border-radius: 7px;
    background: var(--fill-gradient);
    color: #fff;
    font-weight: 600;
}

/* ---------- Pricing ---------- */

.pricing {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    max-width: 52rem;
    margin-inline: auto;
}

.price-card {
    padding: clamp(1.9rem, 4vw, 2.6rem);
    border-radius: var(--radius);
    background: var(--bg-raised);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.price-card h3 { font-size: 1.1rem; color: var(--ink-soft); font-weight: 600; letter-spacing: 0; }
.price-card .price {
    margin: 0.4rem 0 0.9rem;
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 6vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--ink);
}
.price-card .price span { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--ink-soft); }
.price-card p { margin: 0 0 1rem; color: var(--ink-soft); }

.price-card.featured { background: var(--fill-gradient); border: 0; color: #fff; box-shadow: 0 24px 60px -24px var(--glow); }
.price-card.featured h3,
.price-card.featured p,
.price-card.featured .price span,
.price-card.featured .check-list li { color: rgb(255 255 255 / 0.88); }
.price-card.featured .price { color: #fff; }
.price-card.featured .check-list li::before { color: #fff; }

.check-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.55rem; }
.check-list li { display: flex; gap: 0.65rem; align-items: baseline; color: var(--ink-soft); }
.check-list li::before { content: "✓"; color: var(--accent); font-weight: 700; flex: none; }

.fine-print { text-align: center; margin: 1.5rem 0 0; font-size: 0.85rem; color: var(--ink-faint); }

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

/* ---------- Privacy ---------- */

#privacy { background: var(--bg-sunken); border-block: 1px solid var(--line); }

.tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.tier {
    padding: 1.9rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--bg-raised);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.tier p { margin: 0; color: var(--ink-soft); }

.no-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 2rem;
    list-style: none;
    padding: 0;
    margin: 2.75rem 0 0;
    color: var(--ink-soft);
    font-weight: 500;
}

.no-list li::before { content: "✕"; color: var(--accent); margin-right: 0.5rem; font-size: 0.8em; }

.center-link { text-align: center; margin: 1.5rem 0 0; font-size: 0.95rem; }
.center-link a, .doc a:not(.button) { color: var(--accent); text-decoration: none; }
.center-link a:hover, .doc a:not(.button):hover { text-decoration: underline; }

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

/* ---------- Requirements ---------- */

.specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}

.spec { padding: 1.75rem 1.5rem 0 0; }
.spec strong { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.25rem); letter-spacing: -0.035em; line-height: 1.15; margin-bottom: 0.35rem; }
.spec span { color: var(--ink-soft); font-size: 0.95rem; }

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

/* ---------- Closing call to action ---------- */

.closing { text-align: center; }
.closing .hero-icon { width: 96px; margin-bottom: 2rem; }
.closing .lead { margin: 1.1rem auto 2rem; max-width: 32rem; }

/* ---------- Document pages (Support, Privacy) ---------- */

.doc { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.doc .wrap { max-width: 740px; }
.doc h1 { font-size: clamp(2.5rem, 7vw, 3.75rem); margin-bottom: 1.1rem; }
.doc h2 { font-size: 1.6rem; letter-spacing: -0.02em; margin: 3.25rem 0 0.9rem; scroll-margin-top: 72px; }
.doc h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 1.25rem; }
.doc li { margin-bottom: 0.5rem; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .updated { color: var(--ink-faint); font-size: 0.9rem; }
.doc .eyebrow { color: var(--accent); }

.guide { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.guide li {
    counter-increment: step;
    position: relative;
    margin: 0;
    padding: 1.4rem 1.5rem 1.4rem 4.25rem;
    border-radius: 18px;
    background: var(--bg-raised);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.guide li::before {
    content: counter(step);
    position: absolute;
    left: 1.4rem;
    top: 1.35rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--fill-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}
.guide h3 { color: var(--ink); }
.guide p { margin: 0 0 0.5rem; }
.guide p:last-child { margin-bottom: 0; }

.contact-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.75rem 2rem;
    margin: 2.25rem 0;
    border-radius: var(--radius);
    background:
        radial-gradient(80% 140% at 100% 0%, color-mix(in srgb, var(--glow) 70%, transparent), transparent 60%),
        var(--bg-raised);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.contact-card h2 { margin: 0 0 0.3rem; font-size: 1.35rem; }
.contact-card p { margin: 0 0 0.25rem; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 1.2rem 2.5rem 1.2rem 0;
    position: relative;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "+";
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--accent);
    transition: transform 0.25s;
}

.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 1.3rem; }
.faq details p { margin: 0 0 0.75rem; }
.faq details p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */

footer {
    border-top: 1px solid var(--line);
    padding: 2.25rem 0 2.75rem;
    font-size: 0.85rem;
    color: var(--ink-faint);
}

footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 1.5rem; }
footer a { text-decoration: none; color: var(--ink-soft); }
footer a:hover { color: var(--ink); }

/* ---------- Scroll reveal (progressive: content is visible without JS) ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Accessibility ---------- */

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; padding: 0.5rem 1rem; background: var(--bg-raised); border-radius: 8px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
    .nav-links { gap: 1.1rem; }
    .nav-links .hide-small { display: none; }
    .nav-end { gap: 0.75rem; }
    .guide li { padding-left: 3.75rem; }
    .guide li::before { left: 1.1rem; }
}

/* ---------- Languages ---------- */

/* A word longer than the screen (German, Dutch compounds…) must wrap rather than overflow. */
h1, h2, h3 { overflow-wrap: break-word; }

/* Tight negative tracking suits Latin display type but crushes CJK and breaks Devanagari
   shaping; these scripts also need more line height. */
:lang(ja) :is(h1, h2, h3, .tagline, .spec strong, .price),
:lang(ko) :is(h1, h2, h3, .tagline, .spec strong, .price),
:lang(zh) :is(h1, h2, h3, .tagline, .spec strong, .price),
:lang(hi) :is(h1, h2, h3, .tagline, .spec strong, .price) {
    letter-spacing: 0;
    line-height: 1.3;
}

:lang(ja), :lang(ko) { word-break: keep-all; }
:lang(ja) { line-break: strict; word-break: auto-phrase; }
:lang(zh) { line-break: strict; }
:lang(hi) body, :lang(hi) { line-height: 1.75; }

/* Uppercase eyebrows are meaningless in scripts without case; tracking hurts them. */
:lang(ja) :is(.eyebrow, .mock-label), :lang(ko) :is(.eyebrow, .mock-label),
:lang(zh) :is(.eyebrow, .mock-label), :lang(hi) :is(.eyebrow, .mock-label) { letter-spacing: 0.02em; }

/* Commands on the command-line page: always left to right, even in a right-to-left page. */
pre.terminal {
    direction: ltr;
    margin: 0.75rem 0 1.25rem;
    padding: 0.9rem 1.1rem;
    overflow-x: auto;
    border-radius: 12px;
    background: #1d1d24;
    color: #e8e8f0;
    font: 0.9rem/1.55 ui-monospace, "SF Mono", Menlo, monospace;
}
pre.terminal code { font: inherit; }
