/* ===== FONTS ===== */
@font-face {
  font-family: 'Isaodelco';
  src: url('../assets/fonts/Isaodelco-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mulish';
  src: url('../assets/fonts/Mulish-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mulish';
  src: url('../assets/fonts/Mulish-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mulish';
  src: url('../assets/fonts/Mulish-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mulish';
  src: url('../assets/fonts/Mulish-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mulish';
  src: url('../assets/fonts/Mulish-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mulish';
  src: url('../assets/fonts/Mulish-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Mulish';
  src: url('../assets/fonts/Mulish-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Mulish';
  src: url('../assets/fonts/Mulish-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Mulish';
  src: url('../assets/fonts/Mulish-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Mulish';
  src: url('../assets/fonts/Mulish-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ===== DESIGN TOKENS ===== */
:root {
  --color-sage: #7E8E6D;
  --color-sage-dark: #6B7A5C;
  --color-cream: #F5EDE0;
  --color-cream-light: #FAF7F2;
  --color-forest: #3B4A3A;
  --color-forest-light: #4A5C49;
  --color-coral: #D4856E;
  --color-coral-hover: #C4755E;
  --color-text-dark: #2C3B2D;
  --color-text-light: #F5EDE0;
  --color-text-muted: #6B7A5C;

  --font-display: 'Isaodelco', cursive;
  --font-body: 'Mulish', sans-serif;

  --max-width: 1200px;
  --section-padding: 5rem 2rem;
  --section-padding-mobile: 3rem 1.25rem;
  --border-radius: 8px;
  --transition: 0.3s ease;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text-dark);
  background-color: var(--color-cream);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition);
}

a:hover {
  opacity: 0.8;
}

ul {
  list-style: none;
}

/* ===== UTILITIES ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

p {
  margin-bottom: 1rem;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
}

p:last-child {
  margin-bottom: 0;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary {
  background-color: var(--color-coral);
  color: var(--color-cream);
  border-color: var(--color-coral);
}

.btn-primary:hover {
  background-color: var(--color-coral-hover);
  border-color: var(--color-coral-hover);
  opacity: 1;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-coral);
  border-color: var(--color-coral);
}

.btn-outline:hover {
  background-color: var(--color-coral);
  color: var(--color-cream);
  opacity: 1;
}

/* ===== HEADER / NAV ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-cream);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  display: block;
  line-height: 0;
}

.logo img {
  height: 45px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-forest);
  margin: 5px 0;
  transition: all var(--transition);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-dark);
  letter-spacing: 0.01em;
  position: relative;
}

.nav-links a::after {
  display: none;
}

.nav-links a.active {
  text-decoration: underline;
  text-decoration-color: var(--color-coral);
  text-underline-offset: 6px;
  text-decoration-thickness: 1.5px;
}

.nav-links a + a::before {
  content: '|';
  margin-right: 2rem;
  opacity: 0.3;
  color: var(--color-text-dark);
}

.nav-links a:hover {
  opacity: 1;
  color: var(--color-forest);
  text-decoration: underline;
  text-decoration-color: var(--color-sage);
  text-underline-offset: 6px;
  text-decoration-thickness: 1.5px;
}

/* ===== HERO ===== */
.hero {
  background-color: var(--color-cream);
  padding: 3rem 0 0;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--color-forest);
  margin-bottom: 0.5rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.hero .subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: var(--color-forest);
  font-weight: 600;
  margin-bottom: 2rem;
}

.hero-illustration {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.hero-forest {
  position: relative;
  min-height: clamp(250px, 42vw, 550px);
}

.hero-names-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: -20px;
  z-index: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.hero-names-bg p {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 500;
  color: var(--color-sage);
  opacity: 0.45;
  white-space: nowrap;
  margin: 0;
  line-height: 1.9;
  letter-spacing: 0.01em;
}

.hero-trees {
  position: relative;
  z-index: 2;
  min-height: clamp(250px, 42vw, 550px);
  width: 100%;
}

.hero-trees picture {
  position: absolute;
  bottom: -60px;
  transform: translateX(-50%);
}

.hero-trees img {
  display: block;
  width: auto;
  max-width: none;
  height: var(--h);
  object-fit: contain;
}

/* Core trees: Roble → Nogal → PalmaCera → Cenizo → GuayacanA → Mango → Ceiba → Eucalipto → GuayacanR */
.hero-trees picture:nth-child(1)  { left: 5%;   --h: clamp(190px, 36vw, 460px); z-index: 3; } /* Roble */
.hero-trees picture:nth-child(2)  { left: 14%;  --h: clamp(165px, 30vw, 390px); z-index: 4; } /* Nogal Cafetero */
.hero-trees picture:nth-child(3)  { left: 22%;  --h: clamp(220px, 41vw, 520px); z-index: 1; bottom: -30px; } /* PalmaCera - tall, behind */
.hero-trees picture:nth-child(4)  { left: 30%;  --h: clamp(160px, 29vw, 370px); z-index: 5; } /* Cenizo */
.hero-trees picture:nth-child(5)  { left: 40%;  --h: clamp(185px, 34vw, 440px); z-index: 4; } /* GuayacanA */
.hero-trees picture:nth-child(6)  { left: 50%;  --h: clamp(175px, 32vw, 410px); z-index: 5; } /* Mango - in front */
.hero-trees picture:nth-child(7)  { left: 60%;  --h: clamp(260px, 49vw, 624px); z-index: 2; bottom: -65px; } /* Ceiba */
.hero-trees picture:nth-child(8)  { left: 72%;  --h: clamp(170px, 32vw, 400px); z-index: 3; } /* Eucalipto */
.hero-trees picture:nth-child(9)  { left: 84%;  --h: clamp(185px, 37vw, 470px); z-index: 2; } /* GuayacanR */
/* Edge fill trees */
.hero-trees picture:nth-child(10) { left: -2%;  --h: clamp(155px, 28vw, 360px); z-index: 5; } /* Copal - far left edge */
.hero-trees picture:nth-child(11) { left: 95%;  --h: clamp(160px, 30vw, 380px); z-index: 5; } /* Cerezo - far right edge */
.hero-trees picture:nth-child(12) { left: 70%;  --h: clamp(170px, 31vw, 390px); z-index: 1; bottom: -40px; } /* Caimito - between Eucalipto and GuayacanR, behind both */

/* ===== SECTIONS ===== */
.section {
  padding: var(--section-padding);
}

.section-cream {
  background-color: var(--color-cream);
}

.section-sage {
  background-color: var(--color-sage);
  color: var(--color-text-light);
}

.section-forest {
  background-color: var(--color-forest);
  color: var(--color-text-light);
}

/* ===== ABOUT INTRO ===== */
.about-intro {
  padding: calc(5rem + 20px) 2rem 5rem;
  background-color: var(--color-sage);
  color: var(--color-text-light);
  margin-top: -20px;
  position: relative;
  z-index: 1;
}

.about-intro .container {
  max-width: var(--max-width);
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 3rem;
  align-items: end;
}

.about-intro .intro-illustration img {
  width: 100%;
  max-height: 450px;
  object-fit: contain;
}

.about-intro .intro-text p {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.8;
  color: var(--color-text-light);
}

.about-intro p.welcome {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-top: 1.5rem;
  color: var(--color-cream);
  line-height: 1.3;
}

/* ===== BOOK SECTION ===== */
.book-section {
  padding: var(--section-padding);
  background-color: var(--color-cream-light);
  color: var(--color-text-dark);
}

.book-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.book-image {
  position: relative;
}

.book-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.book-content h2 {
  margin-bottom: 0.5rem;
}

.book-content .book-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 2rem;
  color: var(--color-sage-dark);
}

.book-content p {
  line-height: 1.8;
}

.book-content .btn {
  margin-top: 1.5rem;
}

/* ===== TREE QUIZ ===== */
.tree-quiz {
  padding: var(--section-padding);
  background-color: var(--color-cream);
}

.tree-quiz .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.tree-quiz h2 {
  color: var(--color-forest);
  margin-bottom: 1rem;
}

.tree-quiz p {
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
}

.quiz-images {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  padding-left: 3.5rem;
}

.quiz-images img {
  height: 250px;
  width: auto;
  object-fit: contain;
  margin: 0 -1rem;
}

/* ===== ABOUT PAGE ===== */
.page-header {
  padding: 3rem 2rem 2rem;
  text-align: center;
  background-color: var(--color-sage);
  color: var(--color-text-light);
}

.page-header h1 {
  color: var(--color-text-light);
}

.founder-section {
  padding: 2rem 2rem 5rem;
  background-color: var(--color-sage);
  color: var(--color-text-light);
}

.founder-card {
  max-width: 800px;
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

.founder-card:last-child {
  margin-bottom: 0;
}

.founder-card.reverse {
  grid-template-columns: 1fr 280px;
}

.founder-card.reverse .founder-image {
  order: 2;
}

.founder-image {
  position: relative;
}

.founder-image img {
  width: 100%;
  border-radius: var(--border-radius);
  aspect-ratio: 3/4;
  object-fit: cover;
}

.founder-image img {
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.founder-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 800px;
  margin: 0 auto 4rem;
}

.founder-content h3 {
  color: var(--color-cream);
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.founder-content p {
  color: var(--color-text-light);
  line-height: 1.8;
}

.together-section {
  padding: var(--section-padding);
  background-color: var(--color-cream);
  color: var(--color-text-dark);
  text-align: center;
  overflow: hidden;
}

.together-section .container {
  max-width: var(--max-width);
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 2rem;
  align-items: center;
}

.together-text {
  max-width: 600px;
  margin: 0 auto;
}

.together-section h2 {
  margin-bottom: 2rem;
}

.together-section p {
  opacity: 0.9;
  line-height: 1.8;
}

.together-trees img {
  max-height: 350px;
  width: auto;
  object-fit: contain;
  opacity: 0.6;
}

.together-trees-right img {
  margin-left: auto;
}

/* ===== PRODUCTS PAGE ===== */
.product-title-section {
  padding: 4rem 2rem 3rem;
  background-color: var(--color-sage);
  color: var(--color-text-light);
  text-align: center;
}

.product-title-section h1 {
  color: var(--color-text-light);
  margin-bottom: 0.25rem;
}

.product-title-section .product-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--color-cream);
  opacity: 0.85;
}

.product-detail {
  padding: var(--section-padding);
  background-color: var(--color-cream);
}

.product-detail .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.product-text p {
  line-height: 1.8;
}

.product-text .btn {
  margin-top: 1.5rem;
}

.product-image img {
  border-radius: var(--border-radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.arboleda-section {
  padding: var(--section-padding);
  background-color: var(--color-cream-light);
  color: var(--color-text-dark);
}

.arboleda-section .container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
}

.arboleda-content h2 {
  margin-bottom: 1.5rem;
}

.arboleda-content p {
  line-height: 1.8;
}

.arboleda-content .btn {
  margin-top: 1.5rem;
}

.arboleda-image {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  min-width: 0;
  margin-left: -2rem;
}

.arboleda-image img {
  height: 450px;
  width: auto;
  max-width: none;
  object-fit: contain;
  margin: 0 -4rem;
  flex-shrink: 0;
}

/* ===== BUTTON HINT ===== */
.btn-hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  opacity: 0.8;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  padding: var(--section-padding);
  text-align: center;
  background-color: var(--color-cream);
}

.contact-section h2 {
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-forest);
  text-decoration: none;
  font-size: 1rem;
  transition: opacity 0.2s;
}

.contact-link:hover {
  opacity: 0.7;
}

.contact-icon {
  font-size: 1.3rem;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--color-forest);
  color: var(--color-text-light);
  padding: 3rem 2rem 1.5rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-right: 3rem;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  flex: 0 0 auto;
}

.footer .logo img {
  height: 55px;
}

.footer-social {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cream);
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  opacity: 1;
  transform: scale(1.1);
}

.footer-social svg {
  width: 28px;
  height: 28px;
}

.footer-location {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 0.5rem;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--color-text-light);
  opacity: 0.7;
}

.footer-nav a:hover {
  opacity: 1;
}

.footer-nav a + a::before {
  content: '|';
  margin-right: 1.5rem;
  opacity: 0.3;
}

.footer-bottom {
  margin-top: 0;
  padding-top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 0.75rem;
  opacity: 0.5;
}

.footer-bottom a {
  color: var(--color-text-light);
}

/* ===== QUIZ PAGE ===== */
.quiz-page {
  min-height: calc(100vh - 77px);
  background-color: var(--color-cream-light);
  padding: 3rem 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.quiz-page .container {
  max-width: 720px;
  width: 100%;
}

.quiz-screen {
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.quiz-screen--active {
  opacity: 1;
  visibility: visible;
  max-height: none;
  overflow: visible;
}

/* Intro */
.quiz-intro-content {
  text-align: center;
  margin-bottom: 3rem;
}

.quiz-intro-content h1 {
  color: var(--color-forest);
  margin-bottom: 1.5rem;
}

.quiz-intro-content p {
  max-width: 520px;
  margin: 0 auto 1rem;
  color: var(--color-text-dark);
  line-height: 1.8;
}

.quiz-intro-content .btn {
  margin-top: 1.5rem;
}

/* Name input */
.quiz-name-field {
  max-width: 320px;
  margin: 1.5rem auto 0;
  text-align: left;
}

.quiz-name-field label {
  display: block;
  font-size: 0.9rem;
  color: var(--color-forest);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.quiz-name-optional {
  font-weight: 300;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.quiz-name-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-dark);
  background-color: var(--color-cream);
  border: 2px solid var(--color-sage);
  border-radius: var(--border-radius);
  transition: border-color 0.25s ease;
}

.quiz-name-input:focus {
  outline: none;
  border-color: var(--color-forest);
}

.quiz-name-input::placeholder {
  color: var(--color-text-muted);
  font-weight: 300;
}

.quiz-intro-trees {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
}

.quiz-intro-trees img {
  height: 220px;
  width: auto;
  object-fit: contain;
  margin: 0 -1rem;
}

/* Progress */
.quiz-progress {
  background-color: rgba(0, 0, 0, 0.06);
  border-radius: 50px;
  height: 6px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.quiz-progress-bar {
  height: 100%;
  background-color: var(--color-coral);
  border-radius: 50px;
  width: 0%;
  transition: width 0.5s ease;
}

.quiz-progress-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: right;
  margin-bottom: 2rem;
}

/* Tree illustration per question */
.quiz-tree-illustration {
  display: block;
  margin: 0 auto 1rem;
  width: 140px;
  height: 140px;
  object-fit: contain;
  filter: saturate(0.85) opacity(0.6);
  opacity: 0;
  transform: scale(0.92);
}

.quiz-tree-illustration.--visible {
  animation: quizTreeFadeIn 0.6s ease forwards;
}

/* Question */
.quiz-question-text {
  color: var(--color-forest);
  text-align: center;
  margin-bottom: 2rem;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  opacity: 0;
}

.quiz-question-text.--visible {
  animation: quizQuestionFadeIn 0.45s ease forwards;
}

.quiz-answers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-answer-card {
  display: block;
  width: 100%;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-cream);
  border: 1px solid rgba(126, 142, 109, 0.18);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  min-height: 48px;
  box-shadow:
    0 1px 3px rgba(59, 74, 58, 0.06),
    0 4px 12px rgba(126, 142, 109, 0.08);
  animation: quizCardEnter 0.35s ease both;
}

.quiz-answer-card:hover {
  transform: translateY(-2px);
  background-color: #faf6ef;
  box-shadow:
    0 2px 6px rgba(59, 74, 58, 0.1),
    0 8px 24px rgba(126, 142, 109, 0.14);
}

.quiz-answer-card:active {
  transform: translateY(0);
}

.quiz-answer-card--selected {
  background-color: rgba(126, 142, 109, 0.15);
  color: var(--color-forest);
  border-color: var(--color-sage);
  border-width: 2px;
  transform: scale(0.98);
  box-shadow:
    0 2px 6px rgba(126, 142, 109, 0.2),
    0 6px 16px rgba(126, 142, 109, 0.12);
}

@keyframes quizTreeFadeIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes quizQuestionFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

/* Result */
.quiz-result-content {
  text-align: center;
}

/* Typewriter reveal */
.quiz-result-reveal {
  margin-bottom: 1.5rem;
  min-height: 3.5rem;
}

.quiz-result-line1 {
  display: block;
  font-family: var(--font-display, var(--font-body));
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: var(--color-text-muted);
  font-weight: 400;
}

.quiz-result-line2 {
  display: block;
  font-family: var(--font-display, var(--font-body));
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-forest);
  font-weight: 700;
}

.quiz-result-image {
  margin: 0 auto 1.5rem;
  max-width: 280px;
}

.quiz-result-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.quiz-result-description {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.9;
  color: var(--color-text-dark);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

.quiz-result-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.quiz-result-secondary {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.quiz-result-secondary button {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.quiz-result-secondary button:hover {
  color: var(--color-forest);
}

.quiz-result-arboleda {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(126, 142, 109, 0.15);
  text-align: center;
}

.quiz-result-arboleda-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  font-style: italic;
}

.quiz-result-arboleda .btn-secondary {
  background: transparent;
  color: var(--color-sage);
  border-color: var(--color-sage);
  font-size: 0.85rem;
  padding: 0.6rem 1.5rem;
}

.quiz-result-arboleda .btn-secondary:hover {
  background: var(--color-sage);
  color: var(--color-cream);
}

/* Admin view */
.quiz-admin ~ .quiz-screen { display: none; }
.quiz-page:has(.quiz-admin) .container {
  max-width: 900px;
}

.quiz-admin .quiz-admin-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--color-cream);
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.quiz-admin .quiz-admin-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.quiz-admin .quiz-admin-text {
  text-align: left;
}

.quiz-admin .quiz-admin-text h3 {
  color: var(--color-forest);
  margin-bottom: 0.5rem;
}

.quiz-admin .quiz-admin-text p {
  line-height: 1.8;
  color: var(--color-text-dark);
}

.admin-max-table {
  background: var(--color-cream);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.admin-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-chip {
  font-size: 0.8rem;
  background: var(--color-cream-light);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50px;
  padding: 0.3rem 0.75rem;
  color: var(--color-text-dark);
}

.admin-question {
  background: var(--color-cream);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.admin-question h3 {
  color: var(--color-forest);
  font-size: 1rem;
  font-weight: 600;
  font-style: normal;
  margin-bottom: 0.75rem;
}

.admin-answers {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-answer {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.admin-answer-label {
  font-weight: 700;
  color: var(--color-sage-dark);
  min-width: 1.5rem;
  padding-top: 0.1rem;
}

.admin-answer-body {
  flex: 1;
}

.admin-answer-text {
  font-size: 0.9rem;
  color: var(--color-text-dark);
  margin-bottom: 0.2rem;
}

.admin-answer-scores {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-coral);
}

.admin-sep {
  margin: 0 0.35rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

@media (max-width: 768px) {
  .quiz-admin .quiz-admin-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .quiz-admin .quiz-admin-card img {
    max-width: 160px;
    margin: 0 auto;
  }
  .quiz-admin .quiz-admin-text {
    text-align: center;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav-toggle {
    display: block;
    z-index: 101;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-cream);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 100;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .nav-links a + a::before {
    display: none;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .book-section .container,
  .tree-quiz .container,
  .product-detail .container,
  .arboleda-section .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-trees picture {
    bottom: -48px;
  }

  .quiz-images {
    padding-left: 0;
    justify-content: center;
  }

  .about-intro .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-intro .intro-illustration {
    max-width: 300px;
    margin: 6rem auto 0;
  }

  .together-section .container {
    grid-template-columns: 1fr;
  }

  .together-trees {
    display: none;
  }

  .founder-card,
  .founder-card.reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .founder-card.reverse .founder-image {
    order: 0;
  }

  .founder-image {
    max-width: 280px;
    margin: 0 auto;
  }

  .arboleda-image {
    padding-left: 0;
    margin-left: 0;
    justify-content: center;
  }

  .arboleda-image img {
    margin: 0 -6rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--section-padding-mobile);
  }

  .about-intro {
    padding: var(--section-padding-mobile);
  }

  .hero {
    padding: 2rem 0 0;
  }

  .hero-forest {
    min-height: 280px;
  }

  .hero-names-bg p {
    font-size: 0.7rem;
    line-height: 1.6;
  }

  .hero-trees {
    min-height: 220px;
    width: 900px;
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-trees picture:nth-child(1)  { --h: 340px; }
  .hero-trees picture:nth-child(2)  { --h: 290px; }
  .hero-trees picture:nth-child(3)  { --h: 390px; bottom: -85px; }
  .hero-trees picture:nth-child(4)  { --h: 270px; }
  .hero-trees picture:nth-child(5)  { --h: 330px; }
  .hero-trees picture:nth-child(6)  { --h: 310px; }
  .hero-trees picture:nth-child(7)  { --h: 470px; bottom: -120px; }
  .hero-trees picture:nth-child(8)  { --h: 300px; }
  .hero-trees picture:nth-child(9)  { --h: 350px; }
  .hero-trees picture:nth-child(10) { --h: 260px; }
  .hero-trees picture:nth-child(11) { --h: 280px; }
  .hero-trees picture:nth-child(12) { --h: 290px; bottom: -80px; }

  .hero-trees picture {
    bottom: -100px;
  }

  @media (max-width: 480px) {
    .hero-trees picture:nth-child(1)  { --h: 230px; }
    .hero-trees picture:nth-child(2)  { --h: 200px; }
    .hero-trees picture:nth-child(3)  { --h: 270px; }
    .hero-trees picture:nth-child(4)  { --h: 185px; }
    .hero-trees picture:nth-child(5)  { --h: 225px; }
    .hero-trees picture:nth-child(6)  { --h: 210px; }
    .hero-trees picture:nth-child(7)  { --h: 320px; bottom: -90px; }
    .hero-trees picture:nth-child(8)  { --h: 205px; }
    .hero-trees picture:nth-child(9)  { --h: 240px; }
    .hero-trees picture:nth-child(10) { --h: 175px; }
    .hero-trees picture:nth-child(11) { --h: 190px; }
    .hero-trees picture:nth-child(12) { --h: 200px; }

    .hero-trees picture { bottom: -95px; }
    .hero-trees picture:nth-child(7) { bottom: -115px; }
    .hero-trees { width: 650px; }
  }

  .about-intro .intro-text p {
    text-align: center;
  }

  .arboleda-image img {
    margin: 0 -8rem;
  }

  .quiz-images img {
    height: 200px;
  }

  .quiz-page {
    padding: 2rem 1.25rem;
  }

  .quiz-intro-trees img {
    height: 160px;
  }

  .quiz-tree-illustration {
    width: 110px;
    height: 110px;
  }

  .quiz-answer-card {
    font-size: 0.95rem;
    padding: 1rem 1.25rem;
  }

  .quiz-result-image {
    max-width: 220px;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left {
    align-items: center;
    border-right: none;
    padding-right: 0;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .footer-nav a + a::before {
    display: none;
  }
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 0.75rem 1.5rem;
  background: var(--color-forest);
  color: var(--color-cream);
  z-index: 200;
  font-size: 0.9rem;
}

.skip-link:focus {
  top: 0;
}

/* ===== TREE PAGE ===== */
.tree-page {
  --accent: var(--color-sage);
}

.tree-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-cream);
}

.tree-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.tree-hero-bg.loaded {
  opacity: 1;
}

.tree-hero-scrim {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(59, 74, 58, 0.5) 0%, transparent 100%);
  pointer-events: none;
}

.tree-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem 3rem;
}

.tree-hero-illustration {
  max-width: 450px;
  width: 55vw;
  height: auto;
  margin: 0 auto 1.5rem;
  opacity: 0;
  transition: opacity 0.8s ease 0.3s;
}

.tree-hero-illustration.loaded {
  opacity: 1;
}

.tree-hero-name {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--color-cream);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin-bottom: 1rem;
}

.tree-hero-scroll {
  display: block;
  margin: 0.5rem auto 0;
  font-size: 1.5rem;
  color: var(--color-cream);
  opacity: 0.6;
  animation: tree-scroll-bounce 2s ease-in-out infinite;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
}

@keyframes tree-scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Sound toggle */
.tree-sound-toggle {
  position: fixed;
  top: 7rem;
  left: 1.5rem;
  z-index: 50;
  background: rgba(245, 237, 224, 0.85);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-sage);
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}

.tree-sound-toggle:hover {
  background: rgba(245, 237, 224, 1);
}

.tree-sound-toggle.pulsing {
  animation: sound-pulse 2s ease-in-out infinite;
}

@keyframes sound-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(126, 142, 109, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(126, 142, 109, 0); }
}

/* Tree navigation */
.tree-nav {
  position: fixed;
  top: 7rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  gap: 0.5rem;
}

.tree-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(245, 237, 224, 0.85);
  border-radius: 50%;
  color: var(--color-sage);
  font-size: 1.2rem;
  backdrop-filter: blur(4px);
  transition: all var(--transition);
}

.tree-nav a:hover {
  background: rgba(245, 237, 224, 1);
  opacity: 1;
}

/* Content panel */
.tree-content {
  position: relative;
  z-index: 3;
  background: rgba(245, 237, 224, 0.92);
  border-radius: 16px 16px 0 0;
  max-width: 640px;
  margin: -2rem auto 0;
  padding: 2.5rem 2rem 3rem;
}

.tree-description {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-text-dark);
  margin-bottom: 2rem;
}

.tree-divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 2rem 0;
}

/* Meditation player */
.tree-player {
  margin-bottom: 0.5rem;
}

.tree-player-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.tree-player-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tree-player-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent, var(--color-sage));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cream);
  font-size: 1.1rem;
  transition: all var(--transition);
  flex-shrink: 0;
}

.tree-player-btn:focus-visible {
  outline: 2px solid var(--color-coral);
  outline-offset: 2px;
}

.tree-player-btn:hover {
  opacity: 0.85;
}

.tree-player-progress {
  flex: 1;
  position: relative;
  height: 1px;
  background: var(--color-sage);
  opacity: 0.3;
}

.tree-player-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--color-coral);
  width: 0%;
  transition: width 0.3s linear;
}

