/* Fraunces is enqueued from functions.php (handle: treetipi-fonts). */

:root {
  --paper: #f7f3ec;
  --surface: #fffdf9;
  --ink: #2a241c;
  --muted: #6e6458;
  --line: #d9cfc0;
  --green: #3f6b5a;
  --green-soft: #e5efe9;
  --sun: #efe6d6;
  --danger: #9b3d2e;
  --shadow: 0 10px 30px rgba(42, 36, 28, 0.08);
  --shadow-lg: 0 24px 60px rgba(42, 36, 28, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: 'Avenir Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --space-xs: clamp(0.5rem, 1vw, 0.75rem);
  --space-sm: clamp(1rem, 2vw, 1.5rem);
  --space-md: clamp(2rem, 4vw, 3.5rem);
  --space-lg: clamp(3.5rem, 8vw, 7rem);
  --space-xl: clamp(5rem, 12vw, 10rem);
  --measure: 34rem;
  --measure-narrow: 28ch;
  --nav-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 0.75rem);
}

/* Never let stray wide content (100vw blocks, long words) make the page pan
   or zoom sideways on phones. `clip` avoids creating a scroll container;
   `hidden` is the fallback for older browsers. */
html,
body {
  overflow-x: hidden;
  overflow-x: clip;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
}

/*
 * Author `display` rules (e.g. `.btn { display: inline-flex }`) beat the
 * user-agent `[hidden] { display: none }`. Keep the attribute honest.
 */
[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

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

/* ——— Nav ——— */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  color: #fffdf9;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease, color 0.35s ease;
}

