/* EventOS Free Trial — page-specific styling for free-trial.html only.
   Reuses Phase 5a tokens (--bg, --text, --muted, --panel, --card, --border,
   --accent-rich, --accent-soft, --link, --gold, --radius, --shadow-soft) instead of the
   recovered demonstration's own paper/slate palette and Google Fonts. Class names are
   reused from the recovered source except where they would collide with js/theme.css
   (.hero, .rolegrid, .chip were renamed to .ft-hero, .ft-rolegrid, .ft-chip). */

:root {
  --ft-ok: #2e7d52;
  --ft-warn: #b7791f;
}

/* ===== Chassis additions reused verbatim from the Phase 5a pages' own local
   <style> blocks (index.html / estimator.html). These rules live page-locally
   in every phase5a chassis page, not in the shared theme.css, so free-trial.html
   needs its own copy for the hamburger toggle and Request Pilot gate to render
   and behave correctly. Correction pass 20260723: root cause of the "empty nav
   control" and "unstyled Request Pilot content" defects. ===== */

.nav-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.nav-menu-toggle:hover { border-color: var(--brand-cyan); }
.nav-menu-toggle.is-active {
  border-color: var(--brand-cyan);
  background: color-mix(in srgb, var(--brand-cyan) 12%, transparent);
}
.nav-menu-icon,
.nav-menu-icon::before,
.nav-menu-icon::after {
  content: "";
  display: block;
  width: 17px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.nav-menu-icon { position: relative; }
.nav-menu-icon::before { position: absolute; left: 0; top: -5px; }
.nav-menu-icon::after { position: absolute; left: 0; top: 5px; }
.topnav-links { display: contents; }

@media (max-width: 768px) {
  .logo-wordmark { font-size: 18px; }
  .topnav { position: relative; gap: 10px; }
  .nav-menu-toggle { display: inline-flex; }
  .topnav [data-theme-toggle] { min-width: 0; padding: 8px 12px; font-size: 12px; }
  .topnav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 224px;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
    z-index: 60;
  }
  .topnav-links.is-open { display: flex; }
  .topnav-links a { padding: 12px 14px; border-radius: 10px; font-size: 15px; white-space: nowrap; }
  .topnav-links a:hover,
  .topnav-links a:active { background: color-mix(in srgb, var(--brand-cyan) 14%, transparent); }
}

/* ---------- Profile Gate (Request Pilot) ---------- */
.gate-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 1300;
}
.gate-backdrop.is-open { opacity: 1; pointer-events: auto; }
.gate-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(440px, 100%);
  background: var(--panel);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-strong, -10px 0 30px rgba(0, 0, 0, 0.2));
  transform: translateX(100%);
  transition: transform 0.22s ease;
  z-index: 1301;
  display: flex;
  flex-direction: column;
}
.gate-backdrop.is-open .gate-panel { transform: translateX(0); }
.gate-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--border);
}
.gate-eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 6px; }
.gate-title { margin: 0; font-size: 18px; }
.gate-close {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.gate-body { padding: 18px 20px 28px; overflow-y: auto; }
.gate-intro { margin: 0 0 16px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.gate-hp { position: absolute; left: -5000px; }
.gate-field { display: block; font-size: 12.5px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.gate-field .req { color: var(--brand-magenta, #d62bff); }
.gate-field input,
.gate-field textarea {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  box-sizing: border-box;
}
.gate-checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.gate-checkbox input { width: auto; margin: 0; }
.gate-disclaimer {
  margin: 4px 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  font-style: italic;
}
.gate-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(214, 43, 255, 0.08);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
}
.gate-error a { color: var(--link); font-weight: 700; }
.gate-submit { width: 100%; }
.gate-success { font-size: 14.5px; color: var(--text); padding: 6px 0; }
body.gate-active { overflow: hidden; }

/* 4a-4: Pilot framework drawer additions */
.gate-pilot-framework { display: none; margin-bottom: 18px; }
.gate-pilot-framework.is-visible { display: block; }
.gate-pilot-intro { font-size: 14px; color: var(--text); line-height: 1.6; margin: 0 0 14px; }
.gate-pilot-section { margin-bottom: 14px; }
.gate-pilot-section h5 { font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--link); margin: 0 0 6px; }
.gate-pilot-section ul { margin: 0; padding-left: 16px; }
.gate-pilot-section li { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 3px; }
.gate-pilot-section p { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0; }
.gate-pilot-divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.gate-pilot-fields { display: none; }
.gate-pilot-fields.is-visible { display: block; }
.gate-save-fields { display: block; }
.gate-save-fields.is-hidden { display: none; }
.gate-select { display: block; width: 100%; margin-top: 5px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; font-size: 13.5px; box-sizing: border-box; appearance: none; -webkit-appearance: none; }

/* ===== Shell ===== */
#main.ft-shell {
  padding: 28px clamp(16px, 4vw, 32px) 140px;
  max-width: 1160px;
  overflow-x: hidden;
}

.screen { display: none; }
.screen.on { display: block; animation: ftFadeIn 0.35s ease; }
@keyframes ftFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

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

.mono,
.id,
.eid,
.et {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

.eyebrow {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--link);
  font-weight: 600;
  margin-bottom: 8px;
}

.ft-shell h1 {
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  text-wrap: balance;
}

.ft-shell h2 { font-size: 22px; margin: 0 0 8px; }
.ft-shell h3 { font-size: 16px; margin: 0 0 6px; }

.lede {
  color: var(--muted);
  font-size: 16px;
  max-width: 92ch;
  margin-bottom: 22px;
}

/* ===== Panels / grids ===== */
.panel {
  padding: 20px 22px;
  margin-bottom: 18px;
  position: relative;
}

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
}

.trail-btn {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--link);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--link) 30%, var(--border));
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.trail-btn:hover { background: color-mix(in srgb, var(--link) 14%, var(--accent-soft)); }

