/* =========================================================================
   Klyxor — Marketing site styles (built on klyxor-tokens.css)
   ========================================================================= */
@import url('https://fonts.googleapis.com/css2?family=PT+Sans:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-app);
  color: var(--fg-primary);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--sapphire-100); color: var(--sapphire-900); }

/* Brand accent — overridable via Tweaks (set --brand* inline on body) */
:root {
  --brand: var(--sapphire-600);
  --brand-hover: var(--sapphire-700);
  --brand-active: var(--sapphire-800);
  --brand-soft: var(--sapphire-50);
  --brand-text: var(--sapphire-600);
}

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; }
.section { padding: clamp(64px, 8vw, 120px) 0; }
.section-tight { padding: clamp(48px, 5vw, 72px) 0; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Type helpers ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 5.6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--fg-primary);
  margin: 0;
  text-wrap: balance;
}
.h2-section {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.h3-card {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}
.lead {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--fg-secondary);
  font-weight: 400;
  margin: 0;
  text-wrap: pretty;
}
.gold-accent { color: var(--gold-600); }
.blue-accent { color: var(--sapphire-600); }
.muted { color: var(--fg-secondary); }
.num-tab { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* ---------- Eyebrow / pill label ---------- */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px 0 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-xs);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-secondary);
  letter-spacing: 0.01em;
}
.eyebrow-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 3px var(--gold-50); }
.eyebrow-pill.on-dark { background: rgba(255,255,255,0.06); border-color: var(--border-on-dark); color: var(--fg-on-dark); }

.eyebrow-label {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-text);
  font-family: 'PT Sans', var(--font-ui);
}
.eyebrow-label.gold { color: var(--gold-600); }
.eyebrow-label.on-dark { color: var(--gold-400); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: var(--radius-lg);
  font-family: var(--font-ui); font-size: 14.5px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard),
              transform var(--dur-fast) var(--ease-standard);
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-primary:active { background: var(--brand-active); }
.btn-outline { background: var(--bg-surface); color: var(--fg-primary); border-color: var(--border-default); }
.btn-outline:hover { background: var(--sapphire-50); border-color: var(--sapphire-600); color: var(--sapphire-700); }
.btn-ghost { background: transparent; color: var(--fg-primary); }
.btn-ghost:hover { background: var(--bg-muted); }
.btn-dark { background: #fff; color: var(--sapphire-900); }
.btn-dark:hover { background: var(--sapphire-50); }
.btn-dark-outline { background: transparent; color: #fff; border-color: var(--border-on-dark); }
.btn-dark-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15.5px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

/* ---------- Nav ---------- */
/* The nav is injected into #site-nav-root; display:contents removes that
   wrapper's box so the sticky nav sticks within <body> (full page height),
   not within the short wrapper. */
#site-nav-root { display: contents; }
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard), background var(--dur-base);
  backdrop-filter: saturate(180%) blur(8px);
}
.site-nav.scrolled { border-bottom-color: var(--border-default); box-shadow: var(--shadow-xs); }
.nav-inner { height: 72px; display: flex; align-items: center; gap: 28px; }
.nav-logo { display: flex; align-items: center; flex: none; }
.nav-logo img { height: 30px; width: 72px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius-md);
  font-size: 14.5px; font-weight: 500; color: var(--fg-secondary);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav-links a:hover { color: var(--fg-primary); background: var(--bg-muted); }
.nav-links a.active { color: var(--sapphire-700); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: #fff; cursor: pointer; align-items: center; justify-content: center; color: var(--fg-primary); }
.nav-toggle svg { width: 22px; height: 22px; }

/* mobile menu */
.mobile-menu {
  display: none; position: fixed; inset: 72px 0 0 0; z-index: 99;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(8px);
  padding: 16px 24px 40px; flex-direction: column; gap: 4px;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity var(--dur-base), transform var(--dur-base);
}
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a { padding: 16px 8px; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--neutral-100); }
.mobile-menu .btn { margin-top: 16px; }

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { margin-left: auto; }
  .mobile-menu { display: flex; }
}
@media (max-width: 560px) {
  .nav-cta .btn span.cta-full { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 7vw, 104px) 0 clamp(56px, 6vw, 88px); overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--neutral-100) 1px, transparent 1px),
    linear-gradient(90deg, var(--neutral-100) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 65% at 50% 30%, #000 30%, transparent 75%);
  opacity: 0.7;
}
.hero-inner { position: relative; z-index: 1; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--fg-secondary); font-size: 13.5px; }
.hero-trust .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--neutral-300); }

