/* RudeAI site styles. The floating header and neutral background trial lives in try.css. */
:root {
  --ink: #17172b;
  --ink-2: #4b4b62;
  --dim: #80809a;
  --page: #fbf8f5;
  --surface: #ffffff;
  --surface-2: #f2f1f7;
  --surface-3: #e9e7f1;
  --line: #e1dfe9;
  --control: #76768c;
  --track: #2a2a40;

  --heat: #ff7a3d;
  --heat-ink: #c4320a;
  --good: #0a6a5d;
  --chip-up: #ffe6da;
  --chip-down: #d8f0ea;
  --cool-bar: #12907f;

  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --tech: "Space Grotesk", "Avenir Next", system-ui, sans-serif;

  --gutter: clamp(16px, 3.4vw, 48px);
  --sec: clamp(72px, 9vw, 136px);
  --max: 1320px;
  --nav-h: 68px;

  --fast: 160ms; --med: 320ms; --slow: 640ms;
  --out: cubic-bezier(.16, 1, .3, 1);
  --back: cubic-bezier(.34, 1.4, .64, 1);

  --focus: #17172b;
  --shadow-win: 0 2px 4px rgba(23, 23, 43, .06), 0 28px 70px -18px rgba(23, 23, 43, .34);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  background: #e6ebff; color: var(--ink);
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 400 1rem/1.55 var(--body); overflow-x: clip; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, textarea { font: inherit; color: inherit; }
button, a, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: fixed; top: 10px; left: 10px; z-index: 100; padding: 12px 16px;
  background: var(--ink); color: #fff; font-weight: 600; border-radius: 10px; transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- Sky ---------- */
#field {
  position: fixed; inset: 0; width: 100%; height: 100lvh; z-index: -1; display: block;
  background:
    radial-gradient(80% 55% at 50% 108%, #ff8a55 0%, rgba(255, 138, 85, .55) 42%, transparent 74%),
    linear-gradient(180deg, #dfe6ff 0%, #f4f1f0 58%, #ffd9c2 100%);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--nav-h);
  padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: background-color var(--med) ease, box-shadow var(--med) ease;
}
.nav.solid { background: var(--page); box-shadow: 0 1px 0 var(--line); }
.brand { font: 800 1.5rem/1 var(--display); letter-spacing: -.03em; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.nav nav { display: flex; align-items: center; gap: clamp(4px, 1.2vw, 14px); }
.navlink { font-weight: 500; text-decoration: none; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 10px; transition: background-color var(--fast) ease; }
@media (hover: hover) { .navlink:hover { background: rgba(23, 23, 43, .08); } }

/* ---------- Buttons ---------- */
.btn {
  appearance: none; border: 2px solid transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 13px;
  background: var(--ink); color: #fff;
  font: 600 1rem/1 var(--body); text-decoration: none; white-space: nowrap;
  transition: transform var(--fast) var(--out), background-color var(--fast) ease, border-color var(--fast) ease;
}
.btn.small { min-height: 44px; padding: 0 16px; }
@media (hover: hover) { .btn:hover { background: #33334f; } }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--control); }
@media (hover: hover) { .btn.ghost:hover { background: var(--surface-2); } }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Type roles ---------- */
.eyebrow { font: 600 .8125rem/1.3 var(--mono); letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2); }
.h2 { font: 700 clamp(2.5rem, 5.4vw, 5rem)/1.02 var(--display); letter-spacing: -.02em; font-variant-ligatures: none; max-width: 17ch; text-wrap: balance; }
.lede { font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.45; max-width: 58ch; color: var(--ink-2); }
.sec-head { display: grid; gap: 18px; }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--nav-h) + clamp(32px, 4.4vw, 72px)) var(--gutter) clamp(44px, 5.3vw, 84px); text-align: center; }
.mega {
  font: 700 clamp(3rem, 6.9vw, 7.25rem)/.98 var(--display); letter-spacing: -.022em; font-variant-ligatures: none;
  text-wrap: balance;
}
.fail { display: inline-block; transform-origin: 8% 12%; transform: rotate(5deg) translateY(.03em); }
.support { font-size: clamp(1.125rem, 1.6vw, 1.4375rem); line-height: 1.3; margin-top: clamp(16px, 1.7vw, 26px); font-weight: 500; text-wrap: balance; }
@media (prefers-reduced-motion: no-preference) {
  .mega, .support { animation: fadeup var(--slow) var(--out) both; }
  .support { animation-delay: 120ms; }
  .window { animation: risein 900ms 160ms var(--out) both; }
  .fail { animation: slip 1000ms 800ms var(--out) both; }
}
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes risein { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
@keyframes slip {
  0% { transform: none; }
  20% { transform: rotate(-1deg); }
  55% { transform: rotate(8deg) translateY(.05em); }
  75% { transform: rotate(4deg) translateY(.02em); }
  100% { transform: rotate(5deg) translateY(.03em); }
}

/* ---------- Product window ---------- */
.call { padding: 0 var(--gutter) clamp(32px, 4vw, 56px); }
.window {
  max-width: var(--max); margin: 0 auto; background: var(--surface); color: var(--ink);
  border-radius: 22px; box-shadow: var(--shadow-win); overflow: hidden;
}
.titlebar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 20px;
  padding: 11px 18px; border-bottom: 1px solid var(--line); background: var(--surface);
}
.onair { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: .9375rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--heat-ink); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .dot { animation: pulse 1.6s ease-in-out infinite; }
}
@keyframes pulse { 50% { transform: scale(.65); } }
.mode { font: 400 .8125rem/1.4 var(--mono); color: var(--ink-2); }

