/* ==========================================================================
   Gardenstead: shared design system
   Type: Lora (display, from Ashley's homepage one-pager) + Poppins (brand UI font)
   Colour: cream paper, forest green, app green (#228743), terracotta eyebrows,
           sun yellow from the app's harvest recap cards.
   ========================================================================== */

:root {
  --cream: #FFFFFF;     /* page */
  --cream-2: #FFFFFF;   /* was off-white; site is pure white throughout */
  --paper: #FFFFFF;
  --forest: #185E2F;   /* brand Dark Green */
  --forest-2: #23724A;
  --forest-deep: #0F3B22;
  --app-green: #228743; /* brand Primary Green */
  --coral: #FF8A66;
  --leaf: #A9C58A;
  --sage: #DCE6D0;
  --sage-2: #C9D9B9;
  --terracotta: #A3502B;
  --clay: #E9C9B2;
  --sun: #FFC857;     /* brand Yellow */
  --sky: #CFDDE0;
  --ink: #121613;
  --ink-2: #3B423D;
  --muted: #687069;
  --line: rgba(18, 22, 19, .09);
  --line-strong: rgba(18, 22, 19, .18);

  /* Brand guide: SF Pro for all text, Poppins for the logo only.
     SF Pro can't be self-hosted, so the system stack renders it on Apple devices. */
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-brand: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --shadow-soft: 0 1px 2px rgba(27,35,29,.04), 0 12px 40px -12px rgba(27,35,29,.18);
  --shadow-lift: 0 2px 4px rgba(27,35,29,.06), 0 30px 60px -20px rgba(27,35,29,.30);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 2px solid var(--app-green); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 1000;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.panel {
  margin: 0 clamp(8px, 1.6vw, 24px);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
}
.panel--sand { background: var(--cream-2); }
.panel--paper { background: var(--paper); }
.panel--forest { background: var(--forest); color: var(--cream); }
.panel--deep { background: var(--forest-deep); color: var(--cream); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--app-green);
  margin: 0 0 14px;
}
.on-dark .eyebrow, .panel--forest .eyebrow, .panel--deep .eyebrow { color: var(--sun); }

.display, h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
.d-xxl { font-size: clamp(44px, 7.6vw, 116px); line-height: .98; letter-spacing: -0.05em; font-weight: 700; }
.d-xl  { font-size: clamp(38px, 5.6vw, 84px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; }
.d-lg  { font-size: clamp(32px, 4vw, 58px); line-height: 1.06; letter-spacing: -0.04em; }
.d-md  { font-size: clamp(26px, 2.8vw, 40px); line-height: 1.12; letter-spacing: -0.035em; }
.d-sm  { font-size: clamp(21px, 2vw, 26px); line-height: 1.22; letter-spacing: -0.025em; }
.it { font-style: normal; }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.65; color: var(--ink-2); max-width: 60ch; }
.on-dark .lead, .panel--forest .lead, .panel--deep .lead { color: rgba(255, 255, 255, .82); }
.small { font-size: 14px; color: var(--muted); }
.h-ui { font-family: var(--font-ui); font-weight: 600; letter-spacing: -0.01em; }

/* Split-text masks (GSAP SplitText adds .line wrappers) */
.split-line { overflow: hidden; padding: .04em .06em .16em 0; margin: -.04em -.06em -.16em 0; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--forest); --fg: var(--cream);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 15px; letter-spacing: -0.015em;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), color .35s ease;
}
/* Hover fill blooms from where the cursor enters (--mx/--my set in site.js) and recedes toward where it leaves */
.btn::before {
  content: ""; position: absolute; z-index: -1;
  left: var(--mx, 50%); top: var(--my, 50%); width: 260%; aspect-ratio: 1;
  border-radius: 50%; background: var(--app-green);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .75s cubic-bezier(.45, 0, .2, 1);
}
.btn:hover::before { transform: translate(-50%, -50%) scale(1); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -16px rgba(24,94,47,.55); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .15s; }
.btn .btn__label { display: inline-block; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .45s var(--ease-out); }
.btn:hover svg.arrow { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) {
  .btn::before { transition: none; }
  .btn:hover { transform: none; }
}

