:root {
  --page: #192730;
  --page-2: #14232c;
  --deep: #065c74;
  --cyan: #13a8b6;
  --pink: #cf2990;
  --blush: #e68dce;
  --white: #ffffff;
  --paper: #f3f8f8;
  --paper-2: #eaf2f3;
  --ink: #17262e;
  --text: #dce7e9;
  --muted: #9badb4;
  --muted-2: #738890;
  --line: rgba(225, 240, 243, .13);
  --line-strong: rgba(225, 240, 243, .24);
  --paper-line: rgba(23, 38, 46, .13);
  --paper-muted: #61737b;
  --danger: #b43f63;
  --good: #197f71;
  --shadow: 0 28px 80px rgba(0,0,0,.24);
  --shell: 1420px;
  --header-h: 72px;
  --radius: 4px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --font: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--page); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 88% -6%, rgba(19,168,182,.085), transparent 31rem),
    radial-gradient(circle at 2% 43%, rgba(207,41,144,.055), transparent 28rem),
    var(--page);
  font-family: var(--font);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-submitting { cursor: progress; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(230,141,206,.38); color: #fff; }
:focus-visible { outline: 3px solid rgba(19,168,182,.62); outline-offset: 3px; }
[hidden] { display: none !important; }
.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }
.noise { position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .035; mix-blend-mode: soft-light; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E"); }
.micro { margin: 0; font-size: 10px; line-height: 1.2; letter-spacing: .22em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.micro span { color: var(--cyan); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: rgba(25,39,48,.93); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.header-inner { height: 100%; display: grid; grid-template-columns: 1fr minmax(260px, 430px) 1fr; align-items: center; gap: 28px; }
.wordmark { width: max-content; display: inline-flex; align-items: baseline; gap: 7px; font-weight: 800; letter-spacing: -.055em; }
.wordmark-main { font-size: 21px; color: var(--white); }
.wordmark-accent { font-size: 13px; color: var(--blush); letter-spacing: -.03em; }
.header-progress { min-width: 0; }
.header-progress-copy { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .13em; font-weight: 700; }
.progress-track { height: 3px; overflow: hidden; background: rgba(238,245,246,.10); }
.progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg,var(--cyan),var(--pink)); transition: width .35s var(--ease); }
.save-status { justify-self: end; display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.save-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); box-shadow: 0 0 0 4px rgba(115,136,144,.08); transition: .2s ease; }
.save-status.is-dirty .save-dot, .rail-save.is-dirty .save-dot { background: var(--pink); box-shadow: 0 0 0 4px rgba(207,41,144,.12); }
.save-status.is-saving .save-dot, .rail-save.is-saving .save-dot { background: var(--cyan); animation: pulse 1s infinite; }
.save-status.is-saved .save-dot, .rail-save.is-saved .save-dot { background: #52b99d; }
.save-status.is-offline .save-dot, .rail-save.is-offline .save-dot { background: #d28d54; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.72); } }

/* Hero */
.hero { min-height: 660px; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(360px,.75fr); gap: clamp(60px,8vw,140px); align-items: center; padding-top: 82px; padding-bottom: 96px; }
.hero-copy { max-width: 830px; }
.hero h1 { margin: 24px 0 26px; color: #fff; font-size: clamp(56px,7.1vw,112px); line-height: .84; letter-spacing: -.075em; font-weight: 700; }
.hero h1 em { color: var(--blush); font-style: normal; font-weight: 500; }
.hero-deck { max-width: 760px; margin: 0; color: #b9c9ce; font-size: clamp(15px,1.35vw,19px); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.button { min-height: 50px; padding: 0 18px; border: 1px solid transparent; border-radius: 0; display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:disabled { opacity: .35; cursor: not-allowed; }
.button-primary, .button-next { background: var(--pink); color: #fff; }
.button-primary:hover, .button-next:hover { background: #df3fa2; }
.button-quiet { border-color: var(--line-strong); color: var(--pale); background: rgba(255,255,255,.02); }
.button-quiet:hover { background: rgba(255,255,255,.055); }
.button-back { border-color: rgba(23,38,46,.18); color: var(--ink); background: transparent; }
.button-back:hover:not(:disabled) { background: rgba(23,38,46,.045); }
.hero-facts { position: relative; min-height: 430px; display: flex; align-items: flex-end; border-left: 1px solid var(--line); padding-left: clamp(26px,4vw,58px); overflow: hidden; }
.hero-number { position: absolute; inset: 18px 0 18px auto; color: rgba(238,245,246,.06); font-size: clamp(180px,20vw,300px); line-height: .82; letter-spacing: -.09em; font-weight: 800; user-select: none; pointer-events: none; }
.hero-stat { position: relative; z-index: 1; width: min(100%, 360px); padding: 28px 28px 26px; border: 1px solid var(--line); background: rgba(255,255,255,.04); backdrop-filter: blur(10px); }
.hero-stat .micro { color: var(--muted); }
.hero-stat .micro span { color: var(--cyan); }
.hero-stat-value { margin-top: 14px; color: #fff; font-size: clamp(42px,4.8vw,66px); line-height: .92; letter-spacing: -.06em; font-weight: 750; }
.hero-stat-value span { font-size: .38em; letter-spacing: .08em; text-transform: uppercase; color: var(--blush); }
.hero-stat-copy { margin: 12px 0 0; color: #b9c9ce; font-size: 13px; line-height: 1.65; }

/* Trust band */
.trust-band { background: var(--paper); color: var(--ink); border-top: 1px solid rgba(255,255,255,.08); }
.trust-grid { min-height: 300px; display: grid; grid-template-columns: 1.05fr .8fr .8fr; gap: clamp(38px,6vw,100px); align-items: center; padding-top: 62px; padding-bottom: 62px; }
.trust-grid .micro { color: var(--paper-muted); }
.trust-grid .micro span { color: var(--deep); }
.trust-grid h2 { margin: 13px 0 0; font-size: clamp(31px,3.2vw,50px); line-height: .98; letter-spacing: -.055em; }
.trust-grid > p { margin: 0; color: var(--paper-muted); font-size: 13px; line-height: 1.8; }

/* Survey layout */
.survey-layout { display: grid; grid-template-columns: 284px minmax(0, 940px); gap: clamp(38px,5vw,86px); justify-content: center; align-items: start; padding-top: 98px; padding-bottom: 130px; scroll-margin-top: 80px; }
.section-rail { position: sticky; top: calc(var(--header-h) + 34px); min-width: 0; }
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.rail-head > span { color: var(--muted-2); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.section-list { list-style: none; margin: 0; padding: 10px 0 0; }
.section-list li { position: relative; min-height: 42px; display: grid; grid-template-columns: 30px minmax(0,1fr) 12px; gap: 9px; align-items: center; padding: 5px 0; color: var(--muted-2); transition: color .2s ease, transform .2s ease; }
.section-list li::before { content: ""; position: absolute; left: 10px; top: 34px; bottom: -8px; width: 1px; background: var(--line); }
.section-list li:last-child::before { display: none; }
.section-number { font-size: 9px; letter-spacing: .12em; }
.section-name { font-size: 11px; line-height: 1.25; }
.section-state { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--muted-2); }
.section-list li.is-current { color: #fff; transform: translateX(4px); }
.section-list li.is-current .section-number { color: var(--cyan); }
.section-list li.is-current .section-state { border-color: var(--pink); background: var(--pink); box-shadow: 0 0 0 5px rgba(207,41,144,.10); }
.section-list li.is-complete { color: #a7bdc2; }
.section-list li.is-complete .section-state { border-color: #52b99d; background: #52b99d; }
.rail-save { margin-top: 23px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 8px minmax(0,1fr); gap: 12px; align-items: start; }
.rail-save .save-dot { margin-top: 5px; }
.rail-save strong { display: block; color: #cad8dc; font-size: 10px; font-weight: 700; }
.rail-save span:last-child { display: block; margin-top: 4px; color: var(--muted-2); font-size: 9px; line-height: 1.45; }
.survey-main { min-width: 0; }
.mobile-section-card { display: none; }
.question-panel { position: relative; min-height: 520px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 18px); }
.question-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg,var(--cyan),var(--pink)); }
.question-content { padding: clamp(30px,5.3vw,66px); }
.question-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 23px; }
.question-meta .micro { color: var(--deep); }
.question-number { color: var(--pink); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.question-tag { padding: 5px 8px; border: 1px solid rgba(23,38,46,.14); color: var(--paper-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.question-content h2 { max-width: 850px; margin: 0; font-size: clamp(28px,3.5vw,48px); line-height: 1.04; letter-spacing: -.052em; font-weight: 650; }
.question-help { max-width: 760px; margin: 17px 0 0; color: var(--paper-muted); font-size: 13px; line-height: 1.7; }
.answer-area { margin-top: 34px; }

/* Choices */
.choice-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.choice-grid.is-compact { grid-template-columns: repeat(2,minmax(0,1fr)); }
.choice { width: 100%; min-height: 58px; padding: 13px 15px; border: 1px solid var(--paper-line); background: #fff; color: var(--ink); display: grid; grid-template-columns: 24px minmax(0,1fr) 26px; gap: 12px; align-items: center; text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease, opacity .18s ease; }
.choice:hover:not(:disabled) { border-color: rgba(6,92,116,.38); background: #f8fcfc; transform: translateY(-1px); }
.choice.is-selected { border-color: rgba(207,41,144,.55); background: rgba(207,41,144,.065); }
.choice:disabled:not(.is-selected) { opacity: .42; cursor: not-allowed; }
.choice-index { color: #93a2a8; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.choice-label { font-size: 12px; line-height: 1.45; font-weight: 600; }
.choice-check { width: 22px; height: 22px; border: 1px solid rgba(23,38,46,.18); display: grid; place-items: center; color: transparent; font-size: 13px; transition: .18s ease; }
.choice.is-single .choice-check { border-radius: 50%; }
.choice.is-selected .choice-check { border-color: var(--pink); background: var(--pink); color: #fff; }
.selection-toolbar { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-bottom: 12px; color: var(--paper-muted); font-size: 10px; }
.selection-count { font-weight: 800; color: var(--deep); }
.other-field { margin-top: 12px; padding: 17px; border-left: 3px solid var(--pink); background: #fff; }
.other-field label { display: block; margin-bottom: 8px; color: var(--paper-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.text-input, .other-input { width: 100%; border: 1px solid rgba(23,38,46,.18); border-radius: 0; background: #fff; color: var(--ink); padding: 15px 16px; outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
.text-input:focus, .other-input:focus { border-color: var(--deep); box-shadow: 0 0 0 3px rgba(19,168,182,.10); }
textarea.text-input { min-height: 140px; resize: vertical; line-height: 1.65; }
.text-meta { display: flex; justify-content: flex-end; margin-top: 7px; color: #8a989e; font-size: 9px; }
.compact-text-wrap { max-width: 360px; }

/* Rating */
.rating-wrap { max-width: 780px; }
.rating-grid { display: grid; grid-template-columns: repeat(11,1fr); gap: 4px; }
.rating-button { aspect-ratio: 1; min-width: 0; border: 1px solid var(--paper-line); background: #fff; color: var(--ink); font-size: 13px; font-weight: 800; cursor: pointer; transition: .18s ease; }
.rating-button:hover { border-color: var(--deep); transform: translateY(-2px); }
.rating-button.is-selected { border-color: var(--pink); background: var(--pink); color: #fff; }
.rating-labels { display: flex; justify-content: space-between; gap: 20px; margin-top: 10px; color: var(--paper-muted); font-size: 9px; }

/* Matrix */
.matrix-wrap { border-top: 1px solid var(--paper-line); }
.matrix-progress { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 12px; color: var(--paper-muted); font-size: 10px; }
.matrix-progress strong { color: var(--deep); }
.matrix-head, .matrix-row { display: grid; grid-template-columns: minmax(210px,1.5fr) repeat(var(--matrix-cols), minmax(72px,.7fr)); }
.matrix-head { position: sticky; top: var(--header-h); z-index: 3; background: var(--paper-2); border: 1px solid var(--paper-line); }
.matrix-head > div { min-height: 64px; padding: 10px 6px; display: grid; place-items: center; color: #5e7078; font-size: 8px; line-height: 1.25; text-align: center; font-weight: 800; }
.matrix-head > div:first-child { place-items: center start; padding-left: 14px; color: var(--deep); text-transform: uppercase; letter-spacing: .1em; }
.matrix-row { border: 1px solid var(--paper-line); border-top: 0; background: #fff; }
.matrix-row:nth-child(odd) { background: #f9fcfc; }
.matrix-row-label { min-height: 72px; padding: 14px; display: flex; align-items: center; color: var(--ink); font-size: 11px; line-height: 1.45; font-weight: 600; border-right: 1px solid var(--paper-line); }
.matrix-cell { min-height: 72px; display: grid; place-items: center; border-right: 1px solid rgba(23,38,46,.075); }
.matrix-cell:last-child { border-right: 0; }
.matrix-cell input { position: absolute; opacity: 0; pointer-events: none; }
.matrix-radio { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(23,38,46,.24); background: #fff; display: grid; place-items: center; cursor: pointer; transition: .18s ease; }
.matrix-radio::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: transparent; transition: .18s ease; }
.matrix-cell input:checked + .matrix-radio { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(207,41,144,.08); }
.matrix-cell input:checked + .matrix-radio::after { background: var(--pink); }
.matrix-cell input:focus-visible + .matrix-radio { outline: 3px solid rgba(19,168,182,.45); outline-offset: 3px; }
.matrix-mobile-select { display: none; }

/* Skeleton & validation */
.question-skeleton { padding: 68px; }
.question-skeleton span { display: block; height: 14px; margin-bottom: 14px; background: linear-gradient(90deg,#e7efef,#f8fbfb,#e7efef); background-size: 200% 100%; animation: skeleton 1.3s infinite; }
.question-skeleton span:nth-child(1) { width: 22%; height: 9px; }
.question-skeleton span:nth-child(2) { width: 80%; height: 40px; }
.question-skeleton span:nth-child(3) { width: 65%; height: 40px; }
.question-skeleton span:nth-child(4) { width: 100%; height: 140px; margin-top: 38px; }
@keyframes skeleton { to { background-position: -200% 0; } }
.validation-message { margin: -1px 0 0; padding: 14px 20px; background: #fff0f3; border-top: 1px solid rgba(180,63,99,.22); color: #8b2847; font-size: 11px; font-weight: 700; }

/* Nav */
.survey-nav { min-height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-top: 18px; }
.survey-nav .button { min-width: 132px; }
.survey-nav .button-back {
  justify-self: start;
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.035);
  color: #fff;
}
.survey-nav .button-back:hover:not(:disabled) {
  border-color: rgba(255,255,255,.48);
  background: rgba(255,255,255,.075);
}
.survey-nav .button-next { justify-self: end; }
.question-position { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .13em; }
.survey-footnote { display: flex; justify-content: space-between; gap: 20px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 9px; }

/* Dialog / toast / completion */
.submit-dialog { width: min(620px,calc(100% - 30px)); padding: 0; border: 1px solid var(--line-strong); background: transparent; color: var(--text); box-shadow: var(--shadow); }
.submit-dialog::backdrop { background: rgba(10,20,26,.76); backdrop-filter: blur(8px); }
.dialog-card { position: relative; padding: clamp(30px,6vw,60px); background: var(--page); }
.dialog-card h2 { margin: 14px 0 15px; color: #fff; font-size: clamp(32px,5vw,50px); line-height: .98; letter-spacing: -.055em; }
.dialog-card > p:not(.micro) { color: var(--muted); font-size: 13px; line-height: 1.75; }
.dialog-close { position: absolute; top: 15px; right: 15px; width: 38px; height: 38px; border: 0; background: transparent; color: var(--muted); font-size: 27px; cursor: pointer; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 30px; }
.dialog-actions .button-back { color: var(--text); border-color: var(--line-strong); }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 300; max-width: min(420px,calc(100% - 32px)); padding: 14px 17px; background: var(--pink); color: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.25); font-size: 11px; font-weight: 700; }
.toast.is-warning { background: #a94c68; }
.toast.is-info { background: var(--deep); }
.honeypot { position: fixed !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.completed-page { padding-top: 90px; padding-bottom: 120px; }
.completed-card { max-width: 900px; padding: clamp(36px,7vw,82px); background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.completed-mark { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 28px; background: var(--pink); color: #fff; font-size: 25px; }
.completed-card .micro { color: var(--deep); }
.completed-card h2 { margin: 14px 0; font-size: clamp(35px,5vw,64px); line-height: .95; letter-spacing: -.06em; }
.completed-card p:last-child { color: var(--paper-muted); line-height: 1.7; }

/* Footer */
.site-footer { position: relative; min-height: 350px; padding: 70px 0 110px; border-top: 1px solid var(--line); background: var(--page-2); overflow: hidden; }
.footer-inner { position: relative; z-index: 2; display: grid; grid-template-columns: .7fr 1.3fr auto; gap: 60px; align-items: start; }
.footer-inner strong { display: block; margin-top: 9px; color: #fff; font-size: 20px; letter-spacing: -.035em; }
.footer-inner > p { max-width: 640px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.footer-inner > a { color: var(--cyan); font-size: 10px; }
.footer-word { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); width: min(1280px,calc(100% - 48px)); color: rgba(238,245,246,.028); font-size: clamp(96px,14vw,190px); line-height: .82; letter-spacing: -.09em; font-weight: 800; white-space: nowrap; }
.footer-word span { color: rgba(230,141,206,.09); }

/* Responsive */
@media (max-width: 1100px) {
  .header-inner { grid-template-columns: 1fr minmax(220px,340px) auto; }
  .save-status span:last-child { display: none; }
  .hero { grid-template-columns: minmax(0,1fr) 330px; gap: 50px; }
  .survey-layout { grid-template-columns: 240px minmax(0,1fr); gap: 38px; }
  .section-name { font-size: 10px; }
  .matrix-head, .matrix-row { grid-template-columns: minmax(190px,1.25fr) repeat(var(--matrix-cols), minmax(62px,.65fr)); }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .shell { width: min(100% - 30px,var(--shell)); }
  .header-inner { grid-template-columns: 1fr minmax(150px,260px); gap: 18px; }
  .save-status { display: none; }
  .wordmark-main { font-size: 18px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 68px; }
  .hero-copy { max-width: 760px; }
  .hero-facts { min-height: 220px; border-left: 0; border-top: 1px solid var(--line); padding: 28px 0 0; }
  .hero-number { font-size: clamp(130px,28vw,210px); right: -6px; top: 18px; bottom: 0; }
  .hero-stat { width: min(100%, 420px); padding: 24px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid > div { grid-column: 1 / -1; }
  .survey-layout { display: block; padding-top: 50px; }
  .section-rail { display: none; }
  .mobile-section-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 10px; padding: 13px 15px; border: 1px solid var(--line); background: rgba(6,92,116,.13); }
  .mobile-section-card strong { display: block; margin-top: 4px; color: #fff; font-size: 12px; }
  .mobile-section-card > span { color: var(--blush); font-size: 13px; font-weight: 800; }
  .matrix-head { display: none; }
  .matrix-wrap { border: 0; display: grid; gap: 9px; }
  .matrix-row { display: block; padding: 15px; border: 1px solid var(--paper-line); background: #fff !important; }
  .matrix-row-label { min-height: auto; padding: 0 0 11px; border: 0; font-size: 12px; }
  .matrix-cell { display: none; }
  .matrix-mobile-select { width: 100%; display: block; min-height: 48px; border: 1px solid rgba(23,38,46,.18); border-radius: 0; background: var(--paper-2); color: var(--ink); padding: 10px 12px; }
  .footer-inner { grid-template-columns: 1fr 1.3fr; }
  .footer-inner > a { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 22px,var(--shell)); }
  .header-inner { grid-template-columns: auto 1fr; }
  .header-progress-copy #headerSection { display: none; }
  .hero { padding-top: 52px; padding-bottom: 54px; }
  .hero h1 { margin-top: 19px; font-size: clamp(51px,18vw,78px); }
  .hero-deck { font-size: 14px; line-height: 1.7; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .hero-number { display: none; }
  .hero-stat { width: 100%; padding: 21px 18px 19px; }
  .hero-stat-value { font-size: 40px; }
  .trust-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 42px; padding-bottom: 44px; }
  .trust-grid > div { grid-column: auto; }
  .survey-layout { width: 100%; padding-top: 26px; padding-bottom: 100px; }
  .mobile-section-card { margin-inline: 11px; }
  .question-panel { min-height: 480px; box-shadow: none; }
  .question-content { padding: 29px 21px 31px; }
  .question-content h2 { font-size: clamp(28px,8.3vw,38px); }
  .question-help { font-size: 12px; }
  .answer-area { margin-top: 27px; }
  .choice-grid.is-compact { grid-template-columns: 1fr; }
  .choice { min-height: 58px; padding: 12px 13px; }
  .choice-label { font-size: 12px; }
  .rating-grid { grid-template-columns: repeat(6,1fr); gap: 5px; }
  .rating-button { aspect-ratio: auto; min-height: 48px; }
  .matrix-progress { font-size: 9px; }
  .survey-nav { position: sticky; bottom: 0; z-index: 20; min-height: 78px; grid-template-columns: 1fr 1fr; padding: 12px 11px calc(12px + env(safe-area-inset-bottom)); background: rgba(25,39,48,.96); border-top: 1px solid var(--line); backdrop-filter: blur(16px); }
  .survey-nav .button { width: 100%; min-width: 0; }
  .question-position { display: none; }
  .survey-footnote { margin: 18px 11px 0; padding: 0; border: 0; display: block; text-align: center; }
  .survey-footnote span { display: block; margin-top: 4px; }
  .dialog-actions { display: grid; grid-template-columns: 1fr; }
  .dialog-actions .button { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .footer-word { width: calc(100% - 22px); bottom: -4px; font-size: clamp(74px,18vw,118px); }
  .toast { right: 11px; bottom: calc(90px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
}
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.section-intro { margin: -12px 0 30px; padding: 18px 20px; border-left: 3px solid var(--cyan); background: var(--paper-2); }
.section-intro .micro { color: var(--deep); }
.section-intro p { margin: 9px 0 0; color: var(--paper-muted); font-size: 12px; line-height: 1.72; }
@media (max-width:640px) { .section-intro { margin: -5px 0 24px; padding: 15px 16px; } }


/* ==========================================================================
   Survey flow polish — v1.1
   ========================================================================== */

/* Hero: keep the 2036 motif visible without letting it collide with the stat. */
.hero-facts { isolation: isolate; overflow: hidden; }
.hero-number {
  display: block;
  position: absolute;
  z-index: 0;
  top: 50%;
  right: clamp(-14px, -1vw, -2px);
  bottom: auto;
  left: auto;
  transform: translateY(-54%);
  color: rgba(238,245,246,.055);
  font-size: clamp(170px,15vw,250px);
  line-height: .72;
  letter-spacing: -.09em;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.hero-stat {
  margin: 0 0 14px;
  background: rgba(20,35,44,.82);
  border-color: rgba(225,240,243,.19);
  box-shadow: 0 20px 54px rgba(0,0,0,.14);
}

/* Desktop section rail: calmer, more legible, and more obviously progressive. */
.rail-head { padding: 0 10px 18px; }
.section-list { padding-top: 12px; }
.section-list li {
  min-height: 44px;
  padding: 6px 10px;
  border-left: 2px solid transparent;
}
.section-list li::before { left: 20px; }
.section-list li.is-current {
  transform: none;
  color: #fff;
  border-left-color: var(--cyan);
  background: rgba(255,255,255,.035);
}
.section-list li.is-complete { color: #aac0c5; }
.section-list li.is-complete .section-number { color: #65c7ad; }
.section-list li.is-future { opacity: .72; }
.rail-save { margin-inline: 10px; }

/* Question card: stronger editorial hierarchy and softer density. */
.question-panel {
  border: 1px solid rgba(255,255,255,.04);
  box-shadow: 0 24px 65px rgba(3,13,19,.2);
}
.question-panel::before { height: 4px; }
.question-content { padding-top: clamp(34px,5vw,62px); }
.question-meta {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 25px;
}
.question-meta .question-tag { justify-self: end; }
.question-number { white-space: nowrap; }
.question-tag {
  background: rgba(23,38,46,.025);
  border-color: rgba(23,38,46,.16);
}
.question-content h2 {
  max-width: 820px;
  font-weight: 650;
  text-wrap: balance;
}
.question-help { max-width: 720px; }
.section-intro {
  position: relative;
  overflow: hidden;
  margin-bottom: 34px;
  padding: 20px 22px 20px 25px;
  border-left-width: 4px;
}
.section-intro::after {
  content: "NEW SECTION";
  position: absolute;
  right: 15px;
  top: 13px;
  color: rgba(23,38,46,.045);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.04em;
  pointer-events: none;
}

/* Choices: clearer selected state and better tap/scan rhythm. */
.choice {
  position: relative;
  min-height: 62px;
  padding: 14px 16px;
  overflow: hidden;
}
.choice::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: transparent;
  transition: background .18s ease;
}
.choice:hover:not(:disabled) { box-shadow: 0 5px 16px rgba(23,38,46,.045); }
.choice.is-selected {
  border-color: rgba(207,41,144,.48);
  background: #fff7fc;
}
.choice.is-selected::before { background: var(--pink); }
.choice.is-selected .choice-index { color: var(--pink); }
.choice-check { background: #fff; }
.choice.is-selected .choice-check { box-shadow: 0 0 0 3px rgba(207,41,144,.08); }
.selection-toolbar {
  min-height: 42px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid var(--paper-line);
  background: var(--paper-2);
}
.selection-count { white-space: nowrap; }
.other-field { margin-top: 10px; }

/* Text and rating answers. */
.text-input, .other-input { border-color: rgba(23,38,46,.16); }
textarea.text-input { min-height: 160px; }
.rating-grid { gap: 6px; }
.rating-button { min-height: 54px; aspect-ratio: auto; }
.rating-labels { margin-top: 12px; }

/* Matrix: make each row easier to scan; answered rows get a quiet cue. */
.matrix-row-label { gap: 10px; }
.matrix-row-number {
  flex: 0 0 auto;
  min-width: 22px;
  color: #99a7ac;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
}
.matrix-row.is-answered .matrix-row-number { color: var(--deep); }
.matrix-row.is-answered { box-shadow: inset 3px 0 0 rgba(19,168,182,.34); }
.matrix-progress {
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid var(--paper-line);
  background: var(--paper-2);
}

/* Navigation: make the action area feel part of the survey, not an afterthought. */
.survey-nav {
  min-height: 84px;
  padding-top: 20px;
}
.survey-nav .button { min-height: 54px; }
.survey-nav .button-back,
.survey-nav .button-next { min-width: 170px; }
.question-position { font-weight: 700; }
.survey-footnote { opacity: .92; }

/* Completion state. */
.survey-layout.is-complete { grid-template-columns: 240px minmax(0,940px); }
.section-rail.is-finished .section-list li {
  color: #a7bdc2;
  border-left-color: transparent;
  background: transparent;
}
.section-rail.is-finished .section-list li .section-state {
  border-color: #52b99d;
  background: #52b99d;
}
.completed-card h2 { text-wrap: balance; }

/* Footer wordmark: always fit inside the footer instead of deliberately clipping. */
.footer-word {
  bottom: 12px;
  width: min(1180px,calc(100% - 48px));
  font-size: clamp(88px,9.2vw,150px);
  line-height: .84;
  letter-spacing: -.075em;
}

@media (max-width: 1100px) {
  .hero-number { font-size: clamp(150px,19vw,215px); }
}

@media (max-width: 900px) {
  .hero-facts { min-height: 190px; }
  .hero-number {
    display: block;
    top: 50%;
    right: 0;
    font-size: clamp(120px,25vw,180px);
    color: rgba(238,245,246,.045);
  }
  .hero-stat { margin-bottom: 0; }
  .mobile-section-card {
    min-height: 62px;
    margin-bottom: 0;
    padding: 13px 16px;
    border-color: rgba(225,240,243,.13);
    border-bottom: 0;
    background: rgba(6,92,116,.11);
  }
  .question-panel { border-color: transparent; }
}

@media (max-width: 640px) {
  /* Header */
  .site-header { height: 62px; }
  :root { --header-h: 62px; }
  .header-inner { gap: 14px; }
  .wordmark { gap: 5px; }
  .wordmark-main { font-size: 17px; }
  .wordmark-accent { font-size: 11px; }
  .header-progress-copy { margin-bottom: 5px; }
  .progress-track { height: 3px; }

  /* Hero */
  .hero-number { display: none; }
  .hero-facts { min-height: auto; padding-top: 24px; }
  .hero-stat { padding: 19px 18px 18px; }

  /* Survey */
  .survey-layout { padding-top: 20px; padding-bottom: 46px; }
  .mobile-section-card {
    margin-inline: 11px;
    min-height: 58px;
    padding: 11px 13px;
  }
  .mobile-section-card strong { font-size: 11px; }
  .mobile-section-card > span { font-size: 12px; }
  .question-panel { min-height: 0; }
  .question-content { padding: 27px 21px 30px; }
  .question-meta {
    grid-template-columns: auto 1fr auto;
    gap: 9px 10px;
    margin-bottom: 20px;
  }
  .question-meta .micro { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .question-number { justify-self: start; }
  .question-tag { justify-self: end; padding: 4px 6px; font-size: 7px; }
  .question-content h2 { font-size: clamp(27px,7.7vw,36px); line-height: 1.06; }
  .question-help { margin-top: 13px; line-height: 1.6; }
  .answer-area { margin-top: 24px; }
  .section-intro { margin: -3px 0 22px; padding: 14px 15px 15px 17px; }
  .section-intro::after { display: none; }

  .choice { min-height: 60px; padding: 12px 13px; grid-template-columns: 25px minmax(0,1fr) 28px; gap: 10px; }
  .choice-index { font-size: 8px; }
  .choice-label { font-size: 12px; line-height: 1.42; }
  .choice-check { width: 25px; height: 25px; }
  .selection-toolbar {
    position: sticky;
    top: var(--header-h);
    z-index: 5;
    margin-inline: -21px;
    padding-inline: 21px;
    border-left: 0;
    border-right: 0;
    box-shadow: 0 7px 15px rgba(23,38,46,.035);
  }

  textarea.text-input { min-height: 145px; }
  .rating-grid { grid-template-columns: repeat(6,1fr); gap: 5px; }
  .rating-button { min-height: 50px; }

  .matrix-progress { margin-inline: -5px; }
  .matrix-row {
    position: relative;
    padding: 14px;
    border-color: rgba(23,38,46,.12);
  }
  .matrix-row.is-answered { border-left-color: rgba(19,168,182,.45); }
  .matrix-row-label { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 8px; padding-bottom: 10px; }
  .matrix-mobile-select { min-height: 50px; padding: 11px 12px; background: #f4f8f8; }

  /* The first screen no longer wastes half the sticky bar on a disabled Back button. */
  .survey-nav { min-height: 74px; padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .survey-nav.is-first { grid-template-columns: 1fr; }
  .survey-nav.is-first .button-back { display: none; }
  .survey-nav .button { min-height: 54px; }
  .survey-nav .button-next { min-width: 0; }
  .survey-footnote { margin-top: 13px; font-size: 8px; line-height: 1.5; }

  /* Footer: fit the large Crediton 2036 wordmark fully inside the viewport. */
  .site-footer { min-height: 315px; padding: 58px 0 104px; }
  .footer-inner { gap: 22px; }
  .footer-inner strong { font-size: 19px; }
  .footer-inner > p { font-size: 10px; line-height: 1.75; }
  .footer-word {
    left: 11px;
    right: 11px;
    bottom: 12px;
    transform: none;
    width: auto;
    font-size: clamp(42px,11.7vw,62px);
    line-height: .9;
    letter-spacing: -.065em;
    text-align: left;
  }
  .toast { max-width: calc(100% - 22px); }
}

/* Crediton 2036: accessibility and mobile-first survey refinements */
:root { scroll-padding-top: 88px; }
.question-panel { scroll-margin-top: 85px; }
.choice:focus-visible, .matrix-mobile-option:focus-visible, .rating-button:focus-visible, .button:focus-visible, .text-input:focus-visible { outline: 3px solid #13a8b6; outline-offset: 3px; }
.matrix-guidance { display: none; }
.matrix-mobile-choices { display:none; }
@media (max-width: 900px) {
  .matrix-mobile-select { display: none !important; }
  .matrix-guidance { display: block; margin: 5px 0 15px; color: #52616a; font-size: 13px; line-height: 1.6; }
  .matrix-mobile-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .matrix-mobile-option { border: 1px solid #c9d4d8; background: #f7fafa; color: #21323c; border-radius: 9px; padding: 11px 9px; min-height: 48px; font: 700 12px/1.35 Manrope,sans-serif; cursor: pointer; text-align: center; overflow-wrap: anywhere; }
  .matrix-mobile-option.is-selected { background:#e4f6f5; border:2px solid #087c89; color:#075463; padding:10px 8px; }
  .matrix-row { border-radius: 10px; margin: 0 0 11px; }
}
@media (max-width: 640px) {
  .hero { padding-top: 27px; padding-bottom: 25px; }
  .hero h1 { font-size: clamp(43px,13vw,64px); line-height: 1.02; }
  .hero-deck { font-size: 13px; line-height: 1.55; }
  .hero-facts, .trust-band { display: none; }
  .hero-actions { margin-top: 18px; }
  .survey-layout { padding-top: 12px; padding-bottom: 44px; }
  .mobile-section-card { margin-bottom: 7px; padding: 11px 14px; }
  .question-content { padding: 23px 19px 24px; }
  .question-content h2 { font-size: clamp(23px, 6.5vw, 30px); line-height: 1.24; }
  .question-help { font-size: 14px; line-height: 1.55; }
  .question-meta { flex-wrap: wrap; row-gap: 8px; }
  .section-intro { margin-bottom: 17px; }
  .answer-area { margin-top: 18px; }
  .choice-grid { grid-template-columns: 1fr !important; gap: 9px; }
  .choice { min-height: 57px; padding: 13px 14px; border-radius: 11px; }
  .choice-label { font-size: 14px; line-height: 1.42; }
  .choice-index { font-size: 10px; }
  .choice:active, .matrix-mobile-option:active { transform: scale(.995); }
  .matrix-row-label { font-size: 13px; line-height: 1.5; }
  .matrix-mobile-option { font-size: 12px; min-height: 51px; }
  .matrix-mobile-choices { gap: 8px; }
  .selection-toolbar { flex-wrap: wrap; gap: 8px; }
  .text-input { font-size: 16px; min-height: 135px; }
  .survey-nav { grid-template-columns: minmax(0,1fr) minmax(0,1.8fr); gap: 10px; }
  .survey-nav .button-back { min-width: 0; }
  .survey-nav .button-next { min-width: 0; }
  .survey-footnote { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .question-panel, .choice, .matrix-mobile-option { transition:none!important; } }

/* Mobile questionnaire v3 — predictable, thumb-friendly answering */
.mobile-jump { display:flex; align-items:center; gap:5px; background:transparent; color:#fff; border:1px solid rgba(255,255,255,.24); border-radius:100px; padding:9px 12px; font:800 12px Manrope,sans-serif; cursor:pointer; flex-shrink:0; }
.question-position { background:transparent; border:0; cursor:pointer; font:inherit; text-decoration:underline; text-decoration-color:rgba(255,255,255,.3); text-underline-offset:4px; }
.question-position:focus-visible,.mobile-jump:focus-visible,.jump-question:focus-visible,.jump-close:focus-visible { outline:3px solid #13a8b6;outline-offset:3px; }
.question-jump-dialog { padding:0; width:min(550px,calc(100% - 24px)); max-height:min(82dvh,760px); border:1px solid #d8e2e6; border-radius:18px; background:#f9fbfb; color:#192730; box-shadow:0 25px 90px #0006; }
.question-jump-dialog::backdrop { background:rgba(11,24,33,.7); backdrop-filter:blur(5px); }
.jump-dialog-inner { padding:25px; }
.jump-dialog-top { display:flex; justify-content:space-between; gap:18px; align-items:start; }
.jump-dialog-top .micro { color:#065c74; }
.jump-dialog-top h2 { margin:6px 0 0; font-size:26px; letter-spacing:-.05em; }
.jump-close { border:0; background:#e9eef0; color:#192730; border-radius:50%; width:42px; height:42px; font-size:27px; cursor:pointer; }
.jump-help { color:#61727a; font-size:13px; line-height:1.6; margin:12px 0 20px; }
.jump-question-list { max-height:52dvh; overflow:auto; overscroll-behavior:contain; }
.jump-question-list h3 { margin:19px 0 8px; color:#065c74; font-size:11px; text-transform:uppercase; letter-spacing:.09em; }
.jump-question { display:grid; width:100%; grid-template-columns:32px minmax(0,1fr) 28px; align-items:center; text-align:left; gap:12px; padding:12px 10px; margin:4px 0; border:1px solid #dce4e7; border-radius:9px; background:white; color:#192730; cursor:pointer; font:600 13px/1.4 Manrope,sans-serif; }
.jump-question.is-current { border-color:#cf2990; background:#fff3fa; }
.jump-question:disabled { opacity:.42; cursor:default; }
.jump-number { font-size:11px; font-weight:800; color:#065c74; }
.jump-state { font-size:12px; color:#087c89; justify-self:end; }
@media(max-width:640px) {
 html { scroll-padding-top:74px; }
 .site-header .save-status { display:none; }
 .header-progress { min-width:0; flex:1; }
 .survey-layout { padding-top:8px; }
 .mobile-section-card { margin:0 11px 8px; padding:12px 15px; min-height:66px; border-radius:13px; }
 .mobile-section-card strong { font-size:14px; line-height:1.3; }
 .mobile-section-card .micro { font-size:9px; }
 .question-panel { margin:0 10px; border:1px solid #e0e8eb; border-radius:16px; overflow:clip; box-shadow:0 14px 36px rgba(0,0,0,.10); scroll-margin-top:76px; }
 .question-content { padding:25px 18px 30px; }
 .question-meta { gap:9px; margin-bottom:17px; }
 .question-content h2 { font-size:clamp(24px,6.8vw,32px); line-height:1.22; letter-spacing:-.035em; font-weight:750; }
 .question-help { margin-top:12px; font-size:14px; }
 .answer-area { margin-top:25px; }
 .choice-grid { gap:10px; }
 .choice { min-height:66px; grid-template-columns:24px minmax(0,1fr) 28px; border-radius:12px; padding:15px 14px; box-shadow:0 2px 0 #19273009; }
 .choice-label { font-size:15px; line-height:1.4; }
 .choice.is-selected { border:2px solid #cf2990; padding:14px 13px; background:#fff0f9; }
 .choice-check { width:27px;height:27px; }
 .selection-toolbar { top:62px; margin-inline:-18px; padding:12px 18px; font-size:12px; background:#f7fafb; }
 .selection-count { font-size:12px; }
 .rating-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
 .rating-button { aspect-ratio:auto; min-height:59px; border-radius:10px; font-size:17px; }
 .matrix-mobile-choices { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
 .matrix-mobile-option { min-height:58px; font-size:13px; border-radius:10px; }
 .matrix-row { padding:16px 13px; }
 .matrix-row-label { font-size:14px; padding-bottom:15px; }
 .text-input,.other-input { border-radius:10px; font-size:16px; }
 .survey-nav { position:sticky; bottom:0; margin-top:12px; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.65fr); gap:9px; padding:12px 12px calc(12px + env(safe-area-inset-bottom)); min-height:84px; background:rgba(25,39,48,.98); border-top:1px solid #405660; box-shadow:0 -10px 28px rgba(10,21,28,.22); }
 .survey-nav .button { min-height:58px; border-radius:11px; font-size:13px; }
 .survey-nav .button-next { background:#cf2990; color:white; }
 .survey-nav .button-next.is-answer-ready { background:#c62286; }
 .survey-nav.is-first { grid-template-columns:1fr; }
 .survey-nav .question-position { grid-column:1/-1; grid-row:1; justify-self:center; font-size:11px; min-height:20px; padding:0; color:#b7c8cf; }
 .survey-nav .button-back,.survey-nav .button-next { grid-row:2; }
 .survey-nav.is-first .button-next { grid-column:1/-1; }
 .survey-footnote { text-align:center; margin:18px 15px; }
 .question-jump-dialog { width:100%; max-width:none; max-height:85dvh; margin:auto 0 0; border-radius:22px 22px 0 0; border:0; padding-bottom:env(safe-area-inset-bottom); }
 .jump-dialog-inner { padding:24px 18px; }
 .jump-question-list { max-height:57dvh; }
 .jump-question { min-height:56px; }
 .validation-message { margin:0 18px 18px; }
 .question-enter .question-content { animation:question-reveal .23s ease-out; }
}
@keyframes question-reveal { from { opacity:.45; transform:translateY(7px); } to { opacity:1; transform:translateY(0); } }
@media(prefers-reduced-motion:reduce) { .question-enter .question-content { animation:none; } }
@media(max-width:640px) { .survey-nav .question-position { display:block; text-transform:none; letter-spacing:.02em; font-weight:750; } }
