/* =========================================================
   CF Studio — landing & legal pages
   Type: Geist (display/UI) + Geist Mono (data vernacular)
   Palette: Cloudflare orange on warm paper
   ========================================================= */

:root {
    --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

    /* Brand */
    --orange:  #F6821F;
    --ember:   #DA5A0B;
    --amber:   #FBAD41;

    /* Ink / text — warm */
    --ink:       #17120B;
    --ink-soft:  #2C2418;
    --body:      #6E6556;
    --body-soft: #988E7D;
    --faded:     #CABFAC;   /* the light first heading line */

    /* Surfaces */
    --paper:      #FFFFFF;
    --paper-warm: #FFFDFA;
    --sand:       #FAF5EE;
    --tint:       #FFF4E8;
    --line:       #EDE6DA;
    --line-soft:  #F4EEE4;
    --pill-bg:    #FBEAD6;
    --pill-ink:   #B5520A;

    /* Dark surfaces */
    --dark:   #161009;
    --dark-2: #241A0E;

    /* Shadows — layered & soft */
    --sh-1: 0 1px 2px rgba(23,18,11,.05), 0 2px 6px rgba(23,18,11,.04);
    --sh-2: 0 2px 4px rgba(23,18,11,.05), 0 14px 28px -10px rgba(23,18,11,.11);
    --sh-3: 0 10px 22px -8px rgba(23,18,11,.14), 0 36px 70px -24px rgba(120,58,8,.30);
    --sh-glow: 0 24px 70px -18px rgba(246,130,31,.45);

    --r: 16px;
    --r-lg: 24px;
    --pill: 999px;
    --maxw: 1180px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }

body {
    font-family: var(--sans);
    color: var(--body);
    background: var(--paper-warm);
    line-height: 1.62;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    position: relative;
}

/* subtle film grain for depth */
body::after {
    content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .022;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--sans); color: var(--ink); letter-spacing: -.025em; line-height: 1.06; font-weight: 600; }

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

::selection { background: rgba(246,130,31,.22); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 30px; }
.section { position: relative; padding-block: clamp(76px, 11vw, 132px); }
.section.tight { padding-top: 0; }

/* ---------- Mono kicker (// section) ---------- */
.kicker {
    font-family: var(--mono);
    font-weight: 500;
    font-size: .76rem;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--ember);
    display: inline-flex;
    align-items: center;
}
.kicker::before { content: "// "; white-space: pre; opacity: .55; }

.lead { font-size: 1.075rem; color: var(--body); max-width: 46ch; }

