/* Relay Landing Page — Slate base + amber relay lamp accent
   System UI typography, tabular numerals, WCAG AA contrast, zero external font requests. */

:root {
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Dark slate palette (Relay dark skin) */
  --dark-bg: #12151c;
  --dark-bg-elevated: #181c25;
  --dark-surface: #1d222d;
  --dark-surface-2: #232a37;
  --dark-border: #2b3344;
  --dark-sep: #222938;
  --dark-fg: #eef1f6;
  --dark-muted: #98a2b3;

  /* Light slate palette (Relay light skin) */
  --light-bg: #f8f9fb;
  --light-bg-alt: #ffffff;
  --light-surface: #ffffff;
  --light-surface-2: #f1f4f9;
  --light-border: #dde2ec;
  --light-sep: #e8ecf3;
  --light-fg: #171b24;
  --light-muted: #556070;

  /* Relay amber lamp signal */
  --amber-dark: #f2aa36;
  --amber-dark-hover: #f7b955;
  --amber-dark-fg: #1b1304;
  --amber-light: #b86600;
  --amber-light-bg: #fff5e5;
  --amber-light-border: #f3c878;

  --success: #22c55e;
  --danger: #ef4444;
  --info: #38bdf8;

  --container: 1160px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-family: var(--font-sans);
  background: var(--dark-bg);
  color: var(--dark-fg);
}

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

body {
  margin: 0;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--amber-dark);
  outline-offset: 2px;
}

.section-light :focus-visible {
  outline-color: var(--amber-light);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--amber-dark);
  color: var(--amber-dark-fg);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Themes for alternating rhythm */
.section-dark {
  background: var(--dark-bg);
  color: var(--dark-fg);
  --sec-surface: var(--dark-surface);
  --sec-surface-2: var(--dark-surface-2);
  --sec-border: var(--dark-border);
  --sec-sep: var(--dark-sep);
  --sec-muted: var(--dark-muted);
  --sec-accent: var(--amber-dark);
}

.section-light {
  background: var(--light-bg);
  color: var(--light-fg);
  --sec-surface: var(--light-surface);
  --sec-surface-2: var(--light-surface-2);
  --sec-border: var(--light-border);
  --sec-sep: var(--light-sep);
  --sec-muted: var(--light-muted);
  --sec-accent: var(--amber-light);
}

.section-pad {
  padding: 88px 0;
}

@media (max-width: 768px) {
  .section-pad {
    padding: 64px 0;
  }
}

/* Sticky Top Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(18, 21, 28, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(43, 51, 68, 0.85);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  color: var(--dark-fg);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--dark-muted);
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--dark-fg);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  background: var(--amber-dark);
  color: var(--amber-dark-fg);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.12s ease;
}

.nav-cta:hover {
  background: var(--amber-dark-hover);
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: 68px 0 64px;
  background:
    radial-gradient(900px 420px at 50% -60px, rgba(242, 170, 54, 0.13), transparent 70%),
    var(--dark-bg);
  overflow: hidden;
}

.hero-copy {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(29, 34, 45, 0.9);
  border: 1px solid var(--dark-border);
  color: #d5dce8;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 22px;
}

.lamp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber-dark);
  box-shadow: 0 0 10px rgba(242, 170, 54, 0.85);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.35rem, 5.2vw, 3.85rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 750;
  color: #ffffff;
}

.hero-subline {
  margin: 0 auto 30px;
  max-width: 650px;
  font-size: clamp(1.04rem, 1.8vw, 1.2rem);
  line-height: 1.55;
  color: var(--dark-muted);
}

/* CTA Box (Waitlist + Download dual support) */
.cta-panel {
  max-width: 620px;
  margin: 0 auto;
}

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 7px;
  border-radius: 14px;
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.waitlist-input {
  flex: 1 1 210px;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--dark-bg);
  color: var(--dark-fg);
  font-family: inherit;
  font-size: 0.95rem;
}

.waitlist-input::placeholder {
  color: #7d8799;
}

.waitlist-input:focus {
  outline: none;
  border-color: var(--amber-dark);
}

