:root {
  color-scheme: dark;
  --ink: #071711;
  --ink-deep: #04100c;
  --pine: #0d2a1f;
  --pine-light: #123b2c;
  --gold: #d4af37;
  --gold-light: #f0d77a;
  --cream: #fbfaf6;
  --mist: #bfd0c6;
  --muted: #789384;
  --line: rgba(212, 175, 55, 0.22);
  --line-strong: rgba(212, 175, 55, 0.48);
  --success: #9dd9b8;
  --error: #ffad9f;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --display: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(circle at 82% 2%, rgba(212, 175, 55, 0.11), transparent 31rem),
    radial-gradient(circle at 8% 45%, rgba(40, 105, 76, 0.16), transparent 35rem),
    linear-gradient(155deg, var(--ink-deep), var(--ink) 48%, #081d15);
  color: var(--cream);
  font-family: var(--body);
  line-height: 1.55;
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 46px 46px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 75%);
  pointer-events: none;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.65rem;
  left: 0.65rem;
  padding: 0.7rem 0.9rem;
  transform: translateY(-180%);
  border-radius: 3px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

.site-header,
.page-shell,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-light);
  font-family: var(--display);
  font-size: 0.95rem;
}

.privacy-badge {
  display: inline-flex;
  min-height: 31px;
  padding: 0.4rem 0.7rem;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 42, 31, 0.72);
  color: var(--gold-light);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.privacy-badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px var(--gold);
  content: "";
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(2.8rem, 7vw, 6.5rem) 0 clamp(4rem, 9vw, 8rem);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  line-height: 0.93;
}

h1 em,
h2 em {
  color: var(--gold-light);
  font-style: italic;
  font-weight: 400;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1rem;
}

.lede {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--mist);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  font-weight: 350;
}

.subtle {
  color: var(--muted);
  font-size: 0.83rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(145deg, rgba(18, 59, 44, 0.55), rgba(7, 23, 17, 0.92)),
    var(--pine);
  box-shadow: var(--shadow);
}

.button,
.button-secondary,
.text-button {
  display: inline-flex;
  min-height: 52px;
  padding: 0.88rem 1.3rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 2px;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.button {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 14px 38px rgba(212, 175, 55, 0.18);
}

.button:hover:not(:disabled) {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(7, 23, 17, 0.55);
  color: var(--cream);
}

.button-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.text-button {
  min-height: 42px;
  padding: 0.55rem 0;
  border: 0;
  background: transparent;
  color: var(--mist);
}

.text-button:hover {
  color: var(--gold-light);
}

.button-row {
  display: flex;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.status-message {
  min-height: 1.5em;
  margin: 1rem 0 0;
  color: var(--error);
  font-size: 0.86rem;
  font-weight: 650;
}

.site-footer {
  padding: 1.65rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.site-footer a:hover {
  color: var(--gold-light);
}

/* Questionnaire */
.quiz-shell {
  width: min(920px, calc(100% - 40px));
}

.quiz-intro {
  max-width: 790px;
  margin: 0 auto 2.1rem;
  text-align: center;
}

.quiz-intro h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
}

.progress-head {
  display: grid;
  margin: 0 auto 1.3rem;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1rem;
}

.progress-label,
.progress-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.progress-count {
  color: var(--gold-light);
}

.progress-track {
  height: 3px;
  margin-bottom: 1.3rem;
  overflow: hidden;
  background: rgba(212, 175, 55, 0.11);
}

.progress-fill {
  display: block;
  width: 16.666%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 320ms ease;
}

.quiz-card {
  position: relative;
  min-height: 540px;
  padding: clamp(1.5rem, 4.5vw, 3.5rem);
  overflow: hidden;
}

.quiz-card::after {
  position: absolute;
  right: -10rem;
  bottom: -14rem;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(212, 175, 55, 0.11);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.07), transparent 64%);
  content: "";
  pointer-events: none;
}

