/* Plant Grid — marketing site. Static, dependency-free, no build step.
   "Garden notebook" design system: graph paper, botanical green, and the soil
   and timber tones of the app and its icon. Retune the palette below. */

:root {
  --paper: #f3f0e4;
  --sheet: #fffdf6;
  --ink: #1e2a21;
  --muted: #5d665a;
  --rule: #d6cfba;
  --grid-line: rgb(58 107 68 / 7%);
  --accent: #8bc896;
  --accent-deep: #3a6b44;
  --forest: #1c3323;
  --forest-deep: #132219;
  --soil: #ebe1cc;
  --wood: #8a6a45;
  --on-dark: #f3f0e4;
  --on-dark-muted: #bfcbbd;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino,
    Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

/* Minimal reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
  font-family: var(--sans);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.shell {
  width: min(1140px, calc(100% - 48px));
  margin-inline: auto;
}

/* The plant mark: a ring with a center dot, as drawn in the app's preview. */
.eyebrow::before,
.feature-list h3::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, currentColor 0 40%, transparent 48%);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: rgb(243 240 228 / 90%);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.site-header nav {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.site-header nav a:hover {
  color: var(--accent-deep);
}

/* Typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--accent-deep);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.9rem, 6vw, 5.2rem);
  line-height: 1.02;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.06;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.lede,
.section-heading > p:last-child {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.7;
}

/* Buttons */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1.5px solid var(--accent-deep);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--sheet);
  background: var(--accent-deep);
  box-shadow: 0 8px 18px rgb(58 107 68 / 22%);
}

.button-secondary {
  color: var(--accent-deep);
  background: var(--sheet);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
}

/* Hero: screenshot on a planting bed, copy alongside */
.hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  grid-template-areas: "shot copy";
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
  padding-block: 72px 100px;
}

.hero-copy {
  grid-area: copy;
}

.hero .lede {
  max-width: 600px;
  margin-bottom: 32px;
}

.shot-stage {
  grid-area: shot;
  position: relative;
  display: grid;
  place-items: center;
  padding-block: 36px;
}

.shot-stage::before {
  content: "";
  position: absolute;
  width: min(420px, 96%);
  aspect-ratio: 1;
  border: 18px solid var(--wood);
  border-radius: 30px;
  background:
    radial-gradient(circle, rgb(58 107 68 / 32%) 0 6px, transparent 7px) 0 0 / 52px 52px,
    var(--soil);
  box-shadow: 0 26px 50px rgb(61 48 27 / 20%);
  transform: rotate(-4deg);
}

.shot-frame {
  position: relative;
  width: min(270px, 68%);
  aspect-ratio: 1242 / 2688;
  overflow: hidden;
  border: 9px solid var(--ink);
  border-radius: 44px;
  background: var(--paper);
  box-shadow: 0 30px 60px rgb(30 42 33 / 30%);
}

.shot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The app's summary strip */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.spec-strip > div {
  padding: 0 24px;
  border-left: 1px solid var(--rule);
}

.spec-strip > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.spec-strip dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.spec-strip dd {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.spec-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Sections */
.section {
  padding-block: clamp(80px, 11vw, 130px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 56px;
}

/* How it works */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.steps li {
  position: relative;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 27px;
  left: 70px;
  right: -24px;
  border-top: 2px dashed var(--rule);
}

.step-num {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 2px solid var(--accent-deep);
  border-radius: 50%;
  color: var(--accent-deep);
  background: var(--sheet);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
}

.steps h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
}

.steps p {
  color: var(--muted);
  line-height: 1.7;
}

/* Grid vs. staggered */
.compare {
  padding-block: clamp(80px, 11vw, 130px);
  color: var(--on-dark);
  background: var(--forest);
}

.compare-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(48px, 7vw, 88px);
}

.compare .eyebrow {
  color: var(--accent);
}

.compare p {
  color: var(--on-dark-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.compare p + p {
  margin-top: 16px;
}

.beds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.bed-figure {
  text-align: center;
}

/* A to-scale 120 × 240 cm bed: 8 columns of 15 cm, 8 rows of 30 cm. Each plant
   spans two columns, so its center sits exactly on the computed position. */
.bed {
  position: relative;
  width: min(180px, calc(100% - 12px));
  aspect-ratio: 1 / 2;
  margin: 6px auto 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  border-radius: 3px;
  background: var(--soil);
  box-shadow: 0 0 0 6px var(--wood);
}

.bed::before {
  content: "";
  position: absolute;
  inset: 6.25% 12.5%;
  border: 1.5px dashed rgb(110 91 64 / 60%);
}

.bed span {
  grid-column: span 2;
  display: grid;
  place-items: center;
}

.bed span::before {
  content: "";
  width: 72%;
  aspect-ratio: 1;
  border: 2px solid var(--accent-deep);
  border-radius: 50%;
  background: radial-gradient(circle closest-side, var(--accent-deep) 0 26%, rgb(58 107 68 / 22%) 32%);
}

.bed .gap {
  grid-column: span 1;
}

.bed .gap::before {
  content: none;
}

.bed-figure figcaption {
  margin-top: 24px;
}

.bed-figure strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
}

.bed-figure figcaption span {
  color: var(--on-dark-muted);
  font-size: 0.9rem;
}

/* Feature list */
.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
}

.feature-list li {
  padding: 28px 0 36px;
  border-top: 1px solid var(--rule);
}

.feature-list h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.feature-list h3::before {
  color: var(--accent-deep);
}