.mchip {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 5px;
  padding: 2px 7px;
  vertical-align: 1px;
  margin-left: 6px;
}
.m-gravy { background: color-mix(in srgb, var(--gold) 20%, var(--card)); color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--border)); }
.m-show { background: var(--accent-soft); color: var(--link); border: 1px solid color-mix(in srgb, var(--link) 30%, var(--border)); }
.m-avit { background: color-mix(in srgb, var(--ft-ok) 16%, var(--card)); color: var(--ft-ok); border: 1px solid color-mix(in srgb, var(--ft-ok) 35%, var(--border)); }

.cap {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 5px;
  padding: 2px 8px;
}
.cap-trial { background: color-mix(in srgb, var(--ft-ok) 18%, var(--card)); color: var(--ft-ok); border: 1px solid color-mix(in srgb, var(--ft-ok) 35%, var(--border)); }
.cap-preview { background: var(--accent-soft); color: var(--link); border: 1px solid color-mix(in srgb, var(--link) 30%, var(--border)); }

.kv { display: grid; grid-template-columns: 190px 1fr; gap: 5px 16px; font-size: 13.5px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { color: var(--text); }
@media (max-width: 640px) {
  .kv { grid-template-columns: 1fr; }
  .kv dt { margin-top: 6px; }
}

.id {
  font-size: 12px;
  color: var(--link);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 1px 5px;
}

#main table { width: 100%; border-collapse: collapse; font-size: 12.8px; }
#main th {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 7px 9px;
  border-bottom: 2px solid var(--border);
}
#main td { padding: 8px 9px; border-bottom: 1px solid var(--border); vertical-align: top; }
#main tr:last-child td { border-bottom: none; }

.note {
  font-size: 12.5px;
  color: var(--muted);
  border-left: 3px solid var(--border);
  padding: 6px 12px;
  margin-top: 12px;
}
.callout {
  border-left: 3px solid var(--accent-rich);
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  font-size: 13.5px;
  margin-top: 12px;
}

/* ===== Gates ===== */
.gates { display: flex; gap: 6px; flex-wrap: wrap; }
.gate { font-size: 10.5px; font-weight: 600; border-radius: 5px; padding: 3px 8px; border: 1px solid transparent; transition: all 0.4s ease; }
.g-open { border-color: var(--border); color: var(--muted); background: var(--card); }
.g-susp { background: color-mix(in srgb, var(--ft-warn) 16%, var(--card)); color: var(--ft-warn); border-color: color-mix(in srgb, var(--ft-warn) 45%, var(--border)); }
.g-closed { background: color-mix(in srgb, var(--ft-ok) 16%, var(--card)); color: var(--ft-ok); border-color: color-mix(in srgb, var(--ft-ok) 45%, var(--border)); }
.gate-legend { font-size: 11px; color: var(--muted); margin-top: 8px; }

/* ===== System notice ===== */
.sysnotice {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-rich);
  background: var(--accent-soft);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin-bottom: 18px;
}
.sysnotice .tag {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--link);
}
.sysnotice p { font-size: 13.5px; margin-top: 6px; }

