/*
  Larkmoss: flower shop website (Screenery template)
  1. Tokens: a pale sage ground, moss ink, petal pink and clay. No cream. Bellefair for display, Questrial for text.
  2. Panels: every section is a .panel that sits on an organic blob (an SVG drawn by script.js; a soft border-radius without JS).
  3. Components: stem list, bouquet stage and picker, plan chooser, postcode map, workshop stem-line, basket and checkout, accordions.
*/

:root {
  /* Colour */
  --sage-50: #eef2ea;
  --sage-100: #e1e8da;   /* page ground */
  --sage-200: #cfdac6;
  --sage-300: #b7c6ac;
  --sage-400: #a9bba6;
  --moss-500: #6f8a5e;
  --moss-600: #56704b;
  --moss-700: #3d5236;
  --moss-900: #24321f;   /* ink */
  --ink-soft: #435140;   /* secondary text on light grounds */
  --petal-100: #f5e3df;
  --petal-200: #efcfc9;
  --petal-300: #e6b2ab;
  --rose-700: #8f3640;   /* text-level pink */
  --clay-100: #f1ddcd;
  --clay-200: #ebcdb7;
  --clay-500: #b86e48;
  --clay-700: #84472a;
  --stone: #d8cfbf;
  --on-moss: #eef2ea;
  --on-moss-soft: #c9d6c0;
  --error: #9b2c2c;

  /* Type */
  --display: "Bellefair", "Iowan Old Style", Georgia, serif;
  --text: "Questrial", "Avenir Next", "Segoe UI", sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.4vw, 5.2rem);

  /* Space and shape */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 72px;
  --s-9: 112px;
  --gutter: clamp(16px, 4vw, 56px);
  --pad: clamp(28px, 6vw, 88px);
  --r-pill: 999px;
  --r-soft: 22px;
  --r-leaf: 28px 6px 28px 6px;
  --blob-radius: 64px 44px 72px 52px / 52px 70px 46px 64px;  /* no-JS panel shape */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 18px 40px -22px rgba(36, 50, 31, 0.45);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; scrollbar-color: var(--moss-600) var(--sage-100); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--sage-100);
  color: var(--moss-900);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: clip;
  caret-color: var(--clay-500);
  accent-color: var(--moss-700);
}
::selection { background: var(--petal-300); color: var(--moss-900); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--sage-100); }
::-webkit-scrollbar-thumb { background: var(--moss-600); border-radius: 12px; border: 3px solid var(--sage-100); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--clay-500); outline-offset: 3px; border-radius: 6px; }
.panel--moss :focus-visible { outline-color: var(--petal-300); }
img, svg { display: block; max-width: 100%; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.opt { color: var(--ink-soft); font-size: var(--step--1); }
[hidden] { display: none !important; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--moss-900); color: var(--on-moss); padding: 10px 16px; border-radius: var(--r-pill); }
.skip:focus { top: 12px; }

/* ---------- Buttons and chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border: 1.5px solid transparent; border-radius: var(--r-pill);
  font: inherit; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--moss { background: var(--moss-700); color: var(--on-moss); }
.btn--moss:hover { background: var(--moss-900); box-shadow: var(--shadow); }
.btn--petal { background: var(--petal-300); color: var(--moss-900); }
.btn--petal:hover { background: var(--petal-200); }
.btn--line { border-color: var(--moss-700); color: var(--moss-900); background: transparent; }
.btn--line:hover { background: rgba(61, 82, 54, .08); }
.btn--ghost { background: rgba(238, 242, 234, .08); color: var(--on-moss); border-color: rgba(238, 242, 234, .35); min-height: 44px; padding: 8px 18px; }
.btn--ghost:hover { background: rgba(238, 242, 234, .16); }
.btn--wide { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; }

.chip {
  min-height: 44px; padding: 8px 18px; border-radius: var(--r-pill);
  border: 1.5px solid var(--moss-600); background: transparent; color: var(--moss-900);
  font: inherit; font-size: .95rem; cursor: pointer; transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.chip:hover { background: rgba(61, 82, 54, .08); }
.chip[aria-pressed="true"] { background: var(--moss-700); border-color: var(--moss-700); color: var(--on-moss); }

/* ---------- The growing edge stem ---------- */
.edge-stem {
  position: fixed; left: max(6px, calc((100vw - 1440px) / 2 + 6px)); top: 0;
  width: 64px; height: 100vh; height: 100dvh;
  z-index: 0; pointer-events: none; overflow: visible;
}
.no-js .edge-stem { display: none; }
.edge-stem .vine { fill: none; stroke: var(--moss-700); stroke-width: 1.6; stroke-linecap: round; }
.edge-stem .vine-leaf { transform-box: fill-box; transform-origin: 0% 50%; transition: transform .9s var(--ease-out), opacity .9s var(--ease-out); }
.edge-stem .vine-leaf.is-hidden { transform: scale(0); opacity: 0; }
.edge-stem .vine-bud { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 1.1s var(--ease-out); }
.edge-stem .vine-bud.is-hidden { transform: scale(0); }
@media (max-width: 960px) { .edge-stem { left: auto; right: -14px; width: 44px; opacity: .8; } }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  padding: 12px var(--gutter);
  background: rgba(225, 232, 218, .92);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand__mark { width: 38px; height: 38px; }
