/* ==========================================================================
   Your Wealth Garden™ — styles

   Fraunces + Inter are loaded from index.html's <link>, not an @import
   here — @import has no way to carry crossorigin="anonymous", so
   html2canvas (the PNG download) couldn't read those font rules at all,
   which is what caused the uneven letter-spacing in downloaded snapshots.
   ========================================================================== */

:root {
  /* Brand ramp, grounded in the two greens from the deck (#1F4A36 deep,
     #5C8F70 mid) — the 800/600/500/50 steps are interpolated between them
     to give the UI a full range, endpoints stay exact. */
  --green-900: #16352a;
  --green-800: #1f4a36; /* exact: deep green */
  --green-700: #2a5c42;
  --green-600: #5c8f70; /* exact: mid green */
  --green-500: #7ca98d;
  --green-100: #e4eee6; /* exact: green pale */
  --green-50: #eff5f0;

  --terracotta-600: #e8623c; /* exact: coral orange */
  --terracotta-500: #ee7f5e;
  --terracotta-100: #fbe3d9; /* derived pale, matched to the others' lightness */

  --gold-500: #e3a73f; /* exact: marigold gold */
  --gold-100: #fbeeda; /* exact: gold pale */

  --pink-700: #d45f8a; /* exact: deep pink */
  --pink-600: #d45f8a;
  --pink-soft: #f2a9c4; /* exact: soft pink — decorative/secondary use */
  --pink-100: #fbe7ee; /* exact: pink pale */

  --plum-800: #6b4160; /* exact: dusty plum */
  --plum-600: #6b4160;
  --plum-100: #efe2e9; /* exact: plum pale */

  --cream-50: #fbf8f1;
  --cream-100: #f5efe1;
  --paper: #ffffff;

  --ink-900: #221d16;
  --ink-700: #4a4438;
  --ink-500: #7a7264;
  --ink-300: #b9b0a0;
  --border: #e4dcc9;

  --shadow-sm: 0 1px 2px rgba(34, 29, 22, 0.06);
  --shadow-md: 0 6px 20px rgba(34, 29, 22, 0.08);
  --shadow-lg: 0 16px 40px rgba(34, 29, 22, 0.12);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 880px;

  /* default accent (green) — overridden per-section by [data-accent] below */
  /* site-wide accent — deep pink, used for primary buttons, nav active
     state, and links. Overridden per-section by [data-accent] below (those
     stay their own hues; this is only the site chrome default). */
  --accent: var(--pink-700);
  --accent-ink: var(--pink-700);
  --accent-bg: var(--pink-100);
}

/* Section accents, built from your brand hex — five distinct hues used the
   way the deck colors each topic: harvest=coral, soil=deep green,
   fertilizer=plum, map=deep green (reused, not adjacent to soil),
   plant-next=deep pink, monetize=marigold gold, next-step=plum (reused,
   not adjacent to fertilizer). */
[data-accent="orange"] { --accent: var(--terracotta-600); --accent-ink: var(--terracotta-600); --accent-bg: var(--terracotta-100); }
[data-accent="green"]  { --accent: var(--green-800);      --accent-ink: var(--green-900);      --accent-bg: var(--green-100); }
[data-accent="plum"]   { --accent: var(--plum-600);       --accent-ink: var(--plum-800);       --accent-bg: var(--plum-100); }
[data-accent="pink"]   { --accent: var(--pink-600);       --accent-ink: var(--pink-700);       --accent-bg: var(--pink-100); }
[data-accent="gold"]   { --accent: var(--gold-500);       --accent-ink: #8a651b;                --accent-bg: var(--gold-100); }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--green-50);
  color: var(--ink-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--pink-700); }

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

/* -------------------------------------------------------------- nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 246, 242, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-nav .wrap {
  max-width: 1080px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--green-800);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-700);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { border-color: var(--pink-soft); color: var(--ink-900); }
.nav-links a.active { border-color: var(--pink-700); color: var(--pink-700); }
.nav-links a.setup-locked { opacity: 0.45; pointer-events: none; cursor: default; }

/* -------------------------------------------------------------- tabs */
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: tab-fade-in 0.15s ease; }
@keyframes tab-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* -------------------------------------------------------------- welcome roadmap */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.roadmap-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}
.roadmap-card:hover, .roadmap-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  outline: none;
}
.roadmap-growth-icon { height: 62px; margin-bottom: 10px; display: flex; align-items: flex-end; }
.roadmap-growth-icon img { display: block; height: 56px; width: auto; }
.roadmap-growth-icon.growth-seed img { height: 37px; }
.roadmap-growth-icon.growth-plant img { height: 62px; }
/* Same real character throughout — styled to read as growth: faded and
   smaller before you've started, full color once established, larger and
   at its most vivid once you're ready to add the next plant. */
.roadmap-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-bg); color: var(--accent-ink);
  font-weight: 700; font-size: 0.86rem; margin-bottom: 12px;
}
.roadmap-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--green-900); margin-bottom: 6px; }
.roadmap-blurb { font-size: 0.9rem; color: var(--ink-700); margin-bottom: 14px; }
.roadmap-cta { font-size: 0.84rem; font-weight: 700; color: var(--accent-ink); }

.example-inline-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--green-900); margin: 24px 0 6px; }

@media (max-width: 560px) {
  .site-nav .wrap { flex-wrap: wrap; gap: 8px 0; }
  .nav-links { gap: 14px; overflow-x: auto; white-space: nowrap; width: 100%; }
  .nav-links a { white-space: nowrap; }
  .brand-mark { white-space: nowrap; }
}