.btn--ghost { --bg: transparent; --fg: var(--forest); box-shadow: inset 0 0 0 1.5px var(--forest); }
.btn--ghost::before { background: var(--forest); }
.btn--ghost:hover { --fg: var(--cream); color: var(--cream); }
/* Outline buttons: text colour trails the bloom in, and waits for it to recede on the way out */
.btn--ghost, .btn--ghost-light { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), color .3s ease .3s; }
.btn--ghost:hover, .btn--ghost-light:hover { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), color .3s ease .1s; }
.btn--sun { --bg: var(--sun); --fg: var(--ink); }
.btn--sun::before { background: #FFD670; }
.btn--light { --bg: var(--cream); --fg: var(--forest-deep); }
.btn--light::before { background: var(--sun); }
.btn--ghost-light { --bg: transparent; --fg: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.btn--ghost-light::before { background: var(--cream); }
.btn--ghost-light:hover { color: var(--forest-deep); }
/* YouTube CTA: forest pill led by a YouTube-red play badge so it reads as "video" at a glance */
.btn--yt { padding-left: 7px; gap: 12px; }
.btn__yt { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; transition: transform .45s var(--ease-out); }
.btn__yt svg { width: 26px; height: 26px; display: block; } /* square viewBox keeps the logo's own proportions */
.btn--yt:hover .btn__yt { transform: scale(1.08); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--forest);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .5s var(--ease-out);
  padding-bottom: 2px;
}
.link-arrow:hover { background-size: 100% 1.5px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .4s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease-out);
}
.chip:hover { border-color: var(--forest); transform: translateY(-1px); }
.chip.is-active { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.chip .count { font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  padding: 0;
  transition: transform .6s var(--ease-out);
  pointer-events: none;
}
.site-header.is-hidden { transform: translateY(-120%); }
.site-header.is-hidden:focus-within { transform: none; transition-duration: .15s; } /* keyboard users always see where focus is */
.nav {
  pointer-events: auto;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 68px; padding: 0 var(--gutter);
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
  transition: background .5s, border-color .5s, box-shadow .5s, backdrop-filter .5s;
}
.site-header.is-scrolled .nav {
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--forest-deep); }
.brand svg { height: 28px; width: auto; }
.brand__word { font-family: var(--font-brand); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; }
.nav__links { display: flex; align-items: center; gap: 2px; position: relative; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  position: relative; z-index: 1; display: inline-flex; align-items: center;
  height: 40px; padding: 0 16px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: color .3s;
}
.nav__links a[aria-current="page"] { color: var(--forest-deep); font-weight: 600; }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--app-green);
}
.nav__pill {
  position: absolute; z-index: 0; top: 0; left: 0; height: 40px; border-radius: 999px;
  background: var(--sage); opacity: 0; pointer-events: none;
  transition: transform .45s var(--ease-out), width .45s var(--ease-out), opacity .3s;
}
.nav__cta { display: flex; align-items: center; gap: 8px; }
.nav__toggle {
  display: none; width: 48px; height: 48px; border-radius: 50%;
  background: var(--forest); color: var(--cream);
  align-items: center; justify-content: center; position: relative;
}
.nav__toggle span { position: absolute; width: 18px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ease-out); }
.nav__toggle span:first-child { transform: translateY(-4px); }
.nav__toggle span:last-child { transform: translateY(4px); }
.menu-open .nav__toggle span:first-child { transform: rotate(45deg); }
.menu-open .nav__toggle span:last-child { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 85;
  background: var(--forest-deep); color: var(--cream);
  clip-path: circle(0% at calc(100% - 52px) 46px);
  transition: clip-path .8s var(--ease-in-out);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px var(--gutter) 40px;
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 52px) 46px); visibility: visible; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.12); }
.mobile-menu a.big {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-display); font-size: clamp(40px, 11vw, 64px); line-height: 1.25;
  transform: translateY(100%); transition: transform .8s var(--ease-out);
}
.mobile-menu a.big small { font-family: var(--font-ui); font-size: 13px; opacity: .5; }
.menu-open .mobile-menu a.big { transform: translateY(0); }
.mobile-menu li:nth-child(2) a.big { transition-delay: .05s; }
.mobile-menu li:nth-child(3) a.big { transition-delay: .1s; }
.mobile-menu li:nth-child(4) a.big { transition-delay: .15s; }
.mobile-menu li:nth-child(5) a.big { transition-delay: .2s; }
.mobile-menu__foot { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 900px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav { padding: 0 12px 0 var(--gutter); }
}
@media (max-width: 480px) {
  .nav__cta .btn { display: none; }
}

