/* ==========================================================================
   Transform 75 by Sikora — marketing site
   --------------------------------------------------------------------------
   The palette is lifted from the app's default Sunset Orange theme so the
   site and the product are recognisably the same thing:

     primary   rgb(1.00, 0.58, 0.00)  #FF9400   AppTheme.sunset.primaryColor
     secondary rgb(0.85, 0.45, 0.00)  #D97300   AppTheme.sunset.secondaryColor
     bg stops  #0F0A08 → #2B170A               AppTheme.sunset.backgroundStops

   Ink levels mirror SurfaceDesign.Ink (1.0 / 0.78 / 0.52 / 0.48) and the card
   surface mirrors AppSurfaceStyle: a lifted panel with an accent wash, a lit
   top hairline and a real shadow — never an outline. See CLAUDE.md §2.
   ========================================================================== */

/* ---------- tokens ---------- */

:root {
    --accent:            #ff9400;
    --accent-deep:       #d97300;
    --accent-soft:       rgba(255, 148, 0, 0.12);
    --accent-line:       rgba(255, 148, 0, 0.28);

    --bg-0:              #0f0a08;
    --bg-1:              #170d08;
    --bg-2:              #1f1209;
    --bg-3:              #26140a;
    --bg-4:              #2b170a;

    --ink-1:             rgba(255, 255, 255, 1);
    --ink-2:             rgba(255, 255, 255, 0.78);
    --ink-3:             rgba(255, 255, 255, 0.52);
    --ink-4:             rgba(255, 255, 255, 0.40);

    --success:           #3ed07a;
    --info:              #4aa3ff;
    --warning:           #ffb020;

    --surface:           rgba(255, 255, 255, 0.045);
    --surface-strong:    rgba(255, 255, 255, 0.07);
    --hairline:          rgba(255, 255, 255, 0.10);

    --r-card:            22px;
    --r-hero:            28px;
    --r-pill:            999px;
    --r-well:            14px;

    --shadow-card:       0 18px 40px -24px rgba(0, 0, 0, 0.9);
    --shadow-hero:       0 40px 90px -40px rgba(0, 0, 0, 1);

    --maxw:              1120px;
    --maxw-prose:        720px;

    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
            Helvetica, Arial, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Rounded",
            "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --nav-h: 64px;
}

/* ---------- reset ---------- */

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

html {
    scroll-behavior: smooth;
    /* Anchored headings must clear the sticky nav. */
    scroll-padding-top: calc(var(--nav-h) + 24px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-2);
    background: var(--bg-0);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* The app is dark-only by design and so is this. */
:root { color-scheme: dark; }

/* `height: auto` is load-bearing, not tidiness: every screenshot carries
   width/height attributes (so the browser reserves the right box before the
   image loads), and without this the attribute height wins over the fluid
   width — each shot renders at its full pixel height and the hero becomes a
   three-screen column of empty space. */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink-1);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 750; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 650; }
h4 { font-size: 1.03rem; font-weight: 650; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.25em; }
li { margin-bottom: 0.45em; }

hr {
    border: 0;
    border-top: 1px solid var(--hairline);
    margin: 3rem 0;
}

code {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: var(--surface-strong);
    padding: 0.15em 0.4em;
    border-radius: 6px;
    color: var(--ink-1);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Collapsed to a clipped 1px box rather than moved off-screen with a
   transform: if any single property here fails to apply, the link still has no
   area to paint into. A transform-based hide shows the full button the moment
   the rule is missed — which is exactly what a stale cached stylesheet does.
   <main> carries tabindex="-1" so activating this moves focus for real rather
   than only scrolling — otherwise the next Tab returns to the nav. */
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link:focus {
    position: fixed;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: auto;
    margin: 0;
    padding: 0.7rem 1.2rem;
    overflow: visible;
    clip: auto;
    clip-path: none;
    z-index: 200;
    border-radius: 12px;
    background: var(--accent);
    color: #1a0e04;
    font-family: var(--font-display);
    font-weight: 650;
    text-decoration: none;
}

main:focus { outline: none; }

/* ---------- page background ---------- */

.bg-wrap {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(1200px 680px at 78% -8%, rgba(255, 148, 0, 0.16), transparent 62%),
        radial-gradient(900px 620px at 8% 4%, rgba(217, 115, 0, 0.10), transparent 60%),
        linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 28%, var(--bg-2) 56%,
                        var(--bg-3) 80%, var(--bg-4) 100%);
}

