/* Citadel Vault — custom white-theme landing */

:root {
  --violet: #6d4aff;
  --violet-mid: #7c6cf0;
  --violet-light: #9b8afb;
  --violet-dark: #5a3ae8;
  --violet-soft: rgba(109, 74, 255, 0.1);
  --violet-border: rgba(109, 74, 255, 0.22);

  --bg: #ffffff;
  --bg-subtle: #f8f8fa;
  --bg-muted: #f1f1f5;
  --text: #0a0a0a;
  --text-muted: #5c5c66;
  --text-soft: #8a8a96;
  --border: #e8e8ee;
  --border-strong: #d4d4de;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(109, 74, 255, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.08);

  --shell: min(1120px, calc(100% - 48px));
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand__logo {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.brand__logo--sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.brand__name {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.brand__name-primary {
  color: var(--text);
}

.brand__name-accent {
  color: var(--violet);
}

.text-accent {
  color: var(--violet);
}

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--violet);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---- Chrome + BMC official badges ---- */
.citadel-chrome-btn,
.citadel-bmc-btn {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.citadel-chrome-btn:hover,
.citadel-bmc-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.citadel-chrome-btn img {
  display: block;
  height: 48px;
  width: auto;
  aspect-ratio: 206 / 58;
}

.citadel-bmc-btn img {
  height: 48px !important;
  width: auto !important;
}

.citadel-chrome-btn--sm img,
.citadel-bmc-btn--sm img {
  height: 40px !important;
}

.citadel-chrome-btn--violet {
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(109, 74, 255, 0.35);
}

.citadel-chrome-btn--violet:hover {
  box-shadow: 0 8px 22px rgba(109, 74, 255, 0.42);
}

.citadel-chrome-btn--sm.citadel-chrome-btn--violet {
  box-shadow: 0 3px 10px rgba(109, 74, 255, 0.32);
}

/* ---- Pill badge ---- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--violet-dark);
  background: var(--violet-soft);
  border: 1px solid var(--violet-border);
}

.pill--soft {
  background: var(--bg-muted);
  border-color: var(--border);
  color: var(--violet);
}

.pill--violet {
  background: var(--violet);
  border-color: transparent;
  color: #fff;
  font-size: 0.78rem;
  padding: 5px 12px;
}

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 88px;
}

.hero__copy h1 {
  margin: 16px 0 14px;
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0 0 28px;
  max-width: 52ch;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__widget {
  display: flex;
  justify-content: center;
}

.widget-frame {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.widget-frame__chrome {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.widget-frame__chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.widget-frame__chrome span:first-child {
  background: #ff5f57;
}

.widget-frame__chrome span:nth-child(2) {
  background: #febc2e;
}

.widget-frame__chrome span:nth-child(3) {
  background: #28c840;
}

.widget-frame__body {
  min-height: 340px;
  background: linear-gradient(180deg, #fafafa 0%, #f3f3f8 100%);
}

.widget-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 340px;
  padding: 32px;
  text-align: center;
  color: var(--text-soft);
}

.widget-placeholder svg {
  width: 44px;
  height: 44px;
  opacity: 0.45;
}

.widget-placeholder p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.widget-placeholder span {
  font-size: 0.82rem;
}

.widget-placeholder--light {
  min-height: 280px;
  background: var(--bg-muted);
  border-radius: var(--radius-md);
}

/* ---- Sections ---- */
.section {
  padding: 72px 0;
}

.section-head {
  max-width: 560px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head--left {
  margin-left: 0;
  text-align: left;
}

.section-head h2,
.showcase__copy h2,
.features-split__content h2,
.download-banner h2 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.section-head p,
.lead-sm {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.lead-sm {
  margin-bottom: 24px;
  max-width: 48ch;
}

/* ---- Features split (visual left, cards right) ---- */
.features-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.features-split__content h2 {
  margin-bottom: 28px;
  max-width: 16ch;
}

.features-phone {
  display: flex;
  justify-content: center;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.features-phone__frame {
  width: 100%;
  max-width: 300px;
  min-height: 420px;
  border-radius: 28px;
  border: 3px solid #1a1a1f;
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.features-phone__frame .widget-placeholder {
  min-height: 420px;
  border-radius: 0;
}

.feature-grid--split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-card--split {
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.feature-card--split:hover {
  background: #fff;
  border-color: var(--violet-border);
  box-shadow: var(--shadow-sm);
}

.feature-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.feature-card--split .feature-card__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 0;
  border-radius: 10px;
  flex-shrink: 0;
}

.feature-card--split .feature-card__icon svg {
  width: 18px;
  height: 18px;
}

.feature-card--split h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.25;
}

.feature-card--split p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---- Legacy feature grid (unused) ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  border-color: var(--violet-border);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  color: var(--violet);
  background: var(--violet-soft);
}

.feature-card__icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---- Showcase row ---- */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 32px;
}

.checklist {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text);
}

.checklist__mark {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  color: #fff;
  background: var(--violet);
}

.checklist__mark svg {
  width: 12px;
  height: 12px;
}

.showcase__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.media-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.media-card__label {
  padding: 12px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.media-card__frame {
  padding: 20px;
  min-height: 320px;
  background: var(--bg-subtle);
}

/* ---- Buttons (reference style) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(145deg, var(--violet-light) 0%, var(--violet) 50%, var(--violet-dark) 100%);
  box-shadow: 0 4px 14px rgba(109, 74, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(109, 74, 255, 0.42);
}

.btn-secondary {
  color: var(--text);
  background: #fff;
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--violet-border);
  background: var(--violet-soft);
  color: var(--violet-dark);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ---- Download banner (gradient CTA + QR) ---- */
.download-banner {
  padding: 0 0 56px;
}

.download-banner__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 52px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, #9b8afb 0%, #6d4aff 42%, #5a3ae8 100%);
  box-shadow: 0 24px 60px rgba(109, 74, 255, 0.35);
  overflow: hidden;
  position: relative;
}

.download-banner__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.14), transparent 45%);
  pointer-events: none;
}

