/* Partner landing. Type system from Anavsan-light-type-v3.css
   (PS Partner Engagement Playbook). Page layout is mobile-first. */

:root {
  --navy: #06091a;
  --ink: #0a0c20;
  --text: #1a1d35;
  --text-2: #4a4f6b;
  --text-3: #7a7f9c;
  --green: #00e5a0;
  --green-print: #00b07a;
  --rule: #e6e8f0;
  --paper: #f4f5fa;
  --font: "Manrope", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --fs-display: clamp(2.7rem, 6vw + 0.6rem, 6.25rem);
  --fs-h1: clamp(2.25rem, 4vw + 1rem, 4rem);
  --fs-h2: clamp(1.7rem, 2.2vw + 0.9rem, 2.75rem);
  --fs-h3: clamp(1.25rem, 1vw + 0.9rem, 1.65rem);
  --fs-lead: clamp(1.05rem, 0.5vw + 0.95rem, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-label: 0.75rem;
  --header: 4.75rem;
  --gutter: 1.5rem;
  --section-y: 3.5rem;
}

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

[hidden] { display: none !important; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--text);
  background: var(--paper);
}

img { max-width: 100%; height: auto; }

.display, h1, h2, h3 {
  font-family: var(--font);
  font-weight: 200;
  text-transform: none;
  color: var(--ink);
  margin: 0 0 0.4em;
}

.display { font-size: var(--fs-display); line-height: 1.02; letter-spacing: 0.02em; }
h1 { font-size: var(--fs-h1); line-height: 1.08; letter-spacing: 0.02em; }
h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: 0.03em; }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: 0.03em; }

.accent { color: var(--green-print); font-weight: 200; }
.on-dark .accent { color: var(--green); }

.lead {
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.015em;
  color: var(--text-2);
  margin: 0;
}
.lead a { color: var(--green-print); font-weight: 500; }

html:not(.js) #back,
html:not(.js) #next { display: none; }

.optional { font-weight: 300; color: var(--text-3); }

.on-dark .lead,
.on-dark .hero-note { color: #c9cde4; }

.eyebrow, .label {
  font-size: var(--fs-label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--green-print);
  margin: 0 0 0.9rem;
}

.on-dark .eyebrow { color: var(--green); }

.wordmark {
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  margin: 0;
}

.stat-number {
  font-weight: 200;
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--green-print);
  font-variant-numeric: tabular-nums;
  margin: 0 0 0.45rem;
}

strong, b { font-weight: 500; }

.button {
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.9em 1.4em;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  min-height: 48px;
  background: transparent;
  color: var(--ink);
}