.wbody { display: grid; grid-template-columns: 17rem minmax(0, 1fr) 11.5rem; align-items: stretch; }

/* Queue */
.queue { background: var(--surface-2); padding: 14px 12px; border-right: 1px solid var(--line); min-width: 0; }
.qlabel { font: 600 .75rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .03em; color: var(--ink-2); padding: 0 6px 8px; }
.tickets { display: grid; gap: 6px; }
.ticket {
  appearance: none; border: 0; cursor: pointer; text-align: left; width: 100%;
  display: flex; flex-direction: column; gap: 3px; padding: 11px 12px; min-height: 44px;
  background: transparent; color: var(--ink); border-radius: 12px;
  box-shadow: inset 0 0 0 1px transparent;
  transition: background-color var(--fast) ease, box-shadow var(--fast) ease;
}
@media (hover: hover) { .ticket:not([aria-pressed="true"]):hover { background: var(--surface-3); } }
.ticket[aria-pressed="true"] { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
.ticket:focus-visible { outline-offset: 2px; }
.t1 { display: flex; flex-direction: column-reverse; gap: 1px; }
.t1 .c { font: 400 .75rem/1.35 var(--mono); color: var(--ink-2); }
.t1 .w { font-weight: 600; font-size: .9375rem; line-height: 1.25; }
.t2 { font-size: .9375rem; line-height: 1.25; font-weight: 500; }
.t3 { font-size: .8125rem; line-height: 1.35; color: var(--ink-2); }
.ticket .stake { font: 600 .75rem/1.35 var(--mono); color: var(--heat-ink); padding-top: 2px; }

/* Call */
.callpane { display: flex; flex-direction: column; min-width: 0; }
.chead { padding: 12px clamp(16px, 2vw, 24px); border-bottom: 1px solid var(--line); display: grid; gap: 1px; }
.who { font: 700 clamp(1.25rem, 1.9vw, 1.625rem)/1.12 var(--display); letter-spacing: -.02em; }
.meta { font: 400 .75rem/1.45 var(--mono); color: var(--ink-2); overflow-wrap: anywhere; }
.onrisk { font-size: .875rem; line-height: 1.4; }
.onrisk span { color: var(--ink-2); }
.onrisk b { font-weight: 600; }

.log {
  height: clamp(200px, 24vh, 420px); overflow-y: auto;
  padding: 16px clamp(16px, 2vw, 24px);
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-color: var(--control) transparent;
}
.log:focus-visible { outline-offset: -5px; }
.msg { max-width: min(62ch, 84%); padding: 11px 15px; border-radius: 16px; font-size: 1.0625rem; line-height: 1.4; overflow-wrap: anywhere; }
.msg.cust { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 5px; font-weight: 500; }
.msg.agent { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 5px; }
.msg .by { display: block; font: 600 .75rem/1.5 var(--mono); color: var(--ink-2); }
.msg.agent .by { color: #d6d6e4; }
.fx { align-self: flex-end; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 92%; }
.chip { font: 600 .8125rem/1.3 var(--mono); padding: 5px 9px; border-radius: 8px; }
.chip.up { background: var(--chip-up); color: var(--heat-ink); }
.chip.down { background: var(--chip-down); color: var(--good); }
.coach { align-self: flex-end; max-width: 84%; font-size: .9375rem; color: var(--ink-2); font-style: italic; }
@media (prefers-reduced-motion: no-preference) {
  .msg, .fx, .coach { animation: msgin var(--med) var(--out) both; }
  .chip { animation: chipin var(--med) var(--back) both; }
  .chip:nth-child(2) { animation-delay: 40ms; }
  .chip:nth-child(3) { animation-delay: 80ms; }
  .chip:nth-child(4) { animation-delay: 120ms; }
  .chip:nth-child(5) { animation-delay: 160ms; }
}
@keyframes msgin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes chipin { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

.compose { padding: 10px clamp(16px, 2vw, 24px) 14px; border-top: 1px solid var(--line); }
.compose label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: 4px; }
#reply {
  display: block; width: 100%; min-height: 62px; resize: vertical;
  padding: 10px 14px; font-size: 1.0625rem; line-height: 1.35;
  background: var(--surface); color: var(--ink);
  border: 2px solid var(--control); border-radius: 13px;
}
#reply::placeholder { color: var(--ink-2); opacity: 1; }
#reply:focus-visible { outline-offset: 1px; border-color: var(--ink); }
.compose-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-top: 8px; }
.kbd-hint { font-size: .8125rem; color: var(--ink-2); }
.compose-btns { display: flex; gap: 8px; }

