/* Ryftpoint marketing site — Plasma palette (royal purple).
   Tokens mirror ryftpoint/brand/tokens.css. Dark default + manual toggle. */

/* ---- Tokens ---- */
:root {
  --rp-bg:        #0C0A14;
  --rp-surface:   #181527;
  --rp-surface-2: #201B33;
  --rp-border:    #2A2440;
  --rp-accent:        #6A0DAD;
  --rp-accent-2:      #7C3AED;
  --rp-accent-bright: #A855F7;
  --rp-text:   #ECEAF5;
  --rp-muted:  #A99CC2;
  --rp-on-accent: #FFFFFF;

  /* Severity — FIXED, never themed */
  --sev-crit: #E5484D;
  --sev-high: #F76808;
  --sev-med:  #F5D90A;
  --sev-low:  #30A46C;

  --rp-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rp-radius: 14px;
  --rp-maxw: 1120px;
}

.theme-light {
  --rp-bg:#F4F1FA; --rp-surface:#FFFFFF; --rp-surface-2:#F0EBFA; --rp-border:#E3DAF4;
  --rp-accent:#6A0DAD; --rp-accent-2:#7217C4; --rp-accent-bright:#8B2FE0;
  --rp-text:#1A0E2E; --rp-muted:#6B5B86;
}
.theme-dark {
  --rp-bg:#0C0A14; --rp-surface:#181527; --rp-surface-2:#201B33; --rp-border:#2A2440;
  --rp-accent:#6A0DAD; --rp-accent-2:#7C3AED; --rp-accent-bright:#A855F7;
  --rp-text:#ECEAF5; --rp-muted:#A99CC2;
}
/* No-JS fallback: honor OS preference when no manual class wins */
@media (prefers-color-scheme: light) {
  :root:not(.theme-dark) {
    --rp-bg:#F4F1FA; --rp-surface:#FFFFFF; --rp-surface-2:#F0EBFA; --rp-border:#E3DAF4;
    --rp-accent-2:#7217C4; --rp-accent-bright:#8B2FE0;
    --rp-text:#1A0E2E; --rp-muted:#6B5B86;
  }
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--rp-font);
  background: var(--rp-bg);
  color: var(--rp-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--rp-accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--rp-maxw); margin: 0 auto; padding: 0 24px; }

:focus-visible {
  outline: 3px solid var(--rp-accent-bright);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--rp-accent); color: var(--rp-on-accent);
  padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; text-decoration: none; }

/* ---- Theme-aware logo swap ---- */
.logo-dark, .logo-light { display: none; }
.theme-dark .logo-dark { display: block; }
.theme-light .logo-light { display: block; }
@media (prefers-color-scheme: light) {
  :root:not(.theme-dark):not(.theme-light) .logo-light { display: block; }
  :root:not(.theme-dark):not(.theme-light) .logo-dark { display: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--rp-accent);
  color: var(--rp-on-accent);
  border-color: var(--rp-accent);
}
.btn-primary:hover { background: var(--rp-accent-2); border-color: var(--rp-accent-2); }
.btn-ghost {
  background: transparent;
  color: var(--rp-text);
  border-color: var(--rp-border);
}
.btn-ghost:hover { border-color: var(--rp-accent-bright); }
.btn-outline {
  background: transparent;
  color: var(--rp-accent-bright);
  border-color: var(--rp-accent);
}
.btn-outline:hover { background: var(--rp-accent); color: var(--rp-on-accent); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--rp-bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rp-border);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; }
.brand .logo { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.site-nav a { color: var(--rp-muted); font-weight: 500; }
.site-nav a:hover { color: var(--rp-text); text-decoration: none; }
.nav-signin {
  color: var(--rp-text) !important;
  border: 1px solid var(--rp-border);
  padding: 8px 16px; border-radius: 8px;
}
.nav-signin:hover { border-color: var(--rp-accent-bright); }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--rp-border);
  background: var(--rp-surface);
  color: var(--rp-text);
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--rp-accent-bright); }
.theme-toggle svg { display: none; }
.theme-dark .theme-toggle .icon-sun { display: block; }
.theme-light .theme-toggle .icon-moon { display: block; }

