/* ==========================================================================
   TuneFetch - stylesheet
   Modern dark theme. Tokens first, then base, layout, components, sections,
   responsive.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
    color-scheme: dark;

    --bg: #08090b;
    --surface: #101216;
    --surface-2: #161920;
    --raised: #1c2029;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .16);

    --text: #f3f5f7;
    --text-soft: #a7adb8;
    --text-faint: #6f7683;

    --brand: #34e89e;
    --brand-2: #14b86a;
    --brand-ink: #04130c;
    --brand-soft: rgba(52, 232, 158, .12);
    --accent: #7c8cff;
    --danger: #ff6b6b;
    --danger-soft: rgba(255, 107, 107, .12);
    --warn: #f5c451;
    --warn-soft: rgba(245, 196, 81, .12);

    --grad: linear-gradient(135deg, #34e89e 0%, #14b86a 100%);
    --grad-text: linear-gradient(120deg, #7dffc3 0%, #34e89e 45%, #7c8cff 100%);

    --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .02);
    --radius: 18px;
    --radius-sm: 12px;
    --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: ui-monospace, 'SF Mono', Consolas, monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
::selection { background: rgba(52, 232, 158, .3); }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Ambient background glow */
.bg-glow { position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(900px 520px at 50% -8%, rgba(52, 232, 158, .17), transparent 70%),
        radial-gradient(700px 480px at 92% 8%, rgba(124, 140, 255, .12), transparent 70%),
        radial-gradient(600px 420px at 4% 40%, rgba(52, 232, 158, .06), transparent 70%),
        var(--bg); }
.bg-glow::after { content: ''; position: absolute; inset: 0; opacity: .5;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 10%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 10%, transparent 75%); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(8, 9, 11, .62); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); border-bottom: 1px solid var(--line); }
.header-inner { height: 66px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -.4px; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 6px 20px -6px rgba(52, 232, 158, .6); }
.logo-mark svg { width: 17px; height: 17px; fill: var(--brand-ink); }
.main-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 500; color: var(--text-soft); }
.main-nav a { transition: color .15s; }
.main-nav a:hover { color: var(--text); }
.main-nav .nav-cta { display: inline-flex; align-items: center; gap: 8px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-strong); padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; transition: background .15s, border-color .15s, transform .15s; }
.main-nav .nav-cta svg { width: 16px; height: 16px; fill: currentColor; }
.main-nav .nav-cta:hover { background: var(--raised); border-color: rgba(255, 255, 255, .3); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 84px; }
.hero-copy { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.pill { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--text-soft); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-strong); padding: 7px 16px 7px 12px; border-radius: 999px; margin-bottom: 26px; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(52, 232, 158, .18), 0 0 12px var(--brand); }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 6.4vw, 72px); line-height: 1.04; letter-spacing: -2.5px; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 24px auto 0; font-size: 18px; line-height: 1.65; color: var(--text-soft); max-width: 560px; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 760px; margin: 56px auto 0; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .02); }
.hero-stats div { padding: 22px 12px; text-align: center; border-right: 1px solid var(--line); }
.hero-stats div:last-child { border-right: none; }
.hero-stats b { display: block; font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -1px; line-height: 1.1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { font-size: 12.5px; color: var(--text-faint); }

/* ---------- Tool card ---------- */
#tool { max-width: 680px; margin: 0 auto; }
.tool { position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)), var(--surface); border: 1px solid var(--line-strong); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; }
.tool::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(52, 232, 158, .7), transparent); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; margin: 20px 22px 0; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 999px; }
.tab { padding: 10px; border: none; background: transparent; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-soft); cursor: pointer; transition: all .2s; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--raised); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 4px 14px rgba(0, 0, 0, .4); }
.tool-body { padding: 24px 26px 28px; }
.tool-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; min-height: 26px; }