/* ---------- Stats band ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-default); border: 1px solid var(--border-default); border-radius: var(--radius-2xl); overflow: hidden; }
.stat-cell { background: var(--bg-surface); padding: 32px 28px; }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4vw, 46px); line-height: 1; letter-spacing: -0.03em; color: var(--fg-primary); }
.stat-num.blue { color: var(--sapphire-600); }
.stat-num.gold { color: var(--gold-600); }
.stat-label { margin-top: 12px; font-size: 13.5px; line-height: 1.45; color: var(--fg-secondary); }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Section header ---------- */
.section-head { max-width: 720px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head .eyebrow-label { display: inline-block; margin-bottom: 16px; }
.section-head .lead { margin-top: 18px; }

/* ---------- Cards / grids ---------- */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}
.card-pad { padding: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* feature/problem card */
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base), border-color var(--dur-base);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--neutral-300); }
.feat-icon {
  width: 48px; height: 48px; border-radius: var(--radius-lg);
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--sapphire-50); color: var(--sapphire-600);
}
.feat-icon svg { width: 24px; height: 24px; }
.feat-icon.gold { background: var(--gold-50); color: var(--gold-600); }
.feat-icon.warn { background: var(--warning-100); color: var(--warning-500); }
.feat-icon.success { background: var(--success-100); color: var(--success-600); }
.feat-icon.danger { background: var(--error-100); color: var(--error-600); }
.feature-card .h3-card { margin-bottom: 8px; }
.feature-card p { color: var(--fg-secondary); font-size: 14.5px; line-height: 1.55; }
.feat-stat { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--neutral-100); display: flex; align-items: baseline; gap: 8px; }
.feat-stat b { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--gold-600); letter-spacing: -0.02em; }
.feat-stat span { font-size: 12.5px; color: var(--fg-secondary); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 18px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 19px; left: calc(50% + 24px); right: calc(-50% + 24px);
  height: 2px; background: var(--neutral-200);
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 16px;
  margin: 0 auto 18px; position: relative; z-index: 1; box-shadow: 0 0 0 5px var(--bg-app);
}
.step h4 { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; margin: 0 0 6px; text-align: center; }
.step p { font-size: 13px; color: var(--fg-secondary); text-align: center; line-height: 1.45; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 12px; }
  .step::after { display: none; }
}
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Comparison table ---------- */
.compare-wrap { border: 1px solid var(--border-default); border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-card); background: #fff; }
.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 18px 24px; text-align: left; border-bottom: 1px solid var(--neutral-100); }
.compare thead th { font-family: var(--font-display); font-weight: 700; font-size: 15px; background: var(--bg-subtle); border-bottom: 1px solid var(--border-default); }
.compare thead th.klyxor-col { background: var(--brand); color: #fff; }
.compare th:first-child, .compare td:first-child { font-weight: 600; color: var(--fg-primary); width: 42%; }
.compare td.klyxor-col { background: var(--brand-soft); font-weight: 600; }
.compare tr:last-child td { border-bottom: none; }
.cmp-yes, .cmp-no { display: inline-flex; align-items: center; gap: 8px; }
.cmp-yes { color: var(--success-700); }
.cmp-no { color: var(--neutral-500); }
.cmp-yes svg, .cmp-no svg { width: 17px; height: 17px; flex: none; }
.compare .col-head-klyxor { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 680px) { .compare th, .compare td { padding: 13px 14px; font-size: 13px; } }

/* ---------- Use case cards ---------- */
.usecase-card {
  display: flex; flex-direction: column;
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base), border-color var(--dur-base);
}
.usecase-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--neutral-300); }
.usecase-top { padding: 26px 26px 0; }
.usecase-icon { width: 52px; height: 52px; border-radius: var(--radius-lg); display: grid; place-items: center; background: var(--gold-400); color: var(--sapphire-900); margin-bottom: 18px; }
.usecase-icon svg { width: 26px; height: 26px; }
.usecase-card .h3-card { margin-bottom: 8px; padding: 0 26px; }
.usecase-card .uc-desc { padding: 0 26px; color: var(--fg-secondary); font-size: 14px; line-height: 1.55; flex: 1; }
.uc-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 26px 26px; }
.uc-label { display: inline-flex; align-items: center; gap: 8px; margin: 26px 26px 14px; font-family: var(--font-ui); font-weight: 700; font-size: 12px; line-height: 1; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-text); }
.uc-label i, .uc-label svg { width: 17px; height: 17px; color: var(--gold-500); }
.uc-tag { font-size: 11.5px; font-weight: 600; color: var(--sapphire-700); background: var(--sapphire-50); padding: 4px 10px; border-radius: var(--radius-pill); }
.uc-indices { padding: 0 26px 4px; }
.uc-index-chip { display: inline-flex; font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--gold-700); background: var(--gold-50); padding: 3px 8px; border-radius: var(--radius-sm); margin: 0 6px 6px 0; }

