:root {
  --ink: #151512;
  --paper: #f7f7f2;
  --white: #ffffff;
  --gold: #b59654;
  --gold-dark: #826c3f;
  --green: #4e6658;
  --green-pale: #dfe6df;
  --grey: #e8e8e2;
  --muted: #66675f;
  --danger: #9b3e35;
  --shadow: 0 22px 60px rgba(20, 20, 15, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(181, 150, 84, 0.13), transparent 31rem),
    linear-gradient(140deg, #fbfbf7 0%, #f2f3ed 100%);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(21, 21, 18, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.83rem;
  letter-spacing: 0.06em;
}

.brand-name {
  font-weight: 750;
  letter-spacing: 0.15em;
}

.brand-name i {
  color: var(--gold-dark);
  font-style: normal;
}

.header-note {
  color: var(--muted);
  font-size: 0.9rem;
}

main {
  flex: 1;
}

.intro-screen {
  min-height: calc(100vh - 174px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
  padding: 70px 0 80px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 6vw, 5.9rem);
  letter-spacing: -0.045em;
}

.lede {
  max-width: 650px;
  margin: 28px 0 0;
  color: #4e4f49;
  font-size: clamp(1.06rem, 1.8vw, 1.27rem);
  line-height: 1.65;
}

.intro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 34px;
}

.intro-meta span {
  padding: 9px 13px;
  border: 1px solid rgba(21, 21, 18, 0.14);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.56);
  font-size: 0.85rem;
}

.primary-button,
.secondary-button,
.owner-button {
  min-height: 52px;
  padding: 0 23px;
  border-radius: 5px;
  font-weight: 750;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.primary-button {
  border: 1px solid var(--ink);
  color: var(--white);
  background: var(--ink);
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-1px);
  background: #292921;
}

.secondary-button {
  border: 1px solid rgba(21, 21, 18, 0.2);
  color: var(--ink);
  background: transparent;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  background: var(--white);
}

.owner-button {
  border: 1px solid var(--green);
  color: var(--green);
  background: transparent;
}

.owner-button:hover,
.owner-button:focus-visible {
  color: var(--white);
  background: var(--green);
}

.privacy-note {
  margin: 18px 0 0;
  color: #77786f;
  font-size: 0.82rem;
  line-height: 1.5;
}

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

.intro-visual {
  position: relative;
  min-height: 510px;
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(13, 22, 17, 0.2), rgba(13, 22, 17, 0.9)),
    linear-gradient(45deg, #4e6658, #879287 48%, #c4b27e);
  box-shadow: var(--shadow);
}

.intro-visual::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 250px;
  left: -90px;
  bottom: -75px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  transform: rotate(-11deg);
}

.intro-visual::after {
  content: "CURATED · CONSIDERED · PERSONAL";
  position: absolute;
  left: 34px;
  bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.visual-card {
  position: absolute;
  width: 220px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
}

.visual-card span {
  color: #ecd59e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.visual-card p {
  margin: 18px 0 0;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.visual-card-one {
  top: 46px;
  right: 36px;
}

.visual-card-two {
  top: 190px;
  left: 34px;
}

.visual-card-three {
  right: 34px;
  bottom: 82px;
}

.form-screen {
  width: min(820px, 100%);
  min-height: calc(100vh - 174px);
  margin: 0 auto;
  padding: 56px 0 72px;
}

.progress-wrap {
  margin-bottom: 54px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.progress-track {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--grey);
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
  transition: width 260ms ease;
}

.question-card {
  min-height: 400px;
  animation: enter 260ms ease both;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question-number {
  margin: 0 0 16px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.question-card h2 {
  max-width: 780px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.025em;
}

.question-hint {
  max-width: 700px;
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice label {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid #d8d8d0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  line-height: 1.42;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.choice label::before {
  content: "";
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 1px solid #a5a69e;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 5px var(--white);
}

.choice input:checked + label {
  border-color: var(--green);
  background: #eef2ee;
  box-shadow: 0 0 0 1px var(--green);
}

.choice input:checked + label::before {
  border-color: var(--green);
  background: var(--green);
}

.choice input:focus-visible + label {
  outline: 3px solid rgba(181, 150, 84, 0.28);
  outline-offset: 2px;
}

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

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.field label {
  font-size: 0.9rem;
  font-weight: 720;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  border: 1px solid #cfcfc7;
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  outline: none;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(78, 102, 88, 0.14);
}

.conditional-fields {
  margin-top: 20px;
  padding: 20px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.62);
}

.group-summary {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 6px;
  color: var(--green);
  background: var(--green-pale);
  font-weight: 700;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(21, 21, 18, 0.12);
}

.form-error {
  min-height: 24px;
  margin: 6px 0 10px;
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 700;
}

.review-card {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.review-row {
  display: grid;
  grid-template-columns: minmax(135px, 0.35fr) minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid #dfdfd7;
}

.review-row dt {
  color: var(--muted);
  font-size: 0.86rem;
}

.review-row dd {
  margin: 0;
  font-weight: 650;
  line-height: 1.45;
}

.success-screen {
  width: min(760px, 100%);
  min-height: calc(100vh - 174px);
  margin: 0 auto;
  padding: 84px 0;
  text-align: center;
}

.success-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 26px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-size: 1.5rem;
}

.success-screen h2 {
  font-size: clamp(2.2rem, 5vw, 4.1rem);
}

.success-screen > p:not(.eyebrow) {
  max-width: 640px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
}

.reference-number {
  display: inline-block;
  margin-top: 18px !important;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--green) !important;
  background: var(--green-pale);
  font-size: 0.84rem !important;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.success-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.owner-assessment {
  margin-top: 36px;
  padding: 26px;
  border: 1px solid #cfd7cf;
  border-radius: 8px;
  text-align: left;
  background: #f1f4f1;
}

.assessment-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.assessment-heading h3 {
  font-size: 1.8rem;
}

.classification-pill {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--green);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.score-box {
  padding: 16px;
  border-radius: 6px;
  background: var(--white);
}

.score-box span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.score-box strong {
  display: block;
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 500;
}

.assessment-list {
  margin: 20px 0 0;
  padding-left: 20px;
  color: #484a44;
  line-height: 1.55;
}

footer {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(21, 21, 18, 0.12);
  color: var(--muted);
  font-size: 0.8rem;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 880px) {
  .intro-screen {
    grid-template-columns: 1fr;
  }

  .intro-visual {
    min-height: 360px;
  }

  .visual-card {
    width: 190px;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 28px, 1180px);
  }

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

  .header-note {
    display: none;
  }

  .intro-screen {
    min-height: auto;
    padding: 54px 0 64px;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }

  .intro-visual {
    min-height: 330px;
  }

  .visual-card {
    width: 176px;
    padding: 16px;
  }

  .visual-card-one {
    top: 28px;
    right: 18px;
  }

  .visual-card-two {
    top: 142px;
    left: 18px;
  }

  .visual-card-three {
    right: 18px;
    bottom: 55px;
  }

  .form-screen {
    padding: 36px 0 56px;
  }

  .progress-wrap {
    margin-bottom: 38px;
  }

  .question-card {
    min-height: 390px;
  }

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

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

  .choice label {
    align-items: flex-start;
  }

  .review-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .form-actions button {
    flex: 1;
  }

  footer {
    min-height: 100px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
  }
}

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