/* ============================================================
   landing.css — public landing page (index.html) only.
   Leans on parcelle.css for tokens, topbar, buttons.
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.landing-body { background: var(--parchment-2); }
.landing-body a.btn { text-decoration: none; }
.landing { margin-top: var(--bar-h); }

/* ── Topbar additions ───────────────────────────────────── */
.landing-bar { gap: 0.75rem; }
.landing-bar-space { flex: 1; }
.landing-lang { display: flex; gap: 2px; margin-right: 0.5rem; }
.lang-btn {
  background: transparent; border: 1px solid transparent; border-radius: var(--r-xs);
  color: rgba(232, 221, 191, 0.6); font-family: var(--mono); font-size: 0.72rem;
  padding: 0.3rem 0.45rem; cursor: pointer;
}
.lang-btn:hover { color: var(--forest-text); }
.lang-btn.active { color: var(--forest-text); border-color: rgba(232, 221, 191, 0.35); }
.lang-btn:focus-visible { outline: 2px solid var(--forest-text); outline-offset: 1px; }
.landing-login { color: var(--forest-text); }
.landing-login:hover { background: var(--forest-mid); color: #fff; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  max-width: 1160px; margin: 0 auto; padding: 4.5rem 2rem 3.5rem;
  display: grid; grid-template-columns: 1.02fr 1fr; gap: 3.5rem; align-items: center;
}
.hero-eyebrow {
  font-family: var(--mono); font-size: var(--t-eyebrow); text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--amber); margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.1rem); line-height: 1.12;
  color: var(--forest); font-weight: 700; margin-bottom: 1.1rem;
}
.hero-title em { font-style: italic; color: var(--green); }
.hero-sub { font-size: 0.98rem; line-height: 1.65; color: var(--ink-mid); max-width: 34rem; margin-bottom: 1.6rem; }
.hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.btn-hero { font-size: 0.95rem; padding: 0.7rem 1.4rem; }
.hero-note { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }

/* ── The living plan ────────────────────────────────────── */
.hero-plan {
  background: var(--parchment); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-card); padding: 1rem 1rem 0.85rem; margin: 0;
}
.hero-plan svg { display: block; width: 100%; height: auto; }

