/* Pandora landing.

   One voice runs across the page. The hero sits on it, it swells when the agent
   speaks and settles when the customer does, and it is the only thing here that
   moves on its own — everything else waits to be scrolled to or clicked.

   One accent, and it means one thing: approved, or live. Never decoration. */

:root {
  --paper:     #FFFFFF;
  --paper-2:   #F6F7F8;
  --ink:       #0F1317;
  --ink-2:     #59636C;
  --ink-3:     #8A939B;
  --rule:      #E4E7E9;
  --pass:      #0B6E4F;
  --pass-dim:  #E8F2ED;
  --fail:      #A8322B;
  --deep:      #0C1014;   /* the call panel and the voice band */

  --shell: min(1180px, 100% - 48px);
  --serif: "Newsreader", Georgia, serif;
  --sans:  "Archivo", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0B0E11; --paper-2: #10151A; --ink: #ECEEF0; --ink-2: #99A2AA;
    --ink-3: #6D767E; --rule: #212830; --pass: #4FC08A; --pass-dim: #122219;
    --fail: #E8796F; --deep: #080B0E;
  }
}
:root[data-theme="dark"] {
  --paper: #0B0E11; --paper-2: #10151A; --ink: #ECEEF0; --ink-2: #99A2AA;
  --ink-3: #6D767E; --rule: #212830; --pass: #4FC08A; --pass-dim: #122219;
  --fail: #E8796F; --deep: #080B0E;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
@media (max-width: 720px) { :root { --shell: calc(100% - 32px); } body { font-size: 16px; } }

h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.015em; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--pass); outline-offset: 3px; border-radius: 3px; }

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 16px; border-radius: 7px; border: 1px solid transparent;
  background: var(--ink); color: var(--paper);
  font: 500 15px/1 var(--sans); cursor: pointer;
  transition: transform .16s cubic-bezier(.2,.9,.3,1), opacity .14s, border-color .14s;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn.ghost { background: none; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--ink); opacity: 1; }
.btn.big { padding: 15px 26px; font-size: 16px; }
.btn[disabled] { opacity: .5; cursor: default; transform: none; }

/* ── nav ─────────────────────────────────────────────────────────────── */
.topnav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 36px;
  width: var(--shell); margin: 0 auto; padding: 18px 0;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule);
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; }
.brand svg { width: 19px; height: 19px; }
.navlinks { display: flex; gap: 26px; margin-right: auto; font-size: 15px; color: var(--ink-2); }
.navlinks a { position: relative; }
.navlinks a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1px;
  background: currentColor; transition: right .22s cubic-bezier(.2,.9,.3,1);
}
.navlinks a:hover { color: var(--ink); }
.navlinks a:hover::after { right: 0; }
.navcta { display: flex; gap: 9px; }
@media (max-width: 880px) { .navlinks { display: none; } .topnav { gap: 16px; } .navcta { margin-left: auto; } }

/* ── hero ────────────────────────────────────────────────────────────── */
.hero {
  width: var(--shell); margin: 0 auto; padding: 76px 0 54px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.hero h1 {
  /* Sized so the first clause fits the column on one line — the column is the
     measure, not a character count. */
  font-family: var(--serif); font-size: clamp(36px, 4.1vw, 50px);
  line-height: 1.08; font-weight: 300; text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--pass); }
.lede { margin-top: 18px; max-width: 40ch; color: var(--ink-2); font-size: 18px; }

#call-form { display: flex; gap: 8px; margin-top: 28px; max-width: 450px; }
#call-phone {
  flex: 1; min-width: 0; padding: 15px 16px; border: 1px solid var(--rule);
  border-radius: 7px; background: var(--paper); color: var(--ink);
  font: 400 16px/1.2 var(--mono);
  transition: border-color .16s, box-shadow .16s;
}
#call-phone::placeholder { color: var(--ink-3); }
#call-phone:focus {
  border-color: var(--ink); outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 7%, transparent);
}
#call-btn { white-space: nowrap; }
#call-btn.busy { opacity: .6; }
.callnote { margin-top: 11px; font-size: 13.5px; color: var(--ink-3); min-height: 20px; }
.callnote.ok { color: var(--pass); }
.callnote.err { color: var(--fail); }