.site-nav.is-scrolled {
  background: rgba(247, 243, 236, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(42, 36, 28, 0.06);
  color: var(--ink);
}

/*
 * Both logos sit in the same grid cell so the link is as wide as the wider of
 * the two and each keeps its own aspect ratio. (Absolute positioning plus the
 * global img { max-width: 100% } let a narrow transparent logo squash the
 * colour logo into a sliver.)
 */
.site-nav__brand {
  position: relative;
  display: inline-grid;
  grid-template-columns: max-content;
  align-items: center;
  justify-items: start;
  flex-shrink: 0;
  z-index: 2;
}

.site-nav__logo {
  grid-area: 1 / 1;
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: left center;
}

.site-nav__logo--color {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.site-nav.is-scrolled .site-nav__logo--white {
  opacity: 0;
}

.site-nav.is-scrolled .site-nav__logo--color {
  opacity: 1;
}

.site-nav__menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: inherit;
  opacity: 0.88;
  transition: opacity 0.2s ease;
}

.site-nav__links a:hover,
.site-nav__links a:focus-visible {
  opacity: 1;
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  z-index: 2;
}

.site-nav__login {
  color: #fffdf9;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav.is-scrolled .site-nav__login {
  color: var(--ink);
}

.site-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #fffdf9;
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(42, 36, 28, 0.14);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.site-nav__cta:hover {
  background: #f0ebe3;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(42, 36, 28, 0.18);
}

.site-nav.is-scrolled .site-nav__cta {
  background: var(--green);
  color: #fffdf9;
  box-shadow: 0 6px 16px rgba(63, 107, 90, 0.28);
}

.site-nav.is-scrolled .site-nav__cta:hover {
  background: #365c4d;
  box-shadow: 0 8px 18px rgba(63, 107, 90, 0.32);
}

.site-nav__cta:focus-visible {
  outline: 2px solid #fffdf9;
  outline-offset: 3px;
}

.site-nav.is-scrolled .site-nav__cta:focus-visible {
  outline-color: var(--green);
}

.site-nav__cta-short {
  display: none;
}

.site-nav__cta--panel {
  display: none;
}

.site-nav__toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(255, 253, 249, 0.28);
  border-radius: 0.65rem;
  background: rgba(255, 253, 249, 0.08);
  color: inherit;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.site-nav.is-scrolled .site-nav__toggle {
  border-color: rgba(42, 36, 28, 0.12);
  background: rgba(42, 36, 28, 0.04);
}

.site-nav__toggle-bar {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.site-nav.is-open .site-nav__toggle-bar:nth-child(1) {
  transform: translateY(0.34rem) rotate(45deg);
}

.site-nav.is-open .site-nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-nav.is-open .site-nav__toggle-bar:nth-child(3) {
  transform: translateY(-0.34rem) rotate(-45deg);
}

@media (max-width: 860px) {
  .site-nav__cta-full {
    display: none;
  }

  .site-nav__cta-short {
    display: inline;
  }

  .site-nav__toggle {
    display: inline-flex;
  }

  .site-nav__menu {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem clamp(1.25rem, 4vw, 2.5rem) 1.25rem;
    background: rgba(42, 36, 28, 0.94);
    color: #fffdf9;
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 40px rgba(42, 36, 28, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.35s ease;
  }

  .site-nav.is-scrolled .site-nav__menu {
    background: rgba(247, 243, 236, 0.97);
    color: var(--ink);
  }

  .site-nav.is-open .site-nav__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__links a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1.05rem;
    opacity: 1;
    border-bottom: 1px solid rgba(255, 253, 249, 0.12);
  }

  .site-nav.is-scrolled .site-nav__links a {
    border-bottom-color: rgba(42, 36, 28, 0.08);
  }

  .site-nav__cta--panel {
    display: inline-flex;
    margin-top: 1rem;
    width: 100%;
    min-height: 2.85rem;
  }
}

@media (min-width: 861px) {
  .site-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .site-nav__brand {
    justify-self: start;
  }

  .site-nav__menu {
    justify-self: center;
  }

  .site-nav__actions {
    justify-self: end;
  }
}

body.nav-open {
  overflow: hidden;
}

/* ——— Shared ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: var(--green);
  color: #fffdf9;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(63, 107, 90, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  background: #365c4d;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(63, 107, 90, 0.32);
}

.btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

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

.btn--ghost:hover {
  background: var(--surface);
  box-shadow: none;
}

.reassure {
  margin-top: 0.85rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.section {
  position: relative;
  padding: var(--space-xl) clamp(1.25rem, 5vw, 3.5rem);
}

.section--tight {
  padding-block: var(--space-lg);
}

.section__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.section__inner--narrow {
  max-width: 38rem;
  text-align: center;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.35rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.lede--xl {
  font-size: clamp(2.4rem, 6.2vw, 4.1rem);
}

.copy {
  max-width: var(--measure);
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}

.copy + .copy {
  margin-top: 1rem;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ——— 1. Hero ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(42, 36, 28, 0.62) 0%, rgba(42, 36, 28, 0.28) 42%, rgba(42, 36, 28, 0.08) 70%, transparent 100%),
    linear-gradient(0deg, rgba(42, 36, 28, 0.55) 0%, transparent 42%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(36rem, 92vw);
  padding: calc(var(--nav-h) + 2rem) clamp(1.25rem, 5vw, 3.5rem) clamp(3.5rem, 8vw, 5.5rem);
  color: #fffdf9;
}

.hero__content h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: #fffdf9;
  margin-bottom: 0.75rem;
}

.hero__sub {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: rgba(255, 253, 249, 0.94);
}

.hero__content .copy {
  color: rgba(255, 253, 249, 0.88);
  margin-bottom: 1.75rem;
}

.hero .reassure {
  color: rgba(255, 253, 249, 0.72);
}

/* ——— 2. Emotional reason ——— */
.reason {
  padding-top: var(--space-xl);
  padding-bottom: 0;
}

.reason__text {
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
  padding-bottom: var(--space-lg);
}

.reason__text .lede {
  margin-bottom: 1.5rem;
}

.reason__text .copy {
  margin-inline: auto;
}

.reason__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 88vh;
  overflow: hidden;
}

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

.reason__words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.7rem;
  row-gap: 0.2em;
  text-align: center;
  padding: var(--space-md) 1rem var(--space-lg);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Each word stays whole; the line wraps between words on narrow screens. */
.reason__words span {
  white-space: nowrap;
}

.reason__words span:not(:last-child)::after {
  content: '·';
  margin-left: 0.7rem;
  opacity: 0.55;
}

/* ——— Product shell (tree mockups) ——— */
.product-shell {
  position: relative;
  background:
    radial-gradient(900px 420px at 8% -10%, #efe6d6 0%, transparent 60%),
    radial-gradient(700px 380px at 100% 0%, #e4efe8 0%, transparent 55%),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.product-shell--wide {
  width: min(80vw, 64rem);
  margin-inline: auto;
}

.tree-mock {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2.5vw, 2rem) clamp(2rem, 4vw, 3rem);
  min-height: 28rem;
  overflow-x: auto;
}

.tree-gen {
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  position: relative;
}

.tree-gen + .tree-gen {
  margin-top: 3.25rem;
}

.tree-couple {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  position: relative;
}

.tree-couple::after {
  content: '';
  position: absolute;
  top: 2.1rem;
  left: 3.4rem;
  right: 3.4rem;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.person {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 5.5rem;
  text-align: center;
}

.person__photo {
  width: 4.1rem;
  height: 4.1rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--surface);
  box-shadow: 0 4px 14px rgba(42, 36, 28, 0.12);
  background: var(--sun);
}

.person__name {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.person__years {
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.person.is-selected .person__photo {
  box-shadow: 0 0 0 3px var(--green), 0 6px 18px rgba(63, 107, 90, 0.25);
}

.tree-kids {
  display: flex;
  justify-content: center;
  gap: clamp(0.5rem, 1.5vw, 1.15rem);
  position: relative;
}

.tree-kids::before {
  content: '';
  position: absolute;
  top: -1.65rem;
  left: 50%;
  width: 2px;
  height: 1.65rem;
  background: var(--line);
  transform: translateX(-50%);
}

.tree-branch {
  position: relative;
}

.tree-branch::before {
  content: '';
  position: absolute;
  top: -1.65rem;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--line);
}

.tree-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  position: static;
}

.callout {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
  box-shadow: var(--shadow);
  white-space: nowrap;
}

a.callout:hover,
a.callout:focus-visible {
  border-color: var(--green);
}

a.callout:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.callout::before {
  content: '+';
  display: inline-flex;
  width: 1.1rem;
  height: 1.1rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-soft);
  font-size: 0.85rem;
  line-height: 1;
}

@media (max-width: 720px) {
  .tree-mock {
    min-height: auto;
  }

  .tree-gen {
    flex-wrap: wrap;
  }

  .tree-couple::after,
  .tree-kids::before,
  .tree-branch::before {
    display: none;
  }
}

/* ——— 3. Show the tree ——— */
.show-tree {
  background: var(--surface);
}

.show-tree__intro {
  max-width: 34rem;
  margin: 0 auto var(--space-md);
  text-align: center;
}

.show-tree__intro .lede {
  margin-bottom: 1rem;
}

.show-tree__intro .copy {
  margin-inline: auto;
}

/* ——— 4. Build together ——— */
.together {
  background: var(--paper);
}

.together__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.together__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
}

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

.together__copy .lede {
  margin-bottom: 1rem;
}

.together__copy .copy {
  margin-bottom: 0.85rem;
}

.share-card {
  margin-top: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}

