/* GardenPal site: sections, sub-pages and responsive rules (load right after site.css). */
/* ── Sections ────────────────────────────────────────── */
.section { position: relative; z-index: 1; padding-top: clamp(88px, 10vw, 128px); }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.label {
  display: inline-flex; align-items: center; gap: 10px; color: var(--accent-ink);
  font-family: var(--mono); font-size: .76rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
.label::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.section h2 { margin-top: 16px; font-size: clamp(2.2rem, 4.8vw, 3.5rem); line-height: 1.04; }
.section-head p { margin-top: 18px; font-size: 1.1rem; }

/* the app's four tabs, in the app's own tab-bar style */
.tabs { display: flex; gap: 4px; max-width: 560px; margin: -14px 0 clamp(40px, 5vw, 56px); padding: 4px; list-style: none; border-radius: var(--r-sm); background: var(--bg-2); }
.tabs li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 4px 7px; border-radius: 4px; color: var(--muted); font-size: .68rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.tabs li:first-child { background: #fff; color: var(--accent-ink); box-shadow: 0 1px 3px rgba(26, 64, 40, .1); }
.tabs svg { width: 20px; height: 20px; }

/* feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; }
.feature { position: relative; padding: 30px 28px 28px; border-radius: var(--r-xl); overflow: hidden; }
.feature::after { /* faint wash in the card's key colour */
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 80%; pointer-events: none;
  background: radial-gradient(closest-side, var(--c, var(--accent)), transparent); opacity: .08;
}
.feature .key { display: flex; align-items: center; justify-content: space-between; }
.feature .key i { width: 30px; height: 3px; border-radius: 2px; background: var(--c, var(--accent)); box-shadow: 0 0 12px var(--c, var(--accent)); }
.feature .key b { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; color: var(--muted); }
.feature h3 { margin-top: 22px; font-size: 1.32rem; }
.feature p { margin-top: 10px; font-size: .98rem; }

/* deep dives: copy beside a real crop */
.dives { border-top: 1px solid var(--line-2); }
.dive {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 90px); align-items: center;
  padding: clamp(60px, 8vw, 100px) 0; border-bottom: 1px solid var(--line-2);
}
.dive.flip .media { order: -1; }
.dive.wide-media { grid-template-columns: .85fr 1.15fr; }
.dive:first-child { padding-top: clamp(44px, 6vw, 72px); }
.dive h3 { margin-top: 16px; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.06; }
.dive .copy > p { margin-top: 18px; font-size: 1.05rem; }
.facts { margin-top: 28px; list-style: none; border-top: 1px solid var(--line-2); }
.facts li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { font-family: var(--mono); font-size: .84rem; color: var(--heading); text-align: right; }
.need-facts { max-width: 680px; }
.media { position: relative; display: flex; flex-direction: column; align-items: center; }
.media::before {
  content: ""; position: absolute; inset: 10% 6%; z-index: -1; filter: blur(60px); opacity: .55;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), .45), transparent);
}
.media.moon::before { background: radial-gradient(closest-side, rgba(var(--gold-rgb), .5), transparent); }
.shot { width: 100%; max-width: 380px; overflow: hidden; border-radius: 26px; border: 1px solid var(--line-2); background: #fff; box-shadow: 0 34px 80px -46px rgba(15, 31, 22, .7), 0 20px 50px -40px rgba(var(--accent-rgb), .7); }
.shot img { width: 100%; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 640px; align-items: start; }
.pair .shot:last-child { margin-top: 44px; }
.media figcaption { margin-top: 16px; font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; color: var(--muted); text-align: center; text-wrap: balance; }

/* how it works: a band in the app's header green */
.band {
  position: relative; padding: clamp(64px, 8vw, 104px) 0; color: var(--on-dark-2);
  background: radial-gradient(60% 70% at 85% 0%, rgba(232, 216, 136, .1), transparent 70%), linear-gradient(160deg, var(--night), var(--forest) 55%, var(--forest-2));
  border-radius: clamp(24px, 4vw, 44px);
}
.band h2, .band h3 { color: #fff; }
.band .label { color: #8fd4a6; }
.band .section-head p { color: var(--on-dark-2); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 28px 26px 26px; border-radius: var(--r-xl); border: 1px solid rgba(245, 245, 240, .12); background: rgba(255, 255, 255, .04); }
.steps li::before { counter-increment: step; content: "0" counter(step); font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; color: var(--moon-lit); }
.steps h3 { margin-top: 14px; font-size: 1.35rem; }
.steps p { margin-top: 10px; font-size: .98rem; color: var(--on-dark-2); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2.4vw, 32px); margin-top: clamp(48px, 6vw, 72px); list-style: none; }
.gallery figure { display: flex; flex-direction: column; align-items: center; }
.gallery .phone { width: 100%; max-width: 250px; }
.band .gallery figcaption { color: var(--on-dark-3); }

/* privacy band */
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; }
.privacy-grid li { padding: 24px 22px; border-radius: var(--r-xl); }
.privacy-grid h3 { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; }
.privacy-grid h3 svg { width: 22px; height: 22px; flex: none; color: var(--accent); }
.privacy-grid p { margin-top: 10px; font-size: .95rem; }
.more { margin-top: 28px; font-size: 1rem; }

/* specs */
.spec-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px clamp(24px, 4vw, 40px); }
.spec-groups > div { padding: 22px 26px 8px; border-radius: var(--r-xl); }
.spec-groups h3 { padding-bottom: 14px; font-family: var(--mono); font-size: .76rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); }
.specs { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line-2); font-size: .95rem; }
.specs th, .specs td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { width: 36%; padding-right: 20px; font-weight: 500; color: var(--muted); }
.specs td { color: var(--heading); }
.specs td small { display: block; margin-top: 4px; font-size: .86rem; color: var(--muted); }