.tree-player-time {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  color: var(--color-text-muted);
  min-width: 70px;
  text-align: right;
}

/* Coming soon state */
.tree-player-soon {
  text-align: center;
  padding: 1.5rem 0;
}

.tree-player-soon-img {
  max-width: 120px;
  margin: 0 auto 1rem;
  opacity: 0.6;
}

.tree-player-soon p {
  font-style: italic;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Resort seed / email capture */
.tree-email {
  margin-bottom: 0.5rem;
}

.tree-email-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.tree-email-text {
  font-style: italic;
  font-weight: 300;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.tree-email-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.tree-email-name,
.tree-email-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: white;
  outline: none;
  transition: border-color var(--transition);
}

.tree-email-name:focus,
.tree-email-input:focus {
  border-color: var(--color-sage);
}

.tree-email-submit {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: none;
  background: var(--color-coral);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.tree-email-submit:hover {
  background: var(--color-coral-hover);
}

.tree-email-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.tree-email-honeypot {
  position: absolute;
  left: -9999px;
}

.tree-email-msg {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-style: italic;
}

.tree-email-msg.success {
  color: var(--color-sage-dark);
}

.tree-email-msg.error {
  color: var(--color-coral);
}

/* Gift CTA */
.tree-gift {
  text-align: center;
  padding: 1rem 0;
}

.tree-gift p {
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* Prev/next trees */
.tree-prevnext {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0 0;
}

.tree-prevnext a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-sage-dark);
}

.tree-prevnext a:hover {
  opacity: 0.7;
}

/* Naming nudge */
.tree-nudge {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 2rem;
  background: rgba(245, 237, 224, 0.97);
  border-top: 1px solid rgba(126, 142, 109, 0.2);
  box-shadow: 0 -2px 12px rgba(59, 74, 58, 0.06);
  transform: translateY(100%);
  transition: transform 0.6s ease-out;
  pointer-events: none;
}

.tree-nudge.visible {
  transform: translateY(0);
  pointer-events: auto;
}

.tree-nudge p {
  font-style: italic;
  color: var(--color-sage-dark);
  font-size: 0.9rem;
  margin: 0;
}

.tree-nudge-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 0.5rem;
}

