:root {
  color-scheme: light;
  --ink: #111827;
  --ink-soft: #394150;
  --paper: #f5f0e6;
  --card: #fffdf8;
  --line: #d9d0c0;
  --gold: #bd8b2e;
  --gold-dark: #865e19;
  --rust: #a8442f;
  --focus: #126782;
  --success: #277052;
  --shadow: 0 24px 70px rgba(25, 31, 40, 0.14);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--ink); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 5%, rgba(189, 139, 46, 0.2), transparent 28rem),
    linear-gradient(145deg, #101823 0%, #172232 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button, input { font: inherit; }

button, input, [tabindex] { scroll-margin: 1rem; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.page-shell {
  width: min(100%, 1040px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: white;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.wordmark small {
  display: block;
  margin-top: 1px;
  color: #d6c8aa;
  font-size: 0.59rem;
  letter-spacing: 0.17em;
}

.research-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .16));
}

.research-badge {
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  color: #f1dfb7;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  white-space: nowrap;
}

.survey-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.progress-shell { padding: 18px 28px 0; }
.progress-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: var(--ink-soft); font-size: .78rem; font-weight: 750; }
.progress-track { height: 7px; background: #e4ddd1; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), #d8ad55); border-radius: inherit; transition: width 260ms ease; }

.panel { padding: clamp(28px, 5vw, 58px); }
.welcome-panel > p:not(.eyebrow):not(.lede):not(.privacy-copy) { max-width: 760px; }
.eyebrow { margin: 0 0 9px; color: var(--gold-dark); font-size: .76rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; line-height: 1.08; }
h1 { max-width: 780px; font-size: clamp(2.15rem, 6vw, 4.35rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.7rem); letter-spacing: -.035em; }
.lede { max-width: 710px; margin: 22px 0 0; color: var(--ink-soft); font-size: clamp(1rem, 2vw, 1.18rem); }

.notice {
  margin: 28px 0 0;
  padding: 16px 18px;
  border-left: 4px solid var(--rust);
  background: #f7eae4;
  color: #652b20;
  border-radius: 0 10px 10px 0;
}

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 32px 0; border: 1px solid var(--line); background: var(--line); border-radius: 14px; overflow: hidden; }
.fact { min-height: 108px; padding: 17px; background: #faf7ef; }
.fact strong { display: block; margin-bottom: 5px; font-family: Georgia, serif; font-size: 1.4rem; }
.fact span { color: var(--ink-soft); font-size: .84rem; }

.question { margin: 30px 0 0; padding: 28px 0 0; border: 0; border-top: 1px solid var(--line); }
.question:first-of-type { margin-top: 24px; }
.question legend { width: 100%; padding: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 780; font-size: clamp(1.25rem, 3vw, 1.7rem); line-height: 1.28; }
.display-number { color: var(--gold-dark); }
.question-count { margin: 4px 0 0; color: var(--ink-soft); font-size: .78rem; }
.question-hint { margin: 7px 0 0; color: var(--ink-soft); font-size: .88rem; }
.instruction { margin: 14px 0 0; color: var(--ink-soft); font-size: .82rem; font-weight: 800; }
.question blockquote { margin: 16px 0 0; padding: 14px 18px; border-left: 4px solid var(--gold); background: #fff8e9; font-family: Georgia, serif; font-size: 1.1rem; }
.required { color: var(--rust); }
.options { display: grid; gap: 10px; margin-top: 15px; }
.option { display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 11px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: white; cursor: pointer; transition: border-color 140ms ease, background 140ms ease, transform 140ms ease; }
.option:hover { border-color: var(--gold); background: #fffaf0; transform: translateY(-1px); }
.option:has(input:checked) { border-color: var(--gold-dark); background: #fff3d8; box-shadow: inset 0 0 0 1px var(--gold-dark); }
.option input { margin: 3px 0 0; accent-color: var(--gold-dark); }

.milestone { margin: 28px 0 0; padding: 18px; border: 1px dashed #b99041; border-radius: 12px; background: #fff8e9; }
.milestone strong { display: block; margin-bottom: 3px; font-family: Georgia, serif; font-size: 1.08rem; }

.actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 34px; }
.button { min-height: 48px; padding: 12px 20px; border: 0; border-radius: 10px; font-weight: 820; cursor: pointer; }
.button-primary { color: white; background: var(--ink); box-shadow: 0 8px 18px rgba(17,24,39,.18); }
.button-primary:hover { background: #27364b; }
.button-secondary { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.button-secondary:hover { background: #f4efe5; }
.button:disabled { opacity: .5; cursor: not-allowed; }
.error { margin: 16px 0 0; color: var(--rust); font-weight: 750; }
.saved { color: var(--success); font-size: .78rem; font-weight: 750; }
.saved[data-state="offline"] { color: var(--gold-dark); }
.sync-warning { margin: 18px 0 0; padding: 15px 16px; border: 1px solid #d6a348; border-radius: 10px; background: #fff4d8; color: #5f430f; }
.sync-warning[hidden] { display: none; }
.sync-warning strong, .sync-warning span { display: block; }
.sync-warning span { margin-top: 4px; }
.sync-reference { font-size: .74rem; font-weight: 800; letter-spacing: .04em; }
.sync-warning-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.button-small { min-height: 40px; padding: 8px 12px; background: rgba(255,255,255,.55); }
.referral { margin-top: 20px; color: var(--ink-soft); font-size: .78rem; }
.complete-mark { width: 64px; height: 64px; margin-bottom: 24px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--success); font-size: 2rem; }
.privacy-copy { max-width: 760px; margin: 24px 0 0; color: var(--ink-soft); font-size: .78rem; }
.test-banner { margin: 0 0 10px; padding: 9px 13px; border: 1px solid #e1ba67; border-radius: 9px; color: #5f430f; background: #fff1c9; text-align: center; font-size: .74rem; font-weight: 850; letter-spacing: .06em; }
.transition-panel { text-align: center; }
.transition-panel .complete-mark { margin-inline: auto; }
.transition-panel .lede { margin-inline: auto; }
.actions-end { justify-content: flex-end; }
.contact-form { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact-form h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.email-label { display: grid; gap: 7px; margin-top: 22px; font-weight: 780; }
.email-label input { min-height: 48px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.consent-option { display: grid; grid-template-columns: 22px 1fr; gap: 10px; margin-top: 14px; align-items: start; }
.consent-option input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold-dark); }
.contact-status { color: var(--success); font-weight: 750; }
.test-contact-notice { margin-top: 28px; padding: 16px 18px; border: 1px solid #e1ba67; border-radius: 10px; color: #5f430f; background: #fff1c9; }

footer { color: #bfc7d1; text-align: center; font-size: .76rem; padding-bottom: 8px; }
footer p { margin: 0; }
.footer-links { margin-top: 5px; }
footer a { color: #f1dfb7; text-underline-offset: 3px; }
footer a:hover { color: white; }

.privacy-main { align-self: start; }
.privacy-document { max-width: 820px; margin: 0 auto; }
.privacy-document h1 { font-size: clamp(2.15rem, 6vw, 3.75rem); }
.privacy-effective { margin: 12px 0 0; color: var(--ink-soft); font-size: .82rem; font-weight: 750; }
.privacy-back { display: inline-block; margin-bottom: 24px; color: var(--gold-dark); font-size: .85rem; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.privacy-section { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.privacy-section h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.privacy-section p { margin: 13px 0 0; color: var(--ink-soft); }
.privacy-section ul { margin: 13px 0 0; padding-left: 22px; color: var(--ink-soft); }
.privacy-section li + li { margin-top: 5px; }
.privacy-section a { color: var(--gold-dark); overflow-wrap: anywhere; }
.privacy-contact { color: var(--ink); font-weight: 800; }
.button-link { display: inline-flex; align-items: center; justify-content: center; color: white; text-decoration: none; }

@media (max-width: 680px) {
  .page-shell { padding: 14px; gap: 15px; }
  .site-header { padding: 5px 2px; }
  .research-badge { font-size: .59rem; letter-spacing: .08em; }
  .wordmark { font-size: .82rem; }
  .research-mark { width: 35px; height: 35px; }
  .panel { padding: 29px 21px 25px; }
  .progress-shell { padding: 15px 21px 0; }
  .facts { grid-template-columns: 1fr; }
  .fact { min-height: auto; }
  .actions { align-items: stretch; flex-direction: column-reverse; }
  .button { width: 100%; }
  .saved { text-align: center; }
  .sync-warning-actions { display: grid; }
}

@media (max-width: 420px) {
  .research-badge { display: none; }
  .wordmark small { letter-spacing: .11em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Homepage link to the brand report (survey closed) */
.brand-cta { margin: 30px 0 0; padding: clamp(22px, 4vw, 32px); border-radius: 16px; background: var(--ink); color: #f5f0e6; box-shadow: 0 14px 34px rgba(17,24,39,.22); }
.brand-cta-kicker { margin: 0 0 8px; color: #d8ad55; font-size: .76rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.brand-cta h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.35rem); }
.brand-cta p:not(.brand-cta-kicker) { max-width: 620px; margin: 12px 0 0; color: #d7dbe3; font-size: clamp(1rem, 2vw, 1.1rem); }
.brand-cta-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 13px 22px; border-radius: 999px; background: var(--gold); color: #111827; font-weight: 850; text-decoration: none; box-shadow: 0 8px 18px rgba(0,0,0,.25); transition: background 140ms ease, transform 140ms ease; }
.brand-cta-btn:hover { background: #d8ad55; transform: translateY(-1px); }
.brand-cta-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 560px) { .brand-cta-btn { display: flex; justify-content: center; } }
.brand-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 20px; }
.brand-cta-actions .brand-cta-btn { margin-top: 0; }
.brand-cta-video { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: #fff; font: inherit; font-size: .95rem; font-weight: 700; cursor: pointer; text-align: left; }
.brand-cta-video img { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 2px solid #d8ad55; object-fit: cover; }
.brand-cta-video:hover span, .brand-cta-video:focus-visible span { text-decoration: underline; text-underline-offset: 3px; }
.brand-cta-video:focus-visible { outline: 3px solid #fff; outline-offset: 4px; border-radius: 999px; }
@media (max-width: 560px) { .brand-cta-actions { flex-direction: column; align-items: stretch; } .brand-cta-video { justify-content: center; } }
.video-lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(8, 12, 22, .86); }
.video-lightbox-frame { position: relative; width: min(100%, calc((100vh - 40px) * 9 / 16), 420px); aspect-ratio: 9 / 16; }
.video-lightbox video { display: block; width: 100%; height: 100%; border-radius: 14px; background: #000; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.video-lightbox-close { position: absolute; top: -14px; right: -14px; z-index: 1; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: #111827; font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.video-lightbox-close:focus-visible { outline: 3px solid #d8ad55; outline-offset: 2px; }
@media (max-width: 560px) { .video-lightbox-close { top: 6px; right: 6px; } }
body.video-open { overflow: hidden; }
.brand-cta-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.brand-cta-list li { position: relative; padding-left: 26px; color: #d7dbe3; font-size: clamp(1rem, 2vw, 1.1rem); }
.brand-cta-list li::before { content: "✓"; position: absolute; left: 0; color: #d8ad55; font-weight: 900; }
