/* =============================================================================
   Riskbit marketing site · shared stylesheet
   Extends brand-tokens.css with page/component-level styles.
   All visual decisions trace to brand-tokens.css and the brand style guide.
   ============================================================================= */

@import url('./brand-tokens.css');

/* -----------------------------------------------------------------------------
   1. Reset · base
   ----------------------------------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  background: var(--rb-ink);
  color: var(--rb-paper);
  font-family: var(--rb-font-sans);
  font-feature-settings: 'ss01', 'ss02', 'cv11';
  font-size: var(--rb-fs-body);
  line-height: var(--rb-lh-normal);
  letter-spacing: var(--rb-ls-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Ambient page atmosphere — two radial green pools + 64px grid overlay.
   Matches the brand style guide pattern exactly. */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(22, 217, 124, 0.15), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(22, 217, 124, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: ambient-drift 20s ease-in-out infinite alternate;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--rb-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--rb-border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
}

@keyframes ambient-drift {
  0%   { background-position: 0% 0%, 100% 100%; }
  100% { background-position: 5% -2%, 95% 102%; }
}

main { position: relative; z-index: 1; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--rb-green); color: var(--rb-ink); }

/* -----------------------------------------------------------------------------
   2. Layout primitives
   ----------------------------------------------------------------------------- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}
.container--wide { max-width: 1600px; }
.container--narrow { max-width: 1040px; }

section { padding: 120px 0; position: relative; }
section + section { border-top: 1px solid var(--rb-border); }

@media (max-width: 1024px) { section { padding: 88px 0; } .container { padding: 0 32px; } }
@media (max-width: 720px)  { section { padding: 64px 0; } .container { padding: 0 24px; } }

.mono { font-family: var(--rb-font-mono); font-feature-settings: 'ss01'; }
.green { color: var(--rb-green); }

/* -----------------------------------------------------------------------------
   3. Typography
   ----------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--rb-font-sans);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--rb-paper);
}

h1 { font-size: clamp(54px, 9vw, 128px); letter-spacing: -0.045em; line-height: 0.95; }
h2 { font-size: clamp(32px, 4.5vw, 56px); letter-spacing: -0.035em; line-height: 1.05; }
h3 { font-size: clamp(22px, 2.5vw, 32px); letter-spacing: -0.02em;  line-height: 1.15; }
h4 { font-size: 18px; letter-spacing: -0.01em; line-height: 1.3; }

.eyebrow {
  font-family: var(--rb-font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--rb-green);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--rb-green);
}
.eyebrow--plain::before { display: none; }

.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--rb-mid-light);
  line-height: 1.55;
  font-weight: 400;
  max-width: 680px;
}

p { color: var(--rb-mid-light); }
p strong { color: var(--rb-paper); font-weight: 600; }

/* -----------------------------------------------------------------------------
   4. Buttons / CTAs
   ----------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--rb-radius-sm);
  font-family: var(--rb-font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--rb-dur-base) var(--rb-ease),
              box-shadow var(--rb-dur-base) var(--rb-ease),
              background var(--rb-dur-base) var(--rb-ease),
              border-color var(--rb-dur-base) var(--rb-ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--rb-green);
  color: var(--rb-ink);
}
.btn--primary:hover {
  background: var(--rb-green-dark);
  box-shadow: 0 0 0 4px rgba(22, 217, 124, 0.16), 0 8px 32px rgba(22, 217, 124, 0.3);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--rb-paper);
  border-color: var(--rb-border-strong);
}
.btn--ghost:hover {
  background: var(--rb-white-a06);
  border-color: var(--rb-paper);
  transform: translateY(-1px);
}

.btn--lg { padding: 18px 28px; font-size: 16px; }
.btn--sm { padding: 10px 16px; font-size: 13px; }

.btn .arrow {
  transition: transform var(--rb-dur-base) var(--rb-ease);
}
.btn:hover .arrow { transform: translateX(3px); }

.link-inline {
  color: var(--rb-green);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--rb-dur-base) var(--rb-ease);
}
.link-inline:hover { border-bottom-color: var(--rb-green); }
.link-inline .arrow { transition: transform var(--rb-dur-base) var(--rb-ease); }
.link-inline:hover .arrow { transform: translateX(2px); }

/* -----------------------------------------------------------------------------
   5. Nav
   ----------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 14, 15, 0.72);
  border-bottom: 1px solid var(--rb-border);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 16px 0;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand svg { height: 28px; width: auto; }
.nav-brand:hover { opacity: 0.9; }

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--rb-mid-light);
  border-radius: 8px;
  transition: color var(--rb-dur-base) var(--rb-ease),
              background var(--rb-dur-base) var(--rb-ease);
}
.nav-links a:hover { color: var(--rb-paper); background: var(--rb-white-a06); }
.nav-links a[aria-current="page"] { color: var(--rb-paper); }
.nav-links a[aria-current="page"]::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--rb-green);
  box-shadow: 0 0 10px var(--rb-green);
}
.nav-ctas {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rb-border-strong);
  color: var(--rb-paper);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-ctas .btn--ghost { display: none; }
}

/* -----------------------------------------------------------------------------
   6. Hero
   ----------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
  font-family: var(--rb-font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--rb-mid);
}
.hero-kicker-dot {
  width: 8px; height: 8px;
  background: var(--rb-green);
  box-shadow: 0 0 20px var(--rb-green);
  animation: pulse-dot 2.4s ease-in-out infinite;
  border-radius: 1px;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.82); }
}
.hero h1 { max-width: 18ch; margin-bottom: 28px; }
.hero h1 .highlight { color: var(--rb-green); }
.hero-sub {
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--rb-mid-light);
  max-width: 680px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 48px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}
.hero-stage {
  position: relative;
  border-radius: var(--rb-radius-2xl);
  overflow: hidden;
  border: 1px solid var(--rb-border);
  background:
    linear-gradient(180deg, rgba(30, 36, 36, 0.4), rgba(20, 24, 24, 0.6)),
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(22, 217, 124, 0.14), transparent 60%);
}

/* -----------------------------------------------------------------------------
   7. Buttons — section heads
   ----------------------------------------------------------------------------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head--centered {
  grid-template-columns: 1fr;
  text-align: center;
  place-items: center;
}
.section-head--centered .lead { margin: 0 auto; }
.section-head p { max-width: 520px; }

@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}

/* -----------------------------------------------------------------------------
   8. Cards / surfaces
   ----------------------------------------------------------------------------- */
