/* demo.naumanbuilds.com
   Dark "cyanotype console". Lime only marks live/OK; amber marks fallbacks; red marks failures.
   Layout: one column at max 1080px; hero is two columns (pitch | call panel) on wide screens. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-var.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --bg: #0C1A2B;
  --panel: #10233A;
  --panel-2: #0E1F33;
  --line: #1F3A5A;
  --grid: rgba(127,166,214,.07);
  --text: #E6EDF3;
  --body: #C3D0DE;
  --muted: #8FA6C2;
  --live: #B6FF3B;
  --fail: #FF6A5F;
  --amber: #FFC24B;
  --ink-on-live: #0C1A2B;

  --f-head: "Schibsted Grotesk", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1080px;
  --gutter: clamp(18px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--body);
  font-family: var(--f-head);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block }
a { color: var(--text); text-underline-offset: 3px }
h1, h2, h3 { color: var(--text); margin: 0; text-wrap: balance }
p { margin: 0 }
:focus-visible { outline: 2px solid var(--live); outline-offset: 3px; border-radius: 2px }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter) }
.skip { position: absolute; left: 12px; top: -60px; background: var(--live); color: var(--ink-on-live); padding: 10px 14px; z-index: 10; text-decoration: none; font-weight: 700 }
.skip:focus { top: 12px }
.mono { font-family: var(--f-mono) }

/* ---------- header ---------- */
.site-head .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; padding-block: 18px; font: 13px var(--f-mono); color: var(--muted) }
.badge { font: 700 11.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-on-live); background: var(--amber); padding: 4px 8px }
.by a { color: var(--text) }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: start; padding-block: clamp(24px, 5vw, 56px) clamp(48px, 7vw, 80px) }
.hero h1 { font-weight: 800; font-size: clamp(32px, 4.8vw, 54px); line-height: 1.04; letter-spacing: -.035em }
.hero .sub { font-size: 18px; margin-top: 18px; max-width: 54ch }
.notice { margin-top: 22px; border-left: 3px solid var(--amber); padding: 4px 0 4px 14px; font: 13.5px/1.6 var(--f-mono); color: var(--text) }
.notice span { display: block; color: var(--muted) }

.phone { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline }
.phone[hidden] { display: none }
.phone .label { font: 12px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted) }
.phone a { font: 600 22px var(--f-mono); color: var(--text); text-decoration-color: var(--line); white-space: nowrap }

/* call panel */
.call { background: var(--panel); border: 1px solid var(--line); min-width: 0 }
.call-head { display: flex; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); font: 12px var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em }
.call-body { padding: 22px 18px 20px; display: grid; gap: 16px }
.call-state { display: flex; align-items: center; gap: 12px }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); flex: none }
.call-state strong { font: 600 18px var(--f-head); color: var(--text) }
.call-detail { font-size: 15.5px; min-height: 3.2em }
.call-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center }
.btn { font: 700 16px var(--f-head); border: 0; padding: 14px 20px; cursor: pointer; display: inline-flex; gap: 10px; align-items: center }
.btn[hidden] { display: none }
.btn-go { background: var(--live); color: var(--ink-on-live) }
.btn-go::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-on-live) }
.btn-go:disabled { background: var(--line); color: var(--muted); cursor: not-allowed }
.btn-go:disabled::before { background: var(--muted) }
.btn-end { background: var(--fail); color: #1A0B0A }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); font-weight: 600 }
.timer { font: 13px var(--f-mono); color: var(--muted); font-variant-numeric: tabular-nums }
.timer[hidden] { display: none }
.level { height: 4px; background: var(--line); overflow: hidden }
.level::after { content: ""; display: block; height: 100%; width: calc(var(--level, 0) * 100%); background: var(--live); transition: width .08s linear }
.call-foot { border-top: 1px solid var(--line); padding: 10px 16px; font: 12px/1.5 var(--f-mono); color: var(--muted) }

.call[data-state="live"] .dot { background: var(--live); box-shadow: 0 0 0 4px rgba(182,255,59,.16) }
.call[data-state="connecting"] .dot { background: var(--amber) }
.call[data-state="busy"] .dot, .call[data-state="limited"] .dot { background: var(--amber) }
.call[data-state="offline"] .dot, .call[data-state="error"] .dot, .call[data-state="mic"] .dot { background: var(--fail) }
.call[data-state="ended"] .dot { background: var(--muted) }
@media (prefers-reduced-motion: no-preference) {
  .call[data-state="live"] .dot { animation: pulse 1.6s ease-in-out infinite }
  .call[data-state="connecting"] .dot { animation: pulse .9s ease-in-out infinite }
}
@keyframes pulse { 50% { opacity: .45 } }

/* ---------- sections ---------- */
.sec { padding-top: clamp(52px, 8vw, 92px) }
.sec > h2, .sec-head h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.03em; line-height: 1.12; font-weight: 800 }
.sec-intro { margin-top: 10px; max-width: 62ch }
.sec-head { margin-bottom: 26px }

