/* ============================================================
   RIPLEY — Active Security for the AI-built web
   Design system: dark editorial + neon green + mono signals
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  /* Surfaces */
  --bg:        #050807;
  --bg-1:      #0a0f0d;
  --bg-2:      #0f1612;
  --bg-3:      #161f1a;
  --bg-card:   #0c1310;
  --bg-elev:   #131a16;

  /* Borders / dividers */
  --border:        rgba(220, 255, 235, 0.06);
  --border-mid:    rgba(220, 255, 235, 0.10);
  --border-strong: rgba(0, 255, 157, 0.22);
  --border-brand:  rgba(0, 255, 157, 0.45);

  /* Foreground */
  --fg:        #e8f3ee;
  --fg-mid:    #a4b3ad;
  --fg-muted:  #6b7a73;
  --fg-dim:    #4a554f;

  /* Brand */
  --brand:        #00ff9d;
  --brand-bright: #4dffba;
  --brand-deep:   #00b86f;
  --brand-bg:     rgba(0, 255, 157, 0.08);
  --brand-bg-2:   rgba(0, 255, 157, 0.14);
  --brand-glow:   0 0 36px rgba(0, 255, 157, 0.25);

  /* Severity */
  --sev-critical: #ff4d6d;
  --sev-high:     #ff7a3a;
  --sev-medium:   #ffd24a;
  --sev-low:      #5bb3ff;
  --sev-info:     #a0a8a3;

  /* Type */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* Easing */
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-mono);
}

::selection { background: var(--brand); color: #001008; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }

/* ============================================================
   Background system — subtle grid + radial vignette
   ============================================================ */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(0, 255, 157, 0.07), transparent 60%),
    radial-gradient(800px 600px at 100% 100%, rgba(0, 255, 157, 0.04), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 157, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 157, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

main, nav, footer { position: relative; z-index: 1; }

/* ============================================================
   Layout
   ============================================================ */

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

.section {
  padding: 120px 0;
  position: relative;
}

.section--tight { padding: 80px 0; }

.section__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 72px;
  max-width: 720px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 10px var(--brand);
}

.section__title {
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

.section__lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-mid);
  margin: 0;
  max-width: 580px;
  text-wrap: pretty;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 160ms var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--brand);
  color: #001008;
  font-weight: 600;
}

.btn--primary:hover {
  background: var(--brand-bright);
  box-shadow: var(--brand-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-mid);
}

.btn--ghost:hover {
  border-color: var(--border-strong);
  background: var(--brand-bg);
}

.btn--lg { height: 52px; padding: 0 24px; font-size: 15px; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 6px; }

/* ============================================================
   Code / mono detail
   ============================================================ */

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: -0.005em;
}

.kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--border-mid);
  color: var(--fg-mid);
}

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: rgba(5, 8, 7, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.nav__brand-mark {
  width: 22px; height: 22px;
  position: relative;
  display: inline-block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  color: var(--fg-mid);
}

.nav__links a {
  transition: color 160ms var(--ease);
}
.nav__links a:hover { color: var(--fg); }

.nav__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 880px) {
  .nav__links { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: 130px 0 100px;
  text-align: center;
  position: relative;
}

.hero__content {
  max-width: 720px;
  margin: 0 auto;
}

.hero .scan-input { margin: 0 auto; }
.hero .hero__hint { justify-content: center; }

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--brand-bg);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--brand);
}

.hero__chip-dot {
  width: 14px; height: 14px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 12px var(--brand), 0 0 0 4px rgba(0, 255, 157, 0.12);
}

.hero__title {
  font-size: clamp(48px, 6.5vw, 88px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 28px 0 24px;
  text-wrap: balance;
}

.hero__title em {
  font-style: normal;
  color: var(--brand);
  font-weight: 500;
}

.hero__lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--fg-mid);
  max-width: 540px;
  margin: 0 auto 36px;
  font-weight: 600;
  text-wrap: pretty;
}

/* URL input — the centerpiece */
.scan-input {
  display: flex;
  align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--border-mid);
  border-radius: 12px;
  padding: 6px;
  transition: all 200ms var(--ease);
  max-width: 560px;
}

.scan-input:focus-within {
  border-color: var(--border-brand);
  box-shadow: 0 0 0 4px var(--brand-bg), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.scan-input__prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px 0 14px;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.scan-input__field {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 12px 0;
  min-width: 0;
}

.scan-input__field::placeholder {
  color: var(--fg-muted);
}

.scan-input__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--brand);
  color: #001008;
  font-weight: 600;
  font-size: 14px;
  transition: all 160ms var(--ease);
  flex-shrink: 0;
}

.scan-input__btn:hover {
  background: var(--brand-bright);
  box-shadow: var(--brand-glow);
}

.scan-input__btn:disabled {
  background: var(--bg-3);
  color: var(--fg-muted);
  cursor: not-allowed;
  box-shadow: none;
}

.hero__hint {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
}

.hero__hint-divider {
  width: 4px; height: 4px;
  border-radius: 999px;
  background: var(--fg-dim);
}

/* ============================================================
   Hero — scanner panel (right side)
   ============================================================ */