/* -------------------------------------------------------------- hero */
.hero {
  padding: 64px 0 48px;
  background:
    radial-gradient(60% 60% at 85% 0%, var(--green-100) 0%, transparent 60%),
    var(--green-50);
}
.hero-header-row { display: flex; align-items: flex-start; gap: 18px; }
.hero-header-text { flex: 1; min-width: 0; }
.hero-wave-char {
  flex: none; width: 64px; height: auto; margin-top: 4px;
  transform-origin: 68% 92%;
  animation: hero-wave 9s ease-in-out infinite;
}
@keyframes hero-wave {
  0%, 22%, 100% { transform: rotate(0deg); }
  3% { transform: rotate(15deg); }
  6% { transform: rotate(-9deg); }
  9% { transform: rotate(15deg); }
  12% { transform: rotate(-6deg); }
  15% { transform: rotate(8deg); }
  18% { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-wave-char { animation: none; }
}
@media (max-width: 560px) {
  .hero-wave-char { width: 48px; }
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta-600);
  margin-bottom: 10px;
}
h1.headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.06;
  margin: 0 0 16px;
  color: var(--green-900);
}
.subheadline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: var(--green-700);
  margin: 0 0 20px;
  max-width: 640px;
  font-weight: 500;
}
.hero .body-text { max-width: 620px; color: var(--ink-700); font-size: 1.02rem; }

.bio-card {
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.bio-avatar {
  flex: none;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--terracotta-500), var(--gold-500));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem;
  overflow: hidden;
}
.bio-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bio-card p { margin: 0; font-size: 0.94rem; color: var(--ink-700); }

/* -------------------------------------------------------------- video embed */
.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 default — overridden inline per-video when loomAspect is set */
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--green-900);
  box-shadow: var(--shadow-lg);
  margin: 28px 0;
}
.video-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  background: linear-gradient(160deg, var(--accent-bg), var(--paper) 75%);
  border: none; padding: 24px; margin: 0; cursor: pointer;
}
.video-poster .play-badge { transition: transform 0.15s; }
.video-poster:hover .play-badge { transform: scale(1.08); }
.video-poster-label {
  font-family: var(--font-display); font-size: 1.05rem; color: var(--green-900);
  text-align: center; max-width: 80%;
}
.video-card {
  position: relative;
  width: 100%;
  min-height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 28px 0;
  background: linear-gradient(160deg, var(--accent-bg), var(--paper) 75%);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  padding: 36px 24px;
  text-align: center;
}
.play-badge {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.play-badge::after {
  content: "";
  display: block;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}
.video-card-label { font-family: var(--font-display); font-size: 1.05rem; color: var(--green-900); }
.video-card .video-card-sub { font-size: 0.86rem; color: var(--ink-500); margin-top: -6px; }
.video-card .watch-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 0.9rem;
  padding: 10px 22px; border-radius: 999px; text-decoration: none;
  border: none; cursor: pointer;
}
.video-card .watch-btn:hover { filter: brightness(0.93); }

.video-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  color: var(--green-100);
  background: linear-gradient(160deg, var(--green-800), var(--green-900));
  text-align: center;
  padding: 24px;
}
.video-placeholder .icon { font-size: 2rem; }
.video-placeholder strong { font-size: 1rem; }
.video-placeholder span { font-size: 0.82rem; opacity: 0.7; max-width: 320px; }

/* -------------------------------------------------------------- notes fields */
.notes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
@media (max-width: 620px) { .notes-grid { grid-template-columns: 1fr; } }

.field label,
.notes-field label,
.question > label {
  display: block;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--green-800);
  margin-bottom: 6px;
}
.field .help,
.notes-field .help,
.question .help,
.exercise-part .help {
  font-size: 0.8rem;
  color: var(--ink-500);
  margin: -2px 0 8px;
}
textarea, input[type="text"], input[type="email"], input[type="password"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-900);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 84px; }
textarea:focus, input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px var(--green-100);
}
.save-hint {
  font-size: 0.75rem;
  color: var(--ink-300);
  margin-top: 6px;
  height: 14px;
}
.save-hint.show { color: var(--green-600); }

/* -------------------------------------------------------------- section shells */
.block { padding-top: 56px; padding-bottom: 56px; }
.block.tight { padding-top: 32px; padding-bottom: 32px; }

.section-head { max-width: 640px; margin-bottom: 28px; }
.step-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
h2.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 10px;
  color: var(--green-900);
}
.section-body { color: var(--ink-700); font-size: 0.98rem; }

/* -------------------------------------------------------------- accordion */
.accordion { border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius-md); overflow: hidden; background: var(--paper); box-shadow: var(--shadow-sm); }
.accordion + .accordion { margin-top: 14px; }
.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--paper);
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
}
.accordion-header .num {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent-bg);
  color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.accordion-header .titles { flex: 1; }
.accordion-header .step-label { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-ink); }
.accordion-header .num.icon-slot { background: none; width: 34px; height: 34px; overflow: visible; }
.accordion-step-icon { width: 44px; height: 44px; object-fit: contain; }
.accordion-header .title { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--green-900); margin-top: 2px; }
.accordion-header .chevron { flex: none; transition: transform 0.2s; color: var(--ink-500); }
.accordion[data-open="true"] .chevron { transform: rotate(180deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.accordion[data-open="true"] .accordion-panel { max-height: 4000px; }
.accordion-panel-inner { padding: 0 20px 24px; }
.accordion-panel-inner .body-text { color: var(--ink-700); margin-bottom: 4px; }

/* -------------------------------------------------------------- divider */
.divider-block {
  background: linear-gradient(135deg, var(--green-800), var(--green-900));
  color: var(--green-50);
  padding: 56px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.divider-block .label {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gold-500); margin-bottom: 10px;
}
.divider-block h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  margin: 0 0 12px; color: #fff;
}
.divider-block p { max-width: 560px; margin: 0 auto; color: var(--green-100); opacity: 0.9; }

/* -------------------------------------------------------------- exercise cards */
.exercise-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px 24px;
  box-shadow: none;
  margin-bottom: 0;
}
.exercise-card + .exercise-card { margin-top: 24px; }