.download-banner__copy {
  position: relative;
  z-index: 1;
}

.download-banner__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.92;
}

.download-banner__eyebrow svg {
  width: 16px;
  height: 16px;
}

.download-banner h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  max-width: 14ch;
}

.download-banner__copy > p {
  margin: 0 0 24px;
  max-width: 42ch;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.download-banner__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.citadel-chrome-btn--on-dark,
.citadel-bmc-btn--on-dark {
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.34),
    0 8px 20px rgba(26, 16, 64, 0.22);
}

.citadel-chrome-btn--on-dark:hover,
.citadel-bmc-btn--on-dark:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.52),
    0 12px 28px rgba(26, 16, 64, 0.28);
}

.citadel-chrome-btn--on-dark img,
.citadel-bmc-btn--on-dark img {
  height: 48px !important;
  border-radius: 8px;
}

.download-banner__qr {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.download-banner__qr p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}

.download-banner__qr img {
  width: 112px;
  height: 112px;
  border-radius: 14px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.download-banner__visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.download-banner__phone {
  width: 100%;
  max-width: 320px;
  transform: translateY(12px);
}

.widget-frame--dark {
  border: 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.widget-frame__body--dark {
  min-height: 300px;
  background: linear-gradient(180deg, #2a2a36 0%, #1c1c26 100%);
}

.widget-placeholder--dark {
  min-height: 300px;
  color: rgba(255, 255, 255, 0.5);
}

.widget-placeholder--dark p {
  color: rgba(255, 255, 255, 0.7);
}

/* ---- Free strip (legacy) ---- */
.free-strip {
  padding: 0 0 72px;
}

.free-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--violet-border);
  background: linear-gradient(135deg, rgba(155, 138, 251, 0.12), rgba(109, 74, 255, 0.06));
}

.free-strip p {
  margin: 6px 0 0;
  max-width: 48ch;
  color: var(--text-muted);
}

.free-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- FAQs ---- */
.faqs {
  padding-bottom: 64px;
}

.faqs-header {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px 56px;
  align-items: center;
  margin-bottom: 52px;
}

.faqs-header__title h2 {
  margin: 16px 0 0;
  font-size: clamp(2.35rem, 4.2vw, 3.15rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.faqs-headline-line {
  display: block;
}

.faqs-header__desc {
  margin: 0;
  padding-top: 8px;
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.75;
  color: var(--text-muted);
}

.faqs-body {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: 32px;
  align-items: start;
}

.faq-support {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 28px 24px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--bg-subtle), var(--bg-subtle)),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 23px,
      rgba(109, 74, 255, 0.04) 23px,
      rgba(109, 74, 255, 0.04) 24px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 23px,
      rgba(109, 74, 255, 0.04) 23px,
      rgba(109, 74, 255, 0.04) 24px
    );
}

.faq-support__graphic {
  position: relative;
  width: 100%;
  height: 120px;
  margin-bottom: 8px;
}

.faq-support__node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--violet);
  box-shadow: var(--shadow-sm);
}

.faq-support__node svg {
  width: 22px;
  height: 22px;
}

.faq-support__node--left {
  top: 28px;
  left: 18%;
}