.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-soft); margin-bottom: 8px; }
.tool-head .field-label { margin: 0; }
.input-wrap { position: relative; }
.input-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; fill: var(--text-faint); pointer-events: none; transition: fill .2s; }
.input-wrap:focus-within .input-icon { fill: var(--brand); }
input[type=text], textarea, select {
    width: 100%; background: rgba(0, 0, 0, .35); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
input[type=text] { padding: 15px 46px 15px 46px; }
textarea { padding: 14px 16px; min-height: 140px; resize: vertical; line-height: 1.75; font-size: 14px; }
::placeholder { color: var(--text-faint); }
input[type=text]:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(52, 232, 158, .14); background: rgba(0, 0, 0, .5); }
.clear-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; border: none; background: var(--raised); color: var(--text-soft); font-size: 16px; cursor: pointer; display: none; align-items: center; justify-content: center; }
.clear-btn:hover { background: var(--line-strong); color: var(--text); }
.hint { font-size: 13px; color: var(--text-faint); margin-top: 9px; min-height: 20px; }
.hint b { color: var(--brand); font-weight: 700; }
.hint .err { color: var(--danger); font-weight: 500; }
.hint .ok { color: var(--brand); font-weight: 500; }

.options { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; margin: 14px 0 24px; align-items: end; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.seg-btn { height: 40px; border: none; border-radius: 9px; background: transparent; font-size: 13.5px; font-weight: 600; color: var(--text-soft); cursor: pointer; transition: all .15s; }
.seg-btn:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.seg-btn.active { background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 1px rgba(52, 232, 158, .45); }
select { height: 50px; padding: 0 38px 0 14px; font-size: 14.5px; font-weight: 500; appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236f7683' fill='none' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; }
select option { background: var(--surface-2); color: var(--text); }
select:disabled { opacity: .4; cursor: not-allowed; }
.seg-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Buttons ---------- */
.btn-row { display: grid; grid-template-columns: 1fr 1.7fr; gap: 12px; }
.btn { height: 52px; border: 1px solid transparent; border-radius: 14px; font-size: 15px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 22px; transition: transform .15s, background .2s, box-shadow .2s, border-color .2s, filter .2s; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--grad); color: var(--brand-ink); box-shadow: 0 10px 28px -10px rgba(52, 232, 158, .7), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.07); box-shadow: 0 14px 34px -10px rgba(52, 232, 158, .85), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(255, 107, 107, .4); }
.btn-danger:hover:not(:disabled) { background: var(--danger-soft); }
.btn-sm { height: 40px; font-size: 13.5px; padding: 0 18px; border-radius: 11px; }
.spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }

.alert { display: none; margin-top: 18px; padding: 13px 16px; border-radius: var(--radius-sm); font-size: 14px; line-height: 1.5; background: var(--warn-soft); color: var(--warn); border: 1px solid rgba(245, 196, 81, .25); }
.alert code { font-family: var(--mono); font-size: 12.5px; background: rgba(255, 255, 255, .08); padding: 1px 6px; border-radius: 5px; }

.trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 26px; margin-top: 22px; font-size: 13px; color: var(--text-faint); }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; fill: var(--brand); }

/* ---------- Tags ---------- */
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); border: 1px solid rgba(52, 232, 158, .25); }
.tag.purple { background: rgba(124, 140, 255, .13); color: #aab4ff; border-color: rgba(124, 140, 255, .3); }
.tag.warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(245, 196, 81, .3); }
.tag.muted { background: rgba(255, 255, 255, .05); color: var(--text-soft); border-color: var(--line); }
.tag[hidden] { display: none; }

/* ---------- Results ---------- */
.section { display: none; margin-top: 22px; animation: rise .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.card { background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)), var(--surface); border: 1px solid var(--line-strong); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-lg); }

