:root {
  --teal: #173f3b;
  --teal-dark: #102f2d;
  --cream: #f3ede2;
  --terra: #b65a3a;
  --terra-dark: #94442c;
  --char: #20292b;
  --sage: #dce4dd;
  --paper: #fffaf2;
  --white: #fff;
  --line: rgba(32, 41, 43, .2);
  --shadow: 0 22px 60px rgba(23, 63, 59, .11);
}

* { box-sizing: border-box; }
html { min-width: 280px; scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; min-height: 100vh; overflow-x: hidden; background: var(--cream); color: var(--char); font-family: "Source Sans 3", Arial, sans-serif; font-size: 18px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin-top: 0; color: var(--teal); font-family: "Archivo", Arial, sans-serif; line-height: 1.06; letter-spacing: -.03em; }
p { margin-top: 0; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; }
h1[tabindex="-1"]:focus, #screen-title[tabindex="-1"]:focus { outline: none; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; background: var(--char); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.page-width { width: min(100% - 40px, 1180px); margin-inline: auto; }
.score-header { position: relative; z-index: 10; min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 15px clamp(20px, 5vw, 72px); border-bottom: 1px solid var(--line); background: rgba(243, 237, 226, .97); }
.score-brand img { width: 178px; height: auto; }
.back-to-site { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: .9rem; font-weight: 700; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.back-to-site:hover { color: var(--terra); }
.score-app { min-height: calc(100vh - 151px); }

.eyebrow, .section-number, .progress-meta, .category-kicker, .insight-card > span { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: .84rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { margin-bottom: 18px; color: var(--terra); }
.eyebrow.light, .section-number.light { color: #f6b79f; }
.lede { max-width: 760px; font-size: clamp(1.08rem, 2vw, 1.28rem); line-height: 1.55; }
.supporting-line { margin: 26px 0 18px; color: var(--teal); font-weight: 700; }
.reassurance { margin: 17px 0 0; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: .9rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.primary-button, .secondary-button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 0; padding: 15px 22px; cursor: pointer; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; }
.primary-button { background: var(--terra); color: white; }
.primary-button:hover { background: var(--terra-dark); }
.secondary-button { border: 2px solid var(--teal); background: transparent; color: var(--teal); }
.secondary-button:hover { background: var(--sage); }
.text-button { min-height: 48px; border: 0; padding: 10px 0; background: transparent; color: var(--teal); cursor: pointer; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; letter-spacing: .08em; text-decoration: underline; text-underline-offset: 4px; text-transform: uppercase; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }

.landing { animation: screen-in .25s ease-out; }
.landing-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); gap: clamp(28px, 6vw, 78px); align-items: center; padding-block: clamp(52px, 6vw, 82px); }
.hero-copy h1 { max-width: 780px; margin-bottom: 22px; font-size: clamp(3rem, 5.7vw, 5.25rem); }
.hero-copy .lede { max-width: 760px; }
.hero-standard { align-self: stretch; min-height: 470px; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 4vw, 48px); background: var(--teal); color: white; box-shadow: 18px 18px 0 var(--terra); }
.hero-standard > p { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: .86rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero-standard > strong { font-family: "Archivo", Arial, sans-serif; font-size: clamp(1.8rem, 3.1vw, 3.1rem); line-height: 1.12; letter-spacing: -.04em; }
.hero-standard ol { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: standard; }
.hero-standard li { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.24); font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: .88rem; letter-spacing: .09em; text-transform: uppercase; }
.hero-standard li::before { counter-increment: standard; content: "0" counter(standard); color: #f6b79f; }

.measure-section { padding-block: clamp(72px, 9vw, 120px); }
.section-number { margin-bottom: 18px; color: var(--terra); }
.measure-section h2, .credibility-copy h2, .final-landing-cta h2, .results-section h2, .recommendations-section h2 { max-width: 920px; margin-bottom: 42px; font-size: clamp(2.35rem, 5.4vw, 5rem); }
.measure-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.measure-grid article { min-height: 245px; padding: 26px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.measure-grid article > span { color: var(--terra); font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; letter-spacing: .1em; }
.measure-grid h3 { margin: 40px 0 14px; font-size: 1.2rem; }
.measure-grid p { margin: 0; font-size: .96rem; }
.measure-summary { max-width: 900px; margin: 30px 0 0; padding-left: 20px; border-left: 5px solid var(--terra); font-size: 1.1rem; font-weight: 700; }

.credibility-section { padding-block: clamp(72px, 9vw, 120px); background: var(--teal); color: white; }
.credibility-grid { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: clamp(34px, 7vw, 86px); align-items: center; }
.founder-photo-wrap { position: relative; }
.founder-photo-wrap::after { position: absolute; inset: 18px -18px -18px 18px; z-index: 0; border: 2px solid var(--terra); content: ""; }
.founder-photo-wrap img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; filter: saturate(.88) contrast(1.03); }
.credibility-copy h2 { color: white; }
.credibility-copy p { max-width: 720px; }
.credibility-copy blockquote { margin: 34px 0; padding-left: 24px; border-left: 6px solid var(--terra); color: white; font-family: "Archivo", Arial, sans-serif; font-size: clamp(1.55rem, 3vw, 2.6rem); font-weight: 700; line-height: 1.2; }
.operating-sequence { display: flex; flex-wrap: wrap; gap: 8px; color: #f6b79f; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.operating-sequence span { color: white; }

.final-landing-cta { padding-block: clamp(72px, 10vw, 130px); }
.final-landing-cta h2 { margin-bottom: 20px; }
.final-landing-cta > p:not(.eyebrow) { margin-bottom: 28px; font-size: 1.1rem; }

.screen { width: min(100% - 36px, 900px); margin: 0 auto; padding-block: clamp(42px, 8vw, 92px); animation: screen-in .22s ease-out; }
.form-screen, .intro-screen, .reveal-screen, .returning-screen { margin-top: clamp(28px, 6vw, 64px); margin-bottom: clamp(34px, 7vw, 80px); padding: clamp(30px, 6vw, 62px); border-top: 7px solid var(--teal); background: var(--paper); box-shadow: var(--shadow); }
.screen h1 { max-width: 830px; margin-bottom: 24px; font-size: clamp(2.1rem, 5.2vw, 4.25rem); }
.profile-form { display: grid; gap: 26px; margin-top: 36px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field, .select-group { display: grid; gap: 8px; }
.field label, .select-group label, .q15-form label { color: var(--teal); font-weight: 700; }
.field label span { color: rgba(32,41,43,.68); font-size: .88rem; font-weight: 400; }
.field input, .select-group select, .q15-form textarea { width: 100%; min-height: 54px; border: 1px solid rgba(32,41,43,.42); border-radius: 0; padding: 13px 14px; background: white; color: var(--char); }
.q15-form textarea { min-height: 190px; resize: vertical; line-height: 1.5; }
.field input:focus, .select-group select:focus, .q15-form textarea:focus { border-color: var(--terra); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-support { margin: -8px 0 0; font-weight: 600; }
.privacy-copy { max-width: 720px; margin: -12px 0 0; color: rgba(32,41,43,.76); font-size: .9rem; }
.privacy-copy a { font-weight: 700; }
.form-error { padding: 14px 16px; border-left: 5px solid var(--terra); background: #f3ded5; color: #6e2b1d; font-weight: 700; }
.back-action { display: block; margin-top: 24px; }

.progress-meta { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 10px; color: var(--teal); }
.progress-track { height: 9px; overflow: hidden; margin-bottom: clamp(40px, 7vw, 72px); background: var(--sage); }
.progress-fill { height: 100%; background: var(--terra); transition: width .2s ease-out; }
.question-helper { max-width: 700px; margin: -3px 0 16px; color: rgba(32,41,43,.72); font-weight: 600; }
.question-screen h1 { margin-bottom: 34px; font-size: clamp(1.95rem, 4.7vw, 3.45rem); }
.answer-list { display: grid; gap: 12px; }
.answer-button { min-height: 60px; display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 16px; align-items: center; width: 100%; border: 1px solid var(--line); border-radius: 0; padding: 17px 18px 17px 20px; background: var(--paper); color: var(--char); cursor: pointer; text-align: left; transition: border-color .16s, background .16s, transform .16s; }
.answer-button:hover { border-color: var(--teal); transform: translateY(-1px); }
.answer-button.is-selected { border-color: var(--terra); background: #f2ddd2; color: var(--teal); }
.answer-button:disabled { cursor: default; opacity: 1; }
.answer-mark { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: transparent; font-size: .86rem; }
.answer-button.is-selected .answer-mark { border-color: var(--terra); background: var(--terra); color: white; }
.q15-form { display: grid; gap: 16px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.q15-form label { font-size: 1.08rem; }
.textarea-meta { display: flex; justify-content: space-between; gap: 20px; color: rgba(32,41,43,.72); font-size: .88rem; }
.textarea-meta strong { color: var(--teal); }

.reveal-screen { border-color: var(--terra); }
.reveal-check { width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 32px; background: var(--teal); color: white; font-family: "Archivo", Arial, sans-serif; font-size: 1.5rem; font-weight: 800; }
.processing-screen { min-height: calc(100vh - 150px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.processing-mark { display: flex; gap: 9px; margin-bottom: 34px; }
.processing-mark span { width: 15px; height: 15px; background: var(--terra); animation: pulse 1s infinite ease-in-out; }
.processing-mark span:nth-child(2) { animation-delay: .14s; }
.processing-mark span:nth-child(3) { animation-delay: .28s; }
.processing-screen ul { list-style: none; margin: 15px 0 0; padding: 0; }
.processing-screen li { margin: 10px 0; color: rgba(32,41,43,.42); font-weight: 700; transition: color .2s; }
.processing-screen li::before { margin-right: 10px; content: "○"; }
.processing-screen li.is-ready { color: var(--teal); }
.processing-screen li.is-ready::before { content: "✓"; color: var(--terra); }

.results { animation: screen-in .25s ease-out; }
.results-hero { padding-block: clamp(52px, 8vw, 96px); background: var(--teal); color: white; }
.results-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); gap: clamp(42px, 8vw, 96px); align-items: center; }
.score-lockup { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 20px; }
.score-lockup strong { color: white; font-family: "Archivo", Arial, sans-serif; font-size: clamp(5.4rem, 12vw, 10rem); font-weight: 800; letter-spacing: -.08em; line-height: .82; }
.score-lockup span { padding-bottom: 9px; color: #f6b79f; font-family: "Archivo", Arial, sans-serif; font-size: 1.4rem; font-weight: 700; }
.results-hero h1 { margin-bottom: 20px; color: white; font-size: clamp(2rem, 4.5vw, 4rem); }
.results-hero p { max-width: 690px; }
.opportunity-line { margin: 30px 0 0; padding: 17px 0 17px 20px; border-left: 5px solid var(--terra); color: #fff; }
.score-bars { display: grid; gap: 20px; padding: clamp(24px, 4vw, 38px); background: rgba(255,255,255,.08); }
.category-row-head { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 8px; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: .92rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.category-row-head strong { color: #f6b79f; }
.category-track { height: 9px; background: rgba(255,255,255,.2); }
.category-track span { display: block; height: 100%; background: var(--terra); }

.results-section { padding-block: clamp(70px, 9vw, 118px); }
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.insight-card { min-height: 390px; padding: 30px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.insight-card > span { display: block; margin-bottom: 35px; color: var(--terra); }
.category-kicker { margin-bottom: 14px; color: var(--teal); }
.insight-card h3 { font-size: 1.45rem; }
.primary-insight { border-top: 6px solid var(--terra); }
.strength-insight { border-top: 6px solid var(--teal); background: var(--sage); }
.recommendations-section { padding-block: clamp(70px, 9vw, 118px); background: var(--char); color: white; }
.recommendations-section h2 { color: white; }
.recommendation-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.22); border-left: 1px solid rgba(255,255,255,.22); }
.recommendation-card { min-height: 340px; padding: 30px 26px; border-right: 1px solid rgba(255,255,255,.22); border-bottom: 1px solid rgba(255,255,255,.22); }
.recommendation-card > span { color: #f6b79f; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; letter-spacing: .12em; }
.recommendation-card h3 { margin: 40px 0 16px; color: white; font-size: 1.45rem; }
.recommendation-card p { color: rgba(255,255,255,.84); }
.result-close { display: flex; justify-content: space-between; gap: 30px; align-items: center; padding-block: 44px; }
.email-confirmation { display: flex; align-items: center; gap: 16px; }
.email-confirmation > span { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; background: var(--sage); color: var(--teal); font-weight: 800; }
.email-confirmation p { margin: 0; }
.route-card { margin-block: 20px clamp(56px, 8vw, 100px); padding: clamp(30px, 6vw, 64px); background: var(--sage); border-left: 8px solid var(--terra); box-shadow: var(--shadow); }
.route-card h2 { max-width: 880px; margin-bottom: 24px; font-size: clamp(2rem, 4.8vw, 4rem); }
.route-card p { max-width: 820px; }
.route-card .button-row { margin-top: 30px; }
.route-secondary { color: var(--teal); font-weight: 700; text-underline-offset: 4px; }
.route-founding_6 { background: var(--teal); color: white; }
.route-founding_6 h2 { color: white; }
.route-founding_6 .route-secondary { color: white; }
.results-actions { padding-bottom: 54px; text-align: center; }

.score-footer { min-height: 69px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 18px 28px; padding: 22px; background: var(--teal-dark); color: white; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: .84rem; letter-spacing: .07em; text-transform: uppercase; }
.score-footer a { text-decoration: none; }
.score-footer a:hover { color: #f6b79f; }
.noscript { max-width: 760px; margin: 30px auto; padding: 20px; background: var(--paper); }

@keyframes screen-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: .28; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-5px); } }

@media (max-width: 960px) {
  .landing-hero, .credibility-grid, .results-hero-grid { grid-template-columns: 1fr; }
  .hero-standard { min-height: 390px; }
  .measure-grid { grid-template-columns: repeat(2, 1fr); }
  .insight-grid, .recommendation-grid { grid-template-columns: 1fr; }
  .insight-card, .recommendation-card { min-height: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .page-width { width: min(100% - 28px, 1180px); }
  .score-header { min-height: 70px; padding: 12px 14px; }
  .score-brand img { width: 142px; }
  .back-to-site { max-width: 105px; font-size: .72rem; line-height: 1.15; text-align: right; }
  .landing-hero { padding-top: 44px; padding-bottom: 72px; }
  .hero-copy h1 { font-size: clamp(2.7rem, 14vw, 4.3rem); }
  .hero-standard { min-height: 330px; margin-right: 10px; padding: 26px 22px; box-shadow: 10px 10px 0 var(--terra); }
  .measure-grid { grid-template-columns: 1fr; }
  .measure-grid article { min-height: 0; }
  .measure-grid h3 { margin-top: 26px; }
  .credibility-grid { gap: 52px; }
  .founder-photo-wrap { margin-right: 12px; }
  .founder-photo-wrap::after { inset: 12px -12px -12px 12px; }
  .screen { width: min(100% - 28px, 900px); padding-block: 30px 56px; }
  .form-screen, .intro-screen, .reveal-screen, .returning-screen { width: min(100% - 28px, 900px); margin-top: 24px; padding: 28px 20px; }
  .screen h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .field-grid { grid-template-columns: 1fr; }
  .primary-button, .secondary-button { width: 100%; min-height: 56px; }
  .button-row { align-items: stretch; flex-direction: column; }
  .progress-meta { font-size: .74rem; letter-spacing: .08em; }
  .progress-track { margin-bottom: 38px; }
  .question-screen h1 { font-size: clamp(1.75rem, 8.7vw, 2.7rem); }
  .answer-button { min-height: 58px; padding: 15px 14px 15px 16px; }
  .textarea-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
  .score-lockup strong { font-size: clamp(5.8rem, 31vw, 8.4rem); }
  .score-bars { padding: 24px 18px; }
  .results-section, .recommendations-section { padding-block: 64px; }
  .results-section h2, .recommendations-section h2 { margin-bottom: 30px; }
  .insight-card, .recommendation-card { padding: 27px 21px; }
  .result-close { align-items: stretch; flex-direction: column; }
  .email-confirmation { align-items: flex-start; }
  .route-card { padding: 30px 21px; }
  .score-footer { align-items: center; flex-direction: column; gap: 10px; }
}

@media print {
  .score-header, .score-footer, .result-close, .route-card, .results-actions { display: none !important; }
  body { background: white; color: black; font-size: 12pt; }
  .results-hero, .recommendations-section { background: white; color: black; }
  .results-hero h1, .results-hero p, .score-lockup strong, .recommendations-section h2, .recommendation-card h3, .recommendation-card p { color: black; }
  .results-hero, .results-section, .recommendations-section { padding: 24px 0; }
  .insight-grid, .recommendation-grid { display: block; border: 0; }
  .insight-card, .recommendation-card { break-inside: avoid; min-height: 0; border: 1px solid #bbb; margin-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
