@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Libre+Caslon+Display&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink: #07131a;
  --ink2: #0b1a22;
  --paper: #f2f0eb;
  --white: #f7f6f2;
  --muted: #91a0a8;
  --line: #3b4b53;
  --paper-line: #c2c3c0;
  --blue: #8bc8ed;
  --green: #7af47b;
  --red: #ff503f;
  --amber: #ff9f1c;
  --yellow: #d8c861;
  --serif: "Libre Caslon Display", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
  --mono: "DM Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--white); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
.dark { background: radial-gradient(circle at 55% 5%, #0e222c 0, var(--ink) 45%); }
.light { background: var(--paper); color: var(--ink); }
code { font-family: var(--mono); font-size: .95em; }

/* Header ------------------------------------------------------------------ */
.site-header {
  min-height: 84px; display: grid; grid-template-columns: 230px 1fr 180px;
  align-items: center; gap: 28px; padding: 15px 4%; border-bottom: 1px solid #314049;
  background: var(--ink); position: relative; z-index: 2;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 32px/1 var(--serif); letter-spacing: .02em; }
.brand-sub { margin-top: 4px; font: 12px/1 var(--mono); letter-spacing: .08em; }
nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 4vw, 55px); }
nav > a:not(.button) { font: 12px var(--mono); text-transform: uppercase; }
.header-meta { margin: 0; color: #9caab1; font: 10px/1.55 var(--mono); justify-self: end; }

/* Buttons ----------------------------------------------------------------- */
.button {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
  gap: 24px; padding: 0 26px; border: 1px solid #cfd4d5; border-radius: 3px; font: 600 13px var(--mono);
  letter-spacing: .02em; text-transform: uppercase; transition: .18s ease;
}
.button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.button-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.button-outline { background: transparent; color: var(--white); }
.button-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.button-small { min-height: 40px; padding: 0 22px; font-size: 11px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:hover { transform: none; }
}

/* Hero -------------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; padding: 48px 4% 28px; }
.hero-copy { padding-top: 25px; }
.eyebrow, .section-kicker, .section-heading > span { margin: 0; font: 13px var(--mono); letter-spacing: .06em; }
.live { color: var(--green); margin-left: 10px; }
h1 { margin: 14px 0 12px; font: 76px/.9 var(--serif); letter-spacing: -.025em; }
.hero-lede { max-width: 610px; font-size: 18px; line-height: 1.55; margin: 0 0 24px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.micro { margin: 18px 0 0; color: var(--muted); font: 10px var(--mono); letter-spacing: .04em; }

/* Live feed panel --------------------------------------------------------- */
.panel { border: 1px solid #53646c; border-radius: 3px; background: rgba(4,15,21,.35); }
.feed { align-self: start; overflow: hidden; }
.panel-title { display: flex; justify-content: space-between; margin: 0; padding: 15px 18px; border-bottom: 1px solid #31434c; font: 15px var(--mono); }
.feed-rows { list-style: none; margin: 0; padding: 0; }
.feed-row { display: grid; grid-template-columns: 112px 65px 1fr 95px 50px; align-items: center; gap: 4px; min-height: 30px; padding: 0 18px; border-bottom: 1px solid #263841; font: 11px var(--mono); }
.feed-row time { color: var(--white); }
.feed-row:hover { background: rgba(139,200,237,.06); }
.feed-head { color: var(--muted); font-size: 9px; }
.feed-head:hover { background: none; }
.feed-row b { color: var(--blue); font-weight: 400; }
.feed-row em { font-style: normal; }
.critical { color: var(--red); }
.high { color: var(--amber); }
.medium { color: var(--yellow); }
.feed-foot { color: var(--muted); margin: 0; padding: 13px 18px; font: 10px var(--sans); }
.feed-foot a { text-decoration: underline; }
.feed-empty { margin: 0; padding: 28px 18px; font: 16px var(--serif); color: var(--white); }

/* Metrics strip ----------------------------------------------------------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #35464f; border-bottom: 1px solid #35464f; padding: 22px 4%; }
.metric { min-height: 72px; display: flex; align-items: center; gap: 22px; padding: 0 28px; border-right: 1px solid #53636b; }
.metric:first-child { padding-left: 0; }
.metric:last-child { border-right: 0; }
.metric-icon { font-size: 33px; font-family: var(--serif); }
.metric div { display: flex; flex-direction: column; }
.metric strong { font: 25px var(--mono); }
.metric strong.p50 { font-size: 21px; }
.metric b { margin-top: 5px; font: 11px var(--mono); letter-spacing: .06em; }
.metric small { margin-top: 5px; color: var(--muted); font-size: 11px; }

/* Problem ----------------------------------------------------------------- */
.problem { padding: 28px 4% 20px; }
.problem h2, .uses h2, .pricing h2, .coverage h2, .faq h2, .samples h2 { margin: 0 0 25px; font: 42px/1.05 var(--serif); }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.problem article { display: flex; gap: 24px; min-height: 100px; padding: 10px 4%; border-right: 1px solid var(--paper-line); }
.problem article:first-child { padding-left: 0; }
.problem article:last-child { border-right: 0; }
.line-icon { font: 38px var(--serif); }
.problem h3 { margin: 0 0 8px; font: 15px var(--mono); letter-spacing: .04em; }
.problem p { margin: 0; font-size: 14px; line-height: 1.45; }
.problem-close { text-align: center; font: bold 23px var(--serif); margin: 12px 0 0; }

/* Alert card -------------------------------------------------------------- */
.alert-section { padding: 27px 4% 32px; }
.section-kicker { display: flex; justify-content: space-between; margin-bottom: 10px; }
.section-kicker span:last-child, .section-heading > span { color: var(--muted); font-size: 9px; }
.alert-card { padding: 16px 18px 20px; }
.alert-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid #31434c; font: 11px var(--mono); }
.alert-top time { color: var(--white); }
.badge { display: inline-block; padding: 4px 11px; border-radius: 2px; }
.critical-bg { background: var(--red); color: white; }
.high-bg { background: var(--amber); color: var(--ink); }
.medium-bg { background: var(--yellow); color: var(--ink); }
.score { color: #ff745f; margin-left: 12px; border: 1px solid #344852; padding: 4px 9px; }
.caption { color: var(--muted); margin-left: 12px; }
.red { color: var(--red); }
.alert-name { margin: 10px 0 4px; font: 26px var(--serif); }
.alert-type { margin: 0; padding-bottom: 10px; border-bottom: 1px solid #31434c; font: 14px var(--mono); letter-spacing: .06em; }
.alert-grid { display: grid; grid-template-columns: 1fr 1fr; }
.alert-grid > div { padding: 15px 0 0; }
.alert-grid > div:first-child { padding-right: 38px; }
.alert-grid > div:last-child { border-left: 1px solid #31434c; padding-left: 38px; }
.alert-grid h4 { margin: 0 0 8px; font: 11px var(--mono); }
.alert-grid h4 small { color: var(--muted); }
.serif-copy, blockquote { margin: 0; font: 18px/1.35 var(--serif); }
.tags { display: flex; gap: 8px; margin: 17px 0 0; padding: 0; list-style: none; flex-wrap: wrap; }
.tags li { background: #152630; border: 1px solid #2b3c45; padding: 6px 10px; font: 9px var(--mono); }
.tags b { font-weight: 400; color: var(--blue); }
blockquote { font-size: 16px; }
blockquote + blockquote { margin-top: 12px; }
blockquote cite { display: block; margin-bottom: 4px; color: var(--muted); font: 9px var(--mono); font-style: normal; }
.source-foot { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 12px; color: var(--muted); font: 9px var(--mono); }
.source-foot time { color: inherit; }

/* Coverage table ---------------------------------------------------------- */
.coverage { padding: 22px 4% 40px; border-top: 1px solid #35464f; }
.taxonomy { width: 100%; border-collapse: collapse; border: 1px solid #53646c; border-radius: 3px; background: rgba(4,15,21,.35); font: 11px var(--mono); }
.taxonomy th, .taxonomy td { padding: 8px 18px; text-align: left; border-bottom: 1px solid #263841; vertical-align: top; }
.taxonomy th { color: var(--muted); font-size: 9px; font-weight: 400; letter-spacing: .06em; }
.taxonomy td:first-child { color: var(--blue); white-space: nowrap; }
.taxonomy .num { text-align: center; }
.taxonomy tbody tr:last-child td { border-bottom: 0; }

/* Uses -------------------------------------------------------------------- */
.uses { padding: 22px 4% 40px; border-top: 1px solid #35464f; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.section-heading h2 { margin-bottom: 18px; }
.uses-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.use-card { padding: 17px; min-height: 245px; display: flex; flex-direction: column; }
.use-title { display: grid; grid-template-columns: 42px 1fr 30px; gap: 14px; align-items: start; }
.num { color: var(--muted); border-right: 1px solid #41515a; font: 16px var(--mono); padding: 5px 12px 5px 0; }
.use-title h3 { margin: 2px 0 4px; font: 17px var(--mono); }
.use-title p { margin: 0; font-size: 12px; color: #d5d9da; }
.arrow { font-size: 28px; }
.use-card ul { list-style: "✓  "; padding-left: 26px; margin: 25px 0 28px; font-size: 13px; line-height: 2; flex: 1; }
.use-card > a { font: 11px var(--mono); text-transform: uppercase; }

/* Pricing ----------------------------------------------------------------- */
.pricing { text-align: center; padding: 70px 4% 60px; }
.dark-text { color: #4d5c63; }
.pricing h2 { margin: 10px 0; }
.pricing-lede { max-width: 640px; margin: 0 auto 36px; font-size: 16px; line-height: 1.5; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1080px; margin: 0 auto; text-align: left; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 26px; border: 1px solid var(--paper-line); border-radius: 3px; background: #faf9f6; }
.plan h3 { margin: 0 0 6px; font: 15px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.plan .price { margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--paper-line); }
.plan .amount { font: 42px/1 var(--serif); letter-spacing: -.02em; }
.plan .period { margin-left: 6px; font: 11px var(--mono); color: #4d5c63; }
.plan ul { list-style: "✓  "; margin: 0 0 26px; padding-left: 22px; font-size: 13px; line-height: 2; flex: 1; }
.plan .button { width: 100%; }
.plan-tag { position: absolute; top: -12px; left: 26px; margin: 0; padding: 4px 10px; background: var(--red); color: white; border-radius: 2px; font: 9px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.plan-highlight { background: var(--ink); color: var(--white); border-color: var(--ink); }
.plan-highlight .price { border-color: #31434c; }
.plan-highlight .period { color: var(--muted); }

/* FAQ --------------------------------------------------------------------- */
.faq { padding: 20px 4% 60px; border-top: 1px solid var(--paper-line); }
.faq dl { margin: 0; }
.faq dt, .faq dd { border-top: 1px solid var(--paper-line); padding: 18px 0; }
.faq dt { font: 13px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.faq dd { margin: 0; font: 18px/1.4 var(--serif); }
@media (min-width: 901px) {
  .faq dl { display: grid; grid-template-columns: 1fr 2fr; column-gap: 40px; }
  .faq dd { padding-left: 0; }
}

/* Samples page ------------------------------------------------------------ */
.samples { padding: 48px 4% 60px; }
.samples h1 { font-size: 56px; }
.samples h2 { margin: 40px 0 14px; font-size: 26px; color: var(--muted); }
.alert-list { display: grid; gap: 20px; }

/* Legal pages ------------------------------------------------------------- */
.legal { padding: 48px 4% 80px; max-width: 100%; }
.legal > * { max-width: 760px; }
.legal h1 { font-size: 54px; }
.legal h2 { margin: 32px 0 8px; font: 15px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.legal p { font-size: 16px; line-height: 1.6; }
.legal a { text-decoration: underline; }
.legal ul { font-size: 16px; line-height: 1.6; padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .small-print { margin-top: 32px; font-size: 13px; color: #4d5c63; }
.contact-list { margin: 28px 0 0; }
.contact-list dt { font: 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; margin-top: 22px; }
.contact-list dd { margin: 6px 0 0; font-size: 16px; line-height: 1.6; }

/* Footer ------------------------------------------------------------------ */
footer { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: 20px; padding: 35px 4%; color: var(--muted); font: 10px/1.6 var(--mono); border-top: 1px solid #35464f; background: var(--ink); }
footer p { margin: 0; }
footer > p:last-child { justify-self: end; text-align: right; }
footer a:not(.brand) { text-decoration: underline; }
footer .brand { color: var(--white); }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav a:not(.button) { display: none; }
  .header-meta { display: none; }
  .hero { grid-template-columns: 1fr; }
  h1 { font-size: clamp(54px, 14vw, 76px); }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: 0; }
  .problem-grid, .uses-grid, .alert-grid, .plans { grid-template-columns: 1fr; }
  .problem article { border-right: 0; border-bottom: 1px solid var(--paper-line); padding-left: 0; }
  .alert-grid > div:last-child { border-left: 0; border-top: 1px solid #31434c; padding-left: 0; margin-top: 16px; }
  .alert-grid > div:first-child { padding-right: 0; }
  .taxonomy th.num, .taxonomy td.num { white-space: nowrap; }
}
@media (max-width: 600px) {
  .site-header { padding: 14px 20px; }
  .brand-name { font-size: 25px; }
  nav .button { padding: 0 12px; }
  .hero, .problem, .alert-section, .coverage, .uses, .pricing, .faq, .samples, .legal, footer { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 24px; }
  .metrics { grid-template-columns: 1fr; padding: 10px 20px; }
  .metric { border-right: 0; border-bottom: 1px solid #53636b; padding: 15px 0; }
  .metric:last-child { border-bottom: 0; }
  .feed { overflow-x: auto; }
  .feed-row { min-width: 620px; }
  .alert-top, .source-foot, .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .section-kicker span:last-child, .section-heading > span { display: none; }
  .coverage { overflow-x: auto; }
  .taxonomy { min-width: 620px; }
  .taxonomy th, .taxonomy td { padding: 8px 10px; }
  .samples h1, .legal h1 { font-size: 40px; }
  footer { grid-template-columns: 1fr; gap: 20px; }
  footer > p:last-child { justify-self: start; text-align: left; }
}

/* CTA modal --------------------------------------------------------------- */
.cta-modal { width: min(520px, calc(100vw - 32px)); padding: 0; border: 1px solid #53646c; border-radius: 3px; background: var(--ink2); color: var(--white); }
.cta-modal::backdrop { background: rgba(4, 15, 21, .78); }
.cta-modal form { display: flex; flex-direction: column; gap: 14px; padding: 26px 28px 28px; }
.cta-head { display: flex; justify-content: space-between; align-items: baseline; }
.cta-head h2 { margin: 0; font: 400 26px var(--serif); }
.cta-close { background: none; border: 0; color: var(--muted); font: 26px var(--sans); line-height: 1; cursor: pointer; padding: 0 2px; }
.cta-close:hover { color: var(--white); }
.cta-lede { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.cta-modal label { display: flex; flex-direction: column; gap: 6px; font: 600 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cta-modal input, .cta-modal select, .cta-modal textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #3b4b53; border-radius: 3px; background: var(--ink); color: var(--white);
  font: 14px var(--sans); text-transform: none; letter-spacing: 0;
}
.cta-modal input:focus, .cta-modal select:focus, .cta-modal textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.cta-modal textarea { resize: vertical; }
.cta-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cta-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.cta-alt { color: var(--muted); font-size: 12px; }
.cta-alt:hover { color: var(--white); }
.cta-status { margin: 0; min-height: 1em; font: 13px var(--mono); color: var(--muted); }
.cta-status.is-ok { color: var(--green); }
.cta-status.is-error { color: var(--red); }
.cta-modal button[disabled] { opacity: .6; cursor: default; }
.cta-modal [hidden] { display: none; }