.idea-suggestion-box {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px 24px 24px; margin-top: 24px;
}
.idea-suggestion-box h3 { font-family: var(--font-display); font-size: 1.1rem; margin: 0 0 6px; color: var(--green-900); }
.idea-suggestion-box textarea { width: 100%; min-height: 70px; border: 1.5px solid var(--green-100); border-radius: 10px; padding: 10px 12px; font-family: var(--font-body); font-size: 0.92rem; margin: 10px 0; background: #fff; }
.question { margin-bottom: 20px; }
.question-bridge {
  margin-top: 24px;
  padding: 16px 18px 18px;
  background: var(--accent-bg);
  border: 1px dashed var(--accent);
  border-radius: var(--radius-md);
}
.question-bridge-group {
  margin-top: 24px;
  padding: 16px 18px 18px;
  background: var(--accent-bg);
  border: 1px dashed var(--accent);
  border-radius: var(--radius-md);
}
.question-bridge-group .question { margin-bottom: 20px; }
.question-bridge-group .question:last-child { margin-bottom: 0; }

.bridge-flag {
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent-ink); margin-bottom: 8px;
}
.question:last-of-type { margin-bottom: 0; }
.list-input-help { font-size: 0.78rem; color: var(--ink-500); }
.list-input-help.below-hint { margin-top: 6px; }
.question > label.bold-label { font-weight: 700; font-size: 1rem; color: var(--green-900); }
.exercise-part { margin: 26px 0 16px; }
.exercise-part:first-child { margin-top: 4px; }
.exercise-part-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--green-900); margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
/* Tags are a plain square/rectangle — deliberately NOT the pill shape
   buttons use, so the two never read as the same kind of thing. Color
   inherits the section's accent via custom properties, so harvest reads
   orange, soil reads mustard, fertilizer reads plum, etc. */
.chip {
  background: var(--accent-bg); color: var(--accent-ink);
  font-size: 0.82rem; font-weight: 600;
  padding: 5px 12px;
  border-radius: 4px;
}

.exercise-actions {
  display: flex; align-items: center; gap: 14px;
  margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--border);
}
.exercise-top-actions {
  display: flex; justify-content: flex-end;
  margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--border);
}
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--pink-700); color: #fff; box-shadow: 0 6px 16px rgba(212,95,138,0.32); }
.btn-primary:hover { background: #bd4e78; }
.btn-ghost { background: transparent; color: var(--pink-700); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--pink-soft); }
.btn-small { padding: 7px 14px; font-size: 0.82rem; }
.btn-danger-ghost { background: transparent; color: var(--terracotta-600); border: 1px solid var(--terracotta-100); }

.lock-note { font-size: 0.82rem; color: var(--ink-500); }
.lock-note strong { color: var(--green-700); }

/* -------------------------------------------------------------- map garden */
.garden-sections { display: flex; flex-direction: column; gap: 18px; margin-bottom: 16px; }
.garden-section {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.garden-section-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.garden-section-head input[type="text"] {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--green-900);
  border: 1px solid transparent;
  background: transparent;
  padding: 6px 8px;
}
.garden-section-head input[type="text"]:hover,
.garden-section-head input[type="text"]:focus { border-color: var(--border); background: var(--cream-50); }
.remove-section-btn {
  margin-left: auto;
  flex: none;
  background: none;
  border: none;
  color: var(--ink-300);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
}
.remove-section-btn:hover { color: var(--terracotta-600); }

.plant-table { width: 100%; border-collapse: collapse; }
.plant-table th {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-500); font-weight: 700; text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
}
.plant-table td { padding: 6px 8px; vertical-align: top; border-bottom: 1px solid var(--cream-100); }
.plant-table tr:last-child td { border-bottom: none; }
.plant-row-label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.88rem; color: var(--ink-900); white-space: nowrap; }
.plant-table textarea { font-size: 0.85rem; padding: 7px 9px; min-height: 46px; resize: vertical; }
.plant-table { overflow-x: auto; }
.table-scroll { overflow-x: auto; }

/* -------------------------------------------------------------- snapshot */
.snapshot-wrap {
  background: var(--green-100);
  border: 2px solid var(--green-800);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--ink-900);
}
.snapshot-wrap h2 { color: var(--green-900); }
.snapshot-wrap .section-body { color: var(--ink-700); }
.snapshot-download-row { text-align: center; margin-top: 16px; }

.snap-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 15px 22px;
  margin-top: 13px;
  box-shadow: var(--shadow-sm);
}
.snap-heart-doodle { position: absolute; right: 14px; bottom: 12px; opacity: 0.85; pointer-events: none; }
.snap-heart-doodle svg { display: block; }
/* Single combined label per card, e.g. "WHAT I LIVE FOR (My Dream Harvest)" —
   the parenthetical stays title case rather than inheriting the eyebrow's
   uppercase transform. */
