/* ==========================================================================
   Pembrokeshire Hands — design system
   1. Tokens
   2. Base & helpers
   3. Components (buttons, pills, fields, avatars)
   4. Header & navigation
   5. Hero
   6. Why
   7. How it works
   8. Listings
   9. Exchange
   10. Who it helps
   11. Membership
   12. FAQ
   13. Join
   14. Footer
   15. Motion & responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Colour */
  --paper: #f7f2e7;
  --paper-deep: #efe6d4;
  --white: #fffdf7;
  --ink: #15211c;
  --ink-soft: #4a5a52;
  --forest: #0e3a31;
  --forest-deep: #07261f;
  --lime: #dcf36f;
  --lime-bright: #e8fa96;
  --marigold: #f5b94a;
  --clay: #c85a34;
  --mist: #cfe3da;
  --line: rgba(21, 33, 28, 0.14);
  --line-strong: rgba(21, 33, 28, 0.26);
  --line-light: rgba(247, 242, 231, 0.18);

  /* Type */
  --font-display: "Palatino Linotype", "Book Antiqua", Palatino, "Iowan Old Style", Georgia, serif;
  --font-sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --t-hero: clamp(2.9rem, 6.1vw, 5.5rem);
  --t-display: clamp(2.05rem, 4.4vw, 3.6rem);
  --t-h3: clamp(1.12rem, 1.5vw, 1.3rem);
  --t-lead: clamp(1.05rem, 1.15vw, 1.22rem);
  --t-body: 1rem;
  --t-small: 0.875rem;
  --t-label: 0.72rem;

  /* Space */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --section-y: clamp(60px, 8.5vw, 118px);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(18px, 4vw, 44px);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-2xl: 42px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(7, 38, 31, 0.06);
  --shadow-sm: 0 10px 24px -18px rgba(7, 38, 31, 0.5);
  --shadow-md: 0 24px 44px -28px rgba(7, 38, 31, 0.45);
  --shadow-lg: 0 44px 80px -46px rgba(7, 38, 31, 0.55);
  --ring: 0 0 0 3px rgba(220, 243, 111, 0.55);

  /* Motion */
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 640ms;
  --dur-reveal: 900ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0.05, 0.36, 1);
  --reveal-delay: 0ms;
}

/* 2. Base & helpers -------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }

::selection { background: var(--lime); color: var(--forest-deep); }

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -80px;
  z-index: 120;
  background: var(--forest);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: var(--space-md); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 4px rgba(200, 90, 52, 0.14);
}
.eyebrow--light { color: rgba(247, 242, 231, 0.72); }
.eyebrow--light .eyebrow__dot { background: var(--lime); box-shadow: 0 0 0 4px rgba(220, 243, 111, 0.18); }

.display {
  font-size: var(--t-display);
  line-height: 1.02;
  letter-spacing: -0.028em;
  max-width: 20ch;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--clay);
}
.display--light { color: var(--paper); }
.display--light em { color: var(--lime); }

.lead {
  font-size: var(--t-lead);
  line-height: 1.6;
  color: var(--ink);
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: var(--space-xl) var(--space-2xl);
  align-items: end;
  margin-bottom: clamp(32px, 4.5vw, 56px);
}
.section__head > div { display: grid; gap: var(--space-md); justify-items: start; }
.section__head--tight { margin-bottom: clamp(24px, 3vw, 40px); }
.section__intro {
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 38ch;
  padding-bottom: 4px;
}

/* 3. Components ------------------------------------------------------------ */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid var(--btn-border);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: var(--lime);
  --btn-fg: var(--forest-deep);
  --btn-border: rgba(7, 38, 31, 0.16);
  box-shadow: 0 10px 24px -18px rgba(7, 38, 31, 0.8);
}
.btn--primary:hover { --btn-bg: var(--lime-bright); box-shadow: 0 18px 30px -18px rgba(7, 38, 31, 0.55); }

