@font-face {
  font-family: 'Anybody Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 50% 150%;
  src: url(fonts/anybody-latin-standard-normal.woff2) format('woff2-variations');
}
@font-face {
  font-family: 'Anybody Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 50% 150%;
  src: url(fonts/anybody-latin-standard-italic.woff2) format('woff2-variations');
}

/* ESL Tuning Studio, v2. Dark instrument panel. Tokens per docs/DESIGN_SYSTEM.md.
   Radius rule: 6 controls, 12 panels and cards, 20 the studio only. One accent (lime) for live signal and primary actions. */
:root {
  --bg: #0B0D10; --surface: #14181E; --surface-2: #1B2028; --text: #F3F5F7; --muted: #A7B0BB;
  --accent: #C9F68A; --accent-ink: #0B0D10; --line: rgba(255,255,255,.10); --line-2: rgba(255,255,255,.18);
  --warn: #FF8A65;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r1: 6px; --r2: 12px; --r3: 20px;
  --display: 'Anybody Variable', 'IBM Plex Sans KR', system-ui, sans-serif;
  --body: 'IBM Plex Sans KR', system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--body); overflow-x: hidden; word-break: keep-all; overflow-wrap: anywhere; }
:lang(en) body, body:lang(en) { word-break: normal; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r1); }
.wrap { width: min(100% - 2 * var(--s5), 1280px); margin-inline: auto; }
.fine { font-size: 13px; line-height: 1.6; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -100px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: var(--s3) var(--s4); border-radius: var(--r1); font-weight: 700; }
.skip:focus { top: var(--s4); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5);
  border-radius: var(--r1); border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #d8fba5; }
.btn-line { border-color: var(--line-2); background: transparent; }
.btn-line:hover { border-color: var(--text); }
.btn-sm { min-height: 44px; padding: 0 var(--s4); font-size: 14px; }
.icon-btn { flex-shrink: 0; min-width: 44px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 24px; line-height: 1; cursor: pointer; border-radius: var(--r1); }
.icon-btn:hover { background: var(--surface-2); }

/* language banner */
.lang-banner { display: flex; align-items: center; justify-content: center; gap: var(--s3); padding: var(--s1) var(--s4); background: var(--surface-2); font-size: 14px; }
.lang-banner a { color: var(--accent); display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 var(--s1); }
.lang-banner[hidden] { display: none; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(11,13,16,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
@supports not (backdrop-filter: blur(1px)) { .nav { background: var(--bg); } }
.nav-in { display: flex; align-items: center; gap: var(--s5); min-height: 64px; }
.brand { display: inline-flex; align-items: baseline; gap: var(--s2); text-decoration: none; min-height: 44px; align-items: center; }
.brand b { font: 800 22px/1 var(--display); font-stretch: 130%; letter-spacing: .02em; color: var(--accent); }
.brand span { font-size: 14px; color: var(--muted); }
.nav nav { margin-left: auto; }
.nav ul { display: flex; gap: var(--s1); list-style: none; margin: 0; padding: 0; }
.nav nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3); text-decoration: none; color: var(--muted); font-size: 15px; border-radius: var(--r1); }
.nav nav a:hover { color: var(--text); }
.nav-end { display: flex; align-items: center; gap: var(--s2); }
.lang { flex-shrink: 0; min-width: 44px; justify-content: center; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3); font-size: 14px; color: var(--muted); text-decoration: none; }
.lang:hover { color: var(--text); }
.mobile-menu { display: none; }
@media (max-width: 1023px) {
  .nav-in > nav { display: none; }
  .mobile-menu { display: block; margin-left: auto; }
  .mobile-menu summary { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; cursor: pointer; font-size: 14px; }
  .mobile-menu nav { position: absolute; top: 100%; left: 0; right: 0; padding: var(--s3) var(--s4); background: var(--surface); border-bottom: 1px solid var(--line-2); }
  .mobile-menu:not([open]) nav { display: none; }
  .mobile-menu nav a { display: flex; }
  .nav-in { gap: var(--s2); }
}
@media (max-width: 600px) { .brand span { display: none; } }