.tree-nudge-actions a,
.tree-nudge-actions button {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--color-coral);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.tree-nudge-dismiss {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.4rem;
  min-width: 44px;
  min-height: 44px;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

/* Completion ritual */
.tree-ritual {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

.tree-ritual.visible {
  opacity: 1;
  pointer-events: auto;
}

.tree-ritual-msg {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 300;
  font-size: 1.3rem;
  color: var(--color-sage-dark);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.tree-ritual-actions {
  display: flex;
  gap: 1.5rem;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.tree-ritual-actions.visible {
  opacity: 1;
}

.tree-ritual-actions a,
.tree-ritual-actions button {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-coral);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  min-height: 44px;
}

/* ===== FOREST GRID (Homepage) ===== */
.forest-grid-section {
  padding: var(--section-padding);
  background-color: var(--color-cream);
}

.forest-grid-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-style: normal;
  text-align: center;
  color: var(--color-forest);
  margin-bottom: 0.5rem;
}

.forest-grid-section .forest-subtitle {
  text-align: center;
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.forest-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 0.5rem 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.forest-grid-item {
  text-align: center;
  transition: transform 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  width: calc(25% - 1rem);
  margin: 0 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.forest-grid-item:hover {
  transform: scale(1.05);
  opacity: 1;
}

.forest-grid-item img {
  width: auto;
  max-width: 100%;
  height: var(--tree-size, 180px);
  object-fit: contain;
  margin-bottom: 0.4rem;
}

.forest-grid-item-name {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--color-forest);
}

.forest-grid-item-blurb {
  display: block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  font-style: italic;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
  margin-bottom: 1rem;
}

/* Neighbor sway on hover */
.forest-grid-item.sway {
  animation: tree-sway 0.6s ease-in-out;
}

@keyframes tree-sway {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(1.5deg); }
  75% { transform: rotate(-1.5deg); }
}

/* ===== MEDITATION TEASER (Homepage) ===== */
.meditation-teaser {
  padding: var(--section-padding);
  background-color: var(--color-cream-light);
}

.meditation-teaser h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-style: normal;
  text-align: center;
  color: var(--color-forest);
  margin-bottom: 0.5rem;
}

.meditation-teaser .teaser-subtitle {
  text-align: center;
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.meditation-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.meditation-teaser-card {
  text-align: center;
}

.meditation-teaser-card img {
  max-height: 160px;
  width: auto;
  margin: 0 auto 1rem;
  object-fit: contain;
}

.meditation-teaser-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: normal;
  color: var(--color-forest);
  margin-bottom: 0.5rem;
}

.meditation-teaser-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.meditation-teaser-card .teaser-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-coral);
}