.brand__name { font-family: var(--display); font-size: 1.7rem; letter-spacing: .02em; }
.site-nav { display: flex; align-items: center; gap: var(--s-5); }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-pill); text-decoration: none; font-size: .98rem; }
.site-nav ul a:hover { background: rgba(61, 82, 54, .09); }
.basket-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); background: var(--moss-700); color: var(--on-moss); text-decoration: none; }
.basket-link:hover { background: var(--moss-900); }
.basket-link__count { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--petal-300); color: var(--moss-900); display: inline-grid; place-items: center; font-size: .85rem; font-variant-numeric: tabular-nums; }
.basket-link.is-bump .basket-link__count { animation: bump .6s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-btn { display: none; }

@media (max-width: 1080px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
    border: 1.5px solid var(--moss-700); border-radius: var(--r-pill); background: transparent; color: var(--moss-900); font: inherit; cursor: pointer;
  }
  .site-nav {
    position: absolute; top: calc(100% + 6px); right: var(--gutter); left: var(--gutter);
    flex-direction: column; align-items: stretch; gap: var(--s-3);
    padding: var(--s-5); background: var(--sage-50);
    border-radius: 34px 18px 40px 22px / 24px 38px 20px 34px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility 0s linear .35s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { width: 100%; font-size: 1.1rem; }
  .basket-link { justify-content: center; }
  .no-js .site-head { flex-wrap: wrap; position: relative; }
  .no-js .menu-btn { display: none; }
  .no-js .site-nav { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; padding: var(--s-3); box-shadow: none; }
  .no-js .site-nav ul { flex-direction: row; flex-wrap: wrap; }
  .no-js .site-nav ul a { width: auto; }
}

/* ---------- Hero ---------- */
main { position: relative; z-index: 1; }
.hero {
  max-width: 1280px; margin: 0 auto; padding: clamp(24px, 5vw, 72px) var(--gutter) clamp(40px, 6vw, 96px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: center;
}
.hero h1 { font-size: var(--step-4); max-width: 13ch; }
.hero__lede { margin-top: var(--s-5); font-size: var(--step-1); max-width: 40ch; color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__facts { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; gap: var(--s-2); color: var(--ink-soft); }
.hero__facts li { display: flex; gap: 10px; align-items: flex-start; }
.hero__facts .ico { margin-top: 4px; color: var(--moss-700); }
.hero__art { margin: 0; }
.hero__svg { width: 100%; height: auto; overflow: visible; }
.hero__blob { fill: var(--petal-200); }
.hero__blob2 { fill: var(--sage-300); }

/* ---------- Panels: each section on an organic blob ---------- */
.panel {
  position: relative; isolation: isolate;
  max-width: 1320px; margin: 0 auto clamp(28px, 4vw, 56px);
  margin-inline: max(8px, min(3vw, 48px));
  border-radius: var(--blob-radius);
}
@media (min-width: 1400px) { .panel { margin-inline: auto; } }
.panel__inner { position: relative; max-width: 1180px; margin: 0 auto; padding: var(--pad) clamp(20px, 5vw, 72px); }
.panel__blob { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; pointer-events: none; }
.panel--mist { background: var(--sage-50); }
.panel--petal { background: var(--petal-100); }
.panel--clay { background: var(--clay-100); }
.panel--moss { background: var(--moss-900); color: var(--on-moss); }
.has-blobs .panel { background: transparent; border-radius: 0; }
.panel--mist .panel__blob path { fill: var(--sage-50); }
.panel--petal .panel__blob path { fill: var(--petal-100); }
.panel--clay .panel__blob path { fill: var(--clay-100); }
.panel--moss .panel__blob path { fill: var(--moss-900); }

.section-head { max-width: 62ch; margin-bottom: clamp(24px, 4vw, 48px); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { margin-top: var(--s-4); color: var(--ink-soft); max-width: 60ch; }
.section-head--light p { color: var(--on-moss-soft); }

/* ---------- This week's stems ---------- */
.filter { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.stem-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 5vw, 72px); }
.stem {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "art text price" "art text avail";
  column-gap: var(--s-4); align-items: start;
  padding: var(--s-5) 0; border-bottom: 1px solid var(--sage-300);
  transition: opacity .4s var(--ease-out);
}
.stem__art { grid-area: art; width: 64px; height: 64px; }
.stem__text { grid-area: text; min-width: 0; }
.stem h3 { font-size: 1.6rem; }
.stem__text p { color: var(--ink-soft); font-size: .98rem; margin-top: 2px; }
.stem__from { font-size: .88rem !important; letter-spacing: .02em; }
.stem__from::before { content: ""; display: inline-block; width: 14px; height: 7px; margin-right: 6px; border-radius: 10px 2px 10px 2px; background: var(--moss-500); vertical-align: 1px; }
.stem__price { grid-area: price; text-align: right; font-size: .88rem; color: var(--ink-soft); white-space: nowrap; }
.stem__price span { display: block; font-family: var(--display); font-size: 1.5rem; color: var(--moss-900); font-variant-numeric: tabular-nums; line-height: 1.1; }
.avail { grid-area: avail; justify-self: end; margin-top: 6px; padding: 3px 12px; border-radius: var(--r-pill); font-size: .85rem; white-space: nowrap; }
.avail--plenty { background: var(--sage-200); color: var(--moss-900); }
.avail--some { background: var(--clay-200); color: var(--moss-900); }
.avail--few { background: var(--petal-300); color: var(--moss-900); }
.avail--out { background: transparent; border: 1px dashed var(--ink-soft); color: var(--ink-soft); }
.stem.is-out .stem__art { opacity: .5; }
.stem.is-filtered { display: none; }
.filter-empty { padding: var(--s-6) 0; color: var(--ink-soft); }

/* ---------- Bouquet builder ---------- */
.builder__grid {
  display: grid; gap: clamp(24px, 3vw, 44px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, .8fr);
  grid-template-areas: "stage controls receipt";
  align-items: start;
}
.stage { grid-area: stage; position: sticky; top: 96px; }
.controls { grid-area: controls; display: grid; gap: var(--s-6); }
.receipt { grid-area: receipt; display: grid; gap: var(--s-5); }
.stage__svg { width: 100%; height: auto; overflow: visible; }
.stage__ground { fill: var(--moss-700); }
.wrap-back { fill: var(--wrap-dark, #56704b); transition: fill .6s var(--ease-out); stroke: var(--moss-900); stroke-width: 1.4; stroke-linejoin: round; }
.wrap-front { fill: var(--wrap, #6f8a5e); transition: fill .6s var(--ease-out); stroke: var(--moss-900); stroke-width: 1.4; stroke-linejoin: round; }
.wrap-fold { stroke: rgba(36, 50, 31, .35); stroke-width: 1.2; }
.ribbon { fill: var(--petal-100); stroke: var(--moss-900); stroke-width: 1.2; stroke-linejoin: round; }
.ribbon path[fill="none"] { stroke: var(--petal-100); }
.stem-line { fill: none; stroke: #2d3f27; stroke-width: 2.2; stroke-linecap: round; }
.stage .stem-g {
  transform-box: view-box; transform-origin: 200px 330px; transform: rotate(var(--a, 0deg));
  transition: transform .9s var(--ease-out), opacity .5s var(--ease-out);
}
.stage .stem-g.is-entering { opacity: 0; transform: rotate(var(--a, 0deg)) scale(.55); }
.stage .stem-g.is-leaving { opacity: 0; transform: rotate(var(--a, 0deg)) scale(.6); }
.stage .stem-head { transition: transform .9s var(--ease-out); transform-box: fill-box; transform-origin: 50% 50%; }
.stage.is-empty .stage__hint { opacity: 1; }
.stage__hint { fill: var(--on-moss); font-family: var(--display); font-size: 22px; opacity: 0; transition: opacity .4s; }
.tally { display: flex; justify-content: center; align-items: baseline; gap: var(--s-4); margin-top: var(--s-2); }
.tally__price { font-family: var(--display); font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.tally__count { color: var(--on-moss-soft); }

.controls fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.controls legend { font-family: var(--display); font-size: 1.6rem; margin-bottom: var(--s-3); display: flex; justify-content: space-between; width: 100%; align-items: baseline; gap: var(--s-3); }
.picker__hint { font-family: var(--text); font-size: .9rem; color: var(--on-moss-soft); }
.picker__hint.is-warn { color: var(--petal-300); }
.wraps__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
.wrap-opt { position: relative; display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 12px; min-height: 56px; border-radius: 18px 8px 18px 8px; border: 1.5px solid rgba(238, 242, 234, .25); cursor: pointer; transition: border-color .3s, background-color .3s; }
.wrap-opt:hover { border-color: rgba(238, 242, 234, .55); }
.wrap-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wrap-opt__swatch { grid-row: 1 / 3; width: 30px; height: 30px; background: var(--sw); border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; border: 1.5px solid var(--on-moss); }
.wrap-opt__name { font-size: .98rem; line-height: 1.2; }
.wrap-opt__price { font-size: .82rem; color: var(--on-moss-soft); }
.wrap-opt:has(input:checked) { border-color: var(--petal-300); background: rgba(230, 178, 171, .12); }
.wrap-opt:has(input:focus-visible) { outline: 3px solid var(--petal-300); outline-offset: 2px; }

.picker__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pick { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); padding: 6px 0; border-bottom: 1px solid rgba(238, 242, 234, .14); }
.pick__art { width: 40px; height: 40px; }
.pick__name { line-height: 1.2; }
.pick__name small { display: block; color: var(--on-moss-soft); font-size: .84rem; font-variant-numeric: tabular-nums; }
.pick.is-out .pick__art, .pick.is-out .pick__name { opacity: .6; }
.stepper { display: inline-flex; align-items: center; gap: 2px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(238, 242, 234, .4); background: transparent; color: var(--on-moss); display: grid; place-items: center; cursor: pointer; transition: background-color .25s, border-color .25s; }
.stepper button:hover:not([disabled]) { background: rgba(238, 242, 234, .12); border-color: var(--on-moss); }
.stepper button[disabled] { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; font-size: 1.1rem; }
.picker__tools { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.noscript-note { color: var(--on-moss-soft); }

.card-msg { display: grid; gap: 6px; }
.card-msg label { font-family: var(--display); font-size: 1.35rem; }
.card-msg label .opt { color: var(--on-moss-soft); font-family: var(--text); }
.card-msg textarea, .card-msg input {
  width: 100%; font: inherit; color: var(--moss-900); background: var(--sage-50);
  border: 1.5px solid transparent; border-radius: 18px 8px 18px 8px; padding: 12px 14px; resize: vertical; min-height: 48px;
}
.card-msg textarea::placeholder, .card-msg input::placeholder { color: #5b6957; }
.card-msg__count { font-size: .85rem; color: var(--on-moss-soft); font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.card-msg__count.is-low { color: var(--petal-300); }

.tag { position: relative; margin: 0; padding: 34px 34px 30px; min-height: 180px; display: grid; align-content: center; gap: 8px; color: var(--moss-900); transform: rotate(-2deg); }
.tag__shape { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.tag__shape path { fill: var(--sage-50); stroke: var(--sage-300); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.tag__text { margin: 0; font-family: var(--display); font-size: 1.3rem; line-height: 1.3; color: var(--moss-700); overflow-wrap: anywhere; }
.tag__text.is-placeholder { color: #5b6957; }
.tag__from { font-size: .95rem; color: var(--ink-soft); text-align: right; padding-right: 14px; }
.receipt .sum { color: var(--on-moss); }
.receipt .sum dt { color: var(--on-moss-soft); }
.receipt .sum div { border-color: rgba(238, 242, 234, .2); }
.builder__note { min-height: 1.6em; color: var(--petal-300); font-size: .95rem; }

/* Summary lists used across the page */
.sum { margin: 0; display: grid; }
.sum div { display: flex; justify-content: space-between; gap: var(--s-4); padding: 8px 0; border-bottom: 1px solid var(--sage-300); }
.sum dt { color: var(--ink-soft); }
.sum dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.sum .sum__total { border-bottom: 0; padding-top: 12px; }
.sum .sum__total dt, .sum .sum__total dd { font-family: var(--display); font-size: 1.6rem; color: inherit; }

/* ---------- Subscriptions ---------- */
.plan { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.plan__choices { display: grid; gap: var(--s-6); }
.plan fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.plan legend, .checkout legend { font-family: var(--display); font-size: 1.6rem; margin-bottom: var(--s-3); }
.seg { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.seg legend { width: 100%; }
.seg label { position: relative; flex: 1 1 140px; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 8px 18px; border-radius: 26px 10px 26px 10px; border: 1.5px solid var(--moss-600); text-align: center; line-height: 1.25; cursor: pointer; transition: background-color .3s var(--ease-out), color .3s var(--ease-out); }
.seg small { font-size: .82rem; color: var(--ink-soft); }
.seg label:hover span { background: rgba(61, 82, 54, .07); }
.seg input:checked + span { background: var(--moss-700); color: var(--on-moss); border-color: var(--moss-700); }
.seg input:checked + span small { color: var(--on-moss-soft); }
.seg input:focus-visible + span { outline: 3px solid var(--clay-500); outline-offset: 3px; }
.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.sizes legend { grid-column: 1 / -1; }
.size { position: relative; display: grid; justify-items: center; text-align: center; gap: 2px; padding: var(--s-4) var(--s-3) var(--s-5); border-radius: 48% 52% 44% 56% / 38% 40% 60% 62%; background: rgba(255, 255, 255, .38); border: 1.5px solid transparent; cursor: pointer; transition: background-color .3s, border-color .3s; }
.size:hover { background: rgba(255, 255, 255, .6); }
.size input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.size svg { width: 72px; height: 72px; }
.sz-stem { fill: none; stroke: var(--moss-900); stroke-width: 1.5; stroke-linecap: round; }
.sz-a { fill: var(--petal-300); stroke: var(--moss-900); stroke-width: 1.2; }
.sz-b { fill: var(--clay-500); stroke: var(--moss-900); stroke-width: 1.2; }
.sz-c { fill: var(--sage-400); stroke: var(--moss-900); stroke-width: 1.2; }
.size__name { font-family: var(--display); font-size: 1.45rem; }
.size__desc { font-size: .86rem; color: var(--ink-soft); line-height: 1.3; max-width: 18ch; }
.size__price { font-variant-numeric: tabular-nums; margin-top: 4px; }
.size:has(input:checked) { border-color: var(--moss-700); background: var(--sage-50); }
.size:has(input:focus-visible) { outline: 3px solid var(--clay-500); outline-offset: 3px; }
.plan__sum { display: grid; gap: var(--s-4); padding: clamp(24px, 3vw, 36px); background: var(--sage-50); border-radius: 44px 22px 52px 26px / 30px 48px 26px 44px; box-shadow: var(--shadow); }
.plan__title { font-size: var(--step-2); }
.plan__save { color: var(--rose-700); }
.plan__first { padding: var(--s-4) 0 0; }
.plan__first strong { font-weight: 400; font-family: var(--display); font-size: 1.4rem; }
.plan__cutoff { color: var(--ink-soft); font-size: .95rem; }
.plan__dates { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.plan__dates li { padding: 4px 12px; border-radius: var(--r-pill); background: var(--sage-200); font-size: .88rem; font-variant-numeric: tabular-nums; }
.plan__closed { margin-top: var(--s-3); font-size: .9rem; color: var(--ink-soft); }
.plan__note { min-height: 1.5em; color: var(--moss-700); font-size: .95rem; }

/* ---------- Delivery ---------- */
.delivery__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.pc-form label { display: block; font-family: var(--display); font-size: 1.4rem; margin-bottom: 6px; }
.pc-form__row { display: flex; gap: var(--s-2); }
.pc-form__row input { flex: 1; min-width: 0; }
input[type="text"], input[type="email"], input[type="tel"], select {
  font: inherit; color: var(--moss-900); background: #fff; min-height: 52px; padding: 10px 16px;
  border: 1.5px solid var(--sage-300); border-radius: 18px 8px 18px 8px;
  transition: border-color .25s, box-shadow .25s;
}
input:hover, select:hover { border-color: var(--moss-500); }
input:focus, select:focus { outline: none; border-color: var(--moss-700); box-shadow: 0 0 0 3px rgba(111, 138, 94, .35); }
input::placeholder { color: #5f6c5b; }
.pc-form input { text-transform: uppercase; letter-spacing: .06em; }
.pc-form input::placeholder { letter-spacing: .06em; }
.field-msg { min-height: 1.5em; margin-top: 6px; font-size: .92rem; color: var(--ink-soft); }
.field-msg.is-error { color: var(--error); }
.field-msg.is-ok { color: var(--moss-700); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--error); }
.pc-result { margin-top: var(--s-4); padding: var(--s-5); border-radius: 30px 12px 34px 14px / 20px 32px 16px 30px; background: var(--sage-200); }
.pc-result h3 { font-size: 1.6rem; }
.pc-result p { margin-top: 4px; }
.pc-result--out { background: var(--petal-100); }
.zones-key { margin: var(--s-6) 0 0; display: grid; gap: var(--s-2); }
.zk { display: grid; grid-template-columns: 22px 1fr; column-gap: var(--s-3); align-items: start; }
.zk::before { content: ""; grid-row: 1 / 3; width: 22px; height: 22px; margin-top: 3px; border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; border: 1.5px solid var(--moss-900); }
.zk--1::before { background: var(--moss-500); }
.zk--2::before { background: var(--sage-300); }
.zk--3::before { background: var(--sage-100); }
.zk dt { font-weight: 400; }
.zk dd { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.map { margin: 0; }
.map svg { width: 100%; height: auto; }
.map__land { fill: var(--sage-100); }
.zone { stroke: var(--moss-900); stroke-width: 1.3; transition: fill .5s var(--ease-out); }
.zone--3 { fill: #d3dcc9; stroke: none; }
.zone--2 { fill: var(--sage-300); }
.zone--1 { fill: var(--moss-500); }
.zone.is-hit.zone--3 { fill: var(--petal-200); }
.zone.is-hit.zone--2 { fill: var(--petal-300); }
.zone.is-hit.zone--1 { fill: #d9918a; }
.map__river { fill: none; stroke: #8fa9b3; stroke-width: 9; stroke-linecap: round; opacity: .9; }
.map__edge { fill: none; stroke: var(--moss-900); stroke-width: 1.6; }
.map__labels text { font-family: var(--text); font-size: 15px; fill: var(--moss-900); text-anchor: middle; transition: fill .3s; }
.map__labels text.is-hit { font-size: 19px; fill: var(--moss-900); font-weight: 700; text-decoration: underline; }
.map__shop circle { fill: var(--petal-300); stroke: var(--moss-900); stroke-width: 1.5; }
.map__shop path { stroke: var(--moss-900); stroke-width: 1.4; stroke-linecap: round; }
.map__shop-label { font-family: var(--display); font-size: 18px; fill: var(--sage-50); paint-order: stroke; stroke: var(--moss-900); stroke-width: 4px; }
.map figcaption { margin-top: var(--s-3); font-size: .92rem; color: var(--ink-soft); text-align: center; }

/* ---------- Workshops: a stem line with a leaf at every date ---------- */
.ws-list { list-style: none; margin: 0; padding: 0 0 0 clamp(28px, 4vw, 48px); position: relative; display: grid; gap: var(--s-3); }
.ws-list::before { content: ""; position: absolute; left: 10px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--moss-700); }
.ws {
  position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto auto; gap: var(--s-5); align-items: center;
  padding: var(--s-4) var(--s-5); border-radius: 40px 16px 40px 16px / 26px 30px 26px 30px; background: rgba(255, 255, 255, .42);
  transition: background-color .3s var(--ease-out);
}
.ws:hover { background: rgba(255, 255, 255, .62); }
.ws::before { content: ""; position: absolute; left: calc(-1 * clamp(28px, 4vw, 48px) + 6px); top: 50%; width: 26px; height: 13px; margin-top: -6px; border-radius: 14px 2px 14px 2px; background: var(--moss-500); border: 1.2px solid var(--moss-900); transform: rotate(-24deg); }
.ws--full::before { background: var(--clay-200); }
.ws__date { display: grid; justify-items: center; line-height: 1; text-align: center; }
.ws__day, .ws__mon { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--clay-700); }
.ws__num { font-family: var(--display); font-size: 2.4rem; line-height: 1; margin: 2px 0; font-variant-numeric: tabular-nums; }
.ws__body h3 { font-size: 1.5rem; }
.ws__body p { color: var(--ink-soft); font-size: .96rem; margin-top: 2px; }
.ws__meta { display: grid; justify-items: end; text-align: right; gap: 2px; }
.ws__price { font-family: var(--display); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.ws__spots { font-size: .88rem; color: var(--ink-soft); white-space: nowrap; }
.ws__spots--few { color: var(--rose-700); }
.ws__spots--full { color: var(--clay-700); white-space: normal; max-width: 18ch; }
.ws .btn { min-width: 150px; }
.ws.is-booked .btn { background: var(--sage-200); color: var(--moss-900); }

/* ---------- Order ---------- */
.order__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.basket { padding: clamp(20px, 3vw, 32px); background: var(--sage-100); border-radius: 36px 16px 44px 18px / 24px 38px 20px 36px; position: sticky; top: 96px; }
.basket__title { font-size: 1.8rem; margin-bottom: var(--s-3); }
.basket__empty { display: grid; justify-items: start; gap: var(--s-3); color: var(--ink-soft); }
.basket__empty svg { width: 120px; }
.basket__list { list-style: none; margin: 0; padding: 0; }
.b-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--sage-300); }
.b-item__name { font-family: var(--display); font-size: 1.3rem; line-height: 1.2; }
.b-item__desc { grid-column: 1 / 2; font-size: .9rem; color: var(--ink-soft); }
.b-item__price { font-variant-numeric: tabular-nums; text-align: right; }
.b-item__tools { grid-column: 1 / -1; display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.b-item__tools .stepper button { border-color: var(--moss-600); color: var(--moss-900); }
.b-item__tools .stepper button:hover:not([disabled]) { background: rgba(61, 82, 54, .1); border-color: var(--moss-700); }
.linkish { background: none; border: 0; padding: 0 4px; min-height: 44px; font: inherit; font-size: .92rem; color: var(--rose-700); text-decoration: underline; text-underline-offset: .22em; cursor: pointer; }
.basket__sum { margin-top: var(--s-3); }

.checkout { display: grid; gap: var(--s-5); }
.checkout fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-5); }
.field { display: grid; align-content: start; margin-bottom: var(--s-2); }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: .98rem; margin-bottom: 6px; }
.field input, .field select { width: 100%; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6L8 10.5 12.5 6' fill='none' stroke='%2324321f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 44px; cursor: pointer; }
.form-error { padding: var(--s-4) var(--s-5); border-radius: 24px 10px 24px 10px; background: var(--petal-100); color: var(--error); border: 1.5px solid #d9a3a3; }
.btn--send .btn__busy { display: none; align-items: center; gap: 10px; }
.btn--send .btn__busy svg { width: 20px; height: 20px; animation: spin 1s linear infinite; }
.btn--send.is-busy .btn__label { display: none; }
.btn--send.is-busy .btn__busy { display: inline-flex; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn--send .btn__busy svg { animation-duration: 3s; } }
.done { grid-column: 1 / -1; width: 100%; max-width: 720px; margin: 0 auto; display: grid; justify-items: start; gap: var(--s-4); padding: clamp(24px, 3vw, 40px); background: var(--sage-200); border-radius: 46px 20px 52px 24px / 30px 46px 26px 44px; }
.done:focus { outline: none; }
.done__art { width: 150px; }
.done h3 { font-size: var(--step-2); }
.done .sum { width: 100%; }

/* ---------- Care guide and questions ---------- */
.care__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.care__art { width: min(200px, 60%); margin-top: var(--s-6); }
.accordion { display: grid; gap: var(--s-2); }
.accordion details, .faq details { border-radius: 26px 10px 26px 10px; background: rgba(255, 255, 255, .45); transition: background-color .3s var(--ease-out); }
.accordion details[open] { background: rgba(255, 255, 255, .75); }
summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  min-height: 56px; padding: 12px 22px; cursor: pointer; font-family: var(--display); font-size: 1.35rem; line-height: 1.2;
}
summary::-webkit-details-marker { display: none; }
summary .ico { transition: transform .4s var(--ease-out); }
details[open] > summary .ico { transform: rotate(180deg); }
.acc__body, .faq details p { padding: 0 22px 20px; color: var(--ink-soft); max-width: 66ch; }
@media (prefers-reduced-motion: no-preference) {
  details::details-content { transition: content-visibility .4s allow-discrete, height .45s var(--ease-out); height: 0; overflow: clip; }
  details[open]::details-content { height: auto; }
  @supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }
}
.faq { max-width: 1180px; margin: 0 auto; padding: clamp(32px, 6vw, 80px) var(--gutter) clamp(48px, 7vw, 96px); }
.faq h2 { font-size: var(--step-3); margin-bottom: var(--s-6); }
.faq__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); align-items: start; }
.faq details { background: transparent; border: 1.5px solid var(--sage-300); }
.faq details[open] { background: var(--sage-50); border-color: transparent; }

/* ---------- Footer ---------- */
.foot { position: relative; z-index: 1; margin-top: var(--s-6); background: var(--moss-900); color: var(--on-moss); }
.foot__wave { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); width: 100%; height: 60px; }
.foot__wave path { fill: var(--moss-900); }
.foot__inner { max-width: 1180px; margin: 0 auto; padding: var(--s-8) var(--gutter) var(--s-6); display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: var(--s-7); }
.foot__name { font-family: var(--display); font-size: 2.4rem; line-height: 1; margin-bottom: var(--s-3); }
.foot__brand p { color: var(--on-moss-soft); }
.foot__brand a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-moss); }
.foot h2 { font-size: 1.5rem; margin-bottom: var(--s-3); }
.foot table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.foot th, .foot td { text-align: left; font-weight: 400; padding: 5px 0; border-bottom: 1px solid rgba(238, 242, 234, .14); color: var(--on-moss-soft); }
.foot td { text-align: right; }
.foot tr.is-today th, .foot tr.is-today td { color: var(--petal-300); }
.foot__nav ul { list-style: none; margin: 0; padding: 0; }
.foot__nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--on-moss); }
.foot__small { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter) var(--s-7); color: var(--on-moss-soft); font-size: .88rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 40; transform: translateX(-50%);
  max-width: min(440px, calc(100vw - 32px)); padding: 14px 22px; border-radius: 26px 10px 26px 10px;
  background: var(--moss-900); color: var(--on-moss); box-shadow: var(--shadow);
  animation: toast-in .5s var(--ease-out);
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Gentle scroll-driven arrival (content is visible by default) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stem, .ws, .accordion details { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    @keyframes settle { from { transform: translateY(14px); } to { transform: none; } }
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .builder__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "stage controls" "receipt controls"; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__art { max-width: 460px; margin: 0 auto; width: 100%; }
  .stem-list { grid-template-columns: 1fr; }
  .plan, .delivery__grid, .order__grid, .care__grid { grid-template-columns: 1fr; }
  .basket { position: static; }
  .ws { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .ws .btn { grid-column: 2 / -1; justify-self: start; }
  .faq__list { grid-template-columns: 1fr; }
  .foot__inner { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
  .care__art { display: none; }
}
@media (max-width: 760px) {
  .builder__grid { grid-template-columns: 1fr; grid-template-areas: "stage" "controls" "receipt"; }
  .stage { position: relative; top: auto; max-width: 420px; margin: 0 auto; width: 100%; }
}
@media (max-width: 560px) {
  :root { --pad: 36px; }
  .panel { margin-inline: 6px; }
  .panel__inner { padding: 48px 24px 52px; }
  .hero h1 { font-size: clamp(2.3rem, 10.5vw, 3rem); }
  .hero__actions .btn { flex: 1 1 100%; }
  .stem { grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: "art text" "art price" "art avail"; }
  .stem__art { width: 52px; height: 52px; }
  .stem__price { text-align: left; margin-top: 8px; }
  .stem__price span { display: inline; margin-right: 4px; }
  .avail { justify-self: start; }
  .wraps__row { grid-template-columns: 1fr 1fr; }
  .sizes { grid-template-columns: 1fr; }
  .size { grid-template-columns: 64px 1fr auto; justify-items: start; text-align: left; align-items: center; column-gap: var(--s-3); border-radius: 30px 12px 34px 14px / 22px 30px 18px 28px; padding: var(--s-3) var(--s-4); }
  .size svg { grid-row: 1 / 3; width: 60px; height: 60px; }
  .size__desc { grid-column: 2; max-width: none; }
  .size__price { grid-row: 1; grid-column: 3; }
  .seg label { flex: 1 1 100%; }
  .seg--days label, .seg--fulfil label { flex: 1 1 30%; }
  .field-group { grid-template-columns: 1fr; }
  .ws-list { padding-left: 30px; }
  .ws::before { left: -24px; }
  .ws { grid-template-columns: 54px minmax(0, 1fr); gap: var(--s-3) var(--s-4); padding: var(--s-4); }
  .ws__meta { grid-column: 2; justify-items: start; text-align: left; grid-template-columns: auto 1fr; align-items: baseline; gap: 10px; }
  .ws .btn { grid-column: 1 / -1; width: 100%; }
  .foot__inner { grid-template-columns: 1fr; gap: var(--s-6); }
  .pc-form__row { flex-wrap: wrap; }
  .pc-form__row .btn { flex: 1 1 100%; }
  summary { font-size: 1.2rem; padding: 12px 18px; }
}

/* Picker thumbnails sit on a pale pebble so dark line drawings read on moss */
.pick__art { background: var(--sage-50); border-radius: 58% 42% 52% 48% / 46% 56% 44% 54%; padding: 3px; }
@media (max-width: 560px) {
  .map__labels text { font-size: 19px; }
  .map__labels text.is-hit { font-size: 23px; }
  .map__shop-label { display: none; }
}
.no-js .picker__tools, .no-js [data-add-bouquet], .no-js .tally { display: none; }
@media (max-width: 560px) { .sum .sum__total dt, .sum .sum__total dd { font-size: 1.35rem; } }
