/* Ferowen site. Enzonic's warm dark surface, one lime accent,
   and Ferowen's connected browser tab as the recurring motif. */

:root {
  --bg: #15110c;
  --panel: #201911;
  --panel-2: #2a2118;
  --line: rgba(255, 240, 220, 0.1);
  --text: #f4efe6;
  --text-2: #bdb2a1;
  --lime: #b2ff00;
  --lime-ink: #15110c;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable", "Segoe UI", system-ui, Ubuntu, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-underline-offset: 3px; text-decoration-color: rgba(178, 255, 0, 0.6); }
a:hover { text-decoration-color: var(--lime); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--lime); color: var(--lime-ink); padding: 8px 12px; z-index: 10; }

/* ---------- Header ---------- */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 18px; letter-spacing: -0.01em; min-height: 44px; }
.brand img { width: 30px; height: 30px; }
.brand small { color: var(--text-2); font-weight: 450; font-size: 14px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--text-2); font-size: 15px; padding: 10px 12px; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--text); background: var(--panel); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; }
.hero h1 {
  font: 700 clamp(40px, 6.4vw, 72px)/1.04 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  max-width: 14ch;
}
.hero p.lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--text-2); max-width: 40em; margin: 0 0 32px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  border-radius: 10px;
  font-weight: 600; font-size: 16px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
}
.btn:hover { background: var(--panel-2); }
.btn.primary { background: var(--lime); color: var(--lime-ink); border-color: transparent; }
.btn.primary:hover { background: #c4ff3a; }
.btn svg { width: 18px; height: 18px; flex: none; }
.fine { color: var(--text-2); font-size: 14px; margin-top: 14px; }
.shot { margin-top: 56px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
/* The one elevated object on the page: the product itself. */

/* ---------- Tab-labelled panels (identity motif) ---------- */
section.panel { margin: 88px 0; }
.tab {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px;
  background: var(--panel);
  border-radius: 12px 12px 0 0;
  font-size: 14px; font-weight: 600; color: var(--text-2);
  margin-left: 22px;
}
.tab::before, .tab::after { content: ""; position: absolute; bottom: 0; width: 12px; height: 12px; }
.tab::before { left: -12px; background: radial-gradient(circle at 0 0, transparent 11.5px, var(--panel) 12px); }
.tab::after { right: -12px; background: radial-gradient(circle at 100% 0, transparent 11.5px, var(--panel) 12px); }
.tab i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.sheet { background: var(--panel); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); }
.sheet h2 { font: 700 clamp(28px, 3.6vw, 40px)/1.12 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif; letter-spacing: -0.025em; margin: 0 0 14px; max-width: 22ch; }
.sheet > p { color: var(--text-2); max-width: 42em; margin: 0 0 8px; }

/* Measured numbers */
h3.scen { font-size: 19px; margin: 32px 0 6px; }
h3.scen + p { color: var(--text-2); margin: 0; max-width: 46em; }
.table-scroll { overflow-x: auto; margin-top: 28px; }
table { width: 100%; border-collapse: collapse; min-width: 460px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); }
th { font-size: 13px; font-weight: 600; color: var(--text-2); }
td.num { text-align: right; white-space: nowrap; }
th { white-space: nowrap; }
.table-scroll { -webkit-overflow-scrolling: touch; }
th.num { text-align: right; }
tr.us td { color: var(--text); font-weight: 650; }
tr.us td:first-child { color: var(--lime); }
.method { margin-top: 18px; font-size: 14px; color: var(--text-2); }
.method summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--text); }

/* Engines: two unequal columns (Mac is the shipping build, Servo is newer) */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; margin-top: 28px; }
.split > div { background: var(--panel-2); border-radius: 12px; padding: 24px; }
.split h3 { margin: 0 0 4px; font-size: 20px; }
.split .who { color: var(--lime); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.split p { color: var(--text-2); margin: 0 0 10px; font-size: 16px; }

/* Lists with plain rules, not cards */
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.facts li { padding: 16px 0; border-top: 1px solid var(--line); }
.facts b { display: block; font-size: 17px; margin-bottom: 2px; }
.facts span { color: var(--text-2); font-size: 15px; }

.sleep { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.sleep dl { margin: 0; }
.sleep dt { font-weight: 650; margin-top: 18px; }
.sleep dd { margin: 4px 0 0; color: var(--text-2); }

/* ---------- Legal pages ---------- */
.doc { padding: 56px 0 80px; }
.doc article { max-width: 46em; }
.doc h1 { font-size: clamp(32px, 4.4vw, 46px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 8px; }
.doc h2 { font-size: 24px; margin: 40px 0 8px; letter-spacing: -0.015em; }
.doc h3 { font-size: 19px; margin: 28px 0 6px; }
.doc p, .doc li { color: #d9cfbf; }
.doc code { background: var(--panel-2); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; overflow-wrap: anywhere; }
.doc table { min-width: 0; font-size: 15px; }
.doc .table-scroll { margin: 16px 0; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 32px; }
.legal-nav a { font-size: 14px; padding: 8px 12px; border-radius: 8px; background: var(--panel); text-decoration: none; color: var(--text-2); min-height: 40px; display: inline-flex; align-items: center; }
.legal-nav a[aria-current="page"] { color: var(--lime-ink); background: var(--lime); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--text-2); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
footer a { color: var(--text-2); min-height: 44px; display: inline-flex; align-items: center; }

@media (max-width: 760px) {
  .hero { padding-top: 44px; }
  .split, .sleep, .facts { grid-template-columns: 1fr; }
  .split { gap: 14px; }
  .sleep { gap: 8px; }
  section.panel { margin: 56px 0; }
  .tab { margin-left: 14px; }
  .shot { margin-top: 36px; }
  .nav a { padding: 10px 8px; }
  th, td { padding: 12px 8px; }
  .table-scroll { margin-inline: -8px; padding-inline: 8px; }
}