.btn--dark { --btn-bg: var(--forest); --btn-fg: var(--paper); }
.btn--dark:hover { --btn-bg: var(--forest-deep); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: var(--line-strong);
}
.btn--outline:hover { --btn-bg: var(--white); --btn-border: var(--ink); }

.btn--ghost { --btn-fg: var(--ink); padding-inline: 14px; }
.btn--ghost:hover { --btn-bg: rgba(21, 33, 28, 0.06); }

.btn--lg { min-height: 54px; padding-inline: 26px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn__arrow {
  width: 18px; height: 18px;
  transition: transform var(--dur) var(--ease-out);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.tag--price { background: var(--paper-deep); color: var(--forest-deep); border: 1px solid rgba(21, 33, 28, 0.08); }
.tag--swap { background: rgba(220, 243, 111, 0.85); color: var(--forest-deep); border: 1px solid rgba(7, 38, 31, 0.12); }

.avatar {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--forest-deep);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex: none;
}
.avatar--sage { background: #d5e5cf; }
.avatar--mist { background: var(--mist); }
.avatar--clay { background: #f2d3c5; }
.avatar--marigold { background: #f8e2b4; }
.avatar--lime { background: var(--lime); }
.avatar--ink { background: var(--forest); color: var(--paper); }

.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: rgba(207, 227, 218, 0.6);
  color: var(--forest);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.verified-pill svg { width: 11px; height: 11px; }

.verified {
  display: inline-grid;
  place-items: center;
  width: 16px; height: 16px;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--lime);
  vertical-align: -3px;
}
.verified svg { width: 10px; height: 10px; }

.ticks { display: grid; gap: 10px; }
.ticks li {
  position: relative;
  padding-left: 30px;
  font-size: 0.96rem;
  line-height: 1.5;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.14;
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 5px; top: 8px;
  width: 8px; height: 4px;
  border-left: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(-45deg);
}
.ticks--plain li::before { background: var(--forest); opacity: 0.1; }

.field { display: grid; gap: 6px; margin-bottom: var(--space-md); }
.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field__optional { font-weight: 500; letter-spacing: 0.04em; text-transform: none; font-style: italic; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(74, 90, 82, 0.62); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--line-strong); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--forest);
  box-shadow: var(--ring);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--clay); }
.field__error {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clay);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }

/* 4. Header & navigation --------------------------------------------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 38px;
  padding: 8px var(--gutter);
  background: var(--forest-deep);
  color: rgba(247, 242, 231, 0.86);
  font-size: 0.78rem;
  letter-spacing: 0.045em;
  text-align: center;
}
.topbar p { display: inline-flex; align-items: center; gap: 8px; }
.topbar__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(220, 243, 111, 0.14);
}
.topbar a { color: var(--lime); font-weight: 600; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding-block: 10px;
  transition: padding var(--dur) var(--ease-out);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  width: calc(100% - (var(--gutter) * 2));
  max-width: var(--container);
  margin-inline: auto;
  padding: 8px 10px 8px 14px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  transition:
    background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}
.site-header.is-scrolled { padding-block: 6px; }
.site-header.is-scrolled .site-header__inner {
  border-color: var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  flex: none;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--forest);
  color: var(--lime);
  transition: transform var(--dur) var(--ease-out), border-radius var(--dur) var(--ease-out);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand:hover .brand__mark { transform: rotate(-6deg); border-radius: 50%; }
.brand__text {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.brand__text em { font-style: italic; font-weight: 400; color: var(--clay); }

.site-nav { margin-left: auto; }
.site-nav__list { display: flex; align-items: center; gap: 4px; }
.site-nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 13px;
  border-radius: var(--r-pill);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.site-nav__list a:hover { background: rgba(21, 33, 28, 0.07); }

.site-header__actions { display: flex; align-items: center; gap: 6px; }

.nav-toggle {
  display: none;
  place-items: center;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 17px; height: 1.8px;
  margin-block: 3px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.9px) rotate(-45deg); }

.mobile-menu[hidden] { display: none; }
.mobile-menu:not(.is-open) { pointer-events: none; }
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: 132px var(--gutter) var(--space-2xl);
  background: var(--paper);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu nav ul { display: grid; gap: 2px; }
.mobile-menu nav a {
  display: flex;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}
.mobile-menu__note { font-size: 0.85rem; color: var(--ink-soft); text-align: center; }

body.is-locked { overflow: hidden; }

/* 5. Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  padding-top: clamp(24px, 4vw, 52px);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -180px; right: -120px;
  width: min(720px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(220, 243, 111, 0.55), rgba(220, 243, 111, 0) 62%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-bottom: clamp(44px, 6vw, 76px);
}

.hero__title {
  margin-block: var(--space-lg) var(--space-lg);
  font-size: var(--t-hero);
  line-height: 0.94;
  letter-spacing: -0.035em;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-block: 0.06em;
  margin-block: -0.06em;
}
.word {
  display: inline-block;
  transform: translateY(112%) rotate(2deg);
  animation: word-up var(--dur-reveal) var(--ease-out) forwards;
  animation-delay: calc(120ms + (var(--i) * 80ms));
}
.word--accent {
  font-style: italic;
  font-weight: 400;
  color: var(--clay);
  letter-spacing: -0.03em;
}
@keyframes word-up {
  to { transform: translateY(0) rotate(0); }
}

.hero__lead {
  max-width: 47ch;
  font-size: var(--t-lead);
  line-height: 1.62;
  color: var(--ink-soft);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-lg);
}
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: var(--space-lg);
  font-size: 0.83rem;
  color: var(--ink-soft);
}
.hero__proof li { display: inline-flex; align-items: center; gap: 14px; }
.hero__proof li + li::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
}

.hero__media { position: relative; }
.hero__figure {
  position: relative;
  margin: 0;
  border-radius: var(--r-2xl);
  background: var(--paper-deep);
  box-shadow: var(--shadow-lg);
}
.hero__figure img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: var(--r-2xl);
  border: 1px solid rgba(21, 33, 28, 0.08);
}
.hero__caption {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--forest-deep) 72%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--paper);
  font-size: 0.76rem;
  line-height: 1.4;
}
.hero__caption span:first-child { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.68rem; color: var(--lime); }

.hero__badge {
  position: absolute;
  top: -18px; left: -26px;
  width: 128px; aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--forest-deep);
  box-shadow: 0 18px 34px -22px rgba(7, 38, 31, 0.7);
  animation: badge-spin 32s linear infinite;
}
.hero__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__badge svg text {
  font-family: var(--font-sans);
  font-size: 8.4px;
  font-weight: 700;
  letter-spacing: 0.16em;
  fill: var(--forest-deep);
}
.hero__badge-center {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.05;
  text-align: center;
}
@keyframes badge-spin { to { transform: rotate(360deg); } }

.hero__card {
  position: absolute;
  left: -32px; bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(330px, 92%);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--shadow-md);
  animation: card-float 7s var(--ease-inout) infinite alternate;
}
.hero__card-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}
.hero__card-meta { font-size: 0.78rem; color: var(--ink-soft); line-height: 1.3; }
.hero__card .tag { margin-left: auto; }
@keyframes card-float {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

.marquee {
  border-block: 1px solid rgba(7, 38, 31, 0.16);
  background: var(--lime);
  color: var(--forest-deep);
  overflow: hidden;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  padding-block: 15px;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__dot { color: var(--clay); font-size: 1rem; letter-spacing: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 6. Why ------------------------------------------------------------------- */
.why__head {
  display: grid;
  gap: var(--space-md);
  max-width: min(100%, 860px);
  margin-bottom: clamp(28px, 4vw, 44px);
}
.why__head .display { max-width: 24ch; }
.why__body {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.why__text { display: grid; gap: var(--space-md); max-width: 52ch; }
.why__text p:not(.lead) { color: var(--ink-soft); }
.why__facts { display: grid; gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; }
.fact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px var(--space-md);
  padding: var(--space-lg);
  background: var(--paper);
  transition: background-color var(--dur) var(--ease-out);
}
.fact__num {
  grid-row: span 2;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--clay);
  padding-top: 3px;
}
.fact h3 { font-size: var(--t-h3); margin-bottom: 4px; }
.fact p { font-size: 0.94rem; color: var(--ink-soft); line-height: 1.55; }

