/* WeedApp marketing site — re-imagined "botanist's study" edition.
   Generated artwork (herbarium-hero, private-patterns, field-atlas) sets the
   atmosphere; product screenshots are mounted as numbered herbarium plates.
   Tokens mirror the app's forest-pro theme (source of truth: app/src). */
@font-face {
  font-family: 'Fraunces';
  src: url('assets/fraunces-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
:root {
  --ink: #0c110e;
  --paper: #f4f0e8;
  --sage: #8fb99f;
  --wheat: #ddc99a;
  --moss: #2f6f49;
  --line: rgba(244, 240, 232, 0.12);
  --vellum: rgba(221, 201, 154, 0.06);
  --radius: 14px;
  font-size: 16px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 700; line-height: 1.12; margin: 0 0 0.5rem; }

/* Typewritten specimen labels — the study's utility voice. */
.field-label {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wheat);
  margin: 0 0 0.75rem;
}

/* ---------- Hero: full-bleed still life, headline in the negative space ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center; /* keep the plant + journal cluster visible; copy sits left */
}
.hero-scrim {
  position: absolute;
  inset: 0;
  /* The bottom stop lands on SOLID ink so the hero dissolves into the page
     instead of seaming against it; same for the top edge. */
  background:
    linear-gradient(90deg, rgba(12, 17, 14, 0.92) 0%, rgba(12, 17, 14, 0.72) 38%, rgba(12, 17, 14, 0.15) 70%, rgba(12, 17, 14, 0.35) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(12, 17, 14, 0.62) 12%, rgba(12, 17, 14, 0) 34%),
    linear-gradient(180deg, rgba(12, 17, 14, 0.55) 0%, rgba(12, 17, 14, 0) 14%);
}
.hero-copy {
  position: relative;
  max-width: 34rem;
  padding: 5rem 1.5rem 4rem;
  margin-left: max(1.5rem, 6vw);
}
.hero-mark { display: block; margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4rem); color: var(--sage); }
.hero-sub { color: rgba(244, 240, 232, 0.82); margin: 1rem 0 1.75rem; }
.hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 0; }

.btn {
  display: inline-block; padding: 0.65rem 1.4rem; border-radius: 10px;
  font-weight: 600; text-decoration: none;
}
.btn-primary { background: var(--sage); color: var(--ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border: 1px solid var(--line); color: var(--paper); background: rgba(12, 17, 14, 0.35); }
.btn-ghost:hover { border-color: var(--sage); color: var(--sage); }
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--wheat);
  outline-offset: 3px;
}