.autofill-notice {
  position: relative;
  z-index: 2;
  display: grid;
  margin: 0 0 1.5rem;
  padding: 0.9rem 1rem;
  grid-template-columns: 24px 1fr;
  gap: 0.75rem;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-left: 3px solid var(--gold);
  background: rgba(212, 175, 55, 0.075);
  color: var(--mist);
  font-size: 0.76rem;
}

.autofill-notice > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-weight: 900;
}

.autofill-notice p {
  margin: 0;
}

.autofill-notice strong {
  color: var(--gold-light);
}

.form-step {
  position: relative;
  z-index: 1;
  animation: step-in 360ms ease both;
}

.step-heading {
  max-width: 690px;
  margin-bottom: 2rem;
}

.step-heading h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.step-heading p {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--mist);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.1rem;
}

.field-group {
  min-width: 0;
}

.field-group.full {
  grid-column: 1 / -1;
}

.field-group label,
.field-label,
fieldset legend {
  display: block;
  margin-bottom: 0.48rem;
  color: #e7eee9;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.optional {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: none;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea {
  width: 100%;
  border: 1px solid rgba(191, 208, 198, 0.2);
  border-radius: 3px;
  outline: none;
  background: rgba(4, 16, 12, 0.72);
  color: var(--cream);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"] {
  min-height: 55px;
  padding: 0 0.95rem;
}

textarea {
  min-height: 132px;
  padding: 0.9rem 0.95rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #617d6d;
}

input:focus,
textarea:focus {
  border-color: var(--gold);
  background: rgba(7, 23, 17, 0.94);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.11);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--error);
}

input[data-autofilled="true"],
textarea[data-autofilled="true"] {
  border-color: rgba(212, 175, 55, 0.54);
  background: rgba(14, 45, 33, 0.82);
}

.field-help {
  margin: 0.42rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.field-error {
  min-height: 1.2em;
  margin: 0.32rem 0 0;
  color: var(--error);
  font-size: 0.72rem;
  font-weight: 650;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.choice-card {
  position: relative;
  display: block;
}

.choice-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-card span {
  display: flex;
  min-height: 78px;
  padding: 0.9rem 1rem;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(191, 208, 198, 0.18);
  border-radius: 3px;
  background: rgba(4, 16, 12, 0.54);
  color: var(--cream);
  cursor: pointer;
  transition: 180ms ease;
}

.choice-card strong {
  font-size: 0.9rem;
}

.choice-card small {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.choice-card input:focus-visible + span {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

.choice-card input:checked + span,
.choice-card:hover span {
  border-color: var(--gold);
  background: rgba(18, 59, 44, 0.82);
  box-shadow: inset 3px 0 0 var(--gold);
}

.consent-row {
  display: grid;
  grid-template-columns: 21px 1fr;
  gap: 0.72rem;
  align-items: start;
}

.consent-row input {
  width: 19px;
  height: 19px;
  margin: 0.1rem 0 0;
  accent-color: var(--gold);
}

.consent-row label {
  color: var(--mist);
  font-size: 0.79rem;
  text-transform: none;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.quiz-actions {
  display: flex;
  margin-top: 2rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.quiz-actions .button {
  margin-left: auto;
}

.trust-line {
  display: grid;
  margin-top: 1rem;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: center;
}

.trust-line span {
  padding: 0.65rem;
  border-top: 1px solid var(--line);
}

/* Questionnaire V2 */
.no-script-panel,
.resume-panel {
  max-width: 760px;
  margin: 0 auto 1.4rem;
  padding: clamp(1.5rem, 4vw, 2.6rem);
}

.no-script-panel h2,
.resume-panel h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.no-script-panel p:last-child,
.resume-panel > p:last-of-type {
  margin-bottom: 0;
  color: var(--mist);
}

.storage-notice {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 173, 159, 0.46);
  border-left: 3px solid var(--error);
  background: rgba(86, 30, 25, 0.34);
  color: #ffe4df;
  font-size: 0.78rem;
}

.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.field-label-row label {
  margin-bottom: 0.48rem;
}

.field-counter {
  flex: 0 0 auto;
  color: #9bb1a4;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.quiz-card select {
  width: 100%;
  min-height: 55px;
  padding: 0 2.7rem 0 0.95rem;
  border: 1px solid rgba(191, 208, 198, 0.2);
  border-radius: 3px;
  outline: none;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--gold-light) 50%) calc(100% - 18px) 23px / 6px 6px no-repeat,
    linear-gradient(135deg, var(--gold-light) 50%, transparent 50%) calc(100% - 12px) 23px / 6px 6px no-repeat,
    rgba(4, 16, 12, 0.72);
  color: var(--cream);
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.quiz-card select:focus {
  border-color: var(--gold);
  background-color: rgba(7, 23, 17, 0.94);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.11);
}

.quiz-card select[aria-invalid="true"] {
  border-color: var(--error);
}

.family-recommendation {
  display: flex;
  min-height: 44px;
  margin-top: 0.55rem;
  padding: 0.7rem 0.8rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(212, 175, 55, 0.055);
  color: #c9d8cf;
  font-size: 0.72rem;
}

.recommendation-button {
  flex: 0 0 auto;
  padding: 0.42rem 0.66rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 850;
  cursor: pointer;
}

.repeat-list {
  display: grid;
  margin-top: 0.8rem;
  gap: 0.75rem;
}

.repeat-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
}

.repeat-row .field-error {
  grid-column: 2;
  margin-top: -0.48rem;
}

.repeat-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-light);
  font-size: 0.66rem;
  font-weight: 850;
}