/* Temper rail. app.js sets #temp to var(--ink), var(--heat-ink) or var(--good). */
.live { padding: 14px 16px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.live-label { font: 600 .75rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .03em; color: var(--ink-2); }
.temp { font: 700 3.25rem/1 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; transition: color var(--med) ease; }
.state { font-weight: 600; font-size: .9375rem; line-height: 1.25; min-height: 2.5em; }
.tube-wrap { position: relative; flex: 1; min-height: 150px; display: flex; gap: 10px; }
.tube { position: relative; width: 16px; flex: none; border-radius: 8px; background: var(--track); overflow: hidden; container-type: size; }
.fill {
  position: absolute; left: 0; right: 0; bottom: 0; height: 64%;
  background: linear-gradient(to top, #1fb3a0 0%, #1fb3a0 22%, #f2bd5c 45%, #ff7a3d 68%, #f0401a 100%) left bottom / 100cqw 100cqh no-repeat;
  transition: height var(--slow) var(--out), width var(--slow) var(--out);
}
.ticks { position: relative; flex: 1; }
.ticks li { position: absolute; left: 0; bottom: var(--p); transform: translateY(50%); font-size: .75rem; line-height: 1.15; color: var(--ink-2); }
.ticks b { display: block; color: var(--ink); font: 600 .75rem/1.15 var(--mono); }
.clock { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.timer { font: 600 1rem/1 var(--mono); font-variant-numeric: tabular-nums; }

/* Scorecard */
.wbody:has(#score:not([hidden])) { grid-template-columns: 17rem minmax(0, 5fr) minmax(0, 6fr); }
.wbody:has(#score:not([hidden])) .log { flex: 1 1 0; height: auto; min-height: 0; }
.score { padding: clamp(18px, 2.2vw, 30px); display: grid; gap: 16px; align-content: start; border-left: 1px solid var(--line); outline: none; }
.score .label { font: 600 .75rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .03em; color: var(--ink-2); }
.verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.big { font: 700 clamp(4rem, 6.4vw, 6rem)/.95 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.big > span:last-child { font-family: var(--mono); font-weight: 600; color: var(--ink-2); letter-spacing: 0; margin-left: 5px; }
.pill { display: inline-block; justify-self: start; padding: 6px 13px; font: 700 .9375rem/1.2 var(--body); border-radius: 999px; }
.pill.win { background: var(--chip-down); color: var(--good); }
.pill.lose { background: var(--chip-up); color: var(--heat-ink); }
.pill.mid { background: var(--surface-3); color: var(--ink); }
.score .stake { font: 600 .875rem/1.3 var(--mono); }
.skills { display: grid; border-top: 1px solid var(--line); }
.skill { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
.skill .mark { grid-row: span 2; font: 600 .8125rem/1.5 var(--mono); }
.mark.ok { color: var(--good); }
.mark.no { color: var(--heat-ink); }
.skill b { font-weight: 600; line-height: 1.3; }
.skill small { font-size: .875rem; line-height: 1.35; color: var(--ink-2); }
.score .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.hint { font: 400 .8125rem/1.4 var(--mono); color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .score:not([hidden]) .skill { animation: msgin var(--med) var(--out) both; }
  .score .skill:nth-child(2) { animation-delay: 60ms; }
  .score .skill:nth-child(3) { animation-delay: 120ms; }
  .score .skill:nth-child(4) { animation-delay: 180ms; }
  .score .skill:nth-child(5) { animation-delay: 240ms; }
  .score:not([hidden]) .pill { animation: chipin 360ms 260ms var(--back) both; }
}
.weather { max-width: var(--max); margin: 14px auto 0; text-align: center; font-weight: 500; font-size: .9375rem; }

/* ---------- Sheet ---------- */
.sheet { background: var(--page); border-radius: 28px 28px 0 0; position: relative; }
.sheet > section, .foot { max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.statement { padding-top: var(--sec); }
.scrub { font: 700 clamp(2.75rem, 7.4vw, 7.25rem)/1.02 var(--display); letter-spacing: -.022em; font-variant-ligatures: none; max-width: 15em; text-wrap: balance; }
.scrub .word { color: var(--dim); transition: color var(--fast) linear; }
.scrub .word.on { color: var(--ink); }
.scrub .word.heat.on { color: var(--heat-ink); }
.why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px clamp(32px, 6vw, 96px); margin-top: clamp(40px, 6vw, 88px); }
.why-lead { font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.3; font-weight: 500; }
.why-list li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 1.0625rem; }
.why-list li:first-child { border-top: 0; padding-top: 0; }
.why-list b { color: var(--ink); font-weight: 600; }

.ledger { padding-top: var(--sec); }
.scale { margin-top: clamp(32px, 4vw, 56px); }
.scale-bar { height: 16px; border-radius: 8px; background: linear-gradient(90deg, #1fb3a0 0%, #1fb3a0 33%, #f2bd5c 52%, #ff7a3d 72%, #f0401a 100%); }
.scale-marks { position: relative; height: 88px; margin-top: 6px; }
.scale-marks li { position: absolute; left: var(--x); top: 0; padding-left: 10px; width: 24%; font-size: .9375rem; line-height: 1.3; color: var(--ink-2); border-left: 2px solid var(--ink); }
.scale-marks li:last-child { width: 9.5%; }
.scale-marks b { display: block; font: 600 1.0625rem/1.3 var(--mono); color: var(--ink); }
.deltas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(24px, 3vw, 40px); }
.delta-col { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(18px, 2.2vw, 30px); }
.delta-title { font: 700 clamp(1.5rem, 2.4vw, 2rem)/1.1 var(--display); letter-spacing: -.025em; margin-bottom: 8px; }
.delta-col li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 16px; padding: 12px 0 11px; border-top: 1px solid var(--line); }
.delta-col li:first-child { border-top: 0; }
.delta-col .q { font-size: 1.0625rem; font-weight: 500; }
.delta-col .r { grid-row: 2; font-size: .875rem; color: var(--ink-2); }
.delta-col li b { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 800 clamp(1.5rem, 2.2vw, 1.875rem)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.delta-col .hot b { color: var(--heat-ink); }
.delta-col .cool b { color: var(--good); }
.delta-col li i { grid-column: 1 / -1; display: block; height: 6px; margin-top: 7px; width: var(--w); border-radius: 3px; }
.delta-col .hot i { background: #dc4f14; }
.delta-col .cool i { background: var(--cool-bar); }

.rubric { padding-top: var(--sec); }
.stack { display: flex; margin-top: clamp(28px, 4vw, 52px); height: clamp(68px, 8vw, 112px); gap: 4px; border-radius: 16px; overflow: hidden; }
.stack span { flex: var(--pts) 1 0; display: flex; align-items: flex-end; padding: 8px 10px; min-width: 0; background: var(--ink); color: #fff; }
.stack span.saved { background: var(--heat); color: var(--ink); }
.stack b { font: 700 clamp(1.25rem, 2.6vw, 2.25rem)/1 var(--display); letter-spacing: -.03em; }
.rubric-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 44px); margin-top: clamp(20px, 2.6vw, 32px); }
.rubric-list > div { padding: 16px 0 20px; border-top: 1px solid var(--line); }
.rubric-list dt { font-weight: 600; font-size: 1.125rem; line-height: 1.3; }
.rubric-list dt b { font: 600 1rem/1 var(--mono); margin-right: 6px; color: var(--heat-ink); }
.rubric-list dd { color: var(--ink-2); margin-top: 4px; }

.steps { padding-top: var(--sec); }
.step-list { counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(28px, 3.4vw, 44px); }
.step-list li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; color: var(--ink-2); }
.step-list li::before { content: counter(s); display: block; font: 800 2.75rem/1 var(--display); color: var(--ink); margin-bottom: 18px; letter-spacing: -.04em; }
.step-list b { display: block; color: var(--ink); font-size: 1.125rem; line-height: 1.25; font-weight: 600; margin-bottom: 6px; }

.offer { padding-top: var(--sec); }
.offer-panel {
  border-radius: 28px; overflow: hidden; padding: clamp(24px, 4.4vw, 64px);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px clamp(24px, 4vw, 56px); align-items: end;
  background:
    radial-gradient(90% 90% at 18% 112%, #ff8a55 0%, rgba(255, 138, 85, .6) 45%, transparent 78%),
    linear-gradient(170deg, #dfe6ff 0%, #f6e9e2 60%, #ffcfb5 100%);
}
.offer .eyebrow { color: var(--ink); }
.price { font: 700 clamp(5.5rem, 16vw, 15rem)/.95 var(--display); letter-spacing: -.005em; margin: 8px 0 16px -.02em; }
.terms li { font: 700 clamp(1.375rem, 2.6vw, 2.25rem)/1.15 var(--display); letter-spacing: -.025em; }
.offer-card { background: var(--surface); border-radius: 22px; padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 14px; box-shadow: 0 18px 44px -18px rgba(23, 23, 43, .35); }
.refund { font-size: clamp(1.1875rem, 1.8vw, 1.5rem); line-height: 1.25; font-weight: 600; }
.big-btn { min-height: 58px; font-size: 1.125rem; width: 100%; }
.contact a { font-weight: 600; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }

.straight { padding-block: var(--sec); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 36px clamp(32px, 6vw, 96px); }
.straight-lead { display: grid; gap: 18px; align-content: start; }
.straight-lead .btn { justify-self: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 58px; padding: 10px 0; font-size: 1.125rem; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 1.5rem/1 var(--mono); transition: transform var(--fast) var(--out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 32px 18px 0; color: var(--ink-2); max-width: 60ch; }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-block: 8px 24px; }
.foot a { font-weight: 600; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Reveal, armed only once page.js runs ---------- */
.reveal-ready [data-reveal]:not(.in) > * { opacity: 0; transform: translateY(20px); }
.reveal-ready [data-reveal]:not([class*="delta"]):not(.in) { }
.reveal-ready .stack[data-reveal]:not(.in) > * { opacity: 1; transform: scaleX(0); }
.stack > * { transform-origin: left; }
.reveal-ready [data-reveal].in > * { transition: opacity var(--slow) var(--out), transform var(--slow) var(--out); }
.reveal-ready [data-reveal].in > *:nth-child(2) { transition-delay: 70ms; }
.reveal-ready [data-reveal].in > *:nth-child(3) { transition-delay: 140ms; }
.reveal-ready [data-reveal].in > *:nth-child(4) { transition-delay: 210ms; }
.reveal-ready [data-reveal].in > *:nth-child(5) { transition-delay: 280ms; }
.reveal-ready [data-reveal].in > *:nth-child(6) { transition-delay: 350ms; }

/* ---------- Breakpoints ---------- */
@media (max-width: 1100px) {
  .wbody { grid-template-columns: minmax(0, 1fr) 11.5rem; }
  .queue { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; }
  .qlabel { display: none; }
  .tickets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .t3, .ticket .stake { display: none; }
  .wbody:has(#score:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
  .wbody:has(#score:not([hidden])) .log { flex: none; height: auto; max-height: 280px; }
  .score { border-left: 0; border-top: 1px solid var(--line); }
  .step-list, .rubric-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .why, .deltas, .offer-panel, .straight { grid-template-columns: minmax(0, 1fr); }
  .scale-marks { height: auto; display: grid; gap: 10px; margin-top: 12px; }
  .scale-marks li, .scale-marks li:last-child { position: static; width: auto; }
}
/* Short laptop screens: keep the reply box on the first screen despite the roomier hero. */
@media (min-width: 561px) and (max-height: 800px) { .log { height: 140px; } .hero { padding-bottom: clamp(36px, 4vw, 64px); } }
/* app.js switches the gauge to horizontal at exactly 560px */
@media (max-width: 560px) {
  :root { --nav-h: 60px; }
  .navlink { display: none; }
  .mega { font-size: 15.2vw; }
  body[data-niche="service-advisors"] .mega { font-size: 12.8vw; }
  .window { border-radius: 18px; }
  .call { padding-inline: 10px; }
  .hero { padding-inline: 16px; }
  .onair { font-size: .875rem; align-items: flex-start; }
  .dot { margin-top: 5px; }
  .queue { padding: 8px; }
  .tickets { gap: 4px; }
  .ticket { padding: 8px; }
  .t1 .c, .t2 { display: none; }
  .t1 .w { font-size: .875rem; }
  .chead { padding: 10px 14px; }
  .onrisk { display: none; }
  .wbody { grid-template-columns: minmax(0, 1fr); }
  .live { order: 0; padding: 10px 14px; gap: 8px; border-left: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
  .queue { order: -2; }
  .callpane { order: 1; }
  .temp-read { display: contents; }
  .temp-read .live-label, .clock .live-label { display: none; }
  .temp { font-size: 2.25rem; }
  .state { min-height: 0; }
  .clock { border: 0; padding: 0; order: 1; }
  .tube-wrap { order: 2; grid-column: 1 / -1; min-height: 0; flex-direction: column; gap: 4px; }
  .tube { width: 100%; height: 12px; border-radius: 6px; }
  .fill { top: 0; bottom: 0; right: auto; height: auto; width: 64%; background: linear-gradient(to right, #1fb3a0 0%, #1fb3a0 22%, #f2bd5c 45%, #ff7a3d 68%, #f0401a 100%) left top / 100cqw 100cqh no-repeat; }
  .ticks { height: 15px; flex: none; }
  .ticks li { top: 0; bottom: auto; left: var(--p); transform: translateX(-50%); font-size: 0; }
  .log { height: clamp(180px, 26svh, 300px); padding: 12px 14px; }
  .msg { max-width: 92%; font-size: 1rem; }
  .compose { padding: 10px 14px 14px; }
  .kbd-hint { display: none; }
  .compose-btns { width: 100%; }
  .compose-btns #send { flex: 1; }
  .score { padding: 16px 14px; }
  .score .row .row { width: 100%; }
  .score .row .row .btn { flex: 1; padding: 0 8px; }
  .stack span { padding: 6px; }
  .rubric-list, .step-list { grid-template-columns: minmax(0, 1fr); }
  .sheet { border-radius: 22px 22px 0 0; }
  .offer-panel { border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .reveal-ready [data-reveal]:not(.in) > * { opacity: 1; transform: none; }
  .reveal-ready .stack[data-reveal]:not(.in) > * { transform: none; }
  .scrub .word { color: var(--ink); }
  .scrub .word.heat { color: var(--heat-ink); }
}

/* ---------- Sign-off ---------- */
.sign { font: 700 clamp(1.5rem, 3vw, 2.25rem)/1.05 var(--display); letter-spacing: -.03em; }

/* ---------- The logo and big numbers share Space Grotesk ---------- */
.nav .brand, .price, .big, .temp, .stack b, .delta-col li b, .step-list li::before { font-family: var(--tech); font-weight: 700; }

/* ---------- Other industries, in the footer ---------- */
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; font-size: .9375rem; }
.foot-links a { font-weight: 500; }
.foot-links a[aria-current="page"] { font-weight: 700; text-decoration: none; }

/* ---------- Who runs this, and the legal links ---------- */
.foot-legal { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; font-size: .875rem; color: var(--ink-2); border-top: 1px solid var(--line); margin-top: 10px; padding-top: 6px; }
.foot-legal nav { display: flex; gap: 0 18px; margin-left: auto; }
.foot-legal a { font-weight: 500; }

/* ---------- Privacy and terms ---------- */
.legal-page { background: var(--page); }
.legal { max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding: calc(var(--nav-h) + clamp(32px, 4vw, 64px)) var(--gutter) clamp(40px, 5vw, 72px); }
.legal .h2 { margin-top: 14px; max-width: 16ch; }
.legal .lede { margin-top: 18px; }
.legal-body { margin-top: clamp(36px, 5vw, 64px); max-width: 68ch; display: grid; gap: clamp(28px, 3vw, 40px); }
.legal-body section { display: grid; gap: 10px; }
.legal-body h2 { font: 700 clamp(1.375rem, 2.2vw, 1.75rem)/1.15 var(--display); letter-spacing: -.015em; }
.legal-body p, .legal-body li { color: var(--ink-2); }
.legal-body b { color: var(--ink); font-weight: 600; }
.legal-body ul { display: grid; gap: 8px; list-style: disc; padding-left: 1.2em; }
.legal-body a { font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-foot { border-top: 1px solid var(--line); padding-top: 16px; }