.card {
  background: var(--rb-steel);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-xl);
  padding: 32px;
  transition: transform var(--rb-dur-base) var(--rb-ease),
              border-color var(--rb-dur-base) var(--rb-ease),
              background var(--rb-dur-base) var(--rb-ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--rb-border-strong);
  background: var(--rb-steel-2);
}
.card--shadow { background: var(--rb-shadow); }
.card--glass {
  background: rgba(20, 24, 24, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.icon-square {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(22, 217, 124, 0.1);
  border: 1px solid rgba(22, 217, 124, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rb-green);
  margin-bottom: 20px;
}
.icon-square svg { width: 22px; height: 22px; }

/* -----------------------------------------------------------------------------
   9. Three-up column grid (problem section etc)
   ----------------------------------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* -----------------------------------------------------------------------------
   10. Bento grid (section 4)
   ----------------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 20px;
}
.bento-tile {
  background: var(--rb-steel);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
  transition: transform var(--rb-dur-base) var(--rb-ease),
              border-color var(--rb-dur-base) var(--rb-ease);
}
.bento-tile:hover {
  transform: translateY(-4px);
  border-color: var(--rb-border-strong);
}
.bento-tile--large { grid-column: span 4; grid-row: span 2; }
.bento-tile--wide  { grid-column: span 4; }
.bento-tile--md    { grid-column: span 3; }
.bento-tile--sm    { grid-column: span 2; }

.bento-tile h3 { max-width: 18ch; }
.bento-tile p { color: var(--rb-mid-light); max-width: 46ch; }

.bento-tile .mock {
  margin-top: auto;
  border-radius: var(--rb-radius-md);
  border: 1px solid var(--rb-border);
  overflow: hidden;
  background: var(--rb-shadow);
}

@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento-tile--large { grid-column: span 4; grid-row: auto; }
  .bento-tile--wide  { grid-column: span 4; }
  .bento-tile--md    { grid-column: span 2; }
  .bento-tile--sm    { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento-tile { grid-column: span 1 !important; }
}

/* -----------------------------------------------------------------------------
   11. Glassmorphic quote block (section 6)
   ----------------------------------------------------------------------------- */
.quote-block {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: stretch;
}
@media (max-width: 980px) { .quote-block { grid-template-columns: 1fr; } }

.quote-card {
  background: rgba(20, 24, 24, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-2xl);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.quote-card blockquote {
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--rb-paper);
}
.quote-card blockquote::before { content: '"'; color: var(--rb-green); }
.quote-card blockquote::after  { content: '"'; color: var(--rb-green); }

.quote-attrib {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--rb-mid-light);
  font-size: 14px;
}
.quote-attrib .logo-chip {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--rb-shadow);
  border: 1px solid var(--rb-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--rb-font-mono);
  font-size: 12px;
  color: var(--rb-mid-light);
  font-weight: 600;
}
.quote-attrib strong { color: var(--rb-paper); font-weight: 600; }