/* ---------- Benefit list ---------- */
.benefit { display: flex; gap: 16px; align-items: flex-start; }
.benefit .feat-icon { margin-bottom: 0; flex: none; }
.benefit h4 { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin: 0 0 6px; }
.benefit p { font-size: 14px; color: var(--fg-secondary); line-height: 1.55; margin: 0; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 1040px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  display: flex; flex-direction: column;
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: var(--radius-xl); padding: 28px 24px; box-shadow: var(--shadow-card);
  position: relative;
}
.price-card.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-lg); }
.price-badge { position: absolute; top: -12px; left: 24px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--radius-pill); white-space: nowrap; }
.price-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.price-onboard { font-size: 12.5px; color: var(--fg-secondary); margin-top: 4px; }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 4px; white-space: nowrap; flex-wrap: nowrap; }
.price-amount b { font-family: var(--font-display); font-weight: 800; font-size: 38px; letter-spacing: -0.03em; white-space: nowrap; }
.price-amount span { font-size: 14px; color: var(--fg-secondary); }
.price-cap { font-size: 12.5px; color: var(--fg-secondary); padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--neutral-100); }
.price-feats { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-feats li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--fg-primary); }
.price-feats li svg { width: 16px; height: 16px; color: var(--success-600); flex: none; margin-top: 2px; }

/* Pricing: 3 tiers in a row + full-width Enterprise band */
.pricing-grid.split3 { grid-template-columns: repeat(3, 1fr); }
.pricing-grid.split3 > .price-wide { grid-column: 1 / -1; }
@media (max-width: 900px) { .pricing-grid.split3 { grid-template-columns: 1fr; } }
.price-card.price-wide { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 36px; align-items: center; }
.price-card.price-wide .price-amount { margin: 12px 0 6px; }
.price-card.price-wide .price-cap { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.price-card.price-wide .price-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 24px; margin: 0; }
.price-card.price-wide .pw-cta { display: flex; justify-content: flex-end; }
.price-card.price-wide .pw-cta .btn { width: auto; }
@media (max-width: 860px) {
  .price-card.price-wide { grid-template-columns: 1fr; gap: 22px; }
  .price-card.price-wide .price-feats { grid-template-columns: 1fr; }
  .price-card.price-wide .pw-cta { justify-content: stretch; }
  .price-card.price-wide .pw-cta .btn { width: 100%; }
}

/* ---------- FAQ accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-xl); overflow: hidden; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.faq-item.open { border-color: var(--neutral-300); box-shadow: var(--shadow-sm); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; cursor: pointer; user-select: none; }
.faq-q h4 { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; margin: 0; }
.faq-q .chev { flex: none; color: var(--fg-secondary); transition: transform var(--dur-base) var(--ease-standard), color var(--dur-fast); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); color: var(--sapphire-600); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--dur-slow) var(--ease-standard); }
.faq-a-inner { padding: 0 24px 24px; color: var(--fg-secondary); font-size: 14.5px; line-height: 1.6; }

/* ---------- CTA band (dark) ---------- */
.cta-band { background: var(--sapphire-900); color: #fff; border-radius: var(--radius-2xl); padding: clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.cta-band .h2-section { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,0.7); }
.cta-band-glow { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(420px 280px at 85% 15%, rgba(212,160,23,0.16), transparent 70%),
    radial-gradient(520px 320px at 10% 110%, rgba(36,97,219,0.35), transparent 70%);
}
.cta-band-inner { position: relative; z-index: 1; }

/* ---------- Conviction pillars (SaaS / Conseil / Data) ---------- */
.conviction-pillars { display: flex; justify-content: center; align-items: stretch; max-width: 640px; margin: 0 auto; }
.conviction-pillars .cp { flex: 1; padding: 4px 20px; border-left: 1px solid rgba(255,255,255,0.13); }
.conviction-pillars .cp:first-child { border-left: none; }
.conviction-pillars .cp b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3vw, 30px); color: var(--gold-500); letter-spacing: -0.02em; line-height: 1; }
.conviction-pillars .cp span { display: block; margin-top: 8px; font-size: 13px; color: rgba(255,255,255,0.55); }
@media (max-width: 520px) { .conviction-pillars { gap: 0; } .conviction-pillars .cp { padding: 4px 12px; } .conviction-pillars .cp span { font-size: 11.5px; } }

