/* Freelytic — editorial paper + ink, one highlighter accent. */
:root {
  --paper: #F4F1EA;
  --paper-2: #ECE7DC;
  --card: #FFFDF8;
  --ink: #14130F;
  --ink-2: #34312A;
  --muted: #5E5A50;
  --line: #DCD5C6;
  --line-2: #C9C1AF;
  --lime: #D7F75B;
  --lime-2: #C4EA2E;
  --on-lime: #14130F;
  --focus: #2B50FF;
  --warn-bg: #FFF2D6;
  --warn-ink: #5B3B00;
  --err-bg: #FFE3DC;
  --err-ink: #7A1A06;
  --shadow: 0 1px 0 rgba(20,19,15,.04), 0 12px 32px -12px rgba(20,19,15,.18);
  --radius: 18px;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #11100D; --paper-2: #1A1915; --card: #1B1A16; --ink: #F1EEE6; --ink-2: #D8D3C8;
    --muted: #A9A396; --line: #2F2D27; --line-2: #45423A; --focus: #8EA2FF;
    --warn-bg: #3A2C0E; --warn-ink: #FFD98A; --err-bg: #3D1810; --err-ink: #FFB4A3;
    --shadow: 0 1px 0 rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #11100D; --paper-2: #1A1915; --card: #1B1A16; --ink: #F1EEE6; --ink-2: #D8D3C8;
  --muted: #A9A396; --line: #2F2D27; --line-2: #45423A; --focus: #8EA2FF;
  --warn-bg: #3A2C0E; --warn-ink: #FFD98A; --err-bg: #3D1810; --err-ink: #FFB4A3;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

h1, h2, h3 { font-family: var(--display); font-weight: 750; letter-spacing: -0.025em; line-height: 1.04; margin: 0; font-variation-settings: "opsz" 96; }
h1 { font-size: clamp(31px, 8.2vw, 64px); }
h2 { font-size: clamp(28px, 5vw, 46px); }
h3 { font-size: 21px; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0; }
.eyebrow { font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hl { background: linear-gradient(transparent 12%, var(--lime) 12%, var(--lime) 88%, transparent 88%); color: var(--on-lime); padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.muted { color: var(--muted); }

/* buttons */
.btn { --bg: var(--ink); --fg: var(--paper); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--bg); background: var(--bg); color: var(--fg); font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -8px rgba(20,19,15,.5); }
.btn:active { transform: translateY(0); }
.btn.lime { --bg: var(--lime); --fg: var(--on-lime); border-color: var(--ink); }
.btn.ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14.5px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* header */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 750 21px/1 var(--display); letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 10px; border-radius: 999px; color: var(--ink-2); }
.nav-links a:hover { background: var(--paper-2); }
.nav-links .btn { margin-left: 6px; color: var(--paper); }
@media (max-width: 760px) { .nav-links .hide-m { display: none; } }

/* hero */
.hero { padding: 22px 0 40px; }
@media (min-width: 960px) { .hero { padding: 56px 0 72px; } }
.hero-grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; } }
.hero-copy .eyebrow { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 12px; }
.hero-copy .eyebrow span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime-2); margin-right: 7px; vertical-align: 1px; box-shadow: 0 0 0 1.5px var(--ink); }
.hero h1 { max-width: 15ch; }
.hero .sub { margin-top: 12px; font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-2); max-width: 36ch; }

/* dropzone */
.drop { position: relative; margin-top: 20px; border-radius: 22px; background: var(--card); border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 18px; transition: transform .18s ease, box-shadow .18s ease, background-color .18s; }
@media (min-width: 720px) { .drop { padding: 26px; margin-top: 28px; } }
.drop-inner { border: 2px dashed var(--line-2); border-radius: 14px; padding: 20px 16px; text-align: center; transition: border-color .18s, background-color .18s; }
@media (min-width: 720px) { .drop-inner { padding: 30px 24px; } }
.drop.over { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--ink); }
.drop.over .drop-inner { border-color: var(--ink); background: color-mix(in srgb, var(--lime) 35%, transparent); }
.drop-icon { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 12px; background: var(--lime); border: 1.5px solid var(--ink); display: grid; place-items: center; color: var(--on-lime); }
.drop-icon svg { width: 24px; height: 24px; }
.drop-title { font: 700 20px/1.2 var(--display); letter-spacing: -0.01em; }
.drop-hint { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.drop-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.drop-foot { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 14px; color: var(--muted); }
.drop-foot a { color: var(--ink); font-weight: 600; }
.lock { display: inline-flex; align-items: center; gap: 6px; }
.lock svg { width: 15px; height: 15px; }
.drop.busy .drop-inner { pointer-events: none; }
.drop-status { display: none; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; font-weight: 600; }
.drop.busy .drop-status { display: flex; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line-2); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 15px; text-align: left; }
.notice.err { background: var(--err-bg); color: var(--err-ink); }
.notice.warn { background: var(--warn-bg); color: var(--warn-ink); }
.notice a { font-weight: 700; color: inherit; }
.saved-banner { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14.5px; padding: 10px 14px; border-radius: 12px; background: var(--paper-2); }