.snap-label-top { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--accent-ink); margin-bottom: 10px; }
.snap-label-suffix { text-transform: none; }
.snap-plants-header { margin-top: 0; }
.snap-plants-header-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.snap-mascot { height: 42px; width: auto; flex: none; }
.snap-empty { color: var(--ink-500); font-size: 0.9rem; font-style: italic; }
.snap-tagline { color: var(--ink-900); font-size: 0.98rem; font-weight: 700; }
.snap-tagline-script { font-family: "Caveat", cursive; font-size: 1.4rem; font-weight: 500; line-height: 1.2; }
.snap-detail { color: var(--ink-700); font-size: 0.86rem; margin-top: 6px; }
/* Harvest + fertilizer read as a plain, professional list rather than tags. */
.snap-plain-list { color: #000; font-weight: 400; font-size: 0.95rem; }

.snap-greeting { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--green-900); margin-bottom: 4px; }
.snap-header-line1 { font-family: var(--font-body); font-weight: 400; font-size: 0.98rem; color: var(--ink-900); margin-bottom: 2px; }

/* Header row: photo (if any) beside the greeting + tagline. */
.snap-top-row { display: flex; gap: 18px; align-items: center; margin-top: 0; margin-bottom: 8px; }
.snap-header-text { flex: 1; min-width: 0; }
.snap-portrait { flex: none; width: 140px; height: 140px; border-radius: var(--radius-md); object-fit: cover; display: block; }
.snap-photo-slot { flex: none; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.snap-photo-change {
  background: none; border: none; color: var(--ink-500); font-size: 0.76rem; text-decoration: underline;
  cursor: pointer; padding: 0;
}
.snap-photo-add {
  flex: none; width: 140px; height: 140px; border-radius: var(--radius-md);
  border: 1.5px dashed var(--border); background: var(--cream-50);
  color: var(--ink-500); font-size: 0.82rem; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px;
}
.snap-photo-add:hover { border-color: var(--accent); color: var(--accent-ink); }
@media (max-width: 620px) {
  .snap-top-row { flex-direction: column; align-items: flex-start; }
  .snap-portrait { width: 100%; height: auto; max-height: 220px; }
  .snap-photo-add { width: 100%; height: 72px; }
  .snap-photo-slot { width: 100%; }
}

/* Harvest + soil side by side once there's room for both without cramping;
   stacked below that, same as every other card. */
.snap-split-row { display: flex; gap: 18px; align-items: stretch; margin-top: 18px; }
.snap-split-card { flex: 1; min-width: 0; margin-top: 0; }
@media (max-width: 680px) {
  .snap-split-row { flex-direction: column; gap: 0; }
}
.snap-card.onboarding-locked { position: relative; opacity: 0.45; filter: blur(1.5px); pointer-events: none; user-select: none; }
.onboarding-locked-note {
  position: absolute; top: 10px; right: 14px; z-index: 1;
  font-size: 0.72rem; font-weight: 700; color: var(--ink-500);
  background: #fff; border: 1px solid var(--border); border-radius: 99px;
  padding: 3px 10px;
}

.snap-garden-summary {
  font-size: 0.85rem; font-weight: 600; color: var(--green-800);
  margin: -6px 0 14px;
}

/* One compact line, wrapping only if the viewport forces it — the " | "
   separators are plain text nodes between entries, not list markup. */
.snap-plant-key { margin-top: 14px; font-size: 0.76rem; color: var(--ink-500); line-height: 1.7; }
.snap-plant-key-entry { white-space: nowrap; }
.snap-plant-key-entry strong { color: var(--ink-900); font-weight: 600; }
.snap-plant-key-icon { height: 13px; width: 13px; object-fit: contain; display: inline-block; vertical-align: -1px; margin-right: 4px; }

/* Section title is the serif "headline"; plant box titles use the body
   font so the two never compete at the same visual weight. */
.snap-section-title { font-family: var(--font-display); font-weight: 600; color: var(--green-900); font-size: 1.05rem; margin-bottom: 10px; }
.snap-plant-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.snap-plant-cell {
  background: var(--cream-50);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.85rem;
}
.plant-cell-head { display: flex; align-items: center; gap: 8px; }
.plant-icon { flex: none; height: 22px; width: 22px; object-fit: contain; display: block; }
.plant-type-icon { height: 20px; width: 20px; object-fit: contain; display: inline-block; vertical-align: middle; }
.plant-type-icon-inline { height: 16px; width: 16px; object-fit: contain; display: inline-block; vertical-align: -3px; margin-right: 2px; }
.snap-plant-cell .pnames { font-family: var(--font-body); font-weight: 400; font-size: 0.95rem; color: var(--ink-900); }
/* Empty-state placeholder cards — one per plant type, so the snapshot
   still shows what's coming instead of dead space. */
.snap-plant-cell-ghost {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  background: transparent; border: 1px dashed var(--border);
}
.snap-plant-cell-ghost .plant-icon { height: 30px; width: 30px; opacity: 0.55; }
.snap-plant-cell-ghost .pnames { font-weight: 400; color: var(--ink-500); }
/* Dense divider-row list — handles long plant names better than a
   fixed-width grid cell, since nothing has to wrap awkwardly. */
.snap-plant-list { border-top: 1px solid var(--border); }
.snap-plant-row {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 2px; border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  line-height: 1.25;
}
.snap-plant-row .pnames { flex: 1; min-width: 0; }
.plant-status-line {
  flex: none;
  font-size: 0.68rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--ink-500);
}
.snap-site-url { font-size: 0.8rem; color: var(--ink-500); text-align: center; margin-top: 22px; }

