/* =================================================================
   ERIT — engineered paper design system
   One stylesheet, shared across index / impressum / datenschutz.
   Light (default) + dark via prefers-color-scheme and [data-theme].
   ================================================================= */

/* ---------- Design tokens ---------------------------------------- */
:root {
  /* surfaces */
  --bg:        #fbfaf7;
  --surface:   #ffffff;
  --surface-2: #f4f2ec;
  --surface-3: #f0ece4;

  /* lines */
  --hairline:    #d2cdc4;
  --line-strong: #2c2a27;

  /* ink */
  --text:  #2c2a27;
  --muted: #5f5a53;
  --faint: #9a958c;

  /* petrol accent */
  --accent:          #1d5870;
  --accent-strong:   #16475c;
  --accent-soft:     #eef4f7;
  --accent-contrast: #ffffff;
  --on-accent-soft:  #163f50;

  /* status */
  --ok:      #2f7d57;
  --ok-soft: #e7f1ea;

  /* hard, un-blurred offset shadows — the signature */
  --shadow-color:  rgba(44, 42, 39, .12);
  --shadow-tile:   5px 6px 0 var(--shadow-color);
  --shadow-tile-l: 9px 11px 0 var(--shadow-color);
  --shadow-btn:    3px 3px 0 rgba(44, 42, 39, .18);
  --shadow-btn-a:  1px 1px 0 rgba(44, 42, 39, .18);

  /* shape */
  --radius:    7px;
  --radius-sm: 5px;
  --radius-xs: 3px;

  /* animated aurora blobs (drift behind the paper) — alphas kept low
     so muted text stays WCAG-AA even where blobs overlap behind it */
  --aurora-1: rgba(29, 88, 112, .14);
  --aurora-2: rgba(120, 188, 216, .14);
  --aurora-3: rgba(214, 197, 168, .24);

  /* type */
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, monospace;

  /* z-scale (semantic) */
  --z-sticky:  100;
  --z-skip:    200;

  color-scheme: light;
}

/* Dark — manual override */
:root[data-theme="dark"] {
  --bg:        #151b1f;
  --surface:   #1b232a;
  --surface-2: #212c34;
  --surface-3: #27333d;

  --hairline:    #34424c;
  --line-strong: #5f6e78;

  --text:  #eceae3;
  --muted: #a7afb5;
  --faint: #76808a;

  --accent:          #5aacce;
  --accent-strong:   #7cc1de;
  --accent-soft:     #15333f;
  --accent-contrast: #0b1418;
  --on-accent-soft:  #bfe2f1;

  --ok:      #6fcf9b;
  --ok-soft: #15302440;

  --shadow-color: rgba(0, 0, 0, .55);
  --shadow-btn:   3px 3px 0 rgba(0, 0, 0, .5);
  --shadow-btn-a: 1px 1px 0 rgba(0, 0, 0, .5);

  --aurora-1: rgba(90, 172, 206, .16);
  --aurora-2: rgba(29, 88, 112, .22);
  --aurora-3: rgba(46, 128, 146, .16);

  color-scheme: dark;
}

/* Dark — system preference (only when user hasn't forced light) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #151b1f;
    --surface:   #1b232a;
    --surface-2: #212c34;
    --surface-3: #27333d;

    --hairline:    #34424c;
    --line-strong: #5f6e78;

    --text:  #eceae3;
    --muted: #a7afb5;
    --faint: #76808a;

    --accent:          #5aacce;
    --accent-strong:   #7cc1de;
    --accent-soft:     #15333f;
    --accent-contrast: #0b1418;
    --on-accent-soft:  #bfe2f1;

    --ok:      #6fcf9b;
    --ok-soft: #15302440;

    --shadow-color: rgba(0, 0, 0, .55);
    --shadow-btn:   3px 3px 0 rgba(0, 0, 0, .5);
    --shadow-btn-a: 1px 1px 0 rgba(0, 0, 0, .5);

    --aurora-1: rgba(90, 172, 206, .16);
    --aurora-2: rgba(29, 88, 112, .22);
    --aurora-3: rgba(46, 128, 146, .16);

    color-scheme: dark;
  }
}

/* ---------- Reset / base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html { background-color: var(--bg); }

body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.62;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Animated aurora background ---------------------------
   Soft petrol-toned gradient field that slowly drifts behind the
   paper surfaces (replaces the static grid). Fixed at z-index -1 with
   a transparent <body>, so content and paper cards paint over it. */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint;
}
.bg-field .blob {
  position: absolute;
  border-radius: 50%;
  /* the radial-gradient falloff already softens the edge; a light blur
     adds diffusion without the cost (and screenshot/compositor strain)
     of a heavy filter. */
  filter: blur(32px);
  will-change: transform;
}
.bg-field .b1 {
  width: clamp(360px, 48vw, 760px); aspect-ratio: 1;
  left: -8vw; top: -10vh;
  background: radial-gradient(circle at 50% 50%, var(--aurora-1), transparent 70%);
  animation: drift-1 30s ease-in-out infinite alternate;
}
.bg-field .b2 {
  width: clamp(320px, 42vw, 680px); aspect-ratio: 1;
  right: -10vw; top: 4vh;
  background: radial-gradient(circle at 50% 50%, var(--aurora-2), transparent 70%);
  animation: drift-2 38s ease-in-out infinite alternate;
}
.bg-field .b3 {
  width: clamp(380px, 54vw, 860px); aspect-ratio: 1;
  left: 18vw; bottom: -24vh;
  background: radial-gradient(circle at 50% 50%, var(--aurora-3), transparent 72%);
  animation: drift-3 46s ease-in-out infinite alternate;
}
/* faint paper grain over the aurora keeps the tactile "paper" feel */
.bg-field::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .bg-field::after,
:root:not([data-theme="light"]) .bg-field::after { opacity: .06; }