/* Reading progress (blog post) */
.progress {
  position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 95;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--app-green), var(--sun));
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative; background: var(--forest-deep); color: var(--cream);
  margin: 0; border-radius: 0;
  padding: clamp(56px, 8vw, 96px) 0 0; overflow: hidden;
}
.footer__top { display: grid; grid-template-columns: 1.3fr 2fr; gap: 56px; }
/* No forms endpoint: the newsletter box is hidden and the link columns take the row. */
.footer__news[hidden] + .footer__cols { grid-column: 1 / -1; }
.footer__news h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; margin-bottom: 14px; }
.footer__news p { color: rgba(255,255,255,.7); margin: 0 0 24px; max-width: 42ch; }
.news-form { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); max-width: 460px; }
.news-form input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 0 16px; color: var(--cream); font-size: 15px; }
.news-form input::placeholder { color: rgba(255,255,255,.5); }
.news-form .btn { height: 46px; }
.news-form__msg { min-height: 24px; margin-top: 10px; font-size: 14px; color: var(--sun); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__cols h3 { letter-spacing: 0; font-family: var(--font-ui); font-size: 14px; color: rgba(255,255,255,.65); font-weight: 600; margin: 0 0 16px; }
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__cols a { color: rgba(255,255,255,.86); transition: color .3s; position: relative; }
.footer__cols a:hover { color: var(--sun); }
.footer__season {
  margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 0; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14);
  font-size: 14px; color: rgba(255,255,255,.75);
}
.season-pill { display: inline-flex; align-items: center; gap: 10px; }
.season-pill b { color: var(--cream); font-weight: 600; }
.season-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 0 rgba(244,192,78,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(244,192,78,.55); } 70% { box-shadow: 0 0 0 12px rgba(244,192,78,0); } 100% { box-shadow: 0 0 0 0 rgba(244,192,78,0); } }
.footer__socials { display: flex; gap: 8px; }
.footer__socials a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.2); transition: background .3s, color .3s, transform .4s var(--ease-out);
}
.footer__socials a:hover { background: var(--sun); color: var(--ink); transform: translateY(-3px); }
.footer__socials svg { width: 18px; height: 18px; }
.footer__giant {
  font-family: var(--font-brand); font-weight: 500; letter-spacing: -0.05em; line-height: 1;
  font-size: clamp(56px, 13.4vw, 220px);
  color: var(--cream); white-space: nowrap; text-align: center;
  margin: 48px 0 0; padding: 0 var(--gutter) .26em; user-select: none; display: flex; justify-content: center;
}
.footer__giant span { display: inline-block; transition: color .4s, translate .6s var(--ease-out), rotate .6s var(--ease-out); }
/* hover uses translate/rotate, so it never fights the scroll-in animation (which owns transform) */
.footer__giant span:hover { color: var(--sun); translate: 0 -6%; rotate: -3deg; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 18px 26px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: rgba(255,255,255,.55); position: relative; z-index: 1; }
.footer__legal a:hover { color: var(--cream); }
@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Page transition ---------- */
.pt {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  display: grid; place-items: center;
}
.pt__panel {
  position: absolute; left: -10%; right: -10%; top: 0; height: 120%;
  background: var(--forest);
  border-radius: 0 0 50% 50% / 0 0 18% 18%;
  transform: translateY(-110%);
}
.pt__panel--2 { background: var(--app-green); }
.pt__mark { position: relative; z-index: 2; color: var(--cream); opacity: 0; }
.pt__mark svg { width: 72px; height: auto; }
.pt.is-covering { pointer-events: auto; }