.waitlist-select {
  flex: 0 1 185px;
  height: 44px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--dark-border);
  border-radius: 9px;
  background-color: var(--dark-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%2398a2b3' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  appearance: none;
  color: var(--dark-fg);
  font-family: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: none;
  border-radius: 9px;
  background: var(--amber-dark);
  color: var(--amber-dark-fg);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background: var(--amber-dark-hover);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--dark-border);
  border-radius: 9px;
  background: var(--dark-surface);
  color: var(--dark-fg);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--dark-surface-2);
}

.cta-meta {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  color: var(--dark-muted);
}

.cta-feedback {
  margin-top: 12px;
  padding: 11px 15px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
  font-size: 0.875rem;
  text-align: left;
}

.cta-feedback[hidden],
.download-row[hidden] {
  display: none !important;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.linux-menu {
  position: relative;
}
.linux-menu summary {
  list-style: none;
}
.linux-menu summary::-webkit-details-marker {
  display: none;
}
.linux-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  padding: 6px;
  border-radius: 10px;
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
  z-index: 30;
  text-align: left;
}
.linux-dropdown a {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--dark-fg);
}
.linux-dropdown a:hover {
  background: var(--dark-surface-2);
}

/* Hero App Window (Authentic Three-Pane Relay Dark Screenshot Mock) */
.app-showcase {
  margin-top: 46px;
}

.app-window {
  border-radius: 14px;
  background: #141820;
  border: 1px solid #2c3547;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  overflow: hidden;
  text-align: left;
  font-size: 13px;
  color: #ebeff5;
}

.window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 14px;
  background: #10131a;
  border-bottom: 1px solid #222938;
  color: #8b95a7;
  font-size: 12px;
}

.traffic-lights {
  display: inline-flex;
  gap: 7px;
}
.traffic-lights span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.tl-close { background: #ff5f57; }
.tl-min { background: #febc2e; }
.tl-max { background: #28c840; }

.titlebar-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px;
  border-radius: 6px;
  background: #191e29;
  border: 1px solid #293142;
  color: #98a2b3;
  font-size: 11.5px;
}

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 19px;
  padding: 0 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  color: inherit;
  line-height: 1;
}

.section-light .kbd {
  background: #edf0f6;
  border-color: #cfd6e4;
  color: #262e3d;
}

.three-pane {
  position: relative;
  display: grid;
  grid-template-columns: 52px 195px 310px 1fr;
  min-height: 500px;
}

/* Pane 0: Account Rail */
.mock-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  background: #0f1218;
  border-right: 1px solid #222938;
}

.rail-acct {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}
.rail-acct.is-active {
  outline: 2px solid #eef1f6;
  outline-offset: 2px;
}
.rail-acct .rail-badge {
  position: absolute;
  top: -4px;
  right: -5px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 99px;
  background: #ef4444;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.rail-acct .rail-prov {
  position: absolute;
  bottom: -2px;
  left: -2px;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: #ffffff;
  color: #171b24;
  font-size: 8.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
}

/* Pane 1: Sidebar */
.mock-sidebar {
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: #131720;
  border-right: 1px solid #222938;
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 2px;
  border-radius: 7px;
  background: #0d1017;
  border: 1px solid #252c3d;
  margin-bottom: 10px;
  font-size: 11.5px;
}
.mode-switch span {
  text-align: center;
  padding: 4px 0;
  border-radius: 5px;
  color: #8e98aa;
  font-weight: 600;
}
.mode-switch span.is-on {
  background: #1f2533;
  color: #f1f4f9;
}

.sb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sb-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 7px;
  color: #b8c1d1;
  font-size: 12.5px;
}
.sb-item.is-selected {
  background: #22293a;
  color: #ffffff;
  font-weight: 600;
}
.sb-item .sb-count {
  font-size: 11px;
  color: #8e98aa;
  font-variant-numeric: tabular-nums;
}
.sb-item.is-selected .sb-count {
  color: var(--amber-dark);
  font-weight: 700;
}

.sb-section-label {
  margin: 12px 8px 4px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #758095;
  font-weight: 600;
}