.stat-card {
  background: var(--rb-shadow);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-2xl);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(22, 217, 124, 0.18), transparent 60%);
  pointer-events: none;
}
.stat-card .stat {
  position: relative;
  font-family: var(--rb-font-mono);
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 500;
  color: var(--rb-green);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-card .stat-label {
  position: relative;
  color: var(--rb-mid-light);
  font-size: 15px;
  line-height: 1.4;
  max-width: 32ch;
}

/* -----------------------------------------------------------------------------
   12. Logo bar (ticker)
   ----------------------------------------------------------------------------- */
.logobar { padding: 72px 0; }
.logobar p {
  text-align: center;
  color: var(--rb-mid-light);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 40px;
}
.logobar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 48px;
  opacity: 0.6;
}
.logobar-row .logoword {
  font-family: var(--rb-font-sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
  color: var(--rb-paper);
}
.logobar-row .logoword .dot { color: var(--rb-green); }

/* -----------------------------------------------------------------------------
   13. 3-step process
   ----------------------------------------------------------------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
@media (max-width: 860px) { .process { grid-template-columns: 1fr; } }
.process-step {
  background: var(--rb-steel);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-xl);
  padding: 32px;
  position: relative;
}
.process-step .step-num {
  font-family: var(--rb-font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rb-green);
  margin-bottom: 24px;
}
.process-step h3 { margin-bottom: 12px; }

/* -----------------------------------------------------------------------------
   14. Final CTA strap
   ----------------------------------------------------------------------------- */
.cta-strap {
  background: var(--rb-shadow);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-2xl);
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 100%, rgba(22, 217, 124, 0.28), transparent 55%),
    radial-gradient(circle at 50% 0%, rgba(22, 217, 124, 0.08), transparent 50%);
  pointer-events: none;
  animation: strap-glow 8s ease-in-out infinite alternate;
}
@keyframes strap-glow {
  0%   { opacity: 0.9; }
  100% { opacity: 1.1; }
}
.cta-strap h2 { position: relative; margin-bottom: 16px; }
.cta-strap p  { position: relative; max-width: 560px; margin: 0 auto 40px; }
.cta-strap .hero-ctas { position: relative; justify-content: center; margin: 0; }

/* -----------------------------------------------------------------------------
   15. Footer
   ----------------------------------------------------------------------------- */
.footer {
  padding: 80px 0 48px;
  border-top: 1px solid var(--rb-border);
  margin-top: 40px;
}
.footer-row {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 1024px) { .footer-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .footer-row { grid-template-columns: 1fr; gap: 32px; } }

.footer-brand svg { height: 32px; width: auto; margin-bottom: 20px; }
.footer-slogan {
  font-family: var(--rb-font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rb-mid);
  margin-bottom: 16px;
}
.footer-brand p { color: var(--rb-mid-light); font-size: 14px; max-width: 32ch; }

.footer-col h5 {
  font-family: var(--rb-font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rb-mid);
  font-weight: 500;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--rb-mid-light);
  font-size: 14px;
  transition: color var(--rb-dur-base) var(--rb-ease);
}
.footer-col a:hover { color: var(--rb-paper); }

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rb-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: var(--rb-mid); }
.footer-bottom .socials { display: flex; gap: 12px; }
.footer-bottom .socials a {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--rb-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rb-mid-light);
  transition: color var(--rb-dur-base) var(--rb-ease),
              border-color var(--rb-dur-base) var(--rb-ease);
}
.footer-bottom .socials a:hover { color: var(--rb-green); border-color: var(--rb-green); }

/* -----------------------------------------------------------------------------
   16. Comparison matrix (/vs)
   ----------------------------------------------------------------------------- */