.feature-list p {
  color: var(--muted);
  line-height: 1.7;
}

/* Worked example */
.ledger-section {
  padding-bottom: clamp(80px, 11vw, 130px);
}

.ledger {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(28px, 5vw, 60px);
  border: 1px solid var(--rule);
  border-radius: 22px;
  background: var(--sheet);
  box-shadow: 0 20px 50px rgb(40 50 30 / 8%);
}

.ledger-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.ledger-copy p + p {
  margin-top: 16px;
}

.ledger-sheet {
  align-self: center;
  padding-left: 20px;
  border-left: 2px solid rgb(58 107 68 / 45%);
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 2.3;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 calc(2.3em - 1px),
    var(--rule) calc(2.3em - 1px) 2.3em
  );
}

.ledger-sheet .label {
  color: var(--muted);
  font-family: var(--sans);
}

.ledger-sheet strong {
  color: var(--accent-deep);
}

/* Closing */
.closing {
  padding-block: clamp(80px, 10vw, 120px);
  border-top: 1px solid var(--rule);
  text-align: center;
  background:
    radial-gradient(circle, rgb(58 107 68 / 20%) 0 3px, transparent 4px) 0 0 / 34px 34px,
    var(--soil);
}

.closing img {
  width: 96px;
  height: 96px;
  margin: 0 auto 26px;
  border-radius: 22px;
  box-shadow: 0 16px 32px rgb(61 48 27 / 24%);
}

.closing p {
  max-width: 520px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 1.08rem;
}

.closing .button-row {
  justify-content: center;
}

/* Footer */
.site-footer {
  padding-block: 52px 40px;
  color: var(--on-dark-muted);
  background: var(--forest-deep);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.footer-brand strong {
  display: block;
  color: var(--on-dark);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.footer-brand p {
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.9rem;
  font-weight: 650;
}

.footer-links a:hover {
  color: var(--on-dark);
}

.copyright {
  flex-basis: 100%;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 10%);
  font-size: 0.8rem;
}

/* Subpages (support, privacy) */
.subpage-hero {
  padding-block: clamp(64px, 9vw, 110px) clamp(44px, 6vw, 72px);
}

.subpage-hero h1 {
  max-width: 820px;
}

.subpage-hero .lede {
  max-width: 640px;
  margin-bottom: 30px;
}

.updated {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--accent-deep);
  background: rgb(58 107 68 / 11%);
  font-size: 0.82rem;
  font-weight: 650;
}

/* Support: FAQ accordion with a contact sidebar */
.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.6fr);
  align-items: start;
  gap: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(80px, 10vw, 120px);
}

.faq-title {
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.faq {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 700;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--accent-deep);
  border-radius: 50%;
  color: var(--accent-deep);
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
}

.faq[open] summary::after {
  content: "−";
  color: var(--sheet);
  background: var(--accent-deep);
}

.faq p {
  padding: 0 52px 26px 0;
  color: var(--muted);
  line-height: 1.75;
}

.faq a,
.policy a {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.support-aside {
  position: sticky;
  top: 28px;
}

.contact-card {
  padding: 30px;
  border-radius: 20px;
  color: var(--on-dark);
  background: var(--forest);
}

.contact-card h2 {
  font-size: 1.9rem;
}

.contact-card p {
  margin-bottom: 18px;
  color: var(--on-dark-muted);
  line-height: 1.7;
}

.contact-card .text-link {
  color: var(--accent);
  word-break: break-word;
}

/* Privacy */
.glance {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.glance li {
  padding: 22px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--sheet);
}

.glance strong {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.glance strong::before {
  content: "✓";
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--sheet);
  background: var(--accent-deep);
  font-family: var(--sans);
  font-size: 0.8rem;
}

.glance span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.policy {
  width: min(880px, calc(100% - 48px));
  /* Left edge lines up with .shell content. */
  margin: 40px auto clamp(80px, 10vw, 120px) max(24px, calc((100% - 1140px) / 2));
  padding: clamp(28px, 5vw, 60px);
  border: 1px solid var(--rule);
  border-radius: 22px;
  background: var(--sheet);
}

.policy section {
  padding-block: 32px;
  border-bottom: 1px solid var(--rule);
}

.policy section:first-child {
  padding-top: 0;
}

.policy section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.policy h2 {
  margin-bottom: 14px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.policy h3 {
  margin: 24px 0 8px;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.policy p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.policy p + p {
  margin-top: 14px;
}

.policy-table {
  border-top: 1px solid var(--ink);
}

.policy-table > div {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.policy-table span {
  color: var(--muted);
  line-height: 1.55;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "shot";
    padding-block: 56px 72px;
  }

  .steps,
  .compare-inner,
  .ledger,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .steps li:not(:last-child)::after {
    content: none;
  }

  .feature-list,
  .glance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-aside {
    position: static;
  }
}

@media (max-width: 620px) {
  .shell {
    width: calc(100% - 32px);
  }

  .policy {
    width: calc(100% - 32px);
    margin-left: 16px;
  }

  .header-inner {
    min-height: 64px;
    gap: 14px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .site-header nav {
    gap: 14px;
    font-size: 0.85rem;
  }

  .site-header nav a:first-child {
    display: none;
  }

  .spec-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 0;
  }

  .spec-strip > div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .beds {
    gap: 20px;
  }

  .feature-list,
  .glance {
    grid-template-columns: 1fr;
  }

  .faq p {
    padding-right: 0;
  }

  .policy-table > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
