:root {
  color-scheme: dark;
  --base: #101116;
  --panel: #191b23;
  --line: #323541;
  --text: #f7f5f2;
  --muted: #b6b8c3;
  --accent: #ffad63;
  --radius: 1.15rem;
  font: 1rem/1.55 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--base);
}

* { box-sizing: border-box; }
body, figure, form { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
p { margin: 0 0 1rem; color: var(--muted); }
h1, h2, h3 { margin: 0 0 .65rem; line-height: 1.08; letter-spacing: -.04em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: 1.38rem; }
.shell { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5rem; border-bottom: 1px solid var(--line); }
.site-nav nav { display: flex; gap: clamp(.8rem, 3vw, 2rem); color: var(--muted); }
.site-nav nav a:hover, .footer a:hover, .quiet-link:hover { color: var(--accent); }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: -.025em; white-space: nowrap; }
.brand img { border-radius: .55rem; }

.button {
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 2.6rem; padding: .63rem 1rem; border: 1px solid transparent; border-radius: .63rem;
  font-weight: 680; line-height: 1.2; text-align: center; transition: background .15s, border-color .15s;
}
.primary { background: var(--accent); color: #251208; }
.primary:hover { background: #ffc38e; }
.secondary { background: #22242d; border-color: #383b48; color: var(--text); }
.secondary:hover { background: #2b2e39; }
.quiet { color: var(--muted); }
.quiet:hover { color: var(--text); }
.danger { background: #382429; color: #ffb4bb; border-color: #63373c; }
.danger:hover { background: #482a31; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.eyebrow { color: var(--accent); font-size: .82rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .8rem; }
.meta, figcaption { font-size: .875rem; color: var(--muted); }

.landing { background: radial-gradient(ellipse 61rem 32rem at 51% 16rem, #34221c 0, transparent 82%); }
.hero { padding-top: clamp(3.5rem, 8vw, 7rem); text-align: center; }
.hero h1 { font-size: clamp(2.6rem, 8.4vw, 7rem); letter-spacing: -.065em; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero .lead { max-width: 38rem; margin: 1.25rem auto 1.45rem; font-size: clamp(1.06rem, 2vw, 1.3rem); }
.hero .actions { justify-content: center; }
.hero .meta { margin-top: .85rem; }
.hero-shot { margin: 2.7rem auto 0; max-width: 67rem; }
.hero-shot img, .views img, .eq-modes img { width: 100%; border-radius: .8rem; border: 1px solid #45404a; }
.hero-shot img { box-shadow: 0 1.75rem 5.5rem #0008; }
figcaption { margin-top: .6rem; }
.section { padding-block: clamp(3.3rem, 7vw, 6.3rem); border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.workflow, .plans, .feature-pair { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.7rem; }
.workflow article, .plans article, .feature-pair article {
  padding: clamp(1.2rem, 3vw, 1.85rem); border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel);
}
.workflow article p, .feature-pair article p { margin: 0; }
.feature-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-intro { max-width: 46rem; }
.feature-intro strong { color: var(--text); }
.pad-keys { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: clamp(.2rem, 1vw, .6rem); max-width: 38rem; padding: 0; margin: 1.25rem 0 0; list-style: none; }
.pad-keys kbd {
  display: grid; place-items: center; aspect-ratio: 1; border: 1px solid #775036; border-radius: .48rem;
  background: #31251e; color: var(--accent); font: 700 clamp(.9rem, 2.7vw, 1.32rem)/1 ui-monospace, monospace;
}
.views { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(1.4rem, 5vw, 5rem); }
.eq-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.65rem, 2vw, 1.2rem); max-width: 39rem; margin-top: 1.6rem; }
.eq-modes figure { min-width: 0; }
.eq-preview {
  display: grid; place-items: center; position: relative; overflow: hidden;
  aspect-ratio: 950 / 882; border: 1px solid #45404a; border-radius: .8rem;
  background: #191c24; cursor: zoom-in;
}
.eq-preview:hover { border-color: var(--accent); }
.eq-modes .eq-preview img { width: 100%; height: 100%; object-fit: contain; border: 0; border-radius: 0; }
.eq-preview span {
  position: absolute; right: .42rem; bottom: .42rem; padding: .14rem .4rem;
  border-radius: .3rem; background: #101116ed; color: var(--text); font-size: .75rem;
}
.image-preview {
  width: max-content; max-width: calc(100vw - 1.5rem); max-height: calc(100dvh - 1.5rem);
  padding: .85rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); color: var(--text);
}
.image-preview::backdrop { background: #07080bd9; }
.image-preview-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.image-preview-header h2 { font-size: clamp(1.02rem, 3.5vw, 1.35rem); margin: 0; }
.image-preview img { width: auto; max-height: calc(100dvh - 6.5rem); margin: auto; object-fit: contain; }
.eq-modes figcaption { margin-top: .85rem; font-size: 1rem; }
.eq-modes h3 { color: var(--text); }
.sound-overview { margin-top: 2.25rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.wave-shot { display: block; margin: 1.2rem 0; }
.plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plans article { display: flex; flex-direction: column; align-items: start; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .15rem .6rem; margin: .2rem 0 .9rem; }
.plan-price strong { font-size: clamp(1.45rem, 3vw, 2.25rem); line-height: 1.15; letter-spacing: -.045em; }
.plan-price span, .plan-payment { color: var(--muted); font-size: .875rem; }
.plan-action { width: 100%; margin-top: auto; min-height: 2.9rem; }
.plan-payment { margin-top: .5rem; }
.plans .pro { background: linear-gradient(135deg, #34261e, var(--panel) 90%); border-color: #775036; }
.faq { margin-top: 1.7rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { padding: .8rem 0; font-weight: 650; }
.faq p { padding-left: 1.05rem; }
.footer { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1.4rem; padding-block: 1.8rem; color: var(--muted); font-size: .875rem; }
.footer span { margin-right: auto; }

.admin { background: radial-gradient(ellipse at 15% 0%, #241d1e, transparent 38rem); min-height: 100vh; }
.admin .shell { width: min(100% - 2rem, 80rem); }
.admin h1 { font-size: clamp(2rem, 5vw, 3.3rem); margin-bottom: 0; }
.admin h2 { font-size: 1.32rem; letter-spacing: -.02em; margin-bottom: 1rem; }
.admin h2 small { color: var(--muted); font-weight: 550; margin-left: .35rem; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.login { display: grid; place-items: center; padding: 1rem; }
.login-card { width: min(100%, 27rem); padding: 1.7rem; }
.login-card h1 { font-size: 2rem; margin: 1rem 0 1.3rem; }
.quiet-link { display: inline-block; color: var(--muted); margin-top: 1rem; }
.stack { display: grid; gap: .65rem; }
label { display: grid; gap: .32rem; color: var(--muted); font-size: .9rem; }
input:not([type=hidden]), select {
  min-width: 0; width: 100%; min-height: 2.6rem; padding: .5rem .65rem;
  border-radius: .55rem; border: 1px solid #434652; color: var(--text); background: #11131a;
}
select { appearance: none; padding-right: 1.7rem; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 13px) 52%, calc(100% - 8px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.dashboard { padding-block: 1.9rem; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.metric { display: grid; gap: .25rem; padding: 1rem; }
.metric:hover { border-color: var(--accent); }
.metric span { color: var(--muted); font-size: .875rem; }
.metric strong { font-size: 1.85rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.admin-section { padding: 1.15rem; margin-bottom: 1rem; }
.field-row { display: flex; flex-wrap: wrap; gap: .65rem; align-items: end; }
.grow { flex: 1 1 16rem; }
.notice { border: 1px solid #756045; border-radius: .75rem; background: #30271f; padding: .95rem; margin-bottom: 1rem; color: var(--text); }
.notice.error { background: #382429; border-color: #63373c; }
.notice h2 { margin-bottom: .4rem; }
.notice .actions input { flex: 1 1 18rem; font-family: ui-monospace, monospace; }
.notice [role=status]:not(:empty) { display: block; margin-top: .35rem; }
.table-scroll { overflow-x: auto; margin-top: 1rem; }
table { width: 100%; border-collapse: collapse; text-align: left; min-width: 44rem; }
th, td { padding: .68rem .6rem; border-bottom: 1px solid var(--line); }
th { font-size: .82rem; color: var(--muted); }
td { vertical-align: top; font-size: .9rem; }
td:first-child { max-width: 21rem; overflow-wrap: anywhere; }
td code { display: block; color: var(--muted); margin-top: .2rem; }
.badge { display: inline-block; border-radius: 1rem; padding: .18rem .55rem; font-size: .8rem; font-weight: 650; background: #2c3446; color: #c8d9ff; }
.badge.active { background: #233c32; color: #b2f0cb; }
.badge.blocked { background: #48292f; color: #ffb4bb; }
.row-actions summary { color: var(--accent); font-weight: 650; }
.row-actions form { padding-top: .65rem; min-width: 11rem; }
.empty { margin: 1rem 0 0; }
.pagination { display: flex; gap: .8rem; align-items: center; margin-top: 1rem; color: var(--muted); }

@media (max-width: 700px) {
  .nav-cta { display: none; }
  .workflow, .plans, .feature-pair, .views { grid-template-columns: 1fr; }
  .eq-modes h3 { font-size: clamp(.92rem, 3.6vw, 1.2rem); overflow-wrap: anywhere; }
  .eq-modes figcaption p { font-size: .875rem; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-shot { margin-top: 2rem; }
  .section { padding-block: 3.2rem; }
}
