/* Violent Delights - visual system v3: the lecture theatre */

:root {
  --ink: #0b0d0b;
  --ink-2: #101310;
  --panel: #14180f;
  --panel-2: #191d13;
  --line: #2c2f22;
  --line-soft: #20241a;
  --brass: #b08d3e;
  --brass-dim: #7d6528;
  --parchment: #d8cfae;
  --dim: #9a9176;
  --faint: #6b6450;
  --blood: #8c2b1f;
  --blood-bright: #b23c2c;
  --verdigris: #4a7c59;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --serif: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  --display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
}

* { box-sizing: border-box; }

html { font-size: 17px; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint grain over everything, like old plate stock */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--blood); color: var(--parchment); }

/* shared card texture: paper grain plus a faint lamplight sheen from above */
.use-cases li, .model-card, .rate-card, .panel, .specimen,
blockquote, .waitlist, .code-block, .status-banner, .status-components,
.faq details, .log-entry, .incident {
  position: relative;
}

.use-cases li::after, .model-card::after, .rate-card::after, .panel::after,
.specimen::after, blockquote::after, .waitlist::after, .code-block::after,
.status-banner::after, .status-components::after, .faq details::after,
.log-entry::after, .incident::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

.use-cases li::before, .model-card::before, .rate-card::before, .panel::before,
.status-banner::before, .status-components::before, .faq details::before,
.log-entry::before, .incident::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 45% at 50% -12%, rgba(214, 170, 84, 0.05), transparent 70%);
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #e9e2c8;
}

a { color: inherit; }

a { text-decoration-color: var(--brass-dim); text-underline-offset: 3px; }
a:hover { color: #e9e2c8; }

/* ---------- masthead ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}

.site-header.scrolled {
  background: rgba(11, 13, 11, 0.92);
  border-bottom: 3px double var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--parchment);
  text-decoration: none;
  letter-spacing: 0.06em;
}

.logo em { color: var(--blood-bright); font-style: normal; }

.main-nav { display: flex; align-items: center; gap: 1.9rem; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--brass-dim);
  border-radius: 2px;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  color: var(--parchment);
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}

.nav-toggle:hover { color: var(--brass); border-color: var(--brass); }

.nav-toggle[aria-expanded="true"] {
  color: var(--brass);
  border-color: var(--brass);
  background: rgba(176, 141, 62, 0.1);
}

.main-nav a {
  color: var(--dim);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.main-nav a:hover { color: var(--parchment); }
.main-nav a[aria-current="page"] { color: var(--brass); }

.nav-cta {
  font-family: var(--mono) !important;
  font-size: 0.72rem !important;
  font-variant: normal !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
  color: var(--parchment) !important;
  border: 1px solid var(--brass-dim);
  padding: 0.45rem 1.1rem;
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s;
}

.nav-cta:hover { border-color: var(--brass); background: rgba(176, 141, 62, 0.1); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 9rem 0 5rem;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(11, 13, 11, 0.82), rgba(11, 13, 11, 0.96) 75%, var(--ink)),
    url("https://images.unsplash.com/photo-1636751179475-516561a802c4?crop=entropy&cs=srgb&fm=jpg&q=80&w=1800") center / cover no-repeat;
  filter: saturate(0.55) brightness(0.9);
  z-index: -2;
}

/* candle glow from above the demonstration bench */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 40% at 50% 6%, rgba(214, 170, 84, 0.14), transparent 65%),
    radial-gradient(ellipse 70% 45% at 50% 105%, rgba(140, 43, 31, 0.1), transparent 60%);
  z-index: -1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brass);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.45rem 0.2rem;
  margin-bottom: 2rem;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.3rem);
  line-height: 1.08;
  margin: 0 0 1.6rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
}

.hero h1 .hl-word {
  color: var(--blood-bright);
  font-style: italic;
}

.hero-sub {
  color: var(--dim);
  font-size: 1.3rem;
  max-width: 38rem;
  margin: 0 0 2.4rem;
}

.hero-sub::first-letter {
  font-family: "Fleur De Leah", var(--display);
  font-size: 5.0rem;
  line-height: 0.62;
  float: left;
  padding-right: 0.23em;
  margin-top: 0.85rem;
  color: var(--parchment);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65), 0 0 22px rgba(214, 170, 84, 0.12);
}