/* hero */
.hero { position: relative; padding: var(--s9) 0 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-in { position: relative; z-index: 1; }
.hero-copy { max-width: 820px; }
.hero h1 { font: 700 clamp(34px, 6vw, 68px)/1.08 var(--display); font-stretch: 112%; letter-spacing: -.01em; }
:lang(ko) .hero h1 { font-family: var(--body); font-weight: 700; letter-spacing: -.03em; line-height: 1.18; }
.hero-sub { margin-top: var(--s5); max-width: 62ch; font-size: 17px; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.pulses { margin: var(--s8) 0 0; }
.pulses svg { width: 100%; height: clamp(140px, 22vw, 260px); }
.pulses .p { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 2.4s cubic-bezier(.3,.6,.2,1) forwards; }
.pulses .p1 { stroke: var(--accent); }
.pulses .p2 { stroke: rgba(201,246,138,.55); animation-delay: .25s; }
.pulses .p3 { stroke: rgba(201,246,138,.28); animation-delay: .5s; }
.pulses figcaption { padding: var(--s2) 0 var(--s4); text-align: right; width: min(100% - 2 * var(--s5), 1280px); margin-inline: auto; font-size: 12px; color: var(--muted); }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* section scaffolding */
section { padding: var(--s9) 0; }
section + section { border-top: 1px solid var(--line); }
.hero + section { border-top: 0; }
.sec-head { max-width: 760px; margin-bottom: var(--s7); }
.sec-head h2 { font-size: clamp(26px, 3.6vw, 40px); letter-spacing: -.02em; }
.sec-head p { margin-top: var(--s3); color: var(--muted); font-size: 17px; }

/* studio */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "pick run" "scope scope";
  border: 1px solid var(--line); border-radius: var(--r3); background: var(--surface); overflow: hidden; }
@media (min-width: 1200px) { .studio { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "pick run scope"; } }
.studio-pick { grid-area: pick; padding: var(--s6); border-right: 1px solid var(--line); display: grid; gap: var(--s5); align-content: start; }
.studio-run { grid-area: run; padding: var(--s6); display: grid; gap: var(--s4); align-content: start; }
.studio-scope { grid-area: scope; padding: var(--s6); border-top: 1px solid var(--line); display: grid; gap: var(--s3); align-content: start; }
@media (min-width: 1200px) { .studio-scope { border-top: 0; border-left: 1px solid var(--line); } }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field legend { padding: 0; margin-bottom: var(--s2); font-size: 14px; font-weight: 600; color: var(--muted); }
.opts { display: flex; flex-wrap: wrap; gap: var(--s2); }
.opts-car { display: grid; }
.opt { position: relative; display: inline-flex; }
.opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opt span { display: flex; align-items: center; min-height: 44px; padding: 0 var(--s4); border: 1px solid var(--muted); border-radius: var(--r1); font-size: 15px; width: 100%; transition: border-color .15s, background-color .15s; }
.opt:hover span { border-color: var(--muted); }
.opt input:checked + span::before { content: "✓"; margin-right: var(--s2); }
.opt input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.spec { display: grid; grid-template-columns: 1fr auto; gap: var(--s3); margin: 0; padding-top: var(--s4); border-top: 1px solid var(--line); font-size: 14px; }
.spec div { display: contents; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

.run-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.src-label { display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s1) var(--s3); border: 1px solid var(--line-2); border-radius: var(--r1); font-size: 13px; }
.src-label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.studio:not([data-state="off"]):not([data-state="error"]) .src-label .dot { background: var(--accent); }
.state { font-size: 14px; color: var(--muted); }
.studio[data-state="limiter"] .state { color: var(--warn); }
.studio[data-state="error"] .state { color: var(--warn); }

.gauge { position: relative; width: min(100%, 300px); margin-inline: auto; }
.gauge svg { width: 100%; height: auto; }
.gauge #ticks line { stroke: var(--line-2); stroke-width: 1.5; }
.gauge #ticks text { fill: var(--muted); font: 600 10px var(--display); text-anchor: middle; }
.g-red { fill: none; stroke: var(--warn); stroke-width: 4; }
#needle { stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; transform-origin: 100px 100px; transform: rotate(-225deg); }
.g-hub { fill: var(--accent); }
.rpm { position: absolute; left: 0; right: 0; bottom: 14%; text-align: center; display: grid; }
.rpm output { font: 700 32px/1 var(--display); font-variant-numeric: tabular-nums; }
.rpm small { font-size: 12px; color: var(--muted); }

.power, .drive { display: grid; gap: var(--s3); justify-items: center; text-align: center; }
.drive { justify-items: stretch; text-align: left; }
.drive[hidden], .power[hidden] { display: none; }
.pedal-wrap { display: grid; grid-template-columns: 112px 1fr; gap: var(--s5); align-items: end; }
.pedal { --p: 0; position: relative; height: 240px; border: 1px solid var(--line-2); border-radius: var(--r2); background: var(--surface-2);
  overflow: hidden; cursor: ns-resize; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.pedal-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: bottom; transform: scaleY(var(--p)); }
.pedal-ticks { position: absolute; inset: var(--s2) var(--s2) var(--s2) auto; display: flex; flex-direction: column; justify-content: space-between;
  font-size: 12px; font-variant-numeric: tabular-nums; color: #fff; mix-blend-mode: difference; pointer-events: none; }
.pedal.on { border-color: var(--accent); }
.pedal-read { display: grid; gap: var(--s1); align-content: end; }
.pedal-read > span { font-size: 14px; color: var(--muted); }
.pedal-read output { font: 700 48px/1 var(--display); font-variant-numeric: tabular-nums; }
.drive-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.ab { display: inline-flex; gap: var(--s1); padding: var(--s1); border: 1px solid var(--line); border-radius: var(--r1); }
.ab .opt span { border: 0; }
.slider { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.slider output { color: var(--text); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; height: 44px; margin: 0; accent-color: var(--accent); background: transparent; }

#spectrum { width: 100%; height: 180px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--bg); }
.scope-cap { font-size: 13px; color: var(--muted); }
.scope-cap strong { color: var(--text); font-weight: 600; display: block; }

.studio-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); margin-top: var(--s5); flex-wrap: wrap; }
.studio-foot .fine { max-width: 80ch; }

/* industries */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r2); }
.ind { width: 100%; border-collapse: collapse; font-size: 15px; }
.ind th, .ind td { padding: var(--s4) var(--s5); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.ind thead th { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--surface); }
.ind tbody tr:last-child > * { border-bottom: 0; }
.ind tbody th { font-weight: 700; white-space: nowrap; }
.ind tbody tr:nth-child(3) td:first-of-type { color: var(--muted); }
@media (max-width: 767px) {
  .table-scroll { overflow: visible; border: 0; }
  .ind thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ind, .ind tbody, .ind tr, .ind th, .ind td { display: block; }
  .ind tr { border: 1px solid var(--line); border-radius: var(--r2); margin-bottom: var(--s3); padding: var(--s3) 0; }
  .ind tbody th { padding: var(--s2) var(--s4); border: 0; font-size: 17px; }
  .ind td { padding: var(--s2) var(--s4); border: 0; }
  .ind td::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); }
}