/* -------------------------------------------------------------- onboarding (first-run sequence, nested in the real Welcome tab) */
.ob-panel { max-width: 620px; }
.ob-energy { height: 74px; margin-bottom: 6px; position: relative; }
.ob-grow-img { position: absolute; left: 0; bottom: 0; height: 56px; width: auto; opacity: 0; transition: opacity 0.45s ease, transform 0.45s ease; transform: scale(0.7) translateY(6px); }
.ob-grow-img.in { opacity: 1; transform: scale(1) translateY(0); }
.beat { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.beat.in { opacity: 1; transform: none; }
.ob-h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; color: var(--green-900); margin: 0 0 14px; text-wrap: balance; }
.ob-connect { font-size: 1.02rem; color: var(--ink-700); margin: 0 0 26px; line-height: 1.6; max-width: 50ch; }
.ask-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 10px; }
.ask-heart { flex: none; margin-top: 4px; opacity: 0.9; }
.ask-label { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--green-900); line-height: 1.3; }
.ob-hint { font-size: 0.9rem; color: var(--ink-500); margin: 8px 0 18px 0; max-width: 46ch; }
.ob-input { width: 100%; border: 1.5px solid var(--green-100); border-radius: 10px; padding: 14px 16px; font-family: var(--font-body); font-size: 1rem; color: var(--ink-900); resize: vertical; margin-bottom: 10px; background: #fff; }
.ob-input:focus { outline: none; border-color: var(--terracotta-600); }
.ob-edit-note { font-size: 0.8rem; color: var(--ink-500); margin: 0 0 20px; font-style: italic; }

.flying-heart { position: absolute; width: 20px; height: 20px; opacity: 0; pointer-events: none; }
.snap-plain-list.reveal-fade, .snap-empty.reveal-fade { opacity: 0; transition: opacity 0.4s ease; }
.snap-plain-list.reveal-fade.in, .snap-empty.reveal-fade.in { opacity: 1; }

.plants-card-wrap { position: relative; }
.plants-overlay-cta { position: absolute; inset: 13px 0 0 0; display: flex; align-items: center; justify-content: center; background: rgba(31,74,54,0.88); border-radius: var(--radius-md); }
.plants-overlay-cta button { font-size: 1rem; padding: 15px 32px; }

.plant-add-confirm { font-size: 0.92rem; color: var(--ink-700); margin-bottom: 14px; }
.plant-add-confirm b { color: var(--ink-900); }
.plant-add-input { width: 100%; border: 1.5px solid var(--green-100); border-radius: 10px; padding: 12px 14px; font-family: var(--font-body); font-size: 0.98rem; color: var(--ink-900); margin-bottom: 10px; background: #fff; }
.plant-add-input:focus { outline: none; border-color: var(--terracotta-600); }
.plant-add-hint { font-size: 0.86rem; color: var(--ink-500); margin: -4px 0 12px; max-width: 46ch; }
.plant-type-grid { display: flex; flex-direction: column; gap: 8px; }
.plant-type-choice { display: flex; align-items: center; gap: 12px; text-align: left; background: #fff; border: 1.5px solid var(--green-100); border-radius: 10px; padding: 12px 16px; cursor: pointer; }
.plant-type-choice:hover { border-color: var(--green-500); }
.plant-type-choice img { width: 24px; height: 24px; flex: none; }
.plant-type-choice-label { font-weight: 700; font-size: 0.95rem; color: var(--green-900); }
/* Wraps the plant name + its simple meaning underneath, for choices that
   show both (see plantTypeChoiceContent()). Status-only choices (Active /
   Semi-Passive / Passive) skip this wrapper and keep the plain label. */
.plant-type-choice-text { display: flex; flex-direction: column; gap: 2px; }
.plant-type-choice-descriptor { font-size: 0.82rem; color: var(--ink-500); font-weight: 400; }
/* Selected state for a plant-type choice that stays on screen (e.g. Next
   Plant's own pick) rather than immediately advancing to a next step. */
.plant-type-choice.is-selected { border-color: var(--pink-700); background: var(--pink-100); }
.plant-type-choice.is-selected .plant-type-choice-label { color: var(--pink-700); }
.plant-type-choice.is-selected .plant-type-choice-descriptor { color: var(--pink-700); }
.keep-going-line { text-align: center; font-size: 0.92rem; color: var(--green-700); margin-top: 6px; }

/* Next Plant: a short eyebrow label (A/B/C) above a question grouped with
   others inside one combined numbered step. */
.plant-next-substep { margin-bottom: 18px; }
.plant-next-substep-label { font-family: var(--font-body); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 4px; }

/* -------------------------------------------------------------- editable snapshot: Edit / Learn more / row actions
   All of this is excluded from the "Download as PNG" capture the same way
   the empty "+ Add your photo" button already is (see buildSnapshotDownloadBtn). */
.snap-label-top.has-actions { padding-right: 108px; }
.card-actions { position: absolute; top: 14px; right: 18px; display: flex; align-items: center; gap: 6px; }
.snap-plants-header-row.has-actions { position: relative; padding-right: 108px; }
.edit-link, .learn-link { font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink-500); background: none; border: none; cursor: pointer; padding: 2px 4px; white-space: nowrap; }
.edit-link:hover, .learn-link:hover { color: var(--pink-700); text-decoration: underline; }
.edit-link.is-open { color: var(--pink-700); text-decoration: underline; }
.inline-edit-box { margin-top: 4px; }
.inline-edit-box textarea, .inline-edit-box input { width: 100%; border: 1.5px solid var(--green-100); border-radius: 10px; padding: 10px 12px; font-family: var(--font-body); font-size: 0.92rem; color: var(--ink-900); margin-bottom: 8px; background: #fff; }
.inline-edit-box label { font-size: 0.78rem; font-weight: 700; color: var(--ink-700); display: block; margin: 8px 0 4px; }
.inline-edit-actions { display: flex; gap: 8px; }
.snap-row-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.snap-row-actions button { font-family: var(--font-body); font-size: 0.7rem; font-weight: 600; color: var(--ink-500); background: none; border: none; cursor: pointer; padding: 2px; }
.snap-row-actions button:hover { color: var(--pink-700); }
.snap-section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.add-plant-row { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.bulk-link { font-size: 0.82rem; color: var(--ink-500); text-decoration: underline; background: none; border: none; cursor: pointer; padding: 0; }
.bulk-link:hover { color: var(--pink-700); }
.bulk-box { margin-top: 10px; background: #fff; border: 1.5px solid var(--green-100); border-radius: 10px; padding: 14px; }
.bulk-box .bulk-help { font-size: 0.82rem; color: var(--ink-500); margin: 0 0 10px; }
.bulk-help-title { font-weight: 700; color: var(--green-900); margin-bottom: 4px; }
.bulk-help-list { margin: 0; padding-left: 18px; }
.bulk-help-list li { margin-bottom: 2px; }
.bulk-box select { margin-bottom: 10px; padding: 8px; border-radius: 8px; border: 1.5px solid var(--green-100); font-family: var(--font-body); }

/* Shared, wider modal for Learn More on every part of the snapshot (Harvest,
   Soil, Plants) — the old .branded-modal-card is centered/text-align:center
   and tops out at 400px, too narrow to hold a real video without cramping it. */
.learn-modal-overlay { position: fixed; inset: 0; z-index: 260; display: flex; align-items: center; justify-content: center; background: rgba(22,53,42,0.55); padding: 24px; }
.learn-modal-card { width: 100%; max-width: 560px; max-height: 86vh; overflow-y: auto; background: var(--paper); border-radius: var(--radius-lg); padding: 28px 30px; box-shadow: var(--shadow-lg); }
.learn-modal-eyebrow { font-size: 0.8rem; font-weight: 700; color: var(--green-700); margin-bottom: 10px; }
.learn-modal-card h2 { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 14px; color: var(--green-900); }
.learn-modal-card p { font-size: 0.94rem; color: var(--ink-700); margin: 0 0 12px; }
.learn-modal-card .tip { background: var(--accent-bg); border-radius: 8px; padding: 10px 14px; }
.learn-modal-card .notes-grid { margin-top: 16px; }
.learn-modal-close { display: block; margin: 18px auto 0; }

.snap-backup-link { font-size: 0.8rem; color: var(--ink-500); text-align: center; margin-top: 10px; }
.snap-backup-link a { color: var(--ink-500); text-decoration: underline; }
.snap-backup-link a:hover { color: var(--pink-700); }

@media (prefers-reduced-motion: reduce) {
  .beat, .ob-grow-img, .snap-plain-list.reveal-fade, .snap-empty.reveal-fade, .flying-heart { transition: none !important; }
}

/* -------------------------------------------------------------- orientation banner (income ideas) */
.ideas-orientation-banner {
  background: var(--green-100);
  border: 1px solid var(--green-500);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ideas-orientation-banner-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ideas-orientation-banner-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--green-900); display: flex; align-items: center; gap: 8px; }
.ideas-orientation-banner-body { font-size: 0.9rem; color: var(--ink-700); margin: 0; max-width: 64ch; }
.ideas-orientation-banner-toggle {
  background: none; border: none; color: var(--green-800); font-weight: 700;
  font-size: 1rem; line-height: 1; cursor: pointer; padding: 4px 8px; flex: none;
  display: inline-flex; align-items: center;
}
/* Flex column default-stretches children to full width; the CTA should
   size to its own content instead, like any normal button. */
.ideas-orientation-banner-cta { align-self: flex-start; }
.ideas-orientation-banner.minimized { padding: 10px 20px; cursor: pointer; }
.ideas-orientation-banner.minimized .ideas-orientation-banner-body,
.ideas-orientation-banner.minimized .ideas-orientation-banner-cta { display: none; }

/* -------------------------------------------------------------- monetize table */
.monetize-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.monetize-toolbar + .monetize-toolbar { margin-bottom: 14px; }
.toolbar-label { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-500); margin-right: 4px; }
.filter-chip {
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--ink-700);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.filter-chip[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }

.monetize-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  background: var(--paper);
}
table.monetize-table { border-collapse: collapse; width: 100%; min-width: 1100px; font-size: 0.84rem; }
table.monetize-table th {
  /* Not sticky: the table now scrolls with the page (no inner scrollbox),
     so a pinned header would sit on top of whatever row happens to be
     underneath it and steal clicks meant for that row. */
  background: var(--green-800); color: #fff;
  text-align: left; padding: 10px 12px; font-weight: 600;
  white-space: nowrap;
  cursor: pointer; user-select: none;
}
table.monetize-table th:hover { background: var(--green-700); }
table.monetize-table th .sort-arrow { opacity: 0.5; margin-left: 4px; font-size: 0.75em; }
table.monetize-table th[aria-sort="ascending"] .sort-arrow,
table.monetize-table th[aria-sort="descending"] .sort-arrow { opacity: 1; color: var(--gold-500); }
.th-info-btn {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 5px; padding: 0; border: none; background: none; cursor: pointer;
  color: var(--gold-500); opacity: 0.85; font-size: 0.92em; line-height: 1; vertical-align: middle;
}
.th-info-btn:hover { opacity: 1; }
.th-info-popover {
  display: none;
  position: absolute; top: 100%; left: 0; margin-top: 6px;
  width: 260px; max-width: 70vw;
  background: var(--paper); color: var(--ink-900);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 12px 14px; font-size: 0.82rem; font-weight: 400; text-transform: none;
  white-space: pre-line; line-height: 1.5; cursor: default; z-index: 10;
}
.th-info-popover.show { display: block; }
table.monetize-table td { padding: 10px 12px; border-bottom: 1px solid var(--cream-100); vertical-align: top; }
table.monetize-table tr:hover td { background: var(--cream-50); }
table.monetize-table td.idea-cell { font-weight: 700; color: var(--green-900); white-space: nowrap; }
table.monetize-table td.who-cell { min-width: 260px; color: var(--ink-700); }
table.monetize-table td.num-cell { text-align: center; }
table.monetize-table td.add-cell { white-space: nowrap; }
.add-to-garden-btn { white-space: nowrap; }
.add-to-garden-select, .plant-add-select, .bulk-section-select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-900);
  background-color: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 40px 10px 13px;
  margin-bottom: 4px;
  /* Native select arrows sit flush against the edge with no way to nudge
     them via padding alone (the browser draws them outside the content
     box), so this swaps in a custom chevron positioned with room to breathe. */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%233d4a42' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
}
.add-to-garden-new-title { margin-top: 10px; }
.branded-modal-body .gate-field-label { margin-top: 6px; }
.score-pill {
  display: inline-block; min-width: 26px; text-align: center;
  padding: 2px 7px; border-radius: 999px; font-weight: 700; font-size: 0.8rem;
  background: var(--gold-100); color: #8a651b;
}
.next-steps-box {
  margin-bottom: 18px;
  background: var(--cream-100);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}