.share-card__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.share-card__row {
  display: flex;
  gap: 0.5rem;
}

.share-card__input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.88rem;
}

/* iOS Safari zooms the page when a focused field is under 16px. */
@media (pointer: coarse) {
  .share-card__input {
    font-size: max(1rem, 16px);
  }
}

.share-card__btn {
  border: none;
  border-radius: 10px;
  background: var(--green);
  color: #fffdf9;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0 1rem;
  cursor: pointer;
}

.activity {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.activity li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.activity.is-live li {
  opacity: 1;
  transform: none;
}

.activity.is-live li:nth-child(2) { transition-delay: 0.18s; }
.activity.is-live li:nth-child(3) { transition-delay: 0.36s; }

.activity__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .together__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .activity li {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ——— 5. Explore ——— */
.explore {
  background: var(--surface);
}

.explore__intro {
  max-width: 34rem;
  margin: 0 auto var(--space-md);
  text-align: center;
}

.explore__intro .lede {
  margin-bottom: 1rem;
}

.explore__intro .copy {
  margin-inline: auto;
}

.explore__stage {
  position: relative;
}

.explore__benefits {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin-top: var(--space-md);
  padding: 0;
  list-style: none;
}

.explore__benefits li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.98rem;
  color: var(--muted);
}

.explore__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  color: var(--green);
}

.explore__icon svg {
  width: 100%;
  height: 100%;
}

.profile-peek {
  position: absolute;
  right: 4%;
  top: 18%;
  width: min(15rem, 38%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  z-index: 4;
}

.profile-peek img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}

.profile-peek__name {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-top: 0.7rem;
}

.profile-peek__meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.profile-peek__story {
  font-size: 0.82rem;
  color: var(--ink);
  margin-top: 0.55rem;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .profile-peek {
    position: static;
    width: auto;
    margin: 1rem 1rem 0;
  }
}

/* ——— 6. Every name ——— */
.story-person {
  background: var(--paper);
}

.story-person__intro {
  max-width: 30rem;
  margin: 0 auto var(--space-md);
  text-align: center;
}

.story-person__intro .lede {
  margin-bottom: 1rem;
}

.story-person__intro .copy {
  margin-inline: auto;
}

.profile-card {
  max-width: 28rem;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.profile-card__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.profile-card__body {
  padding: 1.5rem 1.6rem 1.75rem;
}

.profile-card__name {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.25rem);
}

.profile-card__meta {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.profile-card__story {
  margin-top: 1.1rem;
  font-size: 1.05rem;
  line-height: 1.5;
}

.story-person__close {
  max-width: 28rem;
  margin: var(--space-md) auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 1.1rem;
}

/* ——— 7. From this ——— */
.from-this {
  background: var(--surface);
}

.from-this__intro {
  max-width: 34rem;
  margin: 0 auto var(--space-md);
  text-align: center;
}

.from-this__intro .lede {
  margin-bottom: 1rem;
}

.from-this__intro .copy {
  margin-inline: auto;
}

.from-this__stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  max-width: 56rem;
  margin: 0 auto;
}

.from-pane {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-lg);
  background: var(--sun);
}

.from-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.from-pane--old img {
  filter: sepia(0.35) contrast(0.95);
}

.from-pane--new {
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.from-pane--new img {
  aspect-ratio: 1;
  height: auto;
  flex: 0 0 auto;
}

.from-pane__meta {
  padding: 1.15rem 1.25rem 1.35rem;
}

.from-pane__meta h3 {
  font-size: 1.35rem;
}

.from-pane__meta p {
  margin-top: 0.3rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.from-this.is-morphed .from-pane--old {
  opacity: 0.55;
}

.from-this.is-morphed .from-pane--new {
  transform: scale(1.02);
}

.from-pane--old,
.from-pane--new {
  transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (max-width: 720px) {
  .from-this__stage {
    grid-template-columns: 1fr;
    max-width: 22rem;
  }
}

/* ——— 8. Designed for everyone ——— */
.simple {
  background: var(--paper);
}

.simple__intro {
  max-width: 34rem;
  margin: 0 auto var(--space-md);
  text-align: center;
}

.simple__intro .lede {
  margin-bottom: 1rem;
}

.simple__intro .copy {
  margin-inline: auto;
}

.simple__tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  max-width: 64rem;
  margin: 0 auto;
}

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 18rem;
  display: flex;
  flex-direction: column;
}

.tile__visual {
  flex: 1;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(400px 200px at 50% 0%, var(--green-soft) 0%, transparent 70%),
    var(--paper);
}

.tile__label {
  padding: 1rem 1.2rem 1.2rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  border-top: 1px solid var(--line);
}

.mini-form {
  width: 100%;
  max-width: 12rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mini-form span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
}

.mini-form div {
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.mini-form .mini-form__btn {
  margin-top: 0.35rem;
  height: 2.1rem;
  border-radius: 999px;
  background: var(--green);
  color: #fffdf9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
}

.phone-picker {
  width: 9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 0.65rem;
  box-shadow: var(--shadow);
}

.phone-picker__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

.phone-picker__grid img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.phone-picker__grid img.is-picked {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.invite-sheet {
  width: 11rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.invite-sheet img {
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.55rem;
}

.invite-sheet p {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.invite-sheet span {
  display: block;
  background: var(--green);
  color: #fffdf9;
  border-radius: 999px;
  padding: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.simple__close {
  text-align: center;
  margin-top: var(--space-md);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  color: var(--ink);
}

@media (max-width: 860px) {
  .simple__tiles {
    grid-template-columns: 1fr;
    max-width: 22rem;
  }
}

/* ——— 9. Generations ——— */
.generations {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) clamp(1.25rem, 5vw, 3.5rem);
  overflow: hidden;
  color: #fffdf9;
}

.generations__media {
  position: absolute;
  inset: 0;
}

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

.generations__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(42, 36, 28, 0.35) 0%, rgba(42, 36, 28, 0.55) 55%, rgba(42, 36, 28, 0.7) 100%);
}

.generations__content {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  text-align: center;
}

.generations__mark {
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 1.25rem;
  object-fit: contain;
}

.generations__content .lede {
  color: #fffdf9;
  margin-bottom: 1rem;
}

.generations__content .copy {
  color: rgba(255, 253, 249, 0.86);
  margin-inline: auto;
}

.generations__tagline {
  margin-top: 1.75rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  letter-spacing: 0.02em;
  color: rgba(255, 253, 249, 0.92);
}

/* ——— 10. Featured trees slider ——— */
.tree-slider-section {
  background: var(--paper);
}

.tree-slider-section__intro {
  max-width: 34rem;
  margin: 0 auto var(--space-md);
  text-align: center;
}

.tree-slider-section__intro .copy {
  margin-inline: auto;
}

.tree-slider {
  --tree-slider-cols: 3;
  --tree-slider-gap: 1.25rem;
  position: relative;
}

.tree-slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--tree-slider-cols) - 1) * var(--tree-slider-gap)) / var(--tree-slider-cols));
  gap: var(--tree-slider-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  padding: 0.35rem 0.15rem 1rem;
  margin-inline: -0.15rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tree-slider__track::-webkit-scrollbar {
  display: none;
}

.tree-slider__slide {
  scroll-snap-align: start;
  min-width: 0;
}

.tree-slider__nav {
  position: absolute;
  top: calc(50% - 2.5rem);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.tree-slider__nav:hover:not(:disabled) {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green);
}

.tree-slider__nav:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

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

.tree-slider__prev {
  left: -0.4rem;
}

.tree-slider__next {
  right: -0.4rem;
}

.tree-slider.is-static .tree-slider__nav {
  display: none;
}

.tree-slider-section__more {
  text-align: center;
  margin-top: var(--space-sm);
}

@media (max-width: 860px) {
  .tree-slider__track {
    grid-auto-columns: 82%;
  }

  .tree-slider__nav {
    display: none;
  }
}

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

.tree-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  height: 100%;
}