/* ---------- About / team ---------- */
.team-member { display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: start; }
.team-member + .team-member { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--border-default); }
.team-avatar { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 28px; color: #fff; flex: none; box-shadow: var(--shadow-sm); }
.team-name { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; margin: 0; }
.team-role { color: var(--sapphire-700); font-weight: 600; font-size: 14px; margin-top: 4px; }
.team-exp { font-size: 12.5px; color: var(--fg-secondary); margin-top: 8px; display: inline-flex; flex-wrap: wrap; gap: 6px; }
.team-exp .ex { background: var(--bg-subtle); border: 1px solid var(--border-default); border-radius: var(--radius-pill); padding: 3px 10px; }
.team-bio { margin-top: 16px; max-width: 680px; }
.team-bio p { font-size: 14.5px; line-height: 1.65; color: var(--neutral-700); margin: 0 0 12px; }
.team-bio p:last-child { margin-bottom: 0; }
.team-soon { font-size: 14px; color: var(--fg-muted); font-style: italic; margin-top: 16px; }
@media (max-width: 600px) { .team-member { grid-template-columns: 1fr; gap: 16px; } .team-avatar { width: 72px; height: 72px; font-size: 22px; } }

/* Co-founders — 3 equal columns */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.team-card { background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); padding: 30px 26px; display: flex; flex-direction: column; }
.team-card .team-avatar { margin-bottom: 18px; }
.team-card .team-name { margin: 0; }
.team-card .team-role { min-height: 40px; }
.team-card .team-exp { margin-top: 12px; margin-bottom: 4px; }
.team-card .team-bio { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--neutral-100); }
.team-card .team-bio p { font-size: 13.5px; }
.team-card .team-soon { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--neutral-100); }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; } .team-card .team-role { min-height: 0; } }

