:root {
  --sand: #f7efe6;
  --cream: #fffaf4;
  --cream-strong: #fffdf9;
  --ink: #221d1f;
  --muted: #6b6265;
  --line: rgba(34, 29, 31, 0.12);
  --deep: #173934;
  --deep-soft: #255049;
  --accent: #d76a45;
  --accent-dark: #ab4829;
  --gold: #efc471;
  --card-shadow: 0 24px 60px rgba(34, 29, 31, 0.12);
  --soft-shadow: 0 16px 34px rgba(34, 29, 31, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(239, 196, 113, 0.18), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(215, 106, 69, 0.12), transparent 24%),
    linear-gradient(180deg, #f8f0e7 0%, #f7efe6 100%);
  font-family: "Onest", "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(34, 29, 31, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 29, 31, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

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

h1,
h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 12.5ch;
  margin-bottom: 24px;
  font-size: clamp(3rem, 6vw, 5.4rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 4.3vw, 4rem);
}

h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
  line-height: 1.25;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

#format,
#directions,
#flow,
#quiz,
#faq,
#legal {
  scroll-margin-top: 120px;
}

.site-header {
  position: fixed;
  top: 18px;
  right: 0;
  left: 0;
  z-index: 50;
  pointer-events: none;
}

.header-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 74px;
  padding: 10px 12px 10px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(23, 57, 52, 0.84);
  border: 1px solid rgba(255, 250, 244, 0.16);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(17, 18, 20, 0.18);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled .header-shell {
  background: rgba(23, 57, 52, 0.94);
  box-shadow: 0 24px 50px rgba(17, 18, 20, 0.22);
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
}

.brand img {
  width: 236px;
  height: auto;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  color: rgba(255, 250, 244, 0.78);
  font-size: 0.96rem;
  white-space: nowrap;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 250, 244, 0.10);
  outline: 0;
}

.button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: 0;
}

.button-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 16px 30px rgba(215, 106, 69, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
  box-shadow: 0 20px 36px rgba(171, 72, 41, 0.32);
}

.button-secondary {
  color: var(--deep);
  background: rgba(255, 250, 244, 0.72);
  border-color: rgba(23, 57, 52, 0.12);
  box-shadow: var(--soft-shadow);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 250, 244, 0.92);
  border-color: rgba(23, 57, 52, 0.2);
}

.button-small {
  min-height: 48px;
  padding: 12px 20px;
  color: var(--deep);
  background: var(--gold);
  white-space: nowrap;
}

.button-small:hover,
.button-small:focus-visible {
  background: #f6d28d;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-dark);
  font-weight: 700;
  border-bottom: 1px solid rgba(171, 72, 41, 0.3);
  transition: color 180ms ease, border-color 180ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--deep);
  border-color: rgba(23, 57, 52, 0.35);
  outline: 0;
}

.text-link-light {
  color: #f8ddaa;
  border-color: rgba(248, 221, 170, 0.42);
}

.text-link-light:hover,
.text-link-light:focus-visible {
  color: #fff;
  border-color: rgba(255, 250, 244, 0.52);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-dark);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  padding: 142px 0 56px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 130px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 29, 31, 0.08), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 48px;
  align-items: center;
}