.matrix-wrap {
  border-radius: var(--rb-radius-xl);
  border: 1px solid var(--rb-border);
  overflow: hidden;
  background: var(--rb-shadow);
}
.matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.matrix th, .matrix td {
  padding: 22px 24px;
  text-align: center;
  border-bottom: 1px solid var(--rb-border);
  border-right: 1px solid var(--rb-border);
  vertical-align: middle;
}
.matrix th:first-child, .matrix td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--rb-paper);
  width: 34%;
}
.matrix th {
  font-family: var(--rb-font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--rb-mid);
  background: var(--rb-steel);
  position: sticky;
  top: 0;
}
.matrix th.col-rb {
  color: var(--rb-ink);
  background: var(--rb-green);
}
.matrix td.cell-rb {
  background: rgba(22, 217, 124, 0.08);
  color: var(--rb-paper);
  font-weight: 500;
}
.matrix tr:last-child td { border-bottom: none; }
.matrix th:last-child, .matrix td:last-child { border-right: none; }
.matrix .check { color: var(--rb-green); font-weight: 600; }
.matrix .cross { color: var(--rb-mid); }

@media (max-width: 720px) {
  .matrix { font-size: 13px; }
  .matrix th, .matrix td { padding: 14px 12px; }
}

/* -----------------------------------------------------------------------------
   17. Calculator
   ----------------------------------------------------------------------------- */
.calc-shell {
  max-width: 840px;
  margin: 0 auto;
}
.calc-progress {
  height: 6px;
  background: var(--rb-steel);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 24px;
}
.calc-progress-fill {
  display: block;
  height: 100%;
  background: var(--rb-green);
  box-shadow: 0 0 16px rgba(22, 217, 124, 0.5);
  transition: width 400ms var(--rb-ease);
}
.calc-stepmeta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--rb-font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rb-mid);
  margin-bottom: 24px;
}
.calc-question {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 32px;
}
.calc-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}
.calc-option {
  background: var(--rb-shadow);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-md);
  padding: 20px 22px;
  text-align: left;
  color: var(--rb-paper);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: border-color var(--rb-dur-base) var(--rb-ease),
              background var(--rb-dur-base) var(--rb-ease),
              transform var(--rb-dur-base) var(--rb-ease);
}
.calc-option:hover {
  border-color: rgba(22, 217, 124, 0.6);
  background: var(--rb-steel);
  transform: translateY(-1px);
}
.calc-option[aria-checked="true"] {
  border-color: var(--rb-green);
  background: rgba(22, 217, 124, 0.08);
}
.calc-option .meta {
  font-family: var(--rb-font-mono);
  font-size: 12px;
  color: var(--rb-mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calc-nav { display: flex; justify-content: space-between; gap: 12px; }

.calc-result {
  text-align: center;
  padding: 64px 24px;
}
.calc-result .stat {
  font-family: var(--rb-font-mono);
  font-size: clamp(56px, 10vw, 112px);
  color: var(--rb-green);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 16px 0 12px;
}
.calc-result .range {
  color: var(--rb-mid-light);
  font-family: var(--rb-font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  margin-bottom: 32px;
}
.calc-caveat {
  color: var(--rb-mid);
  font-size: 13px;
  max-width: 60ch;
  margin: 32px auto 0;
  line-height: 1.5;
}

.calc-slider-wrap { margin-bottom: 40px; }
.calc-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--rb-steel);
  border-radius: 999px;
  outline: none;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--rb-green);
  cursor: pointer;
  box-shadow: 0 0 0 6px rgba(22, 217, 124, 0.18);
}
.calc-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--rb-green);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 0 6px rgba(22, 217, 124, 0.18);
}
.calc-slider-value {
  font-family: var(--rb-font-mono);
  color: var(--rb-green);
  font-size: 18px;
  margin-top: 12px;
  text-align: center;
}

/* -----------------------------------------------------------------------------
   18. Product page · alternating feature rows
   ----------------------------------------------------------------------------- */
.sticky-nav {
  position: sticky;
  top: 72px;
  z-index: 10;
  background: rgba(11, 14, 15, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rb-border);
}
.sticky-nav-row {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}
.sticky-nav-row::-webkit-scrollbar { display: none; }
.sticky-nav-row a {
  flex: 0 0 auto;
  padding: 8px 16px;
  font-size: 13px;
  font-family: var(--rb-font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rb-mid);
  border-radius: 6px;
  transition: color var(--rb-dur-base) var(--rb-ease);
}
.sticky-nav-row a:hover { color: var(--rb-paper); }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 96px 0;
  border-top: 1px solid var(--rb-border);
}
.feature-row:first-of-type { border-top: none; }
.feature-row.reverse > .feature-copy { order: 2; }
@media (max-width: 980px) {
  .feature-row { grid-template-columns: 1fr; padding: 64px 0; gap: 32px; }
  .feature-row.reverse > .feature-copy { order: 0; }
}
.feature-copy h2 { margin-bottom: 16px; max-width: 14ch; }
.feature-copy .lead { margin-bottom: 28px; }
.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}
.feature-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--rb-mid-light);
  font-size: 15px;
  line-height: 1.5;
}
.feature-bullets li::before {
  content: '';
  flex: 0 0 auto;
  margin-top: 7px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--rb-green);
  border-bottom: 2px solid var(--rb-green);
  transform: rotate(-45deg);
}