.bg-wrap::after {
    /* Very fine grain so the large gradient never bands on wide displays. */
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* ---------- layout ---------- */

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 22px;
}

.prose { max-width: var(--maxw-prose); }

section { padding: clamp(56px, 8vw, 104px) 0; }
section.tight { padding: clamp(36px, 5vw, 64px) 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.lede {
    font-size: clamp(1.05rem, 1.7vw, 1.22rem);
    color: var(--ink-2);
    max-width: 62ch;
}

.muted { color: var(--ink-3); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- nav ---------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 60;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(15, 10, 8, 0.66);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.nav.is-stuck {
    border-bottom-color: var(--hairline);
    background: rgba(15, 10, 8, 0.86);
}

.nav .wrap {
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-display);
    font-weight: 750;
    font-size: 1.02rem;
    color: var(--ink-1);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand .brand-sub { color: var(--ink-3); font-weight: 500; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-links a {
    color: var(--ink-2);
    font-size: 0.94rem;
    font-weight: 520;
    padding: 8px 12px;
    border-radius: var(--r-pill);
    transition: color 0.18s ease, background 0.18s ease;
}

.nav-links a:hover { color: var(--ink-1); background: var(--surface); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--accent); }

.nav-toggle {
    display: none;
    margin-left: auto;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    color: var(--ink-1);
    font-size: 1.1rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--font-display);
    font-weight: 650;
    font-size: 1rem;
    line-height: 1;
    padding: 15px 26px;
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    /* Matches PrimaryActionButtonStyle's 420pt cap: a CTA that spans a wide
       viewport reads as a banner, not a button. (CLAUDE.md §2, iPad) */
    max-width: 420px;
    transition: transform 0.16s ease, box-shadow 0.22s ease, background 0.2s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    /* The app derives CTA label colour for contrast rather than defaulting to
       white — on Sunset that resolves to near-black. (CLAUDE.md §8.36) */
    color: #1a0e03;
    box-shadow: 0 14px 32px -14px rgba(255, 148, 0, 0.7);
}

.btn-primary:hover { box-shadow: 0 18px 40px -14px rgba(255, 148, 0, 0.85); }

.btn-ghost {
    background: var(--surface-strong);
    border-color: var(--hairline);
    color: var(--ink-1);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Both forms: a `.btn-row` inside a centred block, and a row that carries
   `.center` itself — the descendant selector alone silently misses the second. */
.center .btn-row,
.btn-row.center { justify-content: center; }

/* ---------- cards ---------- */

.card {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 148, 0, 0.10), rgba(255, 148, 0, 0.02)),
        var(--surface);
    border-radius: var(--r-card);
    padding: 26px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

/* The lit top edge, inset from the corners — AppSurfaceStyle's hairline. */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 11px;
    right: 11px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.card-hero {
    border-radius: var(--r-hero);
    padding: 32px;
    box-shadow: var(--shadow-hero);
    background:
        linear-gradient(180deg, rgba(255, 148, 0, 0.16), rgba(255, 148, 0, 0.03)),
        var(--surface-strong);
}

.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.card-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--r-well);
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
    background: var(--accent-soft);
    color: var(--accent);
}

.card-icon.is-info    { background: rgba(74, 163, 255, 0.14); color: var(--info); }
.card-icon.is-success { background: rgba(62, 208, 122, 0.14); color: var(--success); }
.card-icon.is-warning { background: rgba(255, 176, 32, 0.14); color: var(--warning); }

/* ---------- grids ---------- */

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ---------- hero ---------- */

.hero { padding-top: clamp(44px, 6vw, 76px); padding-bottom: clamp(30px, 4vw, 50px); }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.hero h1 { margin-bottom: 18px; }