/* ===== TREE PAGE RESPONSIVE ===== */
@media (max-width: 1024px) {
  .tree-hero-name {
    font-size: 40px;
  }

  .tree-content {
    max-width: 80%;
  }

  .forest-grid-item {
    width: calc(33.33% - 1rem);
  }

  .forest-grid-item img {
    height: calc(var(--tree-size, 180px) * 0.8);
  }
}

@media (max-width: 768px) {
  .tree-hero {
    min-height: 500px;
    background-attachment: scroll;
  }

  .tree-hero-bg {
    background-attachment: scroll;
  }

  .tree-hero-name {
    font-size: 36px;
  }

  .tree-hero-illustration {
    width: 60vw;
    max-width: 300px;
  }

  .tree-content {
    max-width: 100%;
    padding: 2rem 1.5rem 2.5rem;
    border-radius: 12px 12px 0 0;
  }

  .tree-description {
    font-size: 16px;
  }

  .tree-email-form {
    flex-direction: column;
  }

  .tree-email-name,
  .tree-email-input,
  .tree-email-submit {
    width: 100%;
  }

  .tree-nav {
    top: auto;
    bottom: 1rem;
    right: 1rem;
  }

  .tree-sound-toggle {
    top: auto;
    bottom: 1rem;
    left: 1rem;
  }

  .meditation-teaser-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .meditation-teaser h2 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .forest-grid-item {
    width: calc(50% - 1rem);
  }

  .forest-grid-item img {
    height: calc(var(--tree-size, 180px) * 0.6);
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .tree-hero-bg,
  .tree-hero-illustration,
  .tree-nudge,
  .tree-ritual,
  .tree-ritual-actions,
  .forest-grid-item {
    transition: none;
  }

  .tree-hero-scroll,
  .tree-sound-toggle.pulsing,
  .forest-grid-item.sway {
    animation: none;
  }

  .quiz-tree-illustration,
  .quiz-tree-illustration.--visible,
  .quiz-question-text,
  .quiz-question-text.--visible,
  .quiz-answer-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ===== ARBOLEDA BUILDER (.ag-*) ===== */

.ag-page {
  min-height: calc(100vh - 77px);
  background-color: var(--color-cream-light);
  padding: 3rem 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.ag-page .container {
  max-width: 720px;
  width: 100%;
}

/* Screens */
.ag-screen {
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.ag-screen--active {
  opacity: 1;
  visibility: visible;
  max-height: none;
  overflow: visible;
}

/* Intro */
.ag-intro-content {
  text-align: center;
  margin-bottom: 3rem;
}

.ag-intro-content h1 {
  color: var(--color-forest);
  margin-bottom: 1.5rem;
}

.ag-intro-content p {
  max-width: 520px;
  margin: 0 auto 1rem;
  color: var(--color-text-dark);
  line-height: 1.8;
}

.ag-intro-content .btn {
  margin-top: 1.5rem;
}

.ag-name-field {
  max-width: 320px;
  margin: 1.5rem auto 0;
  text-align: left;
}

.ag-name-field label {
  display: block;
  font-size: 0.9rem;
  color: var(--color-forest);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.ag-name-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-dark);
  background-color: var(--color-cream);
  border: 2px solid var(--color-sage);
  border-radius: var(--border-radius);
  transition: border-color 0.25s ease;
  box-sizing: border-box;
}

.ag-name-input:focus {
  outline: none;
  border-color: var(--color-forest);
}

.ag-name-input::placeholder {
  color: var(--color-text-muted);
  font-weight: 300;
}

.ag-intro-trees {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  margin-top: 1rem;
  padding: 0 1rem;
}

.ag-intro-trees img {
  height: 260px;
  width: auto;
  object-fit: contain;
  margin: 0 -1.5rem;
}

/* Builder */
.ag-builder-title {
  color: var(--color-forest);
  text-align: center;
  margin-bottom: 1.5rem;
}

.ag-members {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.ag-member-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-cream);
  border: 1px solid rgba(126, 142, 109, 0.3);
  border-radius: var(--border-radius);
  padding: 0.85rem 1.1rem;
  animation: agFadeIn 0.3s ease;
  transition: box-shadow 0.2s;
}

.ag-member-card:hover {
  box-shadow: 0 2px 8px rgba(59, 74, 58, 0.08);
}

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

.ag-member-thumb {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  background: rgba(126, 142, 109, 0.08);
  border-radius: 50%;
  padding: 6px;
}

.ag-member-info {
  flex: 1;
  min-width: 0;
}

.ag-member-name {
  display: block;
  font-weight: 600;
  color: var(--color-forest);
  font-size: 1rem;
}

.ag-member-tree {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.ag-member-remove {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--color-text-muted);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color 0.2s;
}

.ag-member-remove:hover {
  color: var(--color-coral);
}

.ag-add-btn {
  display: block;
  width: 100%;
  padding: 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-sage-dark);
  background: transparent;
  border: 2px dashed var(--color-sage);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.ag-add-btn:hover:not(:disabled) {
  border-color: var(--color-forest);
  color: var(--color-forest);
}

.ag-add-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.ag-dedication-preview {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--color-cream);
  border-radius: var(--border-radius);
  border: 1px solid rgba(126, 142, 109, 0.2);
  display: none;
}

.ag-dedication-preview--visible {
  display: block;
}

.ag-dedication-live {
  font-style: italic;
  color: var(--color-text-dark);
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0;
}

.ag-preview-btn {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
}

.ag-preview-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.ag-min-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* Picker overlay */
.ag-picker {
  position: fixed;
  inset: 0;
  background: rgba(59, 74, 58, 0.5);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ag-picker--open {
  opacity: 1;
  visibility: visible;
}

.ag-picker-inner {
  background: var(--color-cream-light);
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.ag-picker--open .ag-picker-inner {
  transform: translateY(0);
}

.ag-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  position: sticky;
  top: 0;
  background: var(--color-cream-light);
  z-index: 1;
  padding-top: 0.25rem;
}

.ag-picker-header h3 {
  color: var(--color-forest);
  margin: 0;
}

.ag-picker-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ag-picker-name-field {
  margin-bottom: 1rem;
}

.ag-picker-name-field label {
  display: block;
  font-size: 0.9rem;
  color: var(--color-forest);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.ag-picker-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

/* Tree grid in picker */
.ag-tree-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.ag-tree-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.75rem 0.5rem;
  background: var(--color-cream);
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: border-color 0.2s, opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.ag-tree-card:hover:not(:disabled) {
  border-color: var(--color-sage);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 74, 58, 0.1);
}

.ag-tree-card:disabled {
  opacity: 0.35;
  cursor: default;
}

.ag-tree-card--used {
  opacity: 0.3;
}

.ag-tree-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.ag-tree-card-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-forest);
  line-height: 1.2;
}

