/* ==========================================================================
   Enforso — design tokens, base type, icon font.

   Faithful CSS port of EnforsoTheme.swift (the `Enf.*` token namespace) and
   the SwiftUI .system(...) type usage across the iOS app. Enforso is a light,
   warm-neutral product: one emerald accent, near-black ink, soft 8% hairline
   strokes, generous rounding.

   This file is the single source of truth for the public web surface — the
   landing page, privacy, coming-soon and the UDID pages all build on it.
   ========================================================================== */

:root {
  /* ---- Accent (emerald green) ------------------------------------------ */
  --enf-accent:        #34D399;               /* primary brand green         */
  --enf-accent-soft:   rgba(52,211,153,0.16); /* accentSoft — 16% fill       */
  --enf-accent-ink:    #1A0B05;               /* text/icon ON accent         */
  --enf-accent-deep:   #0f9e6f;               /* accent text on light bg     */

  /* ---- Backgrounds ------------------------------------------------------ */
  --enf-bg:            #F4F2EE;               /* app canvas — warm off-white */
  --enf-bg-elevated:   #FFFFFF;               /* nav/tab bar base            */
  --enf-bg-translucent: rgba(244,242,238,0.82);
  --enf-ink-canvas:    #0c0f0d;               /* dark full-bleed sections    */

  /* ---- Surfaces --------------------------------------------------------- */
  --enf-surface:       #FFFFFF;               /* card / sheet surface        */
  --enf-surface-alt:   #F0EDE7;               /* circle buttons, chips       */
  --enf-glass:         rgba(255,255,255,0.72);

  /* ---- Text (dark-on-light) -------------------------------------------- */
  --enf-text-primary:   #14181F;
  --enf-text-secondary: rgba(20,24,31,0.62);
  --enf-text-tertiary:  rgba(20,24,31,0.36);
  --enf-text-inverse:   #FFFFFF;

  /* ---- Semantic status -------------------------------------------------- */
  --enf-success:       #34D399;
  --enf-warning:       #FBBF24;
  --enf-error:         #F87171;

  /* ---- Urgency palette (Live Activity amber/red escalation) ------------ */
  --enf-urgency-amber:     #E0A23A;
  --enf-urgency-red:       #C75D4A;
  --enf-urgency-amber-ink: #7A5519;
  --enf-urgency-red-ink:   #7E2F22;
  --enf-urgency-cream:     #F5F3EE;

  /* ---- Lines & glass ---------------------------------------------------- */
  --enf-stroke:        rgba(15,20,30,0.08);
  --enf-stroke-2:      rgba(15,20,30,0.16);

  /* ---- Reminder / tag accent swatches ---------------------------------- */
  --enf-rem-sky:       #0EA5E9;
  --enf-rem-teal:      #14B8A6;
  --enf-rem-blue:      #60A5FA;
  --enf-rem-violet:    #A78BFA;
  --enf-rem-green:     #34D399;
  --enf-rem-indigo:    #6366F1;
  --enf-rem-pink:      #EC4899;
  --enf-rem-cyan:      #06B6D4;

  /* ---- Brand gradient (app-icon backdrop: emerald → deep teal) --------- */
  --enf-brand-grad:    linear-gradient(160deg, #5E9B85 0%, #2F6B57 45%, #163A2E 100%);

  /* ---- Radii — Enf.r12 / r16 / r20 / r24 / rFull ----------------------- */
  --enf-r12:    12px;
  --enf-r16:    16px;
  --enf-r20:    20px;
  --enf-r24:    24px;
  --enf-r-full: 999px;

  /* ---- Spacing — screen gutter is p20, web gutter p28 ------------------ */
  --enf-p8:   8px;
  --enf-p10: 10px;
  --enf-p12: 12px;
  --enf-p14: 14px;
  --enf-p16: 16px;
  --enf-p20: 20px;
  --enf-p24: 24px;
  --enf-p28: 28px;

  /* ---- Elevation — soft, often colour-tinted --------------------------- */
  --enf-shadow-card:    0 1px 2px rgba(15,20,30,0.04);
  --enf-shadow-float:   0 12px 24px rgba(15,20,30,0.12);
  --enf-shadow-accent:  0 12px 28px rgba(52,211,153,0.40);
  --enf-shadow-success: 0 24px 48px rgba(52,211,153,0.35);

  /* ---- Type ------------------------------------------------------------
     On device Enforso uses the SF system font exclusively. "SF Pro" is not
     web-licensed, so the stack falls back to the system UI font, which is
     real SF on Apple devices and a neutral grotesque elsewhere.
     --------------------------------------------------------------------- */
  --enf-font:      -apple-system, BlinkMacSystemFont, "SF Pro Text",
                   "SF Pro Display", "Inter", system-ui, sans-serif;
  --enf-font-mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo,
                   "Roboto Mono", monospace;

  --enf-w-regular:  400;
  --enf-w-medium:   500;
  --enf-w-semibold: 600;
  --enf-w-bold:     700;

  /* Type ramp — mirrors the app. */
  --enf-hero:     32px;
  --enf-title:    28px;
  --enf-overlay:  20px;
  --enf-headline: 17px;
  --enf-body:     16px;
  --enf-subhead:  15px;
  --enf-callout:  14px;
  --enf-footnote: 13px;
  --enf-caption:  12px;
  --enf-caption2: 11px;
  --enf-micro:    10px;

  /* Web-only display ramp — fluid, so nothing has to be re-tuned per page. */
  --enf-display:      clamp(40px, 6.4vw, 76px);
  --enf-display-sub:  clamp(30px, 4.2vw, 46px);
  --enf-lead:         clamp(17px, 1.4vw, 19px);

  --enf-header-h: 64px;
  --enf-shell:    1180px;
}

/* ==========================================================================
   RESET / BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--enf-header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--enf-bg);
  color: var(--enf-text-primary);
  font-family: var(--enf-font);
  font-size: var(--enf-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

a { color: var(--enf-text-primary); text-decoration: none; }
a:hover { color: var(--enf-accent-deep); }

::selection { background: rgba(52,211,153,0.28); }

:focus-visible {
  outline: 2px solid var(--enf-accent-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ==========================================================================
   ICON FONT — Material Symbols Rounded, self-hosted (Google, OFL).
   Web substitute for Apple SF Symbols, which cannot be redistributed.
   Subset to the glyphs this site actually uses (~40 icons, 23 KB).
   Usage: <span class="ms" aria-hidden="true">contactless</span>
   ========================================================================== */

@font-face {
  font-family: 'Material Symbols Rounded';
  font-style: normal;
  font-weight: 400 700;
  font-display: block;
  src: url('../fonts/material-symbols-rounded.woff2') format('woff2');
}

.ms {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  flex: 0 0 auto;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.ms.fill0 { font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24; }

/* ==========================================================================
   SEMANTIC TYPE CLASSES — match the SwiftUI font usage 1:1.
   ========================================================================== */

.enf-hero, .enf-title, .enf-overlay, .enf-headline, .enf-body,
.enf-subhead, .enf-callout, .enf-footnote, .enf-caption,
.enf-caption2, .enf-micro {
  font-family: var(--enf-font);
  color: var(--enf-text-primary);
  margin: 0;
}

.enf-hero     { font-size: var(--enf-hero);     font-weight: var(--enf-w-bold);     letter-spacing: -0.02em;  line-height: 1.1; }
.enf-title    { font-size: var(--enf-title);    font-weight: var(--enf-w-bold);     letter-spacing: -0.015em; line-height: 1.15; }
.enf-overlay  { font-size: var(--enf-overlay);  font-weight: var(--enf-w-bold);     letter-spacing: -0.01em;  line-height: 1.2; }
.enf-headline { font-size: var(--enf-headline); font-weight: var(--enf-w-semibold); line-height: 1.3; }
.enf-body     { font-size: var(--enf-body);     font-weight: var(--enf-w-medium);   line-height: 1.35; }
.enf-subhead  { font-size: var(--enf-subhead);  font-weight: var(--enf-w-regular);  line-height: 1.45; color: var(--enf-text-secondary); }
.enf-callout  { font-size: var(--enf-callout);  font-weight: var(--enf-w-regular);  line-height: 1.45; }
.enf-footnote { font-size: var(--enf-footnote); font-weight: var(--enf-w-regular);  line-height: 1.4;  color: var(--enf-text-secondary); }
.enf-caption  { font-size: var(--enf-caption);  font-weight: var(--enf-w-medium);   line-height: 1.35; }
.enf-caption2 { font-size: var(--enf-caption2); font-weight: var(--enf-w-semibold); line-height: 1.3; }
.enf-micro    { font-size: var(--enf-micro);    font-weight: var(--enf-w-medium);   line-height: 1.2; }

/* Eyebrow / section label — uppercase, tracked, secondary colour. */
.enf-eyebrow {
  font-size: var(--enf-footnote);
  font-weight: var(--enf-w-semibold);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--enf-text-secondary);
  margin: 0 0 16px;
}
.enf-eyebrow--accent  { color: var(--enf-accent); }
.enf-eyebrow--inverse { color: rgba(255,255,255,0.55); }

/* Monospaced numerics — times (08:00), streaks, "+12min" overdue. */
.enf-mono {
  font-family: var(--enf-font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* Display headings used across the public pages. */
.enf-display {
  font-size: var(--enf-display);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: var(--enf-w-bold);
  text-wrap: balance;
}
.enf-display-sub {
  font-size: var(--enf-display-sub);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: var(--enf-w-bold);
  text-wrap: balance;
}
.enf-lead {
  font-size: var(--enf-lead);
  line-height: 1.55;
  color: var(--enf-text-secondary);
}

/* ==========================================================================
   LAYOUT PRIMITIVES
   ========================================================================== */

.enf-shell {
  width: 100%;
  max-width: var(--enf-shell);
  margin: 0 auto;
  padding-left: var(--enf-p28);
  padding-right: var(--enf-p28);
}

.enf-section { padding-top: 96px; padding-bottom: 40px; }
.enf-section--tight { padding-top: 0; }
.enf-section--flush { padding-bottom: 96px; }

.enf-card {
  background: var(--enf-surface);
  border: 1px solid var(--enf-stroke);
  border-radius: var(--enf-r20);
  padding: var(--enf-p24);
}

/* ==========================================================================
   BUTTONS & CHIPS
   ========================================================================== */

.enf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--enf-r16);
  font-family: var(--enf-font);
  font-size: var(--enf-body);
  font-weight: var(--enf-w-semibold);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.enf-btn:hover { transform: translateY(-1px); }

.enf-btn--primary {
  background: var(--enf-accent);
  color: var(--enf-accent-ink);
  box-shadow: 0 8px 20px rgba(52,211,153,0.28);
}
.enf-btn--primary:hover { color: var(--enf-accent-ink); box-shadow: 0 14px 28px rgba(52,211,153,0.36); }

.enf-btn--ghost {
  background: var(--enf-surface);
  border-color: var(--enf-stroke);
  color: var(--enf-text-primary);
}
.enf-btn--ghost:hover { color: var(--enf-text-primary); border-color: var(--enf-stroke-2); }

.enf-btn--soft {
  height: 46px;
  padding: 0 18px;
  background: var(--enf-accent-soft);
  color: var(--enf-accent-deep);
  font-size: var(--enf-subhead);
}
.enf-btn--soft:hover { color: var(--enf-accent-deep); }

.enf-btn--small { height: 46px; padding: 0 18px; font-size: var(--enf-subhead); }
.enf-btn--block { width: 100%; }

.enf-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--enf-r-full);
  background: var(--enf-glass);
  border: 1px solid var(--enf-stroke);
  font-size: var(--enf-footnote);
  font-weight: var(--enf-w-medium);
  color: var(--enf-text-secondary);
}
.enf-pill .ms { font-size: 14px; }