.tree-card__media {
  display: block;
  margin: 0;
  background: var(--sun);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.tree-card__media img,
.tree-card__placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.tree-card__placeholder {
  background: var(--sun);
}

.tree-card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 1rem 1.15rem 0.85rem;
  overflow-wrap: anywhere;
}

.tree-card__title a:hover,
.tree-card__title a:focus-visible {
  color: var(--green);
}

.tree-card__meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.45rem;
  margin: -0.55rem 1.15rem 0.85rem;
  min-width: 0;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.tree-card__byline {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-card__views {
  flex: none;
  white-space: nowrap;
}

.tree-card__byline + .tree-card__views::before {
  content: "·";
  margin-right: 0.45rem;
}

.tree-card__btn {
  margin: 0 1.15rem 1.15rem;
  align-self: flex-start;
  min-height: 2.6rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.92rem;
}

.tree-card:hover .tree-card__media img {
  transform: scale(1.02);
}

.tree-card__media img {
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
  backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .tree-card__media img {
    transition: none;
  }

  .tree-card:hover .tree-card__media img {
    transform: none;
  }
}

/* ——— 11. FAQ ——— */
.faq {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.faq__intro {
  max-width: 34rem;
  margin: 0 auto var(--space-md);
  text-align: center;
}

.faq__intro .lede {
  margin-bottom: 1rem;
}

.faq__intro .copy {
  margin-inline: auto;
}

.faq__list {
  max-width: 44rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq__item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease;
}

.faq__item[open] {
  border-color: var(--green);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.7rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item[open] .faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq__answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.faq__answer p {
  margin: 0;
  max-width: none;
}

/* ——— Language switcher ——— */
.lang-switch {
  position: relative;
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
}

.lang-switch__current {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.15rem;
  list-style: none;
  cursor: pointer;
  color: inherit;
}

.lang-switch__current::-webkit-details-marker {
  display: none;
}

.lang-switch__current:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}

.lang-switch__chevron {
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.1rem) rotate(45deg);
}

.lang-switch[open] .lang-switch__chevron {
  transform: translateY(0.1rem) rotate(225deg);
}

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  min-width: 10.5rem;
  margin: 0;
  padding: 0.35rem;
  border-radius: 12px;
  background: #fffdf9;
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(42, 36, 28, 0.14);
}

.lang-switch__link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  letter-spacing: 0;
  opacity: 1;
}

.lang-switch__link:hover,
.lang-switch__link:focus-visible {
  background: rgba(42, 36, 28, 0.06);
}

.lang-switch__link.is-current {
  background: rgba(42, 36, 28, 0.08);
}

.lang-switch--bar {
  color: #fffdf9;
}

.site-nav.is-scrolled .lang-switch--bar {
  color: var(--ink);
}

.lang-switch--panel {
  display: none;
}

.lang-switch--footer .lang-switch__menu {
  top: auto;
  bottom: calc(100% + 0.45rem);
}

.lang-switch--footer {
  color: var(--muted);
}

