/* Leaf & Bloom - the FAQ page (faq.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.
 *
 * What changed, and why:
 *  - The head is shorter on a phone, so the first question is on screen.
 *  - "Jump to" chips match the help pages' .help-toc (label, words only)
 *    and swipe in one row on a phone. From 1024px they are a card in the
 *    sticky sidebar, one icon row per category.
 *  - Each category heading leads with the same icon in a solid forest circle,
 *    the homepage's "Before you order" cards' device.
 *  - "Still not sure?" is a deep green card with a gold hairline, the same
 *    closing card as the help pages, instead of a flat green slab that ran
 *    straight into the footer. */

/* -- head ----------------------------------------------------------------- */
/*  The help pages' head band (.help-hero in pg-policy.css, which this page
 *  does not load): crumbs, eyebrow, H1 and lede on one warm band that fades
 *  into the page ground. From 900px shop.css splits it, H1 left and lede
 *  right, as on contact, shipping, returns, privacy and terms. */
.faq-hero.help-hero {
  background: linear-gradient(180deg,
              color-mix(in srgb, var(--c-surface-2) 62%, var(--c-bg)) 0%,
              var(--c-bg) 100%);
}
/*  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. */
.faq-hero .crumbs a {
  min-height: 40px;
  min-width: 40px;
  justify-content: center;
  margin-block: calc(var(--sp-2) * -1);
  margin-inline: -2px;
}
.faq-hero .archive-head { padding-block: var(--sp-2) var(--sp-4); gap: var(--sp-3); }
.faq-hero .archive-head .section-title { max-width: 16ch; }
.faq-hero .archive-head__lede {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  text-wrap: pretty;            /* no lone "6pm." on the last line at 360 */
}
.faq-hero .eyebrow { margin-bottom: var(--sp-2); }
@media (min-width: 900px) {
  .faq-hero .archive-head { column-gap: var(--sp-8); padding-block: var(--sp-3) var(--sp-6); }
}

/* -- layout --------------------------------------------------------------- */
.faq-layout { gap: var(--sp-4); }
.faq-layout__groups > .faq-group:first-child { padding-top: var(--sp-2); }

/* -- jump chips (phone and tablet) ---------------------------------------- */
/*  One row. On a phone it swipes out to the screen edge with the next chip
 *  peeking; from 768px it wraps. Each chip is 40px tall, the tap floor. */
.faq-layout__nav.jumpto {
  flex-wrap: nowrap;
  gap: var(--sp-3);
  margin: 0;
  padding: 0;
  border-top: 0;
}
.faq-layout__nav .jumpto__label { flex: none; }
.faq-layout__nav ul { flex-wrap: nowrap; gap: var(--sp-2); min-width: 0; }
.faq-layout__side { min-width: 0; }
/*  The same chip as the help pages' .help-toc: ivory pill, gold-tinted
 *  border, words only, with the "Jump to" label in front. The icons in the
 *  markup are shown only in the 1024px sidebar card. */
.faq-layout__nav a {
  gap: var(--sp-2);
  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;
}
.faq-layout__nav a svg { display: none; }
.faq-layout__nav a:hover { background: var(--c-tint); }
@media (max-width: 767px) {
  .faq-layout__nav 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;
  }
  .faq-layout__nav ul::-webkit-scrollbar { display: none; }
  .faq-layout__nav li { flex: none; scroll-snap-align: start; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .faq-layout__nav.jumpto { flex-wrap: wrap; }
  .faq-layout__nav ul { flex-wrap: wrap; }
}

/* -- category heads ------------------------------------------------------- */
.faq-group__head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.faq-group__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-brand-fill);
  color: var(--c-on-brand);
}
.faq-group__icon svg { width: 22px; height: 22px; }
.faq-group__head .section-title {
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  margin: 0;
}
@media (min-width: 1024px) {
  .faq-group__head { gap: var(--sp-4); margin-bottom: var(--sp-5); }
  .faq-group__icon { width: 48px; height: 48px; }
  .faq-group__icon svg { width: 24px; height: 24px; }
  .faq-group__head .section-title { font-size: var(--fs-h2-sm); }
}

