/* GardenPal site: fonts, base, nav, buttons, hero type, phone frames and the overview.
   Colours come from themes.css. Sections and sub-pages are in sections.css; glass, motion and the hero stage in motion.css.
   Type follows the app: Righteous for headings (bundled with the app, SIL OFL), the system font for text.
   JetBrains Mono (SIL OFL) is only for small labels and specs. */
@font-face {
  font-family: "Righteous"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/righteous-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Righteous"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/righteous-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
  --display: "Righteous", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --r-sm: 6px;                  /* the app's radii */
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 22px;                 /* the app header */
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: rgba(var(--accent-rgb), .35); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--heading); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(var(--accent-rgb), .22); color: var(--heading); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--heading); letter-spacing: .004em; line-height: 1.08; text-wrap: balance; }
strong { color: var(--heading); font-weight: 650; }
code, .mono { font-family: var(--mono); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 10px;
  background: var(--heading); color: #fff; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

/* ── Nav: the app's forest-green header as a sticky glass bar ───────────── */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(20, 46, 30, .95); border-bottom: 1px solid rgba(245, 245, 240, .08);
  -webkit-backdrop-filter: saturate(150%) blur(14px); backdrop-filter: saturate(150%) blur(14px);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.wordmark { display: inline-flex; align-items: center; gap: 4px; font-family: var(--display); font-size: 1.32rem; color: #fff; text-decoration: none; }
.wordmark:hover { color: #fff; }
.wordmark svg { width: 24px; height: 34px; flex: none; }
.wordmark .x, .price-card .name .x { color: var(--leaf); }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: .9rem; }
.nav-links a { position: relative; padding: 6px 0; color: var(--on-dark-2); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: #fff; }
.nav-links a[aria-current="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px;
  background: var(--leaf); box-shadow: 0 0 10px rgba(74, 173, 108, .8);
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 24px;
  border-radius: 999px; font: inherit; font-size: .98rem; font-weight: 650; letter-spacing: -.005em; white-space: nowrap;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s;
}
.btn-primary {
  color: #fff; background: linear-gradient(100deg, var(--accent-2), var(--accent-ink));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 12px 30px -12px rgba(var(--accent-rgb), .95), 0 0 42px -14px rgba(var(--gold-rgb), .6);
}
.btn-primary:hover {
  color: #fff; transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24), 0 16px 38px -12px rgba(var(--accent-rgb), 1), 0 0 56px -12px rgba(var(--gold-rgb), .75);
}
.btn-ghost { color: var(--heading); background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { color: var(--heading); background: #fff; box-shadow: inset 0 0 0 1px var(--line-green); }
.dark .btn-ghost { color: #fff; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(245, 245, 240, .26); }
.dark .btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(245, 245, 240, .45); }
.btn-sm { height: 38px; padding: 0 16px; font-size: .86rem; }
.btn .sep { opacity: .6; }
.btn svg { width: 16px; height: 16px; }

/* ── Hero type (the stage and its sky are in motion.css) ─────────────────── */
.hero-copy { text-align: center; max-width: 920px; margin: 0 auto; color: var(--on-dark); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(245, 245, 240, .18); background: rgba(255, 255, 255, .04);
  font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2);
}
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--moon-lit); flex: none;
  box-shadow: 0 0 0 4px rgba(232, 216, 136, .14), 0 0 12px rgba(232, 216, 136, .9);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(232, 216, 136, .05), 0 0 18px rgba(232, 216, 136, .6); } }
.hero h1 {
  margin-top: 20px; font-size: clamp(3.7rem, 11.5vw, 8.4rem); line-height: .95; letter-spacing: -.012em; color: #fff;
  text-shadow: 0 0 44px rgba(8, 19, 13, .85);
}
.hero h1 .x { background: linear-gradient(115deg, var(--leaf) 10%, var(--moon-lit) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 18px; font-size: clamp(1.3rem, 2.6vw, 1.95rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.22; color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 26px; list-style: none;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; color: var(--on-dark-2);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 8px var(--leaf); }

/* ── Phone frame: a real screenshot in a device outline ─────────────────── */
.phone {
  position: relative; width: 280px; padding: 9px; border-radius: 42px;
  background: linear-gradient(155deg, #2b3d31, #0c1610 60%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 0 0 3px #0a120d,
              0 44px 90px -34px rgba(15, 31, 22, .6), 0 26px 70px -40px rgba(var(--accent-rgb), .8);
}
.phone img { width: 100%; border-radius: 33px; background: var(--bg); }
.phone::after { /* glass highlight */
  content: ""; position: absolute; inset: 9px; border-radius: 33px; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), transparent 26%);
}

/* ── Overview: three real screens, a lead and the numbers ───────────────── */
.overview { position: relative; z-index: 1; padding-top: clamp(56px, 7vw, 88px); }
.trio { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: clamp(14px, 3vw, 44px); }
.trio .glow {
  position: absolute; inset: 8% 10% 0; z-index: -1; filter: blur(70px); opacity: .8; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 45%, rgba(var(--accent-rgb), .32), transparent 70%),
              radial-gradient(30% 40% at 78% 60%, rgba(var(--gold-rgb), .26), transparent 70%);
}
.trio figure { display: flex; flex-direction: column; align-items: center; }
.trio .phone { width: clamp(230px, 25vw, 300px); }
.trio .side .phone { width: clamp(200px, 20vw, 250px); }
.trio .side { margin-bottom: 26px; }
.trio .side:first-of-type .phone { transform: rotate(-4deg); }
.trio .side:last-of-type .phone { transform: rotate(4deg); }
.trio figcaption, .gallery figcaption { margin-top: 18px; font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.overview-lead { max-width: 780px; margin: clamp(40px, 6vw, 64px) auto 0; text-align: center; font-size: clamp(1.15rem, 2vw, 1.38rem); line-height: 1.55; color: var(--text); }
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr); margin-top: clamp(36px, 5vw, 56px); list-style: none;
  border: 1px solid var(--line); border-radius: var(--r-xl); background: rgba(255, 255, 255, .6);
}
.stats li { padding: 22px 24px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; }
.stats .v { font-family: var(--mono); font-size: clamp(1.45rem, 2.4vw, 1.95rem); font-weight: 500; letter-spacing: -.03em; color: var(--heading); line-height: 1.15; }
.stats .k { margin-top: 6px; font-size: .88rem; line-height: 1.4; color: var(--muted); }
