/* Pryon marketing site — shares the dashboard design tokens so the site and the
   product feel like one brand. Light default, dark via [data-theme="dark"]. */

:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e6eaf1;
  --text: #0f172a;
  --muted: #64748b;
  --brand: #0066ff;
  --brand-ink: #0a4bff;
  --charge: #16a34a;
  --discharge: #ea8a0b;
  --idle: #64748b;
  --grad-a: #00d4ff;
  --grad-b: #00ffaa;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 40px rgba(15, 23, 42, 0.12);
  --radius: 16px;
  --maxw: 1120px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --surface: #131c2e;
  --surface-2: #1b2740;
  --border: #263349;
  --text: #e8eef7;
  --muted: #93a1b5;
  --charge: #22c55e;
  --discharge: #f59e0b;
  --idle: #7688a0;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0b1220;
    --surface: #131c2e;
    --surface-2: #1b2740;
    --border: #263349;
    --text: #e8eef7;
    --muted: #93a1b5;
    --charge: #22c55e;
    --discharge: #f59e0b;
    --idle: #7688a0;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.wrap.narrow {
  max-width: 760px;
}

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}
.brand-logo {
  height: 34px;
  width: 34px;
  object-fit: contain;
}
.brand-name {
  font-size: 20px;
  letter-spacing: 0.3px;
}
.nav {
  display: flex;
  gap: 26px;
  margin-left: 12px;
  font-size: 15px;
  font-weight: 500;
}
.nav a {
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav a:hover {
  color: var(--text);
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.icon-btn:hover {
  color: var(--text);
  border-color: var(--brand);
}
.menu-btn {
  display: none;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.05s ease, filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover {
  border-color: var(--brand);
}
.btn:active {
  transform: translateY(1px);
}
.btn.lg {
  padding: 13px 24px;
  font-size: 16px;
}
.btn.sm {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 14px;
}
.btn.primary {
  background: linear-gradient(120deg, var(--brand-ink), var(--brand));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 102, 255, 0.28);
}
.btn.primary:hover {
  filter: brightness(1.07);
}
.btn.ghost {
  background: transparent;
}
.btn.ghost.on-grad {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.btn.ghost.on-grad:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 40px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% 40% auto -10%;
  height: 620px;
  background: radial-gradient(closest-side, rgba(0, 212, 255, 0.28), transparent 70%),
    radial-gradient(closest-side, rgba(0, 255, 170, 0.22), transparent 70%);
  background-position: 20% 20%, 70% 60%;
  background-repeat: no-repeat;
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow.center {
  display: block;
  width: fit-content;
  margin: 0 auto 14px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 20px;
}
.hero-wordmark {
  display: block;
  width: min(220px, 52vw);
  height: auto;
  margin: 0 0 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.1);
}
.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 28px;
}
.lead strong {
  color: var(--text);
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  min-width: 120px;
}
.hero-stat-val {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.hero-stat-lbl {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}
.tick {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--charge) 18%, transparent);
  color: var(--charge);
  font-size: 12px;
  font-weight: 800;
}

/* ===================== FLOW CARD (hero + preview) ===================== */
.flow-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px 20px;
  box-shadow: var(--shadow-lg);
}
.flow-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--charge);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.node circle {
  fill: var(--surface-2);
  stroke: var(--border);
  stroke-width: 1;
}
.nlabel {
  fill: var(--muted);
  font-size: 11.5px;
  text-anchor: middle;
  font-family: inherit;
}
.nval {
  fill: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-anchor: middle;
  font-family: inherit;
}
.flow-story {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}
.flow-story a {
  color: var(--brand);
  font-weight: 600;
}
@keyframes pf-dash {
  to { stroke-dashoffset: -20; }
}
.pf-flow {
  animation: pf-dash 0.9s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .pf-flow, .live-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===================== TRUST BAND ===================== */
.trust-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 20px 0;
}
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 4px;
}
.trust-icon {
  font-size: 22px;
  line-height: 1;
  flex: none;
  margin-top: 2px;
}
.trust-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}
.trust-item span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.trust-item a {
  color: var(--brand);
  font-weight: 600;
}
.f-icon {
  font-size: 26px;
  margin-bottom: 10px;
}