.scanner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  height: 560px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 255, 157, 0.04);
}

.scanner__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(0, 255, 157, 0.03), transparent);
}

.scanner__dots {
  display: flex;
  gap: 6px;
}
.scanner__dots span {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--bg-3);
}

.scanner__url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-mid);
  display: flex;
  align-items: center;
  gap: 8px;
}

.scanner__url-status {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand);
}

.scanner__body {
  flex: 1;
  padding: 20px 18px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
}

.scanner__body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, var(--bg-card));
  pointer-events: none;
  z-index: 2;
}

.scan-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--fg-mid);
}

.scan-line__time {
  color: var(--fg-dim);
  flex-shrink: 0;
  width: 56px;
}
.scan-line__tag {
  flex-shrink: 0;
  width: 60px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.scan-line__tag--ok    { color: var(--brand); }
.scan-line__tag--info  { color: var(--sev-low); }
.scan-line__tag--warn  { color: var(--sev-medium); }
.scan-line__tag--high  { color: var(--sev-high); }
.scan-line__tag--crit  { color: var(--sev-critical); }
.scan-line__msg { color: var(--fg-mid); }
.scan-line__msg b { color: var(--fg); font-weight: 500; }
.scan-line__msg code {
  font-family: var(--font-mono);
  background: var(--bg-3);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--brand);
}

/* Scanner — results state */
.scanner__results {
  position: absolute;
  inset: 50px 0 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-card);
  z-index: 3;
  overflow-y: auto;
  visibility: hidden;
}

.scanner__results--visible {
  visibility: visible;
}

.scanner__summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}

.sev-card {
  padding: 12px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sev-card__count {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.sev-card__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.sev-card--crit { border-color: rgba(255, 77, 109, 0.3); }
.sev-card--crit .sev-card__count { color: var(--sev-critical); }
.sev-card--high { border-color: rgba(255, 122, 58, 0.25); }
.sev-card--high .sev-card__count { color: var(--sev-high); }
.sev-card--med  { border-color: rgba(255, 210, 74, 0.2); }
.sev-card--med  .sev-card__count { color: var(--sev-medium); }
.sev-card--low  .sev-card__count { color: var(--sev-low); }

.finding {
  padding: 14px;
  border-radius: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.finding__sev {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 3px;
}
.finding__sev--crit { background: rgba(255, 77, 109, 0.16); color: var(--sev-critical); }
.finding__sev--high { background: rgba(255, 122, 58, 0.14); color: var(--sev-high); }
.finding__sev--med  { background: rgba(255, 210, 74, 0.12); color: var(--sev-medium); }
.finding__sev--low  { background: rgba(91, 179, 255, 0.12); color: var(--sev-low); }

.finding__cve {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  margin-left: auto;
}

.finding__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  margin: 0;
}

.finding__loc {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
}
.finding__loc code { color: var(--brand); }

/* ============================================================
   Stats strip
   ============================================================ */

.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (max-width: 900px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

.stat {
  padding: 8px 24px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat:first-child { border-left: none; padding-left: 0; }

.stat__num {
  font-size: clamp(40px, 4.4vw, 56px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--fg);
}

.stat__num em {
  font-style: normal;
  color: var(--brand);
}

.stat__label {
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg-mid);
  text-wrap: pretty;
}

.stat__source {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  margin-top: auto;
}

/* ============================================================
   "Built for" — audience grid
   ============================================================ */

.audience {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .audience { grid-template-columns: repeat(2, 1fr); }
}

.audience__cell {
  background: var(--bg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 220px;
  transition: background 200ms var(--ease);
}

.audience__cell:hover { background: var(--bg-1); }

.audience__platform {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand);
}

.audience__title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.15;
  text-wrap: balance;
}

.audience__desc {
  font-size: 14px;
  color: var(--fg-mid);
  line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
}

/* ============================================================
   How it works
   ============================================================ */

.how-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 1024px) {
  .how-layout { grid-template-columns: 1fr; }
}

.how {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.step__title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.step__desc {
  font-size: 14px;
  color: var(--fg-mid);
  line-height: 1.6;
  margin: 0;
  text-wrap: pretty;
}

.step__visual {
  margin-top: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-mid);
  min-height: 110px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.step__visual code { color: var(--brand); }

/* Scanner inside How it works */
.how__demo {
  max-width: 680px;
  margin: 0 auto 72px;
}

.how__demo .scanner {
  height: 420px;
}

/* ============================================================
   Report preview
   ============================================================ */

.report {
  display: grid;
  grid-template-columns: 0.95fr 1.1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 980px) {
  .report { grid-template-columns: 1fr; gap: 40px; }
}

.report__mock {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.report__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}

.report__head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-mid);
}

.report__head-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--brand-bg);
  color: var(--brand);
  padding: 3px 7px;
  border-radius: 3px;
}

.report__body { padding: 22px; }

.report__sevbar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-3);
  margin-bottom: 18px;
}
.report__sevbar > span { display: block; height: 100%; }

.report__sevlegend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mid);
  margin-bottom: 20px;
}

.report__sevlegend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.report__sevlegend i {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 2px;
}