.label-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 7px;
}

.mem-bar {
  margin-top: auto;
  padding: 7px 8px;
  border-radius: 7px;
  background: #0f131b;
  border: 1px solid #212838;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  color: #9aa4b6;
}
.mem-bar strong {
  color: #d6dde8;
}

/* Pane 2: Thread List */
.mock-list {
  display: flex;
  flex-direction: column;
  background: #161b24;
  border-right: 1px solid #222938;
}
.inbox-tabs {
  display: flex;
  gap: 14px;
  padding: 9px 12px 8px;
  border-bottom: 1px solid #222938;
  font-size: 11.5px;
  color: #8e98aa;
}
.inbox-tabs span.is-tab-on {
  color: var(--amber-dark);
  font-weight: 600;
  position: relative;
}
.inbox-tabs span.is-tab-on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  background: var(--amber-dark);
}

.thread-row {
  padding: 10px 12px;
  border-bottom: 1px solid #1e2432;
}
.thread-row.is-row-selected {
  background: #232b3b;
  box-shadow: 3px 0 0 var(--amber-dark) inset;
}
.thread-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}
.thread-sender {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #f3f5f9;
}
.unread-pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber-dark);
  flex-shrink: 0;
}
.thread-time {
  font-size: 11px;
  color: #8b95a7;
  font-variant-numeric: tabular-nums;
}
.thread-subj {
  font-size: 12px;
  color: #d7dee9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.thread-snip {
  font-size: 11.5px;
  color: #8590a3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pill {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(242, 170, 54, 0.15);
  color: #f7c266;
  margin-right: 4px;
}
.pill-slate {
  background: #262f42;
  color: #b4bfd0;
}

/* Pane 3: Reader + Docked Composer */
.mock-reader {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #181d27;
  padding-bottom: 165px;
}
.reader-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid #222938;
  color: #9ba5b7;
  font-size: 12px;
}
.reader-toolbar .tb-sep {
  width: 1px;
  height: 14px;
  background: #2b3344;
}
.reader-toolbar .tb-right {
  margin-left: auto;
  display: inline-flex;
  gap: 8px;
}
.reader-subject {
  margin: 14px 20px 10px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.reader-msg {
  margin: 0 20px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #1d2330;
  border: 1px solid #283144;
}
.msg-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 8px;
}
.msg-body {
  font-size: 12.5px;
  color: #d6dde9;
  line-height: 1.5;
}
.msg-body p {
  margin: 0 0 8px;
}

/* Docked composer in bottom right */
.docked-composer {
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: min(360px, calc(100% - 28px));
  border-radius: 10px;
  background: #12161f;
  border: 1px solid #354057;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.composer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 11px;
  background: #1c2230;
  border-bottom: 1px solid #2a3346;
  font-size: 11.5px;
  font-weight: 600;
}
.composer-body {
  padding: 9px 11px;
  font-size: 12px;
  color: #dce2ee;
}
.composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 11px;
  border-top: 1px solid #232b3c;
  background: #151a24;
  font-size: 11px;
}
.send-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--amber-dark);
  color: var(--amber-dark-fg);
  font-weight: 700;
}

@media (max-width: 980px) {
  .three-pane {
    grid-template-columns: 46px 165px 1fr;
  }
  .mock-reader {
    display: none;
  }
}
@media (max-width: 640px) {
  .three-pane {
    grid-template-columns: 44px 1fr;
    min-height: 360px;
  }
  .mock-sidebar {
    display: none;
  }
}

/* Proof Strip */
.proof-strip {
  background: #0e1117;
  border-top: 1px solid var(--dark-sep);
  border-bottom: 1px solid var(--dark-sep);
  padding: 22px 0;
}

.proof-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.94rem;
  color: var(--dark-muted);
}
.proof-item strong {
  color: #ffffff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.proof-note {
  text-align: center;
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: #7d879a;
}