/* ===================== SECTIONS ===================== */
.section {
  padding: 68px 0;
}
.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  margin-bottom: 44px;
}
.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-align: center;
  margin: 0;
}
.section-title.left {
  text-align: left;
  margin-bottom: 20px;
}
.section-head .section-title {
  margin-top: 0;
}
.section-lead {
  max-width: 680px;
  margin: 14px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* Savings */
.savings-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 22px;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border));
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--brand) 6%, var(--surface)),
    var(--surface)
  );
}
.savings-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 8px;
}
.savings-big {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}
.savings-amount {
  font-size: clamp(42px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.savings-period {
  font-size: 18px;
  font-weight: 600;
  color: var(--muted);
}
.savings-sub {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  max-width: 52ch;
}
.savings-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
}
.savings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}
.savings-card {
  text-align: center;
  padding: 20px 18px;
}
.savings-card.featured {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
  box-shadow: var(--shadow-lg);
}
.savings-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
}
.savings-card-amount {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.savings-card-amount span {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.savings-card-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.savings-extra h3 {
  margin: 0 0 10px;
  font-size: 17px;
}
.savings-extra p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}
.savings-disclaimer {
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}
#faq details ul {
  margin: 10px 0 12px;
  padding-left: 1.2rem;
}
#faq details li {
  margin: 4px 0;
}

/* Platform */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.platform-card {
  position: relative;
  overflow: hidden;
}
.platform-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
}
.platform-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.platform-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}
.platform-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}
@media (min-width: 941px) {
  .steps::before {
    content: "";
    position: absolute;
    top: 44px;
    left: calc(16.66% + 20px);
    right: calc(16.66% + 20px);
    height: 2px;
    background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
    opacity: 0.35;
    z-index: 0;
  }
  .step {
    position: relative;
    z-index: 1;
  }
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.section.alt .card {
  background: var(--bg);
}
.step-num {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  color: #05263a;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 14px;
}
.step h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* Knowledge hub */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.knowledge-card {
  display: flex;
  flex-direction: column;
  min-height: 255px;
}
.knowledge-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}
.knowledge-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
}
.knowledge-question {
  margin-top: auto;
  color: var(--text) !important;
  font-weight: 650;
}
.text-link {
  color: var(--brand);
  font-weight: 750;
  width: fit-content;
}
.text-link:hover {
  color: var(--brand-ink);
}
.secondary-link {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 650;
}

.topic-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.topic-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}
.topic-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
}
.topic-card span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.topic-card strong {
  font-size: 17px;
  line-height: 1.25;
}
.topic-card small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.knowledge-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--border));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--brand) 5%, var(--surface));
}
.knowledge-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 68ch;
}

/* Product preview */
.preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.preview p {
  color: var(--muted);
  font-size: 16px;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  font-weight: 500;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--charge) 18%, transparent);
  color: var(--charge);
  font-size: 12px;
  font-weight: 800;
}
.flow-card.small {
  padding: 16px;
}
.mini-banner {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border-left: 5px solid var(--discharge);
  margin-bottom: 14px;
}
.mini-icon {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--discharge);
  font-size: 18px;
  font-weight: 800;
}
.mini-title {
  font-weight: 700;
  font-size: 15px;
}
.mini-sub {
  color: var(--muted);
  font-size: 12.5px;
}
.mini-schedule {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.mini-schedule th {
  text-align: left;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
}
.mini-schedule td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.mini-schedule tr:last-child td {
  border-bottom: none;
}
.mini-schedule td:nth-child(3) {
  font-weight: 700;
  white-space: nowrap;
}
.mini-schedule td:nth-child(4) {
  color: var(--muted);
  min-width: 128px;
}
.explain-toggle {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.badge.charge {
  background: rgba(22, 163, 74, 0.14);
  color: var(--charge);
}
.badge.discharge {
  background: rgba(234, 138, 11, 0.16);
  color: var(--discharge);
}
.badge.idle {
  background: rgba(100, 116, 139, 0.16);
  color: var(--idle);
}

/* Audience */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.aud-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.aud h3 {
  margin: 0 0 8px;
  font-size: 19px;
}
.aud {
  display: flex;
  flex-direction: column;
}
.aud > p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}
.aud .check-list {
  margin-bottom: 18px;
}
.aud-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: auto;
}
.aud-cta {
  width: fit-content;
}

