@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --cream: #f4eee2;
  --cream-light: #fbf6ed;
  --paper: #fffaf1;
  --ink: #2d2b24;
  --muted: #6d685d;
  --sage: #6f765f;
  --sage-dark: #515842;
  --line: rgba(75, 70, 55, 0.16);
  --shadow: 0 22px 70px rgba(44, 38, 28, 0.12);
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--cream-light), var(--cream));
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
p { color: var(--muted); }
button, textarea, input { font: inherit; }

.site-header {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 26px 42px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.72);
  backdrop-filter: blur(10px);
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-main {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -.04em;
}

.logo-sub {
  margin-top: 4px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .22em;
}

.main-nav {
  display: flex;
  gap: 26px;
  padding-top: 14px;
  font-size: .95rem;
}

.main-nav a:hover { color: var(--sage-dark); }

.orientation-main {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
  padding: 70px 24px 90px;
  background:
    radial-gradient(circle at 14% 18%, rgba(111,118,95,.12), transparent 18rem),
    radial-gradient(circle at 88% 78%, rgba(232,220,200,.72), transparent 22rem),
    linear-gradient(180deg, var(--cream-light), var(--cream));
}

.questionnaire {
  width: min(800px, 100%);
  min-height: 590px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.questionnaire__header {
  padding: 28px 46px 0;
}

.progress__labels {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}

.progress__track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(111,118,95,.14);
}

.progress__bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--sage);
  transition: width 240ms ease;
}

#app {
  flex: 1;
  display: flex;
}

.screen {
  width: 100%;
  padding: 48px 52px 52px;
  animation: appear 220ms ease;
}

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

.screen--intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .76rem;
  font-weight: 700;
}

h1, h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.04em;
}

h1 { font-size: clamp(3rem, 7vw, 5rem); }
h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); }

.intro {
  max-width: 660px;
  margin-top: 28px;
  font-size: 1.02rem;
}

.intro p { margin: 0 0 12px; }

.duration,
.helper,
.question__context {
  color: var(--muted);
  font-size: .92rem;
}

.duration { margin: 18px 0 28px; }
.question__context { margin: 14px 0 0; }

.answers {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.answer {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.52);
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.answer:hover {
  border-color: var(--sage);
  transform: translateY(-1px);
}

.answer:has(input:checked) {
  border-color: var(--sage);
  background: rgba(111,118,95,.11);
}

.answer input {
  width: 19px;
  height: 19px;
  margin: 3px 0 0;
  accent-color: var(--sage);
  flex: 0 0 auto;
}

.answer span { flex: 1; }

.textarea {
  width: 100%;
  min-height: 150px;
  margin-top: 28px;
  padding: 16px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255,255,255,.62);
}

.textarea:focus,
.answer:focus-within {
  outline: 3px solid rgba(111,118,95,.15);
  outline-offset: 2px;
  border-color: var(--sage);
}

.actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 32px;
}

.button,
.link-button {
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 7px;
  background: var(--sage);
  color: white;
  cursor: pointer;
  font-family: Inter, system-ui, sans-serif;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
  transition: background 150ms ease, transform 150ms ease;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button:hover,
.link-button:hover { background: var(--sage-dark); transform: translateY(-1px); }

.button--secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.button--secondary:hover {
  border-color: var(--sage);
  background: rgba(111,118,95,.08);
}

.error {
  min-height: 24px;
  margin: 12px 0 0;
  color: #8b433f;
  font-size: .9rem;
}

.result { max-width: 660px; }

.result__label {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(111,118,95,.12);
  color: var(--sage-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.result p {
  margin: 18px 0 0;
  font-size: 1.02rem;
}

.result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.result__note {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .88rem !important;
}

.noscript {
  margin: 20px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream-light);
}

.container { max-width: 1120px; margin: 0 auto; }

footer {
  padding: 42px 32px;
  background: #2d3027;
  color: rgba(255,255,255,.78);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-email { color: rgba(255,255,255,.72); }

@media (max-width: 900px) {
  .site-header { padding: 22px; }
  .main-nav { display: none; }
}

@media (max-width: 620px) {
  .orientation-main { padding: 0; place-items: stretch; }

  .questionnaire {
    min-height: calc(100vh - 101px);
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .questionnaire__header { padding: 24px 22px 0; }
  .screen { padding: 38px 22px 42px; }
  h1 { font-size: 3.1rem; }
  h2 { font-size: 2.45rem; }

  .actions { align-items: stretch; }
  .button { flex: 1; padding-inline: 13px; }

  footer { padding: 34px 22px; }
}