.next-steps-box h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 1rem; color: var(--green-900); }
.next-steps-box table { border-collapse: collapse; font-size: 0.86rem; }
.next-steps-box td { padding: 3px 14px 3px 0; }
.next-steps-box .note { margin: 8px 0 0; font-size: 0.82rem; color: var(--ink-500); }

.ns-milestone {
  background: var(--accent-bg);
  color: var(--ink-700);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.98rem;
  margin-bottom: 18px;
}
.ns-milestone p { margin: 0 0 10px; }
.ns-milestone p:last-child { margin-bottom: 0; }
.ns-milestone-italic { font-style: italic; }
.ns-examples { margin: 0 0 18px; padding-left: 20px; color: var(--ink-700); font-size: 0.94rem; }
.ns-examples li { margin-bottom: 6px; }
.ns-closing { color: var(--ink-700); font-size: 0.94rem; margin-bottom: 18px; }
.ns-cta {
  background: var(--green-900);
  color: var(--green-50);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}
.ns-cta h3 { margin: 0 0 8px; font-family: var(--font-display); color: #fff; font-size: 1.05rem; }
.ns-cta p { margin: 0; font-size: 0.92rem; color: var(--green-100); opacity: 0.92; }
.ns-cta a { color: var(--gold-500); font-weight: 600; }

/* -------------------------------------------------------------- passcode gate */
.gate-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(22, 53, 42, 0.72);
}
/* The real Welcome tab, rendered only as a non-interactive backdrop behind
   the gate — blurred and dimmed so the gate-card stays the clear focus. */