/* Detail pages */
.detail-hero {
  padding: 66px 0 34px;
}
.breadcrumb {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.breadcrumb:hover {
  color: var(--brand);
}
.detail-hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}
.detail-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.detail-lead {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 19px;
}
.detail-panel {
  position: relative;
  overflow: hidden;
}
.detail-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
}
.detail-panel h3 {
  margin: 10px 0 12px;
  font-size: 20px;
}
.detail-panel p {
  color: var(--muted);
  margin: 0;
}
.panel-note {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.panel-note p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.detail-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.detail-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.detail-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: start;
}
.detail-split h2 {
  margin-top: 0;
}
.info-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.info-list li {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.info-list strong {
  display: block;
  margin-bottom: 4px;
}
.info-list span {
  color: var(--muted);
  font-size: 15px;
}
.next-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.scenario-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.scenario-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.scenario-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.detail-callout {
  margin-top: 22px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--border));
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
}
.detail-callout strong {
  display: block;
  margin-bottom: 6px;
}
.detail-callout p {
  margin: 0;
  color: var(--muted);
}
.article-hero {
  padding-bottom: 50px;
}
.article-summary h2 {
  margin: 10px 0 12px;
  font-size: 22px;
  line-height: 1.25;
}
.article-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
.article-toc {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 10px;
  padding: 18px;
}
.article-toc strong {
  margin-bottom: 4px;
}
.article-toc a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.article-toc a:hover {
  color: var(--brand);
}
.article-body {
  display: grid;
  gap: 34px;
}
.article-body > section {
  scroll-margin-top: 92px;
}
.article-body h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.article-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.article-body p {
  color: var(--muted);
  font-size: 16px;
}
.answer-box,
.example-card {
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--brand) 5%, var(--surface));
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0 12px;
}
.calc-grid > div {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.calc-grid ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14.5px;
}
.calc-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.calc-grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}
.calc-grid p,
.fine-print {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.article-faq details {
  background: var(--surface);
}
.source-list ul {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding-left: 18px;
}
.source-list a {
  color: var(--brand);
  font-weight: 650;
}
.story-block {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 34px;
  align-items: start;
}
.story-copy p {
  color: var(--muted);
  font-size: 16px;
}
.story-copy p:last-child {
  margin-bottom: 0;
}
.story-example {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
}
.story-example h3 {
  margin: 0 0 12px;
  font-size: 20px;
}
.story-example p {
  color: var(--muted);
  margin: 0 0 14px;
}
.story-example p:last-child {
  margin-bottom: 0;
}
.insight-path {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 26px;
}
.insight-step {
  padding: 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.insight-step strong {
  display: block;
  margin-bottom: 6px;
}
.insight-step span {
  color: var(--muted);
  font-size: 14.5px;
}

/* Lead forms */
.lead-modal[hidden] {
  display: none;
}
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.lead-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(4px);
}
.lead-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 28px;
}
.lead-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lead-close:hover {
  color: var(--text);
  border-color: var(--brand);
}
.lead-dialog h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.lead-intro {
  margin: 0 0 20px;
  color: var(--muted);
}
.lead-form[hidden] {
  display: none;
}
.lead-form:not([hidden]) {
  display: grid;
  gap: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.lead-form label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
}
.lead-form textarea {
  resize: vertical;
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--brand) 28%, transparent);
  border-color: var(--brand);
}
.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

/* Why */
.why {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.why-copy > p {
  color: var(--muted);
  font-size: 16px;
}
.why-copy strong {
  color: var(--text);
}
.why-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 28px;
}
.why-points h4 {
  margin: 0 0 4px;
  font-size: 15.5px;
}
.why-points p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.why-quote {
  background: linear-gradient(150deg, color-mix(in srgb, var(--grad-a) 16%, var(--surface)), var(--surface));
}
.quote {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 12px;
}
.quote-by {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
}
.faq details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 18px;
}
.section.alt .faq details {
  background: var(--surface);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--brand);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--brand-ink), var(--brand) 55%, #00a9d6);
  color: #fff;
  padding: 66px 0;
}
.cta-inner {
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.cta-band p {
  font-size: 18px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-band .btn.primary {
  background: #fff;
  color: var(--brand-ink);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.footer-wordmark {
  display: block;
  width: 170px;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.foot-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.foot-nav h4 {
  margin: 0 0 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.foot-nav a {
  display: block;
  color: var(--text);
  font-size: 14.5px;
  padding: 4px 0;
}
.foot-nav a:hover {
  color: var(--brand);
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  color: var(--muted);
  font-size: 13.5px;
  flex-wrap: wrap;
  gap: 10px;
}
.foot-legal a:hover {
  color: var(--brand);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 940px) {
  .hero-inner,
  .preview,
  .why,
  .detail-hero-inner,
  .detail-split,
  .story-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-toc {
    position: static;
  }
  .trust-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps,
  .feature-grid,
  .knowledge-grid,
  .topic-strip,
  .detail-grid,
  .scenario-grid,
  .insight-path,
  .platform-grid,
  .savings-grid,
  .calc-grid,
  .action-grid {
    grid-template-columns: 1fr;
  }
  .savings-hero {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 20px 16px;
    transform: translateY(-120%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow);
  }
  .nav.open {
    transform: translateY(0);
  }
  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }
  .nav-cta {
    display: none;
  }
  .menu-btn {
    display: grid;
  }
  .why-points {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .lead-dialog {
    padding: 22px;
  }
  .trust-inner {
    grid-template-columns: 1fr;
  }
  .audience-grid {
    grid-template-columns: 1fr;
  }
  .knowledge-cta {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero-stats {
    gap: 8px;
  }
  .hero-stat {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }
}