.ag-tree-card-blurb {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  line-height: 1.2;
}

/* Tree detail panel */
.ag-tree-detail {
  padding: 0.5rem 0;
}

.ag-detail-back {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-sage);
  cursor: pointer;
  padding: 0.25rem 0;
  margin-bottom: 1rem;
}

.ag-detail-back:hover {
  color: var(--color-forest);
}

.ag-detail-content {
  text-align: center;
  margin-bottom: 1.5rem;
}

.ag-detail-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.ag-detail-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-forest);
  margin: 0 0 0.25rem;
}

.ag-detail-blurb {
  font-size: 1rem;
  font-style: italic;
  color: var(--color-sage);
  margin: 0 0 1rem;
}

.ag-detail-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-dark);
  text-align: left;
  margin: 0;
}

.ag-detail-select {
  width: 100%;
  margin-top: 0.5rem;
}

.ag-detail-select:disabled {
  opacity: 0.5;
}

/* Preview screen */
.ag-preview-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.ag-preview-canvas-wrap {
  background: var(--color-cream);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(126, 142, 109, 0.2);
}

.ag-preview-canvas-wrap canvas {
  width: 100%;
  height: auto;
  display: block;
}

.ag-preview-sidebar h3 {
  color: var(--color-forest);
  margin: 0 0 0.75rem;
}