.grad {
    background: linear-gradient(98deg, var(--amber) 0%, var(--orange) 46%, var(--ember) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.faded-line { color: var(--faded); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .55em;
    font-family: var(--sans); font-weight: 500; font-size: .98rem;
    padding: 13px 22px; border-radius: var(--pill);
    border: 1px solid transparent; cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease),
                background .2s var(--ease), border-color .2s var(--ease);
    white-space: nowrap;
}
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); box-shadow: var(--sh-1); }
.btn-ghost:hover { transform: translateY(-2px); border-color: #E2D6C3; box-shadow: var(--sh-2); }
.btn-ghost .arr { transition: transform .25s var(--ease); }
.btn-ghost:hover .arr { transform: translateX(3px); }

.btn-mini { background: var(--ink); color: #fff; padding: 9px 18px; font-size: .9rem; font-weight: 500; }
.btn-mini:hover { transform: translateY(-1px); background: #000; }

/* Hero download — same capsule size/shape as the ghost "See how it works" */
.btn-dl { background: var(--dark); color: #fff; padding-left: 20px; }
.btn-dl .apple { width: 18px; height: 18px; flex: none; }
.btn-dl:hover { transform: translateY(-2px); background: #000; box-shadow: var(--sh-2); }

/* Mac App Store badge — the focal CTA */
.btn-store {
    display: inline-flex; align-items: center; gap: 13px;
    background: linear-gradient(180deg, #221a10 0%, var(--dark) 100%);
    color: #fff;
    padding: 15px 28px 15px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: var(--sh-2);
    transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.btn-store:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.btn-store:active { transform: translateY(-1px); }
.btn-store .apple { width: 29px; height: 29px; flex: none; }
.btn-store .store-copy { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.btn-store .store-copy small { font-size: .72rem; opacity: .82; letter-spacing: .01em; }
.btn-store .store-copy b { font-family: var(--sans); font-weight: 600; font-size: 1.22rem; color: #fff; letter-spacing: -.01em; }

.btn-store.lg { padding: 18px 34px 18px 28px; border-radius: 18px; gap: 15px; }
.btn-store.lg .apple { width: 34px; height: 34px; }
.btn-store.lg .store-copy b { font-size: 1.4rem; }
.btn-store.lg .store-copy small { font-size: .78rem; }

/* light variant for dark backgrounds */
.btn-store.is-light { background: #fff; color: var(--ink); border-color: rgba(0,0,0,.05); box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); }
.btn-store.is-light .apple path { fill: var(--ink); }
.btn-store.is-light .store-copy b { color: var(--ink); }
.btn-store.is-light .store-copy small { opacity: .6; }

/* ---------- Nav ---------- */
.nav-wrap { position: fixed; inset: 18px 0 auto 0; z-index: 60; display: flex; justify-content: center; pointer-events: none; }
.nav {
    pointer-events: auto;
    display: flex; align-items: center; gap: 28px;
    width: min(1000px, calc(100% - 36px));
    padding: 12px 14px 12px 26px;
    background: rgba(255,255,255,.66);
    -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
    border: 1px solid rgba(255,255,255,.5);
    border-radius: var(--pill);
    box-shadow: 0 8px 30px rgba(23,18,11,.08), 0 1px 0 rgba(255,255,255,.7) inset, 0 0 0 .5px rgba(23,18,11,.04);
    transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { background: rgba(255,255,255,.82); box-shadow: 0 10px 36px rgba(23,18,11,.12), 0 1px 0 rgba(255,255,255,.7) inset; }

.brand { font-family: var(--sans); font-weight: 600; font-size: 1.16rem; color: var(--ink); letter-spacing: -.02em; }
.brand .cf { color: var(--ember); }

.nav-links { display: flex; gap: 26px; margin-left: 6px; }
.nav-links a {
    font-family: var(--mono); font-size: .74rem; font-weight: 500;
    letter-spacing: .04em; text-transform: uppercase;
    color: var(--ink-soft); opacity: .6; transition: opacity .2s, color .2s;
}
.nav-links a:hover { opacity: 1; color: var(--ember); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-right .text-link { font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--body); opacity: .7; }
.nav-right .text-link:hover { opacity: 1; color: var(--ink); }


/* ---------- Decorative ---------- */
.grid-bg {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(246,130,31,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(246,130,31,.06) 1px, transparent 1px);
    background-size: 36px 36px;
    -webkit-mask-image: radial-gradient(ellipse 72% 58% at 50% 32%, #000 0%, transparent 76%);
            mask-image: radial-gradient(ellipse 72% 58% at 50% 32%, #000 0%, transparent 76%);
}
.dots {
    position: absolute; width: 80px; height: 80px; z-index: 0; opacity: .45;
    background-image: radial-gradient(var(--orange) 1.5px, transparent 1.6px);
    background-size: 16px 16px;
    -webkit-mask-image: linear-gradient(135deg, #000, transparent 78%);
            mask-image: linear-gradient(135deg, #000, transparent 78%);
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 168px; padding-bottom: 56px; text-align: center; overflow: hidden; }
.hero .container { position: relative; z-index: 2; }

.hero-glow {
    position: absolute; left: 50%; top: 360px; transform: translateX(-50%);
    width: 900px; height: 520px; z-index: 1; pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(246,130,31,.20), transparent 62%);
    filter: blur(8px);
}
.hero-skyline {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
    width: 100%; height: 350px; color: rgba(246,130,31,.09);
    -webkit-mask-image: linear-gradient(to top, #000 28%, transparent);
            mask-image: linear-gradient(to top, #000 28%, transparent);
}

.hero h1 { font-size: clamp(2.7rem, 5.8vw, 4.55rem); font-weight: 600; margin: 0 auto; max-width: 920px; letter-spacing: -.035em; }
.hero .lead { margin: 24px auto 0; font-size: clamp(1.06rem, 2.1vw, 1.28rem); max-width: 54ch; text-align: center; }

.hero-cta { margin-top: 36px; display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-family: var(--mono); font-size: .78rem; color: var(--body-soft); letter-spacing: .01em; }
.hero-note strong { color: var(--ink-soft); font-weight: 500; }

.hero-shot { position: relative; z-index: 2; margin: 60px auto 0; max-width: 1060px; }

/* ---------- Window frame ---------- */
.window { border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-3); }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 11px 16px; background: linear-gradient(#fbfaf8, #f3efe9); border-bottom: 1px solid var(--line); }
.window-bar .tl { width: 12px; height: 12px; border-radius: 50%; }
.tl.r { background: #ff5f57; } .tl.y { background: #febc2e; } .tl.g { background: #28c840; }
.window-bar .wb-title { margin-left: 10px; font-family: var(--mono); font-size: .74rem; color: var(--body-soft); }
.window img { width: 100%; display: block; }

/* ---------- Feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.feature + .feature { margin-top: clamp(76px, 11vh, 132px); }
.feature.reverse .feature-text { order: 2; }
.feature.reverse .feature-visual { order: 1; }

.feature h2 { font-size: clamp(1.95rem, 3.6vw, 2.95rem); font-weight: 600; margin: 18px 0 0; letter-spacing: -.03em; }
.feature .lead { margin-top: 20px; }

.checklist { list-style: none; margin-top: 28px; display: grid; gap: 15px; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; font-size: 1rem; color: var(--ink-soft); }
.checklist li .ck { flex: none; margin-top: 3px; width: 18px; height: 18px; border-radius: 6px; background: var(--pill-bg); display: grid; place-items: center; }
.checklist li .ck svg { width: 11px; height: 11px; color: var(--ember); }

/* ===========================================================
   App UI mockups (CSS recreations)
   =========================================================== */
.mock { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-2); overflow: hidden; }
.mock-glow { position: absolute; inset: auto -12% -34% -12%; height: 60%; z-index: -1; background: radial-gradient(closest-side, rgba(246,130,31,.28), transparent 70%); filter: blur(12px); }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); background: #fcfaf7; }
.mock-bar .tl { width: 10px; height: 10px; border-radius: 50%; }
.mock-bar .mb-title { margin-left: 8px; font-family: var(--mono); font-size: .68rem; color: var(--body-soft); }

/* KV */
.kv-side { padding: 14px; }
.kv-search { font-family: var(--mono); font-size: .76rem; color: var(--body-soft); background: #f6f3ee; border: 1px solid var(--line-soft); border-radius: 9px; padding: 8px 11px; }
.kv-group { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--body-soft); margin: 16px 0 8px 4px; }
.kv-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px; font-size: .9rem; color: var(--ink-soft); }
.kv-item .ic { width: 16px; height: 16px; color: var(--ember); flex: none; }
.kv-item.active { background: linear-gradient(100deg, rgba(246,130,31,.13), rgba(246,130,31,.05)); color: var(--ember); font-weight: 500; }
.kv-item .badge { margin-left: auto; font-family: var(--mono); font-size: .7rem; color: var(--body-soft); }
.kv-detail { border-top: 1px solid var(--line-soft); padding: 16px; background: var(--paper-warm); }
.kv-detail .row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.kv-detail .row:last-child { border-bottom: 0; }
.kv-key { font-family: var(--mono); font-size: .8rem; color: var(--ink); }
.kv-val { font-family: var(--mono); font-size: .78rem; color: var(--ember); background: var(--pill-bg); padding: 2px 8px; border-radius: 6px; }

/* D1 grid + editor */
.d1-body { display: grid; grid-template-columns: 1.5fr 1fr; }
.d1-grid { border-right: 1px solid var(--line-soft); }
.d1-head, .d1-row { display: grid; grid-template-columns: 42px 1fr 64px; gap: 8px; padding: 9px 14px; font-size: .82rem; align-items: center; }
.d1-head { background: #faf7f2; border-bottom: 1px solid var(--line-soft); color: var(--body-soft); font-family: var(--mono); font-size: .72rem; letter-spacing: .03em; }
.d1-row { border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); font-family: var(--mono); }
.d1-row .rid { color: var(--body-soft); }
.d1-row .pill { justify-self: start; font-family: var(--sans); font-size: .7rem; padding: 1px 8px; border-radius: var(--pill); background: #eef6ee; color: #2f7d43; }
.d1-row .pill.pro { background: var(--pill-bg); color: var(--pill-ink); }
.d1-row.sel { background: linear-gradient(100deg, rgba(246,130,31,.11), rgba(246,130,31,.03)); }
.d1-editor { padding: 16px; background: var(--paper-warm); }
.d1-editor .ed-title { font-family: var(--mono); font-size: .8rem; color: var(--ink); margin-bottom: 12px; }
.d1-field { margin-bottom: 11px; }
.d1-field label { display: block; font-family: var(--mono); font-size: .7rem; color: var(--body-soft); margin-bottom: 4px; }
.d1-field .input { font-family: var(--mono); font-size: .8rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; }
.d1-field .input.focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(246,130,31,.18); }

/* SQL console */
.sql-editor { padding: 16px 18px; background: #fcfaf7; border-bottom: 1px solid var(--line-soft); }
.sql-code { font-family: var(--mono); font-size: .86rem; line-height: 1.75; color: var(--ink-soft); }
.sql-code .kw { color: var(--ember); }
.sql-code .str { color: #2f7d43; }
.sql-code .num { color: #b4690e; }
.sql-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.sql-run { display: inline-flex; align-items: center; gap: 7px; background: linear-gradient(100deg, var(--orange), var(--ember)); color: #fff; font-family: var(--sans); font-size: .82rem; font-weight: 500; padding: 7px 14px; border-radius: 9px; box-shadow: 0 6px 16px rgba(246,130,31,.3); }
.sql-meta { font-family: var(--mono); font-size: .74rem; color: var(--body-soft); }
.sql-res .d1-head, .sql-res .d1-row { grid-template-columns: 48px 1fr 1fr; }

/* Analytics */
.an-body { padding: 16px; }
.an-tabs { display: inline-flex; gap: 2px; background: #f4f1ec; border-radius: 9px; padding: 3px; margin-bottom: 14px; }
.an-tabs span { font-family: var(--mono); font-size: .74rem; color: var(--body-soft); padding: 4px 12px; border-radius: 7px; }
.an-tabs span.on { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.an-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.an-card { border: 1px solid var(--line-soft); border-radius: 12px; padding: 11px 12px; background: #fff; }
.an-card .k { font-family: var(--mono); font-size: .66rem; color: var(--body-soft); }
.an-card .v { font-family: var(--sans); font-weight: 600; color: var(--ink); font-size: 1.3rem; margin-top: 3px; letter-spacing: -.02em; }
.an-card .u { font-size: .6rem; color: var(--body-soft); }
.an-card .bar { height: 3px; border-radius: 3px; margin-top: 9px; background: linear-gradient(90deg, var(--orange), var(--amber)); }
.an-chart { border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px; }
.an-chart .ct { font-family: var(--mono); font-size: .72rem; color: var(--ink); margin-bottom: 12px; }
.an-bars { display: flex; align-items: flex-end; gap: 6px; height: 92px; }
.an-bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(var(--amber), var(--orange)); display: block; opacity: .92; }

/* ---------- Capabilities grid ---------- */
.caps { background: var(--sand); }
.caps .head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; align-items: end; }
.caps h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 600; letter-spacing: -.03em; }
.caps .head .lead { margin-bottom: 6px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 58px; border-top: 1px solid var(--line); }
.grid4 .cell { padding: 32px 28px 30px 0; border-right: 1px solid var(--line); }
.grid4 .cell:last-child { border-right: 0; padding-right: 0; }
.grid4 .ci { width: 40px; height: 40px; border-radius: 11px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ember); box-shadow: var(--sh-1); }
.grid4 .ci svg { width: 20px; height: 20px; }
.grid4 .tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; color: var(--body-soft); margin: 18px 0 8px; }
.grid4 h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.02em; }
.grid4 p { margin-top: 9px; font-size: .94rem; }

/* ---------- Hero trust badges ---------- */
.trust-row { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.trust {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--mono); font-size: .72rem; letter-spacing: .01em; color: var(--ink-soft);
    background: rgba(255,255,255,.72); border: 1px solid var(--line);
    border-radius: var(--pill); padding: 7px 13px; box-shadow: var(--sh-1);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.trust svg { width: 13px; height: 13px; color: var(--ember); flex: none; }

/* ---------- Privacy / local-first ---------- */
.privacy { background: var(--sand); }
.privacy .phead { max-width: 680px; }
.privacy h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 600; letter-spacing: -.03em; margin-top: 16px; }
.privacy .lead { margin-top: 18px; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px 26px; box-shadow: var(--sh-1); }
.pcard .ci { width: 46px; height: 46px; border-radius: 13px; background: var(--pill-bg); display: grid; place-items: center; color: var(--ember); }
.pcard .ci svg { width: 23px; height: 23px; }
.pcard h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.02em; margin-top: 20px; }
.pcard p { margin-top: 10px; font-size: .95rem; }

/* ---------- CTA ---------- */
.cta-card { position: relative; overflow: hidden; background: radial-gradient(125% 140% at 85% 0%, #2c2110 0%, var(--dark) 56%); border-radius: var(--r-lg); padding: clamp(48px, 7vw, 92px); text-align: center; box-shadow: var(--sh-3); }
.cta-card::before {
    content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
    background-image: linear-gradient(rgba(246,130,31,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(246,130,31,.12) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(ellipse 60% 72% at 50% 0%, #000, transparent 74%);
            mask-image: radial-gradient(ellipse 60% 72% at 50% 0%, #000, transparent 74%);
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card .kicker { color: var(--amber); }
.cta-card h2 { color: #fff; font-size: clamp(2.05rem, 4.4vw, 3.15rem); font-weight: 600; margin: 18px auto 0; max-width: 18ch; letter-spacing: -.03em; }
.cta-card .lead { color: #c9bda9; margin: 18px auto 0; max-width: 52ch; text-align: center; }
.cta-actions { margin-top: 34px; display: flex; justify-content: center; }
.cta-req { margin-top: 24px; font-family: var(--mono); font-size: .76rem; color: #9b8f7b; }
.cta-req b { color: #d9cdb9; font-weight: 500; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--paper-warm); }
.footer .container { display: flex; align-items: center; justify-content: space-between; padding-block: 30px; flex-wrap: wrap; gap: 14px; }
.footer .copy { font-family: var(--mono); font-size: .76rem; color: var(--body-soft); }
.footer .f-links { display: flex; gap: 24px; }
.footer .f-links a { font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--body); opacity: .75; }
.footer .f-links a:hover { opacity: 1; color: var(--ember); }

/* ---------- Legal pages ---------- */
.legal { padding: 150px 0 90px; }
.legal .container { max-width: 760px; }
.legal .back { font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ember); display: inline-flex; align-items: center; gap: 7px; }
.legal .back:hover { text-decoration: underline; }
.legal h1 { font-size: clamp(2.1rem, 5vw, 3rem); font-weight: 600; margin-top: 24px; letter-spacing: -.03em; }
.legal .meta { font-family: var(--mono); font-size: .78rem; color: var(--body-soft); margin-top: 14px; }
.legal .intro { margin-top: 22px; font-size: 1.08rem; color: var(--ink-soft); }
.legal h2 { font-size: 1.35rem; font-weight: 600; color: var(--ink); margin-top: 44px; letter-spacing: -.02em; }
.legal h2 .nx { font-family: var(--mono); color: var(--ember); font-size: .9rem; margin-right: 10px; opacity: .7; }
.legal p { margin-top: 14px; }
.legal ul { margin-top: 14px; padding-left: 0; list-style: none; display: grid; gap: 11px; }
.legal ul li { position: relative; padding-left: 22px; }
.legal ul li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: linear-gradient(135deg, var(--amber), var(--ember)); }
.legal a.inline { color: var(--ember); text-decoration: underline; text-underline-offset: 2px; }
.legal .note { margin-top: 44px; padding: 18px 20px; background: var(--tint); border: 1px solid rgba(246,130,31,.18); border-radius: var(--r); font-size: .92rem; color: var(--ink-soft); }
.legal .note b { color: var(--ember); }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 40px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    list-style: none; cursor: pointer; outline: none;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 22px 2px;
    font-family: var(--sans); font-weight: 600; font-size: 1.14rem; color: var(--ink);
    letter-spacing: -.015em;
    transition: color .2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--ember); }
.faq-item summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 6px; }
.faq-item .chev { flex: none; width: 20px; height: 20px; color: var(--ember); transition: transform .28s var(--ease); }
.faq-item[open] .chev { transform: rotate(45deg); }
.faq-item .ans { padding: 0 2px 26px; max-width: 66ch; color: var(--body); font-size: 1.02rem; }
.faq-item .ans p + p { margin-top: 12px; }
.faq-item .ans a { color: var(--ember); text-decoration: underline; text-underline-offset: 2px; }
.faq-more { margin-top: 44px; padding: 22px 24px; background: var(--tint); border: 1px solid rgba(246,130,31,.18); border-radius: var(--r); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.faq-more .t { font-family: var(--sans); font-weight: 600; color: var(--ink); }
.faq-more .s { font-size: .95rem; color: var(--body); margin-top: 2px; }

@media (prefers-reduced-motion: reduce) { .faq-item .chev { transition: none; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .btn-store, .btn-ghost .arr { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    /* nav links drop to a centered second row (asoway style) — no hamburger */
    .nav { flex-wrap: wrap; gap: 4px 16px; border-radius: 22px; padding: 12px 20px; }
    .brand { order: 1; }
    .nav-right { order: 2; }
    .nav-links { order: 3; flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: left; gap: 10px 22px; margin: 8px 0 2px; }

    .feature { grid-template-columns: 1fr; gap: 32px; }
    .feature.reverse .feature-text { order: 1; }
    .feature.reverse .feature-visual { order: 2; }
    .caps .head { grid-template-columns: 1fr; gap: 18px; align-items: start; }
    .grid4 { grid-template-columns: 1fr 1fr; }
    .grid4 .cell { padding: 28px 24px; border-bottom: 1px solid var(--line); }
    .grid4 .cell:nth-child(2n) { border-right: 0; padding-right: 24px; }
    .pgrid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .container { padding: 0 20px; }
    .grid4 { grid-template-columns: 1fr; }
    .grid4 .cell { border-right: 0; padding-right: 0; }
    .d1-body { grid-template-columns: 1fr; }
    .d1-grid { border-right: 0; border-bottom: 1px solid var(--line-soft); }
    .hero { padding-top: 134px; }
    .hero-cta { gap: 12px; }
    .footer .container { flex-direction: column; align-items: flex-start; }
}
