/* RFT App content site. See docs/BRAND-GUIDE.md before changing anything here. */
:root {
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --brand-400: #60a5fa;
  --brand-500: #1CB0F6;
  --brand-600: #0995d9;
  --brand-700: #0774a6;
  --brand-800: #065986;

  --gold-200: #fde68a;
  --gold-400: #fbbf24;
  --correct: #58CC02;
  --accent: #a855f7;

  --ink: #111827;
  --ink-mid: #4b5563;
  --ink-soft: #6b7280;
  --surface-50: #fafafa;
  --surface-100: #f4f4f5;
  --surface-200: #e4e4e7;

  --card-shadow: 0 1px 3px 0 rgb(0 0 0 / .04), 0 1px 2px -1px rgb(0 0 0 / .03);
  --card-hover: 0 4px 12px 0 rgb(0 0 0 / .08), 0 2px 4px -2px rgb(0 0 0 / .04);
  --elevated: 0 8px 24px -4px rgb(0 0 0 / .1), 0 4px 8px -4px rgb(0 0 0 / .06);

  --measure: 68ch;
  --wide: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Nunito, 'Nunito Fallback', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }

.skip { position: absolute; left: -9999px; background: var(--ink); color: #fff; padding: .7rem 1rem; z-index: 30; font-weight: 800; border-radius: 0 0 12px 0; }
.skip:focus { left: 0; top: 0; }
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--brand-500); outline-offset: 2px; border-radius: 6px;
}

/* ---------- type: Nunito black headings, gold emphasis ---------- */
h1 { font-size: clamp(1.85rem, 4.2vw, 2.75rem); line-height: 1.12; letter-spacing: -0.025em; font-weight: 900; margin: 0 0 1rem; text-wrap: balance; }
h2 { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em; margin: 0 0 .85rem; line-height: 1.22; }
h3 { font-size: 1rem; font-weight: 800; margin: 0 0 .3rem; }
h1 em, h2 em { font-style: normal; color: var(--gold-400); }
.lede { font-size: 1.0625rem; line-height: 1.65; color: var(--ink-mid); margin: 0; max-width: 58ch; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 800; }
a { color: var(--brand-700); font-weight: 600; text-underline-offset: 2px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: .8rem 1.5rem;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--surface-200);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 900; font-size: 1.0625rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }
.site-header nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.site-header nav a { color: var(--ink-mid); text-decoration: none; font-size: .8125rem; font-weight: 700; }
.site-header nav a:hover { color: var(--brand-600); }
.site-header nav a[aria-current="page"] { color: var(--brand-600); }
.site-header nav a.cta {
  background: var(--brand-500); color: #fff;
  padding: .5rem 1.1rem; border-radius: 999px; font-weight: 800; font-size: .8125rem;
  box-shadow: 0 4px 0 0 var(--brand-700); transition: transform .1s ease, box-shadow .1s ease;
}
.site-header nav a.cta:hover { background: var(--brand-600); }
.site-header nav a.cta:active { transform: translateY(3px); box-shadow: 0 1px 0 0 var(--brand-700); }