.integrations {
  padding: 48px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  border-top: 1px solid var(--rb-border);
  border-bottom: 1px solid var(--rb-border);
}
.integrations p {
  font-family: var(--rb-font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rb-mid);
}
.integrations-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  opacity: 0.6;
}
.integration-chip {
  font-family: var(--rb-font-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--rb-paper);
  padding: 8px 16px;
  border: 1px solid var(--rb-border);
  border-radius: 999px;
}

/* -----------------------------------------------------------------------------
   19. Pricing tiers
   ----------------------------------------------------------------------------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 980px) { .price-grid { grid-template-columns: 1fr; } }

.price-card {
  background: var(--rb-steel);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-xl);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.price-card--featured {
  border-color: var(--rb-green);
  background: linear-gradient(180deg, rgba(22, 217, 124, 0.06), var(--rb-steel) 60%);
  box-shadow: 0 0 0 1px rgba(22, 217, 124, 0.4), 0 24px 48px rgba(22, 217, 124, 0.12);
}
.price-card--featured::before {
  content: 'Most popular';
  position: absolute;
  top: -12px;
  left: 32px;
  background: var(--rb-green);
  color: var(--rb-ink);
  font-family: var(--rb-font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 6px;
}
.price-card .tier-name {
  font-family: var(--rb-font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--rb-mid);
}
.price-card .tier-price {
  font-family: var(--rb-font-mono);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--rb-paper);
  line-height: 1;
}
.price-card .tier-price .per { color: var(--rb-mid); font-size: 15px; margin-left: 4px; }
.price-card ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.price-card li { color: var(--rb-mid-light); font-size: 15px; display: flex; gap: 10px; }
.price-card li::before { content: '✓'; color: var(--rb-green); font-weight: 600; }

/* -----------------------------------------------------------------------------
   20. Resources / blog cards
   ----------------------------------------------------------------------------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .resource-grid { grid-template-columns: 1fr; } }
.resource-card {
  background: var(--rb-steel);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--rb-dur-base) var(--rb-ease),
              border-color var(--rb-dur-base) var(--rb-ease);
  min-height: 280px;
}
.resource-card:hover { transform: translateY(-4px); border-color: var(--rb-border-strong); }
.resource-card .kind {
  font-family: var(--rb-font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rb-green);
}
.resource-card h3 { font-size: 20px; letter-spacing: -0.01em; line-height: 1.25; }
.resource-card p { color: var(--rb-mid-light); font-size: 14px; margin-top: auto; }

/* -----------------------------------------------------------------------------
   21. Animations · fade-in on scroll · count-up
   ----------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--rb-ease-out), transform 700ms var(--rb-ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.pulse-svg path { filter: drop-shadow(0 0 8px rgba(22, 217, 124, 0.4)); }

/* -----------------------------------------------------------------------------
   22. Docs / About / Resources common
   ----------------------------------------------------------------------------- */
.prose { max-width: 680px; }
.prose h2 { margin: 48px 0 16px; }
.prose h3 { margin: 32px 0 12px; }
.prose p { margin: 0 0 16px; color: var(--rb-mid-light); line-height: 1.7; }

/* -----------------------------------------------------------------------------
   23. Banner / announcements
   ----------------------------------------------------------------------------- */
.banner {
  background: rgba(22, 217, 124, 0.08);
  border: 1px solid rgba(22, 217, 124, 0.3);
  color: var(--rb-paper);
  padding: 10px 24px;
  text-align: center;
  font-size: 13px;
}
.banner a { color: var(--rb-green); border-bottom: 1px dashed var(--rb-green); }

/* -----------------------------------------------------------------------------
   24. Utility
   ----------------------------------------------------------------------------- */
.mt-4  { margin-top: 16px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }
.text-center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.row-cluster { display: flex; gap: 12px; flex-wrap: wrap; }

/* -----------------------------------------------------------------------------
   25. Mobile type sizing
   ----------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .btn { width: 100%; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .nav-brand svg { height: 24px; }
}
