:root {
  --ink: #243f37;
  --paper: #fbf8f0;
  --green: #315c4b;
  --green-dark: #1d4032;
  --leaf: #7ea46a;
  --lime: #e6edac;
  --pink: #f4d9d3;
  --lilac: #e7ddf0;
  --blue: #d5e2da;
  --line: rgba(36, 63, 55, 0.16);
  --muted: #61705f;
  --white: #fffdf8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
}

body,
button,
a {
  letter-spacing: 0;
}

button,
a {
  touch-action: manipulation;
}

button {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #bd713a;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  border-radius: 4px;
  background: var(--green-dark);
  color: white;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 240, 0.96);
}

.header-inner {
  display: flex;
  min-height: 78px;
  max-width: 1180px;
  margin: auto;
  padding: 14px 28px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
}

.brand span {
  display: grid;
  gap: 2px;
}

.brand strong {
  font-family: "Coming Soon", cursive;
  font-size: 18px;
}

.brand small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  font-size: 13px;
  font-weight: 700;
}

.site-links a {
  text-decoration: none;
}

.site-links a:hover {
  color: var(--leaf);
}

.site-links .header-cta {
  border-radius: 999px;
  background: var(--green);
  color: white;
  padding: 10px 16px;
}

.site-links .header-cta:hover {
  background: var(--green-dark);
  color: white;
}

#quiz-app {
  max-width: 1100px;
  min-height: 620px;
  margin: auto;
  padding: 58px 28px 34px;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  margin: 24px 0;
  font-size: clamp(44px, 6.3vw, 76px);
  line-height: 1.04;
}

h1 em {
  color: #638044;
}

p {
  line-height: 1.7;
}

.quiz-hero {
  display: grid;
  min-height: 465px;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 42px;
}

.hero-copy {
  min-width: 0;
}

.lede {
  max-width: 470px;
  color: #5c6b5f;
  font-size: 17px;
}

.hero-thought {
  margin: -0.25rem 0 0.75rem;
  color: var(--green-700);
  font-family: "Coming Soon", cursive;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
}

.pill,
.eyebrow,
.tiny {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pill {
  display: inline-flex;
  border: 1px solid rgba(62, 92, 61, 0.28);
  border-radius: 999px;
  padding: 8px 13px;
}

.eyebrow {
  margin: 0 0 9px;
  color: #668f55;
}

.primary,
.text-button {
  display: inline-flex;
  border: 0;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--green);
  color: white;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: background 150ms ease, transform 150ms ease;
}

.primary {
  padding: 17px 26px;
  font-size: 16px;
}

.text-button {
  padding: 13px 19px;
  font-size: 14px;
}

.primary:hover,
.text-button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.primary:disabled {
  cursor: default;
  opacity: 0.42;
  transform: none;
}

.under {
  margin-top: 14px;
  color: #718070;
  font-size: 12px;
}

.collage {
  position: relative;
  width: 100%;
  height: 445px;
  max-width: 500px;
  margin-left: auto;
}

.tile {
  position: absolute;
  display: flex;
  width: 43%;
  height: 198px;
  border: 5px solid var(--paper);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: 0 10px 26px rgba(33, 59, 38, 0.08);
}

.tile .symbol {
  font-size: 76px;
  filter: drop-shadow(2px 5px 2px rgba(0, 0, 0, 0.12));
}