.button--solid { background: var(--navy); color: #fff; }
.button--solid:hover { background: #14182e; }
.button--green { background: var(--green); color: var(--navy); }
.button--green:hover { filter: brightness(0.97); }
.button--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.button--ghost:hover { background: rgba(255,255,255,0.06); }
.button--line { background: #fff; color: var(--ink); border-color: #c5c9da; }
.button--line:hover { border-color: var(--ink); background: #fafbfe; }
.button:focus-visible, .text-btn:focus-visible {
  outline: 2px solid var(--green-print);
  outline-offset: 3px;
}
.button:disabled { opacity: 0.65; cursor: wait; }

.on-dark {
  background: var(--navy);
  color: #c9cde4;
}
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark .display { color: #fff; }

.wrap {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.narrow { max-width: 40rem; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 80;
  border-radius: 8px;
}
.skip:focus { top: 0.75rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--header);
  display: flex;
  align-items: center;
  padding-block: 1rem;
  padding-top: max(1rem, env(safe-area-inset-top));
  background: #fff;
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.logo-link { display: flex; align-items: center; }
.logo { height: 28px; width: auto; }

.header-cta { padding-inline: 1.1em; }

.hero { padding: 3.25rem 0 5.25rem; }
.hero h1 { max-width: 11em; }
.hero .lead { max-width: 36rem; margin-top: 0.4rem; }
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.6rem;
}
.hero-actions .button { width: 100%; }
.hero-note { margin: 0.85rem 0 0; font-size: 0.92rem; }

.stat-wrap { margin-top: -2.6rem; position: relative; z-index: 2; }
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 20px;
  overflow: hidden;
}
.stat { padding: 1.35rem 1.25rem 1.45rem; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.stat:nth-child(2n) { border-right: none; }
.stat:nth-last-child(-n+2) { border-bottom: none; }
.stat .label { letter-spacing: 0.16em; line-height: 1.35; margin: 0; }

.section { padding: var(--section-y) 0; }
.section + .section { padding-top: 0; }
.section .lead { margin-bottom: 1.5rem; }

.assess-card {
  margin-top: 1.5rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 1.4rem 1.25rem 1.45rem;
  box-shadow: 0 18px 48px rgba(6, 9, 26, 0.05);
  scroll-margin-top: calc(var(--header) + 12px);
}

#assess, #result { scroll-margin-top: calc(var(--header) + 16px); }

.progress {
  height: 3px;
  background: var(--rule);
  border-radius: 99px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--green-print);
  transition: width 0.25s ease;
}
.progress-label {
  margin: 0.7rem 0 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.js .step { display: none; }
.js .step.is-active { display: block; }

.step {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

legend.step-q {
  display: table;
  font-weight: 200;
  font-size: var(--fs-h3);
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.25;
  padding: 0;
  margin: 0 0 0.9rem;
}
legend.step-q:focus { outline: none; }

.choices { display: grid; gap: 10px; }

.choice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 0.95rem;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  min-height: 48px;
}
.choice:hover { border-color: #c5c9da; }
.choice input {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  accent-color: #009768;
}
.choice:has(input:checked) {
  border-color: var(--green-print);
  background: #f3fbf7;
  box-shadow: inset 3px 0 0 var(--green-print);
}
.choice:has(input:focus-visible) {
  outline: 2px solid var(--green-print);
  outline-offset: 2px;
}
.choice strong { display: block; font-weight: 500; color: var(--ink); font-size: 1.02rem; }
.choice strong + span { display: block; color: var(--text-2); font-size: 0.92rem; font-weight: 400; margin-top: 0.15rem; }

.recap {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1.15rem;
  padding: 0.85rem 0.95rem;
  background: var(--paper);
  border-radius: 12px;
}
.recap:empty { display: none; }
.recap > span { display: block; color: var(--text-2); font-size: 0.95rem; }
.recap-k {
  display: block;
  margin-bottom: 0.05rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.fields { display: grid; gap: 0.85rem; max-width: 36rem; }
.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
}
.field input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d5d8e6;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  min-height: 48px;
}
.field input:focus {
  outline: 2px solid var(--green-print);
  border-color: transparent;
}
.field-hint { margin: 0.35rem 0 0; color: var(--text-3); font-size: 0.9rem; }

.form-error {
  color: #8d2436;
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0.8rem 0 0;
}

.step-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.step-nav .button--solid { order: -1; width: 100%; }
.step-nav .button--line { width: 100%; }

.text-btn {
  background: none;
  border: 0;
  color: var(--text-2);
  font: inherit;
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  min-height: 44px;
  cursor: pointer;
  padding: 0.35rem 0.15rem;
}
.text-btn:hover { color: var(--ink); }

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.fine { margin: 0.85rem 0 0; color: var(--text-3); font-size: 0.88rem; }
.fine a, .result-actions a:not(.button), .faq a {
  color: var(--green-print);
  font-weight: 500;
}

#result { max-width: 42rem; }
#result h2 {
  font-size: clamp(1.45rem, 1vw + 1.05rem, 1.85rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.25;
  max-width: 22em;
}
#result .lead { font-size: 1.05rem; margin-top: 0.2rem; }
#result .eyebrow { margin-bottom: 0.55rem; }
.result-status {
  margin: 0 0 1.15rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: var(--paper);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 400;
}
.result-status.is-ready { background: #f3fbf7; }
.result-fit { margin: 0.85rem 0 0; color: var(--text); font-weight: 400; }
.q-heading {
  margin: 1.45rem 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.q-legend { margin-top: 0; max-width: 38rem; }
.q-list { list-style: none; margin: 0.85rem 0 0; padding: 0; display: grid; gap: 10px; }
.q-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 0.95rem 1rem 1.05rem;
  background: #fff;
}
.q-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: #f3fbf7;
  color: #087a52;
  font-size: 0.82rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.q-body { min-width: 0; }
.q-text { margin: 0; color: var(--ink); font-weight: 400; }
.q-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0.55rem 0 0; }
.q-id {
  font-weight: 500;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--text-3);
}
.pkg {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #087a52;
  background: #f3fbf7;
  border-radius: 999px;
  padding: 0.2em 0.55em;
}
.result-why {
  margin-top: 1.15rem;
  padding: 1rem 1.05rem 1.05rem;
  background: var(--paper);
  border-radius: 14px;
}
.result-why .label { margin: 0 0 0.35rem; }
.result-why p { margin: 0; color: var(--text-2); }
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1.35rem;
}
.result-actions .button { width: 100%; }
.result-more { margin: 0.85rem 0 0; }

.pairs { display: grid; gap: 12px; }
.pair {
  display: grid;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
}
.pair div { padding: 1.2rem 1.25rem 1.3rem; }
.pair .label { margin-bottom: 0.4rem; }
.pair p:last-child { margin: 0; }
.pair-apex { background: #f3fbf7; }

.pull { margin: 1.75rem 0 0; padding: 0; border: 0; max-width: 38rem; }
.pull p {
  margin: 0;
  font-weight: 200;
  font-size: var(--fs-h3);
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.plays, .trust { display: grid; gap: 12px; }
.play, .trust article {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 1.35rem 1.3rem 1.45rem;
}
.play .label, .trust .label { margin-bottom: 0.45rem; }
.play p, .trust p { margin: 0; color: var(--text-2); }
.play h3 { margin-bottom: 0.45rem; }

.steps { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.steps li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.85rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--rule);
}
.steps strong { color: var(--ink); }
.step-num {
  font-weight: 200;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--green-print);
  font-variant-numeric: tabular-nums;
}

details { border-bottom: 1px solid var(--rule); }
.fold { border-top: 1px solid var(--rule); margin-top: 1.5rem; }
summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--ink);
  padding: 1rem 0;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--text-3); font-weight: 300; }
details[open] summary::after { content: "–"; }
.domain-list, .faq p { margin: 0 0 1rem; }
.domain-list { list-style: none; padding: 0; display: grid; gap: 0.4rem; }
.domain-list span { color: var(--green-print); font-weight: 500; margin-right: 0.35rem; }
.domain-list em { font-style: normal; color: var(--text-3); }

.faq p { color: var(--text-2); padding-bottom: 0.25rem; }

.close { padding: 3.75rem 0; }
.close h2 { max-width: 10em; }
.close .lead { max-width: 34rem; margin-bottom: 1.4rem; }
.close-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.close-actions .button { width: 100%; }
.mail-line { margin: 1rem 0 0; }
.mail-line a { color: var(--green); font-weight: 500; }

.site-foot { padding: 2.5rem 0 5.75rem; color: var(--text-3); font-size: 0.9rem; }
.foot-row { display: grid; gap: 0.8rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0.9rem 1.2rem; }
.site-foot a { color: var(--text-2); font-weight: 500; text-decoration: none; }
.site-foot a:hover { color: var(--ink); }
.site-foot p { margin: 0; }

.dock {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  padding: 0.85rem var(--gutter) calc(0.85rem + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--rule);
}
.dock.is-on { display: block; }
.dock .button { width: 100%; }
body.has-dock { padding-bottom: calc(4.6rem + env(safe-area-inset-bottom)); }

@media (min-width: 720px) {
  :root {
    --header: 5.25rem;
    --gutter: 2.25rem;
    --section-y: 4.75rem;
  }
  .site-header {
    padding-block: 1.15rem;
    padding-top: max(1.15rem, env(safe-area-inset-top));
  }
  .logo { height: 30px; }
  .hero { padding: 4.75rem 0 6.25rem; }
  .hero-actions { flex-direction: row; align-items: center; }
  .hero-actions .button { width: auto; min-width: 240px; }
  .assess-card { padding: 2rem 2rem 1.85rem; }
  .choices { grid-template-columns: 1fr 1fr; }
  .choices .choice:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .recap { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem 1rem; }
  .step-nav { flex-direction: row; align-items: center; }
  .step-nav .button--solid { order: 0; width: auto; min-width: 11.5rem; margin-left: auto; }
  .step-nav .button--line { width: auto; min-width: 5.75rem; }
  .result-actions .button, .close-actions .button { width: auto; }
  .result-actions, .close-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .plays, .trust { grid-template-columns: 1fr 1fr; }
  .domain-list { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
  .close { padding: 4.75rem 0; }
  .site-foot { padding: 3rem 0 2.75rem; }
  .foot-row { grid-template-columns: auto 1fr auto; align-items: center; }
}

@media (min-width: 900px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .stat { border-bottom: none; }
  .stat:nth-child(2n) { border-right: 1px solid var(--rule); }
  .stat:last-child { border-right: none; }
  .pair { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: repeat(3, 1fr); }
  .dock { display: none !important; }
  body.has-dock { padding-bottom: 0; }
}

@media (max-width: 640px) {
  .display, h1, h2, h3, legend.step-q, .pull p { font-weight: 300; letter-spacing: 0.01em; }
  .eyebrow, .label { letter-spacing: 0.18em; }
  .stat-number { font-weight: 300; }
  body { font-weight: 400; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress span { transition: none; }
}