@media (max-width: 860px) {
  .lang-switch--bar {
    display: none;
  }

  .lang-switch--panel {
    display: block;
    margin-top: 0.85rem;
    color: inherit;
  }

  .lang-switch--panel .lang-switch__current {
    justify-content: center;
    width: 100%;
    font-size: 0.95rem;
  }

  .lang-switch--panel .lang-switch__menu {
    position: static;
    min-width: 0;
    margin-top: 0.35rem;
    box-shadow: none;
    background: transparent;
    color: inherit;
  }

  .site-nav:not(.is-scrolled) .lang-switch--panel .lang-switch__link.is-current {
    background: rgba(255, 253, 249, 0.16);
  }
}

/* ——— Default-language confirm ——— */
body.lang-default-open {
  overflow: hidden;
}

.lang-default[hidden] {
  display: none !important;
}

.lang-default {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  justify-items: center;
}

.lang-default__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(42, 36, 28, 0.45);
  cursor: pointer;
}

.lang-default__panel {
  position: relative;
  width: min(440px, 100%);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 1.75rem 1.4rem 2rem;
  box-shadow: var(--shadow-lg);
}

.lang-default__panel h2 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lang-default__panel p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.5;
}

.lang-default__actions {
  display: grid;
  gap: 0.6rem;
}

.lang-default__actions .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .lang-default {
    align-items: center;
    padding: 1.5rem;
  }

  .lang-default__panel {
    border-radius: var(--radius-lg);
  }
}

/* ——— 12. Final CTA ——— */
.final {
  min-height: 78svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) 1.5rem;
  background:
    radial-gradient(700px 380px at 50% 0%, var(--green-soft) 0%, transparent 65%),
    var(--paper);
}

.final__mark {
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.5rem;
  object-fit: contain;
}

.final .lede {
  margin-bottom: 0.75rem;
}

.final .copy {
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--paper);
}

.site-footer__row {
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.site-footer__brand img {
  width: 1.15rem;
  height: 1.15rem;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
}

.site-footer a:hover {
  color: var(--ink);
}

/* ——— WordPress: footer widgets ——— */
.site-footer__widgets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
}

.site-footer__col:empty {
  display: none;
}

.site-footer .widget {
  margin: 0 0 1.5rem;
}

.site-footer .widget:last-child {
  margin-bottom: 0;
}

.site-footer .widget-title,
.site-footer .widget h2,
.site-footer .widget h3,
.site-footer .wp-block-heading {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

.site-footer .widget p {
  margin: 0 0 0.75rem;
}

.site-footer .widget p:last-child {
  margin-bottom: 0;
}

.site-footer .widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .widget li {
  padding: 0.3rem 0;
}

.site-footer .widget a {
  color: inherit;
  text-decoration: none;
}

.site-footer .widget a:hover,
.site-footer .widget a:focus-visible {
  color: var(--ink);
}

.site-footer .wp-block-button__link,
.site-footer .widget .wp-block-button__link,
.site-footer .widget a.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  background: var(--green);
  color: #fffdf9;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-footer .wp-block-button__link:hover,
.site-footer .widget a.wp-block-button__link:hover,
.site-footer .widget a.wp-block-button__link:focus-visible {
  background: #365c4d;
  color: #fffdf9;
}

@media (max-width: 860px) {
  .site-footer__widgets {
    grid-template-columns: 1fr;
  }
}

/* ——— WordPress: primary menu markup ——— */
.site-nav__links li {
  position: relative;
  margin: 0;
  padding: 0;
}

.site-nav__links .current-menu-item > a,
.site-nav__links .current-menu-ancestor > a {
  opacity: 1;
}

.site-nav__links .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 861px) {
  .site-nav__links .sub-menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 50%;
    transform: translate(-50%, 0.25rem);
    min-width: 11rem;
    padding: 0.5rem;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .site-nav__links li:hover > .sub-menu,
  .site-nav__links li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }

  .site-nav__links .sub-menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    white-space: nowrap;
  }

  .site-nav__links .sub-menu a:hover,
  .site-nav__links .sub-menu a:focus-visible {
    background: var(--green-soft);
  }
}

@media (max-width: 860px) {
  .site-nav__links .sub-menu a {
    padding-left: 1.25rem;
    font-size: 0.98rem;
  }
}

/* ——— WordPress: inner pages ——— */
/* The nav is transparent over the front-page hero; everywhere else it is solid from the start. */
body.treetipi-inner .site-nav {
  background: rgba(247, 243, 236, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(42, 36, 28, 0.06);
  color: var(--ink);
}

body.treetipi-inner .site-nav__logo--white {
  opacity: 0;
}

body.treetipi-inner .site-nav__logo--color {
  opacity: 1;
}

body.treetipi-inner .site-nav__cta {
  background: var(--green);
  color: #fffdf9;
  box-shadow: 0 6px 16px rgba(63, 107, 90, 0.28);
}

body.treetipi-inner .site-nav__cta:hover {
  background: #365c4d;
}

body.treetipi-inner .site-nav__cta:focus-visible {
  outline-color: var(--green);
}

body.treetipi-inner .site-nav__toggle {
  border-color: rgba(42, 36, 28, 0.12);
  background: rgba(42, 36, 28, 0.04);
}

@media (max-width: 860px) {
  body.treetipi-inner .site-nav__menu {
    background: rgba(247, 243, 236, 0.97);
    color: var(--ink);
  }

  body.treetipi-inner .site-nav__links a {
    border-bottom-color: rgba(42, 36, 28, 0.08);
  }
}

body.treetipi-inner #main {
  padding-top: var(--nav-h);
  min-height: 60vh;
}

/* Explore does not use the frosted header. Solid paper, dark menu text. */
body.treetipi-explore .site-nav,
body.treetipi-explore .site-nav.is-scrolled {
  background: var(--paper);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--ink);
}

body.treetipi-explore .site-nav__login,
body.treetipi-explore .lang-switch--bar {
  color: var(--ink);
}

