/* PianoBajao Tools - design system */
@font-face { font-family: "Open Sauce"; src: url("../fonts/OpenSauceSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sauce"; src: url("../fonts/OpenSauceSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Open Sauce"; src: url("../fonts/OpenSauceSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Open Sauce"; src: url("../fonts/OpenSauceSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Open Sauce"; src: url("../fonts/OpenSauceSans-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --bg: #0b0c10;
  --bg-2: #101217;
  --surface: #161920;
  --surface-2: #1d212a;
  --surface-3: #262b36;
  --line: #2a2f3b;
  --line-2: #363c4a;
  --text: #f4f2ee;
  --muted: #a3a9b6;
  --dim: #6c7381;
  --accent: #ff4d42;
  --accent-2: #ff7a52;
  --accent-soft: rgba(255, 77, 66, .14);
  --gold: #ffb648;
  --gold-soft: rgba(255, 182, 72, .16);
  --ok: #34d399;
  --info: #60a5fa;
  --danger: #f87171;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --font: "Open Sauce", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.accent { color: var(--accent); }
.gold { color: var(--gold); }

/* ---------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(11, 12, 16, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; white-space: nowrap; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo .tools-pill { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .94rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.active { color: var(--text); background: var(--surface-2); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav .show-sm { display: none; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 40px; height: 40px; cursor: pointer; }
.user-chip { display: flex; align-items: center; gap: 8px; text-decoration: none; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.user-chip .avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); font-weight: 800; font-size: .85rem; color: #fff; }
.plan-badge { font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; background: var(--surface-3); color: var(--muted); }
.plan-badge.pro { background: linear-gradient(90deg, var(--gold), var(--accent-2)); color: #1a0f05; }

@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; }
  .nav.open { display: flex; }
  .nav .show-sm { display: block; }
  .nav a { padding: 12px; }
  .menu-btn { display: grid; place-items: center; }
  .site-header .hide-sm { display: none; }
}
@media (max-width: 480px) {
  .site-header .wrap { gap: 10px; }
  .logo { font-size: 1rem; gap: 8px; }
  .user-chip { padding-right: 4px; }
  .user-chip .plan-badge { display: none; }
  .header-right .btn-sm { padding: 0 10px; }
}

/* ---------------- buttons & inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s, opacity .15s;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #ff6157; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #1d1204; }
.btn-gold:hover { background: #ffc46a; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface); color: var(--text); }
.btn-sm { height: 34px; padding: 0 12px; font-size: .85rem; border-radius: 8px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 1.05rem; border-radius: 12px; }
.btn-icon { width: 40px; padding: 0; }
.btn-block { width: 100%; }

.input, .select {
  height: 48px; width: 100%; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder { color: var(--dim); }
label.field { display: block; }
label.field > span { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }

.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: .85rem; padding: 7px 12px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--surface-3); color: var(--text); }
.seg button:disabled { opacity: .45; cursor: not-allowed; }

.lock { font-size: .7rem; font-weight: 800; letter-spacing: .05em; padding: 1px 5px; border-radius: 4px; background: var(--gold-soft); color: var(--gold); margin-left: 4px; vertical-align: 1px; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: var(--surface-3); outline: none; cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--text); border: 3px solid var(--accent); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 3px solid var(--accent); }

/* ---------------- cards & sections */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card-tight { padding: 16px; }
.section { padding: 72px 0; }
.section-sm { padding: 40px 0; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } .section { padding: 48px 0; } }

/* ---------------- hero */
.hero { position: relative; overflow: hidden; padding: 84px 0 64px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 520px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 77, 66, .20), transparent 70%), radial-gradient(closest-side at 70% 50%, rgba(255, 182, 72, .10), transparent 70%);
}
.hero .wrap { position: relative; }
.hero h1 .hl { background: linear-gradient(90deg, var(--accent), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.quick-start { display: flex; gap: 10px; max-width: 680px; margin-top: 26px; padding: 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); }
.quick-start .input { border: 0; background: transparent; box-shadow: none !important; }
@media (max-width: 600px) { .quick-start { flex-direction: column; } }
.keys-strip { height: 26px; margin-top: 56px; opacity: .5; background:
  repeating-linear-gradient(90deg, transparent 0 22px, var(--line-2) 22px 23px),
  linear-gradient(180deg, var(--surface-2), var(--surface)); border-radius: 4px; position: relative; }

.tool-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: transform .15s, border-color .15s; position: relative; overflow: hidden; }
.tool-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.tool-card .tool-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.tool-card.gold .tool-ico { background: var(--gold-soft); color: var(--gold); }
.tool-card.blue .tool-ico { background: rgba(96, 165, 250, .14); color: var(--info); }
.tool-card .go { margin-top: auto; font-weight: 700; color: var(--accent); font-size: .92rem; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { padding: 5px 0 5px 24px; position: relative; color: var(--muted); font-size: .94rem; }
.feature-list li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.feature-list li.no::before { border: 0; width: 10px; height: 2px; background: var(--dim); top: 15px; transform: none; }
.feature-list li.no { color: var(--dim); }

.steps { counter-reset: s; }
.steps .card { position: relative; padding-top: 56px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: 18px; left: 22px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); font-weight: 800; font-size: .9rem; }

/* ---------------- tool pages */
.tool-head { padding: 36px 0 18px; }
.tool-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.input-panel { padding: 22px; }
.source-tabs { margin-bottom: 14px; }
.link-row { display: flex; gap: 10px; }
@media (max-width: 600px) { .link-row { flex-direction: column; } }
.dropzone {
  border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 34px 18px; text-align: center; cursor: pointer;
  background: var(--bg-2); transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .dz-ico { width: 44px; height: 44px; margin: 0 auto 10px; color: var(--accent); }
.dropzone .file-name { font-weight: 700; color: var(--text); }

.progress-card { text-align: center; padding: 40px 22px; }
.progress-bar { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin: 18px auto 10px; max-width: 520px; }
.progress-bar > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 99px; transition: width .5s ease; }
.eq { display: inline-flex; gap: 4px; align-items: flex-end; height: 34px; }
.eq span { width: 6px; background: var(--accent); border-radius: 3px; animation: eq 1s ease-in-out infinite; }
.eq span:nth-child(2) { animation-delay: .15s; background: var(--accent-2); }
.eq span:nth-child(3) { animation-delay: .3s; background: var(--gold); }
.eq span:nth-child(4) { animation-delay: .45s; background: var(--accent-2); }
.eq span:nth-child(5) { animation-delay: .6s; }
@keyframes eq { 0%, 100% { height: 8px; } 50% { height: 34px; } }
@media (prefers-reduced-motion: reduce) { .eq span { animation: none; height: 20px; } }

.recent-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.recent-item { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; min-width: 0; }
.recent-item:hover { border-color: var(--line-2); }
.recent-item img, .recent-item .ph { width: 56px; height: 42px; border-radius: 6px; object-fit: cover; flex: none; background: var(--surface-3); }
.recent-item .t { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-item .s { font-size: .78rem; color: var(--dim); }

/* ---------------- chord player */
.player-layout { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 980px) { .player-layout { grid-template-columns: 1fr; } }
.side-sticky { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 980px) { .side-sticky { position: static; } }
.video-box { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.video-box iframe, .video-box > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.upload-art { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, rgba(255, 77, 66, .25), transparent 60%), var(--surface-2); }
.upload-art .big-note { font-size: 64px; }
.now-card { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.now-chord { font-size: 3.2rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.next-chord { color: var(--muted); font-weight: 700; }
.diagram-box { background: var(--bg-2); border-radius: 12px; border: 1px solid var(--line); padding: 10px; display: grid; place-items: center; min-height: 150px; }
.diagram-box svg { width: 100%; height: auto; max-height: 190px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.stepper button { width: 30px; height: 30px; border-radius: 7px; border: 0; background: transparent; cursor: pointer; font-weight: 800; color: var(--text); }
.stepper button:hover { background: var(--surface-3); }
.stepper .val { min-width: 74px; text-align: center; font-size: .82rem; font-weight: 700; color: var(--muted); }
.stepper .val b { color: var(--text); }

.transport { display: flex; align-items: center; gap: 12px; }
.play-btn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; box-shadow: 0 8px 24px rgba(255, 77, 66, .35); }
.play-btn:hover { background: #ff6157; }
.play-btn svg { width: 22px; height: 22px; }
.time { font-variant-numeric: tabular-nums; font-size: .85rem; color: var(--muted); min-width: 92px; text-align: center; }

.chord-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.bar { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 10px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); min-height: 58px; }
.beat { position: relative; display: flex; align-items: center; padding: 0 8px; font-weight: 800; font-size: 1.02rem; cursor: pointer; border-right: 1px solid rgba(255, 255, 255, .04); white-space: nowrap; overflow: visible; min-width: 0; transition: background .12s; }
.beat:last-child { border-right: 0; }
.beat:hover { background: var(--surface-2); }
.beat.cont::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 2px; border-radius: 2px; background: var(--line-2); }
.beat.past { color: var(--dim); }
.beat.now { background: var(--gold); color: #1d1204; }
.beat.now.cont::after { background: rgba(0, 0, 0, .25); }
.beat.loop { box-shadow: inset 0 -3px 0 var(--info); }
.beat.nc { color: var(--dim); font-weight: 600; }
.bar-num { display: none; }
.beat.long { font-size: .82rem; letter-spacing: -.02em; }
@media (max-width: 700px) { .chord-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); } .beat { font-size: .92rem; padding: 0 5px; } .beat.long { font-size: .74rem; } }

.mini-bar { display: none; }
@media (max-width: 980px) {
  .mini-bar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60; display: flex; align-items: center; gap: 12px;
    padding: 8px 14px 8px 8px; border-radius: 16px; background: rgba(29, 33, 42, .96); border: 1px solid var(--line-2);
    box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .mini-bar .play-btn { width: 44px; height: 44px; box-shadow: none; }
  .mini-bar .mini-now { font-size: 1.6rem; font-weight: 800; line-height: 1; min-width: 64px; }
  .mini-bar .mini-next { color: var(--muted); font-size: .8rem; font-weight: 700; }
  .mini-bar .time { margin-left: auto; min-width: 0; }
  body.has-mini { padding-bottom: 76px; }
}
.now-card.piano .diagram-box { width: 210px !important; }
.chord-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.chord-chip { flex: none; width: 112px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; text-align: center; }
.chord-chip b { display: block; font-size: 1rem; margin-bottom: 4px; }
.chord-chip svg { width: 100%; height: auto; }

/* ---------------- mixer */
.mixer { display: flex; flex-direction: column; gap: 10px; }
.track { display: grid; grid-template-columns: 44px 120px auto 1fr 54px; gap: 12px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.track .ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); }
.track .name { font-weight: 700; }
.track .ms { display: flex; gap: 6px; }
.track .ms button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-2); font-weight: 800; font-size: .8rem; cursor: pointer; color: var(--muted); }
.track .ms button.m.on { background: var(--danger); border-color: var(--danger); color: #1a0505; }
.track .ms button.s.on { background: var(--gold); border-color: var(--gold); color: #1d1204; }
.track .vol-val { font-size: .8rem; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.track.muted-track { opacity: .5; }
.track.locked { opacity: .55; }
@media (max-width: 640px) { .track { grid-template-columns: 40px 1fr auto; } .track input[type=range] { grid-column: 1 / -1; } .track .vol-val { display: none; } }
.seek { width: 100%; }

/* ---------------- clean */
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.preset { position: relative; text-align: left; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; transition: border-color .15s, background .15s; }
.preset:hover { border-color: var(--line-2); }
.preset.on { border-color: var(--accent); background: var(--accent-soft); }
.preset b { display: block; margin-bottom: 2px; }
.preset span { font-size: .8rem; color: var(--muted); }
.preset .lock { position: absolute; top: 10px; right: 10px; }
.knobs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 22px; }
@media (max-width: 640px) { .knobs { grid-template-columns: 1fr; } }
.knob-label { display: flex; justify-content: space-between; font-size: .88rem; font-weight: 600; margin-bottom: 8px; }
.knob-label em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.ab-switch { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; max-width: 360px; }
.ab-switch button { border: 0; border-radius: 9px; padding: 10px; font-weight: 800; background: transparent; color: var(--muted); cursor: pointer; }
.ab-switch button.on { background: var(--surface-3); color: var(--text); }
.ab-switch button.on.b { background: var(--accent); color: #fff; }
.wave { height: 84px; width: 100%; border-radius: 10px; background: var(--bg-2); cursor: pointer; }

/* ---------------- pricing */
.price-card { display: flex; flex-direction: column; gap: 14px; }
.price-card.pro { border-color: rgba(255, 182, 72, .45); background: linear-gradient(180deg, rgba(255, 182, 72, .07), transparent 40%), var(--surface); position: relative; }
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price small { font-size: .95rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.ribbon { position: absolute; top: 16px; right: 16px; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: var(--gold); color: #1d1204; }
.compare { width: 100%; border-collapse: collapse; font-size: .93rem; }
.compare th, .compare td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.compare th { color: var(--muted); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.table-scroll { overflow-x: auto; }
details.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
details.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--muted); margin: 10px 0 0; }

/* ---------------- auth */
.auth-wrap { min-height: calc(100vh - 64px - 120px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 420px; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: .9rem; background: rgba(248, 113, 113, .12); border: 1px solid rgba(248, 113, 113, .35); color: #fecaca; }
.alert.info { background: rgba(96, 165, 250, .1); border-color: rgba(96, 165, 250, .35); color: #cfe3ff; }
.alert.ok { background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .35); color: #c9f7e6; }

/* ---------------- footer */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0; margin-top: 60px; color: var(--dim); font-size: .88rem; }
.site-footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------------- toast & modal */
.toast-host { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 440px; }
.toast { pointer-events: auto; background: var(--surface-3); border: 1px solid var(--line-2); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 600; font-size: .92rem; animation: toastIn .2s ease; }
.toast.err { border-color: rgba(248, 113, 113, .5); }
.toast.ok { border-color: rgba(52, 211, 153, .5); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }
.modal-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 150; display: grid; place-items: center; padding: 16px; }
.modal { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.modal .crown { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); margin-bottom: 14px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* static edition */
.site-notice { margin: 0 0 20px; }
.site-notice code { font-size: .85em; padding: 1px 5px; border-radius: 5px; background: rgba(255,255,255,.08); }