/* hero preview */
.preview { position: relative; display: none; }
@media (min-width: 960px) { .preview { display: block; margin-top: 8px; } }
.pv-card { background: var(--card); border: 1.5px solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.pv-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.pv-head .eyebrow { font-size: 11px; }
.pv-tag { font: 600 11px/1 var(--mono); padding: 5px 8px; border-radius: 999px; background: var(--paper-2); color: var(--muted); letter-spacing: .04em; }
.pv-venn { padding: 18px 18px 6px; }
.pv-venn svg { width: 100%; }
.pv-rows { list-style: none; margin: 0; padding: 4px 18px 18px; }
.pv-rows li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.pv-rows li:first-child { border-top: 0; }
.pv-rows .av { width: 30px; height: 30px; }
.pv-rows .when { margin-left: auto; font: 500 12.5px var(--mono); color: var(--muted); }
.pv-float { position: absolute; right: -10px; bottom: -22px; background: var(--lime); color: var(--on-lime); border: 1.5px solid var(--ink); border-radius: 14px; padding: 10px 14px; font: 700 14px/1.2 var(--display); transform: rotate(-3deg); box-shadow: 4px 4px 0 var(--ink); }

/* sections */
section.block { padding: 56px 0; border-top: 1px solid var(--line); }
@media (min-width: 960px) { section.block { padding: 88px 0; } }
.sec-head { max-width: 760px; margin-bottom: 30px; }
.sec-head p { margin-top: 12px; color: var(--ink-2); font-size: 18px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 600 13px var(--mono); color: var(--muted); margin-bottom: 26px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 16px; }
.path { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font: 500 12.5px/1.2 var(--mono); }
.path span { background: var(--paper-2); border-radius: 6px; padding: 5px 7px; }
.path b { color: var(--muted); font-weight: 400; }
.path span.on { background: var(--lime); color: var(--on-lime); }

/* results */
#results { scroll-margin-top: 72px; }
.results { padding: 8px 0 56px; }
.r-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 20px; margin-bottom: 18px; }
.r-head h2 { font-size: clamp(28px, 4.4vw, 40px); }
.r-meta { margin-top: 6px; color: var(--muted); font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.badge { font: 600 11.5px/1 var(--mono); padding: 5px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); letter-spacing: .03em; text-transform: uppercase; }
.badge.lime { background: var(--lime); color: var(--on-lime); }
.r-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.remember { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; cursor: pointer; padding: 0 4px; min-height: 38px; }
.remember input { width: 18px; height: 18px; accent-color: var(--ink); }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; } }
.tile { text-align: left; background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 14px 16px; cursor: pointer; transition: border-color .15s, transform .15s; min-width: 0; }
.tile:hover { border-color: var(--ink); transform: translateY(-1px); }
.tile[aria-pressed="true"] { border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.tile .k { font-size: 13.5px; color: var(--muted); line-height: 1.25; display: block; min-height: 2.5em; }
.tile .v { display: block; margin-top: 8px; font: 750 clamp(28px, 4vw, 40px)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tile.key { background: var(--lime); border-color: var(--ink); color: var(--on-lime); }
.tile.key .k { color: var(--on-lime); opacity: .8; }
.tiles .tile.key { grid-column: span 2; }
@media (min-width: 760px) { .tiles .tile.key { grid-column: auto; grid-row: auto; } }

.panel { margin-top: 18px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 20px; overflow: hidden; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 8px 8px 0; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 0; background: transparent; padding: 10px 14px 12px; border-radius: 12px 12px 0 0; font-weight: 600; font-size: 15px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tab .n { font: 500 12.5px var(--mono); margin-left: 6px; color: inherit; opacity: .8; }
.tab[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: inset 0 3px 0 var(--ink); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); align-items: center; }
.search { position: relative; flex: 1 1 220px; min-width: 0; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.search input, .select { width: 100%; height: 42px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--paper); padding: 0 12px 0 36px; font-size: 16px; }
.select { width: auto; padding: 0 30px 0 12px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235E5A50' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; cursor: pointer; }
.search input:focus, .select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent); }
.tool-btns { display: flex; gap: 8px; }
.list-desc { padding: 12px 16px 0; font-size: 14.5px; color: var(--muted); }
.list { list-style: none; margin: 0; padding: 4px 8px 8px; max-height: min(560px, 68vh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.more { border-top: 1px solid var(--line); padding-top: 12px !important; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; min-width: 0; }
.row + .row { border-top: 1px solid var(--line); }
.row:hover { background: var(--paper); }
.av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 14px/1 var(--display); color: #14130F; text-transform: uppercase; border: 1.5px solid var(--ink); }
.row .who { min-width: 0; flex: 1; }
.who .u { font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
a.u:hover { text-decoration: underline; }
.who .d { display: block; font-size: 13.5px; color: var(--muted); }
.row .go { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.row .go svg { width: 16px; height: 16px; }
.empty { padding: 30px 16px 34px; text-align: center; color: var(--muted); }
.more { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 4px 14px 16px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }

.extras { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 860px) { .extras { grid-template-columns: 1.4fr 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card h3 { font-size: 19px; }
.card .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.chart { margin-top: 14px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { font: 500 11px var(--mono); fill: var(--muted); }
.chart .bar { fill: var(--ink); transition: fill .15s; }
.chart .bar.max { fill: var(--lime-2); stroke: var(--ink); stroke-width: 1.5; }
.chart .val { fill: var(--ink); font-weight: 600; }
.oldest { list-style: none; margin: 12px 0 0; padding: 0; }
.oldest li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); min-width: 0; }
.oldest li:first-child { border-top: 0; }
.oldest .rk { font: 600 12px var(--mono); color: var(--muted); width: 22px; flex: none; }
.oldest .av { width: 30px; height: 30px; font-size: 12px; }
.oldest .who { min-width: 0; flex: 1; }

/* waitlist */
.waitlist { --paper: #F4F1EA; --ink: #14130F; --card: #FFFDF8; margin-top: 18px; background: #14130F; color: #F4F1EA; border: 1px solid var(--line); border-radius: 22px; padding: 26px 20px; display: grid; gap: 18px; position: relative; overflow: hidden; }
@media (min-width: 860px) { .waitlist { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 34px 36px; gap: 36px; } }
.waitlist .eyebrow { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.waitlist h3 { font-size: clamp(24px, 3.4vw, 32px); margin-top: 10px; color: var(--paper); }
.waitlist p { margin-top: 10px; color: color-mix(in srgb, var(--paper) 78%, transparent); font-size: 16px; }
.waitlist ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.waitlist li { font-size: 13.5px; padding: 6px 10px; border: 1px solid color-mix(in srgb, var(--paper) 25%, transparent); border-radius: 999px; }
.wl-form { display: flex; flex-direction: column; gap: 10px; }
.wl-form label { font-size: 14px; font-weight: 600; }
.wl-row { display: flex; gap: 8px; flex-wrap: wrap; }
.wl-row input { flex: 1 1 200px; min-width: 0; height: 48px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--paper) 30%, transparent); background: color-mix(in srgb, var(--paper) 8%, transparent); color: var(--paper); padding: 0 18px; font-size: 16px; }
.wl-row input::placeholder { color: color-mix(in srgb, var(--paper) 55%, transparent); }
.wl-row input:focus { outline: none; border-color: var(--lime); }
.wl-row .btn { min-height: 48px; }
.wl-note { font-size: 13px; color: color-mix(in srgb, var(--paper) 65%, transparent); }
.wl-note a { color: inherit; }
.wl-err { font-size: 14px; color: #FFB4A3; min-height: 0; }
.wl-thanks { display: none; font: 700 20px/1.3 var(--display); }
.wl-thanks small { display: block; font: 400 15px/1.5 var(--body); margin-top: 6px; color: color-mix(in srgb, var(--paper) 75%, transparent); }
.wl-form.done .wl-row, .wl-form.done label, .wl-form.done .wl-note, .wl-form.done .wl-err { display: none; }
.wl-form.done .wl-thanks { display: block; }

/* privacy explainer */
.privacy-grid { display: grid; gap: 14px; }
@media (min-width: 860px) { .privacy-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.privacy-grid .card h3 { margin: 12px 0 8px; }
.privacy-grid .card p { color: var(--ink-2); font-size: 16px; }
.ico { width: 40px; height: 40px; border-radius: 11px; background: var(--paper-2); display: grid; place-items: center; }
.ico svg { width: 22px; height: 22px; }
.flow { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 13.5px var(--mono); }
.flow > * { flex: none; }
.flow span { white-space: nowrap; padding: 8px 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); }
.flow span.x { border-style: dashed; color: var(--muted); border-color: var(--line-2); text-decoration: line-through; }
.flow i { font-style: normal; color: var(--muted); }

/* comparison */
.table-wrap { overflow-x: auto; border: 1.5px solid var(--ink); border-radius: 18px; background: var(--card); -webkit-overflow-scrolling: touch; }
table.cmp { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15.5px; }
.cmp th, .cmp td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font: 700 15px/1.25 var(--display); background: var(--paper-2); }
.cmp thead th.us { background: var(--lime); color: var(--on-lime); }
.cmp tbody th { font-weight: 600; width: 24%; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td.us { background: color-mix(in srgb, var(--lime) 16%, transparent); font-weight: 500; }
.checked { margin-top: 12px; font-size: 13.5px; color: var(--muted); }

/* faq */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 18px; transition: border-color .15s; }
.faq details[open] { border-color: var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; position: relative; font: 650 18px/1.3 var(--display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .a { padding: 0 0 18px; color: var(--ink-2); font-size: 16.5px; }
.faq .a p + p { margin-top: 10px; }

/* final cta */
.final { text-align: center; }
.final h2 { max-width: 18ch; margin: 0 auto; }
.final p { margin: 14px auto 0; max-width: 46ch; color: var(--ink-2); font-size: 18px; }
.final .btns { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 110px; font-size: 14.5px; color: var(--muted); }
@media (min-width: 760px) { footer { padding-bottom: 48px; } }
.foot { display: grid; gap: 20px; }
@media (min-width: 760px) { .foot { grid-template-columns: 1.4fr 1fr; } }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (min-width: 760px) { .foot nav { justify-content: flex-end; } }
.foot nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.foot nav a:hover { text-decoration: underline; }
.disclaimer { margin-top: 10px; }

/* sticky mobile cta */
.sticky { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--paper); padding: 10px 10px 10px 16px; border-radius: 18px; box-shadow: 0 12px 30px rgba(0,0,0,.28); transform: translateY(150%); transition: transform .3s ease; }
.sticky.show { transform: none; }
.sticky div { flex: 1; line-height: 1.25; min-width: 0; }
.sticky b { display: block; font-size: 15px; }
.sticky span { font-size: 12.5px; opacity: .75; }
.sticky .btn { min-height: 42px; font-size: 15px; }
@media (min-width: 760px) { .sticky { display: none; } }

/* share dialog */
dialog.share { border: 0; padding: 0; border-radius: 22px; background: var(--card); color: var(--ink); width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog.share::backdrop { background: rgba(20,19,15,.55); backdrop-filter: blur(3px); }
.share-in { padding: 18px; display: grid; gap: 14px; }
.share-top { display: flex; justify-content: space-between; align-items: center; }
.share-top h3 { font-size: 20px; }
.close-x { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; }
.share-img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); aspect-ratio: 1080 / 1350; object-fit: contain; background: var(--paper); }
.share-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-btns .btn { padding: 0 12px; }
.share-note { font-size: 13px; color: var(--muted); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 600; z-index: 80; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 760px) { .toast { bottom: 32px; } }

/* entry animation */
.reveal { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* article pages (guide / legal) */
.article { padding: 28px 0 64px; }
@media (min-width: 960px) { .article { padding: 56px 0 96px; } }
.article .wrap { max-width: 860px; }
.article h1 { font-size: clamp(34px, 6.4vw, 60px); max-width: 18ch; }
.article .lede { margin-top: 16px; font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-2); max-width: 46ch; }
.article .dated { margin-top: 14px; font: 500 13px var(--mono); color: var(--muted); }
.article h2 { font-size: clamp(26px, 4vw, 36px); margin: 56px 0 14px; scroll-margin-top: 80px; }
.article h3 { margin: 28px 0 8px; }
.article p, .article li { color: var(--ink-2); }
.article p + p { margin-top: 12px; }
.article ul, .article ol { padding-left: 22px; }
.article li + li { margin-top: 6px; }
.toc { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { text-decoration: none; padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--line-2); font-weight: 600; font-size: 14.5px; }
.toc a:hover { border-color: var(--ink); }
.gsteps { list-style: none; padding: 0 !important; margin: 18px 0 0; counter-reset: g; display: grid; gap: 14px; }
.gsteps > li { counter-increment: g; display: grid; grid-template-columns: 1fr; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin: 0 !important; }
@media (min-width: 720px) { .gsteps > li { grid-template-columns: minmax(0, 1fr) 240px; align-items: center; padding: 22px; } }
.gsteps h3 { margin: 0 0 6px; font-size: 19px; display: flex; gap: 10px; align-items: baseline; }
.gsteps h3::before { content: counter(g); flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ink); color: var(--paper); font: 700 14px/1 var(--mono); transform: translateY(-2px); }
.gsteps p { font-size: 16px; }
.ui { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 16px; padding: 10px; font-size: 13.5px; box-shadow: 3px 3px 0 var(--ink); }
.ui .bar { display: flex; align-items: center; gap: 6px; font: 600 12px var(--mono); color: var(--muted); padding: 2px 4px 8px; }
.ui .r { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 9px; background: var(--card); margin-top: 4px; color: var(--ink); }
.ui .r.on { background: var(--lime); color: var(--on-lime); font-weight: 650; outline: 1.5px solid var(--ink); }
.ui .r em { font-style: normal; font: 500 12px var(--mono); color: inherit; opacity: .7; }
.ui .chk { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid currentColor; display: inline-grid; place-items: center; flex: none; }
.ui .r.on .chk { background: var(--ink); color: var(--lime); }
.callout { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: var(--paper-2); border-left: 4px solid var(--ink); }
.callout.lime { background: color-mix(in srgb, var(--lime) 30%, var(--card)); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin-top: 12px; font-size: 16px; }
.kv dt { font-weight: 700; }
.kv dd { margin: 0; color: var(--ink-2); }
.legal h2 { font-size: clamp(22px, 3vw, 28px); margin-top: 40px; }
code { font: 500 .9em var(--mono); background: var(--paper-2); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 719px) {
  .hero { padding-top: 16px; }
  .hero .sub { font-size: 16.5px; line-height: 1.45; }
  .drop { margin-top: 16px; padding: 12px; box-shadow: 4px 4px 0 var(--ink); }
  .drop-inner { padding: 14px 12px 16px; }
  .drop-icon { display: none; }
  .drop-title { font-size: 19px; }
  .drop-hint { font-size: 14px; }
  .drop-actions { margin-top: 12px; gap: 8px; }
  .drop-actions .btn { min-height: 44px; padding: 0 16px; font-size: 15.5px; }
  .drop-actions #pick-files { flex: 1 1 100%; }
}
@media (max-width: 719px) {
  .r-actions { width: 100%; }
  .r-actions .remember { order: 3; flex-basis: 100%; }
  .tile { padding: 12px 12px 14px; }
  .tile .k { min-height: 0; }
  .tiles .tile.key .v { font-size: 44px; }
}
@media (max-width: 719px) {
  .toolbar { gap: 8px; }
  .search { flex-basis: 100%; }
  .toolbar .select { flex: 0 0 104px; width: 104px; }
  .tool-btns { margin-left: auto; gap: 6px; }
  .tool-btns .btn { padding: 0 12px; }
}