@media (max-width: 860px) {
  body.treetipi-explore .site-nav__menu,
  body.treetipi-explore .site-nav.is-scrolled .site-nav__menu {
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: var(--ink);
  }
}

.page-shell.section {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.page-shell__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
}

.page-shell__inner--narrow {
  max-width: 40rem;
}

.page-shell__main {
  min-width: 0;
}

body:not(.has-sidebar) .page-shell__main {
  max-width: 44rem;
  margin: 0 auto;
}

/* Blog: reading column plus a quiet sidebar on wide screens. */
body.has-sidebar .page-shell__inner {
  grid-template-columns: minmax(0, 1fr) 18rem;
  column-gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

body.has-sidebar .page-shell__main {
  max-width: 44rem;
}

.page-shell__aside {
  min-width: 0;
  padding-top: 0.35rem;
}

.page-shell__aside .widget {
  margin: 0 0 var(--space-md);
  padding: 0;
  background: none;
  border: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.page-shell__aside .widget:last-child {
  margin-bottom: 0;
}

.page-shell__aside .widget-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.page-shell__aside .widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-shell__aside .widget li {
  padding: 0.4rem 0;
  line-height: 1.45;
}

.page-shell__aside .widget li + li {
  border-top: 1px solid rgba(217, 207, 192, 0.45);
}

.page-shell__aside .widget a {
  color: var(--ink);
  transition: color 0.15s ease;
}

.page-shell__aside .widget a:hover,
.page-shell__aside .widget a:focus-visible {
  color: var(--green);
}

.page-shell__aside .widget .post-date {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

.page-shell__aside .widget .search-form {
  margin: 0;
  max-width: none;
}

.page-shell__aside .widget .search-submit {
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
}

.page-shell__aside .widget select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.page-shell__aside .tagcloud a,
.page-shell__aside .wp-tag-cloud a {
  display: inline-block;
  margin: 0 0.35rem 0.45rem 0;
  padding: 0.25rem 0.7rem;
  font-size: 0.82rem !important;
  border: 1px solid var(--line);
  border-radius: 999px;
}

@media (max-width: 860px) {
  body.has-sidebar .page-shell__inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-lg);
  }

  body.has-sidebar .page-shell__main {
    max-width: none;
  }

  .page-shell__aside {
    padding-top: var(--space-md);
    border-top: 1px solid var(--line);
  }
}

.page-header {
  margin-bottom: var(--space-md);
}

.page-header .lede {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  margin-bottom: 0.75rem;
}

.page-header__description {
  margin-top: 0.5rem;
}

.blog-header {
  margin-bottom: var(--space-lg);
}

.blog-header .lede {
  margin-bottom: 0.5rem;
}

.entry-header .entry-meta {
  margin-top: 0.25rem;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.55rem;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.entry-meta a {
  color: inherit;
  transition: color 0.15s ease;
}

.entry-meta a:hover,
.entry-meta a:focus-visible {
  color: var(--green);
}

.entry-meta__sep {
  color: var(--line);
}

.entry-meta__categories a {
  color: var(--green);
  font-weight: 600;
}

/* Below a single post: categories, then tags as pills. */
.entry-footer {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.entry-terms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.entry-terms__label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}

.entry-terms__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.entry-terms--categories a {
  color: var(--green);
  font-weight: 600;
}

.entry-terms--tags a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.2rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.84rem;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.entry-terms--tags a:hover,
.entry-terms--tags a:focus-visible {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-soft);
}

.entry-thumbnail {
  margin: 0 0 var(--space-md);
}

.entry-thumbnail img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.entry-thumbnail figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.entry--single .entry-header {
  margin-bottom: var(--space-md);
}

.entry--single .entry-header .lede {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  max-width: 22ch;
}

/* Post/page body typography */
.entry-content {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.entry-content > * {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-top: 2.25rem;
}

.entry-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.entry-content h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
}

.entry-content h4 {
  font-size: 1.15rem;
}

.entry-content a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.entry-content a:hover {
  color: #365c4d;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.4rem;
}

.entry-content li + li {
  margin-top: 0.35rem;
}

.entry-content blockquote,
.entry-content .wp-block-quote {
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--green);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.entry-content blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
}

.entry-content img,
.entry-content figure img {
  border-radius: var(--radius);
}

.entry-content figcaption,
.entry-content .wp-element-caption {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.entry-content hr,
.entry-content .wp-block-separator {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem auto;
}

.entry-content pre,
.entry-content code {
  font-size: 0.92em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.entry-content code {
  padding: 0.1em 0.35em;
}

.entry-content pre {
  padding: 1rem 1.15rem;
  overflow: auto;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.entry-content .wp-block-button__link {
  border-radius: 999px;
  background: var(--green);
  color: #fffdf9;
  text-decoration: none;
  font-weight: 600;
}

.entry-content .wp-block-button__link:hover {
  background: #365c4d;
}

.entry-content .is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.entry-content .alignwide {
  margin-left: calc(50% - min(50%, 36rem));
  margin-right: calc(50% - min(50%, 36rem));
  max-width: none;
}

body:not(.has-sidebar) .entry-content .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.entry-content .alignfull img {
  border-radius: 0;
}

.entry-content .alignleft {
  float: left;
  margin: 0.35rem 1.5rem 1rem 0;
}

.entry-content .alignright {
  float: right;
  margin: 0.35rem 0 1rem 1.5rem;
}

.entry-content .aligncenter {
  margin-left: auto;
  margin-right: auto;
}

.entry-content::after {
  content: '';
  display: table;
  clear: both;
}

.page-links {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.page-links a {
  color: var(--green);
  margin-left: 0.4rem;
}

/* Post cards: one editorial column, separated by space rather than boxes. */
.post-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--space-lg);
}

.post-card {
  display: grid;
  gap: 1.35rem;
  min-width: 0;
}

.post-card + .post-card {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
}

.post-card__media {
  display: block;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sun);
}

.post-card__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: none;
  border-radius: 0;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.post-card:hover .post-card__media img {
  transform: scale(1.02);
}

.post-card__body {
  min-width: 0;
}

.post-card__body .entry-meta {
  margin-bottom: 0.7rem;
}

.post-card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  overflow-wrap: anywhere;
}