/* ---------- Collection notes ---------- */
.trust {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; justify-content: center;
  list-style: none; margin: 0; padding: 1.1rem 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color: rgba(244, 240, 232, 0.62); font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.trust li::before { content: "✓ "; color: var(--sage); }

main { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Herbarium plates ---------- */
.plate {
  display: grid; gap: 2.25rem; align-items: center; margin: 5rem 0;
}
@media (min-width: 800px) {
  .plate { grid-template-columns: 1fr 1.35fr; }
  .plate:nth-of-type(even) .plate-copy { order: 2; }
}
.plate h2 { font-size: 1.8rem; }
.plate-copy p:not(.field-label) { color: rgba(244, 240, 232, 0.75); }

/* The mount: a vellum mat, a hairline rule, a typewritten caption. */
.plate-mount {
  margin: 0;
  padding: 0.9rem;
  background: var(--vellum);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.plate-mount img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid rgba(244, 240, 232, 0.08);
}
.plate-mount figcaption {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 240, 232, 0.5);
  padding-top: 0.7rem;
  text-align: center;
}

/* ---------- Privacy interlude: the mandala band ---------- */
.privacy-band {
  position: relative;
  margin: 6rem calc(50% - 50vw); /* full-bleed out of the centered main column */
  min-height: 34rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.band-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.band-scrim {
  position: absolute;
  inset: 0;
  /* Vertical fades run to SOLID ink so the mandala emerges out of darkness —
     no visible rectangle edge where the band meets the page. */
  background:
    linear-gradient(180deg, var(--ink) 0%, rgba(12, 17, 14, 0) 20%, rgba(12, 17, 14, 0) 80%, var(--ink) 100%),
    radial-gradient(ellipse at center, rgba(12, 17, 14, 0.5) 0%, rgba(12, 17, 14, 0.72) 60%, rgba(12, 17, 14, 0.88) 100%);
}
.band-copy {
  position: relative;
  max-width: 38rem;
  padding: 4rem 1.5rem;
}
.band-copy h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.band-copy p:not(.field-label) { color: rgba(244, 240, 232, 0.8); }

/* ---------- Plans: the atlas spread ---------- */
.plans {
  position: relative;
  margin: 5rem calc(50% - 50vw);
  padding: 4.5rem 1.5rem 5rem;
  text-align: center;
  /* Overlay fades to solid ink at both ends — the atlas texture surfaces only
     mid-section, so no hard band edges (the old 1px borders are gone). */
  background-image:
    linear-gradient(180deg, var(--ink) 0%, rgba(12, 17, 14, 0.88) 18%, rgba(12, 17, 14, 0.88) 82%, var(--ink) 100%),
    url('assets/field-atlas-v2.webp');
  background-size: cover;
  background-position: center;
}
.plans h2 { font-size: 2.2rem; }
.plans-sub { color: rgba(244, 240, 232, 0.65); margin-bottom: 2rem; }
.plan-grid {
  display: grid; gap: 1rem; text-align: left;
  max-width: 64rem; margin: 0 auto;
}
@media (min-width: 800px) { .plan-grid { grid-template-columns: repeat(3, 1fr); } }
.plan {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; background: rgba(12, 17, 14, 0.72);
  display: flex; flex-direction: column; gap: 0.75rem;
}
.plan-featured { border-color: rgba(221, 201, 154, 0.5); }
.plan h3 { font-size: 1.4rem; margin: 0; }
.price { font-size: 1.5rem; font-weight: 700; margin: 0; }
.alt-price { font-size: 0.95rem; font-weight: 500; color: rgba(244, 240, 232, 0.6); }
.lifetime { color: var(--wheat); font-weight: 600; margin: 0; }
.plan ul { margin: 0; padding-left: 1.1rem; color: rgba(244, 240, 232, 0.78); font-size: 0.95rem; flex: 1; }
.plan li { margin: 0.35rem 0; }
.plan .btn { text-align: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 44rem; margin: 5rem auto; }
.faq h2 { font-size: 1.9rem; }
.faq dt { font-weight: 700; margin-top: 1.5rem; font-family: 'Fraunces', Georgia, serif; }
.faq dd { margin: 0.4rem 0 0; color: rgba(244, 240, 232, 0.75); }
.faq a { color: var(--wheat); }

footer {
  border-top: 1px solid var(--line); margin-top: 4rem; padding: 2rem 1.5rem 3rem;
  text-align: center; color: rgba(244, 240, 232, 0.55); font-size: 0.9rem;
}
footer a { color: inherit; }
footer a:hover { color: var(--sage); }
.maker { font-family: "JetBrains Mono", ui-monospace, monospace; opacity: 0.5; text-decoration: none; }
.maker:hover { opacity: 1; }

/* Phone: the hero art recomposes under the copy instead of behind it. */
@media (max-width: 640px) {
  .hero { min-height: 78vh; }
  .hero-art { object-position: 78% center; }
  .hero-scrim {
    background:
      linear-gradient(0deg, var(--ink) 0%, rgba(12, 17, 14, 0.86) 26%, rgba(12, 17, 14, 0.6) 55%, rgba(12, 17, 14, 0.25) 100%);
  }
  .hero-copy { margin-left: 0; padding-top: 42vh; }
  .privacy-band { min-height: 28rem; }
}
