/* Leaf & Bloom - the help and policy pages (contact.html, shipping.html, returns.html, privacy.html, terms.html, 404.html).
 * Redesigned 30 Sep 2026 to match the homepage's 29 Sep redesign. Linked only
 * from these pages, after the shared stylesheets, so these rules win ties.
 * Shared components (.pcard, .benefits, .acc, .swipe-row) live in base.css. */

/* == One help-page style, used by all six pages =============================
 *  The pages were a column of prose on the cream ground: a heading, then
 *  3-5 screens of paragraphs with nothing to hold on to. The owner's word
 *  for it was "pheeka". The wording is not touched - on these pages it is
 *  checked against the FAQ and the schema - so every change is presentation:
 *
 *    .help-hero    crumbs, heading and a row of key facts on one warm band
 *    .help-facts   the page's own figures, one card cut into equal cells
 *    .help-toc     the jump list as one swipeable row of chips on a phone
 *    .help-card    each section a card: an icon in a tinted circle, the
 *                  heading, a fading gold hairline, then the text
 *    .help-cta     the closing WhatsApp band as a deep-green card
 *    .help-links   404: the list of links as cards with icons
 *
 *  One left edge per page (30 Sep review): on the five policy pages the
 *  head band (crumbs, heading, facts), the jump chips and every card share
 *  the 860px reading column. The 404 has no prose, so its head, links and
 *  closing card all share the full .wrap instead.
 *  ------------------------------------------------------------------------ */

/* -- head ------------------------------------------------------------------ */
.help-hero {
  padding-bottom: var(--sp-5);
  background: linear-gradient(180deg,
              color-mix(in srgb, var(--c-surface-2) 62%, var(--c-bg)) 0%,
              var(--c-bg) 100%);
}
/*  The 404's band is the full page width, like its links below; the markup
 *  still says wrap--narrow so the 404 builder's copy stays valid. */
.help-hero--solo .wrap--narrow { max-width: var(--wrap); }
/*  base.css gives a crumb a 24px box; on a phone that is under the 40px
 *  floor. The negative margins keep the line and the text where they were. */
.help-hero .crumbs a {
  min-height: 40px;
  min-width: 40px;
  justify-content: center;
  margin-block: calc(var(--sp-2) * -1);
  margin-inline: -2px;
}
.help-hero .archive-head { padding-block: var(--sp-2) var(--sp-5); gap: var(--sp-3); }
.help-hero .archive-head .section-title { max-width: 16ch; }
.help-hero .archive-head__lede { font-size: var(--fs-body); line-height: var(--lh-body); }
.help-hero .eyebrow { margin-bottom: var(--sp-2); }
/*  A page with no facts row ends on its lede; the band's own bottom padding
 *  would only add a gap before the first card. */
.help-hero:not(:has(.help-facts)) { padding-bottom: 0; }
@media (min-width: 900px) {
  .help-hero .archive-head { column-gap: var(--sp-8); padding-block: var(--sp-3) var(--sp-6); }
}

/* -- key facts ------------------------------------------------------------- */
/*  One card, cut into cells by 1px gaps over a hairline-coloured ground, so
 *  every cell is the same size in every layout: a list of rows on a phone,
 *  2 x 2 from 600px, one row of four from 900px. The value is the focal
 *  point, in the display face, as the homepage does with a price. */