/* pricing */
.price-card { max-width: 560px; margin: 0 auto; padding: clamp(30px, 5vw, 44px); border-radius: 26px; text-align: center; }
.price-card .top { display: flex; justify-content: center; align-items: center; gap: 12px; }
.price-card .name { font-family: var(--display); font-size: 1.3rem; color: var(--heading); }
.price-card .name .x { color: var(--accent); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pill .dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(var(--gold-rgb), .14); }
.price { margin-top: 18px; font-family: var(--mono); font-size: clamp(4rem, 9vw, 5.4rem); font-weight: 500; letter-spacing: -.06em; line-height: 1; color: var(--heading); }
.price sup { margin-right: 4px; font-size: .42em; vertical-align: .9em; letter-spacing: 0; color: var(--muted); }
.price-note { margin-top: 10px; font-size: .95rem; color: var(--muted); }
.checklist { display: grid; gap: 12px; margin: 30px 0 32px; list-style: none; text-align: left; }
.checklist li { position: relative; padding-left: 30px; font-size: .98rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23247040' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: inset 0 0 0 1px var(--line-green);
}
.price-card .btn { width: 100%; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 26px; }
.badges a { display: block; }
.badges img { height: 48px; width: auto; }
.badges a:last-child img { height: 70px; margin: -11px -8px; } /* the Play badge carries its own padding */
a[data-store-url] { opacity: .5; cursor: default; pointer-events: none; }
.store-soon { margin-top: 12px; font-size: .9rem; color: var(--muted); }