.why__figure {
  position: relative;
  margin: clamp(36px, 5vw, 64px) 0 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.why__figure img {
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.why__figure figcaption {
  position: absolute;
  left: 18px; bottom: 18px;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  background: rgba(7, 38, 31, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--paper);
  font-size: 0.8rem;
}

/* 7. How it works ---------------------------------------------------------- */
.how { background: var(--paper-deep); }
.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.step {
  position: relative;
  display: grid;
  gap: 10px;
  padding: clamp(24px, 3vw, 40px);
  background: var(--paper-deep);
  transition: background-color var(--dur) var(--ease-out);
}
.step__num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  color: var(--clay);
  opacity: 0.85;
}
.step h3 { font-size: clamp(1.2rem, 1.7vw, 1.5rem); max-width: 18ch; }
.step p { color: var(--ink-soft); font-size: 0.96rem; max-width: 42ch; }

/* 8. Listings -------------------------------------------------------------- */
.listings__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
}
.segmented__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.segmented__btn:hover { background: rgba(21, 33, 28, 0.05); }
.segmented__btn.is-active { background: var(--forest); color: var(--paper); }
.segmented__btn.is-active:hover { background: var(--forest-deep); }
.segmented__count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding-inline: 6px;
  border-radius: var(--r-pill);
  background: rgba(21, 33, 28, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
}
.segmented__btn.is-active .segmented__count { background: rgba(220, 243, 111, 0.9); color: var(--forest-deep); }
.segmented__count:empty { display: none; }
.listings__count { font-size: 0.85rem; color: var(--ink-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-xl); }
.chip {
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: transparent;
  font-size: 0.87rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}
.chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.chip.is-active { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 288px), 1fr));
  gap: var(--space-md);
}
.listing {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--space-lg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  transition:
    transform var(--dur-slow) var(--ease-out),
    box-shadow var(--dur-slow) var(--ease-out),
    border-color var(--dur) var(--ease-out);
}
.listing[hidden] { display: none; }
.listing__head { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.listing h3 { font-size: 1.15rem; line-height: 1.22; letter-spacing: -0.015em; }
.listing__desc { font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft); }
.listing__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.listing__meta li { display: inline-flex; align-items: center; gap: 6px; }
.listing__meta li + li::before {
  content: "";
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}
.listing__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.listing__type {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.listings__empty {
  padding: var(--space-2xl) var(--space-lg);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  text-align: center;
  color: var(--ink-soft);
}
.listings__empty[hidden] { display: none; }
.listings__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
}
.listings__foot p { font-size: 0.9rem; color: var(--ink-soft); max-width: 56ch; }

/* 9. Exchange -------------------------------------------------------------- */
.exchange { background: var(--paper-deep); }
.exchange__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}
.exchange-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: var(--r-xl);
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}
.exchange-card--dark { background: var(--forest); color: var(--paper); }
.exchange-card--lime { background: var(--lime); color: var(--forest-deep); }
.exchange-card__kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}
.exchange-card__title {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.exchange-card__title br { display: block; }
.exchange-card__lead { font-size: 1rem; line-height: 1.55; opacity: 0.85; max-width: 44ch; }
.exchange-card .ticks { margin-top: auto; padding-top: var(--space-md); border-top: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 22%, transparent); }
.exchange-card__note { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }

/* 10. Who it helps --------------------------------------------------------- */
.who__list {
  border-top: 1px solid var(--line);
}
.who__row {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: var(--space-md) var(--space-2xl);
  align-items: baseline;
  padding: clamp(18px, 2.4vw, 28px) clamp(8px, 1.4vw, 18px);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--dur) var(--ease-out), padding-left var(--dur) var(--ease-out);
}
.who__row dt {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.who__row dd { margin: 0; color: var(--ink-soft); font-size: 0.98rem; max-width: 62ch; }

/* 11. Membership ----------------------------------------------------------- */
.membership { background: var(--paper-deep); }
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--paper);
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.plan--featured { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.plan__flag {
  position: absolute;
  top: -12px; left: 24px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--lime);
  color: var(--forest-deep);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.plan__top { display: grid; gap: 6px; }
.plan h3 { font-size: 1.5rem; }
.plan__price { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink-soft); }
.plan--featured .plan__price { color: rgba(247, 242, 231, 0.72); }
.plan__price span {
  display: inline-block;
  margin-right: 4px;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.plan--featured .plan__price span { color: var(--lime); }
.plan__desc { font-size: 0.94rem; color: var(--ink-soft); }
.plan--featured .plan__desc { color: rgba(247, 242, 231, 0.78); }
.plan .ticks { font-size: 0.94rem; }
.plan--featured .ticks li::before { background: var(--lime); opacity: 0.9; }
.plan .btn { margin-top: auto; }
.plan--featured .btn--primary { --btn-bg: var(--lime); }
.membership__fine {
  max-width: 82ch;
  margin-top: var(--space-xl);
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* 12. FAQ ------------------------------------------------------------------ */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.faq__aside { display: grid; gap: var(--space-md); position: sticky; top: 110px; }
.faq__aside p { color: var(--ink-soft); font-size: 0.94rem; max-width: 32ch; }
.faq__aside a { color: var(--forest); font-weight: 600; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 64px;
  padding: 18px 4px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.45vw, 1.24rem);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--clay); }
.faq__icon {
  position: relative;
  flex: none;
  width: 30px; height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 1.6px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--forest); border-color: var(--forest); transform: rotate(180deg); }
.faq__item[open] .faq__icon::before,
.faq__item[open] .faq__icon::after { background: var(--lime); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease-out);
}
.faq__item[open] .faq__panel { grid-template-rows: 1fr; }
.faq__panel > div { overflow: hidden; }
.faq__panel p {
  padding: 0 4px 22px;
  max-width: 62ch;
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* 13. Join ----------------------------------------------------------------- */
.join {
  position: relative;
  background: var(--forest);
  color: var(--paper);
  overflow: hidden;
}
.join::before {
  content: "";
  position: absolute;
  left: -140px; top: -160px;
  width: 520px; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 243, 111, 0.16), transparent 68%);
  pointer-events: none;
}
.join__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.join__copy { display: grid; gap: var(--space-md); }
.join .display { max-width: 15ch; }
.join__lead { color: rgba(247, 242, 231, 0.8); max-width: 46ch; font-size: 1.02rem; }
.join__points { display: grid; gap: 8px; margin-top: var(--space-xs); }
.join__points li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  color: rgba(247, 242, 231, 0.82);
}
.join__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--lime);
  transform: rotate(45deg);
}
.join__points strong { color: var(--paper); }
.join__figure {
  margin: var(--space-md) 0 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-light);
}
.join__figure img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

.join__form-wrap { position: relative; }
.join__form {
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--r-xl);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.join__form-title { font-size: 1.35rem; margin-bottom: var(--space-lg); }
.join__form .btn { margin-top: var(--space-xs); }
.join__form-note {
  margin-top: var(--space-sm);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: center;
}
.join__form-note.is-success { color: var(--forest); font-weight: 600; }
.join__form-small {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
}
.join__form-small a { color: var(--forest); font-weight: 600; }

