/* ==================================================================
   The Money Garden — botanical-editorial theme
   A committed dark "conservatory at dusk" world: deep botanical green
   ground, honey-gold accent, blossom + sage, warm ivory type.
   Fraunces (display) + Inter (text). Every class name is preserved so
   the gate, featured grid, filters and download logic keep working.
   ================================================================== */

:root {
  --ground: #112019;
  --ground-2: #0e1c15;
  --panel: #1b3227;
  --panel-2: #16281e;
  --ink: #f1ebdd;
  --ink-soft: #cfdac7;
  --ink-mute: #a6b9a6;
  --dim: #a6b9a6;
  --gold: #e0b352;
  --gold-soft: #f2d190;
  --blush: #e0997a;
  --sage: #a9c3a4;
  --leaf: #5e8a5f;
  --line: #2c4736;
  --line-soft: #24382c;
  --parchment: #f4ecdb;
  --parchment-2: #e6d8bd;
  --parchment-ink: #3a3320;
  --border: #2c4736;               /* alias kept for older rules */
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 18px 42px -26px rgba(0,0,0,.7);
  --radius: 16px;
  --radius-sm: 10px;
  --max-w: 1180px;
  --font-serif: "Fraunces", "Lora", "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* soft ambient garden light behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(80% 55% at 82% -5%, rgba(224,179,82,.12), transparent 60%),
    radial-gradient(60% 45% at 8% 4%, rgba(169,195,164,.07), transparent 62%);
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--gold-soft); }

::selection { background: var(--gold); color: #221703; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- NAV ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 28, 21, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: .01em;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 50% 50% 50% 8px;
  background: linear-gradient(150deg, var(--sage), var(--leaf));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transform: rotate(-10deg);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.22);
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
  position: relative;
}
.nav-links a:hover { color: var(--gold-soft); }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -8px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  opacity: .7;
}
.nav-links a.btn.active::after { content: none; }
.nav-toggle {
  display: none;
  background: none; border: none;
  font-size: 24px; cursor: pointer; color: var(--ink);
}

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  font-family: inherit;
}
.btn-primary {
  background: var(--gold);
  color: #221703;
}
.btn-primary:hover {
  background: var(--gold-soft);
  color: #221703;
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
  background: rgba(224,179,82,.05);
}
.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
}

