/* ════════════════════════════════════════════════════════════
   CYDUCK — A′ SANCTUARY (shared chassis)
   v1.0 — 5 May 2026

   This file provides the shared chassis for all A′ Sanctuary pages
   on cyduck.com (homepage, tools, manifesto, legal, contact, 404).

   Architecture:
   - This stylesheet is CACHED across pages (single ~6KB gzip download).
   - Each page additionally inlines page-specific CSS (3-5KB) for
     above-the-fold styles unique to that page.
   - Linked AFTER shared/common.js, BEFORE shared/sanctuary.js.

   Not used by:
   - Dashboard (uses dashboard/css/*)
   - Legacy TR pages (use shared/style.css until Phase 4 migration)
   - /game (independent retro design system)
   ════════════════════════════════════════════════════════════ */


/* ════════════════════════════════════════════════════════════
   1. TOKENS — semantic palette + typography + layout
   ════════════════════════════════════════════════════════════ */

:root {
  /* Surface — dark, with purple-ink undertone (default) */
  --bone:        #08080f;
  --bone-2:      #10101a;
  --bone-3:      #171724;

  /* Ink — light text on dark surface */
  --ink:         #eeeef5;
  --ink-2:       #c5c5d5;
  --ink-soft:    #8888aa;
  --ink-mute:    #5a5a78;
  --ink-faint:   #3a3a52;

  /* Rules — subtle borders */
  --rule:        #242438;
  --rule-soft:   #1a1a2c;
  --rule-strong: #44446a;

  /* Accent — mint, primary brand color */
  --accent:      #10b981;
  --accent-deep: #059669;
  --accent-soft: rgba(16, 185, 129, 0.16);

  /* Sub-accent — purple, secondary brand (dashboard tie-in) */
  --primary:      #a78bfa;
  --primary-deep: #7c3aed;
  --primary-soft: rgba(167, 139, 250, 0.16);

  /* Tier — moss/success */
  --moss:        #22c55e;
  --moss-soft:   rgba(34, 197, 94, 0.12);

  /* Severity */
  --warn:        #f59e0b;
  --warn-soft:   rgba(245, 158, 11, 0.14);
  --crit:        #ef4444;
  --crit-soft:   rgba(239, 68, 68, 0.14);

  /* On-accent: text color when placed on top of --accent fill.
     Sealed: always dark, regardless of theme. WCAG AA on both
     dark mint (#10b981) and light mint (#059669). */
  --on-accent:   #08080f;

  /* Backdrop — translucent surface for sticky topbar.
     Theme-specific to match underlying bone. */
  --backdrop:    rgba(8, 8, 15, 0.85);

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --max:    1200px;
  --gutter: clamp(20px, 4vw, 40px);
}

/* Light theme — values transcribed from sealed sanctuary_dual_light.html
   palette + onaylı warn/crit shifts (#d97706 amber-600, #dc2626 red-600). */
[data-theme="light"] {
  --bone:        #f2f2f8;
  --bone-2:      #ebebf4;
  --bone-3:      #ffffff;

  --ink:         #0e0e1a;
  --ink-2:       #2a2a3e;
  --ink-soft:    #505068;
  --ink-mute:    #aaaabc;
  --ink-faint:   #d8d8ea;

  --rule:        #d8d8ea;
  --rule-soft:   #ebebf4;
  --rule-strong: #aaaacc;

  --accent:      #059669;
  --accent-deep: #047857;
  --accent-soft: rgba(5, 150, 105, 0.10);

  --primary:      #7c3aed;
  --primary-deep: #5b21b6;
  --primary-soft: rgba(124, 58, 237, 0.10);

  --moss:        #16a34a;
  --moss-soft:   rgba(22, 163, 74, 0.10);

  --warn:        #d97706;
  --warn-soft:   rgba(217, 119, 6, 0.10);
  --crit:        #dc2626;
  --crit-soft:   rgba(220, 38, 38, 0.10);

  --backdrop:    rgba(242, 242, 248, 0.85);
}


/* ════════════════════════════════════════════════════════════
   2. RESET — normalize box model + remove default margins
   ════════════════════════════════════════════════════════════ */

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

html, body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html { scroll-behavior: smooth; }
body { min-height: 100vh; overflow-x: hidden; }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }


/* ════════════════════════════════════════════════════════════
   3. CHASSIS BACKGROUND — subtle noise + ambient glow blobs
   Present on every page (14 mockups confirmed).
   ════════════════════════════════════════════════════════════ */

/* Subtle noise overlay — looks like grain on surface */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.04 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

/* Ambient mint glow — top-right */
body::after {
  content: "";
  position: fixed;
  width: 800px;
  height: 800px;
  top: -200px;
  right: -250px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* Ambient purple glow — bottom-left (companion blob) */
.ambient-glow-2 {
  position: fixed;
  width: 700px;
  height: 700px;
  bottom: -200px;
  left: -250px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}


/* ════════════════════════════════════════════════════════════
   4. LAYOUT PRIMITIVES — shell, row, max-width
   ════════════════════════════════════════════════════════════ */

.shell { position: relative; z-index: 2; }
.row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}


/* ════════════════════════════════════════════════════════════
   5. TYPOGRAPHY UTILITIES — eyebrow, mono labels, fig marks
   Used across all pages.
   ════════════════════════════════════════════════════════════ */

.eyebrow,
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

/* fig-mark — Roman numeral / section marker (6 mockups) */
.fig-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
}

/* Big number / Roman numeral mono accent */
.big-mono {
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* Lock icon container (privacy-meta line, 7 mockups) */
.lock {
  display: inline-flex;
  width: 12px;
  height: 14px;
  flex-shrink: 0;
}
.lock svg { width: 100%; height: 100%; }


/* ════════════════════════════════════════════════════════════
   6. FOCUS STATES — accessibility floor (sealed §6.3)
   ════════════════════════════════════════════════════════════ */

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}


/* ════════════════════════════════════════════════════════════
   7. TOPBAR — full standard, on every A′ Sanctuary page
   Sealed §1: 4 nav items + dropdowns + CTA + hamburger ≤760px.
   ════════════════════════════════════════════════════════════ */

.topbar {
  border-bottom: 1px solid var(--rule);
  background: var(--backdrop);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.topbar.is-hidden { transform: translateY(-100%); }

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  flex-shrink: 0;
  position: relative;
}
.brand sup {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-left: 8px;
  vertical-align: super;
  font-weight: 400;
}

/* Nav list */
.nav-list {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
  font-size: 14px;
  color: var(--ink-2);
}
.nav-list > li { position: relative; }

/* Nav link container */
.nav-link {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-2);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--ink); }

/* Active state — sealed §1.5 */
.nav-link.is-active::after,
.has-dropdown.is-active > .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--accent);
}

/* Dropdown trigger — "+" indicator (sealed) */
.has-dropdown > .nav-link::before {
  content: "+";
  display: inline-block;
  margin-right: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-mute);
  position: relative;
  top: -1px;
  transition: color 0.2s, transform 0.3s ease;
}
.has-dropdown:hover > .nav-link::before,
.has-dropdown.open > .nav-link::before {
  color: var(--accent);
  transform: rotate(45deg);
}

/* nav-text — scramble effect container */
.nav-text {
  display: inline-block;
  transition: color 0.2s;
}
.nav-text.is-scrambling { color: var(--accent); }

/* Italic em words inside nav-text (display variant) */
.nav-text em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-deep);
  font-size: 15px;
}
.nav-text.is-scrambling em { color: var(--accent); }


/* ════════════════════════════════════════════════════════════
   8. DROPDOWN — desktop hover mega-menu
   ════════════════════════════════════════════════════════════ */

.has-dropdown { position: relative; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: -16px;
  min-width: 380px;
  background: var(--bone);
  border: 1px solid var(--rule);
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* Hover-bridge: invisible 18px gap so cursor can travel without closing */
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 18px;
}

.has-dropdown.open > .nav-dropdown,
.has-dropdown:hover > .nav-dropdown,
.has-dropdown:focus-within > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-mega-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: baseline;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 0;
  transition: background 0.2s;
  position: relative;
  border-bottom: 1px solid var(--rule);
}
.nav-mega-item:last-child { border-bottom: none; }
.nav-mega-item:hover { background: var(--bone-2); }

.nav-mega-item::before {
  content: attr(data-num);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-transform: uppercase;
  align-self: start;
  padding-top: 6px;
  transition: color 0.2s;
}
.nav-mega-item:hover::before { color: var(--accent-deep); }

.nmi-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.nmi-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--ink);
  line-height: 1.2;
  transition: color 0.2s;
}
.nav-mega-item:hover .nmi-title {
  color: var(--accent-deep);
  font-style: italic;
}
.nmi-sub {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* CTA button (right side of topbar) — sealed outline-only, hover invert */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  border: 1px solid var(--ink);
  text-transform: uppercase;
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s;
}
.nav-cta:hover {
  background: var(--ink);
  color: var(--bone);
}
.nav-cta-arrow { display: inline-block; transition: transform 0.25s ease; }
.nav-cta:hover .nav-cta-arrow { transform: translateX(4px); }

/* Glitch effect on label — sealed §1.6 */
.nav-cta-label { position: relative; }
.nav-cta:hover .nav-cta-label {
  animation: rgbSplit 0.6s steps(3) 1;
}
@keyframes rgbSplit {
  0%   { text-shadow: 0 0 0 transparent; transform: translate(0, 0); }
  20%  { text-shadow: -2px 0 #10b981, 2px 0 #a78bfa; }
  40%  { text-shadow: 2px 0 #10b981, -2px 0 #a78bfa; transform: translate(1px, 0); }
  60%  { text-shadow: -1px 0 #10b981, 1px 0 #a78bfa; transform: translate(-1px, 0); }
  100% { text-shadow: 0 0 0 transparent; transform: translate(0, 0); }
}

.nav-cta-label.is-mobile { display: none; }


/* ════════════════════════════════════════════════════════════
   9. HAMBURGER + MOBILE DRAWER (sealed homepage_v23 pattern)
   Drawer = full-screen, slides from top.
   ════════════════════════════════════════════════════════════ */

.hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--rule);
  padding: 11px 12px;
  color: var(--ink);
  cursor: pointer;
  line-height: 0;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.hamburger:hover { border-color: var(--ink); background: var(--bone-2); }

@media (max-width: 760px) {
  .nav-list { display: none; }
  .hamburger { display: block; }
  .nav-cta {
    padding: 8px 14px;
    font-size: 11px;
    gap: 8px;
  }
  .nav-cta-label.is-desktop { display: none; }
  .nav-cta-label.is-mobile { display: inline-block; }
}

/* Mobile drawer panel — full screen, slides from top */
.drawer {
  position: fixed;
  inset: 0;
  background: var(--bone);
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 24px var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  visibility: hidden;
}
.drawer.is-open {
  transform: translateY(0);
  visibility: visible;
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
}

.drawer-close {
  background: transparent;
  border: 1px solid var(--rule);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink);
  cursor: pointer;
}

.drawer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.drawer-nav li { border-bottom: 1px solid var(--rule); }
.drawer-nav > li > a {
  display: block;
  padding: 20px 0 14px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.drawer-nav > li > a em {
  font-style: italic;
  color: var(--accent-deep);
}

.drawer-sub {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0 16px 0;
  margin-top: -4px;
}
.drawer-sub li { border-bottom: none !important; }
.drawer-sub a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 8px 0;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0;
  color: var(--ink-soft);
  font-weight: 400;
}
.drawer-sub a:hover { color: var(--ink); }
.drawer-sub a .dsn {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  flex-shrink: 0;
  min-width: 22px;
}

.drawer-foot {
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.drawer-lang a { color: var(--ink-mute); padding: 4px 8px; }
.drawer-lang a.is-active { color: var(--ink); font-weight: 500; }

body.drawer-open { overflow: hidden; }


/* ════════════════════════════════════════════════════════════
   10. FOOTER — brand + theme toggle + lang switcher
   Sealed §2: identical on every page (game excluded).
   ════════════════════════════════════════════════════════════ */

.foot {
  padding: 60px 0 40px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  position: relative;
  z-index: 2;
}

.foot-row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* 3-column rich footer (homepage_v23 pattern) */
.foot-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}
@media (max-width: 880px) {
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: left;
  }
}

.foot-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}

.foot-manifesto {
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  text-transform: none;
  text-align: center;
  line-height: 1.4;
}
@media (max-width: 880px) {
  .foot-manifesto { text-align: left; }
}

.foot-controls {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.foot-links {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.foot-links a {
  color: var(--ink-mute);
  padding: 0 4px;
  transition: color 0.2s;
}
.foot-links a:first-child { padding-left: 0; }
.foot-links a:hover { color: var(--accent-deep); }
.foot-links .sep { color: var(--ink-faint); }

.foot-brand {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  text-transform: none;
}
.foot-year {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  margin-left: 12px;
}

.foot-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme toggle — dolu ☀/☽ glyphs, aktif olan mint (sealed §2.2) */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink-mute);
  cursor: pointer;
  transition: border-color 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle .ts-sun,
.theme-toggle .ts-moon {
  line-height: 1;
  color: var(--ink-mute);
  transition: color 0.2s;
}
[data-theme="dark"] .theme-toggle .ts-moon { color: var(--accent); }
[data-theme="light"] .theme-toggle .ts-sun  { color: var(--accent); }

.foot-sep {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--rule-strong);
}

.foot-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  transition: border-color 0.2s;
}
.foot-lang:hover { border-color: var(--accent); }
.foot-lang a { color: var(--ink-mute); transition: color 0.2s; }
.foot-lang a:hover { color: var(--ink); }
.foot-lang a.is-active { color: var(--accent); }
.foot-lang .sep { color: var(--ink-faint); }

@media (max-width: 720px) {
  .foot-row { flex-direction: column; align-items: flex-start; gap: 16px; }
}


/* ════════════════════════════════════════════════════════════
   11. PAGE HEADER PATTERN — tool sub-page hero (11 mockups)
   ════════════════════════════════════════════════════════════ */

.page-header {
  padding: clamp(60px, 8vw, 110px) 0 clamp(40px, 5vw, 60px);
}
.page-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.page-h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 18ch;
}
.page-h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.page-lede {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 60ch;
}


/* ════════════════════════════════════════════════════════════
   12. FORM PRIMITIVES — input, textarea, button base
   ════════════════════════════════════════════════════════════ */

.form-input,
.email-input {
  flex: 1;
  min-width: 240px;
  background: var(--bone-3);
  border: 1px solid var(--rule);
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus,
.email-input:focus { border-color: var(--accent); }
.form-input::placeholder,
.email-input::placeholder { color: var(--ink-mute); }

.form-textarea {
  width: 100%;
  background: var(--bone-3);
  border: 1px solid var(--rule);
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  resize: vertical;
  min-height: 120px;
  outline: none;
  transition: border-color 0.2s;
}
.form-textarea:focus { border-color: var(--accent); }

.input-shell {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 620px;
}

.input-meta {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Button — base + variants */
.btn,
.btn-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 28px;
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn:hover,
.btn-check:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}
.btn-arrow,
.btn-check-arrow {
  display: inline-block;
  transition: transform 0.25s;
}
.btn:hover .btn-arrow,
.btn-check:hover .btn-check-arrow { transform: translateX(3px); }

/* Ghost button variant */
.btn.is-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn.is-ghost:hover {
  background: var(--bone-2);
  border-color: var(--ink-soft);
}


/* ════════════════════════════════════════════════════════════
   13. SEVERITY BARS — 5-cell pattern (7 mockups)
   Sealed §5A: C2 alarm + dynamic severity card
   ════════════════════════════════════════════════════════════ */

.severity-bars {
  display: flex;
  gap: 3px;
}
.severity-bars span {
  width: 5px;
  height: 14px;
  background: var(--ink-faint);
}
.severity-bars span.on   { background: var(--accent); }
.severity-bars span.warn { background: var(--warn); }
.severity-bars span.crit { background: var(--crit); }
.severity-bars span.moss { background: var(--moss); }

.severity-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  text-transform: uppercase;
}


/* ════════════════════════════════════════════════════════════
   14. CROSS-TOOL GRID — "explore other tools" (7 mockups)
   ════════════════════════════════════════════════════════════ */

.cross-section {
  padding: clamp(60px, 7vw, 100px) 0;
  background: var(--bone-2);
  border-top: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.cross-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 100%, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.5;
}
.cross-section > * { position: relative; z-index: 1; }

.cross-h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}
.cross-h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.cross-sub {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 36px;
  max-width: 56ch;
}

.cross-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.cross-tool {
  display: block;
  padding: 28px 26px;
  background: var(--bone-2);
  transition: background 0.2s;
  position: relative;
}
.cross-tool:hover { background: var(--bone-3); }

.cross-tool-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.cross-tool-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 6px;
}
.cross-tool-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}


/* ════════════════════════════════════════════════════════════
   15. NEXT STEPS / HOW IT WORKS — educational blocks (6-7 mockups)
   ════════════════════════════════════════════════════════════ */

/* "Next steps" section after a tool result */
.next-section {
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid var(--rule);
}
.next-h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}
.next-h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.next-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 64ch;
  margin-bottom: 28px;
}
.next-body a.next-tool {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  transition: color 0.2s, border-color 0.2s;
}
.next-body a.next-tool:hover {
  color: var(--accent-deep);
  border-color: var(--accent);
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.next-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.next-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}
.next-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  padding-top: 2px;
  white-space: nowrap;
}

/* "How it works" section */
.how-section {
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid var(--rule);
}
.how-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.how-h {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
}
.how-card {
  padding: 28px;
  background: var(--bone-2);
  border: 1px solid var(--rule);
}
.how-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.how-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}
.how-foot {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  text-transform: uppercase;
}


/* ════════════════════════════════════════════════════════════
   16. REDUCED MOTION — accessibility (sealed §6.5)
   ════════════════════════════════════════════════════════════ */

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