/* Icon tints — the per-reminder swatches, used on bare glyphs. */
.enf-tint-teal   { color: var(--enf-rem-teal); }
.enf-tint-blue   { color: var(--enf-rem-blue); }
.enf-tint-violet { color: var(--enf-rem-violet); }
.enf-tint-cyan   { color: var(--enf-rem-cyan); }
.enf-tint-indigo { color: var(--enf-rem-indigo); }
.enf-tint-green  { color: var(--enf-rem-green); }
.enf-tint-pink   { color: var(--enf-rem-pink); }
.enf-tint-sky    { color: var(--enf-rem-sky); }
.enf-tint-accent { color: var(--enf-accent); }
.enf-tint-ink    { color: var(--enf-text-primary); }

/* Loud version of the badge, for a claim that should not be missed. */
.enf-badge--solid {
  background: var(--enf-accent);
  color: var(--enf-accent-ink);
  box-shadow: 0 8px 20px rgba(52,211,153,0.32);
}
.enf-badge--solid .ms { color: var(--enf-accent-ink); }

.enf-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: var(--enf-r-full);
  background: var(--enf-accent-soft);
  font-size: var(--enf-caption);
  font-weight: var(--enf-w-semibold);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--enf-accent-deep);
}

.enf-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.enf-grid-2--center { align-items: center; }