.services-list {
  display: grid;
  gap: 1.2rem;
}

.service-card {
  position: relative;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(4, 16, 12, 0.38);
}

.service-card > legend {
  padding: 0 0.45rem;
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.remove-service-button {
  display: block;
  margin: -0.1rem 0 1rem auto;
  padding: 0.35rem 0;
  border: 0;
  background: transparent;
  color: #eab4aa;
  font-size: 0.68rem;
  font-weight: 750;
  cursor: pointer;
}

.remove-service-button:hover {
  color: #ffd4cc;
  text-decoration: underline;
}

.service-controls {
  display: flex;
  margin-top: 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.service-controls p {
  margin: 0;
  color: #9bb1a4;
  font-size: 0.72rem;
}

.compact-textarea {
  min-height: 108px;
}

.choice-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice-card.compact span {
  min-height: 94px;
  padding: 0.75rem;
}

.physical-confirmation {
  padding: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.06);
}

.visual-directions {
  margin-top: 0.4rem;
}

.direction-grid {
  display: grid;
  margin-top: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.direction-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(191, 208, 198, 0.2);
  border-radius: 4px;
  background: rgba(4, 16, 12, 0.54);
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.direction-card > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.direction-card:has(input:checked),
.direction-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2), inset 0 -3px 0 var(--gold);
}