.hero h1 .grad {
    background: linear-gradient(115deg, var(--accent) 10%, #ffc46b 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 26px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.84rem;
    font-weight: 560;
    color: var(--ink-2);
    background: var(--surface-strong);
    border: 1px solid var(--hairline);
    border-radius: var(--r-pill);
    padding: 7px 14px;
}

.pill.is-accent {
    color: var(--accent);
    background: var(--accent-soft);
    border-color: var(--accent-line);
}

.hero-note { margin-top: 18px; font-size: 0.88rem; color: var(--ink-3); }

/* ---------- phone frames ---------- */

.phone {
    position: relative;
    border-radius: 13.5%/6.4%;
    padding: 1.6%;
    background: linear-gradient(150deg, #3b3b40, #141416 42%, #2e2e33);
    box-shadow:
        0 50px 90px -46px rgba(0, 0, 0, 1),
        0 0 0 1px rgba(255, 255, 255, 0.07) inset;
}

.phone img {
    border-radius: 12%/5.6%;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 900 / 1956;
}

.phone-stack {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4%;
    align-items: start;
}

/* The overlap is a transform, never a negative margin: a negative margin on a
   stretched grid item widens the item, so the back phone rendered *larger*
   than the front one at the same nominal scale. */
.phone-stack .phone:first-child {
    z-index: 2;
    transform: translateY(14px) rotate(-2.5deg);
}

.phone-stack .phone:last-child {
    transform: translateX(-20%) translateY(-16px) rotate(2.5deg) scale(0.95);
    opacity: 0.92;
}

/* Screenshot rail */

.shots {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(228px, 268px);
    gap: 22px;
    overflow-x: auto;
    padding: 8px 22px 26px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 99px;
}

.shot { scroll-snap-align: center; }
.shot figcaption {
    margin-top: 14px;
    text-align: center;
    font-size: 0.88rem;
    color: var(--ink-3);
}

.shot figcaption strong {
    display: block;
    color: var(--ink-1);
    font-family: var(--font-display);
    font-weight: 620;
    font-size: 0.98rem;
    margin-bottom: 2px;
}

/* Feature row: text beside a single phone, alternating */

.feature-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: center;
    margin-bottom: clamp(48px, 7vw, 96px);
}

.feature-row:last-child { margin-bottom: 0; }
.feature-row.is-flipped .feature-art { order: -1; }
.feature-art { max-width: 320px; margin-inline: auto; width: 100%; }

.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.feature-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 11px;
    color: var(--ink-2);
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.62em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ---------- stats ---------- */

.stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 6px;
    text-align: center;
}

.stat { padding: 12px 10px; }

.stat .n {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.4vw, 2.5rem);
    font-weight: 760;
    color: var(--accent);
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.stat .l {
    display: block;
    margin-top: 4px;
    font-size: 0.84rem;
    color: var(--ink-3);
}

/* ---------- pricing ---------- */

.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.plan { display: flex; flex-direction: column; }

.plan.is-featured {
    border: 1px solid var(--accent-line);
    background:
        linear-gradient(180deg, rgba(255, 148, 0, 0.18), rgba(255, 148, 0, 0.04)),
        var(--surface-strong);
}

.plan .plan-name {
    font-family: var(--font-display);
    font-weight: 640;
    color: var(--ink-2);
    font-size: 0.96rem;
}

.plan .plan-price {
    font-family: var(--font-display);
    font-size: 2.3rem;
    font-weight: 780;
    color: var(--ink-1);
    letter-spacing: -0.03em;
    margin: 8px 0 2px;
}

.plan .plan-per { font-size: 0.9rem; color: var(--ink-3); }
.plan .plan-note { margin-top: 12px; font-size: 0.9rem; color: var(--ink-3); }

.badge-best {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1a0e03;
    background: var(--accent);
    padding: 4px 10px;
    border-radius: var(--r-pill);
}

/* ---------- FAQ ---------- */

.faq-group { margin-bottom: 44px; }
.faq-group:last-child { margin-bottom: 0; }

.faq-group > h2 {
    font-size: 1.35rem;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 8px;
}

details.qa {
    border-bottom: 1px solid var(--hairline);
    padding: 4px 0;
}

details.qa > summary {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    list-style: none;
    padding: 18px 4px;
    font-family: var(--font-display);
    font-weight: 620;
    font-size: 1.04rem;
    color: var(--ink-1);
    transition: color 0.16s ease;
}

details.qa > summary::-webkit-details-marker { display: none; }
details.qa > summary:hover { color: var(--accent); }