.hero-actions { display: flex; gap: 1.1rem; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-block;
  font-family: var(--serif);
  font-variant: small-caps;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.8rem 1.9rem;
  border-radius: 2px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn-red {
  background: var(--blood);
  color: #efe6cd;
  border: 1px solid var(--blood-bright);
}

.btn-red:hover {
  background: var(--blood-bright);
  box-shadow: 0 10px 34px rgba(140, 43, 31, 0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--brass-dim);
  color: var(--parchment);
}

.btn-ghost:hover { border-color: var(--brass); background: rgba(176, 141, 62, 0.08); transform: translateY(-1px); }

.hero-meta {
  margin-top: 3.2rem;
  display: flex;
  gap: 2.8rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--faint);
  letter-spacing: 0.05em;
}

.hero-meta strong {
  display: block;
  color: var(--brass);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

/* ---------- the demonstration plate (terminal) ---------- */

.terminal {
  background: #0a0c09;
  border: 1px solid var(--line);
  outline: 1px solid var(--line-soft);
  outline-offset: 5px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75);
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.7;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  background: var(--panel);
  border-bottom: 1px solid var(--line-soft);
}

.term-bar .c {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.term-bar .c:first-child { background: rgba(178, 60, 44, 0.75); }

.term-bar span {
  margin-left: auto;
  color: var(--faint);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.term-body { padding: 1.1rem 1.25rem 1.35rem; min-height: 19rem; }

.term-line { color: var(--dim); white-space: pre-wrap; word-break: break-word; }

.term-line .prompt { color: var(--blood-bright); }

.term-line .who { color: var(--faint); }

.term-line.refusal { color: #a3827a; }

.term-line.answer { color: var(--parchment); }

.term-line .hl { color: var(--verdigris); }

.term-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  background: var(--brass);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.term-divider {
  margin: 0.9rem 0;
  border: none;
  border-top: 1px dashed var(--line);
}

/* ---------- generic sections ---------- */

section { padding: 5.5rem 0; position: relative; }

/* engraved plate separator */
.rule {
  border: none;
  position: relative;
  height: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  background: linear-gradient(var(--line), var(--line)) center / calc(100% - 3rem) 1px no-repeat;
}

.rule::after {
  content: "\2726";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--brass-dim);
  background: var(--ink);
  padding: 0 0.9rem;
  font-size: 0.9rem;
  line-height: 1;
}

.sec-head { max-width: 42rem; margin-bottom: 3rem; }

.sec-head h2, section h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 1.1rem;
}

.sec-head p, .lead { color: var(--dim); font-size: 1.24rem; margin: 0; }

/* the dingy side room: panelled, lamplight from one side */
.bg-band {
  background:
    linear-gradient(100deg, rgba(11, 13, 11, 0.9) 30%, rgba(11, 13, 11, 0.97)),
    url("https://images.unsplash.com/photo-1565348395196-6472cb6c052b?crop=entropy&cs=srgb&fm=jpg&q=80&w=1600") center / cover fixed no-repeat;
  filter: none;
  border-top: 3px double var(--line);
  border-bottom: 3px double var(--line);
}

@media (max-width: 900px) {
  .bg-band { background-attachment: scroll; }
}

/* ---------- use cases: the practitioner's roster ---------- */

.use-cases {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(3, 1fr);
  counter-reset: case;
}

.use-cases li {
  position: relative;
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line);
  outline: 1px solid var(--line-soft);
  outline-offset: 4px;
  padding: 1.9rem 1.7rem;
  transition: transform 0.2s, border-color 0.2s;
}

.use-cases li:hover { transform: translateY(-3px); border-color: var(--brass-dim); }

.use-cases .num {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--brass-dim);
  display: block;
  margin-bottom: 0.8rem;
  line-height: 1;
}

.use-cases h3 { margin: 0 0 0.7rem; font-size: 1.45rem; }

.use-cases p { margin: 0; color: var(--dim); font-size: 1.12rem; }

/* ---------- model cards (legacy class, kept for compat) ---------- */

.model-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(3, 1fr);
}

.model-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.model-card:hover {
  transform: translateY(-4px);
  border-color: var(--brass-dim);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.model-card .lab {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.model-card h3 { margin: 0.5rem 0 0.75rem; font-size: 1.45rem; }

.model-card .model-str {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--blood-bright);
  margin-bottom: 1rem;
}

.model-card p { color: var(--dim); font-size: 1.1rem; margin: 0 0 1.5rem; }

.model-card .specs {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.model-card .specs .ctx {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--dim);
}

.model-card .specs .price {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--parchment);
}

