:root {
  --wine: #4d0512;
  --wine-dark: #36030c;
  --red: #c80f2f;
  --gold: #f3b31d;
  --paper: #f7f2ef;
  --white: #fff;
  --ink: #211417;
  --muted: #6f6063;
  --line: #dfd3d5;
  --error: #b00020;
  --header: 76px;
  --radius: 12px;
  --shadow: 0 18px 50px rgba(77, 5, 18, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.site-header {
  min-height: var(--header);
  background: var(--wine);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}
.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: var(--header);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; width: 118px; min-height: 44px; }
.brand img { width: 118px; height: 60px; object-fit: contain; object-position: left center; }
.back-site { min-height: 44px; display: inline-flex; align-items: center; font-size: .82rem; font-weight: 700; color: rgba(255,255,255,.82); }
.back-site:hover { color: var(--white); }

.experience { min-height: calc(100vh - var(--header)); overflow: hidden; }
.screen { display: none; min-height: calc(100vh - var(--header)); }
.screen.is-active { display: flex; animation: screen-in .24s ease both; }

.screen--intro { flex-direction: column; }
.intro-copy {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--wine-dark), var(--wine));
  color: var(--white);
}
.intro-copy::after {
  content: "";
  position: absolute;
  right: -88px;
  bottom: -100px;
  width: 190px;
  height: 190px;
  border: 30px solid rgba(243, 179, 29, .15);
  border-radius: 50%;
}
.intro-copy-inner { position: relative; z-index: 1; padding: 45px 22px 38px; }
.intro-copy h1,
.screen h2,
.question-shell legend {
  margin: 0;
  font-family: Archivo, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.06;
}
.intro-copy h1 { max-width: 11ch; font-size: clamp(2.1rem, 10vw, 2.65rem); }
.intro-lead { max-width: 37rem; margin: 20px 0 0; color: rgba(255,255,255,.87); font-size: 1rem; line-height: 1.55; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .15em;
  line-height: 1.2;
  text-transform: uppercase;
}
.eyebrow--gold { color: var(--gold); }
.intro-action { flex: 1; }
.intro-action-inner { padding: 24px 22px 44px; }
.after-cta { max-width: 34rem; margin: 18px auto 0; color: var(--muted); font-size: .84rem; line-height: 1.5; text-align: center; }
.micro-info { margin-top: 17px; display: flex; justify-content: center; flex-wrap: wrap; gap: 9px 20px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.micro-info span::before { content: "✓"; margin-right: 6px; color: var(--red); }

.button {
  min-height: 50px;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .68; cursor: wait; transform: none; }
.button--primary { background: var(--gold); color: var(--wine); box-shadow: 0 8px 22px rgba(77,5,18,.10); }
.button--primary:hover { background: #ffc43c; }
.button--block { width: 100%; }
.button--back { padding-inline: 2px; color: var(--wine); background: transparent; border-color: transparent; box-shadow: none; }
.button--back::before { content: "←"; margin-right: 8px; }
.button--secondary { margin-top: 28px; border-color: var(--red); color: var(--red); background: transparent; }
.button--secondary:hover { background: var(--red); color: var(--white); }

.question-shell,
.details-shell,
.content-card { width: min(100%, 730px); margin: 0 auto; padding: 31px 22px 34px; }
.progress-meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 9px; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.progress { height: 5px; margin-bottom: 27px; overflow: hidden; border-radius: 99px; background: #e5dbdd; }
.progress span { display: block; width: 12.5%; height: 100%; border-radius: inherit; background: var(--red); transition: width .25s ease; }
#question-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.question-shell legend { width: 100%; margin-bottom: 21px; padding: 0; font-size: clamp(1.72rem, 8vw, 2.15rem); }
.answer-list { display: grid; gap: 9px; }
.answer-card { position: relative; display: block; }
.answer-card input { position: absolute; opacity: 0; pointer-events: none; }
.answer-card span {
  min-height: 52px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: .96rem;
  font-weight: 700;
  line-height: 1.28;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(77,5,18,.025);
}
.answer-card span::after {
  content: "";
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  border: 2px solid #cfc1c4;
  border-radius: 50%;
}
.answer-card input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }
.answer-card input:checked + span { border-color: var(--gold); background: #fff8e6; box-shadow: inset 3px 0 0 var(--red); }
.answer-card input:checked + span::after { border: 5px solid var(--red); background: var(--white); }
.answer-list--compact { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.answer-list--compact .answer-card span { min-height: 54px; justify-content: center; padding: 10px 4px; text-align: center; }
.answer-list--compact .answer-card span::after { display: none; }

.conditional-field { margin-top: 17px; }
.conditional-field label,
.field label { display: block; margin-bottom: 7px; color: var(--ink); font-size: .84rem; font-weight: 800; }
.field-hint { margin-left: 4px; color: var(--muted); font-weight: 500; }
.input-unit { position: relative; }
.input-unit input { padding-right: 50px; }
.input-unit span { position: absolute; right: 14px; bottom: 15px; color: var(--muted); font-size: .82rem; font-weight: 700; }
input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  padding: 12px 13px;
  font-size: 16px;
}
input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.error-message,
.field-error,
.submit-error { color: var(--error); font-size: .79rem; font-weight: 700; }
.error-message { margin: 12px 0 0; }
.field-error { min-height: 0; margin: 6px 0 0; }
.field-error:empty { display: none; }
.submit-error { margin: 15px 0 0; padding: 12px; border-left: 3px solid var(--error); background: #fff0f2; }
.screen-nav { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; margin-top: 25px; }

.screen--transition,
.screen--success { align-items: stretch; }
.content-card { display: flex; flex-direction: column; justify-content: center; }
.status-icon { width: 58px; height: 58px; margin-bottom: 26px; display: grid; place-items: center; border-radius: 50%; background: #f7dfe4; color: var(--red); font-size: 1.5rem; font-weight: 900; }
.status-icon--success { background: var(--gold); color: var(--wine); }
.screen h2 { font-size: clamp(2rem, 9vw, 2.65rem); }
.content-lead { max-width: 38rem; margin: 18px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.highlight { max-width: 38rem; margin: 24px 0 0; padding: 16px 17px; border-left: 4px solid var(--gold); background: var(--white); color: var(--wine); font-weight: 800; line-height: 1.45; }
.content-card .screen-nav { margin-top: 32px; }
.content-card--success { align-items: flex-start; }

.screen--details { align-items: flex-start; }
.details-shell h2 { margin-bottom: 0; }
.fields-grid { display: grid; gap: 13px; margin-top: 23px; }
.field { min-width: 0; }
.field--name-age { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 10px; }
.privacy-note { max-width: 44rem; margin: 15px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.noscript { margin: 24px; padding: 16px; background: #fff0f2; color: var(--error); font-weight: 700; }

@keyframes screen-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 700px) {
  .question-shell,
  .details-shell,
  .content-card { padding: 52px 42px 42px; }
  .answer-list:not(.answer-list--compact) { grid-template-columns: 1fr 1fr; }
  .fields-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .field--name { grid-column: 1; }
  .field--age { grid-column: 2; }
  .field--email { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  :root { --header: 82px; }
  .brand { width: 145px; }
  .brand img { width: 145px; height: 70px; }
  .back-site { font-size: .9rem; }
  .screen--intro.is-active { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); }
  .intro-copy { min-height: calc(100vh - var(--header)); display: flex; align-items: center; }
  .intro-copy-inner { width: min(730px, 100%); margin-left: auto; padding: 70px 76px 70px 36px; }
  .intro-copy h1 { max-width: 10ch; font-size: clamp(3.6rem, 5.4vw, 5.2rem); }
  .intro-lead { font-size: 1.12rem; }
  .intro-copy::after { width: 330px; height: 330px; right: -145px; bottom: -190px; border-width: 52px; }
  .intro-action { min-height: calc(100vh - var(--header)); display: flex; align-items: center; }
  .intro-action-inner { width: min(430px, 100%); margin: 0 auto; padding: 56px 44px; }
  .screen--question,
  .screen--transition,
  .screen--details,
  .screen--success { align-items: center; }
  .question-shell,
  .content-card { width: min(100%, 800px); }
  .details-shell { width: min(100%, 860px); }
  .question-shell legend { font-size: 2.35rem; }
  .screen h2 { font-size: 3rem; }
}

@media (max-width: 390px) {
  .header-inner { width: calc(100% - 28px); }
  .intro-copy-inner,
  .intro-action-inner,
  .question-shell,
  .details-shell,
  .content-card { padding-left: 18px; padding-right: 18px; }
  .answer-list--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .screen-nav { gap: 10px; }
  .screen-nav .button--primary { padding-inline: 12px; font-size: .92rem; }
}

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