@keyframes drift-1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(7vw, 8vh, 0) scale(1.18); }
}
@keyframes drift-2 {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to   { transform: translate3d(-9vw, 6vh, 0) scale(0.92); }
}
@keyframes drift-3 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vw, -7vh, 0) scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-field .blob { animation: none; }
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--accent-strong); }

h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; margin: 0; text-wrap: balance; }
p { margin: 0; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}
:root[data-theme="dark"] :focus-visible,
:root:not([data-theme="light"]) :focus-visible { outline-color: var(--accent-strong); }

::selection { background: color-mix(in srgb, var(--accent) 26%, transparent); }

/* ---------- Language toggle visibility --------------------------- */
html[data-lang="de"] .lang-en { display: none; }
html[data-lang="en"] .lang-de { display: none; }

/* ---------- Layout helpers --------------------------------------- */
.wrap {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.25rem);
}
.section { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.section-tight { padding-block: clamp(2.25rem, 4vw, 3.25rem); }

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: var(--z-skip);
  background: var(--accent);
  color: var(--accent-contrast);
  padding: .6rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: 600 .9rem/1 var(--sans);
  transition: top .15s ease;
}
.skip-link:focus { top: 1rem; color: var(--accent-contrast); }

/* ---------- Eyebrow / mono labels (the "spec label" voice) ------- */
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .55em;
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem; height: 0;
  border-top: 1.5px solid currentColor;
  opacity: .8;
}

/* ---------- Buttons ---------------------------------------------- */
.btn {
  --bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--sans);
  font-size: .98rem;
  font-weight: 600;
  line-height: 1;
  padding: .85em 1.25em;
  border: 1.5px solid var(--bd);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition: transform .12s cubic-bezier(.22,1,.36,1), box-shadow .12s cubic-bezier(.22,1,.36,1), background-color .12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 5px 0 rgba(44,42,39,.2); }
.btn:active { transform: translate(2px, 2px); box-shadow: var(--shadow-btn-a); }
:root[data-theme="dark"] .btn:hover,
:root:not([data-theme="light"]) .btn:hover { box-shadow: 4px 5px 0 rgba(0,0,0,.55); }

.btn-primary {
  background: var(--accent);
  border-color: var(--line-strong);
  color: var(--accent-contrast);
}
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-contrast); }

.btn-lg { font-size: 1.06rem; padding: 1.02em 1.6em; border-radius: 8px; }

.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Header ----------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--hairline);
  /* Solid paper surface (the brief bans glassmorphism), with a faint
     offset shadow so it reads as a physical layer over the page grid. */
  background: var(--surface);
  box-shadow: 0 1px 0 var(--hairline), 0 6px 18px -16px var(--shadow-color);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 64px;
  padding-block: .55rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}
.brand svg { width: 34px; height: 34px; filter: drop-shadow(2px 2px 0 var(--shadow-color)); }
.brand .wordmark {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: .02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: .94rem;
  padding: .5rem .7rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }

.header-tools { display: flex; align-items: center; gap: .5rem; }