.model-card .specs .price small { color: var(--faint); font-size: 0.7rem; }

/* ---------- cover list ---------- */

.cover-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  overflow: hidden;
}

.cover-list li {
  background: var(--ink-2);
  padding: 1.4rem 1.8rem;
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  font-size: 1.18rem;
}

.cover-list li .tick {
  font-family: var(--display);
  color: var(--brass);
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ---------- code block: the procedure, transcribed ---------- */

.code-block {
  position: relative;
  background: #080a07;
  border: 1px solid var(--line);
  outline: 1px solid var(--line-soft);
  outline-offset: 5px;
  margin-top: 2.2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.code-block .code-bar {
  display: flex;
  align-items: center;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--faint);
  letter-spacing: 0.08em;
}

.code-block pre {
  margin: 0;
  padding: 1.4rem 1.5rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.65;
  color: #c2bba0;
}

.code-block .tok-k { color: var(--blood-bright); }
.code-block .tok-s { color: #8fae7a; }
.code-block .tok-c { color: var(--faint); }

.copy-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.75rem;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.copy-btn:hover { color: var(--parchment); border-color: var(--brass-dim); }

/* ---------- waitlist ---------- */

.waitlist-sec { text-align: center; }

.waitlist {
  max-width: 40rem;
  margin: 0 auto;
  border: 3px double var(--brass-dim);
  padding: 3rem 2.5rem 2.6rem;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(214, 170, 84, 0.06), transparent 70%),
    var(--ink-2);
}

.waitlist h2 { margin: 0 0 0.9rem; }

.waitlist > .muted { margin: 0 auto 2rem; max-width: 34rem; color: var(--dim); font-size: 1.1rem; }

.waitlist form {
  display: flex;
  gap: 0.6rem;
  max-width: 30rem;
  margin: 0 auto;
  padding: 0.4rem;
  background: var(--ink);
  border: 1px solid var(--line);
  transition: border-color 0.2s;
}

.waitlist form:focus-within { border-color: var(--brass); }

.waitlist input[type="email"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--parchment);
  padding: 0.6rem 0.9rem;
  font-size: 1rem;
  font-family: var(--serif);
}

.waitlist input[type="email"]:focus { outline: none; }

.waitlist input[type="email"]::placeholder { color: var(--faint); font-style: italic; }

.waitlist button {
  background: var(--blood);
  border: 1px solid var(--blood-bright);
  color: #efe6cd;
  font-family: var(--serif);
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.waitlist button:disabled {
  background: var(--line);
  border-color: var(--line);
  color: var(--faint);
  cursor: not-allowed;
}

.waitlist button:not(:disabled):hover { background: var(--blood-bright); }

.waitlist .form-note {
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--faint);
  min-height: 1.4em;
  white-space: pre-line;
}

.waitlist .form-note.ok { color: var(--verdigris); }

.waitlist .form-note.err { color: var(--blood-bright); }

/* ---------- pricing: the tariff ledger ---------- */

.rate-cards {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(3, 1fr);
}

.rate-card {
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line);
  outline: 1px solid var(--line-soft);
  outline-offset: 4px;
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}

.rate-card:hover { transform: translateY(-4px); border-color: var(--brass-dim); }

.rate-card .lab {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.rate-card h3 { margin: 0.5rem 0 0.25rem; font-size: 1.45rem; }

.rate-card .ctx {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--dim);
  margin-bottom: 1.5rem;
}

.rate-rows {
  margin-top: auto;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.1rem;
  display: grid;
  gap: 0.7rem;
}

.rate-rows .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.1rem;
}

.rate-rows .row .k { color: var(--dim); font-variant: small-caps; letter-spacing: 0.06em; }

.rate-rows .row .v {
  font-family: var(--mono);
  color: var(--parchment);
}

.rate-rows .row .v small { color: var(--faint); }

.rate-rows .row.out .v { color: var(--blood-bright); }

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  outline: 1px solid var(--line-soft);
  outline-offset: 4px;
  margin-top: 2.8rem;
  background: var(--ink-2);
}

table.rates {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.12rem;
  min-width: 600px;
}

table.rates th,
table.rates td {
  text-align: left;
  padding: 1rem 1.3rem;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

table.rates th {
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brass);
  border-bottom: 3px double var(--line);
}

table.rates tr:last-child td { border-bottom: none; }

table.rates tbody tr { transition: background 0.15s; }

table.rates tbody tr:hover { background: var(--panel); }

table.rates td.num { font-family: var(--mono); font-size: 0.9rem; }