.report__finding {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-elev);
}

.report__finding-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.report__finding-title {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.report__finding-cve {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  margin-left: auto;
}

.report__finding-code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: var(--bg);
  border-radius: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  color: var(--fg-mid);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.55;
}

.report__finding-code .ln-bad   { color: var(--sev-critical); }
.report__finding-code .ln-good  { color: var(--brand); }
.report__finding-code .ln-com   { color: var(--fg-dim); }
.report__finding-code .ln-num   { color: var(--fg-dim); margin-right: 14px; user-select: none; }

.report__finding-fix {
  font-size: 12.5px;
  color: var(--fg-mid);
  line-height: 1.55;
}
.report__finding-fix b { color: var(--brand); font-weight: 500; }

/* ============================================================
   Pricing
   ============================================================ */

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .pricing { grid-template-columns: 1fr; }
}

.plan {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.plan--featured {
  border-color: var(--border-strong);
  background:
    radial-gradient(600px 200px at 50% -100px, var(--brand-bg-2), transparent),
    var(--bg-card);
  box-shadow: 0 0 0 1px rgba(0, 255, 157, 0.05), 0 30px 80px rgba(0, 0, 0, 0.35);
}

.plan__badge {
  position: absolute;
  top: 0; right: 24px;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--brand);
  color: #001008;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}

.plan__name {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 4px 0 8px;
}
.plan__price-num {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}
.plan__price-per {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
}

.plan__tagline {
  font-size: 14px;
  color: var(--fg-mid);
  line-height: 1.55;
  margin: 0;
  min-height: 44px;
}

.plan__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.plan__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--fg-mid);
  line-height: 1.5;
}

.plan__features li::before {
  content: "";
  width: 14px; height: 14px;
  background: var(--brand-bg);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2.5 6L5 8.5L9.5 3.5' stroke='%2300ff9d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

.plan__btn { margin-top: auto; width: 100%; }

/* ============================================================
   Comparison table
   ============================================================ */

.compare {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
}

.compare__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.compare__row:last-child { border-bottom: none; }

.compare__row--head {
  background: var(--bg-elev);
}

.compare__cell {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--fg-mid);
  border-left: 1px solid var(--border);
}

.compare__cell:first-child {
  border-left: none;
  color: var(--fg);
  font-weight: 500;
}

.compare__row--head .compare__cell {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 20px;
}

.compare__cell--ripley {
  background: var(--brand-bg);
  color: var(--brand);
  font-weight: 500;
}

.compare__row--head .compare__cell--ripley {
  background: var(--brand-bg-2);
  color: var(--brand);
}

.compare__check {
  display: inline-block;
  width: 18px; height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'><path d='M4 9.5L7.5 13L14 6' stroke='%2300ff9d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
}
.compare__x {
  display: inline-block;
  color: var(--fg-dim);
  font-family: var(--font-mono);
}
.compare__partial {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
}

@media (max-width: 900px) {
  .compare { display: none; }
  .compare-mobile { display: block; }
}

@media (min-width: 901px) {
  .compare-mobile { display: none; }
}

/* ============================================================
   FAQ
   ============================================================ */

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--border);
}

.faq__item {
  background: var(--bg-card);
  cursor: pointer;
  transition: background 160ms var(--ease);
}

.faq__item:hover { background: var(--bg-elev); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
}

.faq__icon {
  width: 22px; height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 20px;
  font-weight: 300;
  transition: transform 200ms var(--ease);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq__item--open .faq__icon { transform: rotate(45deg); }

.faq__a {
  padding: 0 28px;
  font-size: 14px;
  color: var(--fg-mid);
  line-height: 1.65;
  overflow: hidden;
  max-height: 0;
  transition: max-height 280ms var(--ease), padding 280ms var(--ease);
  text-wrap: pretty;
}

.faq__item--open .faq__a {
  max-height: 240px;
  padding: 0 28px 22px;
}

/* ============================================================
   Final CTA
   ============================================================ */

.finale {
  text-align: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.finale::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 50% 50%, var(--brand-bg-2), transparent 70%);
  pointer-events: none;
}

.finale__title {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 24px;
  text-wrap: balance;
  position: relative;
}

.finale__sub {
  font-size: 18px;
  color: var(--fg-mid);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.5;
  position: relative;
}

.finale .scan-input { margin: 0 auto; position: relative; }

/* ============================================================
   Footer
   ============================================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  position: relative;
  z-index: 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

@media (max-width: 720px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

.footer__brand-tag {
  font-size: 13px;
  color: var(--fg-mid);
  line-height: 1.55;
  max-width: 280px;
  margin: 12px 0 0;
}

.footer__col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 16px;
  font-weight: 500;
}

.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col a {
  color: var(--fg-mid);
  font-size: 13.5px;
  transition: color 160ms var(--ease);
}

.footer__col a:hover { color: var(--brand); }

.footer__bot {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-dim);
}

/* ============================================================
   Logo mark (the "R" with corner brackets)
   ============================================================ */

.r-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  color: var(--brand);
  flex-shrink: 0;
}

.r-mark--lg { width: 28px; height: 28px; }