/* segmented + icon controls */
.seg {
  display: inline-flex;
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}
.seg button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 .76rem/1 var(--mono);
  letter-spacing: .04em;
  padding: .46rem .58rem;
  cursor: pointer;
}
.seg button + button { border-left: 1.5px solid var(--hairline); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-contrast); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .i-sun { display: none; }
:root[data-theme="dark"] .icon-btn .i-sun,
:root:not([data-theme="light"]) .icon-btn .i-sun { display: block; }
:root[data-theme="dark"] .icon-btn .i-moon,
:root:not([data-theme="light"]) .icon-btn .i-moon { display: none; }

.header-cta { display: none; }

@media (max-width: 860px) {
  .nav { display: none; }
}
@media (min-width: 980px) {
  .header-cta { display: inline-flex; }
}

/* ---------- Hero ------------------------------------------------- */
.hero { padding-block: clamp(2.5rem, 6vw, 4.75rem) clamp(2rem, 4vw, 3rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.4rem; }
}

.hero-mark {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.hero-mark svg { width: 60px; height: 60px; filter: drop-shadow(4px 5px 0 var(--shadow-color)); }
.hero-mark .wordmark {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  letter-spacing: .01em;
  line-height: 1;
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  letter-spacing: -0.025em;
  margin-bottom: 1.05rem;
  max-width: 16ch;
}
.hero h1 .accent { color: var(--accent); }

.lead {
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 1.7rem;
}
.lead strong { color: var(--text); font-weight: 600; }

.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; margin-bottom: 1rem; }

.dl-meta {
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem .8rem;
  margin-top: .2rem;
}
.dl-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }
.dl-checksum {
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--faint);
  margin-top: .7rem;
  word-break: break-all;
}
.dl-checksum b { color: var(--muted); font-weight: 600; }

/* ---------- Faux app window (the product "screenshot") ----------- */
.app-shot {
  border: 1.5px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: var(--shadow-tile-l);
  overflow: hidden;
  font-size: clamp(.78rem, 1.3vw, .9rem);
}
.app-bar {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem .85rem;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-2);
}
.app-bar svg { width: 18px; height: 18px; }
.app-bar .title { font-family: var(--mono); font-size: .76rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.app-bar .win { margin-left: auto; display: flex; gap: .4rem; }
.app-bar .win i { width: 11px; height: 11px; border: 1.5px solid var(--faint); border-radius: 50%; display: block; }

.app-body { display: grid; grid-template-columns: 52px 1fr; }
.app-rail {
  border-right: 1px solid var(--hairline);
  background: var(--surface-2);
  padding: .7rem 0;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  align-items: center;
}
.app-rail span {
  width: 34px; height: 30px;
  border-radius: var(--radius-xs);
  display: grid; place-items: center;
  color: var(--faint);
}
.app-rail span.on { background: var(--accent-soft); color: var(--accent); }
.app-rail svg { width: 17px; height: 17px; }

.app-main { padding: .85rem .95rem 1rem; min-width: 0; }
.app-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .7rem; }
.app-head h4 { font-size: .92rem; letter-spacing: -0.01em; }
.app-head .meta { font-family: var(--mono); font-size: .68rem; color: var(--faint); }

.app-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .2rem .8rem;
  align-items: center;
  padding: .55rem .65rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 2px 2px 0 var(--shadow-color);
}
.app-row + .app-row { margin-top: .5rem; }
.app-row .who { font-weight: 600; font-size: .82rem; }
.app-row .sub { grid-column: 1; font-family: var(--mono); font-size: .68rem; color: var(--muted); }
.app-row .amt { grid-column: 2; grid-row: 1; font-family: var(--mono); font-weight: 600; font-size: .82rem; text-align: right; }
.app-row .tags { grid-column: 2; grid-row: 2; display: flex; gap: .35rem; justify-content: flex-end; }

.chip {
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .03em;
  padding: .15rem .42rem;
  border-radius: 100px;
  border: 1px solid var(--hairline);
  color: var(--muted);
  white-space: nowrap;
}
.chip-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, var(--hairline)); background: var(--ok-soft); display: inline-flex; align-items: center; gap: .25em; }
.chip-ok svg { width: .8em; height: .8em; }
.chip-fmt { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--hairline)); background: var(--accent-soft); }

.app-foot {
  margin-top: .8rem;
  display: flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--muted);
  border-top: 1px dashed var(--hairline);
  padding-top: .65rem;
}
.app-foot svg { width: 14px; height: 14px; color: var(--ok); }