/* -- sidebar (1024px and up) ---------------------------------------------- */
@media (min-width: 1024px) {
  .faq-layout {
    grid-template-columns: 264px minmax(0, 1fr);
    gap: var(--sp-10);
  }
  .faq-layout__nav.jumpto {
    display: block;
    padding: var(--sp-4);
    background: var(--c-surface);
    border: var(--card-edge);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
  }
  .faq-layout__nav .jumpto__label {
    display: block;
    margin: 0 0 var(--sp-2) var(--sp-2);
  }
  .faq-layout__nav ul {
    flex-direction: column;
    gap: var(--sp-1);
    border-left: 0;
  }
  .faq-layout__nav li a {
    gap: var(--sp-3);
    min-height: 48px;
    margin: 0;
    padding: var(--sp-1) var(--sp-2);
    border: 0;
    border-radius: var(--r-md);
    background: none;
    font-size: var(--fs-body);
    white-space: normal;
  }
  .faq-layout__nav li a svg {
    display: block;
    flex: none;
    color: var(--c-accent);
    box-sizing: content-box;
    width: 18px; height: 18px;
    padding: 8px;
    border-radius: 50%;
    background: var(--c-tint);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-gold) 45%, transparent);
  }
  .faq-layout__nav li a:hover {
    background: var(--c-tint);
    color: var(--c-accent);
  }
  .faq-layout__nav li a:hover svg { background: var(--c-surface); }

  .faq-help {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: var(--sp-3);
    margin-top: var(--sp-4);
    padding: var(--sp-5);
    background: var(--g-warm);
    font-size: var(--fs-small);
    line-height: var(--lh-body);
  }
  .faq-help > :not(.faq-help__icon):not(.faq-help__title) { grid-column: 1 / -1; }
  .faq-help__icon {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--c-brand-fill);
    color: var(--c-on-brand);
  }
  .faq-help__icon svg { width: 20px; height: 20px; }
  .faq-help__title { margin: 0; font-size: var(--fs-h3); line-height: var(--lh-tight); }
  .faq-help p:not(.faq-help__title) { margin-top: var(--sp-3); }
  .faq-help .btn { width: 100%; min-height: 44px; font-size: var(--fs-small); }
}

/* -- closing card --------------------------------------------------------- */
/*  The band is the page ground; the green is a card inside it, on the same
 *  deep ground as the footer (it does not invert), with a bright-gold
 *  hairline. The same card closes the help pages. */
.faq-cta.section--brand {
  background: transparent;
  color: var(--c-text);
  padding-block: var(--sp-5) var(--sp-8);
}
.faq-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;
}
.faq-cta__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--g-gold-bright);
}
.faq-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);
}
.faq-cta__icon svg { width: 26px; height: 26px; }
.faq-cta__text .section-title {
  font-size: var(--fs-h2-sm);
  line-height: var(--lh-snug);
  color: var(--c-on-dark);
}
.faq-cta__text p {
  margin-top: var(--sp-2);
  color: var(--c-on-dark);
  opacity: .88;
  text-wrap: pretty;
}
.faq-cta__act { grid-column: 1 / -1; margin: 0; }
.faq-cta__act .btn { width: 100%; min-height: 48px; }
/*  The same closing CTA as the six help pages (.help-cta in pg-policy.css):
 *  the bright-gold button on green, with its paired --c-on-gold text. */
.faq-cta__act .btn--primary {
  background: var(--c-gold-bright);
  border-color: var(--c-gold-bright);
  color: var(--c-on-gold);
}
.faq-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 (max-width: 767px) {
  .faq-cta.section--brand { padding-block: var(--sp-4) var(--sp-6); }
  .faq-cta__text { display: contents; }
  .faq-cta__text p { grid-column: 1 / -1; margin-top: 0; }
  .faq-cta__act { margin-top: var(--sp-2); }
  .faq-cta__icon { width: 48px; height: 48px; }
}
/*  From 1024px the card lines up with the question column (sidebar 264px +
 *  the layout gap) instead of sitting centred under a two-column layout. */
@media (min-width: 1024px) {
  .faq-cta .wrap--narrow { max-width: var(--wrap); }
  .faq-cta__card { margin-left: calc(264px + var(--sp-10)); }
}
@media (min-width: 768px) {
  .faq-cta__card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: var(--sp-5);
    padding: var(--sp-6) var(--sp-7);
  }
  .faq-cta__act { grid-column: auto; }
  .faq-cta__act .btn { width: auto; }
}