.post-card__title a {
  transition: color 0.15s ease;
}

.post-card__title a:hover,
.post-card__title a:focus-visible {
  color: var(--green);
}

.entry-summary {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.65;
}

.entry-summary p {
  margin: 0;
}

.entry-summary p + p {
  margin-top: 0.75rem;
}

.entry-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  margin-top: 0.9rem;
  color: var(--green);
  font-weight: 600;
  font-size: 0.95rem;
}

.entry-more__arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.entry-more:hover .entry-more__arrow,
.entry-more:focus-visible .entry-more__arrow {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .post-card__media img,
  .entry-more__arrow {
    transition: none;
  }

  .post-card:hover .post-card__media img {
    transform: none;
  }
}

@media (max-width: 720px) {
  .post-list {
    row-gap: var(--space-md);
  }

  .post-card {
    gap: 1rem;
  }

  .post-card + .post-card {
    padding-top: var(--space-md);
  }

  .post-card__media {
    border-radius: var(--radius);
  }
}

/* Pagination and post navigation */
.pagination,
.post-navigation,
.comment-navigation {
  margin-top: var(--space-md);
  font-size: 0.95rem;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
}

.pagination .page-numbers.current {
  background: var(--green);
  border-color: var(--green);
  color: #fffdf9;
}

.pagination .page-numbers:hover:not(.current) {
  background: var(--green-soft);
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.post-navigation .nav-next {
  text-align: right;
}

.post-navigation .nav-subtitle {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.post-navigation .nav-title {
  font-family: var(--serif);
  font-size: 1.1rem;
}

/* Search form */
.search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 32rem;
  margin: 1rem 0;
}

.search-form .search-field {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.7rem 1rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.search-form .search-field:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.search-form .search-submit {
  padding: 0.7rem 1.25rem;
  border: 0;
  cursor: pointer;
}

/* Comments */
.comments-area {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
}

.comments-title,
.comment-reply-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
}

.comment-list,
.comment-list .children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list .children {
  margin-left: 2.5rem;
}

.comment-body {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.comment-author .avatar {
  border-radius: 50%;
}

.comment-metadata {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.25rem 0 0.75rem;
}

.comment-content p {
  margin: 0 0 0.75rem;
}

.comment-reply-link {
  font-size: 0.9rem;
  color: var(--green);
  font-weight: 600;
}

.comment-form label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.comment-form input[type='text'],
.comment-form input[type='email'],
.comment-form input[type='url'],
.comment-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.comment-form p {
  margin: 0 0 1rem;
}

.comment-form .submit {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fffdf9;
  font-weight: 600;
  cursor: pointer;
}

.comment-form .submit:hover {
  background: #365c4d;
}

.no-results,
.no-comments {
  color: var(--muted);
}

/* WordPress admin bar: keep the fixed nav below it. */
body.admin-bar .site-nav {
  top: var(--wp-admin--admin-bar--height, 32px);
}

body.admin-bar .site-nav__menu {
  inset: calc(var(--nav-h) + var(--wp-admin--admin-bar--height, 32px)) 0 auto;
}

body.admin-bar {
  scroll-padding-top: calc(var(--nav-h) + var(--wp-admin--admin-bar--height, 32px) + 0.75rem);
}

/* WordPress core helper classes */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  margin: 0;
  padding: 0.5rem 1rem;
  background: var(--surface);
  color: var(--ink);
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.88rem;
  color: var(--muted);
}

.sticky {
  position: relative;
}

.bypostauthor {
  position: relative;
}

.gallery-caption {
  font-size: 0.88rem;
}

/* Explore page */
.explore-page__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.explore-page__intro {
  max-width: 36rem;
  margin: 0 auto var(--space-md);
}

.explore-page__intro .lede {
  margin-bottom: 1rem;
}

.explore-page__intro .copy + .copy {
  margin-top: 0.85rem;
}

@media (min-width: 861px) {
  .explore-page__intro {
    text-align: center;
  }
}

.tree-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.explore-page__more {
  text-align: center;
  margin-top: var(--space-sm);
}

.explore-page__empty,
.explore-page__none {
  max-width: 34rem;
}

.explore-page__done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  max-width: 36rem;
  margin: var(--space-md) auto;
  padding: var(--space-sm) 1.25rem;
  text-align: center;
  color: var(--muted);
}

.explore-page__done .copy {
  margin: 0;
  max-width: 28rem;
}

.explore-page.section {
  padding-bottom: var(--space-md);
}

.explore-cta {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: var(--space-xl) clamp(1.25rem, 5vw, 3.5rem);
  text-align: center;
  color: #fffdf9;
  background: #2f5346;
}

.explore-cta__media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.explore-cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  filter: saturate(0.95) brightness(1.02);
}

.explore-cta__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(47, 83, 70, 0.48) 0%,
      rgba(42, 36, 28, 0.42) 45%,
      rgba(47, 83, 70, 0.62) 100%
    ),
    rgba(47, 83, 70, 0.18);
}

