/* Marketing chrome on top of tokens.css. Light ground. No cyan-on-dark. */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Public+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; color-scheme: light; }

body {
  font-family: var(--rf-font-sans);
  font-size: var(--rf-body);
  line-height: 1.7;
  background: var(--rf-page);
  color: var(--rf-text);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rf-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.rf-cite, .citation, .cite, .cfr, code, kbd {
  font-family: var(--rf-font-mono);
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--rf-page) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rf-border);
}
.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--rf-text);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo img { width: 36px; height: 36px; object-fit: contain; }
.nav-mid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}
.nav-mid a {
  color: var(--rf-text-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.nav-mid a:hover { color: var(--rf-accent); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--rf-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.nav-cta:hover { text-decoration: none; filter: brightness(1.05); }
.nav-login { color: var(--rf-text); font-weight: 600; font-size: 14px; }

/* ── Layout ── */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}
.section {
  padding: var(--rf-section-y) 0;
}
.stag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rf-accent);
  margin-bottom: 16px;
}
h1, .h1 {
  font-size: var(--rf-display);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--rf-text);
}
h2, .h2 {
  font-size: var(--rf-title);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin-bottom: 16px;
}
.lead, .hero-sub {
  font-size: var(--rf-lead);
  line-height: 1.55;
  color: var(--rf-text-muted);
  max-width: 40rem;
}
.muted { color: var(--rf-text-muted); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-solid { background: var(--rf-accent); color: #fff; }
.btn-ghost {
  background: var(--rf-surface);
  color: var(--rf-text);
  border-color: var(--rf-border);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ── Hero finding (severity color ONLY here) ── */
.hero { padding: 80px 0 48px; }
.hero-finding {
  margin-top: 56px;
  width: 100%;
  background: var(--rf-surface);
  border: 1px dashed var(--rf-border);
  border-radius: 12px;
  display: grid;
  grid-template-columns: var(--rf-cite-col) 1fr;
  min-height: 160px;
}
.hero-finding[data-placeholder="HERO_FINDING"] {
  border-style: dashed;
}
.hero-finding-cite {
  padding: 20px 16px 20px 20px;
  border-right: 1px solid var(--rf-border);
}
.hero-finding-cite button.rf-cite {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  color: var(--rf-accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.45;
}
.hero-finding-cite button.rf-cite:hover { text-decoration: underline; }
.rf-cite-passage {
  display: none;
  margin-top: 12px;
  font-family: var(--rf-font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--rf-text-muted);
}
.rf-cite-passage.open { display: block; }
.rf-cite-meta {
  margin-top: 10px;
  font-size: 12px;
  color: var(--rf-text-muted);
}
.hero-finding-body {
  padding: 20px 28px;
  border-left: 3px solid var(--rf-border);
}
.hero-finding .rf-sev {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--rf-text-muted);
}
/* Severity tokens apply only inside .hero-finding after a real finding is dropped in. */
.hero-finding[data-severity="HIGH"] .hero-finding-body { border-left-color: var(--rf-high); }
.hero-finding[data-severity="HIGH"] .rf-sev { color: var(--rf-high); }
.hero-finding[data-severity="MEDIUM"] .hero-finding-body { border-left-color: var(--rf-medium); }
.hero-finding[data-severity="MEDIUM"] .rf-sev { color: var(--rf-medium); }
.hero-finding[data-severity="LOW"] .hero-finding-body { border-left-color: var(--rf-low); }
.hero-finding[data-severity="LOW"] .rf-sev { color: var(--rf-low); }
.finding-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rf-text-muted);
  margin-bottom: 6px;
}
.finding-slot {
  font-family: var(--rf-font-mono);
  font-size: 13px;
  color: var(--rf-text-muted);
  margin-bottom: 16px;
}
.placeholder-note {
  font-size: 13px;
  color: var(--rf-text-muted);
  margin-top: 8px;
}

/* ── Cards / forms ── */
.card {
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: 16px;
  padding: 32px 28px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.band {
  font-family: var(--rf-font-sans);
  font-size: 28px;
  font-weight: 700;
  color: var(--rf-accent);
  margin: 8px 0 6px;
}
.tier {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rf-text-muted);
}
.name { font-size: 22px; font-weight: 700; margin: 8px 0; }
.card ul { list-style: none; margin: 16px 0 24px; }
.card li { padding-left: 18px; position: relative; margin-bottom: 10px; }
.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rf-accent);
}
.card.featured { box-shadow: 0 0 0 1px var(--rf-accent-soft); }
.badge-common {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--rf-accent);
  background: var(--rf-accent-soft);
  border: 1px solid var(--rf-border);
  border-radius: 6px;
  padding: 4px 8px;
  float: right;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rf-text-muted);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--rf-border);
  border-radius: 10px;
  background: var(--rf-page);
  color: var(--rf-text);
  font-family: inherit;
  font-size: 15px;
}
.form-input:focus {
  outline: none;
  border-color: var(--rf-accent);
  box-shadow: 0 0 0 3px var(--rf-accent-soft);
}
.form-group { margin-bottom: 16px; }
.form-submit {
  width: 100%;
  margin-top: 8px;
  padding: 15px;
  border: 0;
  border-radius: 10px;
  background: var(--rf-accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
}
.form-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.form-privacy { margin-top: 14px; font-size: 12px; color: var(--rf-text-muted); text-align: center; }
.msg { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.msg.ok { display: block; background: var(--rf-accent-soft); border: 1px solid var(--rf-border); color: var(--rf-text); }
.msg.err { display: block; background: color-mix(in srgb, var(--rf-high) 10%, transparent); border: 1px solid var(--rf-high); color: var(--rf-text); }

.aside {
  font-size: 14px;
  color: var(--rf-text-muted);
  border-left: 2px solid var(--rf-border);
  padding-left: 14px;
}
.bullets { list-style: none; margin: 0 0 24px; }
.bullets li { position: relative; padding-left: 18px; margin-bottom: 12px; }
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rf-accent);
}

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }

.avatar-km {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--rf-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--rf-border);
  padding: 40px 32px 48px;
  margin-top: 40px;
}
.foot-links {
  max-width: 1120px;
  margin: 0 auto 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
}
.foot-links a { color: var(--rf-text-muted); font-size: 13px; }
.foot-meta {
  max-width: 1120px;
  margin: 0 auto;
  font-size: 13px;
  color: var(--rf-text-muted);
}

@media (max-width: 900px) {
  .nav-mid { display: none; }
  .grid-2, .grid-3, .split, .hero-finding { grid-template-columns: 1fr; }
  .hero-finding-cite { border-right: 0; border-bottom: 1px solid var(--rf-border); }
  h1, .h1 { font-size: 36px; }
  .section { padding: 72px 0; }
  .site-header-inner, .wrap { padding-left: 20px; padding-right: 20px; }
}

/* Finish pass */
.callout { background: var(--rf-surface); border-left: 3px solid var(--rf-accent); padding: 16px 20px; margin: 20px 0; }
.callout p { margin: 0; }
.post-meta { color: var(--rf-text-muted); font-size: 14px; margin-bottom: 8px; }
.post-cta { background: var(--rf-surface); border: 1px solid var(--rf-border); padding: 24px; margin: 40px 0 8px; }
.post-cta a.btn { margin-top: 12px; display: inline-block; }
.related { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--rf-border); }
.related a { display: block; margin: 6px 0; color: var(--rf-accent); }
.foot-social { display: flex; gap: 16px; align-items: center; margin-top: 12px; }
.foot-social a { color: var(--rf-text-muted); display: inline-flex; }
.foot-social a:hover { color: var(--rf-accent); }
.foot-social svg { width: 18px; height: 18px; fill: currentColor; }
.editorial-figure { margin: 0 auto 40px; max-width: 440px; }
.editorial-figure img { width: 100%; height: auto; display: block; border: 1px solid var(--rf-border); }
.post-list { list-style: none; padding: 0; }
.post-list li { padding: 20px 0; border-bottom: 1px solid var(--rf-border); }
.post-list a { font-size: 20px; font-weight: 600; color: var(--rf-text); }
.post-list .post-meta { margin: 4px 0 6px; }
.faq h3 { font-size: 17px; margin: 20px 0 6px; }
.faq p { margin: 0 0 4px; }

/* Polish pass v6 */
.site-header .logo img { height: 30px; width: auto; }
.site-header .logo { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.site-header-inner { position: relative; }
.nav-toggle, .nav-burger { display: none; }
.site-footer { text-align: center; }
.site-footer .foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.site-footer .foot-social { justify-content: center; margin: 16px 0 8px; }
.site-footer .foot-meta { text-align: center; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 28px; }
.step { background: var(--rf-surface); border: 1px solid var(--rf-border); padding: 26px; }
.step-n { font-family: var(--rf-font-mono); color: var(--rf-accent); font-size: 14px; margin-bottom: 10px; }
.step h3 { font-size: 18px; margin: 0 0 10px; }
.step p { margin: 0; color: var(--rf-text-muted); }
.faq { max-width: 72ch; margin: 0 auto; }
.cal-wrap .calendly-inline-widget { height: 900px !important; }
@media (max-width: 880px) {
  :root { --rf-display: 32px; --rf-title: 25px; --rf-lead: 17px; }
  .nav-burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; margin-left: auto; }
  .nav-burger span { width: 22px; height: 2px; background: var(--rf-text); display: block; }
  .nav-mid { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--rf-surface); border-bottom: 1px solid var(--rf-border);
    flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 24px 16px; z-index: 60; }
  .nav-mid a { padding: 10px 0; font-size: 16px; width: 100%; }
  .nav-toggle:checked ~ .nav-mid { display: flex; }
  .nav-cta { font-size: 14px; padding: 9px 14px; }
  .step-grid, .grid-2 { grid-template-columns: 1fr; }
  .visual-break { padding: 0 16px; }
  .cal-wrap .calendly-inline-widget { height: 640px !important; }
  .wrap, .section.wrap { padding-left: 20px; padding-right: 20px; }
  .post-list a { font-size: 18px; }
}