/* ---------- Spec strip ------------------------------------------- */
.spec-strip {
  border-block: 1px solid var(--hairline);
  background: var(--surface-2);
}
.spec-strip ul {
  list-style: none;
  margin: 0; padding: .9rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.6rem;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--muted);
}
.spec-strip li { display: inline-flex; align-items: center; gap: .5rem; }
.spec-strip li b { color: var(--text); font-weight: 600; }
.spec-strip svg { width: 15px; height: 15px; color: var(--accent); flex: none; }

/* ---------- Section headers -------------------------------------- */
.section-head { max-width: 56ch; margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }
.section-head h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); letter-spacing: -0.03em; margin-bottom: .7rem; }
.section-head p { color: var(--muted); font-size: 1.04rem; max-width: 60ch; }

/* ---------- Feature tiles ---------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
}
@media (max-width: 680px) { .features { grid-template-columns: 1fr; } }

.tile {
  position: relative;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-tile);
  padding: clamp(1.3rem, 2.2vw, 1.7rem);
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.tile-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tile-code { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; color: var(--faint); text-transform: uppercase; }
.tile-glyph {
  width: 44px; height: 44px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: var(--surface-2);
  color: var(--accent);
}
.tile-glyph svg { width: 23px; height: 23px; }
.tile h3 { font-size: 1.16rem; letter-spacing: -0.01em; }
.tile p { color: var(--muted); font-size: .96rem; }

.tile.is-accent { background: var(--accent-soft); border-color: var(--accent); }
.tile.is-accent .tile-glyph { background: var(--surface); border-color: var(--accent); }
.tile.is-accent .tile-code { color: var(--on-accent-soft); }
.tile.is-accent h3 { color: var(--on-accent-soft); }
.tile.is-accent p { color: color-mix(in srgb, var(--on-accent-soft) 78%, transparent); }

/* ---------- Activation steps ------------------------------------- */
.activation {
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-tile);
  overflow: hidden;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  counter-reset: step;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .steps { grid-template-columns: 1fr; } }

.step {
  padding: clamp(1.2rem, 2.4vw, 1.7rem);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.steps .step:nth-child(4n) { border-right: 0; }
@media (max-width: 760px) {
  .steps .step:nth-child(2n) { border-right: 0; }
  .steps .step:nth-child(odd) { border-right: 1px solid var(--hairline); }
}
@media (max-width: 460px) { .step { border-right: 0; } }

.step .num {
  counter-increment: step;
  width: 34px; height: 34px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-contrast);
  font-family: var(--mono);
  font-weight: 600;
  display: grid; place-items: center;
  box-shadow: var(--shadow-btn-a);
}
.step .num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.02rem; }
.step p { font-size: .9rem; color: var(--muted); }
.step code, .activation code {
  font-family: var(--mono);
  font-size: .82em;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xs);
  padding: .08em .4em;
  color: var(--accent);
  word-break: break-all;
}

.privacy-note {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: clamp(1.1rem, 2.2vw, 1.4rem) clamp(1.2rem, 2.4vw, 1.7rem);
  background: var(--surface-2);
}
.privacy-note svg { width: 26px; height: 26px; color: var(--accent); flex: none; margin-top: .1rem; }
.privacy-note p { font-size: .95rem; color: var(--text); }
.privacy-note b { font-weight: 600; }

/* ---------- Two-column: requirements + trust -------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.4vw, 1.6rem);
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.datasheet {
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-tile);
  overflow: hidden;
}
.datasheet h3 {
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .95rem 1.2rem;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-2);
}
.datasheet dl { margin: 0; padding: .4rem 1.2rem 1rem; }
.datasheet .ds-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: .7rem 0;
  border-bottom: 1px dashed var(--hairline);
}
.datasheet .ds-row:last-child { border-bottom: 0; }
.datasheet dt { color: var(--muted); font-size: .92rem; }
.datasheet dd { margin: 0; font-family: var(--mono); font-size: .86rem; font-weight: 500; text-align: right; color: var(--text); }
.datasheet dd.ok { color: var(--ok); }

/* ---------- FAQ (native details) --------------------------------- */
.faq { display: grid; gap: .7rem; max-width: 800px; }
.faq details {
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-tile);
  overflow: hidden;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 1.25rem;
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 12px; height: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .2s ease;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .faq-body { padding: 0 1.25rem 1.2rem; color: var(--muted); }
.faq .faq-body p { max-width: 68ch; }
.faq .faq-body p + p { margin-top: .7rem; }

