:root {
  --ink: #0a2443;
  --paper: #f4efe4;
  --paper-2: #ebe3d2;
  --line: rgba(10, 36, 67, 0.12);
  --hcp: #0055ff;
  --zm: #0f8f86;
  --jb: #012d3a;
  --gold: #ffb706;
  --gold-ink: #3a2a00;
  --ok: #1b6b45;
  --warn: #9a4a12;
  --muted: #5b6a79;
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(0, 85, 255, 0.1), transparent 45%),
    #f4efe4;
  font-family: "Schibsted Grotesk", "Segoe UI", sans-serif;
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
a { color: inherit; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.ayra {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 680;
  font-size: 18px;
}
.internal {
  border: 1px solid var(--line);
  background: #fff8;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  margin: 16px 0 40px;
  padding: 48px 44px;
  background: linear-gradient(150deg, #0a2443, #083072 60%, #04182c);
  color: #f6f0e4;
  border-radius: 28px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(transparent 0, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(#000, transparent 78%);
  pointer-events: none;
}
.kicker {
  position: relative;
  z-index: 1;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
h1 {
  position: relative;
  z-index: 1;
  margin: 10px 0 12px;
  font-family: Fraunces, Georgia, serif;
  font-weight: 680;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 0.96;
  letter-spacing: -0.03em;
}
.lede {
  position: relative;
  z-index: 1;
  max-width: 640px;
  color: #f6f0e4cc;
  font-size: 18px;
}

.logo-lock {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 8px 12px 8px 8px;
  font-weight: 700;
}
.logo-lock img, .logo-lock svg { width: 32px; height: 32px; border-radius: 8px; display: block; }

.call {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gold);
  color: var(--gold-ink);
  text-decoration: none;
  padding: 12px 16px 12px 12px;
  border-radius: 999px;
  font-weight: 700;
}
.call b { font-size: 18px; }
.call small { display: block; font-weight: 500; opacity: .7; }
.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.hero-actions .call { margin-top: 0; }
.call-ghost {
  background: transparent;
  color: #f6f0e4;
  border: 1px solid rgba(246, 240, 228, 0.35);
}
.call-ghost .dial {
  background: #ffb706;
  color: #3a2a00;
}

.talk-box {
  display: grid;
  gap: 18px;
}
.talk-status {
  font-size: 14px;
  color: var(--muted);
}
.talk-status[data-state="live"] { color: var(--ok); font-weight: 700; }
.talk-status[data-state="error"] { color: var(--warn); font-weight: 700; }
.talk-status[data-state="connecting"] { color: var(--jb); font-weight: 700; }
.talk-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.talk-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--gold-ink);
  padding: 12px 16px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
}
.talk-btn[disabled] { opacity: .45; cursor: not-allowed; }
.talk-btn-end { background: #7a1d1d; color: #fff8f0; }
.talk-log {
  min-height: 88px;
  max-height: 220px;
  overflow: auto;
  background: var(--paper-2);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
}
.talk-log p { margin: 0 0 8px; }
.talk-log p:last-child { margin: 0; }
.dial {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  display: grid;
  place-items: center;
}

section { padding: 10px 0 42px; }
.sec { color: var(--hcp); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.sec-zm { color: var(--zm); }
.sec-jb { color: var(--jb); }
.cta-zm { background: var(--zm); }
.cta-jb { background: var(--jb); }
h2 {
  margin: 6px 0 16px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
h3 { margin: 0 0 8px; }

.g3, .g2, .g4 { display: grid; gap: 14px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: 1fr 1fr; }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fffc;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}
.pick {
  display: block;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pick:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(10,36,67,.12); }
.soon { opacity: .55; pointer-events: none; }
.cta {
  display: inline-block;
  margin-top: 14px;
  background: var(--hcp);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }

.tag {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
}
.live { background: #d7f3e4; color: var(--ok); }
.soon-tag { background: var(--paper-2); color: var(--muted); }
.writes { background: #d7f3e4; color: var(--ok); }
.reads { background: #dce8ff; color: var(--hcp); }
.office { background: #f6e1c8; color: var(--warn); }

blockquote {
  margin: 8px 0 0;
  padding: 12px 14px;
  background: var(--paper-2);
  border-left: 3px solid var(--hcp);
  border-radius: 0 12px 12px 0;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
}

.toc {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 22px 0 0;
  max-width: 720px;
  font-size: 13px;
}
.toc a {
  color: #f6f0e4;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 183, 6, 0.45);
}
.toc a:hover { border-bottom-color: var(--gold); }

body.jobber .hero {
  background: linear-gradient(150deg, #012d3a, #0a4a3c 58%, #041c22);
}
body.jobber blockquote { border-left-color: var(--jb); }

.fail {
  background: #f6e1c8;
  color: var(--warn);
  border-radius: 8px;
  padding: 1px 7px;
  font-size: 12px;
  font-weight: 700;
}

ol, ul { margin: 8px 0 0; padding-left: 18px; }
li { margin: 6px 0; }

.dark {
  background: var(--ink);
  color: #f6f0e4;
  border: 0;
}
.dark a { color: var(--gold); }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; word-break: break-all; }

.loom {
  position: relative;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  background: #04182c;
}
.loom iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.toc {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 22px 0 0;
  max-width: 720px;
  font-size: 13px;
}
.toc a {
  color: #f6f0e4;
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 240, 228, 0.28);
}
.toc a:hover { border-bottom-color: var(--gold); color: var(--gold); }
blockquote.jb { border-left-color: var(--jb); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 880px) {
  .hero { padding: 32px 20px; }
  .g3, .g2, .g4 { grid-template-columns: 1fr; }
  footer, .top { flex-direction: column; align-items: flex-start; }
}