details.qa > summary::after {
    content: "+";
    margin-left: auto;
    flex: none;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--accent);
    transition: transform 0.22s ease;
}

details.qa[open] > summary::after { transform: rotate(45deg); }

.qa-body {
    padding: 0 4px 20px;
    color: var(--ink-2);
    max-width: 68ch;
}

.qa-body p:last-child { margin-bottom: 0; }

/* ---------- legal pages ---------- */

.doc-head {
    padding-top: clamp(36px, 5vw, 60px);
    padding-bottom: 8px;
}

.doc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 0.88rem;
    color: var(--ink-3);
    margin-top: 10px;
}

.doc {
    max-width: var(--maxw-prose);
    padding-bottom: clamp(60px, 8vw, 100px);
}

.doc h2 {
    font-size: 1.42rem;
    margin-top: 2.4em;
    padding-top: 0.2em;
}

.doc h2:first-of-type { margin-top: 1.2em; }
.doc h3 { font-size: 1.08rem; margin-top: 1.8em; }
.doc li { color: var(--ink-2); }

.doc .toc {
    background: var(--surface);
    border-radius: var(--r-card);
    padding: 22px 26px;
    margin: 28px 0 8px;
    border: 1px solid var(--hairline);
}

.doc .toc h4 { margin-bottom: 10px; color: var(--ink-3); font-size: 0.8rem;
               letter-spacing: 0.06em; text-transform: uppercase; }
.doc .toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 28px; }
.doc .toc li { margin-bottom: 6px; break-inside: avoid; }

.callout {
    border-radius: var(--r-card);
    padding: 20px 22px;
    margin: 26px 0;
    background: var(--surface);
    border-left: 3px solid var(--accent);
}

.callout.is-warning { border-left-color: var(--warning); }
.callout.is-info    { border-left-color: var(--info); }
.callout h4 { margin-bottom: 6px; }
.callout p:last-child { margin-bottom: 0; }

/* Data table used on the privacy page */

.table-wrap { overflow-x: auto; margin: 22px 0; }

table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
    min-width: 540px;
}

table.data th, table.data td {
    text-align: left;
    padding: 13px 16px;
    border-bottom: 1px solid var(--hairline);
    vertical-align: top;
}

table.data th {
    font-family: var(--font-display);
    font-weight: 640;
    color: var(--ink-1);
    font-size: 0.86rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: var(--surface);
}

table.data tr:last-child td { border-bottom: 0; }
table.data td { color: var(--ink-2); }

/* ---------- user guide ---------- */

.guide-layout {
    display: grid;
    grid-template-columns: 246px minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

.guide-toc {
    position: sticky;
    top: calc(var(--nav-h) + 20px);
    max-height: calc(100vh - var(--nav-h) - 48px);
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.guide-toc h4 {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 12px;
}

.guide-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }

.guide-toc li { margin-bottom: 1px; }

.guide-toc a {
    display: block;
    padding: 7px 11px;
    border-radius: 9px;
    font-size: 0.9rem;
    color: var(--ink-3);
    line-height: 1.35;
    transition: color 0.16s ease, background 0.16s ease;
}

.guide-toc a:hover { color: var(--ink-1); background: var(--surface); text-decoration: none; }
.guide-toc a.is-active { color: var(--accent); background: var(--accent-soft); }

.guide-body { max-width: 760px; min-width: 0; }

.guide-body > section {
    padding: 0 0 clamp(40px, 5vw, 60px);
    scroll-margin-top: calc(var(--nav-h) + 20px);
}

.guide-body h2 {
    font-size: clamp(1.5rem, 2.6vw, 1.95rem);
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--hairline);
}

.guide-body h3 { margin-top: 2em; font-size: 1.14rem; }
.guide-body h4 { margin-top: 1.6em; color: var(--ink-1); }
.guide-body li { color: var(--ink-2); }

.guide-body .section-lede {
    color: var(--ink-2);
    font-size: 1.04rem;
    margin-top: -6px;
    margin-bottom: 18px;
}

/* A Settings path, e.g. Settings → Appearance. Kept visually distinct from
   body copy so a reader scanning for "where do I tap" can find it. */