table.rates td .muted { font-size: 0.85rem; color: var(--faint); }

/* On narrow screens the pricing ledger reflows into stacked label:value rows,
   one card per model. The column label comes from each cell's data-label.
   Scoped to .rates-responsive so the numeric ledgers keep their scroll. */
@media (max-width: 760px) {
  .table-scroll.table-stack { overflow-x: visible; }

  table.rates-responsive { min-width: 0; }

  table.rates-responsive thead { display: none; }

  table.rates-responsive,
  table.rates-responsive tbody,
  table.rates-responsive tr,
  table.rates-responsive td { display: block; width: 100%; }

  table.rates-responsive tr {
    padding: 1.1rem 0 0.6rem;
    border-bottom: 1px solid var(--line);
  }

  table.rates-responsive tr:last-child { border-bottom: none; }

  table.rates-responsive td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.2rem;
    padding: 0.4rem 1.3rem;
    border-bottom: none;
    white-space: normal;
  }

  table.rates-responsive td::before {
    content: attr(data-label);
    font-family: var(--mono);
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--brass);
    flex-shrink: 0;
  }

  /* the model name is the card heading, not a labelled row */
  table.rates-responsive td[data-label="Model"] {
    font-family: var(--display);
    font-size: 1.3rem;
    color: #e9e2c8;
    padding-bottom: 0.6rem;
  }

  table.rates-responsive td[data-label="Model"]::before { content: none; }
}

/* ---------- worked example (legacy) ---------- */

.example {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blood);
  padding: 1.75rem 2rem;
  margin-top: 2rem;
  font-size: 1rem;
}

.example p { margin: 0 0 0.75rem; }

.example p:last-child { margin-bottom: 0; }

.example .mono {
  font-family: var(--mono);
  color: var(--blood-bright);
}

/* ---------- fine print ---------- */

.fine-print {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  overflow: hidden;
}

.fine-print li {
  background: var(--ink-2);
  padding: 1.25rem 1.8rem;
  font-size: 1.14rem;
  color: var(--dim);
}

.fine-print strong { color: var(--parchment); font-weight: 600; }

/* ---------- testimonials: sworn statements ---------- */

.quote-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(3, 1fr);
}

blockquote {
  margin: 0;
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line);
  padding: 2rem 1.8rem 1.8rem;
  font-size: 1.15rem;
  position: relative;
}

blockquote::before {
  content: "\201C";
  position: absolute;
  top: 0.4rem;
  left: 1.2rem;
  font-family: var(--display);
  font-size: 3.4rem;
  color: var(--brass-dim);
  line-height: 1;
}

blockquote p { margin: 1rem 0 0; color: var(--parchment); font-style: italic; }

blockquote footer {
  margin-top: 1.3rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--faint);
}

blockquote footer::before { content: "--- "; color: var(--brass-dim); }

/* ---------- faq ---------- */

.faq details {
  border: 1px solid var(--line);
  margin-bottom: 0.9rem;
  background: var(--panel);
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  padding: 1.2rem 1.5rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: #e9e2c8;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--brass);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  margin: 0;
  padding: 0 1.5rem 1.5rem;
  color: var(--dim);
  font-size: 1.14rem;
}

/* ---------- info split panels ---------- */

.split {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr 1fr;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  outline: 1px solid var(--line-soft);
  outline-offset: 4px;
  padding: 2.1rem;
}

.panel h2 { font-size: 1.45rem; margin: 0 0 1rem; }

.panel p { color: var(--dim); font-size: 1.16rem; margin: 0 0 1rem; }

.panel p:last-child { margin-bottom: 0; }

/* ---------- specimen drawer ---------- */

.specimen-drawer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  padding: 2.4rem 0 0;
}

.specimen {
  background: var(--ink-2);
  border: 1px solid var(--line);
  outline: 1px solid var(--line-soft);
  outline-offset: 4px;
  padding: 1.4rem 1.5rem;
  position: relative;
}

.specimen::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  right: 0.9rem;
  width: 8px;
  height: 8px;
  border: 1px solid var(--brass-dim);
  transform: rotate(45deg);
}

.spec-no {
  display: block;
  font-family: var(--mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brass);
  margin-bottom: 0.6rem;
}

.specimen strong {
  display: block;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #e9e2c8;
}

.spec-origin {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-bottom: 0.8rem;
}

.specimen p { margin: 0; color: var(--dim); font-size: 1.1rem; }