/* ---------- Use-case sectors & roles ---------- */
.uc-sector + .uc-sector { margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--border-default); }
.role-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.role-tag { font-size: 12px; font-weight: 600; color: var(--sapphire-700); background: var(--sapphire-50); border: 1px solid var(--sapphire-100); padding: 5px 12px; border-radius: var(--radius-pill); }
.example-box { background: var(--sapphire-900); color: #fff; border-radius: var(--radius-xl); padding: 26px; position: relative; overflow: hidden; }
.example-box .eyebrow-label { color: var(--gold-400); display: block; margin-bottom: 12px; }
.example-box p { color: rgba(255,255,255,0.8); font-size: 14px; line-height: 1.55; }
.example-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.12); }
.example-row:first-of-type { border-top: none; }
.example-row .lbl { font-weight: 700; font-size: 13px; flex: none; width: 96px; }
.example-row .lbl.before { color: #FCA5A5; }
.example-row .lbl.after { color: #66EA97; }
.example-row .val { font-size: 13.5px; color: rgba(255,255,255,0.82); line-height: 1.5; }
.indices-card { background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: 26px; box-shadow: var(--shadow-card); }
.indices-card h4 { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin: 0 0 16px; }

/* ---------- Reusable dark surface (same glow as the final CTA band) ---------- */
.dark-surface { position: relative; overflow: hidden; background: var(--sapphire-900); border-color: transparent; }
.dark-surface::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(420px 280px at 85% 12%, rgba(212,160,23,0.20), transparent 70%),
    radial-gradient(520px 320px at 8% 112%, rgba(36,97,219,0.40), transparent 70%);
}
.dark-surface > * { position: relative; z-index: 1; }

/* feature-card on dark surface */
.feature-card.dark-surface { box-shadow: var(--shadow-lg); }
.feature-card.dark-surface:hover { border-color: transparent; }
.feature-card.dark-surface .h3-card { color: #fff; }
.feature-card.dark-surface p { color: rgba(255,255,255,0.72); }
.feature-card.dark-surface .feat-stat { border-top-color: rgba(255,255,255,0.16); }
.feature-card.dark-surface .feat-stat b { color: #fff; }
.feature-card.dark-surface .feat-stat span { color: rgba(255,255,255,0.6); }
.feature-card.dark-surface .feat-icon.danger { background: rgba(220,38,38,0.22); color: #FCA5A5; }

/* price-card on dark surface */
.price-card.dark-surface { box-shadow: var(--shadow-lg); }
.price-card.dark-surface .price-name { color: #fff; }
.price-card.dark-surface .price-onboard { color: rgba(255,255,255,0.6); }
.price-card.dark-surface .price-amount b { color: #fff; }
.price-card.dark-surface .price-cap { color: rgba(255,255,255,0.66); border-bottom-color: rgba(255,255,255,0.16); }
.price-card.dark-surface .price-feats li { color: rgba(255,255,255,0.85); }
.price-card.dark-surface .price-feats li svg { color: var(--gold-400); }
.price-card.dark-surface .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.28); }
.price-card.dark-surface .btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); color: #fff; }

/* ---------- Dark section ---------- */
.section-dark { background: var(--sapphire-900); color: #fff; }
.section-dark .h2-section, .section-dark .display, .section-dark h1, .section-dark h2 { color: #fff; }
.section-dark p, .section-dark .lead { color: rgba(255,255,255,0.68); }
.section-dark .eyebrow-label { color: var(--gold-400); }

/* ---------- Footer ---------- */
.site-footer { background: var(--sapphire-900); color: var(--fg-on-dark); padding: 64px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--border-on-dark); }
.footer-brand img { height: 30px; width: 72px; margin-bottom: 18px; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 14px; line-height: 1.6; max-width: 320px; }
.footer-col h5 { font-family: var(--font-ui); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); margin: 0 0 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: rgba(255,255,255,0.75); font-size: 14px; transition: color var(--dur-fast); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; flex-wrap: wrap; }
.footer-bottom p { color: rgba(255,255,255,0.45); font-size: 13px; margin: 0; }
.footer-credit a { color: rgba(255,255,255,0.7); transition: color var(--dur-fast); }
.footer-credit a:hover { color: #fff; text-decoration: underline; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: rgba(255,255,255,0.55); font-size: 13px; }
.footer-legal a:hover { color: #fff; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Wireframe app mockup ---------- */
.wf-frame { background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-2xl); box-shadow: var(--shadow-xl); overflow: hidden; }
.wf-bar { height: 40px; background: var(--bg-subtle); border-bottom: 1px solid var(--border-default); display: flex; align-items: center; gap: 7px; padding: 0 16px; }
.wf-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--neutral-300); }
.wf-url { margin-left: 14px; height: 22px; flex: 1; max-width: 320px; background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-pill); }
.wf-app { display: grid; grid-template-columns: 64px 1fr; min-height: 360px; }
.wf-rail { background: var(--neutral-950); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.wf-rail .wf-logo { width: 30px; height: 10px; border-radius: 3px; background: var(--gold-500); margin-bottom: 8px; }
.wf-rail .wf-ico { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,0.07); }
.wf-rail .wf-ico.on { background: #fff; }
.wf-main { padding: 18px 20px; background: var(--bg-app); }
.wf-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.wf-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.wf-kpi { background: #fff; border: 1px solid var(--border-default); border-radius: 10px; padding: 14px; box-shadow: var(--shadow-xs); }
.wf-table { background: #fff; border: 1px solid var(--border-default); border-radius: 10px; box-shadow: var(--shadow-xs); overflow: hidden; }
.wf-trow { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr 0.4fr; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--neutral-100); }
.wf-trow.head { background: var(--bg-subtle); }
.wf-trow:last-child { border-bottom: none; }
.sk { background: var(--neutral-200); border-radius: 4px; height: 9px; display: block; }
.sk.dark { background: var(--neutral-300); }
.sk.blue { background: var(--sapphire-300); }
.sk.gold { background: var(--gold-300); }
.sk.tall { height: 22px; border-radius: 6px; }
.sk.lg { height: 14px; }
.wf-pill { width: 56px; height: 20px; border-radius: var(--radius-pill); background: var(--success-100); }
.wf-pill.gold { background: var(--gold-100); }
.wf-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--sapphire-200); flex: none; }

/* ---------- Generic content (legal pages) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.01em; margin: 40px 0 14px; }
.prose h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 28px 0 10px; }
.prose p, .prose li { font-size: 15px; line-height: 1.7; color: var(--neutral-700); }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 22px; margin: 0 0 16px; display: flex; flex-direction: column; gap: 6px; }
.prose strong { color: var(--fg-primary); font-weight: 600; }
.prose a { color: var(--sapphire-600); }
.prose a:hover { text-decoration: underline; }
.legal-meta { font-size: 13px; color: var(--fg-secondary); margin-bottom: 8px; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--border-default); border: none; margin: 0; }
.badge-soft { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 11px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; background: var(--sapphire-50); color: var(--sapphire-700); }
.badge-soft.gold { background: var(--gold-50); color: var(--gold-700); }
.badge-soft.success { background: var(--success-100); color: var(--success-700); }
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.5; }
.check-list li svg { width: 20px; height: 20px; color: var(--success-600); flex: none; margin-top: 1px; }

/* ---------- Reveal animation (transform-only — content is ALWAYS visible) ---------- */
.reveal { animation: revealUp 0.55s var(--ease-enter) both; }
@keyframes revealUp { from { transform: translateY(14px); } to { transform: none; } }
[data-reveal-group] > .reveal:nth-child(1) { animation-delay: 0s; }
[data-reveal-group] > .reveal:nth-child(2) { animation-delay: 0.07s; }
[data-reveal-group] > .reveal:nth-child(3) { animation-delay: 0.14s; }
[data-reveal-group] > .reveal:nth-child(4) { animation-delay: 0.21s; }
[data-reveal-group] > .reveal:nth-child(5) { animation-delay: 0.28s; }
[data-reveal-group] > .reveal:nth-child(6) { animation-delay: 0.35s; }
[data-reveal-group] > .reveal:nth-child(n+7) { animation-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; transform: none; } html { scroll-behavior: auto; } }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 560px; margin: 0 auto;
  background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl); padding: 18px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  transform: translateY(140%); transition: transform var(--dur-slow) var(--ease-standard);
}
.cookie-banner.show { transform: none; }
.cookie-banner p { font-size: 13px; color: var(--fg-secondary); margin: 0; flex: 1; min-width: 200px; line-height: 1.5; }
.cookie-banner .cookie-btns { display: flex; gap: 8px; }