/* Section Headers */
.sec-head {
  max-width: 680px;
  margin-bottom: 44px;
}
.sec-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sec-accent);
  margin-bottom: 8px;
}
.sec-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.sec-head p {
  margin: 0;
  font-size: 1.06rem;
  color: var(--sec-muted);
}

/* Split Layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 44px;
  align-items: center;
}
@media (max-width: 880px) {
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.feature-bullets {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-bullets li {
  padding-left: 22px;
  position: relative;
  color: var(--sec-muted);
}
.feature-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sec-accent);
}
.feature-bullets strong {
  color: inherit;
}
.section-light .feature-bullets strong {
  color: var(--light-fg);
}
.section-dark .feature-bullets strong {
  color: var(--dark-fg);
}

/* Card & Widget Surfaces */
.surface-card {
  border-radius: var(--radius-lg);
  background: var(--sec-surface);
  border: 1px solid var(--sec-border);
  padding: 24px;
  box-shadow: 0 8px 26px rgba(15, 20, 30, 0.05);
}
.section-dark .surface-card {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

/* Section 3: Multi-account layout toggle */
.seg-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 9px;
  background: var(--sec-surface-2);
  border: 1px solid var(--sec-border);
  gap: 4px;
}
.seg-btn {
  border: none;
  background: transparent;
  color: var(--sec-muted);
  padding: 6px 13px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
}
.seg-btn[aria-pressed="true"],
.seg-btn[aria-selected="true"] {
  background: var(--sec-surface);
  color: inherit;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.acct-demo-box {
  margin-top: 16px;
  border-radius: 12px;
  border: 1px solid var(--sec-border);
  background: #ffffff;
  overflow: hidden;
  min-height: 250px;
}
.acct-demo-rail {
  display: grid;
  grid-template-columns: 56px 190px 1fr;
  min-height: 250px;
}
.acct-demo-stacked {
  display: grid;
  grid-template-columns: 235px 1fr;
  min-height: 250px;
}
.acct-demo-stacked[hidden],
.acct-demo-rail[hidden] {
  display: none;
}

.provider-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.provider-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sec-surface);
  border: 1px solid var(--sec-border);
  font-size: 0.84rem;
  font-weight: 600;
}

/* Section 4: Keyboard Interactive Demo */
.palette-stage {
  border-radius: var(--radius-lg);
  background: #161a23;
  border: 1px solid #2b3446;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
}
.palette-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid #252d3e;
  background: #12161e;
}
.palette-query {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #f3f6fb;
}
.palette-cursor {
  display: inline-block;
  width: 2px;
  height: 15px;
  background: var(--amber-dark);
  vertical-align: middle;
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.kb-rows {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #1b202c;
  border: 1px solid transparent;
  transition: transform 0.16s ease, opacity 0.16s ease, background 0.12s ease;
}
.kb-row.is-kb-focus {
  background: #242c3d;
  border-color: rgba(242, 170, 54, 0.55);
}
.kb-row.is-archived {
  opacity: 0.35;
  text-decoration: line-through;
}
.kb-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: #11151d;
  border-top: 1px solid #242c3d;
  font-size: 12px;
  color: #9ba5b7;
}
.kb-key-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 6px;
  border: 1px solid #2f394d;
  background: #1b212e;
  color: #eef1f6;
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
}
.kb-key-btn:hover {
  border-color: var(--amber-dark);
}