body.gate-active .site-nav,
body.gate-active main,
body.gate-active footer.site-footer {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}
.gate-card {
  width: 100%; max-width: 380px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 4px;
}
.gate-title { margin: 0 0 8px; }
.gate-title-line1 { display: block; font-family: var(--font-body); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; color: var(--green-700); margin-bottom: 2px; }
.gate-title-line2 { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--green-900); }
.gate-card p { font-size: 0.9rem; color: var(--ink-700); margin: 0 0 12px; }
.gate-field-label { font-size: 0.8rem; font-weight: 600; color: var(--green-800); margin-bottom: 4px; }
.gate-field-hint { font-size: 0.78rem; font-weight: 400; color: var(--ink-500); }
.gate-card input[type="text"], .gate-card input[type="email"], .gate-card input[type="password"] { margin-bottom: 10px; }
.gate-card input { padding: 9px 13px; }
.gate-error { font-size: 0.82rem; color: var(--terracotta-600); min-height: 1.1em; margin: -6px 0 10px; }
.idea-reminder { font-size: 0.88rem; color: var(--ink-900); background: var(--terracotta-100); border: 1px solid var(--terracotta-600); border-radius: var(--radius-sm); padding: 10px 14px; margin: -6px 0 14px; }
.idea-reminder b { color: var(--terracotta-600); }
.gate-card .btn { width: 100%; text-align: center; }