/* ---- Hero ---- */
.hero { padding: 72px 0 40px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--rp-accent-bright);
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.1rem); font-weight: 800; }
.lede {
  font-size: 1.18rem; color: var(--rp-muted);
  margin: 22px 0 32px; max-width: 34em;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Findings visual */
.hero-visual { display: flex; justify-content: center; }
.scan-card {
  width: 100%; max-width: 420px;
  background: var(--rp-surface);
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius);
  padding: 20px;
  box-shadow: 0 24px 60px -30px rgba(106,13,173,.55);
}
.scan-card-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--rp-border);
}
.scan-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sev-low); flex: none; }
.scan-title { font-weight: 600; font-size: .95rem; }
.scan-status {
  margin-left: auto; font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--rp-accent-bright);
}
.findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.findings li {
  display: flex; align-items: center; gap: 12px;
  background: var(--rp-surface-2);
  border: 1px solid var(--rp-border);
  border-radius: 10px;
  padding: 10px 12px;
}
.sev {
  flex: none;
  font-size: .68rem; font-weight: 700; letter-spacing: .05em;
  padding: 4px 8px; border-radius: 6px;
  color: #10070A;
}
.sev-crit { background: var(--sev-crit); color: #fff; }
.sev-high { background: var(--sev-high); color: #190a02; }
.sev-med  { background: var(--sev-med);  color: #221d00; }
.sev-low  { background: var(--sev-low);  color: #04150c; }
.f-name { font-size: .9rem; color: var(--rp-text); }
.f-tag {
  margin-left: auto; flex: none;
  font-size: .72rem; color: var(--rp-muted);
  font-variant-numeric: tabular-nums;
}
.scan-meter {
  margin-top: 16px; height: 6px; border-radius: 99px;
  background: var(--rp-surface-2); overflow: hidden;
}
.scan-meter-fill {
  display: block; height: 100%; width: 68%;
  background: linear-gradient(90deg, var(--rp-accent), var(--rp-accent-bright));
}

/* ---- Sections ---- */
.section { padding: 76px 0; }
.section-alt { background: var(--rp-surface); border-block: 1px solid var(--rp-border); }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; text-align: center; }
.section-sub {
  text-align: center; color: var(--rp-muted);
  font-size: 1.08rem; margin: 14px auto 48px; max-width: 42em;
}
.illustrative { color: var(--rp-muted); font-size: .9em; opacity: .85; }

/* ---- Feature cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: var(--rp-surface);
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius);
  padding: 26px 22px;
}
.section-alt .card { background: var(--rp-surface-2); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 11px;
  background: color-mix(in srgb, var(--rp-accent) 18%, transparent);
  color: var(--rp-accent-bright);
  margin-bottom: 16px;
}
.card h3, .trust-item h3, .step h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.card p, .trust-item p, .step p { color: var(--rp-muted); font-size: .96rem; }

/* ---- Steps ---- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  counter-reset: step;
}
.step {
  background: var(--rp-surface-2);
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius);
  padding: 28px 24px;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--rp-accent); color: var(--rp-on-accent);
  font-weight: 800; font-size: 1.1rem; margin-bottom: 16px;
}

/* ---- Pricing ---- */
.tiers {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  align-items: start;
}
.tier {
  position: relative;
  background: var(--rp-surface);
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.tier-featured {
  border-color: var(--rp-accent);
  box-shadow: 0 0 0 1px var(--rp-accent), 0 24px 60px -34px rgba(106,13,173,.6);
}
.tier-flag {
  position: absolute; top: -12px; left: 24px;
  background: var(--rp-accent); color: var(--rp-on-accent);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 99px;
}
.tier-name { font-size: 1.15rem; font-weight: 700; }
.tier-price { display: flex; align-items: baseline; gap: 4px; }
.tier-price .amount { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; }
.tier-price .per { color: var(--rp-muted); font-weight: 500; }
.tier-targets { color: var(--rp-accent-bright); font-weight: 600; font-size: .95rem; }
.tier-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; }
.tier-feats li {
  color: var(--rp-muted); font-size: .94rem;
  padding-left: 24px; position: relative;
}
.tier-feats li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 10px; height: 6px;
  border-left: 2px solid var(--rp-accent-bright);
  border-bottom: 2px solid var(--rp-accent-bright);
  transform: rotate(-45deg);
}
.tier .btn { text-align: center; margin-top: 4px; }

/* ---- Trust ---- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.trust-item { text-align: left; }

/* ---- Closing CTA ---- */
.cta-band-inner {
  text-align: center;
  background: linear-gradient(135deg, var(--rp-surface-2), var(--rp-surface));
  border: 1px solid var(--rp-border);
  border-radius: 20px;
  padding: 52px 28px;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; }
.cta-band p { color: var(--rp-muted); margin: 14px 0 26px; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--rp-border); padding: 36px 0; }
.footer-inner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--rp-muted); font-size: .95rem; }
.footer-brand strong { color: var(--rp-text); font-weight: 700; }
.footer-brand .logo { height: 32px; width: 32px; }
.footer-links { display: flex; gap: 22px; margin-left: auto; }
.footer-links a { color: var(--rp-muted); font-weight: 500; }
.footer-links a:hover { color: var(--rp-text); text-decoration: none; }
.footer-copy { color: var(--rp-muted); font-size: .9rem; width: 100%; margin-top: 8px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 24px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 560px) {
  .site-nav { gap: 16px; }
  .site-nav a:not(.nav-signin) { display: none; }
  .cards, .tiers { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