/* Section 5: Triage Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bento-span-2 {
  grid-column: span 2;
}
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-span-2 {
    grid-column: span 1;
  }
}

.bento-card {
  border-radius: var(--radius-lg);
  background: var(--sec-surface);
  border: 1px solid var(--sec-border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.bento-card h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}
.bento-card p {
  margin: 0;
  color: var(--sec-muted);
  font-size: 0.95rem;
}

.mini-ui {
  border-radius: 11px;
  padding: 12px 14px;
  background: var(--sec-surface-2);
  border: 1px solid var(--sec-border);
  font-size: 12.5px;
}

/* Section 6: Chat Mode */
.chat-bubbles {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.bubble {
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 13px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.bubble-them {
  align-self: flex-start;
  background: #232a38;
  border: 1px solid #30394d;
  color: #edf1f7;
}
.bubble-me {
  align-self: flex-end;
  background: rgba(242, 170, 54, 0.18);
  border: 1px solid rgba(242, 170, 54, 0.42);
  color: #fff6e6;
}

/* Section 7: AI & MCP Tool Integration */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 860px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}
.code-block {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: #12161f;
  color: #e6edf7;
  font-family: var(--font-mono);
  font-size: 0.81rem;
  line-height: 1.55;
  overflow-x: auto;
  border: 1px solid #283144;
}

/* Section 8: Skins Interactive Preview */
.skin-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
.accent-swatches {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.swatch-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
}
.swatch-btn[aria-pressed="true"] {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.skin-preview-frame {
  --sp-bg: #141820;
  --sp-surface: #1d222d;
  --sp-rail: #0f1218;
  --sp-sidebar: #131720;
  --sp-fg: #eef1f6;
  --sp-muted: #94a0b4;
  --sp-border: #2a3244;
  --sp-selected: #252e40;
  --sp-accent: #f2aa36;
  --sp-radius: 10px;

  display: grid;
  grid-template-columns: 50px 180px 250px 1fr;
  min-height: 280px;
  border-radius: var(--sp-radius);
  background: var(--sp-bg);
  color: var(--sp-fg);
  border: 1px solid var(--sp-border);
  overflow: hidden;
  transition: background 0.18s ease, color 0.18s ease, border-radius 0.18s ease;
}
@media (max-width: 820px) {
  .skin-preview-frame {
    grid-template-columns: 46px 150px 1fr;
  }
  .sp-reader {
    display: none;
  }
}

/* Section 9 & 10: Privacy + Performance */
.perf-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0;
}
.perf-bar-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.perf-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
}
.perf-track {
  height: 12px;
  border-radius: 999px;
  background: var(--light-sep);
  overflow: hidden;
}
.perf-fill-relay {
  height: 100%;
  width: 11%;
  border-radius: 999px;
  background: #16a34a;
}
.perf-fill-heavy {
  height: 100%;
  width: 88%;
  border-radius: 999px;
  background: #94a3b8;
}

.methodology-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 0.875rem;
}
.methodology-table th,
.methodology-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--sec-border);
}
.methodology-table th {
  font-weight: 700;
  color: var(--light-fg);
}
.methodology-table td {
  color: var(--light-muted);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 820px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
.price-card {
  border-radius: var(--radius-lg);
  padding: 30px;
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  display: flex;
  flex-direction: column;
}
.price-card.is-featured {
  border-color: rgba(242, 170, 54, 0.65);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
}
.price-tag {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 6px;
}
.price-amount {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}
.price-period {
  font-size: 0.92rem;
  color: var(--dark-muted);
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.93rem;
  color: #d3dbe8;
}
.price-list li::before {
  content: "✓ ";
  color: var(--amber-dark);
  font-weight: 700;
  margin-right: 6px;
}

/* FAQ */
.faq-list {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border-radius: var(--radius-md);
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  padding: 0 20px;
}
.faq-item summary {
  padding: 18px 0;
  font-weight: 650;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--light-muted);
  font-weight: 500;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-answer {
  padding: 0 0 18px;
  color: var(--light-muted);
  font-size: 0.96rem;
}
.faq-answer p {
  margin: 0;
}
.faq-answer code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--light-surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--light-fg);
}

/* Final CTA & Footer */
.final-cta {
  text-align: center;
  padding: 88px 0 64px;
  background:
    radial-gradient(760px 340px at 50% 100%, rgba(242, 170, 54, 0.12), transparent 70%),
    var(--dark-bg);
  border-top: 1px solid var(--dark-sep);
}
.works-with {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--dark-sep);
  color: var(--dark-muted);
  font-size: 0.88rem;
}
.site-footer {
  background: #0c0e14;
  border-top: 1px solid #1c2230;
  padding: 28px 0;
  color: #7f8a9e;
  font-size: 0.84rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  text-decoration: none;
  color: #98a2b3;
}
.footer-links a:hover {
  color: #ffffff;
}