.preview { display: flex; gap: 18px; align-items: center; }
.thumb { width: 92px; height: 92px; border-radius: 14px; object-fit: cover; background: var(--raised); flex-shrink: 0; box-shadow: 0 14px 34px -8px rgba(0, 0, 0, .8), 0 0 0 1px var(--line); }
.thumb.hidden { display: none; }
.preview-text { min-width: 0; flex: 1; }
.preview-title { font-family: var(--display); font-size: 23px; font-weight: 700; letter-spacing: -.5px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-sub { font-size: 14px; color: var(--text-soft); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-tags { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.embed { margin-top: 18px; border-radius: 14px; overflow: hidden; }
.embed iframe { width: 100%; border: none; display: block; color-scheme: normal; }

.picker-head { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 10px; font-size: 13.5px; color: var(--text-soft); }
.picker-head label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.picker-head b { color: var(--brand); font-weight: 700; }
.track-list { max-height: 360px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0, 0, 0, .25); }
.track-list::-webkit-scrollbar, .file-list::-webkit-scrollbar { width: 8px; }
.track-list::-webkit-scrollbar-thumb, .file-list::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }
.track-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14px; transition: background .15s; }
.track-row:last-child { border-bottom: none; }
.track-row:hover { background: rgba(255, 255, 255, .04); }
.track-row .num { width: 24px; flex-shrink: 0; color: var(--text-faint); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.track-row .meta { flex: 1; min-width: 0; }
.track-row .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.track-row .a { color: var(--text-soft); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.track-row .dur { font-size: 12px; color: var(--text-faint); flex-shrink: 0; font-variant-numeric: tabular-nums; }

input[type=checkbox] { appearance: none; width: 18px; height: 18px; border: 1.8px solid var(--line-strong); border-radius: 6px; background: rgba(0, 0, 0, .35); cursor: pointer; flex-shrink: 0; display: grid; place-items: center; transition: all .15s; }
input[type=checkbox]:checked { background: var(--brand); border-color: var(--brand); }
input[type=checkbox]:checked::after { content: ''; width: 4px; height: 8px; border: solid var(--brand-ink); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }

.open-link { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; padding: 12px; border-radius: var(--radius-sm); border: 1px dashed var(--line-strong); color: var(--text-soft); font-size: 13.5px; font-weight: 500; transition: all .2s; }
.open-link:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.open-link svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- Progress ---------- */
.dl-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.dl-head .grow { flex: 1; min-width: 0; }
.dl-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); border: 1px solid rgba(52, 232, 158, .25); display: grid; place-items: center; flex-shrink: 0; }
.dl-icon svg { width: 22px; height: 22px; fill: var(--brand); }
.dl-icon.error { background: var(--danger-soft); border-color: rgba(255, 107, 107, .3); }
.dl-icon.error svg { fill: var(--danger); }
.dl-icon .ring { width: 20px; height: 20px; border: 2.5px solid var(--line-strong); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
.dl-title { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.3px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-sub { font-size: 13px; color: var(--text-soft); margin-top: 2px; }
.bar-wrap { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.bar { flex: 1; height: 8px; background: rgba(255, 255, 255, .07); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: var(--grad); border-radius: 999px; transition: width .5s ease; box-shadow: 0 0 14px rgba(52, 232, 158, .6); }
.bar-fill.fail { background: var(--danger); box-shadow: none; }
.bar-count { font-size: 13px; font-weight: 600; color: var(--text-soft); min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }

.file-list { max-height: 400px; overflow-y: auto; }
.file-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, .28); border: 1px solid var(--line); margin-bottom: 8px; }
.file-item .num { width: 22px; color: var(--text-faint); font-size: 12px; text-align: center; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.file-item .meta { flex: 1; min-width: 0; }
.file-item .t { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .s { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .s.failed { color: var(--danger); }
.file-item .s.done { color: var(--brand); font-weight: 500; }
.mini-bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); margin-top: 8px; overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: var(--grad); transition: width .4s; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .05); color: var(--text); cursor: pointer; display: grid; place-items: center; flex-shrink: 0; transition: all .15s; }
.icon-btn:hover { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.icon-btn svg { width: 16px; height: 16px; fill: currentColor; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); flex-shrink: 0; margin-right: 12px; }
.status-dot.active { background: var(--warn); box-shadow: 0 0 10px var(--warn); animation: pulse 1.2s infinite; }
.status-dot.failed { background: var(--danger); }
@keyframes pulse { 50% { opacity: .35; } }
.actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.actions .btn { flex: 1; min-width: 150px; }

/* ---------- Content sections ---------- */
.section-block { padding: 92px 0; border-top: 1px solid var(--line); }
.section-title { max-width: 640px; margin-bottom: 48px; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.section-title h2 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -1.4px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)), var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.step::before { counter-increment: step; content: counter(step); width: 38px; height: 38px; border-radius: 11px; background: var(--brand-soft); border: 1px solid rgba(52, 232, 158, .3); color: var(--brand); font-family: var(--display); font-size: 17px; font-weight: 700; display: grid; place-items: center; margin-bottom: 20px; }
.step h3 { font-size: 18px; font-weight: 700; letter-spacing: -.2px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--text-soft); }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)), var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.feat:hover { transform: translateY(-3px); border-color: rgba(52, 232, 158, .35); box-shadow: 0 20px 44px -22px rgba(52, 232, 158, .35); }
.feat-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); border: 1px solid rgba(52, 232, 158, .25); display: grid; place-items: center; margin-bottom: 18px; }
.feat-icon svg { width: 21px; height: 21px; fill: var(--brand); }
.feat h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }
.feat p { font-size: 14.5px; color: var(--text-soft); }

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 17px; font-weight: 600; transition: color .15s; }
.faq summary:hover { color: var(--brand); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; font-weight: 400; color: var(--text-faint); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--brand); }
.faq details p { padding: 0 40px 24px 0; color: var(--text-soft); font-size: 15.5px; line-height: 1.7; }
.faq p a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.faq code { font-family: var(--mono); font-size: 13px; background: rgba(255, 255, 255, .07); padding: 2px 7px; border-radius: 5px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 52px; background: rgba(0, 0, 0, .25); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.site-footer p { font-size: 13.5px; color: var(--text-faint); max-width: 480px; line-height: 1.65; margin-top: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; font-size: 14px; color: var(--text-soft); }
.footer-links a:hover { color: var(--brand); }
.footer-links span { color: var(--text-faint); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero { padding: 52px 0 64px; }
    .steps, .feat-grid { grid-template-columns: 1fr 1fr; }
    .section-block { padding: 68px 0; }
}
@media (max-width: 620px) {
    .container { padding: 0 18px; }
    .main-nav a:not(.nav-cta) { display: none; }
    .hero h1 { letter-spacing: -1.6px; }
    .hero .lead { font-size: 16.5px; }
    .tool-body { padding: 20px 18px 24px; }
    .options, .btn-row, .steps, .feat-grid { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .hero-stats div:nth-child(2) { border-right: none; }
    .hero-stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .preview { flex-direction: column; text-align: center; }
    .preview-tags { justify-content: center; }
    .preview-text { width: 100%; }
    .dl-head { flex-wrap: wrap; }
    .footer-links { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- Landing page additions ---------- */
.hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-cta .btn { height: 50px; padding: 0 26px; }
.hero-shot { max-width: 880px; margin: 56px auto 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); }
.hero-shot img { display: block; width: 100%; height: auto; }
.install { max-width: 760px; }
.code { position: relative; background: rgba(0, 0, 0, .45); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 18px 20px; font-family: var(--mono); font-size: 13.5px; line-height: 1.8; color: #d5f7e7; overflow-x: auto; white-space: pre; margin-bottom: 16px; }
.code .c { color: var(--text-faint); }
.note { font-size: 14px; color: var(--text-soft); margin-top: 6px; }
.note a, .faq p a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.btn { text-decoration: none; }
.formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fmt { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)), var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.fmt b { display: block; font-family: var(--display); font-size: 22px; color: var(--brand); margin-bottom: 6px; }
.fmt span { font-size: 14px; color: var(--text-soft); }
@media (max-width: 960px) { .formats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .formats { grid-template-columns: 1fr; } }

/* ---------- Screenshot gallery ---------- */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.shot { margin: 0; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)), var(--surface); border: 1px solid var(--line-strong); border-radius: 20px; padding: 14px; box-shadow: var(--shadow-lg); }
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.shot img.gap { margin-top: 18px; }
.shot figcaption { font-size: 13.5px; color: var(--text-soft); text-align: center; padding: 12px 6px 4px; }
.shot-wide { grid-column: 1 / -1; }
.shot-phone img { max-width: 300px; margin: 0 auto; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }
