:root {
  --paper: #f9f6ef;
  --paper-deep: #eee8dc;
  --ink: #27342d;
  --soft-ink: #5a665f;
  --mint: #c9dcc9;
  --mint-strong: #89aa92;
  --pink: #efc8cc;
  --pink-strong: #c77983;
  --note-ink: #4f7465;
  --wine: #6c2b3a;
  --wine-deep: #4b1c29;
  --line: rgba(39, 52, 45, 0.18);
  --shadow: 0 18px 45px rgba(67, 52, 43, 0.1);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --script: "Snell Roundhand", "Segoe Print", "Bradley Hand", cursive;
  --page: min(1440px, calc(100% - 40px));
}

* { box-sizing: border-box; }

html {
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 29;
  height: max(10px, env(safe-area-inset-top));
  background: var(--paper);
  content: "";
  pointer-events: none;
}

button,
textarea,
input { font: inherit; }

button { cursor: pointer; }

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 40;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--wine);
  color: white;
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 780px;
  overflow: hidden;
  padding: 24px max(20px, calc((100vw - 1360px) / 2));
  background: var(--paper);
}

.site-header,
.hero-copy,
.hero-footer,
.why,
.questionnaire,
.principle,
.site-footer,
.privacy-note { width: var(--page); margin-inline: auto; }

.site-header {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: 50%;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1440px, calc(100% - 24px));
  min-height: 42px;
  margin: 0;
  padding: 8px 10px 8px 16px;
  border: 1px solid rgba(39, 52, 45, 0.14);
  border-radius: 999px;
  background: rgba(249, 246, 239, 0.88);
  box-shadow: 0 8px 30px rgba(67, 52, 43, 0.09);
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.wordmark {
  color: var(--wine);
  font-family: var(--script);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  text-decoration: none;
}

.header-note,
.eyebrow,
.section-label,
.hero-footer,
.site-footer,
.path-kicker,
.field-meta,
.progress-row,
.choice-kicker {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-note {
  margin: 0;
  color: var(--soft-ink);
  font-size: 0.68rem;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(249, 246, 239, 0.78);
  box-shadow: 0 5px 18px rgba(67, 52, 43, 0.06);
  backdrop-filter: blur(12px);
}

.language-button {
  min-width: 34px;
  height: 28px;
  padding: 0 7px;
  border: 0;
  border-radius: 999px;
  color: var(--soft-ink);
  background: transparent;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  transition: color 160ms ease, background 160ms ease;
}

.language-button:hover { color: var(--wine); }

.language-button[aria-pressed="true"] {
  color: white;
  background: var(--wine);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 720px;
  padding-top: clamp(92px, 15vh, 170px);
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  color: var(--wine);
  font-size: 0.72rem;
  font-weight: 800;
}

h1,
h2,
p { margin-top: 0; }

h1,
h2 { text-wrap: balance; }

h1 {
  max-width: 720px;
  margin-bottom: 28px;
  font-family: var(--serif);
  font-size: clamp(4.25rem, 8.6vw, 8.75rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.82;
}

.hero-intro {
  max-width: 490px;
  margin-bottom: 32px;
  color: var(--soft-ink);
  font-size: clamp(1.07rem, 1.7vw, 1.3rem);
  line-height: 1.52;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-width: 180px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 16px 20px 16px 24px;
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover { transform: translateY(-2px) rotate(-0.3deg); }
.button:focus-visible,
.language-button:focus-visible,
.path-choice:focus-visible,
.form-control:focus-visible,
.step-button:focus-visible,
.consent-option:focus-within { outline: 3px solid var(--pink-strong); outline-offset: 3px; }

.button-primary {
  background: var(--wine);
  color: white;
  box-shadow: 0 10px 20px rgba(108, 43, 58, 0.15);
}

.hero-reassurance {
  margin: 18px 0 0;
  color: var(--soft-ink);
  font-size: 0.78rem;
}

.hero-art { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.question-mark {
  position: absolute;
  right: clamp(3%, 8vw, 14%);
  top: 1%;
  color: var(--pink);
  font-family: var(--serif);
  font-size: min(70vw, 58rem);
  font-weight: 400;
  letter-spacing: -0.2em;
  line-height: 0.75;
  transform: rotate(11deg);
  user-select: none;
}

.brush {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: var(--wine);
  opacity: 0.9;
}

.brush-one {
  right: 13%;
  top: 15%;
  width: min(31vw, 460px);
  height: 38px;
  transform: rotate(18deg);
}

.brush-two {
  right: 6%;
  bottom: 18%;
  width: min(20vw, 290px);
  height: 18px;
  transform: rotate(-46deg);
}

.paper-note {
  position: absolute;
  right: 12%;
  bottom: 21%;
  max-width: 140px;
  transform: rotate(-8deg);
  color: var(--note-ink);
  font-family: var(--script);
  font-size: 1.35rem;
  line-height: 1.05;
}

.hero-footer {
  position: absolute;
  right: 0;
  bottom: 26px;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--soft-ink);
  font-size: 0.67rem;
  font-weight: 750;
}

.scroll-line { width: 82px; height: 1px; background: var(--ink); opacity: 0.5; }

.why {
  display: grid;
  grid-template-columns: 0.7fr 2fr 0.86fr;
  gap: 40px;
  align-items: start;
  padding-block: clamp(80px, 12vw, 176px);
}

.why-copy h2,
.questionnaire-intro h2,
.principle h2 {
  margin-bottom: 24px;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.why-copy h2 { max-width: 730px; font-size: clamp(2.5rem, 5vw, 5.3rem); }

.why-copy p,
.principle > p {
  max-width: 530px;
  color: var(--soft-ink);
  font-size: 1.1rem;
  line-height: 1.62;
}

.human-note {
  position: relative;
  min-height: 166px;
  padding: 28px 24px;
  border: 1px solid var(--ink);
  background: var(--mint);
  box-shadow: 7px 8px 0 var(--pink);
  transform: rotate(2.1deg);
}

.human-note::after {
  position: absolute;
  top: -18px;
  right: 24px;
  width: 55px;
  height: 18px;
  background: var(--paper-deep);
  content: "";
  transform: rotate(-9deg);
}

.human-note span,
.human-note strong { display: block; }
.human-note span { font-family: var(--script); font-size: 1.5rem; }
.human-note strong { margin-top: 2px; font-family: var(--serif); font-size: 2.15rem; font-weight: 500; }

.questionnaire {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(40px, 8vw, 132px);
  padding: clamp(50px, 8vw, 110px);
  border-radius: 34px 34px 0 0;
  background: var(--mint);
}

.questionnaire-intro { min-width: 0; padding-top: 24px; }
.questionnaire-intro h2 { font-size: clamp(2.7rem, 4.4vw, 4.7rem); }
.questionnaire-copy { max-width: 315px; color: var(--soft-ink); font-size: 1rem; line-height: 1.52; }

.draft-note {
  display: flex;
  gap: 12px;
  max-width: 280px;
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.draft-note p { margin: 0; color: var(--soft-ink); font-size: 0.79rem; line-height: 1.43; }
.draft-mark { color: var(--wine); font-size: 1.25rem; }

.questionnaire-shell {
  width: 100%;
  min-width: 0;
  min-height: 510px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(38, 51, 44, 0.12);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.progress-row { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 24px; color: var(--soft-ink); font-size: 0.68rem; font-weight: 800; }
.progress-row p { margin: 0; }
.progress-track { flex: 0 1 190px; height: 5px; overflow: hidden; border-radius: 999px; background: var(--paper-deep); }
.progress-track span { display: block; width: 0%; height: 100%; border-radius: inherit; background: var(--wine); transition: width 240ms ease; }
.progress-track span[data-progress="13"] { width: 13%; }
.progress-track span[data-progress="25"] { width: 25%; }
.progress-track span[data-progress="38"] { width: 38%; }
.progress-track span[data-progress="50"] { width: 50%; }
.progress-track span[data-progress="63"] { width: 63%; }
.progress-track span[data-progress="75"] { width: 75%; }
.progress-track span[data-progress="88"] { width: 88%; }
.progress-track span[data-progress="100"] { width: 100%; }

.question-stage { margin-top: clamp(46px, 7vw, 78px); }
.question-stage:focus { outline: none; }

.path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.path-choice {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  touch-action: manipulation;
}

.path-choice:hover { border-color: var(--wine); background: rgba(239, 200, 204, 0.36); transform: translateY(-4px) rotate(-0.45deg); }
.path-choice:nth-child(2):hover { background: rgba(201, 220, 201, 0.58); transform: translateY(-4px) rotate(0.45deg); }
.path-choice:active { transform: translateY(-1px) scale(0.985); }
.choice-kicker { display: block; margin-bottom: 28px; color: var(--wine); font-size: 0.68rem; font-weight: 800; }
.path-choice strong { display: block; max-width: 230px; font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.75rem); font-weight: 500; letter-spacing: -0.045em; line-height: 0.96; }
.choice-description { display: block; margin-top: 20px; color: var(--soft-ink); font-size: 0.86rem; line-height: 1.45; }
.choice-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; margin-top: auto; padding-top: 22px; color: var(--wine); font-size: 0.72rem; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.choice-arrow { display: inline-grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: white; background: var(--wine); font-size: 0.9rem; transition: transform 180ms ease; }
.path-choice:hover .choice-arrow { transform: translate(2px, 2px); }

.question-wrap { max-width: 650px; min-width: 0; }
.path-kicker { margin-bottom: 16px; color: var(--wine); font-size: 0.68rem; font-weight: 800; }
.question-wrap h3 { max-width: 620px; margin: 0 0 14px; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 4.35rem); font-weight: 500; letter-spacing: -0.055em; line-height: 0.94; }
.question-hint { max-width: 510px; margin-bottom: 30px; color: var(--soft-ink); font-size: 0.98rem; line-height: 1.5; }

.field-meta { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 10px; color: var(--soft-ink); font-size: 0.64rem; font-weight: 800; }
.field-meta .required { color: var(--wine); }

.form-control {
  width: 100%;
  min-height: 166px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  color: var(--ink);
  outline: none;
  background: rgba(255, 255, 255, 0.54);
  line-height: 1.5;
}

input.form-control { min-height: 58px; resize: none; }
.form-control::placeholder { color: #9ba39c; }
.form-control:focus { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(239, 200, 204, 0.78); }

.error-message { min-height: 22px; margin: 10px 0 0; color: var(--wine); font-size: 0.82rem; font-weight: 650; }

.step-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 25px; }
.step-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 999px; padding: 14px 21px; font-size: 0.9rem; font-weight: 780; touch-action: manipulation; }
.step-button-next { min-width: 130px; color: white; background: var(--wine); }
.step-button-next:hover { background: var(--wine-deep); }
.step-button-back { color: var(--soft-ink); background: transparent; }
.step-button-back:hover { color: var(--ink); text-decoration: underline; }
.step-button[disabled] { cursor: not-allowed; opacity: 0.45; }

.consent-options { display: grid; gap: 12px; }
.consent-option { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.55); cursor: pointer; }
.consent-option:has(input:checked) { border-color: var(--wine); background: rgba(239, 200, 204, 0.42); }
.consent-option input { width: 19px; height: 19px; accent-color: var(--wine); }
.consent-option strong { display: block; margin-bottom: 4px; }
.consent-option span { color: var(--soft-ink); font-size: 0.85rem; line-height: 1.4; }

.completion { max-width: 570px; padding: 16px 0 24px; }
.completion-mark { display: inline-grid; width: 64px; height: 64px; place-items: center; margin-bottom: 22px; border-radius: 50%; color: white; background: var(--wine); font-family: var(--script); font-size: 2.6rem; transform: rotate(-12deg); }
.completion h3 { margin: 0 0 16px; font-family: var(--serif); font-size: clamp(3rem, 5vw, 5rem); font-weight: 500; letter-spacing: -0.06em; line-height: 0.9; }
.completion p { max-width: 460px; color: var(--soft-ink); line-height: 1.56; }
.prototype-banner { margin: 26px 0; padding: 13px 15px; border-radius: 12px; color: var(--wine-deep); background: var(--mint-strong); font-size: 0.86rem; line-height: 1.4; }

.no-script { padding: 24px; border-radius: 12px; color: var(--wine); background: var(--pink); }

.principle { padding-block: clamp(100px, 16vw, 200px); }
.principle h2 { max-width: 1050px; margin-bottom: 34px; font-size: clamp(3rem, 7.3vw, 7.3rem); }
.principle > p { margin-left: auto; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 24px;
  align-items: center;
  padding-block: 28px;
  border-top: 1px solid var(--line);
}

.site-footer .wordmark { font-size: 1.7rem; }
.site-footer p,
.site-footer a:not(.wordmark) { margin: 0; color: var(--soft-ink); font-size: 0.7rem; font-weight: 700; text-decoration: none; }
.site-footer a:not(.wordmark):hover { color: var(--wine); text-decoration: underline; }

.privacy-note { padding: 0 0 56px; color: var(--soft-ink); font-size: 0.82rem; line-height: 1.5; }
.privacy-note h2 { margin: 0 0 8px; color: var(--ink); font-size: 0.85rem; }
.privacy-note p { max-width: 640px; margin: 0; }

@media (max-width: 900px) {
  .hero { min-height: 740px; }
  .question-mark { right: -10%; top: 8%; font-size: min(96vw, 50rem); opacity: 0.85; }
  .brush-one { right: -2%; top: 19%; width: 45vw; }
  .brush-two { right: 1%; bottom: 21%; width: 28vw; }
  .paper-note { right: 8%; bottom: 23%; }
  .why { grid-template-columns: 0.9fr 2fr; }
  .human-note { grid-column: 2; max-width: 240px; }
  .questionnaire { grid-template-columns: 1fr; gap: 22px; }
  .questionnaire-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(190px, 0.75fr); column-gap: 38px; }
  .questionnaire-intro .eyebrow, .questionnaire-intro h2 { grid-column: 1; }
  .questionnaire-copy, .draft-note { grid-column: 2; }
  .questionnaire-copy { grid-row: 1 / span 2; align-self: end; }
  .draft-note { margin-top: 20px; }
}

@media (max-width: 640px) {
  :root { --page: min(100% - 32px, 560px); }
  .hero { min-height: 900px; padding-top: 20px; }
  .site-header { top: max(8px, env(safe-area-inset-top)); width: calc(100% - 16px); min-height: 34px; padding: 6px 7px 6px 13px; }
  .site-header .wordmark { font-size: 1.72rem; }
  .header-note { display: none; }
  .header-actions { gap: 0; }
  .language-switcher { gap: 2px; }
  .language-button { min-width: 31px; height: 27px; padding-inline: 5px; }
  .hero-copy { padding-top: 100px; }
  h1 { font-size: clamp(4.1rem, 20vw, 6.6rem); line-height: 0.84; }
  .hero-intro { max-width: 320px; font-size: 1rem; }
  .question-mark { top: 22%; right: -12%; font-size: 33rem; opacity: 0.76; }
  .brush-one { right: -13%; top: 30%; width: 53vw; height: 28px; }
  .brush-two { right: -2%; bottom: 23%; width: 34vw; }
  .paper-note { right: 6%; bottom: 26%; max-width: 90px; font-size: 1rem; }
  .hero-footer { bottom: 18px; }
  .why { display: block; padding-block: 84px; }
  .why .section-label { margin-bottom: 34px; }
  .why-copy h2 { font-size: 3.25rem; }
  .human-note { width: min(72%, 240px); margin: 54px 12px 0 auto; }
  .questionnaire { width: 100%; gap: 0; padding: 18px 12px 12px; scroll-margin-top: 72px; border-radius: 26px 26px 0 0; }
  .questionnaire-intro { display: block; padding: 4px 8px 16px; }
  .questionnaire-intro .eyebrow { margin-bottom: 7px; }
  .questionnaire-intro h2 { margin-bottom: 9px; font-size: 1.9rem; line-height: 1; }
  .questionnaire-copy { max-width: none; margin-bottom: 0; font-size: 0.84rem; line-height: 1.38; }
  .draft-note { display: none; }
  .questionnaire-shell { min-height: 500px; padding: 20px 17px; scroll-margin-top: 72px; border-radius: 22px; }
  .progress-track { flex-basis: 104px; }
  .path-grid { grid-template-columns: 1fr; }
  .path-choice { min-height: 168px; padding: 20px; }
  .choice-kicker { margin-bottom: 12px; }
  .path-choice strong { max-width: none; font-size: 1.9rem; }
  .choice-description { margin-top: 10px; font-size: 0.8rem; }
  .choice-action { padding-top: 14px; }
  .question-stage { margin-top: 26px; scroll-margin-top: 68px; }
  .question-wrap h3 { font-size: 2.45rem; }
  .step-actions { margin-top: 18px; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer p { grid-column: 1 / -1; grid-row: 2; }
  .principle { padding-block: 100px; }
  .principle h2 { font-size: 3.75rem; }
}

@media (max-width: 480px) {
  .paper-note,
  .brush-two { display: none; }
}

@media (max-width: 430px) {
  .hero { min-height: 760px; }
  .button { gap: 18px; min-width: 0; padding: 14px 17px 14px 19px; font-size: 0.9rem; white-space: nowrap; }
}

@media (max-width: 350px) {
  .hero-copy { padding-top: 74px; }
  h1 { margin-bottom: 20px; font-size: 3.55rem; }
  .hero-intro { margin-bottom: 22px; font-size: 0.92rem; line-height: 1.45; }
  .button { gap: 16px; padding: 14px 16px 14px 18px; font-size: 0.86rem; }
  .progress-row { gap: 10px; font-size: 0.61rem; }
  .progress-track { flex: 1 1 70px; min-width: 58px; }
  .step-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .step-button { width: 100%; min-width: 0; padding: 12px 14px; white-space: nowrap; }
  .step-button-next { grid-row: 1; }
  .step-button-back { grid-row: 2; }
  .site-footer { grid-template-columns: 1fr; gap: 13px; align-items: start; }
  .site-footer p { grid-column: 1; grid-row: auto; max-width: 100%; overflow-wrap: anywhere; }
  .site-footer a:not(.wordmark) { justify-self: start; overflow-wrap: anywhere; }
}

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