:root {
  color-scheme: light;
  --ink: #15171a;
  --muted: #606874;
  --line: #d9dde3;
  --paper: #f7f8f5;
  --panel: #ffffff;
  --coal: #20242a;
  --green: #2f6f55;
  --blue: #265d88;
  --gold: #b8792d;
  --red: #9c3e35;
  --shadow: 0 18px 60px rgba(20, 24, 28, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
  background: rgba(247, 248, 245, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--coal);
  color: #fff;
  font-size: 13px;
}
.nav { display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 14px; font-weight: 650; }
.nav a:hover { color: var(--ink); }
.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  align-items: center;
  padding: 64px 28px 44px;
  background:
    linear-gradient(115deg, rgba(21, 23, 26, .92), rgba(32, 36, 42, .74)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='900' viewBox='0 0 1400 900'%3E%3Crect width='1400' height='900' fill='%23f1eee5'/%3E%3Cg fill='none' stroke='%2320242a' stroke-opacity='.16' stroke-width='2'%3E%3Cpath d='M80 120h430v190H80zM650 80h290v260H650zM1010 190h290v150h-290zM180 430h320v230H180zM610 450h430v250H610zM1080 520h190v190h-190z'/%3E%3Cpath d='M510 215h140M940 220h70M500 545h110M1040 575h40'/%3E%3C/g%3E%3Cg fill='%23b8792d' fill-opacity='.28'%3E%3Ccircle cx='520' cy='215' r='8'/%3E%3Ccircle cx='650' cy='215' r='8'/%3E%3Ccircle cx='610' cy='545' r='8'/%3E%3Ccircle cx='1040' cy='575' r='8'/%3E%3C/g%3E%3C/svg%3E") center/cover;
  color: #fff;
}
.hero-inner { max-width: 980px; }
.eyebrow { margin: 0 0 14px; color: var(--gold); text-transform: uppercase; font-size: 12px; font-weight: 820; letter-spacing: .08em; }
.hero h1 { max-width: 940px; margin: 0; font-size: clamp(44px, 8vw, 86px); line-height: .98; letter-spacing: 0; }
.hero-copy { max-width: 760px; margin: 24px 0 0; color: rgba(255,255,255,.78); font-size: 20px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 7px;
  border: 1px solid var(--coal);
  background: var(--panel);
  color: var(--coal);
  font-weight: 760;
  cursor: pointer;
}
.button.primary { background: #fff; border-color: #fff; }
.button.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.38); }
.button.small { min-height: 38px; font-size: 14px; }
.button.text { width: 100%; margin-top: auto; background: var(--coal); color: #fff; }
.button:hover { transform: translateY(-1px); }
.metric-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 620px; gap: 1px; margin-top: 46px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.22); }
.metric-row div { padding: 18px; background: rgba(15,18,20,.42); }
.metric-row strong { display: block; font-size: 30px; }
.metric-row span { display: block; color: rgba(255,255,255,.72); font-size: 13px; }
.band { padding: 76px 28px; }
.band.compact { padding-bottom: 58px; }
.section-head { max-width: 1120px; margin: 0 auto 28px; }
.section-head h2 { max-width: 760px; margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.04; }
.section-head.split { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.schema-grid, .resource-grid, .audit-panel { max-width: 1120px; margin: 0 auto; }
.schema-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.schema-grid div { padding: 18px; border: 1px solid var(--line); background: var(--panel); border-radius: 7px; font-weight: 740; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.resource { min-height: 390px; display: flex; flex-direction: column; gap: 16px; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 28px rgba(20, 24, 28, .06); }
.resource-kicker { color: var(--green); font-size: 12px; text-transform: uppercase; font-weight: 820; letter-spacing: .08em; }
.resource h3 { margin: 0; font-size: 24px; line-height: 1.12; }
.resource p { margin: 0; color: var(--muted); line-height: 1.55; }
ul { margin: 0; padding-left: 18px; color: #343941; line-height: 1.45; }
li + li { margin-top: 8px; }
.accent { background: #e8ece8; }
.audit-panel { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; align-items: start; }
.audit-panel h2 { margin: 0 0 16px; font-size: clamp(30px, 4vw, 52px); line-height: 1.04; }
.audit-panel p { color: var(--muted); font-size: 18px; line-height: 1.6; }
.steps { display: grid; gap: 10px; }
.steps div { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; font-weight: 760; }
.steps span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--blue); color: #fff; font-size: 13px; }
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 40; padding: 12px 16px; border-radius: 7px; background: var(--coal); color: #fff; box-shadow: var(--shadow); font-weight: 760; }
@media (max-width: 900px) {
  .resource-grid, .audit-panel { grid-template-columns: 1fr; }
  .schema-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head.split { align-items: start; flex-direction: column; }
}
@media (max-width: 640px) {
  .topbar { padding: 0 16px; }
  .brand span:last-child { display: none; }
  .nav { gap: 12px; font-size: 13px; }
  .hero { padding: 42px 18px 34px; min-height: auto; }
  .hero h1 { font-size: 42px; }
  .hero-copy { font-size: 17px; }
  .metric-row, .schema-grid { grid-template-columns: 1fr; }
  .band { padding: 54px 18px; }
}


.lead-dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.lead-dialog::backdrop { background: rgba(15, 18, 20, .64); backdrop-filter: blur(3px); }
.lead-form { position: relative; display: grid; gap: 14px; padding: 26px; background: var(--panel); }
.lead-form h2 { margin: 0; font-size: 34px; line-height: 1.02; }
.lead-copy { margin: 0; color: var(--muted); line-height: 1.5; }
.lead-form label { display: grid; gap: 7px; color: #343941; font-size: 13px; font-weight: 760; }
.lead-form input, .lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.lead-form textarea { resize: vertical; }
.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-weight: 820;
}
.dialog-close:hover { color: var(--ink); }
.unlock-panel { max-width: 820px; margin: 0 auto; padding: 34px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 28px rgba(20, 24, 28, .06); }
.unlock-panel h1 { margin: 0 0 14px; font-size: clamp(38px, 6vw, 64px); line-height: 1; }
.unlock-panel p { color: var(--muted); line-height: 1.6; font-size: 18px; }
.unlock-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.email-status { margin-top: 12px; font-weight: 700; color: var(--coal); }


.scorecard-band { background: #f6f8fb; }
.scorecard-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 22px; align-items: stretch; }
.scorecard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.scorecard label { display: grid; gap: 7px; color: #172033; font-weight: 700; font-size: .92rem; }
.scorecard select, .scorecard input { width: 100%; min-height: 46px; border: 1px solid #cfd7e6; border-radius: 8px; padding: 0 12px; background: #fff; color: #111827; font: inherit; }
.scorecard .button { grid-column: 1 / -1; justify-self: start; }
.score-result { min-height: 100%; border: 1px solid #d9e1ef; border-radius: 8px; background: #fff; padding: 22px; display: grid; align-content: center; gap: 14px; box-shadow: 0 16px 36px rgba(18, 31, 52, .08); }
.score-ring { width: 124px; aspect-ratio: 1; border-radius: 999px; display: grid; place-items: center; justify-self: start; background: conic-gradient(#0f766e calc(var(--score, 75) * 1%), #e8edf5 0); position: relative; color: #0f172a; }
.score-ring::after { content: ''; position: absolute; inset: 10px; border-radius: inherit; background: #fff; }
.score-ring strong, .score-ring span { position: relative; z-index: 1; }
.score-ring strong { font-size: 2rem; line-height: 1; }
.score-ring span { margin-left: -20px; margin-top: 44px; font-size: .84rem; color: #64748b; }
.score-result h3 { margin: 0; font-size: 1.25rem; }
.score-result p { margin: 0; color: #4b5870; }
.recommendation { display: grid; gap: 4px; border-top: 1px solid #e5eaf2; padding-top: 14px; }
.recommendation span { color: #667085; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.recommendation strong { color: #0f766e; }
@media (max-width: 780px) { .scorecard-layout, .scorecard { grid-template-columns: 1fr; } .scorecard .button { width: 100%; } }

/* Landing page */
.landing-page { background: #f4f3ee; }
.landing-topbar { background: rgba(244, 243, 238, .92); }
.landing-hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  gap: 36px;
  align-items: center;
  padding: 54px 28px 42px;
  max-width: 1240px;
  margin: 0 auto;
}
.landing-hero-copy h1 { margin: 0; max-width: 760px; font-size: clamp(44px, 6.8vw, 82px); line-height: .96; }
.landing-hero-copy p:not(.eyebrow) { max-width: 690px; color: #515962; font-size: 20px; line-height: 1.55; }
.button.dark { background: var(--coal); border-color: var(--coal); color: #fff; }
.button.dark-outline { color: var(--coal); border-color: #bfc5cc; }
.landing-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 620px; margin-top: 34px; }
.landing-proof span { display: grid; gap: 2px; padding: 14px; border: 1px solid #d6d2c8; border-radius: 8px; background: #fff; color: #6a717a; font-size: 13px; }
.landing-proof strong { color: var(--coal); font-size: 24px; }
.library-preview { min-width: 0; }
.preview-window { border: 1px solid #cfd3d8; border-radius: 8px; background: #fff; box-shadow: 0 28px 80px rgba(20, 24, 28, .16); overflow: hidden; }
.window-bar { min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid #e0e4e8; background: #f9faf7; color: #49515a; }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d46b5d; }
.window-bar span:nth-child(2) { background: #d9aa48; }
.window-bar span:nth-child(3) { background: #4d9b73; }
.window-bar strong { margin-left: auto; font-size: 13px; }
.preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 18px; }
.preview-grid article { min-height: 150px; padding: 16px; border: 1px solid #e1e5ea; border-radius: 8px; background: linear-gradient(180deg, #ffffff, #f6f8fb); }
.preview-grid small { color: var(--green); font-weight: 820; text-transform: uppercase; letter-spacing: .08em; }
.preview-grid b { display: block; margin: 18px 0 8px; font-size: 20px; }
.preview-grid p { margin: 0; color: #616a75; line-height: 1.45; }
.preview-flow { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; gap: 10px; align-items: center; padding: 16px 18px 20px; }
.preview-flow span { padding: 9px 10px; border-radius: 7px; background: #20242a; color: #fff; font-size: 12px; font-weight: 760; text-align: center; }
.preview-flow i { height: 1px; background: #c8cfd7; }
.landing-band { padding: 76px 28px; }
.muted-band { background: #e8ece8; }
.landing-cards, .format-grid, .how-grid { max-width: 1120px; margin: 0 auto; display: grid; gap: 16px; }
.landing-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.landing-cards article, .format-grid div, .how-grid article { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px; box-shadow: 0 8px 28px rgba(20, 24, 28, .05); }
.landing-cards span { color: var(--gold); font-size: 12px; font-weight: 820; letter-spacing: .08em; }
.landing-cards h3, .how-grid h3 { margin: 12px 0 10px; font-size: 24px; line-height: 1.1; }
.landing-cards p, .format-grid p, .how-grid p, .landing-cta p { color: var(--muted); line-height: 1.58; }
.format-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.format-grid strong { display: block; font-size: 20px; }
.how-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.how-grid b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; background: var(--blue); color: #fff; }
.landing-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; max-width: 1120px; margin: 28px auto 84px; padding: 34px; border-radius: 8px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.landing-cta h2 { margin: 0; max-width: 760px; font-size: clamp(30px, 4vw, 52px); line-height: 1.04; }
.landing-cta .button { flex: 0 0 auto; }
@media (max-width: 940px) {
  .landing-hero, .landing-cards, .format-grid, .how-grid { grid-template-columns: 1fr; }
  .landing-hero { min-height: auto; }
  .landing-cta { align-items: stretch; flex-direction: column; }
}
@media (max-width: 640px) {
  .landing-hero, .landing-band { padding-left: 18px; padding-right: 18px; }
  .landing-hero-copy h1 { font-size: 42px; }
  .landing-hero-copy p:not(.eyebrow) { font-size: 17px; }
  .landing-proof, .preview-grid, .preview-flow { grid-template-columns: 1fr; }
  .preview-flow i { display: none; }
}



/* Flow upgrade */
.flow-strip {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.flow-strip a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 24, 28, .05);
}
.flow-strip strong {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--coal);
  color: #fff;
  font-size: 13px;
}
.flow-strip span { color: #424a54; font-weight: 760; line-height: 1.2; }
.library-flow { padding-top: 26px; padding-bottom: 0; }
.path-band { padding-top: 42px; }
.path-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.path-grid article {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 330px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(20, 24, 28, .06);
}
.path-grid span {
  color: var(--green);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.path-grid h3 { margin: 0; font-size: 25px; line-height: 1.08; }
.path-grid p { margin: 0; color: var(--muted); line-height: 1.55; }
.diagnostic-band { padding-top: 44px; }
.diagnostic-panel {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 28px;
  border: 1px solid #cdd7dd;
  border-radius: 8px;
  background: #eef4f2;
}
.diagnostic-panel h2 { margin: 0; max-width: 720px; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.05; }
.diagnostic-panel p { max-width: 760px; color: #53606a; line-height: 1.58; }
.sticky-convert {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 35;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 8px;
  background: rgba(32, 36, 42, .92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.sticky-convert a, .sticky-convert button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: #fff;
  color: var(--coal);
  font: inherit;
  font-weight: 820;
  cursor: pointer;
  white-space: nowrap;
}
.sticky-convert a:first-child { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.28); }
.next-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 18px 0 6px;
  color: var(--muted);
}
.next-actions span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 820; color: var(--gold); }
.next-actions b { padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--coal); font-size: 13px; }
.next-actions i { width: 18px; height: 1px; background: #c7cdd4; }
@media (max-width: 900px) {
  .flow-strip, .path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diagnostic-panel { align-items: stretch; flex-direction: column; }
}
@media (max-width: 640px) {
  body { padding-bottom: 66px; }
  .flow-strip, .path-grid { grid-template-columns: 1fr; padding-left: 18px; padding-right: 18px; }
  .flow-strip { padding-bottom: 22px; }
  .path-band { padding-top: 28px; }
  .path-grid article { min-height: auto; }
  .diagnostic-panel { padding: 22px; }
  .sticky-convert { width: calc(100vw - 24px); justify-content: stretch; }
  .sticky-convert a, .sticky-convert button { flex: 1; }
  .next-actions i { display: none; }
}