/* effect funnel: width narrows stage by stage, the shape is the message */
.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.funnel li { display: grid; grid-template-columns: 40px minmax(0, 220px) minmax(0, 1fr); align-items: center; gap: var(--s4);
  width: calc(100% - var(--i) * 6%); padding: var(--s4) var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); }
.funnel li:last-child { border-color: var(--accent); }
.funnel .n { font: 700 20px/1 var(--display); color: var(--accent); }
.funnel h3 { font-size: 17px; }
.funnel p { color: var(--muted); font-size: 15px; }
@media (max-width: 767px) { .funnel li { width: 100%; grid-template-columns: 32px 1fr; } .funnel p { grid-column: 2; } }
.caveat { margin-top: var(--s4); max-width: 80ch; }

.roi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); margin-top: var(--s8); padding: var(--s6); border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface); }
@media (max-width: 767px) { .roi { grid-template-columns: 1fr; padding: var(--s5); } }
.roi h3 { font-size: 22px; }
.roi-copy p { margin-top: var(--s3); color: var(--muted); }
.roi-calc { display: grid; gap: var(--s2); align-content: start; }
.roi-calc label { font-weight: 600; font-size: 15px; }
.unit { color: var(--muted); font-weight: 400; }
input[type="number"], input:not([type]), input[type="email"], select, textarea {
  width: 100%; min-height: 48px; padding: var(--s3) var(--s4); background: var(--bg); border: 1px solid var(--muted); border-radius: var(--r1); font-size: 16px; }