/* Preloader */
.preloader {
  position: fixed; inset: 0; z-index: 210; background: var(--cream);
  display: grid; place-items: center; color: var(--forest-deep);
}
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.preloader__mark svg { width: 84px; height: auto; }
.preloader__mark path { stroke: var(--forest); stroke-width: 1.6; fill: transparent; }
.preloader__count { font-family: var(--font-display); font-size: 15px; letter-spacing: .02em; color: var(--muted); font-variant-numeric: tabular-nums; }
.preloader__bar { width: 160px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.preloader__bar i { display: block; height: 100%; width: 100%; background: var(--forest); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; mix-blend-mode: normal; }
.cursor__dot {
  position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: var(--forest-deep);
}
.cursor__ring {
  position: absolute; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  background: var(--sun); color: var(--ink);
  display: grid; place-items: center; text-align: center;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  transform: scale(0); transition: transform .45s var(--ease-out);
}
.cursor.has-label .cursor__ring { transform: scale(1); }
.cursor.has-label .cursor__dot { opacity: 0; }
.cursor.is-link .cursor__dot { transform: scale(4.5); background: rgba(34,135,67,.18); }
.cursor__dot { transition: transform .35s var(--ease-out), opacity .2s, background .3s; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Generic cards & effects ---------- */
.spot {
  position: relative; isolation: isolate; overflow: hidden;
  --mx: 50%; --my: 50%;
}
.spot::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(244,192,78,.22), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.spot:hover::after { opacity: 1; }

.marquee { overflow: hidden; white-space: nowrap; display: flex; user-select: none; }
.marquee__track { display: flex; flex: none; gap: 0; will-change: transform; }
.marquee__item { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; }

.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  background: var(--sage); color: var(--forest-deep);
}
.tag--clay { background: var(--clay); color: #6B2F14; }
.tag--sun { background: #FBE6B0; color: #6A4A06; }
.tag--purple { background: #EEE3F6; color: #6B3E8C; }

.placeholder { background: #FFF0C2; color: #6A4A06; padding: 0 .3em; border-radius: 4px; font-weight: 500; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 250; transform: translate(-50%, 140%);
  background: var(--ink); color: var(--cream); padding: 12px 20px; border-radius: 999px; font-size: 14px;
  transition: transform .5s var(--ease-out);
}
.toast.is-on { transform: translate(-50%, 0); }

/* Reveal helpers: JS sets initial states; without JS everything is visible */
.no-js [data-reveal] { opacity: 1 !important; transform: none !important; }

/* Forms */
.field { position: relative; display: block; }
.field input, .field textarea, .field select {
  width: 100%; border: 1.5px solid var(--line-strong); border-radius: 16px; background: var(--paper);
  padding: 26px 18px 10px; font-size: 16px; outline: none; color: var(--ink);
  transition: border-color .3s, box-shadow .3s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.field label {
  position: absolute; left: 19px; top: 18px; font-size: 16px; color: var(--muted); pointer-events: none;
  transform-origin: 0 0; transition: transform .35s var(--ease-out), color .3s;
}
.field input, .field textarea, .field select { border-color: #8A948C; } /* 3:1 so the box is easy to find */
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(24,94,47,.45); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { transform: translateY(-10px) scale(.76); color: var(--forest); font-weight: 500; }
.field select { padding-right: 44px; cursor: pointer; }
.field--select::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.6px solid var(--ink-2); border-bottom: 1.6px solid var(--ink-2); transform: rotate(45deg); pointer-events: none;
}
.field.is-invalid input, .field.is-invalid textarea { border-color: #B3401F; }
.field__err { display: block; font-size: 13px; color: #B3401F; margin-top: 6px; min-height: 0; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.check input { position: absolute; opacity: 0; }
.check__box {
  flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-strong); background: var(--paper);
  display: grid; place-items: center; transition: background .3s, border-color .3s; margin-top: 1px;
}
.check__box svg { width: 16px; height: 16px; color: var(--cream); stroke-width: 2.4; stroke-dasharray: 26; stroke-dashoffset: 26; transition: stroke-dashoffset .4s var(--ease-out); }
.check input:checked + .check__box { background: var(--forest); border-color: var(--forest); }
.check input:checked + .check__box svg { stroke-dashoffset: 0; }
.check input:focus-visible + .check__box { outline: 2px solid var(--app-green); outline-offset: 2px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Form honeypot: off-screen for people and screen readers; bots fill it in. */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Brandmark (PNG mask so it can take any colour) ---------- */
.brandmark {
  display: inline-block; width: 30px; height: 30px; flex: none;
  background: currentColor;
  -webkit-mask: url(../assets/brand/brandmark.png) center / contain no-repeat;
  mask: url(../assets/brand/brandmark.png) center / contain no-repeat;
}
.brandmark--lg { width: 72px; height: 72px; }
.brandmark--xl { width: 96px; height: 96px; color: var(--forest); }
.brandmark--light { color: var(--cream); }

/* Transition + preloader initial states (set from the inline head script) */
.pt-in .pt__panel { transform: translateY(0); }
.pt-in .pt__mark { opacity: 1; }
html:not(.is-preloading) .preloader { display: none; }
.is-preloading body { overflow: hidden; }

/* Iconoir icons */
.ic { flex: none; }

/* Scan-to-download QR (desktop); phones get the store badges instead */
.qr { display: inline-flex; align-items: center; gap: 18px; padding: 14px 18px 14px 14px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-soft); text-align: left; }
.qr__code { width: 112px; height: 112px; padding: 8px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.qr__side { display: grid; gap: 10px; max-width: 200px; }
.qr__switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--sage); justify-self: start; }
.qr__switch button { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--forest); background: transparent; border: 0; cursor: pointer; }
.qr__switch button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgba(15,59,34,.18); }
.qr__hint { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.store-row.qr-fallback { display: none; }
@media (hover: none) and (pointer: coarse), (max-width: 720px) { .qr { display: none; } .store-row.qr-fallback { display: flex; } }

/* ---------- Gardenstead helper (mascot chat) ---------- */
.helper { position: fixed; right: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px); z-index: 300; font-family: var(--font-ui); }
.helper__launch { position: relative; display: block; width: 76px; height: 86px; padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 12px 18px rgba(15,59,34,.28)); transition: transform .5s var(--ease-out); }
.helper__launch img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.helper__launch:hover, .helper__launch:focus-visible { transform: translateY(-4px) rotate(-3deg); }
.helper__launch:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; border-radius: 16px; }
.helper__hello { position: absolute; right: 84px; bottom: 34px; white-space: nowrap; padding: 8px 13px; border-radius: 14px 14px 4px 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-soft); font-size: 13.5px; font-weight: 600; color: var(--forest-deep); opacity: 0; transform: translateX(8px); transition: opacity .4s, transform .5s var(--ease-out); pointer-events: none; }
.helper.is-waving .helper__hello, .helper__launch:hover .helper__hello { opacity: 1; transform: none; }
.helper.is-open .helper__hello { opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .helper.is-waving .helper__launch img { animation: helper-wave 1.1s ease-in-out 3; transform-origin: 50% 100%; } }
@keyframes helper-wave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-7deg); } 75% { transform: rotate(6deg); } }
.helper__panel { position: absolute; right: 0; bottom: 96px; width: min(380px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - 140px)); display: flex; flex-direction: column; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 70px -24px rgba(15,59,34,.45); overflow: hidden; }
.helper__panel[hidden] { display: none; }
.helper__head { display: grid; grid-template-columns: 44px 1fr 36px; gap: 12px; align-items: center; padding: 14px 14px 14px 16px; background: #FFF3D1; }
.helper__head img { width: 44px; height: 50px; object-fit: contain; }
.helper__head h2 { margin: 0; font-family: var(--font-display); font-size: 17px; letter-spacing: -0.01em; color: var(--forest-deep); }
.helper__head p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.35; color: var(--ink-2); }
.helper__close { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(15,59,34,.08); cursor: pointer; }
.helper__close span { position: absolute; left: 11px; top: 17px; width: 14px; height: 2px; background: var(--forest-deep); transform: rotate(45deg); }
.helper__close span + span { transform: rotate(-45deg); }
.helper__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.helper__msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; }
.helper__msg--bot { align-self: flex-start; background: #F3F6EF; color: var(--ink); border-bottom-left-radius: 4px; }
.helper__msg--me { align-self: flex-end; background: var(--forest); color: #fff; border-bottom-right-radius: 4px; }
.helper__msg a { color: var(--forest); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.helper__msg.is-thinking { color: var(--muted); font-style: italic; }
.helper__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.helper__chips:empty { display: none; }
.helper__chips button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-size: 13px; color: var(--forest-deep); cursor: pointer; }
.helper__chips button:hover { background: var(--sage); }
.helper__form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.helper__form input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font: inherit; font-size: 14.5px; }
.helper__form input:focus { outline: 2px solid var(--forest); outline-offset: 1px; }
.helper__form button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--forest); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.helper__form button svg { width: 18px; height: 18px; }
.helper__form button:disabled { opacity: .5; cursor: default; }
.helper__foot { margin: 0; padding: 0 16px 12px; font-size: 12.5px; color: var(--muted); }
.helper__foot a { color: var(--forest); }
@media (max-width: 560px) { .helper__launch { width: 62px; height: 70px; } .helper__panel { bottom: 80px; } .helper__hello { right: 68px; bottom: 26px; } }

.news-form:focus-within { box-shadow: 0 0 0 3px var(--sun); }