/* newsletter (the LD Coda list, as before) */
.signup { max-width: 640px; margin: 0 auto; padding: clamp(28px, 5vw, 40px); border-radius: 26px; text-align: center; }
.signup h2 { margin-top: 12px; font-size: clamp(1.8rem, 3.4vw, 2.3rem); }
.signup p { margin-top: 10px; }
.signup form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 460px; margin: 22px auto 0; }
.signup input { flex: 1 1 240px; min-width: 0; height: 50px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--text); font: inherit; }
.signup input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .25); }
.signup .msg { display: none; margin-top: 14px; font-size: .95rem; }
.signup .ok { color: var(--accent-ink); }
.signup .err { color: var(--danger); }
.signup .fine { margin-top: 14px; font-size: .86rem; color: var(--muted); }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { position: relative; padding: 22px 48px 22px 0; list-style: none; cursor: pointer; font-size: 1.08rem; font-weight: 600; color: var(--heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.5px; border-radius: 1px; background: var(--muted); transition: transform .3s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq .a { max-width: 740px; padding: 0 0 24px; }
.site-end { height: clamp(48px, 6vw, 80px); }

/* ── Sub-pages (contact, privacy) ────────────────────── */
.page { max-width: 760px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gutter) clamp(40px, 6vw, 72px); }
.page h1 { margin-top: 14px; font-size: clamp(2.4rem, 5vw, 3.3rem); }
.page .lead { margin-top: 14px; font-size: 1.08rem; }
.page .note { margin-top: 22px; font-size: .95rem; color: var(--muted); }
.card { margin-top: 32px; padding: clamp(22px, 4vw, 36px); border-radius: var(--r-xl); }
.form { display: flex; flex-direction: column; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: block; margin-bottom: 7px; font-size: .88rem; font-weight: 600; color: var(--heading); }
.form input, .form select, .form textarea { width: 100%; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: #fff; color: var(--text); font: inherit; font-size: .97rem; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .25); }
.form textarea { min-height: 150px; resize: vertical; }
.form .btn { align-self: flex-start; }
.form .btn:disabled { opacity: .6; cursor: default; transform: none; }
.form .status { min-height: 1.2em; font-size: .92rem; color: var(--danger); }
#successState { display: none; padding: 24px 0; text-align: center; }
#successState.visible { display: block; }
#successState h2 { font-size: 1.5rem; }
#successState p { margin-top: 8px; }
.policy .updated { margin-top: 8px; font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.policy h2 { margin: 40px 0 10px; font-size: 1.4rem; }
.policy h3 { margin: 22px 0 8px; font-family: var(--sans); font-size: 1.02rem; font-weight: 700; }
.policy p + p { margin-top: 12px; }
.policy ul { margin: 10px 0 12px 1.3rem; }
.policy li + li { margin-top: 6px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 12px; }
.policy table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: .93rem; }
.policy th, .policy td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.policy th { color: var(--heading); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1080px) {
  .nav-links { gap: 18px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats li:nth-child(4) { border-left: 0; }
  .stats li:nth-child(n+4) { border-top: 1px solid var(--line); }
  .privacy-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .dive, .dive.wide-media, .spec-groups { grid-template-columns: 1fr; }
  .dive.flip .media { order: 0; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-inner { gap: 16px; }
  .trio .side { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li { border-left: 0; border-top: 1px solid var(--line); padding: 18px; }
  .stats li:nth-child(1), .stats li:nth-child(2) { border-top: 0; }
  .stats li:nth-child(even) { border-left: 1px solid var(--line); }
  .stats li:last-child { grid-column: 1 / -1; border-left: 0; }
  .features, .steps, .privacy-grid { grid-template-columns: 1fr; }
  .feature { padding: 26px 22px 24px; }
  .facts li { flex-direction: column; gap: 2px; }
  .facts li span:last-child { text-align: left; }
  .pair { grid-template-columns: 1fr; max-width: 340px; }
  .pair .shot:last-child { margin-top: 0; }
  .specs th { width: 40%; }
  .cta-row .btn, .signup form .btn { flex: 1 1 100%; }
  .form .row { grid-template-columns: 1fr; }
  .band { border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .reveal { opacity: 1 !important; translate: none !important; }
  .nav { position: static; }
  .aura, canvas, .media::before, .trio .glow { display: none !important; }
}