/* ---------------- HERO (home, two-column editorial) ---------------- */
.hero {
  padding: 44px 0 8px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 52px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.03;
  margin: 0 0 22px;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p {
  font-size: 18px;
  color: var(--dim);
  max-width: 44ch;
  margin: 0 0 32px;
  line-height: 1.6;
}
.hero p em { font-style: italic; color: var(--sage); }
.hero-actions {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* botanical hero visual */
.plot {
  position: relative;
  aspect-ratio: 1 / 1.08;
  border-radius: 4px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 12%, rgba(224,179,82,.22), transparent 58%),
    linear-gradient(170deg, #1c3527, #0e1c15);
  border: 1px solid var(--line);
}
.plot svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.plot .cap {
  position: absolute; left: 18px; bottom: 16px;
  font-family: var(--font-serif); font-style: italic; font-size: 15px;
  color: var(--ink); text-shadow: 0 2px 14px rgba(0,0,0,.6);
}
.plot .badge {
  position: absolute; right: 16px; top: 16px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; background: rgba(17,32,25,.6);
}

/* tagline strip */
.taglinestrip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 52px;
  padding: 28px 0;
}
.taglinestrip p {
  margin: 0; text-align: center;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(18px, 2.3vw, 26px);
  color: var(--ink);
  text-wrap: balance;
}
.taglinestrip .lf { color: var(--sage); font-style: normal; }

/* ---------------- STAT STRIP ---------------- */
.statrow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.statrow .stat { background: var(--ground); padding: 26px 22px; }
.statrow .stat .n {
  font-family: var(--font-serif);
  font-size: 30px; color: var(--gold); margin-bottom: 6px;
  letter-spacing: -.01em;
}
.statrow .stat .l { font-size: 13.5px; color: var(--dim); line-height: 1.4; }

/* ---------------- SECTIONS ---------------- */
section.block { padding: 60px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.section-head .k {
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 12px; font-weight: 600;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.section-head p { color: var(--dim); margin: 10px 0 0; max-width: 52ch; }
.section-head .view-all { font-weight: 600; font-size: 14px; color: var(--gold); }
.section-head .view-all:hover { color: var(--gold-soft); }

/* ---------------- CARD GRID ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--leaf);
  box-shadow: 0 22px 48px -24px rgba(0,0,0,.75);
}
/* the thumbnail reads as a real printed worksheet (parchment page) */
.card-thumb {
  aspect-ratio: 8.5 / 11;
  background: linear-gradient(160deg, var(--parchment), var(--parchment-2));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.card-thumb .thumb-emoji { position: absolute; top: 14px; left: 14px; font-size: 24px; }
.card-thumb .thumb-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.22;
  color: var(--parchment-ink);
  letter-spacing: -0.01em;
}
.card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}
.card-cat {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--sage);
}
.card-title {
  font-family: var(--font-serif);
  font-weight: 600; font-size: 17px; line-height: 1.3;
  margin: 0; color: var(--ink);
}
.card-desc { font-size: 14px; color: var(--dim); margin: 0; flex: 1; }
.card-actions { display: flex; gap: 8px; margin-top: 4px; }
.card-free {
  position: absolute; top: 14px; right: 14px;
  background: var(--gold); color: #2a1c04;
  font-size: 12px; font-weight: 700; padding: 4px 10px;
  border-radius: 999px; letter-spacing: 0.01em;
}

/* ---------------- STEPS (Reflect / Learn / Grow — the seasons) ---------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.step {
  position: relative;
  background: var(--ground);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.step-num {
  position: absolute;
  top: 26px; right: 26px;
  font-family: var(--font-serif);
  font-size: 15px; font-style: italic;
  color: var(--gold);
}
.step .emoji { font-size: 30px; margin-bottom: 16px; }
.step h3 {
  font-family: var(--font-serif);
  font-size: 22px; margin: 0 0 9px; letter-spacing: -0.01em; color: var(--ink);
}
.step p { color: var(--dim); font-size: 15px; margin: 0 0 18px; line-height: 1.6; }
.step em { font-style: italic; color: var(--sage); }
.step-link { margin-top: auto; font-weight: 600; font-size: 14px; color: var(--gold); }
.step-link:hover { color: var(--gold-soft); }

/* ---------------- VALUE PROPS (about + generic) ---------------- */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.value {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.value .emoji { font-size: 30px; margin-bottom: 12px; }
.value h3 {
  font-family: var(--font-serif); font-size: 20px; margin: 0 0 8px;
  letter-spacing: -0.01em; color: var(--ink);
}
.value p { color: var(--dim); font-size: 15px; margin: 0; }

/* ---------------- LIBRARY FEATURE BAND (home) ---------------- */
.libband { padding: 60px 0; border-top: 1px solid var(--line); }
.lib-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 52px;
  align-items: center;
}
.sheetstack { position: relative; aspect-ratio: 3 / 4; }
.sheet {
  position: absolute; inset: 0; border-radius: 3px;
  background: linear-gradient(160deg, var(--parchment), var(--parchment-2));
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.7);
  padding: 26px; display: flex; flex-direction: column; gap: 9px;
}
.sheet.s3 { transform: rotate(-7deg) translate(-14px, 10px); filter: brightness(.8); }
.sheet.s2 { transform: rotate(-3deg) translate(-6px, 4px); filter: brightness(.9); }
.sheet.s1 { transform: rotate(1.5deg); }
.sheet .sh-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sheet .sh-ttl { font-family: var(--font-serif); font-size: 16px; color: var(--parchment-ink); font-weight: 600; }
.sheet .sh-leaf { width: 20px; height: 20px; border-radius: 50% 50% 50% 4px; background: var(--leaf); transform: rotate(-12deg); }
.sheet .ln { height: 8px; border-radius: 2px; background: #cbb98f; }
.sheet .ln.a { width: 100%; } .sheet .ln.b { width: 82%; }
.sheet .ln.c { width: 90%; } .sheet .ln.d { width: 64%; }
.sheet .box { margin-top: auto; display: flex; gap: 8px; }
.sheet .box i { width: 22px; height: 22px; border: 2px solid #cbb98f; border-radius: 4px; display: block; }
.sheet .box i.on { background: var(--leaf); border-color: var(--leaf); }
.libband h2 {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(27px, 3.6vw, 40px); margin: 0 0 16px; text-wrap: balance; color: var(--ink);
}
.libband p { color: var(--dim); font-size: 16.5px; margin: 0 0 24px; max-width: 46ch; line-height: 1.6; }
.free-tag {
  font-size: 12px; color: var(--gold); letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: 18px; display: flex; align-items: center; gap: 8px; font-weight: 600;
}
.free-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.taglist { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.taglist .tag {
  font-size: 13px; color: var(--sage);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px;
}

/* ---------------- WEALTH JOURNAL (newsletter) ---------------- */
.journal { padding: 8px 0 20px; }
.journal .jcard {
  background: linear-gradient(165deg, var(--panel), #14251c);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(34px, 5vw, 58px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.journal .jcard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 120% at 50% -20%, rgba(224,179,82,.16), transparent 60%);
}
.journal .k {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 16px; position: relative; font-weight: 600;
}
.journal h2 {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(26px, 3.4vw, 40px); margin: 0 0 14px; position: relative; text-wrap: balance; color: var(--ink);
}
.journal p { color: var(--dim); margin: 0 auto 28px; max-width: 46ch; position: relative; }
.signup { display: flex; gap: 8px; max-width: 440px; margin: 0 auto; position: relative; }
.signup input {
  flex: 1; background: rgba(17,32,25,.75); border: 1px solid var(--line);
  border-radius: 2px; padding: 15px; color: var(--ink); font-size: 14px; font-family: inherit;
}
.signup input::placeholder { color: var(--dim); }
.signup input:focus { outline: none; border-color: var(--gold); }
.journal .thanks {
  position: relative; margin: 0 auto; max-width: 46ch;
  font-family: var(--font-serif); font-style: italic; font-size: 20px; color: var(--gold-soft);
}
.journal .thanks[hidden] { display: none; }

/* ---------------- DOWNLOADS PAGE ---------------- */
.page-head { padding: 60px 0 30px; text-align: center; }
.page-head h1 {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(36px, 5vw, 52px); margin: 0 0 14px; letter-spacing: -0.02em; color: var(--ink);
}
.page-head p { color: var(--dim); font-size: 18px; max-width: 600px; margin: 0 auto; }

.toolbar {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  padding: 16px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 28px;
}
.search {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 8px;
  background: var(--ground); padding: 11px 16px; border-radius: 999px;
  border: 1px solid var(--line); transition: border-color 0.15s;
}
.search:focus-within { border-color: var(--gold); }
.search input {
  border: none; background: transparent; outline: none; font: inherit; flex: 1; color: var(--ink);
}
.search input::placeholder { color: var(--dim); }
.search-icon { color: var(--dim); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  background: var(--ground); color: var(--ink-soft);
  border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { background: var(--panel); color: var(--ink); }
.chip.active { background: var(--gold); color: #221703; border-color: var(--gold); }
.empty {
  text-align: center; padding: 60px 20px; color: var(--dim);
  background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius);
}

/* ---------------- ABOUT ---------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-grid h2 {
  font-family: var(--font-serif); font-size: clamp(32px, 4vw, 44px);
  margin: 0 0 20px; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink);
}
.about-grid p { color: var(--ink-soft); font-size: 17px; margin: 0 0 16px; }
.about-visual {
  aspect-ratio: 1;
  background: linear-gradient(155deg, #1c3527, #0e1c15);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 110px;
  box-shadow: var(--shadow);
}
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------------- CTA BAND (downloads / about) ---------------- */
.cta {
  margin: 60px 0;
  padding: 56px 40px;
  background: linear-gradient(160deg, var(--panel), #14251c);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 120% at 50% -20%, rgba(224,179,82,.14), transparent 60%);
}
.cta h2 {
  font-family: var(--font-serif); font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 14px; letter-spacing: -0.01em; position: relative; color: var(--ink);
}
.cta p {
  font-size: 17px; margin: 0 auto 24px; color: var(--dim);
  max-width: 520px; position: relative;
}
.cta .btn-primary { position: relative; background: var(--gold); color: #221703; }
.cta .btn-primary:hover { background: var(--gold-soft); color: #221703; }

/* ---------------- FOOTER ---------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 56px;
  color: var(--dim);
  font-size: 14px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
}
.footer .brand { font-size: 18px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--ink-soft); font-weight: 500; }
.footer-links a:hover { color: var(--gold-soft); }

/* ---------------- PROSE (privacy, long-form) ---------------- */
.prose { max-width: 760px; }
.prose-meta { color: var(--dim); font-size: 14px; margin: 0 0 28px; }
.prose h2 {
  font-family: var(--font-serif); font-size: 24px; color: var(--ink); margin: 34px 0 10px;
}
.prose p, .prose li { color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.prose ul { padding-left: 22px; margin: 0 0 8px; }
.prose li { margin-bottom: 8px; }
.prose em { font-style: italic; color: var(--sage); }
.prose a { color: var(--gold); }

/* ---------------- DOWNLOAD ICON ---------------- */
.icon { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; }

/* ---------------- REVEAL-ON-SCROLL ---------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 860px) {
  .hero-grid, .lib-grid { grid-template-columns: 1fr; gap: 34px; }
  .plot { max-width: 380px; }
  .statrow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--panel);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
    gap: 14px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 32px 0 8px; }
  section.block { padding: 40px 0; }
  .libband { padding: 40px 0; }
  .cta { padding: 40px 24px; margin: 30px 0; border-radius: 10px; }
}

/* ---------------- JOIN-THE-GARDEN GATE ---------------- */
.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 15, 11, 0.62);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.2s ease;
  overflow-y: auto;
}
.gate-overlay.open { opacity: 1; }
.gate-overlay[hidden] { display: none; }

.gate-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(0,0,0,.6);
  padding: 34px 32px 28px;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
}
.gate-overlay.open .gate-modal { transform: translateY(0) scale(1); }
.gate-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 34px; height: 34px;
  border: none;
  background: transparent;
  color: var(--dim);
  font-size: 24px; line-height: 1; cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s ease, color 0.15s ease;
}
.gate-close:hover { background: var(--ground); color: var(--ink); }
.gate-mark {
  width: 52px; height: 52px;
  border-radius: 50% 50% 50% 10px;
  background: linear-gradient(150deg, var(--sage), var(--leaf));
  display: flex; align-items: center; justify-content: center;
  font-size: 25px;
  transform: rotate(-10deg);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.22);
  margin-bottom: 16px;
}
.gate-modal h2 {
  font-family: var(--font-serif); font-size: 26px; letter-spacing: -0.01em;
  margin: 0 0 8px; color: var(--ink);
}
.gate-sub { color: var(--ink-soft); font-size: 15px; margin: 0 0 22px; }
.gate-sub em { color: var(--gold); font-style: italic; }
.gate-form { display: flex; flex-direction: column; gap: 14px; }
.gate-field { display: flex; flex-direction: column; gap: 6px; }
.gate-field label { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.gate-field label span { font-weight: 400; color: var(--dim); }
.gate-field input,
.gate-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--ground);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.gate-field select option { color: #1a1a1a; }
.gate-field input:focus,
.gate-field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(224,179,82,.22);
}
.gate-error { margin: 0; color: var(--blush); font-size: 14px; font-weight: 600; }
.gate-error[hidden] { display: none; }
.gate-submit { width: 100%; justify-content: center; margin-top: 4px; }
.gate-submit:disabled { opacity: 0.7; cursor: default; transform: none; }
.gate-privacy { margin: 2px 0 0; text-align: center; font-size: 13px; color: var(--dim); }

@media (max-width: 480px) {
  .gate-modal { padding: 30px 22px 24px; }
  .gate-modal h2 { font-size: 23px; }
}