.faq-support__node--center {
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  color: var(--violet);
  border-color: var(--violet-border);
  box-shadow: var(--shadow-md);
}

.faq-support__node--center svg {
  width: 28px;
  height: 28px;
}

.faq-support__node--right {
  top: 28px;
  right: 18%;
}

.faq-support__graphic::before,
.faq-support__graphic::after {
  content: "";
  position: absolute;
  top: 38px;
  height: 1px;
  background: var(--border-strong);
}

.faq-support__graphic::before {
  left: calc(18% + 52px);
  right: calc(50% + 32px);
}

.faq-support__graphic::after {
  left: calc(50% + 32px);
  right: calc(18% + 52px);
}

.faq-support h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.faq-support p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.faq-item.is-open {
  border-color: var(--violet-border);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text);
}

.faq-num {
  flex-shrink: 0;
  width: 28px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
}

.faq-label {
  flex: 1;
  font-size: 0.98rem;
  font-weight: 500;
}

.faq-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--text);
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  color: var(--violet);
}

.faq-a {
  display: none;
  padding: 0 20px 18px 62px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.faq-item.is-open .faq-a {
  display: block;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0 28px;
  background: var(--bg-subtle);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.site-footer__legal {
  margin: 0;
  justify-self: center;
  font-size: 0.84rem;
  color: var(--text-soft);
  text-align: center;
}

.site-footer__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  justify-self: end;
}

.site-footer__links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.site-footer__links a:hover {
  color: var(--violet);
}

/* ---- Legal pages ---- */
.legal-doc .site-nav a[aria-current="page"] {
  color: var(--violet);
  font-weight: 600;
}

.legal-hero-wrap {
  background:
    linear-gradient(180deg, rgba(109, 74, 255, 0.08) 0%, rgba(109, 74, 255, 0.02) 55%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.legal-hero {
  padding: 44px 0 40px;
}

.legal-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}

.legal-hero__back:hover {
  color: var(--violet);
}

.legal-hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.legal-hero__desc {
  margin: 0;
  max-width: 56ch;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.legal-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 18px;
  font-size: 0.84rem;
  color: var(--text-soft);
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px 48px;
  padding: 40px 0 80px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 92px;
  padding: 18px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
}

.legal-toc__label {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.legal-toc nav {
  display: grid;
  gap: 4px;
}

.legal-toc a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.legal-toc a:hover {
  background: var(--violet-soft);
  color: var(--violet-dark);
}

.legal-content {
  display: grid;
  gap: 16px;
}

.legal-card {
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 96px;
}

.legal-card h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.legal-card h2::before {
  content: attr(data-num);
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--violet);
  letter-spacing: 0.02em;
}

.legal-card p,
.legal-card li {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.legal-card p + p,
.legal-card p + ul,
.legal-card ul + p {
  margin-top: 12px;
}

.legal-card ul {
  margin: 10px 0 0;
  padding-left: 1.2rem;
}

.legal-card li + li {
  margin-top: 8px;
}

.legal-card a {
  color: var(--violet);
  font-weight: 500;
}

.legal-card a:hover {
  color: var(--violet-dark);
}

.legal-card__note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--violet-border);
  background: var(--violet-soft);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--violet-dark);
}

.legal-contact-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  color: #fff;
  background: linear-gradient(135deg, #9b8afb 0%, #6d4aff 42%, #5a3ae8 100%);
  box-shadow: var(--shadow-md);
}

.legal-contact-card h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
}

.legal-contact-card h2::before {
  display: none;
}

.legal-contact-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

.legal-contact-card a {
  display: inline-flex;
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.15s ease;
}

.legal-contact-card a:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero,
  .showcase,
  .features-split,
  .download-banner__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features-split__media {
    order: -1;
  }

  .download-banner__visual {
    display: none;
  }

  .download-banner__inner {
    padding: 36px 28px;
  }

  .faqs-header,
  .faqs-body {
    grid-template-columns: 1fr;
  }

  .faqs-header__title h2 {
    font-size: clamp(2rem, 7vw, 2.65rem);
  }

  .faqs-header__desc {
    padding-top: 0;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }

  .features-split__content h2 {
    max-width: none;
  }

  .hero {
    padding-top: 48px;
  }

  .hero__widget {
    order: -1;
  }

  .site-nav {
    display: none;
  }

  .site-header__actions .citadel-bmc-btn {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: min(1120px, calc(100% - 32px));
  }

  .feature-grid--split {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .free-strip__inner {
    padding: 28px 24px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 12px;
  }

  .site-footer__brand,
  .site-footer__links {
    justify-self: center;
  }
}