.help-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--c-line);
  border: var(--card-edge);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.help-fact {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  align-items: center;
  column-gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-surface);
}
.help-fact__v {
  font-family: var(--ff-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: var(--lh-flat);
  letter-spacing: var(--ls-display);
  color: var(--c-heading-deep);
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}
.help-fact__k {
  font-size: calc(var(--fs-body) - 1px);
  line-height: var(--lh-snug);
  color: var(--c-text-soft);
}
@media (min-width: 600px) {
  .help-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
  .help-fact {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    row-gap: var(--sp-2);
    padding: var(--sp-4) var(--sp-5);
  }
  .help-fact__v { font-size: var(--fs-h2); }
}
@media (min-width: 900px) {
  .help-facts { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  .help-facts:has(> :nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .help-facts:not(:has(> :nth-child(4))) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /*  Four cells to a row: the value steps down with the viewport and may
   *  wrap, so a long one can never run into the cell's edge. */
  .help-fact__v { font-size: clamp(1.6rem, 2.6vw, 2.4rem); white-space: normal; }
}

/* -- contents strip -------------------------------------------------------- */
/*  Three rows of wrapped chips on a phone became one row that swipes, out
 *  to the screen edges, with the next chip peeking in. From 768px it wraps
 *  again. The chips grow to 40px, the phone tap-target floor. */
.help-toc .jumpto {
  flex-wrap: nowrap;
  gap: var(--sp-3);
  margin: var(--sp-2) 0 0;
  padding: 0;
  border-top: 0;
}
.help-toc .jumpto__label { flex: none; }
.help-toc .jumpto ul { flex-wrap: nowrap; gap: var(--sp-2); }
.help-toc .jumpto a {
  min-height: 40px;
  white-space: nowrap;
  background: var(--c-surface);
  border-color: color-mix(in srgb, var(--c-gold) 35%, var(--c-line));
  color: var(--c-heading-deep);
  font-weight: 500;
}
.help-toc .jumpto a:hover { background: var(--c-tint); }
@media (max-width: 767px) {
  .help-toc .jumpto ul {
    overflow-x: auto;
    margin-right: calc(var(--gutter) * -1);
    padding: var(--sp-1) var(--gutter) var(--sp-1) 0;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .help-toc .jumpto ul::-webkit-scrollbar { display: none; }
  .help-toc .jumpto li { flex: none; scroll-snap-align: start; }
}
@media (min-width: 768px) {
  .help-toc .jumpto { flex-wrap: wrap; }
  .help-toc .jumpto ul { flex-wrap: wrap; }
}

/* -- section cards --------------------------------------------------------- */
.help-sec { padding-block: var(--sp-2); }
.help-toc + .help-sec,
.help-hero + .help-sec { padding-top: var(--sp-4); }
.help-sec:has(+ .help-cta) { padding-bottom: var(--sp-2); }

.help-card {
  padding: var(--sp-4) var(--sp-4) var(--sp-5);
  background: var(--c-surface);
  border: var(--card-edge);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}
.help-card__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
}
.help-card__head::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--g-gold);
}
.help-card__head .section-title {
  margin: 0;
  font-size: var(--fs-h2-sm);
  line-height: var(--lh-snug);
}

/*  The homepage's icon: green tint, a thin gold ring, a forest glyph. */
.help-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-tint);
  color: var(--c-accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-gold) 40%, transparent);
}
.help-ico svg { width: 20px; height: 20px; }

/*  The text inside a card. Each question starts a block of its own under a
 *  hairline, so a card of three questions reads as three answers, not one
 *  wall. */
.help-card .policy { font-size: calc(var(--fs-body) - 1px); line-height: var(--lh-copy); }
.help-card .policy > * + * { margin-top: var(--sp-3); }
.help-card .policy > h3 {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-h4);
  line-height: var(--lh-snug);
  color: var(--c-heading-deep);
}
.help-card .policy > h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.help-card .policy > h3 + * { margin-top: var(--sp-2); }
.help-card .policy p { max-width: 68ch; }

/*  A list is a set of terms, so it gets a panel of its own. */
.help-card .policy ul {
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--c-tint) 55%, transparent);
}
.help-card .policy li::before { top: .6em; }
.help-card .policy .btn { min-height: 48px; }
@media (max-width: 599px) {
  .help-card .policy .btn { width: 100%; }
}
.help-card .policy-stamp {
  max-width: none;
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
}
/*  base.css gives a section that follows another section 55% of the full
 *  section gap on top, and it outranks .help-sec. Between two cards that is
 *  dead space, so it is matched here at the same weight and set back to the
 *  card gap: about 8px of page between one card and the next on a phone. */
.section.help-sec + .section.help-sec:not([class*="--tint"]):not([class*="--warm"]):not([class*="--brand"]) {
  padding-top: var(--sp-2);
}
@media (max-width: 767px) {
  .help-sec { padding-block: var(--sp-1); }
  .section.help-sec + .section.help-sec:not([class*="--tint"]):not([class*="--warm"]):not([class*="--brand"]) {
    padding-top: var(--sp-1);
  }
  .help-toc + .help-sec,
  .help-hero + .help-sec { padding-top: var(--sp-3); }
  .help-card { padding-bottom: var(--sp-4); }
  .help-card__head { margin-bottom: var(--sp-3); }
  .help-card .policy > h3 { margin-top: var(--sp-3); padding-top: var(--sp-3); }
  .help-hero { padding-bottom: var(--sp-4); }
  .help-hero .archive-head { padding-bottom: var(--sp-4); }
}