.path {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.92em;
    color: var(--ink-1);
    background: var(--surface-strong);
    border: 1px solid var(--hairline);
    border-radius: 7px;
    padding: 1px 8px;
    white-space: nowrap;
}

/* Numbered walkthrough */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 18px 0; }

.steps > li {
    position: relative;
    counter-increment: step;
    padding-left: 46px;
    margin-bottom: 16px;
    min-height: 30px;
}

.steps > li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: -1px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
}

/* Definition-style rows for "what each thing means" */
.deflist { margin: 18px 0; }

.deflist > div {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 4px 22px;
    padding: 13px 0;
    border-bottom: 1px solid var(--hairline);
}

.deflist > div:last-child { border-bottom: 0; }

.deflist dt {
    font-family: var(--font-display);
    font-weight: 620;
    color: var(--ink-1);
    font-size: 0.97rem;
}

.deflist dd { margin: 0; color: var(--ink-2); font-size: 0.97rem; }

/* Inline screenshot inside the guide */
.guide-shot {
    max-width: 240px;
    float: right;
    margin: 0 0 20px 26px;
}

.guide-shot figcaption {
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--ink-3);
    text-align: center;
}

.clearfix::after { content: ""; display: block; clear: both; }

.guide-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 6px;
}

.guide-jump a {
    font-size: 0.86rem;
    font-weight: 560;
    color: var(--ink-2);
    background: var(--surface-strong);
    border: 1px solid var(--hairline);
    border-radius: var(--r-pill);
    padding: 7px 14px;
}

.guide-jump a:hover { color: var(--accent); border-color: var(--accent-line); text-decoration: none; }

@media (max-width: 980px) {
    .guide-layout { grid-template-columns: 1fr; }

    .guide-toc {
        position: static;
        max-height: none;
        overflow: visible;
        background: var(--surface);
        border: 1px solid var(--hairline);
        border-radius: var(--r-card);
        padding: 18px 16px;
        margin-bottom: 8px;
    }

    /* 26 entries in a phone-width column is a screen and a half of navigation
       before the first word of the guide. Cap it and let it scroll in place. */
    .guide-toc ol {
        columns: 2;
        column-gap: 18px;
        max-height: 42vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .guide-toc li { break-inside: avoid; }
    .guide-shot { float: none; margin: 20px auto; max-width: 260px; }
}

@media (max-width: 620px) {
    .guide-toc ol { columns: 1; }
    .deflist > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- footer ---------- */

.footer {
    border-top: 1px solid var(--hairline);
    padding: 52px 0 40px;
    background: rgba(0, 0, 0, 0.22);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-bottom: 38px;
}

.footer h4 {
    font-size: 0.78rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 14px;
}

.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 9px; }
.footer li a { color: var(--ink-2); font-size: 0.94rem; }
.footer li a:hover { color: var(--accent); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--hairline);
    font-size: 0.85rem;
    color: var(--ink-4);
}

.footer-disclaimer {
    font-size: 0.83rem;
    color: var(--ink-4);
    max-width: 58ch;
    margin-top: 14px;
}

/* ---------- reveal on scroll ---------- */

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

.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-art { max-width: 440px; margin-inline: auto; }
    .feature-row { grid-template-columns: 1fr; }
    .feature-row.is-flipped .feature-art { order: 0; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .doc .toc ol { columns: 1; }
}

@media (max-width: 720px) {
    .nav-toggle { display: inline-flex; }

    .nav-links {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px 22px 18px;
        background: rgba(15, 10, 8, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--hairline);
        display: none;
    }

    .nav-links.is-open { display: flex; }
    .nav-links a { padding: 12px 14px; border-radius: 12px; }

    body { font-size: 16px; }
    .btn { width: 100%; }
    .btn-row { flex-direction: column; align-items: stretch; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .card { padding: 22px; }
    .card-hero { padding: 24px; }
}

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

/* ---------- print (legal pages get printed) ---------- */

@media print {
    .bg-wrap, .nav, .footer, .btn-row { display: none !important; }
    body { background: #fff; color: #111; font-size: 11pt; }
    h1, h2, h3, h4 { color: #000; }
    a { color: #000; text-decoration: underline; }
    .doc, .prose { max-width: none; }
    .callout { border: 1px solid #999; }
}