@media (max-width: 760px) {
  .specimen-drawer { grid-template-columns: 1fr; }
}

/* ---------- status page ---------- */

.status-banner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  outline: 1px solid var(--line-soft);
  outline-offset: 4px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}

.status-banner strong { font-family: var(--display); font-size: 1.35rem; font-weight: 600; color: #e9e2c8; }

.status-banner p { margin: 0.2rem 0 0; color: var(--dim); font-size: 1.08rem; }

/* a wax-seal pip instead of an LED: brass ring, state shown by the fill */
.status-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  flex-shrink: 0;
  background: radial-gradient(circle at 38% 34%, #6f9a7d 0 26%, var(--verdigris) 58%, #33523e 100%);
  border: 1px solid var(--brass-dim);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(216, 207, 174, 0.06);
}

.status-banner.degraded .status-dot { background: radial-gradient(circle at 38% 34%, #d3b45a 0 26%, #a3852f 58%, #6d5a1e 100%); }
.status-banner.down .status-dot { background: radial-gradient(circle at 38% 34%, #c05a48 0 26%, var(--blood) 58%, #551a12 100%); }

.status-components {
  border: 1px solid var(--line);
  outline: 1px solid var(--line-soft);
  outline-offset: 4px;
  overflow: hidden;
  background: var(--ink-2);
}

.status-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--line-soft);
}

.status-row:last-child { border-bottom: none; }

.status-name { min-width: 13rem; }

.status-name strong { display: block; font-family: var(--display); font-size: 1.1rem; font-weight: 600; color: #e9e2c8; }

.status-name .muted { font-family: var(--mono); font-size: 0.7rem; color: var(--faint); }

.status-bars {
  display: flex;
  gap: 2px;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
  overflow: hidden;
}

.status-bars .bar {
  width: 3px;
  min-width: 1px;
  height: 22px;
  border-radius: 1px;
  background: #54614c;
  opacity: 0.75;
  flex: 0 1 auto;
}

.status-bars .bar.s2 { background: #8a713a; opacity: 0.9; }
.status-bars .bar.s1 { background: #8a5330; opacity: 0.9; }
.status-bars .bar.s0 { background: var(--blood); opacity: 0.95; }

.bar-tip {
  display: none;
  position: absolute;
  z-index: 200;
  max-width: 260px;
  background: var(--panel-2);
  border: 1px solid var(--brass-dim);
  padding: 0.7rem 0.9rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.55;
  pointer-events: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.bar-tip .tip-date {
  color: var(--faint);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.bar-tip .tip-note { color: var(--parchment); }

.bar-tip .tip-comment {
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-style: italic;
}

.bars-caption {
  margin: 0.9rem 0 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--faint);
  letter-spacing: 0.06em;
  text-align: right;
}

.status-pill {
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.85rem;
  border-radius: 2px;
  white-space: nowrap;
}

.status-pill.ok { color: #7ea78b; background: rgba(74, 124, 89, 0.08); border: 1px solid rgba(74, 124, 89, 0.28); }
.status-pill.resolved { color: var(--dim); background: var(--panel-2); border: 1px solid var(--line); }
.status-pill.degraded { color: #b3944a; background: rgba(163, 133, 47, 0.08); border: 1px solid rgba(163, 133, 47, 0.28); }

/* ---------- incident log ---------- */

.log-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.log-entry {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.25rem 1.5rem;
}

.log-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.log-date { color: var(--faint); }

.log-comp { color: var(--dim); margin-left: auto; }

.log-sev {
  padding: 0.15rem 0.6rem;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.64rem;
}

.log-sev.s2 { color: #b3944a; background: rgba(163, 133, 47, 0.08); border: 1px solid rgba(163, 133, 47, 0.28); }
.log-sev.s1 { color: #a06a3a; background: rgba(138, 83, 48, 0.08); border: 1px solid rgba(138, 83, 48, 0.28); }
.log-sev.s0 { color: #b25747; background: rgba(140, 43, 31, 0.1); border: 1px solid rgba(140, 43, 31, 0.32); }

.log-entry h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.log-comment { margin: 0; color: var(--dim); font-size: 1.1rem; }

@media (max-width: 640px) {
  .log-comp { margin-left: 0; width: 100%; }
}

.incident {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
}

.incident-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.incident-head strong { font-size: 1rem; }

.incident-head .muted { font-family: var(--mono); font-size: 0.75rem; margin-left: auto; }

.incident p { margin: 0; color: var(--dim); font-size: 1.1rem; }

@media (max-width: 640px) {
  .status-row { flex-wrap: wrap; gap: 0.75rem; }
  .status-bars { justify-content: flex-end; order: 3; width: 100%; }
  .status-bars .bar.bar-old { display: none; }
  .incident-head .muted { margin-left: 0; width: 100%; }
}

/* ---------- account pages (dashboard, billing) ---------- */

.account-main { padding-top: 7.5rem; }

/* account pages stay hidden until the session check confirms them */
body.account-page .site-header,
body.account-page .account-main,
body.account-page .site-footer { visibility: hidden; }

body.account-page.auth-ok .site-header,
body.account-page.auth-ok .account-main,
body.account-page.auth-ok .site-footer { visibility: visible; }

.account-head { margin-bottom: 2.5rem; }

.account-head h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  margin: 0;
}

.account-sec { padding: 2.5rem 0; }

.mono-note {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.muted { color: var(--faint); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-bottom: 2rem;
}

.stat {
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line);
  outline: 1px solid var(--line-soft);
  outline-offset: 4px;
  padding: 1.5rem 1.7rem;
}

.stat .stat-k {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--faint);
  margin-bottom: 0.5rem;
}

.stat .stat-v {
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 500;
  color: #e9e2c8;
  line-height: 1;
}

.key-form {
  display: flex;
  gap: 0.6rem;
  max-width: 34rem;
  margin-bottom: 0.5rem;
  padding: 0.4rem;
  background: var(--ink);
  border: 1px solid var(--line);
  transition: border-color 0.2s;
}

.key-form:focus-within { border-color: var(--brass); }

.key-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--parchment);
  padding: 0.6rem 0.9rem;
  font-size: 1rem;
  font-family: var(--serif);
}

.key-form input:focus { outline: none; }

.key-form input::placeholder { color: var(--faint); font-style: italic; }

.key-form button {
  background: var(--blood);
  border: 1px solid var(--blood-bright);
  color: #efe6cd;
  font-family: var(--serif);
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.key-form button:not(:disabled):hover { background: var(--blood-bright); }

.key-form button:disabled {
  background: var(--line);
  border-color: var(--line);
  color: var(--faint);
  cursor: not-allowed;
}

.form-note { margin: 0.6rem 0 1.4rem; min-height: 1.4em; color: var(--faint); white-space: pre-line; }

.form-note.ok { color: var(--verdigris); }

.form-note.err { color: var(--blood-bright); }

.row-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.row-btn:hover:not(:disabled) { color: var(--blood-bright); border-color: var(--blood); }

.row-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.billing-current { display: flex; align-items: baseline; gap: 2rem; flex-wrap: wrap; }

.billing-figure {
  font-family: var(--display);
  font-size: 3.2rem;
  font-weight: 500;
  color: #e9e2c8;
  line-height: 1;
}

.billing-currency { color: var(--faint); }

@media (max-width: 640px) {
  .stat-grid { grid-template-columns: 1fr; }
  .key-form { flex-direction: column; }
  .key-form button { padding: 0.75rem; }
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 3px double var(--line);
  padding: 3rem 0 2.5rem;
  margin-top: 2rem;
  font-size: 0.92rem;
  color: var(--faint);
  background: var(--ink-2);
}

.site-footer .foot-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }

.site-footer nav a {
  color: var(--dim);
  text-decoration: none;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.site-footer nav a:hover { color: var(--parchment); }

.site-footer .legal {
  border-top: 1px solid var(--line-soft);
  padding-top: 1.5rem;
  font-size: 0.82rem;
}

@media (prefers-reduced-motion: reduce) {
  .term-cursor, .status-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .use-cases, .model-grid, .rate-cards, .quote-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  section { padding: 3.75rem 0; }
  .hero { min-height: auto; padding: 7.5rem 0 3.5rem; }
  .use-cases, .model-grid, .rate-cards, .quote-grid { grid-template-columns: 1fr; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0;
    background: var(--ink);
    border-bottom: 3px double var(--line);
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1.05rem;
  }
  .main-nav a:hover { background: var(--panel); }
  .nav-cta { display: block; margin: 0.5rem 1.5rem; width: auto; text-align: center; }
  .nav-toggle { display: flex; }
  .hero-meta { gap: 1.5rem; flex-wrap: wrap; }
  .waitlist { padding: 2.2rem 1.4rem; }
  .waitlist form { flex-direction: column; }
  .waitlist button { padding: 0.75rem; }
}