/* 14. Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--forest-deep);
  color: rgba(247, 242, 231, 0.78);
  padding-top: clamp(48px, 6vw, 80px);
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(32px, 4vw, 56px);
}
.site-footer__wordmark {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--paper);
}
.site-footer__wordmark em { font-style: italic; font-weight: 400; color: var(--lime); }
.site-footer__tag { margin-block: 10px var(--space-lg); font-size: 0.92rem; }
.site-footer__brand .btn--primary { --btn-bg: var(--lime); }

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}
.site-footer__nav h2 {
  margin-bottom: var(--space-sm);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 242, 231, 0.5);
}
.site-footer__nav ul { display: grid; gap: 8px; }
.site-footer__nav a {
  font-size: 0.92rem;
  color: rgba(247, 242, 231, 0.85);
  text-decoration: none;
  transition: color var(--dur) var(--ease-out);
}
.site-footer__nav a:hover { color: var(--lime); text-decoration: underline; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: var(--space-lg);
  border-top: 1px solid var(--line-light);
  font-size: 0.76rem;
  color: rgba(247, 242, 231, 0.55);
}
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.site-footer__bottom a { text-decoration: none; }
.site-footer__bottom a:hover { color: var(--paper); text-decoration: underline; }

/* 15. Motion & responsive -------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out),
    filter var(--dur-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (max-width: 1080px) {
  .site-nav__list a { padding-inline: 9px; font-size: 0.86rem; }
  .btn--ghost { display: none; }
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .hero__card { left: -12px; }
}

@media (max-width: 920px) {
  html.js .site-nav { display: none; }
  html.js .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .site-header__actions { margin-left: auto; }

  .hero__grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .hero__media { max-width: 560px; width: 100%; }
  .hero__figure img { aspect-ratio: 5 / 4.2; }
  .hero__badge { left: auto; right: 10px; top: -22px; width: 112px; }
  .hero__card { left: 10px; bottom: -18px; }
  .hero__caption { display: none; }

  .section__head { grid-template-columns: 1fr; align-items: start; }
  .section__intro { max-width: 56ch; }
  .why__body { grid-template-columns: 1fr; }
  .exchange__grid { grid-template-columns: 1fr; }
  .faq__grid { grid-template-columns: 1fr; }
  .faq__aside { position: static; }
  .faq__aside p { max-width: 46ch; }
  .join__grid { grid-template-columns: 1fr; }
  .join__figure { max-width: 520px; }
  .site-footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --section-y: clamp(48px, 9vw, 72px); }

  .topbar { font-size: 0.72rem; gap: 8px; }
  .topbar a { display: none; }

  .hero__title { letter-spacing: -0.03em; }
  .hero__actions .btn { width: 100%; }
  .hero__proof { gap: 6px 10px; font-size: 0.78rem; }
  .hero__proof li { gap: 10px; }

  .why__figure img { aspect-ratio: 4 / 3; }
  .why__figure figcaption { left: 10px; right: 10px; bottom: 10px; font-size: 0.76rem; }

  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan--featured { order: -1; }

  .who__row { grid-template-columns: 1fr; gap: 6px; }
  .who__row dd { font-size: 0.94rem; }

  .listings__controls { justify-content: flex-start; }
  .listings__count { order: 3; }
  .segmented { width: 100%; }
  .segmented__btn { flex: 1; justify-content: center; }

  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding: 2px var(--gutter) 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }

  .exchange-card__title br { display: none; }

  .site-footer__nav { grid-template-columns: 1fr 1fr; gap: var(--space-xl) var(--space-md); }
  .site-footer__bottom { justify-content: flex-start; }

  .join__form .field-row { grid-template-columns: 1fr; }
  .join__form { padding: var(--space-lg) var(--space-md); }
}

@media (max-width: 520px) {
  html.js .site-header__actions .btn--primary { display: none; }
}

@media (max-width: 420px) {
  .brand__text { font-size: 0.98rem; }
  .hero__badge { width: 92px; right: 4px; }
  .hero__badge-center { font-size: 0.82rem; }
  .hero__card { max-width: 100%; left: 4px; right: 4px; bottom: -22px; padding: 10px; gap: 10px; }
  .hero__card .tag { font-size: 0.7rem; padding-inline: 8px; }
  .hero__card-name { font-size: 0.92rem; }
  .hero__card-meta { font-size: 0.72rem; }
  .site-footer__nav { grid-template-columns: 1fr; }
  .site-footer__bottom ul { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .word { transform: none; }
  .marquee__track { animation: none; }
}