.enf-grid-2--tight { gap: 12px; }

/* Cards of unequal length. A grid keeps rows aligned, which leaves a hole
   under the shorter card of a pair; columns let each side pack on its own. */
.enf-grid-2--flow {
  display: block;
  columns: 2;
  column-gap: 12px;
}
.enf-grid-2--flow > * {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 12px;
}

.enf-tile {
  background: var(--enf-surface);
  border: 1px solid var(--enf-stroke);
  border-radius: var(--enf-r20);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.enf-tile__title { font-size: var(--enf-subhead); font-weight: var(--enf-w-semibold); }
.enf-tile__text  { font-size: var(--enf-footnote); color: var(--enf-text-secondary); }

/* Icon square used by list rows, tiles and cards across the site. */
.enf-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.enf-icon .ms { font-size: 19px; }
.enf-icon--sm { width: 38px; height: 38px; border-radius: 10px; }
.enf-icon--sm .ms { font-size: 19px; }

/* Colour washes for the icon squares, keyed to the reminder swatches. */
.enf-icon--teal   { background: rgba(20,184,166,0.15);  color: var(--enf-rem-teal); }
.enf-icon--blue   { background: rgba(96,165,250,0.15);  color: var(--enf-rem-blue); }
.enf-icon--violet { background: rgba(167,139,250,0.15); color: var(--enf-rem-violet); }
.enf-icon--cyan   { background: rgba(6,182,212,0.15);   color: var(--enf-rem-cyan); }
.enf-icon--indigo { background: rgba(99,102,241,0.15);  color: var(--enf-rem-indigo); }
.enf-icon--green  { background: rgba(52,211,153,0.15);  color: var(--enf-rem-green); }
.enf-icon--pink   { background: rgba(236,72,153,0.15);  color: var(--enf-rem-pink); }
.enf-icon--sky    { background: rgba(14,165,233,0.15);  color: var(--enf-rem-sky); }
.enf-icon--red    { background: rgba(199,93,74,0.15);   color: var(--enf-urgency-red); }
.enf-icon--amber  { background: rgba(224,162,58,0.15);  color: var(--enf-urgency-amber); }
.enf-icon--muted  { background: var(--enf-surface-alt);  color: var(--enf-text-tertiary); }


/* ==========================================================================
   NUMBERED STEPS — "how this works" rows, used by /print, /pillbox and the
   configurator.
   ========================================================================== */

.enf-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.enf-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--enf-surface);
  border: 1px solid var(--enf-stroke);
  border-radius: var(--enf-r16);
  padding: 16px;
  font-size: var(--enf-footnote);
  line-height: 1.5;
  color: var(--enf-text-secondary);
}
.enf-step strong {
  display: block;
  font-size: var(--enf-subhead);
  font-weight: var(--enf-w-semibold);
  color: var(--enf-text-primary);
  margin-bottom: 4px;
}
.enf-step__num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--enf-accent-soft);
  color: var(--enf-accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--enf-caption);
  font-weight: var(--enf-w-semibold);
}

@media (max-width: 1000px) { .enf-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .enf-steps { grid-template-columns: 1fr; } }

/* ==========================================================================
   PILL BOX — the sketches and the free-forever pledge, shared by /print and
   the configurator.
   ========================================================================== */

.pillbox-sketches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pillbox-sketch {
  margin: 0;
  background: var(--enf-surface);
  border: 1px solid var(--enf-stroke);
  border-radius: var(--enf-r20);
  padding: 18px 18px 20px;
}
.pillbox-sketch svg { width: 100%; height: auto; display: block; margin-bottom: 14px; }
.pillbox-sketch figcaption {
  font-size: var(--enf-footnote);
  line-height: 1.5;
  color: var(--enf-text-secondary);
}
.pillbox-sketch figcaption strong {
  display: block;
  font-size: var(--enf-headline);
  font-weight: var(--enf-w-semibold);
  color: var(--enf-text-primary);
  margin-bottom: 4px;
}

/* Sketch parts. */
.pb-shell { fill: var(--enf-bg); stroke: var(--enf-stroke-2); stroke-width: 1.5; }
.pb-cell  { fill: var(--enf-surface); stroke: var(--enf-stroke-2); stroke-width: 1.2; }
.pb-code  { fill: #fff; stroke: var(--enf-accent); stroke-width: 1.2; }
.pb-ink   { fill: var(--enf-text-primary); }
.pb-label {
  fill: var(--enf-text-tertiary);
  font-family: var(--enf-font-mono);
  font-size: 9px;
  letter-spacing: 0.6px;
}

.pledge {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  border-radius: var(--enf-r24);
  border: 1px solid rgba(52,211,153,0.4);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(52,211,153,0.16), transparent 62%),
    var(--enf-surface);
  padding: 28px 30px;
}
.pledge__mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--enf-accent-soft);
  color: var(--enf-accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pledge__mark .ms { font-size: 24px; }
.pledge .pledge__title {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: var(--enf-w-bold);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 12px;
}
.pledge__text {
  font-size: var(--enf-headline);
  line-height: 1.6;
  color: var(--enf-text-secondary);
  margin: 0 0 12px;
}
.pledge__text em { font-style: normal; font-weight: var(--enf-w-semibold); color: var(--enf-text-primary); }
.pledge__note { margin: 6px 0 0; font-size: var(--enf-footnote); color: var(--enf-text-tertiary); }

/* Illustration parts — the sketch tokens plus the scan and the status chips. */
.pb-cell.is-closed { fill: var(--enf-accent-soft); stroke: rgba(52,211,153,0.5); }
.pb-check { fill: none; stroke: var(--enf-accent-deep); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pb-scan__ring { fill: none; stroke: rgba(52,211,153,0.35); stroke-width: 1.5; }
.pb-bracket { fill: none; stroke: var(--enf-accent); stroke-width: 3; stroke-linecap: round; }
.pb-scan { animation: pbPulse 2.4s ease-in-out infinite; transform-origin: center; }

@keyframes pbPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

.pb-chip { fill: var(--enf-bg); stroke: var(--enf-stroke); stroke-width: 1; }
.pb-chip__dot { fill: var(--enf-accent-soft); }
.pb-chip__dot--warm { fill: rgba(224,162,58,0.22); }
.pb-chip__title { fill: var(--enf-text-primary); font-family: var(--enf-font); font-size: 11px; font-weight: 600; }
.pb-chip__meta { fill: var(--enf-text-tertiary); font-family: var(--enf-font-mono); font-size: 9.5px; }

@media (prefers-reduced-motion: reduce) {
  .pb-scan { animation: none; }
}

@media (max-width: 760px) {
  .pillbox-sketches { grid-template-columns: 1fr; }
  .pledge { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
}

/* ==========================================================================
   SITE HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--enf-bg-translucent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--enf-stroke);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--enf-p28);
  height: var(--enf-header-h);
}

.site-brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.site-brand:hover { color: var(--enf-text-primary); }
.site-brand img { width: 30px; height: 30px; border-radius: 9px; }
.site-brand__name { font-size: 18px; font-weight: var(--enf-w-bold); letter-spacing: -0.02em; }

.site-nav { display: flex; gap: 22px; margin-left: -16px; }
.site-nav a {
  font-size: var(--enf-callout);
  font-weight: var(--enf-w-medium);
  color: var(--enf-text-secondary);
  transition: color .2s ease;
}
.site-nav a:hover { color: var(--enf-text-primary); }

.site-header__spacer { flex: 1; }

.site-header__cta {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  border-radius: var(--enf-r-full);
  background: var(--enf-accent);
  color: var(--enf-accent-ink);
  font-size: var(--enf-callout);
  font-weight: var(--enf-w-semibold);
  white-space: nowrap;
}
.site-header__cta:hover { color: var(--enf-accent-ink); }

.site-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--enf-stroke);
  border-radius: var(--enf-r12);
  background: var(--enf-surface);
  color: var(--enf-text-primary);
  cursor: pointer;
}
.site-nav-toggle .ms { font-size: 22px; }
.site-nav-toggle__close { display: none; }
.site-header.is-open .site-nav-toggle__open { display: none; }
.site-header.is-open .site-nav-toggle__close { display: inline-flex; }

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */

.site-footer { border-top: 1px solid var(--enf-stroke); background: var(--enf-bg); }

.site-footer__inner {
  display: flex;
  align-items: center;
  gap: var(--enf-p24);
  flex-wrap: wrap;
  padding-top: var(--enf-p28);
  padding-bottom: var(--enf-p28);
}

.site-footer__brand { display: flex; align-items: center; gap: 10px; }
.site-footer__brand img { width: 26px; height: 26px; border-radius: 8px; }
.site-footer__brand span { font-size: var(--enf-subhead); font-weight: var(--enf-w-semibold); }
.site-footer__spacer { flex: 1; }
.site-footer__links { display: flex; align-items: center; gap: var(--enf-p24); flex-wrap: wrap; }
.site-footer__links a { font-size: var(--enf-callout); color: var(--enf-text-secondary); }
.site-footer__links a:hover { color: var(--enf-text-primary); }
.site-footer__legal { font-size: var(--enf-footnote); color: var(--enf-text-tertiary); }

/* ==========================================================================
   DOCUMENT PAGES (privacy, coming soon, UDID) — one shared prose style.
   ========================================================================== */

.doc { padding-top: 72px; padding-bottom: 96px; }
.doc__header { margin-bottom: 48px; }
.doc__title { font-size: clamp(34px, 4vw, 52px); line-height: 1.04; letter-spacing: -0.03em; font-weight: var(--enf-w-bold); margin: 0 0 12px; }
.doc__meta { font-family: var(--enf-font-mono); font-size: var(--enf-footnote); color: var(--enf-text-tertiary); }

.doc__body { max-width: 720px; }
.doc__body h2 {
  font-size: var(--enf-title);
  font-weight: var(--enf-w-bold);
  letter-spacing: -0.015em;
  margin: 44px 0 12px;
}
.doc__body p { font-size: var(--enf-headline); line-height: 1.7; color: var(--enf-text-secondary); margin: 0 0 16px; }
.doc__body strong { color: var(--enf-text-primary); font-weight: var(--enf-w-semibold); }
.doc__body ul { margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.doc__body ul li {
  position: relative;
  padding-left: 22px;
  font-size: var(--enf-headline);
  line-height: 1.6;
  color: var(--enf-text-secondary);
}
.doc__body ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--enf-accent);
}
.doc__body a { color: var(--enf-accent-deep); border-bottom: 1px solid rgba(15,158,111,0.3); }
.doc__body a:hover { border-color: var(--enf-accent-deep); }

/* Cards and buttons are links too, but the prose underline would fight their
   own border. */
.doc__body a.enf-card,
.doc__body a.enf-btn,
.doc__body a.enf-tile {
  color: var(--enf-text-primary);
  border-bottom-color: var(--enf-stroke);
  transition: border-color .2s ease, transform .15s ease;
}
.doc__body a.enf-card:hover,
.doc__body a.enf-tile:hover { border-color: var(--enf-stroke-2); transform: translateY(-1px); }
.doc__body a.enf-btn--primary { color: var(--enf-accent-ink); border-bottom-color: transparent; }
.doc__body a.enf-btn--ghost:hover { border-color: var(--enf-stroke-2); }
.doc__body hr { border: none; border-top: 1px solid var(--enf-stroke); margin: 48px 0; }

/* Centred single-purpose pages (coming soon, UDID). */
.stage {
  min-height: calc(100vh - var(--enf-header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 72px;
  padding-bottom: 96px;
}
.stage__inner { width: 100%; max-width: 560px; text-align: center; }
.stage__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  border-radius: 20px;
  background: var(--enf-accent-soft);
  color: var(--enf-accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage__icon .ms { font-size: 34px; }
.stage__title { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.06; letter-spacing: -0.03em; font-weight: var(--enf-w-bold); margin: 0 0 14px; }
.stage__lead { font-size: var(--enf-lead); line-height: 1.55; color: var(--enf-text-secondary); margin: 0 0 32px; }
.stage__card { text-align: left; }
.stage__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.stage__steps { display: flex; flex-direction: column; gap: 14px; }
.stage__steps li { display: flex; align-items: flex-start; gap: 12px; }
.stage__step {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--enf-accent-soft);
  color: var(--enf-accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--enf-caption);
  font-weight: var(--enf-w-semibold);
}
.stage__steps strong { font-weight: var(--enf-w-semibold); }

/* Form fields shared by the waitlist and the UDID pages. */
.enf-field { display: flex; flex-direction: column; gap: 8px; }
.enf-label { font-size: var(--enf-caption2); font-weight: var(--enf-w-semibold); letter-spacing: 0.8px; text-transform: uppercase; color: var(--enf-text-secondary); }
.enf-input {
  height: 52px;
  width: 100%;
  border-radius: var(--enf-r16);
  border: 1px solid var(--enf-stroke);
  background: var(--enf-bg);
  padding: 0 16px;
  font-family: var(--enf-font);
  font-size: var(--enf-body);
  color: var(--enf-text-primary);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.enf-input::placeholder { color: var(--enf-text-tertiary); }
.enf-input:focus { border-color: rgba(52,211,153,0.6); box-shadow: 0 0 0 4px var(--enf-accent-soft); }

.enf-note {
  border-radius: var(--enf-r16);
  padding: 14px 16px;
  font-size: var(--enf-callout);
  line-height: 1.5;
}
.enf-note--ok { background: var(--enf-accent-soft); color: var(--enf-accent-deep); }
.enf-note--error { background: rgba(248,113,113,0.14); color: #8f2f2f; }
.enf-note--error ul { margin: 8px 0 0; display: flex; flex-direction: column; gap: 4px; }
.enf-note--error li { padding-left: 14px; position: relative; }
.enf-note--error li::before { content: '·'; position: absolute; left: 4px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  :root { --enf-p28: 20px; }

  .enf-grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .enf-grid-2--tight { gap: 12px; }
  .enf-grid-2--flow { columns: 1; }

  .site-header__inner { gap: 12px; }
  .site-nav-toggle { display: inline-flex; }
  .site-header__spacer { flex: 1; }

  .site-nav {
    position: absolute;
    top: var(--enf-header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px var(--enf-p28) 18px;
    background: var(--enf-bg-elevated);
    border-bottom: 1px solid var(--enf-stroke);
    box-shadow: var(--enf-shadow-float);
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav a {
    padding: 13px 0;
    font-size: var(--enf-headline);
    color: var(--enf-text-primary);
    border-bottom: 1px solid var(--enf-stroke);
  }
  .site-nav a:last-child { border-bottom: none; }

  .enf-section { padding-top: 72px; }
  .doc { padding-top: 48px; padding-bottom: 72px; }
  .site-footer__inner { gap: 14px; }
  .site-footer__spacer { flex-basis: 100%; height: 0; }
}

@media (max-width: 560px) {
  .site-header__cta { height: 34px; padding: 0 14px; font-size: var(--enf-footnote); }
  .site-footer__links { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