.ag-dedication-edit {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-text-dark);
  background-color: var(--color-cream);
  border: 2px solid var(--color-sage);
  border-radius: var(--border-radius);
  resize: vertical;
  box-sizing: border-box;
}

.ag-dedication-edit:focus {
  outline: none;
  border-color: var(--color-forest);
}

.ag-preview-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.ag-preview-actions .btn {
  text-align: center;
  display: block;
}

.ag-print-btn {
  text-decoration: none;
  color: var(--color-forest);
  font-weight: 500;
  border: 2px solid var(--color-sage);
  background: transparent;
  transition: background-color 0.2s, border-color 0.2s;
}

.ag-print-btn:hover {
  background-color: rgba(126, 142, 109, 0.1);
  border-color: var(--color-forest);
}

.ag-back-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  cursor: pointer;
  margin-top: 1.5rem;
  padding: 0;
  transition: color 0.2s;
}

.ag-back-btn:hover {
  color: var(--color-forest);
}

/* Desktop: side-by-side preview */
@media (min-width: 900px) {
  .ag-page .container {
    max-width: 1100px;
  }

  .ag-preview-layout {
    grid-template-columns: 1.6fr 1fr;
    align-items: start;
  }

  .ag-picker-inner {
    border-radius: 16px;
    max-height: 80vh;
    position: relative;
    margin-bottom: 5vh;
  }

  .ag-picker {
    align-items: center;
  }
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .ag-tree-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .ag-tree-card img {
    width: 52px;
    height: 52px;
  }

  .ag-intro-trees img {
    height: 160px;
    margin: 0 -0.75rem;
  }

  .ag-page {
    padding: 2rem 1rem;
  }

  .ag-picker-inner {
    max-height: 95vh;
    border-radius: 12px 12px 0 0;
    padding-bottom: 2rem;
  }

  .ag-detail-select {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-top: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ag-member-card {
    animation: none;
  }
}
