/* Layout-only styles for the main page. Uses tokens from theme.css */

.sl-wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 720px) { .sl-wrap { padding: 0 20px; } }

/* Top bar */
.sl-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.sl-top .brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: var(--display-tracking);
}
html[data-theme="fintech"] .sl-top .brand { font-weight: 600; font-size: 17px; }

.sl-top nav {
  display: flex; gap: 28px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink-2);
}
.sl-top nav a { color: var(--ink-2); text-decoration: none; }
.sl-top nav a:hover { color: var(--ink); }
.sl-top .right { display: flex; align-items: center; gap: 10px; }

.sl-logo {
  width: 28px; height: 28px; display: inline-block;
}

/* Hero */
.hero {
  padding: 80px 0 64px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 80px;
  align-items: end;
}
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 40px; } }

.hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 32px;
}
.hero-eyebrow .bar { height: 1px; width: 44px; background: var(--ink); }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.02;
  letter-spacing: var(--display-tracking);
  margin: 0;
  text-wrap: balance;
}
html[data-theme="editorial"] .hero h1 em {
  font-style: italic; font-weight: 300; color: var(--accent);
  display: block;
  margin-top: 10px;
}
html[data-theme="fintech"] .hero h1 {
  font-weight: 600; line-height: 1.0;
}
html[data-theme="fintech"] .hero h1 em {
  font-style: normal; color: var(--accent-2);
}

.hero-sub {
  margin-top: 44px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 46ch;
  font-family: var(--font-body);
}
html[data-theme="fintech"] .hero-sub { font-size: 17px; }

.hero-cta {
  margin-top: 36px;
  display: flex; gap: 12px; flex-wrap: wrap;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 28px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.hero-meta .row .k { font-family: var(--font-ui); text-transform: uppercase; letter-spacing: .14em; font-size: 10px; color: var(--ink-3); }
.hero-meta .row .v {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.01em;
}
html[data-theme="fintech"] .hero-meta .row .v { font-family: var(--font-ui); font-weight: 600; font-size: 24px; }
.hero-meta .row .c { margin-top: 4px; font-size: 13px; color: var(--ink-3); }

/* Section headers */
.section { padding: 80px 0; border-top: 1px solid var(--rule); }
.section-head {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 40px; margin-bottom: 48px;
}
@media (max-width: 720px) { .section-head { grid-template-columns: 1fr; gap: 16px; } }
.section-head .eyebrow {
  font-family: var(--font-ui);
  font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--ink-3);
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: var(--display-tracking);
  max-width: 22ch;
}
html[data-theme="fintech"] .section-head h2 { font-weight: 600; }
.section-head p { color: var(--ink-2); font-size: 17px; line-height: 1.55; max-width: 62ch; margin: 0; }

/* How it works */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 960px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .flow { grid-template-columns: 1fr; } }
.flow .step {
  padding: 28px 24px 32px;
  border-right: 1px solid var(--rule);
  min-height: 220px;
  position: relative;
}
.flow .step:last-child { border-right: 0; }
@media (max-width: 960px) {
  .flow .step:nth-child(2n) { border-right: 0; }
  .flow .step:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 600px) {
  .flow .step { border-right: 0; border-bottom: 1px solid var(--rule); }
  .flow .step:last-child { border-bottom: 0; }
}
.flow .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .12em;
}
.flow h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  margin: 14px 0 10px;
  letter-spacing: -0.01em;
}
html[data-theme="fintech"] .flow h3 { font-weight: 600; font-family: var(--font-ui); font-size: 18px; }
.flow p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.flow .duration {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
}

/* Renewal + revocation split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } }
.split .card {
  padding: 28px 28px 32px;
}
.split .card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  margin: 14px 0 10px;
}
html[data-theme="fintech"] .split .card h3 { font-weight: 600; font-family: var(--font-ui); font-size: 20px; }

/* Governance */
.gov {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 720px) { .gov { grid-template-columns: 1fr; } }
.gov .card { padding: 28px; }
.gov .card .label { display: block; margin-bottom: 12px; }
.gov .card h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 8px;
}
html[data-theme="fintech"] .gov .card h4 { font-family: var(--font-ui); font-weight: 600; font-size: 18px; }
.gov .card p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; }

/* Mobile showcase */
.mobile-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}
@media (max-width: 960px) { .mobile-showcase { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .mobile-showcase { grid-template-columns: 1fr; } }

/* Footer */
.footer {
  border-top: 1px solid var(--rule);
  padding: 48px 0 64px;
  color: var(--ink-3);
  font-family: var(--font-ui);
  font-size: 13px;
}
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 720px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
.footer h5 {
  font-family: var(--font-ui);
  text-transform: uppercase; letter-spacing: .16em; font-size: 11px;
  color: var(--ink-2); margin: 0 0 14px; font-weight: 600;
}
.footer a { display: block; color: var(--ink-3); text-decoration: none; padding: 4px 0; }
.footer a:hover { color: var(--ink); }
.footer .credit {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* Tweaks panel */
.tweaks {
  position: fixed; bottom: 20px; right: 20px;
  z-index: 100;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 14px;
  width: 260px;
  font-family: var(--font-ui);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  display: none;
}
.tweaks.visible { display: block; }
.tweaks h6 {
  margin: 0 0 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-3); font-weight: 600;
}
.tweaks .seg {
  display: flex; background: var(--rule-soft); border-radius: 10px; padding: 3px; margin-bottom: 12px;
}
.tweaks .seg button {
  flex: 1; background: transparent; border: 0; padding: 8px; border-radius: 8px;
  font-family: inherit; font-size: 12px; color: var(--ink-2); cursor: pointer;
}
.tweaks .seg button.active { background: var(--bg-elev); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.tweaks .row { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); padding: 6px 0; }