@media (min-width: 768px) {
  .help-sec { padding-block: var(--sp-3); }
  .section.help-sec + .section.help-sec:not([class*="--tint"]):not([class*="--warm"]):not([class*="--brand"]) {
    padding-top: var(--sp-3);
  }
  .help-card { padding: var(--sp-6) var(--sp-7); }
  .help-card .policy { font-size: var(--fs-body); line-height: var(--lh-body); }
  .help-card .policy > h3 { margin-top: var(--sp-5); padding-top: var(--sp-5); font-size: var(--fs-h3); }
  .help-card .policy-stamp { margin-top: var(--sp-5); padding-top: var(--sp-4); }
  .help-card__head { gap: var(--sp-4); margin-bottom: var(--sp-5); }
}

/* -- closing band ---------------------------------------------------------- */
/*  It sat straight on the footer as a second slab of green. Now the band is
 *  the page ground and the green is a card inside it, on the same deep
 *  ground as the footer (--g-ground does not invert), with the footer's
 *  bright-gold hairline. Text and ring colours are the footer's own pairs. */
.help-cta.section--brand {
  background: transparent;
  color: var(--c-text);
  padding-block: var(--sp-5) var(--sp-8);
}
.help-cta__card {
  --c-focus: var(--c-gold-bright);
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--sp-3) var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--card-radius);
  background: linear-gradient(160deg, var(--c-ground-2) 0%, var(--c-ground) 100%);
  color: var(--c-on-dark);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.help-cta__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--g-gold-bright);
}
.help-cta__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  color: var(--c-gold-bright);
  background: color-mix(in srgb, var(--c-gold-bright) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-gold-bright) 55%, transparent);
}
.help-cta__icon svg { width: 26px; height: 26px; }
.help-cta__text .section-title {
  font-size: var(--fs-h2-sm);
  line-height: var(--lh-snug);
  color: var(--c-on-dark);
}
.help-cta__text p {
  margin-top: var(--sp-2);
  color: var(--c-on-dark);
  opacity: .88;
}
.help-cta__act { grid-column: 1 / -1; margin: 0; }
/*  Phone: the icon sits beside the heading only; the sentence and the
 *  button take the card's full width instead of a column beside the icon. */
@media (max-width: 767px) {
  .help-cta.section--brand { padding-block: var(--sp-4) var(--sp-6); }
  .help-cta__text { display: contents; }
  .help-cta__text p { grid-column: 1 / -1; margin-top: 0; }
  .help-cta__act { margin-top: var(--sp-2); }
  .help-cta__icon { width: 48px; height: 48px; }
}
.help-cta__act .btn { width: 100%; min-height: 48px; }
/*  The homepage's closing band uses the bright-gold button on green; so
 *  does this one. --c-on-gold is the text colour paired with that gold. */
.help-cta__act .btn--primary {
  background: var(--c-gold-bright);
  border-color: var(--c-gold-bright);
  color: var(--c-on-gold);
}
.help-cta__act .btn--primary:hover {
  background: color-mix(in srgb, var(--c-gold-bright) 80%, var(--c-on-dark));
  border-color: color-mix(in srgb, var(--c-gold-bright) 80%, var(--c-on-dark));
  color: var(--c-on-gold);
}
@media (min-width: 768px) {
  .help-cta__card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: var(--sp-5);
    padding: var(--sp-6) var(--sp-7);
  }
  .help-cta__act { grid-column: auto; }
  .help-cta__act .btn { width: auto; }
}

/* -- contact: the four ways to reach us ----------------------------------- */
/*  One card cut into equal cells, the same construction as .help-facts: rows
 *  on a phone, 2 x 2 from 600px. Each cell leads with its own icon. */
.help-card .help-ways {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin-inline: calc(var(--sp-4) * -1);
  background: var(--c-line);
}
.help-card .help-ways > * + * { margin-top: 0; }
.help-way {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  column-gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--c-surface);
}
.help-way > :not(.help-way__ico) { grid-column: 2; }
.help-way > * + * { margin-top: var(--sp-1); }
.help-way > p + p { margin-top: var(--sp-3); }
.help-way__ico {
  grid-row: 1 / span 3;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-tint);
  color: var(--c-accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-gold) 40%, transparent);
}
.help-way__ico svg { width: 20px; height: 20px; }
.help-card .help-way h3 {
  align-self: center;
  min-height: 44px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: var(--fs-h4);
  color: var(--c-heading-deep);
}
/*  A 40px tap area that does not stretch the line: the padding grows the
 *  box, the negative margin gives the space back, so the phone number in
 *  the middle of a sentence keeps the sentence's line spacing. */