/* ---------- Closing CTA band ------------------------------------- */
.cta-band {
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: var(--shadow-tile-l);
  padding: clamp(1.8rem, 4vw, 2.9rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.03em; color: var(--accent-contrast); }
.cta-band p { color: color-mix(in srgb, var(--accent-contrast) 84%, transparent); font-family: var(--mono); font-size: .82rem; margin-top: .5rem; }
.cta-band .btn { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
:root[data-theme="dark"] .cta-band, :root:not([data-theme="light"]) .cta-band { color: var(--accent-contrast); }

/* ---------- Footer ----------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--surface-2);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-block: clamp(2.2rem, 4vw, 3rem);
}
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; gap: 1.6rem; } }
.footer-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.footer-brand svg { width: 30px; height: 30px; }
.footer-brand .wordmark { font-family: var(--mono); font-weight: 600; font-size: 1.15rem; }
.footer-col p { color: var(--muted); font-size: .9rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: .9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: .94rem; }
.footer-col a:hover { color: var(--accent); text-decoration: underline; }
.footer-bar {
  border-top: 1px solid var(--hairline);
  padding-block: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--faint);
}
.footer-bar a { color: var(--muted); }

/* ---------- Legal pages ------------------------------------------ */
.page-hero { padding-block: clamp(2.4rem, 5vw, 3.6rem) clamp(1.2rem, 2vw, 1.6rem); }
.page-hero .eyebrow { margin-bottom: .9rem; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -0.03em; }
.page-hero p { color: var(--muted); margin-top: .8rem; max-width: 60ch; }

.legal { padding-bottom: clamp(3rem, 6vw, 5rem); }
.legal-card {
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-tile);
  padding: clamp(1.5rem, 4vw, 2.8rem);
  max-width: 820px;
}
.legal-card h2 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin: 2.2rem 0 .8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline);
}
.legal-card > h2:first-of-type, .legal-card > *:first-child { margin-top: 0; }
.legal-card h2:first-of-type { border-top: 0; padding-top: 0; }
.legal-card h3 { font-size: 1.04rem; margin: 1.5rem 0 .5rem; }
.legal-card p, .legal-card li { color: var(--text); font-size: .98rem; max-width: 70ch; }
.legal-card p + p { margin-top: .9rem; }
.legal-card ul { margin: .7rem 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.legal-card dl { margin: .8rem 0; }
.legal-card dt { font-weight: 600; margin-top: .9rem; }
.legal-card dd { margin: .15rem 0 0; color: var(--muted); }

.ph {
  font-family: var(--mono);
  font-size: .9em;
  background: var(--accent-soft);
  color: var(--on-accent-soft);
  border: 1px dashed color-mix(in srgb, var(--accent) 50%, var(--hairline));
  border-radius: var(--radius-xs);
  padding: .05em .4em;
}
.legal-card address { font-style: normal; line-height: 1.9; }

.callout {
  border: 1.5px solid var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  margin: 1.4rem 0;
}
.callout p { color: var(--on-accent-soft); font-size: .94rem; }
.callout strong { color: var(--on-accent-soft); }

.back-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .92rem; text-decoration: none; font-weight: 500;
  margin-top: 2rem;
}
.back-link svg { width: 1em; height: 1em; }
.back-link:hover { text-decoration: underline; }

/* ---------- Motion: reveal on scroll ----------------------------- */
body.js [data-reveal] { opacity: 0; transform: translateY(16px); }
body.js [data-reveal].is-visible {
  opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
body.js [data-reveal][data-reveal-delay="1"].is-visible { transition-delay: .08s; }
body.js [data-reveal][data-reveal-delay="2"].is-visible { transition-delay: .16s; }
body.js [data-reveal][data-reveal-delay="3"].is-visible { transition-delay: .24s; }

/* hero load choreography (only with JS; content visible without it) */
body.js .rise { opacity: 0; animation: rise .75s cubic-bezier(.22,1,.36,1) forwards; }
body.js .rise-1 { animation-delay: .05s; }
body.js .rise-2 { animation-delay: .14s; }
body.js .rise-3 { animation-delay: .23s; }
body.js .rise-4 { animation-delay: .32s; }
body.js .rise-app { opacity: 0; animation: riseApp .8s cubic-bezier(.22,1,.36,1) .2s forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes riseApp { from { opacity: 0; transform: translateY(22px) scale(.985); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  body.js [data-reveal],
  body.js .rise,
  body.js .rise-app { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

/* ---------- Utilities -------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }
