/* ============================================================
   NEXORA SYSTEMS — brand system
   A fixed, deliberate visual identity (not OS-theme adaptive —
   every color below is painted explicitly, agency-brand style).
   Ink: near-black w/ deep green cast · Paper: cool off-white
   Accent: brass/gold, used once, spent deliberately.
   Type: Bricolage Grotesque (display) / Instrument Sans (body) / IBM Plex Mono (data)
   ============================================================ */

:root {
  --paper: #F5F6F9;
  --paper-2: #EBEDF3;
  --ink: #0B1626;
  --ink-2: #111F33;
  --ink-3: #182B44;
  --line: #DDE0E7;
  --line-strong: #C4C9D4;
  --line-dark: #263C57;
  --text: #0E1C2F;
  --text-muted: #57626F;
  --text-faint: #8992A0;
  --on-ink: #ECEFF5;
  --on-ink-muted: #9BA6B8;
  --on-ink-faint: #5A6A80;
  --gold: #B4872A;
  --gold-bright: #E7BA4E;
  --gold-ink: #17130A;
  --brand-blue: #307DC1;
  --danger: #A5432E;
  --shadow-1: 0 1px 2px rgba(11,22,38,0.05), 0 1px 1px rgba(11,22,38,0.04);
  --shadow-2: 0 18px 40px -20px rgba(11,22,38,0.4);
  --shadow-gold: 0 14px 30px -14px rgba(180,135,42,0.55);
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --max: 1240px;
  --ease: cubic-bezier(.16,.8,.3,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: "Bricolage Grotesque", "Instrument Sans", sans-serif;
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.015em;
  color: var(--text);
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 56px);
}

.on-ink { background: var(--ink); color: var(--on-ink); }

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.on-ink .eyebrow { color: var(--gold-bright); }
.on-ink .eyebrow::before { background: var(--gold-bright); }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  .reveal.in-view { opacity: 1; transform: none; }
  .reveal-group .reveal:nth-child(1) { transition-delay: 0.02s; }
  .reveal-group .reveal:nth-child(2) { transition-delay: 0.09s; }
  .reveal-group .reveal:nth-child(3) { transition-delay: 0.16s; }
  .reveal-group .reveal:nth-child(4) { transition-delay: 0.23s; }
  .reveal-group .reveal:nth-child(5) { transition-delay: 0.30s; }
  .reveal-group .reveal:nth-child(6) { transition-delay: 0.37s; }
  .reveal-group .reveal:nth-child(7) { transition-delay: 0.44s; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0.85em 1.35em;
  border-radius: 999px;
  font-family: "Instrument Sans", sans-serif;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translate(3px, -3px); }