/* things to try */
.tries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
.try { background: var(--panel); border: 1px solid var(--line); padding: 16px 18px; min-width: 0 }
.try q { display: block; color: var(--text); font-weight: 600; font-size: 17px; quotes: "\201C" "\201D" }
.try p { margin-top: 6px; font-size: 15px }
.try.urgent { box-shadow: inset 3px 0 0 var(--fail) }

/* recording */
.recording { background: var(--panel); border: 1px solid var(--line); padding: 18px; display: grid; gap: 10px }
.recording audio { width: 100%; color-scheme: dark }
.recording p { font-size: 15px }

/* pipeline diagram */
.flow-scroll { overflow-x: auto; padding-bottom: 6px }
.flow { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 0; min-width: 660px; list-style: none; margin: 0; padding: 0 }
.flow > li { position: relative; padding-right: 26px }
.flow > li:last-child { padding-right: 0 }
.flow > li:not(:last-child)::after { content: ""; position: absolute; top: 34px; right: 4px; width: 18px; height: 2px; background: var(--muted) }
.flow > li:not(:last-child)::before { content: ""; position: absolute; top: 30px; right: 3px; width: 8px; height: 8px; border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg) }
.node { background: var(--panel); border: 1px solid var(--line); padding: 14px; height: 100% }
.node b { display: block; color: var(--text); font-size: 16px }
.node .k { font: 11px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted) }
.node ul { margin: 8px 0 0; padding: 0; list-style: none; font: 12.5px/1.7 var(--f-mono); color: var(--body) }
.flow-note { margin-top: 14px; font: 13px/1.6 var(--f-mono); color: var(--muted); max-width: 80ch }

/* when things go wrong */
.wrong { border-top: 1px solid var(--line) }
.wrong-row { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 8px 32px; padding: 18px 0; border-bottom: 1px solid var(--line) }
.wrong-row h3 { font-size: 18px; line-height: 1.3; font-weight: 700 }
.wrong-row h3 small { display: block; font: 12px var(--f-mono); color: var(--muted); margin-top: 4px; font-weight: 400 }
.wrong-row p { font-size: 16px; max-width: 64ch }
.wrong-row q { color: var(--text) }

/* CRM example */
.table-scroll { overflow-x: auto; border: 1px solid var(--line) }
.crm { border-collapse: collapse; width: 100%; min-width: 760px; font: 13px/1.5 var(--f-mono); background: var(--panel-2) }
.crm caption { text-align: left; padding: 10px 12px; color: var(--muted); font-size: 12px; caption-side: top; background: var(--panel) ; border-bottom: 1px solid var(--line) }
.crm th, .crm td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap }
.crm th { color: var(--muted); font-weight: 500; background: var(--panel) }
.crm td { color: var(--text) }
.crm .s-booked { color: var(--live) }
.crm .s-urgent { color: var(--fail) }
.crm .s-cb { color: var(--amber) }
.crm tr:last-child td { border-bottom: 0 }

/* who built this */
.who { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; background: var(--panel); border: 1px solid var(--line); padding: 22px }
.who img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; border: 1.5px solid var(--text); box-shadow: 5px 5px 0 var(--live) }
.who h2 { font-size: 22px; letter-spacing: -.02em }
.who p { margin-top: 6px; font-size: 16px; max-width: 60ch }

.site-foot .wrap { margin-top: clamp(52px, 8vw, 92px); border-top: 1px solid var(--line); padding-block: 18px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font: 12.5px var(--f-mono); color: var(--muted) }
.site-foot a { color: var(--muted) }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr) }
  .tries { grid-template-columns: minmax(0, 1fr) }
  .wrong-row { grid-template-columns: minmax(0, 1fr) }
}
@media (max-width: 480px) {
  .who { grid-template-columns: minmax(0, 1fr) }
}

/* small screens: the pipeline stacks top to bottom */
@media (max-width: 700px) {
  .flow { grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 22px }
  .flow > li { padding-right: 0 }
  .flow > li:not(:last-child)::after { top: auto; bottom: -16px; right: auto; left: 22px; width: 2px; height: 12px }
  .flow > li:not(:last-child)::before { top: auto; bottom: -17px; right: auto; left: 18px; transform: rotate(135deg) }
}