.hero-lead {
  max-width: 58ch;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-points span {
  padding: 12px 16px;
  background: rgba(255, 250, 244, 0.72);
  border: 1px solid rgba(34, 29, 31, 0.08);
  border-radius: 999px;
  box-shadow: var(--soft-shadow);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-note,
.note,
.consent-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-media {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.media-card {
  overflow: hidden;
  border: 1px solid rgba(34, 29, 31, 0.08);
  background: var(--cream-strong);
  box-shadow: var(--card-shadow);
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card-main {
  grid-column: 1 / -1;
  aspect-ratio: 1.35 / 1;
  border-radius: 36px 36px 18px 36px;
  transform: rotate(-1.4deg);
}

.media-card-main img {
  object-position: center 34%;
}

.media-card-route {
  min-height: 250px;
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 18px 34px 18px 28px;
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.96), rgba(255, 245, 236, 0.9));
}

.media-copy {
  padding: 18px 18px 10px;
}

.media-copy p {
  margin-bottom: 0;
}

.media-label {
  margin-bottom: 8px !important;
  color: var(--deep-soft);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.media-card-route img {
  min-height: 160px;
  object-position: center 36%;
}

.media-card-worker {
  position: relative;
  min-height: 250px;
  border-radius: 34px 18px 34px 18px;
}

.media-card-worker img {
  object-position: center 30%;
}

.media-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  max-width: 250px;
  padding: 14px 16px;
  color: #fff;
  background: rgba(23, 57, 52, 0.82);
  border: 1px solid rgba(255, 250, 244, 0.12);
  border-radius: 20px;
  backdrop-filter: blur(12px);
}

.media-badge strong,
.ribbon-item strong,
.fit-card strong,
.flow-step strong,
.quiz-side-list strong {
  display: block;
  margin-bottom: 6px;
}

.hero-ribbon {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ribbon-item {
  padding: 22px 22px 20px;
  background: rgba(255, 250, 244, 0.76);
  border: 1px solid rgba(34, 29, 31, 0.08);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
}

.ribbon-item span {
  color: var(--muted);
}

.section {
  padding: 98px 0;
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 32px;
}

.section-lead {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-lead-light {
  color: rgba(255, 250, 244, 0.72);
}

.fit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
}

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

.fit-card,
.check-item,
.legal-card,
.details-panel,
.simple-note,
.content-card,
.thanks-step {
  padding: 22px;
  background: rgba(255, 250, 244, 0.72);
  border: 1px solid rgba(34, 29, 31, 0.08);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
}

.fit-card p,
.details-panel p,
.legal-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.fit-aside {
  overflow: hidden;
  background: var(--cream-strong);
  border: 1px solid rgba(34, 29, 31, 0.08);
  border-radius: 34px 20px 34px 20px;
  box-shadow: var(--card-shadow);
}

.fit-aside-photo {
  aspect-ratio: 0.82 / 1;
}

.fit-aside-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}

.fit-aside-copy {
  padding: 22px;
}

.aside-label {
  margin: 0 0 10px;
  color: var(--deep-soft);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.directions-section {
  background:
    radial-gradient(circle at 12% 0%, rgba(239, 196, 113, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(255, 253, 249, 0.7), rgba(255, 253, 249, 0.94));
}

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

.direction-card {
  overflow: hidden;
  background: var(--cream-strong);
  border: 1px solid rgba(34, 29, 31, 0.08);
  border-radius: 34px 18px 30px 18px;
  box-shadow: var(--card-shadow);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.direction-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 64px rgba(34, 29, 31, 0.16);
}

.direction-card:nth-child(2n) {
  border-radius: 18px 34px 18px 30px;
}

.direction-image {
  aspect-ratio: 1.45 / 1;
  overflow: hidden;
}

.direction-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.direction-image-warehouse img {
  object-position: center 28%;
}

.direction-image-care img {
  object-position: center 36%;
}

.direction-image-hotel img {
  object-position: center 36%;
}

.direction-image-factory img {
  object-position: center 42%;
}

.direction-body {
  padding: 24px;
}

.direction-kicker {
  margin-bottom: 10px;
  color: var(--deep-soft);
  font-size: 0.92rem;
  font-weight: 800;
}

.direction-income {
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-row span {
  padding: 8px 12px;
  color: var(--deep);
  background: rgba(23, 57, 52, 0.08);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

.section-cta {
  margin-top: 28px;
}

.flow-section {
  color: #fff;
  background:
    radial-gradient(circle at 10% 20%, rgba(239, 196, 113, 0.18), transparent 18%),
    linear-gradient(135deg, #173934 0%, #1a4540 100%);
}

.flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
}

.flow-steps {
  display: grid;
  gap: 14px;
}

.flow-step {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px;
  color: var(--ink);
  background: rgba(255, 250, 244, 0.92);
  border: 1px solid rgba(255, 250, 244, 0.3);
  border-radius: 24px;
}

.flow-step span {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  color: var(--deep);
  background: var(--gold);
  border-radius: 18px;
  font-weight: 800;
}

.flow-step p {
  margin-bottom: 0;
  color: var(--muted);
}

.details-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 36px;
  align-items: start;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.check-item {
  position: relative;
  padding-left: 54px;
}

.check-item::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 22px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 22%, var(--accent) 24% 100%);
  box-shadow: 0 0 0 6px rgba(215, 106, 69, 0.16);
}

.details-panel {
  background: linear-gradient(180deg, rgba(255, 247, 238, 0.96), rgba(255, 250, 244, 0.92));
}

.quiz-section {
  background:
    radial-gradient(circle at 88% 18%, rgba(23, 57, 52, 0.12), transparent 20%),
    linear-gradient(180deg, #fff8f0 0%, #f4e3d5 100%);
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 28px;
  align-items: start;
}

.quiz-aside {
  padding: 28px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(239, 196, 113, 0.16), transparent 26%),
    linear-gradient(160deg, #173934 0%, #1f4a43 100%);
  border-radius: 34px 20px 34px 20px;
  box-shadow: var(--card-shadow);
}

.quiz-aside .eyebrow {
  color: #f2d49b;
}

.quiz-aside p:not(.eyebrow) {
  color: rgba(255, 250, 244, 0.76);
}

.quiz-side-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.quiz-side-list div {
  padding: 16px 18px;
  background: rgba(255, 250, 244, 0.08);
  border: 1px solid rgba(255, 250, 244, 0.12);
  border-radius: 20px;
}

.quiz-side-list span {
  color: rgba(255, 250, 244, 0.72);
}

.quiz-card {
  padding: 30px;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid rgba(34, 29, 31, 0.08);
  border-radius: 34px;
  box-shadow: var(--card-shadow);
}

.quiz-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.quiz-counter {
  flex: 0 0 auto;
  margin: 0;
  padding: 10px 14px;
  color: var(--deep);
  background: rgba(23, 57, 52, 0.08);
  border-radius: 999px;
  font-weight: 700;
}

.quiz-progress {
  height: 10px;
  margin: 26px 0 30px;
  overflow: hidden;
  background: rgba(23, 57, 52, 0.08);
  border-radius: 999px;
}

.quiz-progress span {
  display: block;
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: inherit;
  transition: width 240ms ease;
}

.quiz-step {
  animation: quizEnter 240ms ease both;
}

.quiz-step h3 {
  margin-bottom: 18px;
}

.quiz-final-copy {
  margin-bottom: 20px;
  color: var(--muted);
}

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

.answer-option {
  width: 100%;
  min-height: 66px;
  padding: 16px 18px;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 250, 244, 0.66);
  border: 1px solid rgba(34, 29, 31, 0.1);
  border-radius: 20px;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.answer-option:hover,
.answer-option:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 250, 244, 0.92);
  border-color: rgba(23, 57, 52, 0.2);
  box-shadow: var(--soft-shadow);
  outline: 0;
}

.answer-option.is-selected {
  color: #fff;
  background: linear-gradient(135deg, var(--deep), var(--deep-soft));
  border-color: rgba(23, 57, 52, 0.34);
  box-shadow: 0 16px 30px rgba(23, 57, 52, 0.22);
}

.quiz-back {
  margin-top: 18px;
  padding: 0;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(107, 98, 101, 0.34);
  cursor: pointer;
  font-weight: 700;
}

.quiz-back:hover,
.quiz-back:focus-visible {
  color: var(--deep);
  border-color: rgba(23, 57, 52, 0.3);
  outline: 0;
}

.quiz-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.summary-row {
  padding: 14px 16px;
  background: rgba(23, 57, 52, 0.06);
  border: 1px solid rgba(23, 57, 52, 0.1);
  border-radius: 18px;
}

.summary-row strong {
  display: block;
  margin-bottom: 4px;
  color: var(--deep);
}

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

.form-grid label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.form-grid input {
  width: 100%;
  min-height: 58px;
  padding: 15px 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(34, 29, 31, 0.12);
  border-radius: 18px;
}

.form-grid input:focus {
  border-color: rgba(23, 57, 52, 0.3);
  outline: 3px solid rgba(23, 57, 52, 0.1);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.consent-note a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-section {
  background: rgba(255, 253, 249, 0.72);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
  background: rgba(255, 250, 244, 0.82);
  border: 1px solid rgba(34, 29, 31, 0.08);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
}

.faq-question {
  width: 100%;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink);
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

.faq-question:hover,
.faq-question:focus-visible {
  outline: 0;
  color: var(--deep);
}

.faq-marker {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.faq-marker::before,
.faq-marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: translateY(-50%);
  transition: transform 180ms ease, opacity 180ms ease;
}

.faq-marker::after {
  transform: translateY(-50%) rotate(90deg);
}

.faq-question[aria-expanded="true"] .faq-marker::after {
  transform: translateY(-50%) rotate(0deg);
  opacity: 0;
}

.faq-answer {
  padding: 0 22px 20px;
  color: var(--muted);
}

.faq-answer p {
  margin-bottom: 0;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 320px;
  gap: 34px;
  align-items: start;
}

.legal-card p {
  margin-bottom: 8px;
}

.legal-card p:last-of-type {
  margin-bottom: 18px;
}

.site-footer {
  padding: 44px 0 52px;
  color: rgba(255, 250, 244, 0.82);
  background:
    radial-gradient(circle at 88% 10%, rgba(239, 196, 113, 0.12), transparent 16%),
    #162e2a;
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) 180px;
  gap: 30px;
  align-items: start;
}

.footer-brand img {
  width: 250px;
  margin-bottom: 18px;
}

.footer-brand p,
.footer-copy p {
  margin-bottom: 10px;
}

.footer-meta {
  display: grid;
  gap: 10px;
}

.footer-meta a {
  color: #f8ddaa;
  font-weight: 700;
}

.simple-page {
  background:
    radial-gradient(circle at top left, rgba(239, 196, 113, 0.16), transparent 24%),
    linear-gradient(180deg, #f8f0e7 0%, #f6ede3 100%);
}

.simple-main {
  padding: 138px 0 76px;
}

.simple-hero {
  padding: 46px 0 30px;
}

.simple-panel {
  width: min(860px, 100%);
}

.simple-panel h1 {
  max-width: 13ch;
}

.content-section {
  padding: 24px 0 90px;
}

.content-body {
  width: min(920px, 100%);
}

.content-body h2 {
  margin-top: 34px;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
}

.content-body h3 {
  margin-top: 28px;
}

.content-body p,
.content-body li {
  color: var(--muted);
}

.content-body ul {
  padding-left: 22px;
}

.content-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.content-card p,
.thanks-step p {
  margin-bottom: 0;
  color: var(--muted);
}

.thanks-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.simple-note {
  margin-top: 24px;
}

.reveal,
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 520ms ease, transform 520ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible,
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

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

@media (max-width: 1080px) {
  .hero-grid,
  .fit-layout,
  .details-layout,
  .quiz-layout,
  .legal-layout,
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .fit-aside {
    max-width: 420px;
  }

  .fit-aside-photo {
    aspect-ratio: 1.2 / 1;
  }
}

@media (max-width: 920px) {
  .header-shell {
    flex-wrap: wrap;
    gap: 10px 14px;
    border-radius: 34px;
  }

  .brand {
    flex: 1 1 auto;
  }

  .main-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    padding-top: 2px;
  }

  .hero-media,
  .direction-grid,
  .check-grid,
  .content-card-grid,
  .answer-list,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

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

  .site-header {
    top: 10px;
  }

  #format,
  #directions,
  #flow,
  #quiz,
  #faq,
  #legal {
    scroll-margin-top: 168px;
  }

  .header-shell {
    min-height: 68px;
    padding: 10px 10px 12px;
  }

  .brand img {
    width: 198px;
  }

  .button-small {
    min-height: 44px;
    padding: 11px 16px;
    font-size: 0.92rem;
  }

  .main-nav {
    gap: 2px;
    font-size: 0.88rem;
  }

  .main-nav a {
    padding: 8px 10px;
  }

  .hero {
    padding-top: 152px;
  }

  .hero-ribbon,
  .fit-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 74px 0;
  }

  .quiz-card,
  .quiz-aside,
  .fit-card,
  .check-item,
  .details-panel,
  .legal-card,
  .content-card,
  .thanks-step {
    padding: 20px;
  }

  .flow-step {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 18px;
  }

  .flow-step span {
    width: 48px;
    height: 48px;
  }

  .simple-main {
    padding-top: 132px;
  }

  .content-section {
    padding-bottom: 70px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 2.72rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .button,
  .hero-actions .button,
  .thanks-actions .button {
    width: 100%;
  }

  .hero-actions,
  .form-actions,
  .thanks-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .header-shell {
    border-radius: 28px;
  }

  .hero-points span,
  .tag-row span {
    width: 100%;
  }

  .faq-question {
    padding: 18px;
  }

  .faq-answer {
    padding: 0 18px 18px;
  }
}