/* ===== Agent panel ===== */
.agent { border: 1px solid var(--accent-rich); border-radius: 12px; overflow: hidden; margin-bottom: 18px; background: var(--card); }
.agent-h { background: var(--accent-rich); color: #fff; padding: 11px 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.agent-h .who { font-weight: 600; font-size: 14px; }
.agent-h .tag { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 10.5px; background: rgba(255, 255, 255, 0.16); border-radius: 5px; padding: 2px 8px; }
.agent-b { padding: 18px; }
.opt { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; position: relative; }
.opt.rec { border-color: var(--accent-rich); background: var(--accent-soft); }
.opt .num { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 11px; font-weight: 600; color: var(--link); }
.opt h4 { font-size: 14.5px; margin: 3px 0 6px; }
.opt p { font-size: 12.8px; color: var(--muted); }
.opt .price { font-weight: 700; font-size: 17px; color: var(--text); margin-top: 8px; }
.rec-badge {
  position: absolute; top: -9px; right: 12px;
  background: var(--accent-rich); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  border-radius: 5px; padding: 2px 8px; text-transform: uppercase;
}
.prohibit { background: color-mix(in srgb, var(--ft-warn) 8%, var(--card)); border: 1px solid color-mix(in srgb, var(--ft-warn) 30%, var(--border)); border-radius: 10px; padding: 12px 16px; margin-top: 16px; }
.prohibit h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ft-warn); margin-bottom: 6px; }
.prohibit ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.prohibit li { font-size: 11.5px; color: var(--ft-warn); background: var(--card); border: 1px solid color-mix(in srgb, var(--ft-warn) 30%, var(--border)); border-radius: 999px; padding: 2px 10px; }

/* ===== Variations (Screen 4) ===== */
.vars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 900px) { .vars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .vars { grid-template-columns: 1fr; } }
.var { border: 1px solid var(--border); border-radius: 10px; padding: 12px; text-align: center; background: var(--card); transition: border-color 0.2s; cursor: pointer; }
.var:hover { border-color: var(--accent-rich); }
.var.sel { border-color: var(--accent-rich); box-shadow: 0 0 0 2px var(--accent-soft); }
.var .stored { display: inline-block; font-size: 9.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; background: color-mix(in srgb, var(--ft-ok) 16%, var(--card)); color: var(--ft-ok); border-radius: 4px; padding: 1px 7px; margin-top: 6px; }
.var svg { width: 100%; height: 74px; }
.var .nm { font-weight: 600; font-size: 12.5px; margin-top: 6px; color: var(--text); }
.var .cp { font-size: 11px; color: var(--muted); }

/* ===== Risk lifecycle strip ===== */
.riii { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 10px 0 6px; }
.rs { font-size: 11.5px; font-weight: 600; border-radius: 6px; padding: 5px 11px; border: 1px solid var(--border); color: var(--muted); background: var(--card); }
.rs.hit { border-color: var(--ft-warn); background: color-mix(in srgb, var(--ft-warn) 16%, var(--card)); color: var(--ft-warn); }
.rs.done { border-color: var(--ft-ok); background: color-mix(in srgb, var(--ft-ok) 16%, var(--card)); color: var(--ft-ok); }
.rs.never { border-style: dashed; opacity: 0.55; }
.riii .arr { color: var(--muted); font-size: 13px; }