.explore-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin: 0 auto;
}

.explore-cta__logo {
  display: block;
  width: min(15.5rem, 72%);
  height: auto;
  margin: 0 auto 1.75rem;
  object-fit: contain;
}

.explore-cta .lede {
  color: #fffdf9;
  margin-bottom: 0.85rem;
}

.explore-cta .copy {
  margin: 0 auto 1.75rem;
  color: rgba(255, 253, 249, 0.86);
}

.explore-cta__btn {
  background: #fffdf9;
  color: var(--green);
  box-shadow: 0 10px 24px rgba(18, 32, 26, 0.28);
}

.explore-cta__btn:hover {
  background: var(--sun);
  color: #2f5346;
}

.explore-cta__btn:focus-visible {
  outline-color: #fffdf9;
}

.explore-cta .reassure {
  color: rgba(255, 253, 249, 0.7);
}

.explore-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.75rem;
  margin: 0 0 1.5rem;
}

/* Same round search pill as the tree canvas: icon only until opened. */
.explore-filter__search {
  flex: 0 0 54px;
  width: 54px;
  max-width: 100%;
  min-width: 0;
  transition: width 0.22s ease, flex-basis 0.22s ease;
}

.explore-filter__search.is-open {
  flex: 0 0 280px;
  width: 280px;
  max-width: 280px;
}

.explore-filter__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  box-sizing: border-box;
  padding: 6px;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.explore-filter__toggle {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.explore-filter__toggle svg {
  display: block;
}

.explore-filter__search:not(.is-open) .explore-filter__input {
  display: none;
}

.explore-filter__input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  margin: 0;
  padding: 0 10px 0 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font: inherit;
  font-size: max(1rem, 16px);
  line-height: 1.4;
}

.explore-filter__input:focus {
  outline: none;
}

.explore-filter__bar:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.explore-filter__trending {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin-left: auto;
}

.explore-filter__trending-label {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.explore-filter__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.explore-filter__tag {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.4;
  cursor: pointer;
}

.explore-filter__tag.is-on {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.explore-filter__clear {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .explore-filter__search {
    transition: none;
  }
}

@media (max-width: 860px) {
  .tree-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .tree-masonry {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ——— Pricing ——— */
.pricing-hero {
  overflow: hidden;
  min-height: 70svh;
  display: flex;
  align-items: center;
  text-align: center;
}

.pricing-hero__media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pricing-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

.pricing-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, var(--paper) 0%, transparent 58%),
    linear-gradient(to bottom, var(--paper) 0%, transparent 18%, transparent 72%, var(--paper) 100%);
}

.pricing-hero__content {
  position: relative;
  z-index: 1;
}

.pricing-hero .lede {
  margin-bottom: 1.25rem;
}

.pricing-hero .copy {
  margin-inline: auto;
}

.pricing-plans {
  padding-top: 0;
}

.pricing-plans__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.pricing-card--pro {
  background:
    linear-gradient(180deg, var(--green-soft) 0%, var(--surface) 7.5rem);
  box-shadow: var(--shadow-lg);
  outline: 1px solid rgba(63, 107, 90, 0.28);
}

.pricing-card__badge {
  align-self: flex-start;
  margin: 0 0 0.85rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--green);
  color: #fffdf9;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.pricing-card__name {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0;
}

.pricing-card__amount {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-card__period {
  color: var(--muted);
  font-size: 1.05rem;
}

.pricing-card__alt {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.pricing-card__desc,
.pricing-card__plus {
  margin: 1.15rem 0 0;
  color: var(--ink);
  font-size: 1.05rem;
}

.pricing-card__list {
  margin: 1rem 0 1.5rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.pricing-card__list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.35rem;
  color: var(--ink);
}

.pricing-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--green);
}

.pricing-card__cta {
  width: 100%;
}

.pricing-toggle {
  display: inline-flex;
  margin-bottom: 1.1rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: var(--sun);
}

.pricing-toggle__btn {
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.pricing-toggle__btn.is-on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(42, 36, 28, 0.08);
}

.pricing-toggle__btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.pricing-compare .lede {
  margin-bottom: 1.75rem;
  text-align: center;
}

.pricing-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pricing-table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 1.02rem;
}

.pricing-table th,
.pricing-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}

.pricing-table thead th {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}

.pricing-table tbody th {
  color: var(--ink);
}

.pricing-table td {
  color: var(--muted);
  width: 28%;
}

.pricing-table__mark {
  color: var(--green);
  font-size: 1.15rem;
}

.pricing-table__mark--no {
  color: var(--line);
}

.pricing-compare__note {
  margin: 1.75rem 0 0;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--ink);
}

.pricing-why__intro {
  max-width: 40rem;
  margin: 0 auto var(--space-md);
  text-align: center;
}

.pricing-why__intro .lede {
  margin-bottom: 1rem;
}

.pricing-why__intro .copy {
  margin-inline: auto;
}

.pricing-why__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.pricing-why__block img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}

.pricing-why__block h3 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
}

.pricing-why__block p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.pricing-lifetime__card {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 3rem);
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.pricing-lifetime__card .lede {
  margin-bottom: 0.75rem;
}

.pricing-lifetime__card .pricing-card__price {
  justify-content: center;
  margin-bottom: 1rem;
}

.pricing-lifetime__card .copy {
  margin: 0 auto 0.75rem;
}

.pricing-lifetime__line {
  margin: 0 0 1.5rem;
  color: var(--ink);
}

@media (max-width: 860px) {
  .pricing-plans__grid,
  .pricing-why__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pricing-card__cta,
  .pricing-lifetime__card .btn {
    width: 100%;
  }
}