/* ---------- hero: brand gradient band with a wave base ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 4rem 1.5rem 6rem;
  background: linear-gradient(180deg, var(--brand-500) 0%, var(--brand-500) 55%, var(--brand-600) 100%);
  color: #fff;
}
/* Scattered relation cards, the same motif the app's landing page uses. */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(255,255,255,.16) 0 62px, transparent 63px),
    radial-gradient(circle at 88% 16%, rgba(255,255,255,.13) 0 54px, transparent 55px),
    radial-gradient(circle at 76% 74%, rgba(255,255,255,.10) 0 70px, transparent 71px),
    radial-gradient(circle at 18% 78%, rgba(255,255,255,.12) 0 48px, transparent 49px);
}
/* Wave divider, matching the SVG curve on the app's hero. */
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px;
  background: #fff;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, transparent 68%, #000 69%);
  mask-image: radial-gradient(120% 100% at 50% 0%, transparent 68%, #000 69%);
}
.hero-inner { max-width: var(--wide); margin: 0 auto; position: relative; z-index: 2; text-align: center; }
.hero h1 { color: #fff; max-width: 22ch; margin-inline: auto; }
.hero .lede { color: rgba(255,255,255,.9); margin-inline: auto; text-align: center; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.9rem; justify-content: center; }

.eyebrow {
  display: inline-flex; align-items: center; margin: 0 0 1.1rem;
  font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-800); background: var(--brand-50);
  padding: .4rem .85rem; border-radius: 999px;
}
.hero .eyebrow { color: #fff; background: rgba(255,255,255,.18); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8rem 1.7rem; border-radius: 999px;
  font-size: .9375rem; font-weight: 800; text-decoration: none; letter-spacing: -0.01em;
  background: #fff; color: var(--brand-700);
  box-shadow: var(--elevated); transition: transform .12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-secondary { background: rgba(255,255,255,.14); color: #fff; box-shadow: none; }
.hero-actions .btn-secondary:hover { background: rgba(255,255,255,.22); }

/* ---------- layout ---------- */
main { padding: 0 1.5rem 4.5rem; }
article { max-width: var(--measure); margin: 0 auto; }
article.wide { max-width: var(--wide); }
.page-head { max-width: var(--measure); margin: 0 auto; padding: 3rem 0 0; }
article.wide .page-head { max-width: var(--wide); }

.block { padding-top: 2.6rem; margin-top: 2.6rem; border-top: 1px solid var(--surface-200); }
.block:first-of-type { border-top: 0; }
.block-intro { color: var(--ink-mid); margin-bottom: 1.4rem; max-width: 60ch; }
.rule-list { margin: 0 0 1rem; padding-left: 0; list-style: none; }
.rule-list li { position: relative; margin-bottom: .65rem; padding-left: 1.6rem; }
.rule-list li::before {
  content: ''; position: absolute; left: 0; top: .5em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-50);
}

/* ---------- definition callout: the passage AI engines lift ---------- */
.definition {
  margin: 2rem 0 0; padding: 1.3rem 1.45rem;
  background: var(--brand-50); border: 2px solid #cfe6f7;
  border-radius: 20px;
}
.definition-term { margin: 0 0 .35rem; font-size: .6875rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; color: var(--brand-800); }
.definition-body { margin: 0; color: var(--ink); font-size: .9375rem; }

.note {
  margin: 1.7rem 0 0; padding: 1rem 1.2rem;
  background: var(--surface-50); border: 2px solid var(--surface-200);
  border-radius: 16px; font-size: .875rem; color: var(--ink-mid);
}

/* ---------- cards ---------- */
.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); }
.card {
  display: block; padding: 1.25rem 1.3rem;
  background: #fff; border: 2px solid rgba(228,228,231,.7); border-radius: 20px;
  box-shadow: var(--card-shadow); text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--card-hover); border-color: #cfe6f7; }
.card-mark {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; height: 30px; padding: 0 .55rem; margin-bottom: .8rem;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  color: #fff; border-radius: 12px;
  font-size: .8125rem; font-weight: 900; letter-spacing: -0.01em;
}
.card h3 { margin-bottom: .3rem; }
.card p { font-size: .8125rem; color: var(--ink-soft); margin: 0; line-height: 1.55; font-weight: 600; }

