/* =====================================================================
   DARKROOM — shared styling for every page that is not the landing page.
   Mirrors index.html's tokens and type so the subpages read as the same
   site: near-black navy ground, a warm safelight behind the content, sand
   text, gold for anything that matters. Replaces the old legal.css.
   Palette: blue #344B73 · gold #DAA74E · sand #DECBA0 · brown #80503B
   ===================================================================== */

:root {
  --blue: #344B73;
  --blue-lift: #4c6796;
  --gold: #DAA74E;
  --sand: #DECBA0;
  --brown: #80503B;

  --void: #0a111d;
  --void-2: #0f1a2b;
  --panel: #141f33;
  --text: #e9e0cb;
  --text-70: rgba(233, 224, 203, 0.70);
  --text-45: rgba(233, 224, 203, 0.45);
  --line: rgba(222, 203, 160, 0.14);
  --line-strong: rgba(222, 203, 160, 0.30);

  --nav: 66px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--void); }

body {
  background: var(--void);
  color: var(--text);
  font-family: 'Instrument Sans', system-ui, sans-serif;
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* the safelight — static here, since a content page has no scroll story */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(46vmax 40vmax at 78% -6%, rgba(128, 80, 59, 0.30), transparent 64%),
    radial-gradient(58vmax 48vmax at 8% 104%, rgba(52, 75, 115, 0.40), transparent 70%);
}
/* film grain */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 950; opacity: .34;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0.9 0 0 0 0 0.75 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='280' height='280' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: 780px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }

a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #ecbc66; }

.serif { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
.mono {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
}

/* ---------- nav ---------- */
nav {
  position: sticky; top: 0; z-index: 130;
  /* the same fade as the landing page: no blur, no rule, nothing that ends
     on a hard line and reads as a box */
  background: linear-gradient(180deg,
    var(--void) 0%,
    rgba(10, 17, 29, 0.97) 45%,
    rgba(10, 17, 29, 0.80) 74%,
    rgba(10, 17, 29, 0.55) 100%);
}
nav::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 100%; height: 52px;
  background: linear-gradient(180deg,
    rgba(10, 17, 29, 0.55) 0%,
    rgba(10, 17, 29, 0.22) 45%,
    rgba(10, 17, 29, 0) 100%);
  pointer-events: none;
}
nav .wrap {
  max-width: 1140px;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav);
}
.logo {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--text);
  font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em;
}
.logo:hover { color: var(--text); }
.logo img { width: 30px; height: 30px; display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  text-decoration: none; font-size: 0.92rem; color: var(--text-70);
  transition: color .15s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.btn, .nav-links a.btn:hover { color: #0a111d; }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Instrument Sans', sans-serif; font-weight: 600;
  font-size: 0.95rem; text-decoration: none;
  background: var(--gold); color: #0a111d;
  border: none; border-radius: 999px; padding: 12px 26px; cursor: pointer;
  transition: transform .18s cubic-bezier(.22,1,.36,1), box-shadow .18s, background .15s;
  box-shadow: 0 10px 26px -12px rgba(0, 0, 0, 0.9);
}
.btn:hover { background: #ecbc66; color: #0a111d; transform: translateY(-2px); box-shadow: 0 0 26px -4px rgba(218, 167, 78, 0.55); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn.small { padding: 9px 20px; font-size: 0.88rem; }
.btn.big { padding: 16px 34px; font-size: 1.03rem; }
.btn.ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line-strong); box-shadow: none;
}
.btn.ghost:hover { background: rgba(222, 203, 160, 0.08); color: var(--sand); }

/* ---------- page body ---------- */
main { padding: 70px 0 100px; position: relative; z-index: 2; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; color: var(--text); }
h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); margin-bottom: 10px; }
h1 .serif { color: var(--gold); letter-spacing: 0; }
h2 { font-size: 1.3rem; margin: 44px 0 12px; }
h3 { font-size: 1.06rem; margin: 26px 0 8px; }

.updated {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 44px;
}

p { margin-bottom: 14px; color: var(--text-70); }
p strong, li strong, dt strong { color: var(--text); font-weight: 600; }
ul { margin: 0 0 14px 20px; color: var(--text-70); }
ul li::marker { color: var(--gold); }
li { margin-bottom: 7px; }
ol { margin: 0 0 14px 20px; color: var(--text-70); }
ol li::marker { color: var(--gold); font-family: 'IBM Plex Mono', monospace; font-size: 0.85em; }
dl { margin-bottom: 14px; }
dt { font-weight: 600; margin-top: 12px; color: var(--text); }
dd { color: var(--text-70); margin-left: 0; }
code {
  font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 0.88em;
  background: rgba(222, 203, 160, 0.09); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 4px; color: var(--sand);
}
hr { border: none; border-top: 1px solid var(--line); margin: 36px 0; }

.lead { font-size: 1.1rem; color: var(--text-70); margin-bottom: 10px; }

