/* ToneSolver · design system. Quiet, typographic, lots of air; one accent; the dials are the only ornament. */
:root {
  --bg: #ffffff; --bg-alt: #f5f5f7; --bg-raised: #ffffff; --ink: #1d1d1f; --ink-2: #6e6e73; --ink-3: #86868b; --line: #d2d2d7; --line-soft: #e8e8ed;
  --accent: #0071e3; --accent-ink: #0066cc; --accent-soft: rgba(0, 113, 227, 0.1); --amber: #f56300; --amber-soft: rgba(245, 99, 0, 0.12); --green: #1d8a4f; --red: #d70015;
  --dark: #000000; --dark-2: #161617; --on-dark: #f5f5f7; --on-dark-2: #a1a1a6;
  --radius: 18px; --radius-lg: 28px; --shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC", "PingFang TC", "Hiragino Sans", "Noto Sans CJK SC", "Microsoft YaHei", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --nav-h: 48px; --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000000; --bg-alt: #101012; --bg-raised: #1c1c1e; --ink: #f5f5f7; --ink-2: #a1a1a6; --ink-3: #86868b; --line: #424245; --line-soft: #2c2c2e;
    --accent: #2997ff; --accent-ink: #2997ff; --accent-soft: rgba(41, 151, 255, 0.16); --amber: #ff9f0a; --amber-soft: rgba(255, 159, 10, 0.16); --green: #30d158; --red: #ff453a;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 12px 32px rgba(0, 0, 0, 0.4); }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; border-radius: 8px; box-shadow: 0 0 0 1.5px var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 26px; margin-left: 8px; flex: 1; }
.nav-links a { color: var(--ink); opacity: 0.82; font-size: 13px; letter-spacing: -0.005em; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-right .link { font-size: 13px; color: var(--ink); opacity: 0.82; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; font-size: 13px; opacity: 0.82; display: inline-flex; align-items: center; gap: 4px; }
.lang summary::-webkit-details-marker { display: none; }
.lang[open] .lang-menu { display: grid; }
.lang-menu { display: none; position: absolute; right: 0; top: 30px; min-width: 150px; padding: 8px; background: var(--bg-raised); border: 1px solid var(--line-soft); border-radius: 14px; box-shadow: var(--shadow); }
.lang-menu a { padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--ink); }
.lang-menu a:hover { background: var(--bg-alt); text-decoration: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 980px; border: 1px solid transparent; background: var(--accent); color: #fff; font-size: 17px; font-weight: 400; cursor: pointer; transition: background 0.2s, transform 0.2s, opacity 0.2s; white-space: nowrap; }
.btn:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.4; cursor: default; }
.btn.sm { min-height: 32px; padding: 0 14px; font-size: 13px; }
.btn.lg { min-height: 52px; padding: 0 30px; font-size: 19px; }
.btn.ghost { background: transparent; color: var(--accent-ink); border-color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.quiet { background: var(--bg-alt); color: var(--ink); }
.btn.quiet:hover { background: var(--line-soft); }
.btn.dark { background: var(--ink); color: var(--bg); }
.btn.block { width: 100%; }
.more { font-size: 17px; white-space: nowrap; }
.more::after { content: " ›"; }

/* type */
.eyebrow { font-size: 14px; font-weight: 600; color: var(--amber); letter-spacing: 0; }
.display { font-size: clamp(40px, 7vw, 80px); line-height: 1.05; font-weight: 600; letter-spacing: -0.028em; }
.title { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -0.022em; }
.title-2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.12; font-weight: 600; letter-spacing: -0.018em; }
.title-3 { font-size: 21px; line-height: 1.19; font-weight: 600; letter-spacing: -0.012em; }
.lead { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.33; color: var(--ink-2); font-weight: 400; letter-spacing: -0.012em; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; line-height: 1.43; }
.tiny { font-size: 12px; line-height: 1.33; color: var(--ink-3); }
.center { text-align: center; }
.balance { text-wrap: balance; }

/* sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.alt { background: var(--bg-alt); }
.section.tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 64px); text-align: center; display: grid; gap: 14px; }
.hero { background: var(--dark); color: var(--on-dark); padding: clamp(72px, 10vw, 128px) 0 0; text-align: center; overflow: hidden; }
.hero .lead { color: var(--on-dark-2); max-width: 680px; margin: 18px auto 0; }
.hero .eyebrow { margin-bottom: 14px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.hero-cta .more { color: #2997ff; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--on-dark-2); }
.hero-stage { margin: clamp(48px, 7vw, 80px) auto 0; max-width: 980px; padding: 0 22px; }
.stage-card { background: linear-gradient(180deg, #1d1d1f, #101011); border: 1px solid #2c2c2e; border-bottom: 0; border-radius: 28px 28px 0 0; padding: clamp(22px, 3.4vw, 40px) clamp(18px, 3.4vw, 44px) clamp(28px, 4vw, 48px); text-align: left; box-shadow: 0 -30px 120px rgba(255, 159, 10, 0.07); }
.stage-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.stage-row .song { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.stage-row .sub { font-size: 14px; color: var(--on-dark-2); margin-top: 2px; }
.stage-dials { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(8px, 2vw, 22px); }
.hero .dial .dial-num { fill: var(--on-dark); }
.hero .dial .dial-label { color: var(--on-dark-2); }
.hero .dial .track { stroke: #3a3a3c; }

/* grids and cards */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--bg-raised); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line-soft); }
.section.alt .card, .card.flat { border-color: transparent; }
.card.lg { border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); }
.card.dark { background: var(--dark-2); color: var(--on-dark); border-color: #2c2c2e; }
.card.dark .muted { color: var(--on-dark-2); }
.card h3 { margin-bottom: 8px; }
.card p + p { margin-top: 10px; }
a.card { display: block; color: inherit; transition: transform 0.25s, box-shadow 0.25s; }
a.card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.icon { width: 36px; height: 36px; margin-bottom: 16px; color: var(--amber); }
.stat { font-size: clamp(40px, 5vw, 56px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.stat small { font-size: 0.42em; font-weight: 600; letter-spacing: -0.01em; margin-left: 4px; color: var(--ink-2); }
.stat-label { margin-top: 10px; color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.steps { counter-reset: step; }
.step { position: relative; padding-top: 52px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 600; font-size: 17px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 980px; background: var(--bg-alt); color: var(--ink-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.section.alt .chip { background: var(--line-soft); }
.chip.accent { background: var(--accent-soft); color: var(--accent-ink); }
.chip.amber { background: var(--amber-soft); color: var(--amber); }
.chip.green { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-tabs { display: inline-flex; padding: 3px; background: var(--bg-alt); border-radius: 980px; gap: 2px; }
.pill-tabs button { border: 0; background: transparent; padding: 7px 16px; border-radius: 980px; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.pill-tabs button[aria-selected="true"] { background: var(--bg-raised); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.section.alt .pill-tabs { background: var(--line-soft); }

/* tables and lists */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-weight: 600; font-size: 12px; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table a { color: var(--ink); font-weight: 500; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.list { display: grid; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line-soft); color: inherit; }
a.row:hover { text-decoration: none; background: var(--bg-alt); border-radius: 12px; }
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .s { font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--ink-3); padding: 18px 0 0; list-style: none; margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--ink-2); }
.page-head { padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 4vw, 44px); display: grid; gap: 14px; }
.prose { display: grid; gap: 16px; }
.prose h2 { margin-top: 20px; font-size: 24px; letter-spacing: -0.018em; }
.prose h3 { margin-top: 8px; font-size: 19px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 10px 18px; font-size: 15px; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; }

/* dials */
.dials { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 18px 10px; }
.dial { display: grid; justify-items: center; gap: 4px; position: relative; }
.dial svg { width: 100%; max-width: 108px; height: auto; overflow: visible; }
.dial .track { fill: none; stroke: var(--line); stroke-width: 5; stroke-linecap: round; }
.dial .value { fill: none; stroke: var(--amber); stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.dial .tick { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); transform-origin: 50px 50px; }
.dial .dial-num { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; fill: var(--ink); font-variant-numeric: tabular-nums; }
.dial .dial-label { font-size: 13px; color: var(--ink-2); text-align: center; line-height: 1.2; }
.dial.taste .value { stroke: var(--ink-3); } .dial.taste .dial-num { fill: var(--ink-3); font-size: 15px; font-weight: 500; }
.dial.critical .dial-label::after { content: " ★"; color: var(--amber); }
.dial.sm svg { max-width: 72px; } .dial.sm .dial-num { font-size: 24px; } .dial.sm .dial-label { font-size: 12px; }
.switch-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sw { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 6px; border-radius: 980px; background: var(--bg-alt); font-size: 13px; }
.sw i { width: 30px; height: 18px; border-radius: 980px; background: var(--line); position: relative; display: inline-block; transition: background 0.3s; }
.sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform 0.3s; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.sw.on i { background: var(--green); } .sw.on i::after { transform: translateX(12px); }

/* score ring */
.ring { position: relative; width: 132px; height: 132px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: var(--line-soft); stroke-width: 9; }
.ring .value { fill: none; stroke: var(--green); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ring .n { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .n b { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; display: block; }
.ring .n span { font-size: 12px; color: var(--ink-3); }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: minmax(90px, 150px) 1fr 44px; gap: 12px; align-items: center; font-size: 14px; }
.bar .tr { height: 8px; background: var(--line-soft); border-radius: 8px; overflow: hidden; }
.bar .tr i { display: block; height: 100%; border-radius: 8px; background: var(--ink-3); width: 0; transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.bar.best .tr i { background: var(--green); } .bar.them .tr i { background: var(--amber); }
.bar .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* forms */
.field { display: grid; gap: 6px; }
.field label, .label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.input, .select { width: 100%; height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-raised); font-size: 17px; transition: border-color 0.2s, box-shadow 0.2s; }
.input:focus, .select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea.input { height: auto; padding: 12px 16px; min-height: 110px; resize: vertical; }
.combo { position: relative; }
.combo-list { position: absolute; z-index: 30; left: 0; right: 0; top: 54px; max-height: 320px; overflow: auto; background: var(--bg-raised); border: 1px solid var(--line-soft); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; display: none; }
.combo.open .combo-list { display: block; }
.combo-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 15px; }
.combo-item:hover, .combo-item.active { background: var(--bg-alt); }
.combo-item small { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.combo-empty { padding: 14px 12px; color: var(--ink-3); font-size: 14px; }
.picked { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--bg-alt); }
.picked b { font-weight: 600; } .picked button { background: none; border: 0; color: var(--accent-ink); cursor: pointer; font-size: 14px; white-space: nowrap; flex: none; }
.notice { padding: 14px 18px; border-radius: 14px; background: var(--bg-alt); font-size: 15px; }
.notice.warn { background: var(--amber-soft); } .notice.err { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); } .notice.ok { background: color-mix(in srgb, var(--green) 12%, transparent); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 980px; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s; z-index: 100; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 18px; }
.plan.featured { border: 2px solid var(--accent); }
.plan .price { font-size: 48px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.plan .price small { font-size: 17px; font-weight: 400; color: var(--ink-2); letter-spacing: 0; }
.plan .was { font-size: 14px; color: var(--ink-3); }
.plan .was s { color: var(--ink-3); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; flex: 1; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 12px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

/* faq */
.faq { display: grid; gap: 0; max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary { cursor: pointer; padding: 22px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.012em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 26px; line-height: 0.9; color: var(--ink-3); transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 680px; }

/* footer */
.footer { background: var(--bg-alt); padding: 44px 0 30px; font-size: 12px; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer h4 { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--ink-2); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .dial .value, .dial .tick, .ring .value, .bar .tr i { transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 900px) {
  .g3, .g4, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stage-dials { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px 22px 18px; background: var(--bg); border-bottom: 1px solid var(--line-soft); }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line-soft); }
  .menu-btn { display: block; }
  .nav .wrap { gap: 12px; } .nav-right { margin-left: auto; gap: 10px; }
  .lang summary, .nav-right .link { white-space: nowrap; }
  .g2, .g3, .g4, .plans { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 10px; }
  .card { padding: 22px; }
  .bar { grid-template-columns: 96px 1fr 40px; }
}

@media (max-width: 480px) { .nav-right .btn.sm { display: none; } }