/* Per-frame accents on the mark chip */
.a-blue .card-mark { background: linear-gradient(135deg, #60a5fa, #0995d9); }
.a-slate .card-mark { background: linear-gradient(135deg, #94a3b8, #475569); }
.a-purple .card-mark { background: linear-gradient(135deg, #c084fc, #9333ea); }
.a-gold .card-mark { background: linear-gradient(135deg, #fbbf24, #d97706); }
.a-teal .card-mark { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.a-green .card-mark { background: linear-gradient(135deg, #86e01e, #46a302); }
.a-indigo .card-mark { background: linear-gradient(135deg, #818cf8, #4f46e5); }
.a-coral .card-mark { background: linear-gradient(135deg, #fb8b85, #e0453c); }
.a-amber .card-mark { background: linear-gradient(135deg, #fcd34d, #b45309); }

/* ---------- steps ---------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.5rem 3.3rem; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -3px;
  width: 38px; height: 38px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  color: #fff; font-size: .9375rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px -4px rgb(28 176 246 / .45);
}
.steps li:not(:last-child)::after {
  content: ''; position: absolute; left: 18px; top: 42px; bottom: 4px;
  width: 2px; background: linear-gradient(180deg, var(--brand-200, #bfdbfe), transparent);
}
.steps p { font-size: .875rem; color: var(--ink-soft); margin: 0; font-weight: 600; }

/* ---------- terms + faq ---------- */
.terms dt, .faq dt { font-weight: 900; font-size: .9375rem; margin-top: 1.6rem; scroll-margin-top: 5rem; }
.terms dt:first-child, .faq dt:first-child { margin-top: 0; }
.terms dd, .faq dd { margin: .35rem 0 0; color: var(--ink-soft); font-size: .9375rem; padding-left: 1rem; border-left: 3px solid var(--brand-100); font-weight: 600; }

/* ---------- cta band ---------- */
.cta-band {
  margin-top: 3rem; padding: 2.5rem 1.75rem;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  border-radius: 26px; color: #fff; text-align: center;
  box-shadow: var(--elevated);
}
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.cta-band p { color: rgba(255,255,255,.88); font-size: .9375rem; max-width: 46ch; margin: 0 auto 1.4rem; }
.cta-band .btn { background: #fff; color: var(--brand-700); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--surface-200); background: var(--surface-50); padding: 3rem 1.5rem; font-size: .8125rem; color: var(--ink-soft); }
.footer-inner { max-width: var(--wide); margin: 0 auto; }
.footer-cols { display: grid; gap: 1.85rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 2.1rem; }
.footer-cols h2 { font-size: .6875rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink); margin-bottom: .65rem; font-weight: 900; }
.footer-cols a { display: block; color: var(--ink-soft); text-decoration: none; padding: .22rem 0; font-weight: 600; }
.footer-cols a:hover { color: var(--brand-600); }
.footer-legal { border-top: 1px solid var(--surface-200); padding-top: 1.6rem; }
.footer-legal .disclaimer { font-size: .75rem; line-height: 1.6; max-width: 76ch; }

@media (max-width: 620px) {
  .hero { padding: 2.75rem 1.25rem 4.5rem; }
  main { padding: 0 1.25rem 3rem; }
  .page-head { padding-top: 2.25rem; }
  .site-header { padding: .7rem 1.25rem; }
  .site-header nav { gap: .9rem; }
  .card-grid { grid-template-columns: 1fr; }
}

/* Landing bands are full-bleed; each band supplies its own gutters. */
main.landing { padding: 0; }

/* ---------- tall hero with scattered relation cards ---------- */
.hero-lg { padding: 5rem 1.5rem 7.5rem; min-height: 62vh; }
.hero-lg .hero-inner { max-width: 860px; }
.fcards { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.fcard {
  position: absolute; display: flex; flex-direction: column; gap: .1rem;
  padding: .5rem .75rem; border-radius: 14px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  color: #fff; white-space: nowrap;
}
.fcard-type { font-size: .5rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.fcard-rel { font-size: .8125rem; font-weight: 800; opacity: .9; }
.scroll-cue { margin-top: 1.6rem; }
.scroll-cue a { color: rgba(255,255,255,.85); font-size: .8125rem; font-weight: 800; text-decoration: none; }
.scroll-cue a::after { content: ' ↓'; }

/* ---------- bands ---------- */
.band { padding: 3.5rem 1.5rem; }
.band-tint { background: var(--surface-50); }
.band-inner { max-width: var(--wide); margin: 0 auto; }
.band-inner.narrow { max-width: 760px; }
.band-center { text-align: center; }
.band-center .card, .band-center .steps li, .band-center .faq dt, .band-center .faq dd { text-align: left; }
.band h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
.band-lede { color: var(--ink-mid); max-width: 58ch; margin: 0 auto 1.9rem; font-size: 1rem; }
.band-links { margin-top: 1.6rem; font-size: .875rem; }

/* ---------- stats ---------- */
.stats { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); list-style: none; margin: 0; padding: 0; text-align: center; }
.stat-n { display: block; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 900; letter-spacing: -0.03em; color: var(--brand-600); line-height: 1.1; }
.stat-l { display: block; font-size: .8125rem; font-weight: 700; color: var(--ink-soft); margin-top: .2rem; }

.steps-left { text-align: left; max-width: 620px; margin-inline: auto; }
.faq-left { text-align: left; }

@media (max-width: 760px) {
  .fcards { display: none; }
  .hero-lg { padding: 3rem 1.25rem 5rem; min-height: 0; }
  .band { padding: 2.5rem 1.25rem; }
}