/* ---------- panels ---------- */
.card {
  background: linear-gradient(160deg, rgba(52, 75, 115, 0.26), rgba(20, 31, 51, 0.5));
  border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 26px;
  transition: border-color .3s;
}
.card:hover { border-color: var(--line-strong); }
.card h2 { margin-top: 0; }
.card ul { margin-left: 18px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 16px 0 8px; }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 14px 0; }
@media (max-width: 620px) { .cols { grid-template-columns: 1fr; } }
.col {
  background: linear-gradient(160deg, rgba(52, 75, 115, 0.22), rgba(20, 31, 51, 0.45));
  border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px;
}
.col h3 { margin: 0 0 10px; font-size: 1.04rem; }
.col ul { margin: 0 0 0 18px; }

/* pull-quote style verdict block */
.verdict {
  background: linear-gradient(160deg, rgba(52, 75, 115, 0.3), rgba(20, 31, 51, 0.5));
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 14px; padding: 22px 24px; margin: 28px 0;
  color: var(--text-70);
}
.verdict strong { color: var(--text); font-weight: 600; }

/* the in-article call to action */
.cta {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, rgba(52, 75, 115, 0.42), rgba(20, 31, 51, 0.75));
  border: 1px solid var(--line-strong);
  border-radius: 20px; padding: 32px; margin: 42px 0;
  box-shadow: 0 50px 100px -60px rgba(218, 167, 78, 0.4);
}
.cta::before {
  content: ""; position: absolute; inset: -60% 55% 55% -25%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(218, 167, 78, 0.16), transparent 70%);
  pointer-events: none;
}
.cta h3 { margin: 0 0 8px; font-size: 1.24rem; position: relative; }
.cta p { color: var(--text-70); margin-bottom: 20px; position: relative; }
.cta .btn { position: relative; }
.cta.center { text-align: center; }

.final-cta { text-align: center; margin: 56px 0 8px; }

/* ---------- comparison table ---------- */
.table-scroll { overflow-x: auto; margin: 22px 0; }
table.cmp {
  border-collapse: collapse; width: 100%; font-size: 0.95rem; min-width: 520px;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
table.cmp th, table.cmp td {
  text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
table.cmp thead th {
  font-weight: 600; color: var(--text);
  background: rgba(52, 75, 115, 0.32);
  border-bottom: 1px solid var(--line-strong);
}
table.cmp thead th:first-child { color: var(--text-45); font-weight: 500; }
table.cmp td:first-child { color: var(--text-45); }
table.cmp td { color: var(--text-70); }
table.cmp td.nb { color: var(--gold); font-weight: 600; }
table.cmp tbody tr:hover { background: rgba(52, 75, 115, 0.18); }
table.cmp tbody tr:last-child td { border-bottom: none; }

/* ---------- forms ---------- */
.field { margin-bottom: 18px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; color: var(--text); }
input, textarea {
  width: 100%; font: inherit;
  color: var(--text); background: rgba(10, 17, 29, 0.6);
  border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 12px 14px;
}
input::placeholder, textarea::placeholder { color: var(--text-45); }
input:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 150px; resize: vertical; }
/* Honeypot: hidden from humans, tempting to bots. A filled value = spam. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.note { font-size: .88rem; color: var(--text-45); margin-top: 14px; }
#status { margin-top: 18px; font-weight: 600; }
#status.ok { color: var(--gold); }
#status.err { color: #e08a6a; }

/* the Windows waitlist, same markup as the landing page */
.win-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; max-width: 480px; margin: 18px 0 0; }
.win-form input[type="email"] { flex: 1 1 220px; min-width: 0; border-radius: 999px; padding: 12px 18px; }
.win-form .btn { flex: 0 0 auto; border: none; }
.win-form.busy .btn { opacity: 0.6; pointer-events: none; }
.win-fine { margin-top: 12px; color: var(--text-45); font-size: 0.82rem; }
.win-fine a { color: var(--sand); }
.win-msg { margin-top: 14px; font-weight: 600; color: var(--gold); }
.win-msg.err { color: #e08a6a; }

/* ---------- changelog ---------- */
.release { margin-top: 44px; }
.release + .release { border-top: 1px solid var(--line); padding-top: 8px; }
.release h2 { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.release h2 .date {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-45); font-weight: 400;
}

/* ---------- misc ---------- */
.disclaimer { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 18px; }
.disclaimer p { color: var(--text-45); font-size: 0.8rem; }

/* Placeholders the operator MUST replace before going live. Loud on purpose:
   a legal page shipped with "PLATZHALTER" still visible is worse than none. */
.todo {
  background: rgba(128, 80, 59, 0.28);
  border: 1px solid var(--brown);
  border-radius: 10px; padding: 14px 16px; margin: 0 0 20px;
  color: #f0b98a; font-size: 0.9rem;
}
.todo strong { color: #f7d3ae; }
mark { background: var(--gold); color: #0a111d; padding: 1px 5px; border-radius: 3px; font-weight: 600; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0; position: relative; z-index: 2;
  background: rgba(10, 17, 29, 0.6);
  color: var(--text-45); font-size: 0.85rem;
}
footer .wrap { max-width: 1140px; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--text-45); text-decoration: none; }
footer a:hover { color: var(--gold); }
footer .sep { flex: 1 1 auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