input[aria-invalid="true"] { border-color: var(--warn); }
.field-error { min-height: 1.4em; font-size: 13px; color: var(--warn); }
.roi-out { display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; }
.roi-out span { color: var(--muted); font-size: 15px; }
.roi-out output { font: 700 48px/1 var(--display); color: var(--accent); font-variant-numeric: tabular-nums; }
.roi-out small { color: var(--muted); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); margin-bottom: var(--s5); }
@media (max-width: 767px) { .plans { grid-template-columns: 1fr; } }
.plan { padding: var(--s6); border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface); display: grid; gap: var(--s2); align-content: start; }
.plan-main { border-color: var(--accent); }
.plan h3 { font-size: 20px; }
.plan-lead { color: var(--muted); }
.price { display: flex; align-items: baseline; gap: var(--s2); margin-top: var(--s3); flex-wrap: wrap; }
.price strong { font: 700 clamp(32px, 4vw, 44px)/1 var(--display); font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); }
.plan ul { margin: var(--s4) 0 0; padding: var(--s4) 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: var(--s2); font-size: 15px; }
.plan li { padding-left: var(--s5); position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 2px; background: var(--accent); }
.pricing .fine + .fine { margin-top: var(--s2); }

/* faq */
.faq-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s7); }
@media (max-width: 1023px) { .faq-in { grid-template-columns: 1fr; gap: var(--s5); } }
.faq h2 { font-size: clamp(26px, 3.6vw, 40px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: var(--s4); align-items: center; min-height: 56px; padding: var(--s3) 0; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--accent); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: var(--s4); color: var(--muted); max-width: 70ch; }
.trust { margin-top: var(--s5); }

/* closing + footer */
.closing { text-align: left; }
.closing-in { display: grid; gap: var(--s4); justify-items: start; }
.closing h2 { font-size: clamp(28px, 4.4vw, 48px); max-width: 22ch; letter-spacing: -.02em; }
.closing p { color: var(--muted); font-size: 17px; }
.foot { padding: var(--s8) 0 var(--s7); border-top: 1px solid var(--line); background: var(--surface); }
.foot-top { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5); color: var(--muted); }
.contacts { list-style: none; margin: 0 0 var(--s5); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s5); }
.contacts a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.contacts a:hover { text-decoration-color: var(--accent); }
.foot .fine + .fine { margin-top: var(--s2); }

/* dialog */
dialog { width: min(100% - 2 * var(--s4), 520px); max-height: calc(100dvh - 2 * var(--s4)); padding: 0; border: 1px solid var(--line-2); border-radius: var(--r2); background: var(--surface); color: var(--text); }
dialog::backdrop { background: rgba(0,0,0,.7); }
dialog form { display: grid; gap: var(--s2); padding: var(--s5); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; }
.dlg-head h2 { font-size: 22px; }
dialog label { margin-top: var(--s2); font-weight: 600; font-size: 14px; }
dialog .btn { margin-top: var(--s3); }
.dlg-config { padding: var(--s3); border: 1px dashed var(--line-2); border-radius: var(--r1); font-size: 14px; }
.dlg-config[hidden], .dlg-done[hidden] { display: none; }
.dlg-done { padding: var(--s3); border-left: 3px solid var(--accent); background: var(--surface-2); font-size: 14px; }

@media (max-width: 767px) {
  section { padding: var(--s8) 0; }
  .hero { padding-top: var(--s8); }
  .studio { grid-template-columns: 1fr; grid-template-areas: "pick" "run" "scope"; }
  .studio-pick { border-right: 0; border-bottom: 1px solid var(--line); }
  .studio-pick, .studio-run, .studio-scope { padding: var(--s5); }
  .wrap { width: min(100% - 2 * var(--s4), 1280px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
