/* Tytonic console: the site as a piece of studio hardware. Loaded after style.css.
   Re-tokens the palette, turns every top-level block into a rounded module, and adds the faceplate,
   scope screens, signal chains and status strip. New classes are prefixed c- so nothing in style.css
   (.num, .ruler, .meter, .step…) collides. Amber stays the only accent. */

:root {
  --bg: #0f0f11;            /* chassis */
  --bg-2: #0a0a0b;          /* insets: inputs, screens */
  --line: #2a2a30;
  --line-2: #3a3a41;
  --ink: #e6e2da;
  --ink-2: #8e8a82;
  --ink-3: #56534e;
  --acc: #f2a33a;
  --acc-ink: #120c04;
  --bad: #e5484d;
  --c-face: #1c1c1f;        /* module face */
  --c-face-2: #26262a;      /* raised controls */
  --c-edge: #2e2e34;
  --w: 960px;
}

body { background: var(--bg); }
main { padding-top: 14px; }

/* ── modules: every top-level block is one ─────────────────────────────────── */
.c-page { display: grid; gap: 10px; }
.c-page > :not(.busy):not(script):not(style),
.c-mod {
  position: relative; margin: 0; min-width: 0;
  background: linear-gradient(180deg, #212125, var(--c-face) 40%);
  border: 1px solid var(--c-edge); border-radius: 14px;
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 8px 24px -16px #000;
  padding: 22px 24px;
}
.c-page > :not(.busy):not(script):not(style)::before,
.c-page > :not(.busy):not(script):not(style)::after {
  content: ""; position: absolute; top: 8px; width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4a4a50, #1a1a1d); box-shadow: 0 0 0 1px #0b0b0c; pointer-events: none;
}
.c-page > :not(.busy):not(script):not(style)::before { left: 8px; }
.c-page > :not(.busy):not(script):not(style)::after { right: 8px; }
.c-page > .c-bare { background: none; border: 0; box-shadow: none; padding: 0; }
.c-page > .c-bare::before, .c-page > .c-bare::after { display: none; }
.c-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.c-row > * { margin: 0; min-width: 0; }

/* old section spacing is handled by the module gap now */
.c-page .sect, .c-page .tool, .c-page .cta, .c-page .lead, .c-page .score { margin-top: 0; }
.c-page .lead { padding-top: 22px; padding-bottom: 22px; border-bottom: 0; }
.c-page .cta { border-top: 0; border-bottom: 0; }
.c-page .sect-head { border-bottom-color: var(--line); }
.c-page .art { max-width: none; }

/* ── faceplate (header) ──────────────────────────────────────────────────────── */
.c-face { max-width: var(--w); margin: 14px auto 0; padding: 0 var(--gutter); }
.c-face-in {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 12px 20px; padding: 14px 22px 12px;
  background: linear-gradient(180deg, #212125, var(--c-face) 40%); border: 1px solid var(--c-edge);
  border-radius: 14px; box-shadow: inset 0 1px rgba(255,255,255,.05), 0 8px 24px -16px #000;
}
.c-face-in::before, .c-face-in::after { content: ""; position: absolute; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #4a4a50, #1a1a1d); box-shadow: 0 0 0 1px #0b0b0c; }
.c-face-in::before { left: 8px; } .c-face-in::after { right: 8px; }
.c-left { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.c-face .brand svg { color: var(--acc); }
.c-reads { display: flex; gap: 8px; }
.c-read { display: grid; justify-items: center; gap: 4px; }
.c-num {
  background: var(--bg-2); border-radius: 8px; box-shadow: inset 0 2px 6px #000, 0 1px rgba(255,255,255,.05);
  padding: 4px 11px; font: 700 17px/1.1 var(--mono); color: var(--acc); text-shadow: 0 0 10px rgba(242,163,58,.45);
  font-variant-numeric: tabular-nums; min-width: 54px; text-align: center;
}
.c-lbl, .c-read .c-lbl { font: 500 9.5px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.c-tr { display: flex; gap: 8px; justify-self: center; }
.c-tr button {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0;
  border: 1px solid #0b0b0c; background: radial-gradient(circle at 50% 30%, #3a3a40, var(--c-face-2) 70%);
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 2px 4px #000;
}
.c-tr button:hover { background: radial-gradient(circle at 50% 30%, #45454c, #303035 70%); }
.c-tr button:active { box-shadow: inset 0 2px 4px #000; }
.c-tr button[disabled] { opacity: .35; cursor: default; }
.c-tr svg { width: 11px; height: 11px; fill: var(--ink); }
.c-tr .on { background: radial-gradient(circle at 50% 30%, #ffc672, var(--acc) 70%); box-shadow: 0 0 14px rgba(242,163,58,.5); }
.c-tr .on svg { fill: var(--acc-ink); }
.c-tr .c-rec svg { fill: var(--bad); }
.c-tr .c-rec.on { background: radial-gradient(circle at 50% 30%, #ff7a7e, var(--bad) 70%); box-shadow: 0 0 14px rgba(229,72,77,.55); }
.c-tr .c-rec.on svg { fill: #fff; }
.c-pill {
  justify-self: end; font: 600 13px var(--sans); text-decoration: none; padding: 9px 18px; border-radius: 999px;
  background: var(--acc); color: var(--acc-ink); box-shadow: 0 0 18px -6px rgba(242,163,58,.7); white-space: nowrap;
}
.c-pill:hover { background: #ffb44d; color: var(--acc-ink); }
.c-face .nav {
  grid-column: 1 / -1; justify-content: center; flex-wrap: wrap; gap: 6px; border-left: 0; padding: 12px 0 0;
  border-top: 1px solid var(--line);
}
.c-face .nav a {
  font: 500 13px var(--sans); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--c-edge);
  background: var(--c-face-2); color: var(--ink); box-shadow: none;
}
.c-face .nav a:hover { background: #303035; color: var(--ink); }
.c-face .nav a[aria-current="page"] { background: var(--bg-2); box-shadow: inset 0 1px 4px #000; color: var(--acc); }

/* ── scope screen + head module ────────────────────────────────────────────── */
.c-head { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 16px 20px; align-items: center; }
.c-head .c-txt { display: grid; gap: 8px; align-content: center; }
.c-head h1, .c-head h2 { margin: 0; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.c-head p { margin: 0; color: var(--ink-2); font-size: 15px; }
.c-screen { position: relative; background: var(--bg-2); min-height: 184px; border-radius: 10px; overflow: hidden; box-shadow: inset 0 2px 10px #000, 0 0 0 1px #000, 0 1px rgba(255,255,255,.05); }
.c-screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.c-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.2px) 0 0 / 14px 14px, radial-gradient(120% 90% at 50% 50%, transparent 60%, rgba(0,0,0,.55)); }

/* ── signal chain ────────────────────────────────────────────────────────────── */
.c-chain-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.c-track { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; list-style: none; margin: 0; padding: 0; }
.c-node {
  position: relative; background: var(--bg-2); border: 1px solid var(--c-edge); border-radius: 10px; color: var(--ink);
  text-align: left; font: inherit; padding: 14px; display: grid; align-content: start; gap: 5px; min-width: 0;
  box-shadow: inset 0 1px 6px rgba(0,0,0,.6); transition: border-color .2s, box-shadow .2s;
}
button.c-node { cursor: pointer; }
button.c-node:hover { border-color: #45454c; }
.c-led { display: flex; align-items: center; gap: 8px; font: 500 10px var(--mono); letter-spacing: .14em; color: var(--ink-3); }
.c-led i { width: 8px; height: 8px; border-radius: 50%; background: #2a2620; box-shadow: inset 0 1px 1px #000; }
.c-node h3 { margin: 0; font: 600 15px/1.25 var(--sans); letter-spacing: -0.005em; }
.c-node p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.c-node p a { color: var(--ink); }
.c-node .c-v { font: 500 12px var(--mono); color: var(--ink); margin-top: 4px; }
.c-node:not(:last-child)::after { content: ""; position: absolute; top: 22px; right: -27px; width: 26px; height: 2px; background: var(--ink-3); }
.c-node:not(:last-child)::before { content: ""; position: absolute; top: 18px; right: -9px; border: 5px solid transparent; border-left: 6px solid var(--ink-3); z-index: 1; }
.c-node.sel { border-color: var(--acc); box-shadow: inset 0 1px 6px rgba(0,0,0,.6), 0 0 0 1px var(--acc), 0 0 22px -6px rgba(242,163,58,.6); }
.c-node.sel .c-led { color: var(--acc); }
.c-node.sel .c-led i { background: var(--acc); box-shadow: 0 0 8px var(--acc); }
.c-node.sel::after { background: var(--acc); }
.c-node.sel::before { border-left-color: var(--acc); }

/* ── booking (mixing) ───────────────────────────────────────────────────────── */
#book { scroll-margin-top: 14px; transition: border-color .15s, box-shadow .15s; }
#book.armed { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad), 0 0 28px -8px rgba(229,72,77,.6); }
#book.armed h2::before { content: "● "; color: var(--bad); }
.c-book { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 24px; margin-top: 14px; }
.c-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.c-form .c-w { grid-column: 1 / -1; }
.c-form label { display: grid; gap: 5px; min-width: 0; }
.c-form input, .c-form select, .c-form textarea {
  width: 100%; background: var(--bg-2); color: var(--ink); border: 1px solid var(--c-edge); padding: 9px 10px;
  font: 14px var(--sans); border-radius: 8px; box-shadow: inset 0 1px 4px rgba(0,0,0,.6);
}
.c-form textarea { min-height: 64px; resize: vertical; }
.c-form input:focus, .c-form select:focus, .c-form textarea:focus { border-color: var(--acc); outline: none; }
.c-mail { margin: 0; background: var(--bg-2); border-radius: 8px; box-shadow: inset 0 2px 8px #000; padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; font: 12.5px/1.6 var(--mono); color: var(--ink); min-height: 150px; }
.c-mail.empty { color: var(--ink-3); }
.c-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.c-msg { font: 12px var(--mono); color: var(--ink-2); margin: 6px 0 0; min-height: 1em; }

/* ── article: answer first ───────────────────────────────────────────────────── */
.c-page .art .lede { border-left: 3px solid var(--acc); background: var(--bg-2); border-radius: 10px; padding: 12px 16px; box-shadow: inset 0 1px 6px rgba(0,0,0,.6); }
.c-page .art .lede::before { content: "Short answer"; display: block; font: 500 9.5px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--acc); margin-bottom: 6px; }
.c-page .art .lede p { margin: 0; }
.c-page .legal .lede::before { content: "Short version"; }

/* ── learn ────────────────────────────────────────────────────────────────────── */
.c-fmap { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
.c-band { background: var(--bg-2); border: 1px solid var(--c-edge); border-radius: 8px; padding: 10px 8px 9px; color: var(--ink); font: inherit; text-align: left; cursor: pointer; display: grid; gap: 3px; min-width: 0; box-shadow: inset 0 1px 6px rgba(0,0,0,.6); }
.c-band b { font: 600 13px var(--sans); }
.c-band span { font: 10.5px var(--mono); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-band i { height: 4px; border-radius: 2px; background: var(--ink-3); margin-top: 4px; }
.c-band.sel { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc); }
.c-band.sel i { background: var(--acc); box-shadow: 0 0 8px var(--acc); }
.c-note { background: var(--bg-2); border-radius: 999px; box-shadow: inset 0 2px 6px #000, 0 0 0 1px var(--c-edge); padding: 9px 16px; font: 13px var(--mono); color: var(--acc); margin-top: 10px; }
.c-rule { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--c-edge); margin-top: 10px; }
.c-rule b { font: 700 11px var(--mono); letter-spacing: .14em; color: var(--acc); white-space: nowrap; text-transform: uppercase; }
.c-calc { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-top: 12px; }
.c-calc input { width: 110px; background: var(--bg-2); color: var(--ink); border: 1px solid var(--c-edge); padding: 9px 10px; font: 14px var(--sans); border-radius: 8px; }
.c-credit { margin: 12px 0 0; font: 11px var(--mono); color: var(--ink-3); }

/* ── status strip (footer) ─────────────────────────────────────────────────── */
.foot { border-top: 0; margin-top: 10px; }
.foot-in { max-width: var(--w); padding: 0 var(--gutter) 36px; display: grid; gap: 8px; grid-template-columns: 1fr; }
.c-status {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; padding: 8px 14px;
  border-radius: 999px; background: var(--bg-2); box-shadow: inset 0 2px 6px #000, 0 0 0 1px var(--c-edge); font: 12px var(--mono);
}
.c-status #c-sb { color: var(--acc); text-shadow: 0 0 8px rgba(242,163,58,.35); }
.foot-in > p { padding: 0 14px; }

/* ── phones ───────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .c-face-in { grid-template-columns: 1fr; justify-items: center; }
  .c-left { justify-content: center; }
  .c-pill { justify-self: center; }
  .c-fmap { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .c-page > :not(.busy):not(script):not(style), .c-mod { padding: 20px 16px; }
  .c-head, .c-row, .c-book, .c-form { grid-template-columns: 1fr; }
  .c-track { grid-template-columns: 1fr; gap: 18px; }
  .c-node:not(:last-child)::after { top: auto; bottom: -19px; right: auto; left: 22px; width: 2px; height: 18px; }
  .c-node:not(:last-child)::before { top: auto; bottom: -11px; right: auto; left: 18px; border: 5px solid transparent; border-top: 6px solid var(--ink-3); }
  .c-node.sel::before { border-left-color: transparent; border-top-color: var(--acc); }
  .c-fmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-status { border-radius: 12px; }
  .c-reads .c-num { min-width: 46px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .c-node, #book { transition: none; } }

/* home: form first, facts beside it */
.c-home { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 40px; padding-top: 20px; }
.c-page .tool .sect-head h1 { font-size: clamp(24px, 3vw, 30px); line-height: 1.12; letter-spacing: -0.02em; }
.c-page .lead h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -0.025em; max-width: 12em; }
@media (max-width: 760px) { .c-home { grid-template-columns: 1fr; gap: 24px; } }

/* mixing */
.c-page .c-terms { margin: 0; border-top: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c-page .c-terms div { border-bottom-color: var(--line); }
.c-intro { color: var(--ink-2); margin: 14px 0 0; max-width: 60em; }
.c-intro a { color: var(--ink); }
.c-chain-h h2.c-lbl { margin: 0; font-weight: 500; }
.c-head .lead-act { margin-top: 8px; }

/* privacy / terms: the text already says "Short version" where it matters */
.c-page .legal .lede::before { display: none; }
.c-page .legal .lede { border-left-color: var(--line-2); }

.top.c-face { border-bottom: 0; }

/* booking box, tiers, orders */
.c-side { display: grid; gap: 10px; align-content: start; color: var(--ink-2); }
.c-side p { margin: 0; }
.c-order { margin-top: 14px; }
.c-files input[type=file] { padding: 10px; background: var(--bg-2); border: 1px dashed #4a4a52; border-radius: 8px; color: var(--ink-2); }
.c-files .fine, .c-acts .fine { margin: 0; }
.c-tiers { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; margin-top: 14px; }
.c-tier { background: var(--bg-2); border: 1px solid var(--c-edge); border-radius: 12px; padding: 16px; display: grid; gap: 8px; align-content: start; box-shadow: inset 0 1px 6px rgba(0,0,0,.6); min-width: 0; }
.c-tier h3 { margin: 0; font: 500 26px/1.1 var(--mono); color: var(--acc); }
.c-tier h3 small { font-size: 12px; color: var(--ink-2); }
.c-tier p { margin: 0; color: var(--ink-2); }
.c-tier .c-led i { background: var(--acc); box-shadow: 0 0 8px var(--acc); }
.c-tier-ai .c-led i { background: #6d6a63; box-shadow: none; }
.c-tier-ai h3 { color: var(--ink-2); }
.c-soon { font: 12.5px/1.5 var(--mono); color: var(--ink) !important; border-left: 2px solid var(--line-2); padding-left: 10px; }
.c-filelist { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.c-filelist a { font: 14px var(--mono); }
.c-ownerlink p { margin: 0; }
.c-orderhead h1 { font-size: clamp(24px, 3vw, 32px); line-height: 1.1; margin: 6px 0 14px; }
.c-orderhead .k a { color: var(--ink-2); }
.c-status-paid, .c-status-in_progress, .c-status-delivered { color: var(--acc) !important; }
.c-page .readout b.c-status-awaiting_payment { font-size: 20px; }
@media (max-width: 760px) { .c-tiers { grid-template-columns: 1fr; } }

/* ── funnel layout (2026-10-09): animation under the transport → offer → close ───────────────── */
.c-hero { display: grid; gap: 14px; }
.c-hero .c-head { padding: 0; }
.c-hero .c-track { margin: 0; }
.c-page .tool .sect-head h2 { font-size: clamp(20px, 2.4vw, 24px); line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
.c-stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.c-stack li { position: relative; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.c-stack li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 6px var(--acc); }
.c-stack li b { color: var(--ink); font-weight: 500; }
.c-tier-ai .c-stack li::before { background: #6d6a63; box-shadow: none; }
.c-guard { margin: 0; padding: 9px 12px; border: 1px solid var(--line-2); border-left: 3px solid var(--acc); border-radius: 8px; color: var(--ink-2); font-size: 13.5px; background: var(--bg-2); }
.c-offer-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px 24px; margin: 14px 0; align-items: start; }
.c-offer .c-terms { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, 1fr); }
.c-offer .c-terms b { font-size: clamp(22px, 2.4vw, 30px); white-space: nowrap; }
.c-hero .lead-act { flex-wrap: wrap; }
.c-close .c-tier .lead-act { margin-top: 4px; }
@media (max-width: 760px) { .c-offer-in { grid-template-columns: 1fr; } }