/* =========================================================================
   Inner-page helpers
   ========================================================================= */

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(52px, 6vw, 84px) 0 clamp(40px, 4vw, 60px); border-bottom: 1px solid var(--border-default); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow-label { display: inline-block; margin-bottom: 16px; }
.page-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.025em; margin: 0; text-wrap: balance; max-width: 16ch; }
.page-hero .lead { margin-top: 20px; max-width: 620px; }
.page-hero .hero-cta { margin-top: 30px; }
/* Centered inner-page hero */
.page-hero.center .container { text-align: center; }
.page-hero.center h1 { margin-left: auto; margin-right: auto; }
.page-hero.center .lead { margin-left: auto; margin-right: auto; }
.page-hero.center .hero-cta { justify-content: center; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-secondary); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--sapphire-600); }
.breadcrumb svg { width: 14px; height: 14px; }

/* ---------- Alternating feature row ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-row + .feature-row { margin-top: clamp(56px, 7vw, 96px); }
.feature-row.flip .fr-media { order: -1; }
.fr-copy .feat-icon { margin-bottom: 20px; }
.fr-copy h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance; }
.fr-copy p.lead { margin-bottom: 22px; }
.fr-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.fr-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--fg-primary); }
.fr-list li svg { width: 20px; height: 20px; color: var(--sapphire-600); flex: none; margin-top: 1px; }
.fr-list li strong { font-weight: 600; }
@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; gap: 36px; }
  .feature-row.flip .fr-media { order: 0; }
}

/* index chips group */
.index-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.index-chip { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--sapphire-700); background: var(--sapphire-50); border: 1px solid var(--sapphire-100); padding: 5px 10px; border-radius: var(--radius-md); }
.index-chip.gold { color: var(--gold-700); background: var(--gold-50); border-color: var(--gold-100); }

/* ---------- Wireframe panels (smaller, reusable) ---------- */
.wf-panel { background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-2xl); box-shadow: var(--shadow-lg); padding: 22px; }
.wf-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.wf-line { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--neutral-100); }
.wf-line:last-child { border-bottom: none; }
.wf-doc { background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 22px; }
.wf-doc-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--neutral-100); }

/* ---------- Contact / form ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; gap: 40px; } }
.form-card { background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-2xl); box-shadow: var(--shadow-card); padding: clamp(24px, 3vw, 36px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--fg-primary); margin-bottom: 7px; }
.field .req { color: var(--error-600); }
.input, .textarea, .select {
  width: 100%; height: 44px; padding: 0 14px; font: inherit; font-size: 14.5px; color: var(--fg-primary);
  background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-lg);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.textarea { height: auto; padding: 12px 14px; min-height: 120px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%237A95B0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; cursor: pointer; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--sapphire-600); box-shadow: var(--ring); }
.input::placeholder, .textarea::placeholder { color: var(--fg-muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.form-success { display: none; text-align: center; padding: 24px 12px; }
.form-success.show { display: block; }
.form-success .fs-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--success-100); color: var(--success-600); display: grid; place-items: center; margin: 0 auto 20px; }
.form-success .fs-icon svg { width: 32px; height: 32px; }

/* contact aside */
.contact-aside .info-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--neutral-100); }
.contact-aside .info-item:last-child { border-bottom: none; }
.contact-aside .info-item .ico { width: 44px; height: 44px; border-radius: var(--radius-lg); background: var(--sapphire-50); color: var(--sapphire-600); display: grid; place-items: center; flex: none; }
.contact-aside .info-item .ico svg { width: 21px; height: 21px; }
.contact-aside .info-item h4 { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin: 0 0 3px; }
.contact-aside .info-item p { font-size: 14px; color: var(--fg-secondary); margin: 0; line-height: 1.5; }