@media (max-width: 960px) { .hero { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 36px; } }
@media (max-width: 560px) { #call-form { flex-direction: column; } }

/* ── the call panel ──────────────────────────────────────────────────── */
.call {
  margin: 0; border-radius: 12px; background: var(--deep); color: #E7EAED;
  border: 1px solid #1B2127; overflow: hidden;
  box-shadow: 0 30px 60px -34px rgba(8, 14, 20, .55);
  opacity: 0; transform: translateY(14px);
  animation: lift .7s .15s cubic-bezier(.2,.9,.3,1) forwards;
}
@keyframes lift { to { opacity: 1; transform: none; } }

.call-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid #1B2127;
}
.live { display: inline-flex; align-items: center; gap: 8px; color: #8C979F; }
.live b { font: 400 11px/1 var(--mono); letter-spacing: .03em; }
.live i {
  width: 7px; height: 7px; border-radius: 50%; background: #3DD68C;
  box-shadow: 0 0 0 0 rgba(61, 214, 140, .55); animation: ping 2.4s ease-out infinite;
}
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 8px rgba(61, 214, 140, 0); } }

.langs { display: flex; gap: 2px; padding: 2px; border: 1px solid #232A31; border-radius: 7px; }
.langs button {
  padding: 4px 10px; border: 0; border-radius: 5px; background: none; cursor: pointer;
  font: 500 11px/1.5 var(--mono); color: #7F8990; letter-spacing: .04em;
  transition: background .16s, color .16s;
}
.langs button.on { background: #1B2227; color: #E7EAED; }

.turns { list-style: none; margin: 0; padding: 18px 16px 20px; height: 316px; overflow: hidden; }
.turns li {
  display: flex; gap: 10px; margin-bottom: 13px; font-size: 14px; line-height: 1.5;
  animation: turnin .36s cubic-bezier(.2,.9,.3,1) both;
}
@keyframes turnin { from { opacity: 0; transform: translateY(6px); } }
.turns .who {
  flex: 0 0 54px; font: 500 10px/1.8 var(--mono); letter-spacing: .07em;
  text-transform: uppercase; color: #68727A; padding-top: 2px;
}
.turns .said { flex: 1; }
.turns li.them .said { color: #AEB8C0; }
.turns li.us .said { color: #F2F5F7; }

/* The moment the page exists for: words find nothing, the index does. */
.turns li.probe { display: block; margin: 2px 0 13px 64px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px;
  border-radius: 6px; background: #151B20; border: 1px solid #232A31;
  font: 400 11px/1 var(--mono); color: #8C979F; margin: 0 6px 5px 0;
}
.chip.miss { color: #E8796F; border-color: #38211F; }
.chip.hit { color: #3DD68C; border-color: #1A3729; background: #101E18; }

/* ── the voice band: the page's signature ────────────────────────────── */
.voice {
  position: relative; width: 100vw; margin-left: calc(50% - 50vw);
  height: 168px; background: var(--deep);
}
.voice canvas { display: block; width: 100%; height: 100%; }
@media (max-width: 720px) { .voice { height: 112px; } }

/* ── bands ───────────────────────────────────────────────────────────── */
.band { padding: 92px 0; }
.band.alt { background: var(--paper-2); border-block: 1px solid var(--rule); }
.band-head, .probe, .gates, .steps, .note { width: var(--shell); margin: 0 auto; }
.band-head h2 {
  font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12; max-width: 20ch;
}
.band-head p { margin-top: 14px; max-width: 54ch; color: var(--ink-2); }
.note { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--rule);
  max-width: 60ch; font-size: 14px; color: var(--ink-3); }
@media (max-width: 720px) { .band { padding: 62px 0; } }

/* One reveal, used everywhere, so the page has a single motion and not six.
   Gated on html.js: nothing is hidden unless the script that reveals it ran. */
.js .rise { opacity: 0; transform: translateY(18px); }
.rise.in {
  opacity: 1; transform: none;
  transition: opacity .6s cubic-bezier(.2,.9,.3,1), transform .6s cubic-bezier(.2,.9,.3,1);
}

/* ── the index probe ─────────────────────────────────────────────────── */
.probe { display: grid; grid-template-columns: minmax(230px, 300px) 1fr; gap: 44px; margin-top: 40px; }
.probe-pick { display: flex; flex-direction: column; gap: 7px; }
.probe-pick button {
  position: relative; text-align: left; padding: 12px 14px;
  border: 1px solid var(--rule); border-radius: 8px;
  background: var(--paper); color: var(--ink-2);
  font: 400 15px/1.35 var(--sans); cursor: pointer;
  transition: border-color .18s, color .18s, transform .18s cubic-bezier(.2,.9,.3,1);
}
.probe-pick button:hover { border-color: var(--ink-3); color: var(--ink); transform: translateX(3px); }
.probe-pick button.on { border-color: var(--ink); color: var(--ink); font-weight: 500; transform: translateX(3px); }

.meter { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; }
.meter-l { grid-column: 1 / -1; font-size: 13px; color: var(--ink-3); }
.bar { position: relative; height: 8px; border-radius: 5px; background: var(--rule); }
.bar i {
  display: block; height: 100%; border-radius: 5px; background: var(--fail); width: 0;
  transition: width .6s cubic-bezier(.22,.9,.3,1), background .3s;
}
.bar u { position: absolute; top: -6px; bottom: -6px; width: 1px; background: var(--ink-3); left: 43%; }
.bar u span { position: absolute; top: -18px; left: -13px; font: 400 10px var(--mono); color: var(--ink-3); }
.meter output { font: 500 15px/1 var(--mono); color: var(--fail); }

.verdict { margin-top: 20px; font-size: 15px; color: var(--ink-2); min-height: 44px; max-width: 58ch; }
.resolved {
  display: inline-flex; align-items: baseline; gap: 11px; margin-top: 2px;
  padding: 11px 14px; border: 1px solid var(--pass); border-radius: 8px;
  background: var(--pass-dim);
  animation: turnin .4s cubic-bezier(.2,.9,.3,1) both;
}
.rowid { font: 500 13px/1 var(--mono); color: var(--pass); }
.rowlabel { font-size: 15px; }
.answer {
  margin: 16px 0 0; padding: 0 0 0 16px; border-left: 2px solid var(--rule);
  font-family: var(--serif); font-size: 21px; line-height: 1.45; max-width: 44ch;
  animation: turnin .4s .08s cubic-bezier(.2,.9,.3,1) both;
}
@media (max-width: 860px) { .probe { grid-template-columns: 1fr; gap: 26px; } }

/* ── gates ───────────────────────────────────────────────────────────── */
.gates { list-style: none; padding: 0; margin-top: 38px; border-top: 1px solid var(--rule); }
.gates li {
  display: grid; grid-template-columns: 22px minmax(150px, 230px) 1fr;
  gap: 16px; align-items: baseline; padding: 15px 2px;
  border-bottom: 1px solid var(--rule);
}
.js .gates li { opacity: 0; transform: translateY(6px); }
.gates li.in {
  opacity: 1; transform: none;
  transition: opacity .45s cubic-bezier(.2,.9,.3,1), transform .45s cubic-bezier(.2,.9,.3,1);
}
.gates .tick { color: var(--pass); font-size: 14px; }
.gates .nm { font-family: var(--mono); font-size: 13.5px; }
.gates .dt { font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 720px) {
  .gates li { grid-template-columns: 20px 1fr; }
  .gates .dt { grid-column: 2; }
}

/* ── steps ───────────────────────────────────────────────────────────── */
.steps { list-style: none; padding: 0; margin-top: 44px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps li { padding-top: 18px; border-top: 2px solid var(--ink); }
.steps .n { font: 500 12px/1 var(--mono); color: var(--ink-3); letter-spacing: .06em; }
.steps h3 { margin-top: 12px; font-family: var(--serif); font-size: 23px; font-weight: 400; }
.steps p { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.files, .approve { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 16px; }
.files span, .approve span {
  padding: 4px 9px; border-radius: 5px; border: 1px solid var(--rule);
  font: 400 11.5px/1.45 var(--mono); color: var(--ink-3);
}
.approve .ok { color: var(--pass); border-color: var(--pass); background: var(--pass-dim); }
.approve .no { color: var(--fail); border-color: var(--fail); }
.built { display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; margin: 16px 0 0; }
.built dt { font: 500 14px/1.4 var(--mono); white-space: nowrap; }
.built dd { margin: 0; font-size: 14px; color: var(--ink-2); }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; gap: 30px; } }

/* ── footer ──────────────────────────────────────────────────────────── */
.foot {
  width: var(--shell); margin: 0 auto; padding: 34px 0 52px;
  border-top: 1px solid var(--rule);
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.foot p { margin-right: auto; font-size: 14px; color: var(--ink-3); max-width: 42ch; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise, .gates li, .call { opacity: 1; transform: none; }
}