.direction-card:has(input:focus-visible) {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

.direction-preview {
  position: relative;
  display: block;
  height: 132px;
  overflow: hidden;
  border-bottom: 1px solid rgba(7, 23, 17, 0.16);
}

.direction-preview i,
.direction-preview b {
  position: absolute;
  display: block;
}

.direction-preview-precision {
  background: #e8eee9;
}

.direction-preview-precision i:first-child {
  inset: 14px 14px auto;
  height: 7px;
  border-bottom: 1px solid #133f30;
}

.direction-preview-precision i:nth-child(2) {
  top: 40px;
  left: 16px;
  width: 48%;
  height: 41px;
  background: linear-gradient(#0d2a1f 0 9px, transparent 9px 17px, #668477 17px 20px, transparent 20px 28px, #668477 28px 31px, transparent 31px);
}

.direction-preview-precision b {
  right: 15px;
  bottom: 14px;
  width: 34%;
  height: 76px;
  background: linear-gradient(145deg, #0c5139, #d4af37);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%, 0 18%);
}

.direction-preview-editorial {
  background: #f3ead9;
}

.direction-preview-editorial::after {
  position: absolute;
  right: -20px;
  bottom: -38px;
  width: 115px;
  height: 115px;
  border-radius: 50%;
  background: #c98262;
  content: "";
}

.direction-preview-editorial i:first-child {
  top: 18px;
  left: 16px;
  width: 56%;
  height: 42px;
  background: linear-gradient(#453128 0 12px, transparent 12px 20px, #9c7967 20px 23px, transparent 23px 31px, #9c7967 31px 34px, transparent 34px);
}

.direction-preview-editorial i:nth-child(2) {
  right: 19px;
  top: 18px;
  width: 41px;
  height: 41px;
  border: 1px solid #ad735b;
  border-radius: 50%;
}

.direction-preview-editorial b {
  bottom: 16px;
  left: 16px;
  width: 74px;
  height: 24px;
  border-radius: 999px;
  background: #5d7669;
}

.direction-preview-natural {
  background:
    radial-gradient(circle at 82% 22%, rgba(255, 247, 218, 0.8), transparent 29%),
    linear-gradient(145deg, #d8d0b5, #86927b);
}

.direction-preview-natural::before,
.direction-preview-natural::after {
  position: absolute;
  width: 90px;
  height: 130px;
  border: 1px solid rgba(50, 70, 52, 0.45);
  border-radius: 50%;
  content: "";
}

.direction-preview-natural::before {
  right: -20px;
  bottom: -70px;
  transform: rotate(-20deg);
}

.direction-preview-natural::after {
  right: 20px;
  bottom: -88px;
  transform: rotate(28deg);
}

.direction-preview-natural i:first-child {
  top: 19px;
  left: 16px;
  width: 55%;
  height: 38px;
  background: linear-gradient(#263a2d 0 11px, transparent 11px 20px, #566958 20px 23px, transparent 23px 31px, #566958 31px 34px, transparent 34px);
}

.direction-preview-natural i:nth-child(2) {
  bottom: 15px;
  left: 16px;
  width: 67px;
  height: 22px;
  border: 1px solid #344c3b;
  border-radius: 999px;
}

.direction-preview-natural b {
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background: #b99c52;
}

.direction-copy {
  display: flex;
  min-height: 96px;
  padding: 0.85rem;
  flex-direction: column;
  justify-content: center;
}

.direction-copy strong {
  color: var(--cream);
  font-size: 0.82rem;
}

.direction-copy small {
  margin-top: 0.28rem;
  color: #9bb1a4;
  font-size: 0.69rem;
}

.direction-copy mark {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.18rem 0.34rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.media-upload {
  margin-top: 0.5rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}

.media-upload > p:not(.field-error):not(.field-help) {
  color: var(--mist);
  font-size: 0.78rem;
}

.media-drop {
  display: grid !important;
  min-height: 112px;
  padding: 1.2rem;
  place-items: center;
  align-content: center;
  gap: 0.25rem;
  border: 1px dashed rgba(212, 175, 55, 0.56);
  background: rgba(212, 175, 55, 0.055);
  color: var(--gold-light) !important;
  text-align: center;
  cursor: pointer;
}

.media-drop span {
  color: #9bb1a4;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

#personalMedia {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

#personalMedia:focus-visible + .field-help,
.media-drop:focus-within {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

.media-preview-grid {
  display: grid;
  margin-top: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.media-preview-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(4, 16, 12, 0.64);
}

.media-preview-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-preview-card > div {
  padding: 0.7rem;
}

.media-preview-card p {
  overflow: hidden;
  margin: 0 0 0.55rem;
  color: var(--cream);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-preview-card label {
  margin-bottom: 0.28rem;
  font-size: 0.6rem;
}

.media-preview-card select {
  min-height: 42px;
  padding-left: 0.6rem;
  font-size: 0.7rem;
}

.media-remove {
  margin-top: 0.55rem;
  padding: 0.25rem 0;
  border: 0;
  background: transparent;
  color: #f0bdb4;
  font-size: 0.68rem;
  cursor: pointer;
}

.media-rights {
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.summary-list {
  display: grid;
  gap: 0.8rem;
}

.summary-card {
  padding: 1rem;
  border: 1px solid rgba(191, 208, 198, 0.18);
  background: rgba(4, 16, 12, 0.42);
}

.summary-head {
  display: flex;
  padding-bottom: 0.65rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.summary-head h3 {
  margin: 0;
  color: var(--gold-light);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
}

.summary-edit {
  padding: 0.28rem 0;
  border: 0;
  background: transparent;
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.summary-card dl {
  margin: 0;
}

.summary-row {
  display: grid;
  padding: 0.65rem 0;
  grid-template-columns: minmax(110px, 0.34fr) minmax(0, 1fr);
  gap: 0.8rem;
  border-bottom: 1px solid rgba(191, 208, 198, 0.1);
}

.summary-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.summary-row dt {
  color: #9bb1a4;
  font-size: 0.68rem;
  font-weight: 750;
}

.summary-row dd {
  display: flex;
  min-width: 0;
  margin: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  color: #e8efea;
  font-size: 0.75rem;
  white-space: pre-line;
}

.provenance-badge {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 22px;
  padding: 0.24rem 0.42rem;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.54rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.provenance-badge.is-suggested { color: #f0d77a; }
.provenance-badge.is-modified { color: #9fc9ea; }
.provenance-badge.is-confirmed { color: #9dd9b8; }
.provenance-badge.is-verified { color: #d5b8ef; }

.review-legend {
  display: grid;
  margin-top: 1rem;
  padding: 0.9rem;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.5rem 0.7rem;
  border: 1px solid rgba(191, 208, 198, 0.16);
  color: #a7bbb0;
  font-size: 0.68rem;
}

.review-consent {
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.34);
  background: rgba(212, 175, 55, 0.065);
}

.quiz-card[aria-busy="true"] .quiz-actions {
  opacity: 0.76;
}

/* Generation */
.generation-head {
  display: grid;
  max-width: 1050px;
  margin: 0 auto clamp(2.2rem, 5vw, 4.2rem);
  grid-template-columns: minmax(0, 1.45fr) minmax(230px, 0.55fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.generation-head h1 {
  font-size: clamp(3.1rem, 7.5vw, 6.3rem);
}

.progress-orb {
  --progress: 4;
  position: relative;
  display: grid;
  width: min(240px, 70vw);
  aspect-ratio: 1;
  margin: auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--progress) * 1%), rgba(212, 175, 55, 0.12) 0);
  box-shadow: 0 0 85px rgba(212, 175, 55, 0.1);
  transition: background 400ms ease;
}

.progress-orb::before {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 36%, var(--pine-light), var(--ink-deep) 68%);
  content: "";
}

.progress-value {
  position: relative;
  color: var(--cream);
  font-family: var(--display);
  font-size: 3.2rem;
  line-height: 1;
}

.progress-value small {
  color: var(--gold-light);
  font-family: var(--body);
  font-size: 0.72rem;
}

.progress-orb.is-ready .progress-value {
  font-family: var(--body);
  font-size: 1.15rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.generation-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.8fr);
  align-items: start;
  gap: 1.2rem;
}

.build-steps {
  padding: 1.15rem;
}

.build-steps ol {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.45rem;
  list-style: none;
}

.build-step {
  display: grid;
  min-height: 58px;
  padding: 0.68rem 0.75rem;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.78rem;
}

.build-step::before {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(120, 147, 132, 0.45);
  border-radius: 50%;
  content: "";
}

.build-step[data-state="current"] {
  border-color: var(--line);
  background: rgba(212, 175, 55, 0.06);
  color: var(--cream);
}

.build-step[data-state="current"]::before {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
}

.build-step[data-state="done"] {
  color: var(--mist);
}

.build-step[data-state="done"]::before {
  border-color: var(--success);
  color: var(--success);
  content: "✓";
  font-weight: 900;
}

.generation-stage {
  min-height: 360px;
  padding: clamp(1.3rem, 3.5vw, 2.5rem);
}

.stage-message {
  display: grid;
  min-height: 270px;
  place-content: center;
  text-align: center;
}

.stage-message .pulse {
  width: 12px;
  height: 12px;
  margin: 0 auto 1.3rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.5);
  animation: pulse 1.8s ease-out infinite;
}

.stage-message p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--mist);
}

.error-card {
  max-width: 610px;
  margin: 1rem auto;
  padding: 1.2rem;
  border: 1px solid rgba(255, 173, 159, 0.35);
  border-left: 3px solid var(--error);
  background: rgba(255, 173, 159, 0.06);
}

.error-card h2 {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.error-card p {
  margin-bottom: 0;
  color: var(--mist);
  font-size: 0.86rem;
}

.preview-section {
  margin-top: 1.5rem;
}

.preview-topbar {
  display: flex;
  margin-bottom: 0.85rem;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.preview-topbar h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.preview-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
}

.preview-note {
  max-width: 760px;
  color: var(--mist);
}

.browser-frame {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.browser-bar {
  display: flex;
  min-height: 42px;
  padding: 0 0.9rem;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  background: var(--pine);
}

.browser-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(251, 250, 246, 0.32);
}

.browser-bar span {
  margin-left: 0.6rem;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.preview-frame {
  display: block;
  width: 100%;
  height: min(700px, 72vh);
  min-height: 500px;
  border: 0;
  background: #f4f1e9;
}

.verification-notice {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: rgba(212, 175, 55, 0.06);
  color: #e8ddba;
  font-size: 0.82rem;
}

.claim-section {
  max-width: 1050px;
  margin: clamp(4rem, 9vw, 7rem) auto 0;
  scroll-margin-top: 1.5rem;
}

.claim-intro {
  max-width: 760px;
  margin-bottom: 1.6rem;
}

.claim-intro h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.claim-intro p {
  color: var(--mist);
}

.claim-card {
  padding: clamp(1.35rem, 4vw, 2.5rem);
  border-color: var(--line-strong);
}

.claim-card form {
  display: grid;
  max-width: 720px;
  gap: 0.9rem;
}

.claim-card form[aria-busy="true"] {
  opacity: 0.82;
}

.claim-card .consent-row {
  color: var(--mist);
  cursor: pointer;
  font-size: 0.79rem;
  line-height: 1.55;
}

.claim-card .consent-row input:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

.claim-card .button {
  width: fit-content;
  margin-top: 0.5rem;
}

.claim-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 720;
}

.claim-success {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
}

.claim-success-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--success);
  border-radius: 50%;
  background: rgba(126, 211, 165, 0.08);
  color: var(--success);
  font-size: 1.35rem;
  font-weight: 900;
}

.claim-success h3 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
}

.claim-success h3 strong {
  color: var(--gold-light);
}

.claim-success p:last-child {
  margin: 0;
  color: var(--mist);
  font-size: 0.82rem;
}

.calendar-section {
  max-width: 1050px;
  margin: clamp(4rem, 10vw, 8rem) auto 0;
  scroll-margin-top: 1.5rem;
}

.calendar-intro {
  max-width: 740px;
  margin-bottom: 1.6rem;
}

.calendar-intro p {
  color: var(--mist);
}

.calendar-card {
  min-height: 460px;
  overflow: hidden;
  border-color: var(--line-strong);
  background: #ffffff;
}

.cal-disabled {
  display: grid;
  min-height: 460px;
  padding: 2rem;
  place-content: center;
  background: linear-gradient(145deg, #f6f1e5, #e8dfcc);
  color: #173d31;
  text-align: center;
}

.cal-disabled p {
  max-width: 540px;
  margin: 0.5rem auto 0;
}

.cal-disabled .button {
  margin: 1.2rem auto 0;
}

.cal-status {
  min-height: 1.5em;
  margin-top: 0.8rem;
  color: var(--success);
  font-size: 0.82rem;
  font-weight: 750;
  text-align: center;
}

/* Thank-you */
.thanks-shell {
  width: min(980px, calc(100% - 40px));
}

.thanks-hero {
  max-width: 880px;
  margin: 0 auto clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}

.thanks-hero h1 {
  font-size: clamp(3rem, 7.5vw, 6rem);
}

.confirmation-mark {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.3rem;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-light);
  font-size: 1.65rem;
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.12);
}

.retained-draft {
  display: grid;
  margin: 0 auto 1.2rem;
  padding: clamp(1.35rem, 4vw, 2.4rem);
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.retained-draft p {
  margin-bottom: 0;
  color: var(--mist);
}

.preparation-grid {
  display: grid;
  margin-top: 1.2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.preparation-card {
  padding: 1.2rem;
}

.preparation-card .number {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 0.9rem;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
}

.preparation-card p {
  margin-bottom: 0;
  color: var(--mist);
  font-size: 0.84rem;
}

.local-demo-note {
  max-width: 720px;
  margin: 0 auto 1.3rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 173, 159, 0.32);
  background: rgba(255, 173, 159, 0.06);
  color: #ffd1c9;
  font-size: 0.8rem;
  text-align: center;
}

.unconfirmed {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

@keyframes step-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 18px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

@media (max-width: 820px) {
  .generation-head,
  .generation-layout {
    grid-template-columns: 1fr;
  }

  .generation-head {
    text-align: center;
  }

  .generation-head .lede {
    margin-inline: auto;
  }

  .generation-layout {
    gap: 0.8rem;
  }

  .build-steps ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-frame {
    min-height: 560px;
  }

  .preparation-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header,
  .page-shell,
  .quiz-shell,
  .thanks-shell {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    min-height: 70px;
  }

  .brand {
    font-size: 0.64rem;
    letter-spacing: 0.11em;
  }

  .brand-mark {
    width: 27px;
    height: 27px;
  }

  .privacy-badge {
    max-width: 148px;
    padding: 0.35rem 0.55rem;
    justify-content: center;
    font-size: 0.55rem;
    text-align: center;
  }

  .quiz-card {
    min-height: 600px;
    padding: 1.25rem;
  }

  .field-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .direction-grid,
  .media-preview-grid {
    grid-template-columns: 1fr;
  }

  .direction-preview {
    height: 150px;
  }

  .family-recommendation,
  .service-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .recommendation-button,
  .service-controls .button-secondary {
    width: 100%;
    min-height: 44px;
  }

  .summary-row {
    grid-template-columns: 1fr;
    gap: 0.28rem;
  }

  .summary-row dd {
    align-items: flex-start;
    flex-direction: column;
  }

  .field-group.full {
    grid-column: auto;
  }

  .quiz-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .quiz-actions .button,
  .quiz-actions .text-button {
    width: 100%;
    margin-left: 0;
  }

  .trust-line {
    grid-template-columns: 1fr;
  }

  .build-steps ol {
    grid-template-columns: 1fr;
  }

  .preview-topbar,
  .retained-draft {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .preview-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .preview-topbar .button-secondary,
  .preview-actions .button,
  .preview-actions .button-secondary,
  .claim-card .button,
  .retained-draft .button {
    width: 100%;
  }

  .preview-frame {
    height: 64vh;
    min-height: 480px;
  }

  .claim-success {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .claim-success-mark {
    margin-inline: auto;
  }

  .calendar-card,
  .cal-disabled {
    min-height: 520px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: rgba(240, 215, 122, 0.65);
    --muted: #acc3b6;
  }
}