.btn:active { transform: scale(0.97); }
.btn-gold {
  background: var(--gold);
  color: var(--gold-ink);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { background: var(--gold-bright); }
.btn-line {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-line:hover { border-color: var(--gold); color: var(--gold); }
.btn-on-ink {
  background: transparent;
  border-color: var(--line-dark);
  color: var(--on-ink);
}
.btn-on-ink:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.6em 1.05em; font-size: 0.85rem; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding-block: 18px;
  transition: padding 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding-block: 12px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; object-fit: contain; }
.brand-sub {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  display: block;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  font-size: 0.91rem;
  color: var(--text-muted);
  position: relative;
  padding-block: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 880px) {
  .nav-links {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: flex-start;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 6px clamp(20px, 5vw, 56px) 22px;
    gap: 2px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 0; width: 100%; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn-line { display: none; }
}

/* ---------- sections ---------- */
main { display: block; }
section { position: relative; }
.pad { padding-block: clamp(64px, 9vw, 128px); }
.pad-sm { padding-block: clamp(40px, 6vw, 72px); }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 620px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.section-head p { color: var(--text-muted); font-size: 1.06rem; }
.section-head.on-ink p { color: var(--on-ink-muted); }
.section-foot {
  margin-top: clamp(32px, 5vw, 48px);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* ---------- hero ---------- */
.hero {
  background: var(--ink);
  color: var(--on-ink);
  position: relative;
  overflow: hidden;
  padding-top: clamp(52px, 9vw, 84px);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70%;
  background: radial-gradient(60% 60% at 30% 20%, color-mix(in srgb, var(--gold) 30%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  gap: 26px;
  max-width: 800px;
  padding-block: clamp(48px, 8vw, 86px) clamp(56px, 9vw, 96px);
}
.hero h1 {
  font-size: clamp(2.6rem, 6.6vw, 5.2rem);
  color: var(--on-ink);
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-bright);
}
.hero .lede {
  font-size: 1.18rem;
  color: var(--on-ink-muted);
  max-width: 56ch;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.hero-scroll {
  position: absolute;
  right: clamp(20px, 5vw, 56px);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--on-ink-faint);
  text-transform: uppercase;
}
.hero-scroll .line { width: 30px; height: 1px; background: var(--line-dark); position: relative; overflow: hidden; }
.hero-scroll .line::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--gold-bright);
  transform: translateX(-100%);
  animation: scrollpulse 2.2s ease-in-out infinite;
}
@keyframes scrollpulse { 0%{transform:translateX(-100%);} 50%{transform:translateX(0);} 100%{transform:translateX(100%);} }
@media (prefers-reduced-motion: reduce) { .hero-scroll .line::after { animation: none; transform: translateX(0); } }
@media (max-width: 700px) { .hero-scroll { display: none; } }

.stat-strip {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 6vw, 64px);
  padding-top: 30px;
  margin-top: 6px;
  border-top: 1px solid var(--line-dark);
}
.stat-strip .stat-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  color: var(--on-ink);
}
.stat-strip .stat-label { font-size: 0.8rem; color: var(--on-ink-faint); margin-top: 2px; }

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: 22px;
  background: var(--paper-2);
}
.marquee-inner { display: flex; align-items: center; gap: 14px; }
.marquee-label {
  flex-shrink: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-inline: clamp(20px, 5vw, 56px);
  border-right: 1px solid var(--line-strong);
}
.marquee-track-wrap { overflow: hidden; flex-grow: 1; }
.marquee-track {
  display: flex;
  width: max-content;
  gap: 40px;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.marquee-item {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.86rem;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}
.marquee-item::before { content: "◆"; color: var(--gold); font-size: 0.6rem; }

/* ---------- bento services ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.bento-card {
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: #fff;
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.bento-card.feature { grid-column: span 3; grid-row: span 2; background: var(--ink); color: var(--on-ink); justify-content: space-between; }
.bento-card.feature p { color: var(--on-ink-muted); }
.bento-card.feature .service-num { color: var(--on-ink-faint); }
.bento-card:not(.feature) { grid-column: span 3; }
.service-num { font-family: "IBM Plex Mono", monospace; color: var(--text-faint); font-size: 0.84rem; }
.service-icon { width: 42px; height: 42px; color: var(--gold); }
.bento-card.feature .service-icon { color: var(--gold-bright); width: 52px; height: 52px; }
.bento-card h3 { font-size: 1.2rem; }
.bento-card.feature h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.bento-card p { color: var(--text-muted); font-size: 0.95rem; flex-grow: 1; }
.service-stack {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  color: var(--text-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.bento-card.feature .service-stack { color: var(--on-ink-faint); }
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card, .bento-card.feature { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card, .bento-card.feature { grid-column: span 1; }
}

/* ---------- process timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  counter-reset: step;
}
.timeline-step {
  position: relative;
  padding-top: 28px;
}
.timeline-step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--line);
}
.timeline-step::after {
  content: "";
  position: absolute;
  top: -3px; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.timeline-step .t-num {
  font-family: "IBM Plex Mono", monospace;
  color: var(--gold);
  font-size: 0.82rem;
}
.timeline-step h4 { font-size: 1.04rem; margin-top: 8px; }
.timeline-step p { font-size: 0.88rem; color: var(--text-muted); margin-top: 8px; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 28px; }
  .timeline-step::before { top: 0; left: 0; right: auto; width: 2px; height: 100%; }
  .timeline-step { padding-top: 0; padding-left: 24px; }
  .timeline-step::after { top: 2px; left: -3px; }
}

/* ---------- ink panel (Nexora Pay) ---------- */
.pay-panel {
  background: var(--ink);
  color: var(--on-ink);
  position: relative;
  overflow: hidden;
}
.pay-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(60% 60% at 25% 20%, black, transparent 75%);
  opacity: 0.7;
}
.pay-panel > .wrap { position: relative; }
.pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  margin-top: 40px;
  align-items: start;
}
.pay-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pay-stat {
  border: 1px solid var(--line-dark);
  border-radius: var(--r-m);
  padding: 20px;
  background: color-mix(in srgb, var(--ink-3) 55%, transparent);
}
.pay-stat .stat-num { color: var(--gold-bright); font-family: "IBM Plex Mono", monospace; font-size: 1.55rem; font-weight: 600; }
.pay-stat .stat-label { color: var(--on-ink-faint); font-size: 0.8rem; margin-top: 5px; }
.pay-ticker {
  border: 1px solid var(--line-dark);
  border-radius: var(--r-m);
  overflow: hidden;
  background: color-mix(in srgb, var(--ink-3) 55%, transparent);
}
.pay-ticker-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-ink-faint);
}
.pay-ticker-body { padding: 8px 0; overflow: hidden; }
.pay-ticker-track { display: flex; flex-direction: column; animation: ticker 14s linear infinite; }
@media (prefers-reduced-motion: reduce) { .pay-ticker-track { animation: none; } }
@keyframes ticker { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.pay-ticker-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 18px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.86rem;
  color: var(--on-ink-muted);
  border-bottom: 1px dashed var(--line-dark);
}
.pay-ticker-row .ok { color: var(--gold-bright); }
@media (max-width: 780px) { .pay-grid { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.pricing-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.pricing-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.pricing-tabs label {
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.pricing-tabs input:checked + label { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.pricing-panels { display: grid; }
.pricing-panel { display: none; grid-template-columns: repeat(3, 1fr); gap: 20px; }
#tab-web:checked ~ .pricing-panels #panel-web,
#tab-mobile:checked ~ .pricing-panels #panel-mobile,
#tab-crm:checked ~ .pricing-panels #panel-crm,
#tab-support:checked ~ .pricing-panels #panel-support { display: grid; }
.tier-card {
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.tier-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.tier-card.featured { border-color: var(--gold); background: var(--ink); color: var(--on-ink); }
.tier-card.featured .tier-desc, .tier-card.featured .tier-list { color: var(--on-ink-muted); }
.tier-card.featured .tier-price { color: var(--gold-bright); }
.tier-badge {
  position: absolute;
  top: -12px; right: 20px;
  background: var(--gold);
  color: var(--gold-ink);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.04em;
}
.tier-name { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.1rem; }
.tier-price { font-family: "IBM Plex Mono", monospace; font-size: 1.55rem; font-weight: 600; color: var(--gold); }
.tier-price span { font-size: 0.75rem; color: var(--text-faint); font-weight: 400; }
.tier-card.featured .tier-price span { color: var(--on-ink-faint); }
.tier-desc { color: var(--text-muted); font-size: 0.9rem; flex-grow: 1; }
.tier-list { list-style: none; display: grid; gap: 9px; font-size: 0.88rem; color: var(--text-muted); }
.tier-list li { display: flex; gap: 9px; }
.tier-list li::before { content: "—"; color: var(--gold); flex-shrink: 0; }
@media (max-width: 780px) { .pricing-panel { grid-template-columns: 1fr; } }

/* ---------- why / bento-2 ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.why-tile {
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: clamp(22px, 3vw, 30px);
  background: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.why-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.why-tile.wide { grid-column: span 2; }
.why-tile.dark { background: var(--ink); color: var(--on-ink); }
.why-tile.dark p { color: var(--on-ink-muted); }
.why-mark { font-family: "IBM Plex Mono", monospace; color: var(--gold); font-size: 0.84rem; }
.why-tile h3 { font-size: 1.08rem; margin-top: 12px; }
.why-tile p { color: var(--text-muted); font-size: 0.92rem; margin-top: 8px; }
.why-tile .big-stat {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.why-tile.dark .big-stat { color: var(--gold-bright); }
@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-tile.wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-tile.wide { grid-column: span 1; }
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: var(--r-s);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  width: 100%;
  transition: border-color 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 0.82rem; color: var(--text-faint); margin-top: 4px; }
.confirm-msg {
  display: none;
  border: 1px solid var(--gold);
  background: color-mix(in srgb, var(--gold) 10%, #fff);
  border-radius: var(--r-m);
  padding: 16px 18px;
  font-size: 0.92rem;
  color: var(--text);
  margin-top: 18px;
}
.confirm-msg.show { display: block; }
.info-card {
  border-radius: var(--r-l);
  padding: clamp(26px, 3vw, 34px);
  background: var(--ink);
  color: var(--on-ink);
  display: grid;
  gap: 22px;
  position: relative;
  overflow: hidden;
}
.info-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 90% 0%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 70%);
}
.info-card > * { position: relative; }
.info-row { display: flex; gap: 14px; align-items: flex-start; }
.info-row svg { width: 20px; height: 20px; color: var(--gold-bright); flex-shrink: 0; margin-top: 2px; }
.info-row h4 { font-size: 0.9rem; margin-bottom: 4px; color: var(--on-ink); }
.info-row p, .info-row a { color: var(--on-ink-muted); font-size: 0.92rem; }
.info-row a:hover { color: var(--gold-bright); }
@media (max-width: 780px) { .contact-grid, .field-row { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--on-ink);
  padding-block: clamp(56px, 7vw, 84px) 0;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand p { color: var(--on-ink-muted); font-size: 0.9rem; margin-top: 14px; max-width: 32ch; }
.footer-brand .brand { color: var(--on-ink); }
.footer-brand .brand-mark { color: var(--on-ink); }
.footer-col h5 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-ink-faint);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a { color: var(--on-ink-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom {
  padding-block: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--on-ink-faint);
}
.footer-word {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: clamp(4rem, 16vw, 11rem);
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-dark);
  text-align: center;
  padding-block: 10px 0;
  user-select: none;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- legal / content pages ---------- */
.page-hero {
  background: var(--ink);
  color: var(--on-ink);
  padding-block: clamp(56px, 8vw, 92px) clamp(40px, 6vw, 60px);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(55% 70% at 15% 10%, black, transparent 75%);
  opacity: 0.7;
}
.page-hero > .wrap { position: relative; max-width: 760px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); color: var(--on-ink); margin-top: 14px; }
.page-hero .updated {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  color: var(--on-ink-faint);
  margin-top: 16px;
}
.page-hero .lede { font-size: 1.05rem; color: var(--on-ink-muted); margin-top: 14px; max-width: 58ch; }

.legal-body {
  max-width: 720px;
  padding-bottom: clamp(64px, 8vw, 100px);
  display: grid;
  gap: 44px;
}
.legal-body h2 { font-size: 1.32rem; display: flex; gap: 13px; align-items: baseline; }
.legal-body h2 .num { font-family: "IBM Plex Mono", monospace; color: var(--gold); font-size: 1rem; }
.legal-body .clause { display: grid; gap: 14px; }
.legal-body p { color: var(--text-muted); }
.legal-body ul, .legal-body ol { color: var(--text-muted); padding-left: 1.3em; display: grid; gap: 8px; }
.legal-body strong { color: var(--text); }
.legal-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.legal-toc {
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 22px 24px;
  background: #fff;
  max-width: 720px;
  margin-bottom: 8px;
}
.legal-toc h4 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.legal-toc ol { list-style: none; display: grid; gap: 9px; counter-reset: toc; padding: 0; }
.legal-toc li { counter-increment: toc; font-size: 0.9rem; }
.legal-toc li::before { content: counter(toc, decimal-leading-zero) "  "; font-family: "IBM Plex Mono", monospace; color: var(--gold); }
.legal-toc a { color: var(--text-muted); text-decoration: none; }
.legal-toc a:hover { color: var(--gold); }
.callout {
  border-left: 3px solid var(--gold);
  padding: 15px 20px;
  background: var(--paper-2);
  border-radius: 0 var(--r-s) var(--r-s) 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 720px;
}

/* ---------- FAQ ---------- */
.faq-group { max-width: 780px; display: grid; gap: 12px; }
.faq-cat h3 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 34px 0 14px;
}
.faq-cat:first-child h3 { margin-top: 0; }
details.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: #fff;
  padding: 4px 22px;
  transition: border-color 0.2s ease;
}
details.faq-item[open] { border-color: var(--gold); }
details.faq-item + details.faq-item { margin-top: 10px; }
details.faq-item summary {
  padding: 17px 0;
  cursor: pointer;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item .faq-a { padding-bottom: 20px; color: var(--text-muted); font-size: 0.95rem; max-width: 64ch; }

/* ---------- cta band ---------- */
.cta-band {
  border-radius: var(--r-l);
  background: var(--ink);
  color: var(--on-ink);
  padding: clamp(36px, 5vw, 56px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(50% 80% at 90% 100%, color-mix(in srgb, var(--gold) 25%, transparent), transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); max-width: 34ch; color: var(--on-ink); }

/* ---------- misc ---------- */
.text-columns { max-width: 720px; display: grid; gap: 16px; }
.text-columns p { color: var(--text-muted); }