.tile span:last-child {
  margin-top: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.t1 {
  left: 2%;
  top: 12px;
  background: var(--lime);
  transform: rotate(-6deg);
}

.t2 {
  right: 3%;
  top: 38px;
  background: var(--pink);
  transform: rotate(6deg);
}

.t3 {
  left: 11%;
  bottom: 5px;
  background: var(--blue);
  transform: rotate(4deg);
}

.t4 {
  right: 0;
  bottom: -4px;
  background: var(--lilac);
  transform: rotate(-5deg);
}

.sticker {
  position: absolute;
  z-index: 2;
  left: 36%;
  top: 40%;
  display: grid;
  width: 120px;
  height: 106px;
  border: 1px solid var(--green);
  border-radius: 8px;
  place-content: center;
  background: var(--paper);
  font-family: Georgia, serif;
  font-size: 19px;
  font-style: italic;
  text-align: center;
  transform: rotate(-8deg);
}

.trust-strip {
  display: flex;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding: 23px 0 0;
  justify-content: space-between;
  gap: 18px;
  color: #667363;
  font-size: 13px;
}

.trust-strip span::before {
  margin-right: 7px;
  color: var(--leaf);
  content: "✦";
}

.question,
.result {
  max-width: 820px;
  margin: auto;
}

.qtop {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  font-weight: 700;
}

.track {
  height: 5px;
  margin: 16px 0 38px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e6d9;
}

.fill {
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 300ms ease;
}

.question h2 {
  margin: 15px 0;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.16;
}

.hint {
  margin: 0 0 27px;
  color: #74806e;
}

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

.option {
  display: flex;
  min-height: 108px;
  border: 1px solid #d8decf;
  border-radius: 8px;
  padding: 21px;
  align-items: center;
  gap: 17px;
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.option:hover {
  border-color: #60815b;
  background: #f0f3df;
  transform: translateY(-2px);
}

.option.selected {
  border: 2px solid var(--green);
  padding: 20px;
  background: #e9efcf;
}

.emoji {
  flex-shrink: 0;
  font-size: 33px;
}

.option strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.option small {
  display: block;
  color: #6b7769;
  font-size: 13px;
  line-height: 1.5;
}

.quiz-nav {
  display: flex;
  margin-top: 27px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.textbtn {
  border: 0;
  background: transparent;
  color: #536a59;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 12px;
}

.textbtn:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.result {
  text-align: center;
}

.result h1 {
  font-size: clamp(42px, 7vw, 63px);
}

.result .intro {
  max-width: 620px;
  margin: 0 auto 27px;
  color: var(--muted);
}

.result-card {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  border: 1px solid #d3ddc2;
  border-radius: 8px;
  padding: 34px;
  align-items: center;
  gap: 25px;
  background: #e6ecd5;
  text-align: left;
}

.bigicon {
  font-size: 86px;
  text-align: center;
}

.result-card h2 {
  margin: 7px 0 12px;
  font-size: 38px;
}

.result-card p {
  margin: 10px 0 20px;
}

.result-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.result-actions .detail-link {
  font-size: 13px;
  font-weight: 800;
}

.booking-note {
  margin: 10px 0 0 !important;
  color: #5c6b5f;
  font-size: 11px;
}

.experience-note {
  margin-top: 20px;
  border: 1px solid #dde1d1;
  border-radius: 8px;
  padding: 18px 22px;
  background: var(--white);
  font-size: 14px;
  text-align: left;
}

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

.alt {
  border: 1px solid #d9dece;
  border-radius: 8px;
  padding: 22px;
  background: var(--white);
  text-align: left;
}

.alt h3 {
  margin: 9px 0;
  font-size: 23px;
}

.alt p {
  font-size: 14px;
}

.alt-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.alt-links a,
.alt-links button {
  padding: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.alt-links button {
  border: 0;
  background: none;
  cursor: pointer;
  text-decoration: underline;
}

.tools {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.share-status {
  min-height: 20px;
  font-size: 12px;
}

.disclaimer {
  max-width: 600px;
  margin: 20px auto;
  color: #74806e;
  font-size: 12px;
}

.all-matches {
  margin-top: 28px;
  border-top: 1px solid #d8dece;
  padding-top: 18px;
  text-align: left;
}

.all-matches summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.catalog {
  display: flex;
  margin-top: 17px;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog button {
  border: 1px solid #d5ddcf;
  border-radius: 999px;
  padding: 8px 12px;
  background: white;
  cursor: pointer;
  font-size: 12px;
}

.catalog button:hover {
  background: var(--lime);
}

.seo-intro,
.lesson-catalog,
.how-to-choose,
.faq-section {
  padding: 78px 28px;
}

.seo-intro,
.how-to-choose {
  border-top: 1px solid var(--line);
  background: #fffdfa;
}

.lesson-catalog {
  border-top: 1px solid var(--line);
  background: #eef3e8;
}

.faq-section {
  border-top: 1px solid var(--line);
  background: #f7eee9;
}

.section-inner {
  max-width: 1100px;
  margin: auto;
}

.section-inner.narrow {
  max-width: 820px;
}

.section-inner h2 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.14;
}

.section-inner .lead {
  max-width: 800px;
  color: #4f6557;
  font-size: 18px;
}

.split-content {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  align-items: start;
  gap: 52px;
}

.human-help {
  border-left: 4px solid var(--leaf);
  padding: 4px 0 4px 24px;
}

.human-help h3 {
  margin: 4px 0 10px;
  font-size: 27px;
}

.family-grid,
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.family-grid section,
.choice-grid article {
  border: 1px solid rgba(49, 92, 75, 0.16);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 253, 248, 0.78);
}

.family-grid h3,
.choice-grid h3 {
  margin: 0 0 14px;
  font-size: 23px;
}

.lesson-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lesson-links a {
  border: 1px solid rgba(49, 92, 75, 0.2);
  border-radius: 999px;
  padding: 7px 11px;
  background: white;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.lesson-links a:hover {
  background: var(--lime);
}

.choice-grid article > span {
  display: grid;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 50%;
  place-items: center;
  background: var(--green);
  color: white;
  font-weight: 800;
}

.choice-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.faq-section details {
  border-top: 1px solid rgba(49, 92, 75, 0.18);
  padding: 18px 0;
}

.faq-section details:last-child {
  border-bottom: 1px solid rgba(49, 92, 75, 0.18);
}

.faq-section summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-section details p {
  max-width: 720px;
  color: var(--muted);
}

footer {
  display: flex;
  max-width: 1100px;
  margin: auto;
  padding: 30px 28px 42px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}

footer > div {
  display: grid;
  gap: 5px;
}

footer strong {
  color: var(--ink);
  font-family: "Coming Soon", cursive;
  font-size: 17px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

footer a {
  font-weight: 700;
}

.fade {
  animation: arrive 300ms ease;
}

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

@media (max-width: 880px) {
  .site-links a:not(.header-cta) {
    display: none;
  }

  .quiz-hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .collage {
    max-width: 520px;
    margin: 0 auto;
  }

  .split-content {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 650px) {
  .header-inner {
    min-height: 66px;
    padding: 10px 16px;
  }

  .brand img {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    display: none;
  }

  .site-links .header-cta {
    padding: 9px 13px;
    font-size: 12px;
  }

  #quiz-app {
    min-height: 560px;
    padding: 34px 18px 28px;
  }

  h1 {
    font-size: 44px;
  }

  .quiz-hero {
    min-height: 0;
  }

  .collage {
    height: 335px;
    max-width: 390px;
  }

  .tile {
    height: 150px;
  }

  .tile .symbol {
    font-size: 56px;
  }

  .tile span:last-child {
    font-size: 8px;
  }

  .sticker {
    left: 35%;
    width: 92px;
    height: 80px;
    font-size: 16px;
  }

  .trust-strip {
    margin-top: 28px;
    align-items: center;
    flex-direction: column;
    gap: 9px;
    text-align: center;
  }

  .track {
    margin-bottom: 24px;
  }

  .question h2 {
    margin-top: 10px;
  }

  .options {
    gap: 10px;
  }

  .option {
    display: block;
    min-height: 154px;
    padding: 15px;
  }

  .option.selected {
    padding: 14px;
  }

  .emoji {
    display: block;
    margin-bottom: 8px;
  }

  .option strong {
    font-size: 14px;
  }

  .option small {
    font-size: 12px;
  }

  .quiz-nav .primary {
    padding: 14px 17px;
    font-size: 14px;
  }

  .result-card {
    grid-template-columns: 1fr;
    padding: 25px 19px;
    gap: 0;
    text-align: center;
  }

  .bigicon {
    font-size: 72px;
  }

  .result-actions {
    justify-content: center;
  }

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

  .seo-intro,
  .lesson-catalog,
  .how-to-choose,
  .faq-section {
    padding: 58px 18px;
  }

  .family-grid section,
  .choice-grid article {
    padding: 20px;
  }

  footer {
    flex-direction: column;
    padding-inline: 18px;
  }

  footer nav {
    justify-content: flex-start;
  }
}

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