/* -------------------------------------------------------------- branded modal (replaces native alert()) */
.branded-modal-overlay {
  position: fixed; inset: 0; z-index: 260;
  display: flex; align-items: center; justify-content: center;
  background: rgba(22, 53, 42, 0.55);
  padding: 24px;
}
.branded-modal-card {
  width: 100%; max-width: 400px;
  background: var(--paper); border-radius: var(--radius-lg);
  padding: 32px 30px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.branded-modal-eyebrow { font-size: 0.8rem; font-weight: 700; color: var(--green-700); margin-bottom: 10px; }
.branded-modal-card h2 { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 12px; color: var(--green-900); }
.branded-modal-body { font-size: 0.94rem; color: var(--ink-700); margin-bottom: 20px; }
.branded-modal-body p { margin: 0 0 10px; }
.branded-modal-body p:last-child { margin-bottom: 0; }
.branded-modal-body a { color: var(--pink-700); font-weight: 600; }
.branded-modal-card .btn { width: 100%; }
.branded-modal-card .btn + .btn { margin-top: 10px; }

/* -------------------------------------------------------------- watched toggle */
.watched-toggle {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.86rem; font-weight: 600; color: var(--ink-700);
  margin: 10px 0 20px;
  cursor: pointer;
}
.watched-toggle input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

.switch-code-link { font-size: 0.78rem; color: var(--ink-500); text-decoration: underline; }
.gate-request-link { display: block; text-align: center; margin-top: 14px; }

/* -------------------------------------------------------------- copy protection (deterrent only — see notes in app.js) */
body.protect-content, body.protect-content * {
  -webkit-user-select: none;
  user-select: none;
}
body.protect-content input,
body.protect-content textarea,
body.protect-content input *,
body.protect-content textarea * {
  -webkit-user-select: text;
  user-select: text;
}
.copy-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: var(--green-900); color: #fff; font-size: 0.85rem; font-weight: 600;
  padding: 10px 20px; border-radius: 999px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 300;
}
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.watermark-layer {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: 0.03;
  mix-blend-mode: multiply;
  background-repeat: repeat;
}

/* -------------------------------------------------------------- seed-stage tag */
.seed-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.8rem; font-weight: 600; color: #6b4a2f;
  background: #f1e6da; padding: 5px 12px 5px 8px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
  border-radius: 3px 0 0 3px;
}
.seed-tag .seed-blob { width: 11px; height: 14px; background: #a9764f; border-radius: 60% 60% 55% 55% / 65% 65% 45% 45%; display: inline-block; flex: none; }

/* -------------------------------------------------------------- plant types reference table */
.plant-types-toggle {
  background: none; border: none; color: var(--pink-700); font-weight: 700;
  font-size: 0.88rem; cursor: pointer; padding: 6px 0; margin: 4px 0 0;
  display: inline-flex; align-items: center; gap: 6px;
}
.plant-types-panel { margin-top: 14px; overflow-x: auto; }
.plant-types-panel table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.86rem; }
.plant-types-panel th {
  text-align: left; padding: 8px 12px; background: var(--green-800); color: #fff;
  font-weight: 600; white-space: nowrap;
}
.plant-types-panel td { padding: 8px 12px; border-bottom: 1px solid var(--cream-100); vertical-align: top; }
.plant-types-panel .nuance { font-size: 0.82rem; color: var(--ink-500); margin-top: 10px; font-style: italic; }

/* -------------------------------------------------------------- collapsible question groups (e.g. fertilizer bonus exercise) */
.question-collapsible-toggle {
  background: none; border: none; color: var(--pink-700); font-weight: 700;
  font-size: 0.88rem; cursor: pointer; padding: 6px 0; margin: 4px 0 10px;
  display: inline-flex; align-items: center; gap: 6px;
}
.question-collapsible-panel { margin-top: 4px; }

/* -------------------------------------------------------------- I'm Done Planting + celebration */
.done-planting-block { text-align: center; padding: 32px 0; }
.done-planting-note { font-size: 0.85rem; color: var(--ink-500); margin-top: 8px; }

.celebration-overlay {
  position: fixed; inset: 0; z-index: 250;
  display: flex; align-items: center; justify-content: center;
  background: rgba(251, 248, 241, 0.92);
  padding: 24px;
}
.celebration-card {
  background: var(--paper); border-radius: var(--radius-lg);
  padding: 40px 36px; max-width: 420px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.celebration-card h2 { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 12px; color: var(--green-900); }
.celebration-card p { font-size: 0.96rem; color: var(--ink-700); margin: 0 0 22px; }
.celebrate-grow-char {
  position: fixed; bottom: 64px; left: 50%; z-index: 255; pointer-events: none;
  transform: translateX(-50%) scale(0.85);
  opacity: 0;
  animation: celebrate-grow-in 0.12s ease forwards, celebrate-grow-pop 0.12s ease;
}
.celebrate-grow-seed { width: 34px; }
.celebrate-grow-sprout { width: 52px; }
.celebrate-grow-plant { width: 72px; }
@keyframes celebrate-grow-in {
  from { opacity: 0; transform: translateX(-50%) translateY(12px) scale(0.85); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
@keyframes celebrate-grow-pop {
  0% { transform: translateX(-50%) scale(0.85); }
  60% { transform: translateX(-50%) scale(1.15); }
  100% { transform: translateX(-50%) scale(1); }
}
.celebrate-burst-piece {
  position: fixed; bottom: 60px; left: 50%; width: 31px; pointer-events: none; z-index: 256;
  filter: drop-shadow(0 2px 6px rgba(22,53,42,0.28));
  transform: translate(calc(-50% + var(--x)), 60px) scale(0.6);
  opacity: 0;
  animation-name: celebrate-burst;
  animation-duration: 0.32s;
  animation-timing-function: cubic-bezier(.2,.9,.3,1.2);
  animation-fill-mode: forwards;
}
@media (max-width: 480px) {
  .celebrate-burst-piece { width: 21px; bottom: 54px; }
}
@keyframes celebrate-burst {
  0% { transform: translate(calc(-50% + var(--x)), 60px) scale(0.6); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--x)), 0) scale(1); opacity: 1; }
}
/* -------------------------------------------------------------- footer */
footer.site-footer {
  padding: 5px 0 60px;
  text-align: center;
  color: var(--ink-500);
  font-size: 0.8rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--green-900);
  margin-bottom: 10px;
}

/* -------------------------------------------------------------- misc */
.divider-line { border: none; border-top: 1px solid var(--border); margin: 0; }