.help-card .help-way a:not(.btn) {
  display: inline-block;
  padding-block: 9px;
  margin-block: -9px;
  line-height: 22px;
  background-position: 0 calc(100% - 8px);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.help-way .btn { width: 100%; }
@media (min-width: 600px) {
  .help-card .help-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-way .btn { width: auto; }
}
@media (min-width: 768px) {
  .help-card .help-ways { margin-inline: calc(var(--sp-7) * -1); }
  .help-way { padding: var(--sp-5) var(--sp-7); }
}
/*  The four social accounts under "Where we are": 44px pills with the
 *  footer's glyphs, two to a row on a phone, one row of four from 600px. */
.help-card .policy .help-social {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  padding: 0;
  background: none;
  border-radius: 0;
  list-style: none;
}
.help-card .policy .help-social li { padding: 0; }
.help-card .policy .help-social li::before { content: none; }
.help-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 0 var(--sp-3);
  border: 1px solid color-mix(in srgb, var(--c-gold) 35%, var(--c-line));
  border-radius: var(--r-pill);
  background: var(--c-surface);
  color: var(--c-heading-deep);
  font-weight: 500;
  text-decoration: none;
  transition: background var(--dur-2) var(--ease-settle), border-color var(--dur-2) var(--ease-settle);
}
.help-social a:hover { background: var(--c-tint); border-color: var(--card-edge-hover); }
.help-social svg { flex: none; width: 18px; height: 18px; color: var(--c-accent); }
@media (min-width: 600px) {
  .help-card .policy .help-social { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/*  The last cell closes the card flush with its rounded bottom edge. */
.help-card:has(.help-ways) { padding-bottom: 0; overflow: hidden; }

/* -- 404: where you probably wanted to go --------------------------------- */
.help-hero--solo { padding-top: var(--sp-5); }
/*  The 404 has no prose to keep to a reading measure, so its links and its
 *  closing card run the full page width under the full-width head. */
.help-hero--solo ~ .help-sec .wrap--narrow,
.help-hero--solo ~ .help-cta .wrap--narrow { max-width: var(--wrap); }
.help-links__title {
  margin-bottom: var(--sp-4);
  font-size: var(--fs-h2-sm);
}
.help-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.help-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  height: 100%;
  min-height: 64px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-surface);
  border: var(--card-edge);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  color: var(--c-heading-deep);
  text-decoration: none;
  transition: border-color var(--dur-2) var(--ease-settle),
              transform var(--dur-2) var(--ease-settle);
}
.help-link:hover { border-color: var(--card-edge-hover); transform: translateY(-2px); }
.help-link__t {
  flex: 1 1 auto;
  display: grid;
  gap: 2px;
  font-family: var(--ff-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: var(--lh-snug);
}
.help-link__k {
  font-family: var(--ff-sans);
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--c-text-soft);
}
.help-link__go {
  flex: none;
  width: 18px; height: 18px;
  color: var(--c-gold-ink);
  transition: transform var(--dur-2) var(--ease-settle);
}
.help-link:hover .help-link__go { transform: translateX(3px); }
/*  Seven equal cards (30 Sep review: the home card no longer spans a row
 *  alone). From 600px they wrap as a centred flex row, every card the same
 *  width: 2 + 2 + 2 + 1, then 4 + 3 from 900px. */
@media (min-width: 600px) {
  .help-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-3);
  }
  .help-links > li { flex: 0 0 calc((100% - var(--sp-3)) / 2); }
  /*  Side by side, a card with a sub-line and one without keep their titles
   *  on one line: everything hangs from the top, and the title is nudged
   *  down to the icon's middle. */
  .help-link { align-items: flex-start; }
  .help-link { min-height: 80px; }
  .help-link__t { padding-top: 10px; }
  .help-link__go { margin-top: 13px; }
}
@media (min-width: 900px) {
  .help-links > li { flex-basis: calc((100% - 3 * var(--sp-3)) / 4); }
}
@media (prefers-reduced-motion: reduce) {
  .help-link:hover, .help-link:hover .help-link__go { transform: none; }
}