/* ===== Context bar ===== */
.ft-context-bar {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  padding: 10px 0;
}
.ft-context-bar .wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ft-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); background: var(--card);
  border-radius: 999px; padding: 4px 12px; font-size: 12px; white-space: nowrap;
}
.ft-chip .k { color: var(--muted); font-weight: 600; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.ft-chip .v { font-weight: 600; color: var(--link); }
.ft-chip.fixed { border-color: var(--accent-rich); background: var(--accent-soft); }

.syn-wrap { position: relative; display: inline-flex; }
.badge-syn {
  border: 1px dashed var(--ft-warn);
  color: var(--ft-warn);
  background: color-mix(in srgb, var(--ft-warn) 12%, var(--card));
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
/* Click-toggle (not hover-only, so it works on touch/mobile). JS toggles .pop.on. */
.pop {
  display: none;
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 330px; background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 34px 14px 14px; font-size: 12.5px; font-weight: 400;
  color: var(--text); box-shadow: var(--shadow-strong); text-align: left; line-height: 1.5; z-index: 1200;
}
.pop.on { display: block; }
.pop-close {
  position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--panel); color: var(--text);
  font-size: 12px; line-height: 1; cursor: pointer;
}
@media (max-width: 600px) {
  .pop {
    position: fixed;
    top: auto; bottom: 16px;
    left: 16px; right: 16px;
    width: auto;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }
}
.btn-log {
  border: 1px solid var(--accent-rich); color: var(--link); border-radius: 8px;
  padding: 6px 13px; font-size: 12.5px; font-weight: 600; background: var(--card); cursor: pointer;
  margin-left: auto;
}
.btn-log:hover { background: var(--accent-soft); }

/* ===== Event log / source trail drawers ===== */
.scrim { position: fixed; inset: 0; background: rgba(5, 7, 12, 0.45); opacity: 0; pointer-events: none; transition: opacity 0.25s; z-index: 1150; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 94vw);
  max-height: 100vh;
  background: var(--panel); border-left: 1px solid var(--border);
  transform: translateX(102%); transition: transform 0.3s ease; z-index: 1200;
  display: flex; flex-direction: column;
  overscroll-behavior: contain;
}
.drawer.on { transform: none; }
.drawer-h {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  flex-shrink: 0;
}
.drawer-h h3 { margin: 0; flex: 1; min-width: 140px; }
.drawer-b {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 14px 20px;
  flex: 1 1 auto;
  min-height: 0;
}
@media (max-width: 600px) {
  .drawer { width: 100vw; }
}
.ev { border: 1px solid var(--border); border-radius: 9px; padding: 10px 13px; margin-bottom: 10px; font-size: 12.3px; }
.ev.dim { opacity: 0.42; }
.ev .top { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; margin-bottom: 3px; }
.ev .eid { font-weight: 600; color: var(--link); }
.ev .et { background: var(--accent-soft); border-radius: 4px; padding: 1px 6px; color: var(--link); }
.ev .ts { color: var(--muted); font-size: 11px; margin-left: auto; }
.ev .pl { color: var(--muted); }
.toggle { font-size: 12px; font-weight: 600; color: var(--link); border: 1px solid var(--border); border-radius: 7px; padding: 5px 11px; background: var(--bg); cursor: pointer; }

/* ===== Bottom navbar ===== */
.navbar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(6px);
  z-index: 40;
}
.nav-in { max-width: 1160px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 12px; }
.nav-btn { border: 1px solid var(--accent-rich); color: var(--link); font-weight: 600; border-radius: 8px; padding: 8px 16px; font-size: 13px; background: var(--card); cursor: pointer; }
.nav-btn.primary { background: var(--accent-rich); color: #fff; border-color: var(--accent-rich); }
.nav-btn:disabled { opacity: 0.35; cursor: default; }
.dots { display: flex; gap: 7px; margin: 0 auto; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--muted) 45%, var(--card)); border: none; padding: 0; cursor: pointer; }
.dot.on { background: var(--accent-rich); transform: scale(1.25); }
.jump { border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; font-size: 12.5px; background: var(--card); color: var(--text); }
@media (max-width: 700px) {
  .nav-in { flex-wrap: wrap; justify-content: center; }
  .dots { order: -1; width: 100%; justify-content: center; margin-bottom: 6px; }
}

/* ===== Screen 0 ===== */
.ft-hero { padding: 44px 0 26px; text-align: center; }
.ft-hero .l1 { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--link); font-weight: 600; }
.ft-hero h1 { margin: 10px auto 12px; max-width: 26ch; text-wrap: balance; }
.ft-hero p { max-width: 78ch; margin: 0 auto; color: var(--muted); font-size: 16px; }

.ft-rolegrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 30px 0 10px; }
@media (max-width: 1000px) { .ft-rolegrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ft-rolegrid { grid-template-columns: 1fr; } }

.rolecard {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 22px 20px; text-align: left; transition: border-color 0.2s, box-shadow 0.2s;
  display: block; width: 100%; cursor: pointer;
}
.rolecard:hover { border-color: var(--accent-rich); box-shadow: var(--shadow-soft); }
.rolecard.sel { border-color: var(--accent-rich); box-shadow: 0 0 0 2px var(--accent-soft); }
.rolecard .ic { font-weight: 700; font-size: 13px; color: var(--link); letter-spacing: 0.03em; }
.rolecard h3 { font-size: 17px; margin: 6px 0 6px; }
.rolecard p { font-size: 12.8px; color: var(--muted); margin: 0; }

.cta-gold {
  display: inline-block; background: var(--gold); color: #2b2306;
  font-weight: 700; font-size: 14px; border-radius: 9px; padding: 11px 22px;
  border: 1px solid color-mix(in srgb, var(--gold) 70%, black); cursor: pointer;
}
.cta-gold:hover { filter: brightness(1.06); }

.roledrawer { margin-top: 8px; }
.chain { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.chain span {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 11.5px; color: var(--link); background: var(--card);
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px;
}
.footer-note { max-width: 1160px; margin: 30px auto 0; padding: 0 20px; font-size: 11.5px; color: var(--muted); text-align: center; }