/* ---------- Security page ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .sec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sec-grid { grid-template-columns: 1fr; } }
.cert-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.cert-badge { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: 16px 22px; box-shadow: var(--shadow-xs); }
.cert-badge .ico { width: 42px; height: 42px; border-radius: var(--radius-lg); background: var(--sapphire-900); color: var(--gold-400); display: grid; place-items: center; flex: none; }
.cert-badge .ico svg { width: 22px; height: 22px; }
.cert-badge b { font-family: var(--font-display); font-size: 15px; display: block; white-space: nowrap; }
.cert-badge span { font-size: 12.5px; color: var(--fg-secondary); white-space: nowrap; }

/* ---------- FAQ page categories ---------- */
.faq-cat { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.faq-cat svg { width: 22px; height: 22px; color: var(--sapphire-600); }
.faq-cat + .faq-list { margin-bottom: 44px; }

/* ---------- Use case detail blocks ---------- */
.uc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.uc-detail + .uc-detail { margin-top: clamp(48px, 6vw, 80px); }
.uc-detail.flip .ucd-media { order: -1; }
@media (max-width: 900px) { .uc-detail { grid-template-columns: 1fr; gap: 32px; } .uc-detail.flip .ucd-media { order: 0; } }
.ucd-tag { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Anchor offset for sticky nav ---------- */
:target { scroll-margin-top: 96px; }
[id] { scroll-margin-top: 96px; }

/* =========================================================================
   Homepage hero variations (driven by Tweaks panel)
   ========================================================================= */

/* Hero layout: centered */
.hero--centered .hero-layout { grid-template-columns: 1fr; text-align: center; }
.hero--centered .hero-visual { display: none; }
.hero--centered .hero-copy { max-width: 780px; margin: 0 auto; }
.hero--centered .hero-copy .lead { margin-left: auto; margin-right: auto; }
.hero--centered .hero-cta { justify-content: center; }
.hero--centered .hero-trust { justify-content: center; }

/* Hero background: dark */
.hero.section-dark .display { color: #fff; }
.hero.section-dark .lead { color: rgba(255,255,255,0.72); }
.hero.section-dark .gold-accent { color: var(--gold-400); }
.hero.section-dark .hero-strike { color: rgba(255,255,255,0.42); }
.hero.section-dark .hero-trust { color: rgba(255,255,255,0.6); }
.hero.section-dark .hero-trust strong { color: #fff; }
.hero.section-dark .eyebrow-pill { background: rgba(255,255,255,0.06); border-color: var(--border-on-dark); color: #fff; }
.hero.section-dark .btn-outline { background: transparent; color: #fff; border-color: var(--border-on-dark); }
.hero.section-dark .btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); color: #fff; }
.hero.section-dark .hero-grid-bg { opacity: 0.14; background-image: linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px); }
.hero.section-dark .hero-float-card { background: var(--sapphire-950); border-color: var(--border-on-dark); }
.hero.section-dark .hff-title { color: #fff; }
.hero.section-dark .wf-frame { box-shadow: var(--shadow-2xl); }

/* (Hero "Excel" strike + brand accent are driven by Tweaks via inline styles
    and the --brand* / --strike-after variables — no override classes needed.) */

/* =========================================================================
   Tweaks panel
   ========================================================================= */
.tweaks-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 300; width: 296px;
  background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl); font-family: var(--font-ui);
  display: none; overflow: hidden;
}
.tweaks-panel.open { display: block; }
.tw-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border-default); background: var(--bg-subtle); }
.tw-head b { font-family: var(--font-display); font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.tw-head b svg { width: 16px; height: 16px; color: var(--sapphire-600); }
.tw-close { width: 30px; height: 30px; border: none; background: transparent; border-radius: var(--radius-md); cursor: pointer; color: var(--fg-secondary); display: grid; place-items: center; }
.tw-close:hover { background: var(--bg-muted); color: var(--fg-primary); }
.tw-close svg { width: 17px; height: 17px; }
.tw-body { padding: 16px; display: flex; flex-direction: column; gap: 18px; max-height: 70vh; overflow-y: auto; }
.tw-group label { display: block; font-size: 12px; font-weight: 600; color: var(--fg-secondary); margin-bottom: 8px; }
.tw-seg { display: flex; gap: 4px; background: var(--bg-muted); border-radius: var(--radius-lg); padding: 4px; }
.tw-seg button { flex: 1; height: 32px; border: none; background: transparent; border-radius: var(--radius-md); font: inherit; font-size: 12.5px; font-weight: 600; color: var(--fg-secondary); cursor: pointer; transition: all var(--dur-fast); }
.tw-seg button:hover { color: var(--fg-primary); }
.tw-seg button.on { background: #fff; color: var(--sapphire-700); box-shadow: var(--shadow-xs); }
.tw-note { font-size: 11px; color: var(--fg-muted); margin: 0; }

/* =========================================================================
   Responsive refinements
   ========================================================================= */
/* Comparison tables scroll horizontally on small screens instead of crushing */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { min-width: 600px; }

@media (max-width: 600px) {
  /* inner 2-col lists (indices BT, etc.) stack */
  .indices-card > div[style*="grid"] { grid-template-columns: 1fr !important; }
  /* example box label/value stack for breathing room */
  .example-row { flex-direction: column; gap: 4px; }
  .example-row .lbl { width: auto; }
}

@media (max-width: 480px) {
  /* wireframe KPI strip: 4 -> 2 columns */
  .wf-kpis { grid-template-columns: repeat(2, 1fr); }
  /* tighten section side padding a touch on very small screens */
  .container { padding: 0 18px; }
  /* feature-row media (wireframes) keep comfortable padding */
  .wf-panel, .wf-doc { padding: 18px; }
  /* conviction pillars: allow wrap to 1 per row if cramped */
  .conviction-pillars .cp b { font-size: 22px; }
}

/* Pricing & onboarding wireframes never overflow */
.wf-panel, .wf-doc, .wf-frame { max-width: 100%; }
/* Long monospace amounts shouldn't force overflow inside narrow wireframes */
.wf-line .mono { white-space: nowrap; }

/* Nav: keep the full nav compact just above the hamburger breakpoint */
@media (max-width: 1160px) and (min-width: 1025px) {
  .nav-inner { gap: 18px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 8px 10px; }
}

/* =========================================================================
   Tweaks variant classes (toggled on <body> by per-page tweaks config)
   ========================================================================= */

/* --- Accent de marque : Or --- */
body.tw-acc-or {
  --brand: var(--gold-600);
  --brand-hover: var(--gold-700);
  --brand-active: var(--gold-800);
  --brand-soft: var(--gold-50);
  --brand-text: var(--gold-700);
}

/* --- Style d'icônes : Contour --- */
body.tw-ico-outline .feat-icon { background: transparent; box-shadow: inset 0 0 0 1.6px currentColor; }
body.tw-ico-outline .usecase-icon { background: transparent; color: var(--gold-600); box-shadow: inset 0 0 0 1.6px currentColor; }

/* --- Densité : Compact --- */
body.tw-compact .section { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); }
body.tw-compact .feature-row + .feature-row { margin-top: clamp(40px, 5vw, 64px); }
body.tw-compact .grid-3, body.tw-compact .grid-4, body.tw-compact .sec-grid { gap: 14px; }
body.tw-compact .feature-card { padding: 22px; }

/* --- Visuels (maquettes) masqués : texte pleine largeur --- */
body.tw-nomedia .fr-media { display: none; }
body.tw-nomedia .feature-row { grid-template-columns: 1fr; }
body.tw-nomedia .fr-copy { max-width: 760px; }

/* --- Tarifs : 4 colonnes égales (Enterprise redevient une carte standard) --- */
body.tw-price4 .pricing-grid.split3 { grid-template-columns: repeat(4, 1fr); }
body.tw-price4 .price-card.price-wide { display: flex; flex-direction: column; }
body.tw-price4 .price-card.price-wide > div { margin-bottom: 0; }
body.tw-price4 .price-card.price-wide .price-feats { display: flex; flex-direction: column; gap: 11px; margin: 18px 0 24px; }
body.tw-price4 .price-card.price-wide .pw-cta { justify-content: stretch; margin-top: auto; }
body.tw-price4 .price-card.price-wide .pw-cta .btn { width: 100%; }
@media (max-width: 1040px) { body.tw-price4 .pricing-grid.split3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { body.tw-price4 .pricing-grid.split3 { grid-template-columns: 1fr; } }

/* --- Contact : formulaire centré (aside masqué) --- */
body.tw-contact-center .contact-layout { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
body.tw-contact-center .contact-aside { display: none; }

/* --- À propos : avatars monochromes --- */
body.tw-avatar-mono .team-avatar { background: var(--sapphire-900) !important; }