.plan-boundary { fill: #f1e8d6; stroke: var(--forest-mid); stroke-width: 1.5; }
.plan-chrome line, .plan-chrome path { stroke: #a4967f; stroke-width: 1; }
.plan-chrome text { fill: #a4967f; }
.plan-label { font-family: var(--mono); font-size: 9.5px; fill: var(--ink-mid); letter-spacing: 0.02em; }
.plan-label-amber { fill: var(--amber); }
.plan-shed { fill: #ddd2bc; stroke: #8a7c62; stroke-width: 1.2; }
.plan-bed { fill: var(--parchment-3); stroke: var(--amber); stroke-width: 1.5; }
.plan-tree-bare line { stroke: #7a6a52; stroke-width: 3; }
.crop-dot { fill: var(--green-mid); stroke: var(--green); stroke-width: 1.5; transition: fill 0.5s ease, stroke 0.5s ease; }
.tree-crown { fill: #c2d8b4; }
.p-ripe .crop-dot { fill: var(--amber-mid); stroke: var(--amber); }
.bed-fill-solid { fill: #b5d3a8; }
.bed-fill-weave { fill: url(#weave-pat); }
.plan-patch { fill: #e9e0c9; stroke: var(--green); stroke-width: 1.2; stroke-dasharray: 4 3; }
.patch-dots circle { fill: var(--green); opacity: 0.55; }
.planner-frame { fill: none; stroke: var(--green); stroke-width: 1; stroke-dasharray: 5 4; opacity: 0.7; }
.planner-dots circle { fill: none; stroke: var(--green); stroke-width: 1; opacity: 0.5; }

#plan-svg [data-start] { transition: opacity 0.55s ease; }
#plan-svg .p-off { opacity: 0; }

.month-rail { display: flex; gap: 2px; margin-top: 0.8rem; }
.month-rail button {
  flex: 1; background: transparent; border: none; border-radius: var(--r-xs);
  border-bottom: 2px solid transparent; font-family: var(--mono); font-size: 0.72rem;
  color: var(--muted); padding: 0.4rem 0; cursor: pointer;
}
.month-rail button:hover { color: var(--ink); background: var(--parchment-3); }
.month-rail button.active { color: var(--ink); background: var(--amber-pale); border-bottom-color: var(--amber); }
.month-rail button:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.plan-caption { font-size: 0.75rem; color: var(--muted); text-align: center; margin-top: 0.6rem; }

/* ── Sections shared ────────────────────────────────────── */
.section-title { font-family: var(--serif); font-size: 1.85rem; color: var(--forest); text-align: center; margin-bottom: 0.5rem; }
.section-sub { font-size: 0.9rem; color: var(--muted); text-align: center; max-width: 34rem; margin: 0 auto; }

/* ── Loop ───────────────────────────────────────────────── */
.loop { background: var(--parchment); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 3.75rem 2rem; }
.loop-groups { display: flex; justify-content: center; align-items: flex-start; gap: 1.5rem; max-width: 1000px; margin: 2.25rem auto 0; }
.loop-group { max-width: 250px; }
.loop-group h3 { font-size: var(--t-h3); color: var(--forest); margin-bottom: 0.4rem; }
.loop-group p { font-size: var(--t-body); line-height: 1.55; color: var(--ink-mid); margin-bottom: 0.7rem; }
.loop-chips { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.loop-chip {
  font-family: var(--mono); font-size: 0.7rem; color: var(--forest-mid);
  background: var(--green-pale); border: 1px solid var(--green-mid);
  border-radius: var(--r-pill); padding: 0.2rem 0.6rem;
}
.loop-arrow { font-size: 1.3rem; color: var(--amber); padding-top: 0.1rem; }

/* ── Feature cards ──────────────────────────────────────── */
.features { max-width: 1100px; margin: 0 auto; padding: 3.5rem 2rem 1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card {
  background: var(--parchment); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-card); padding: 1.5rem; display: flex; flex-direction: column;
}
.feature-vignette { width: 100%; max-width: 180px; height: auto; margin-bottom: 1rem; }
.feature-card h3 { font-family: var(--serif); font-size: 1.15rem; color: var(--forest); margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.85rem; line-height: 1.6; color: var(--ink-mid); margin-bottom: 1rem; }
.feature-stat {
  margin-top: auto; font-family: var(--mono); font-size: 0.72rem; color: var(--amber);
  border-top: 1px dashed var(--border); padding-top: 0.7rem;
}

.fv-bed { fill: var(--parchment-3); stroke: var(--amber); stroke-width: 1.5; }
.fv-dots circle { fill: var(--green-mid); stroke: var(--green); stroke-width: 1.2; }
.fv-dim { stroke: #a4967f; stroke-width: 1; }
.fv-weave { fill: url(#weave-pat); stroke: var(--amber); stroke-width: 1.2; }
.fv-grid line { stroke: var(--border); stroke-width: 1; }
.fv-bar-green { fill: #9cc48c; }
.fv-bar-amber { fill: var(--amber-mid); }
.fv-bar-deep { fill: #5d7d54; }
.fv-task circle { fill: #fff; stroke: var(--green); stroke-width: 1.5; }
.fv-task path { fill: none; stroke: var(--green); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fv-task-open circle { stroke: var(--amber); stroke-dasharray: 2.5 2; }
.fv-grid-line { stroke: var(--border); stroke-width: 1; }
.fv-line { fill: var(--parchment-3); }

/* ── Shelf + journal pair ───────────────────────────────── */
.pair { max-width: 1100px; margin: 0 auto; padding: 1.5rem 2rem 3.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.pair-card { border-radius: var(--r-md); padding: 1.25rem 1.5rem; }
.pair-card:first-child { background: var(--green-pale); }
.pair-card:last-child { background: var(--amber-pale); }
.pair-card h3 { font-size: var(--t-h3); color: var(--forest); margin-bottom: 0.35rem; }
.pair-card p { font-size: var(--t-body); line-height: 1.55; color: var(--ink-mid); }

/* ── Privacy band ───────────────────────────────────────── */
.privacy { background: var(--forest); border-top: 2px solid var(--amber); padding: 4rem 2rem; }
.privacy .section-title { color: #f3ecd8; }
.privacy .section-sub { color: rgba(232, 221, 191, 0.65); }
.privacy-inner { max-width: 1000px; margin: 0 auto; }
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 2.5rem; }
.privacy-item h3 { font-size: 0.92rem; color: #f3ecd8; margin-bottom: 0.4rem; }
.privacy-item p { font-size: 0.8rem; line-height: 1.55; color: rgba(232, 221, 191, 0.72); }

/* ── Pricing ────────────────────────────────────────────── */
.pricing { padding: 4rem 2rem; }
.pricing-card {
  max-width: 420px; margin: 2rem auto 0; background: var(--parchment);
  border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-card);
  padding: 2rem; text-align: center;
}
.pricing-free {
  display: inline-block; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--amber); background: var(--amber-pale);
  border: 1px solid var(--amber-border); border-radius: var(--r-pill);
  padding: 0.3rem 0.85rem; margin-bottom: 1.2rem;
}
.pricing-amount { margin-bottom: 1.4rem; }
.pricing-price { font-family: var(--serif); font-size: 3rem; color: var(--forest); display: block; line-height: 1.1; }
.pricing-unit { font-size: 0.82rem; color: var(--muted); }
.pricing-list { list-style: none; text-align: left; margin: 0 auto 1.5rem; max-width: 310px; }
.pricing-list li {
  font-size: 0.85rem; color: var(--ink-mid); padding: 0.35rem 0 0.35rem 1.4rem;
  position: relative; line-height: 1.45;
}
.pricing-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); }
.pricing-note { font-size: 0.75rem; color: var(--muted); margin-top: 1rem; }

/* ── Footer ─────────────────────────────────────────────── */
.landing-foot { border-top: 1px solid var(--border); background: var(--parchment-2); padding: 1.5rem 2rem; }
.landing-foot-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.foot-brand { font-family: var(--serif); font-weight: 700; color: var(--forest); }
.foot-tag { font-size: 0.8rem; color: var(--muted); }
.foot-space { flex: 1; }
.landing-foot a { font-size: 0.8rem; color: var(--ink-mid); }
.foot-copy { font-size: 0.8rem; color: var(--muted); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 1.5rem 2.5rem; }
  .hero-sub { max-width: none; }
  .features { grid-template-columns: 1fr; }
  .feature-vignette { max-width: 150px; }
  .loop-groups { flex-direction: column; align-items: stretch; gap: 1.25rem; }
  .loop-group { max-width: none; }
  .loop-arrow { display: none; }
  .privacy-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 640px) {
  .landing-login { display: none; }
  .pair { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  #plan-svg [data-start], .crop-dot { transition: none; }
}
