/* The Synth — product styles. Sibling of The Crit / The Field; cyan accent. */

:root {
    --bg: #000;
    --panel: #0c0c0e;
    --panel-2: #131318;
    --line: #232330;
    --ink: #e8e6e0;
    --dim: #8a8894;
    --accent: #4fd2ff;       /* synth cyan */
    --accent-2: #b89cff;     /* violet */
    --good: #5affc0;
    --warn: #ffb24f;
    --mono: 'Courier New', ui-monospace, SFMono-Regular, Menlo, monospace;
    --sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg); color: var(--ink); font-family: var(--sans);
    font-weight: 300; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
header { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid var(--line); }
.brand-left { display: flex; align-items: center; gap: 18px; }
.pm-logo img { display: block; height: 40px; width: auto; }
.brand { font-family: var(--mono); font-size: 18px; letter-spacing: 0.12em; border-left: 1px solid var(--line); padding-left: 18px; }
.brand .mark { color: var(--accent); }
nav a { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-left: 22px; letter-spacing: 0.08em; }
nav a:hover { color: var(--ink); text-decoration: none; }

/* ── Hero ── */
.hero { padding: 78px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(34px, 5.5vw, 58px); font-weight: 400; line-height: 1.15; max-width: 820px; margin: 0 auto 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub { color: var(--dim); font-size: 18px; max-width: 680px; margin: 0 auto 14px; }
.hero .sub em { font-style: normal; color: var(--ink); }
.hero .privacy { font-family: var(--mono); font-size: 12px; color: var(--accent-2); letter-spacing: 0.06em; }

/* ── Studio ── */
.studio { padding: 24px 0 60px; }
.studio-grid { display: grid; grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.3fr); gap: 28px; align-items: start; }
@media (max-width: 880px) { .studio-grid { grid-template-columns: 1fr; } }

.controls { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.controls h3 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--dim); font-weight: 400; margin-bottom: 16px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 18px; }
.presets span { font-family: var(--mono); font-size: 10.5px; color: #5c5a66; letter-spacing: 0.04em; }
.presets button {
    font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.03em; cursor: pointer;
    background: transparent; color: var(--dim); border: 1px solid var(--line); border-radius: 5px; padding: 5px 9px;
}
.presets button:hover { border-color: var(--accent); color: var(--accent); }

.ctrl { margin-bottom: 16px; }
.ctrl label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.ctrl .hint { font-family: var(--mono); font-size: 10px; color: #5c5a66; letter-spacing: 0.02em; }
.ctrl input[type=range] { -webkit-appearance: none; appearance: none; width: calc(100% - 44px); height: 3px; background: var(--line); border-radius: 2px; vertical-align: middle; }
.ctrl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 2px solid var(--bg); }
.ctrl input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 2px solid var(--bg); }
.ctrl output { display: inline-block; width: 36px; text-align: right; font-family: var(--mono); font-size: 13px; color: var(--accent); vertical-align: middle; }

.actions { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.actions button {
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; cursor: pointer;
    background: var(--accent); color: var(--bg); border: none; border-radius: 6px; padding: 11px 18px;
}
.actions button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.actions button.ghost:hover { border-color: var(--accent); color: var(--accent); }
.actions button:disabled { opacity: 0.45; cursor: not-allowed; }

#progress { height: 3px; background: var(--line); border-radius: 2px; margin-top: 16px; overflow: hidden; opacity: 0; transition: opacity 0.2s; }
#progress.on { opacity: 1; }
#progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width 0.1s linear; }
#synth-status { font-family: var(--mono); font-size: 11.5px; color: var(--dim); margin-top: 10px; min-height: 1em; }
#synth-status.error { color: #ff8a7a; }

/* ── Output ── */
#stage { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; aspect-ratio: 1 / 1; }
#stage canvas { display: block; width: 100%; height: 100%; }
#stage-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 0.04em; }

.readout { margin-top: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.readout h3 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--dim); font-weight: 400; margin-bottom: 12px; display: flex; justify-content: space-between; }
.readout h3 .hint { color: #5c5a66; letter-spacing: 0; text-transform: none; }
.match { display: grid; grid-template-columns: 130px 60px 60px 1fr; gap: 6px 10px; align-items: center; font-family: var(--mono); font-size: 12px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.match:last-child { border-bottom: none; }
.match .m-name { color: var(--dim); }
.match .m-target { color: var(--accent-2); text-align: right; }
.match .m-achieved { color: var(--ink); text-align: right; }
.match .m-bar { height: 6px; background: var(--line); border-radius: 3px; position: relative; }
.match .m-bar i { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.match.hit .m-bar i { background: var(--good); }
.match.near .m-bar i { background: var(--accent); }
.match.miss .m-bar i { background: var(--warn); }
.match-summary { font-family: var(--mono); font-size: 11.5px; color: var(--dim); margin-top: 12px; }

/* ── Marketing ── */
section.band { padding: 64px 0; border-top: 1px solid var(--line); }
section.band h2 { font-size: 30px; font-weight: 400; margin-bottom: 14px; }
section.band .lede { color: var(--dim); font-size: 17px; max-width: 720px; margin-bottom: 34px; }
section.band .lede em { font-style: normal; color: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.step .n { font-family: var(--mono); color: var(--accent); font-size: 13px; margin-bottom: 10px; }
.step h3 { font-size: 17px; font-weight: 400; margin-bottom: 8px; }
.step p { color: var(--dim); font-size: 14.5px; }
.step em { font-style: normal; color: var(--ink); }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } }
.door { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
.door .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 12px; }
.door:last-child .tag { color: var(--accent-2); }
.door h3 { font-size: 21px; font-weight: 400; margin-bottom: 10px; }
.door p { color: var(--dim); font-size: 15px; }

/* ── Footer ── */
footer { border-top: 1px solid var(--line); padding: 34px 0 50px; color: var(--dim); font-size: 13.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
footer .mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; }
