/* Pack Lightly Footer
   Brand tokens (design-engine/tokens.css, A1 locked):
     --plf-teal       #124F53
     --plf-teal-dark  #0d3a3d
     --plf-accent     #F29B07
     --plf-cream      #FCEACF
     --plf-mint       #E8F0EE
   Fonts: Bricolage Grotesque (display) / Poppins (ui) / Karla (body)
*/

/* === Auto-inject: hide Astra's default footer so only our footer shows === */
body.plf-active .site-footer,
body.plf-active #colophon {
  display: none !important;
}

/* ===== Scope ===== */
.plf-footer {
  --plf-teal: #124F53;
  --plf-teal-dark: #0d3a3d;
  --plf-accent: #F29B07;
  --plf-accent-hover: #d98a06;
  --plf-cream: #FCEACF;
  --plf-mint: #E8F0EE;
  --plf-ink: #1a1a1a;
  --plf-soft: #4B6C69;
  --plf-border: #d5e2df;
  --plf-line-dark: rgba(255,255,255,0.16);

  --plf-font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --plf-font-ui: 'Poppins', system-ui, sans-serif;
  --plf-font-body: 'Karla', Georgia, serif;

  --plf-max: 1280px;

  background: #fff;
  color: var(--plf-ink);
  font-family: var(--plf-font-body);
  font-size: 15px;
  line-height: 1.5;
}
.plf-footer * { box-sizing: border-box; }
/* The funnel band is an <ol>, so reset both or the theme's markers leak through. */
.plf-footer ul,
.plf-footer ol { list-style: none; margin: 0; padding: 0; }
.plf-footer a { color: inherit; text-decoration: none; }

/* ===== Zone 1: pre-footer CTA band ===== */
.plf-cta { background: var(--plf-cream); }
.plf-cta__inner {
  max-width: var(--plf-max);
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.plf-cta__heading {
  margin: 0;
  font-family: var(--plf-font-display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--plf-teal);
}
.plf-cta__sub {
  margin: 6px 0 0;
  font-size: 0.95rem;
  color: var(--plf-soft);
  max-width: 52ch;
}
.plf-cta__btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--plf-accent) !important;
  color: #fff !important;
  font-family: var(--plf-font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.plf-cta__btn:hover,
.plf-cta__btn:focus-visible {
  background: var(--plf-accent-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(242,155,7,0.40);
}
.plf-cta__spotlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-family: var(--plf-font-ui);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--plf-accent) !important;
  transition: gap 150ms ease;
}
.plf-cta__spotlight:hover,
.plf-cta__spotlight:focus-visible { gap: 10px; }

/* ===== Zone 1b: plan-in-3-steps funnel band ===== */
.plf-funnel {
  background: var(--plf-mint);
  border-bottom: 1px solid var(--plf-border);
}
.plf-funnel__inner {
  max-width: var(--plf-max);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.plf-funnel__heading {
  flex: none;
  margin: 0;
  font-family: var(--plf-font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--plf-teal);
}
.plf-funnel__steps {
  display: flex;
  gap: 12px;
  flex: 1 1 auto;
  flex-wrap: wrap;
}
.plf-funnel__step { flex: 1 1 210px; }
.plf-funnel__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--plf-border);
  border-radius: 12px;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}
.plf-funnel__link:hover,
.plf-funnel__link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(18,79,83,0.10);
  border-color: var(--plf-teal);
}
.plf-funnel__num {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--plf-teal);
  color: #fff;
  font-family: var(--plf-font-display);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.plf-funnel__body { display: flex; flex-direction: column; line-height: 1.2; }
.plf-funnel__title {
  font-family: var(--plf-font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--plf-ink);
}
.plf-funnel__tool {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--plf-accent);
}

/* ===== Zone 2: main columns ===== */
.plf-main {
  background: #fff;
  border-top: 1px solid var(--plf-border);
}
.plf-main__inner {
  max-width: var(--plf-max);
  margin: 0 auto;
  padding: 48px 32px 32px;
  display: grid;
  /* Tools used to need 2.6fr for a 5-group grid. Now that it is a tabbed
     single panel, the four columns can share width more evenly. */
  grid-template-columns: 1.1fr 1.6fr 1.5fr 1.3fr;
  gap: 40px;
}
.plf-col__title {
  margin: 0 0 16px;
  font-family: var(--plf-font-ui);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plf-teal);
}

/* Brand column */
.plf-brand__logo { display: inline-block; }
.plf-brand__logo img { display: block; height: 38px; width: auto; }
.plf-brand__logo-text {
  font-family: var(--plf-font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--plf-teal);
  letter-spacing: -0.01em;
}
.plf-brand__tagline {
  margin: 16px 0 0;
  font-family: var(--plf-font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--plf-ink);
}
.plf-brand__blurb {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--plf-soft);
  max-width: 34ch;
}
.plf-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px !important;
}
.plf-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--plf-mint);
  color: var(--plf-teal) !important;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}
.plf-social__link:hover,
.plf-social__link:focus-visible {
  background: var(--plf-teal);
  color: #fff !important;
  transform: translateY(-2px);
}
.plf-social__link svg { display: block; width: 19px; height: 19px; }

/* Follow (social) block in the right-hand platform column */
.plf-follow { margin-top: 30px; }
.plf-follow .plf-social { margin-top: 0 !important; max-width: 180px; }

/* Link lists */
.plf-linklist li { margin-bottom: 10px; }
.plf-linklist--tight li { margin-bottom: 7px; }
.plf-linklist--cols {
  column-count: 2;
  column-gap: 28px;
}
.plf-linklist--cols li { break-inside: avoid; }
.plf-link {
  color: var(--plf-soft) !important;
  font-size: 0.9rem;
  transition: color 150ms ease;
}
.plf-link:hover,
.plf-link:focus-visible { color: var(--plf-teal) !important; }
.plf-link--strong {
  color: var(--plf-teal) !important;
  font-family: var(--plf-font-ui);
  font-weight: 600;
}

/* Tools column */
/* Multi-column, not grid: the five groups have very different lengths and a
   grid ties every row to its tallest cell, which left big holes. Columns let
   the groups flow tightly regardless of length. */
/* column-width, not column-count: it keeps the ~155px track the labels were
   sized for, so the browser picks the column count instead of squeezing them. */
.plf-tools__grid {
  column-width: 155px;
  column-gap: 28px;
}
.plf-tools__group {
  break-inside: avoid;
  margin-bottom: 24px;
}
.plf-tools__group-title {
  margin: 0 0 10px;
  font-family: var(--plf-font-ui);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--plf-ink);
}
.plf-overflow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-family: var(--plf-font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--plf-accent) !important;
  transition: gap 150ms ease;
}
.plf-overflow:hover,
.plf-overflow:focus-visible { gap: 10px; }

/* ===== Zone 2b: popular guides strip ===== */
.plf-guides {
  max-width: var(--plf-max);
  margin: 0 auto;
  padding: 24px 32px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  border-top: 1px solid var(--plf-border);
}
.plf-guides__label {
  font-family: var(--plf-font-ui);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plf-teal);
}
.plf-guides__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.plf-guides__list li { position: relative; }
.plf-guides__list li + li::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--plf-muted, #C4D5D2);
  transform: translateY(-50%);
}
.plf-guides__link {
  color: var(--plf-soft) !important;
  font-size: 0.85rem;
  transition: color 150ms ease;
}
.plf-guides__link:hover,
.plf-guides__link:focus-visible { color: var(--plf-teal) !important; }

/* ===== Zone 3: bottom bar ===== */
.plf-bottom { background: var(--plf-teal); color: #fff; }
.plf-bottom__inner {
  max-width: var(--plf-max);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.plf-bottom__legal {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  font-size: 0.84rem;
}
.plf-bottom__copy { color: rgba(255,255,255,0.78); }
.plf-bottom__links { display: flex; gap: 8px 18px; flex-wrap: wrap; }
.plf-bottom__links li { position: relative; }
.plf-bottom__links li + li::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--plf-line-dark);
  transform: translateY(-50%);
}
.plf-bottom__link {
  color: rgba(255,255,255,0.78) !important;
  transition: color 150ms ease;
}
.plf-bottom__link:hover,
.plf-bottom__link:focus-visible { color: #fff !important; }

/* Tool spotlight CTA */
.plf-spotlight {
  display: inline-flex;
  align-items: center;
  color: #fff !important;
}
.plf-spotlight__label {
  font-family: var(--plf-font-ui);
  font-weight: 600;
  font-size: 0.84rem;
  color: #fff;
}
.plf-spotlight:hover .plf-spotlight__label,
.plf-spotlight:focus-visible .plf-spotlight__label { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .plf-main__inner {
    grid-template-columns: 1fr 1fr;
  }
  .plf-col--tools { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .plf-cta__inner { padding: 24px 20px; }
  .plf-cta__heading { font-size: 1.4rem; }
  .plf-cta__btn { width: 100%; justify-content: center; }
  .plf-main__inner {
    grid-template-columns: 1fr 1fr;
    padding: 36px 20px 24px;
    gap: 32px 24px;
  }
  .plf-col--brand { grid-column: 1 / -1; }
  .plf-col--tools { grid-column: 1 / -1; }
  .plf-tools__grid { column-count: 2; }
  .plf-funnel__inner { padding: 18px 20px; }
  .plf-funnel__steps { width: 100%; }
  .plf-funnel__step { flex: 1 1 100%; }
  .plf-guides { padding: 20px 20px 28px; }
  .plf-bottom__inner {
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
@media (max-width: 420px) {
  .plf-main__inner { grid-template-columns: 1fr; }
  .plf-tools__grid { column-count: 1; }
}

/* ===== Zone 2f: destination region tabs (CSS-only, no JS) =====
   Radio inputs drive the panels via `:checked ~` sibling selectors.
   Every link stays in the DOM at all times, so all of them are crawlable. */
.plf-regions__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.plf-regions__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.plf-regions__tab {
  cursor: pointer;
  padding: 5px 12px;
  border: 1px solid var(--plf-border);
  border-radius: 999px;
  font-family: var(--plf-font-ui);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--plf-soft);
  background: #fff;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.plf-regions__tab:hover { border-color: var(--plf-teal); color: var(--plf-teal); }
.plf-regions__panel { display: none; }

/* Panel n is shown when radio n is checked. Order of the radios in the DOM
   matches the order of the panels, so index-based pairing is stable. */
.plf-regions__radio:nth-of-type(1):checked ~ .plf-regions__panels > .plf-regions__panel:nth-child(1),
.plf-regions__radio:nth-of-type(2):checked ~ .plf-regions__panels > .plf-regions__panel:nth-child(2),
.plf-regions__radio:nth-of-type(3):checked ~ .plf-regions__panels > .plf-regions__panel:nth-child(3),
.plf-regions__radio:nth-of-type(4):checked ~ .plf-regions__panels > .plf-regions__panel:nth-child(4),
.plf-regions__radio:nth-of-type(5):checked ~ .plf-regions__panels > .plf-regions__panel:nth-child(5),
.plf-regions__radio:nth-of-type(6):checked ~ .plf-regions__panels > .plf-regions__panel:nth-child(6),
.plf-regions__radio:nth-of-type(7):checked ~ .plf-regions__panels > .plf-regions__panel:nth-child(7) {
  display: block;
}
.plf-regions__radio:nth-of-type(1):checked ~ .plf-regions__tabs > .plf-regions__tab:nth-child(1),
.plf-regions__radio:nth-of-type(2):checked ~ .plf-regions__tabs > .plf-regions__tab:nth-child(2),
.plf-regions__radio:nth-of-type(3):checked ~ .plf-regions__tabs > .plf-regions__tab:nth-child(3),
.plf-regions__radio:nth-of-type(4):checked ~ .plf-regions__tabs > .plf-regions__tab:nth-child(4),
.plf-regions__radio:nth-of-type(5):checked ~ .plf-regions__tabs > .plf-regions__tab:nth-child(5),
.plf-regions__radio:nth-of-type(6):checked ~ .plf-regions__tabs > .plf-regions__tab:nth-child(6),
.plf-regions__radio:nth-of-type(7):checked ~ .plf-regions__tabs > .plf-regions__tab:nth-child(7) {
  background: var(--plf-teal);
  border-color: var(--plf-teal);
  color: #fff;
}
/* Keyboard focus has to stay visible even though the input itself is clipped. */
.plf-regions__radio:focus-visible ~ .plf-regions__tabs > .plf-regions__tab {
  outline: 2px solid var(--plf-accent);
  outline-offset: 2px;
}

/* ===== Zone 2g: secondary row (app | guides | styles | latest posts) ===== */
.plf-secondary {
  max-width: var(--plf-max);
  margin: 0 auto;
  padding: 8px 32px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 40px;
  border-top: 1px solid var(--plf-border);
  padding-top: 32px;
}
.plf-app__blurb {
  margin: -6px 0 14px;
  font-size: 0.88rem;
  color: var(--plf-soft);
}
.plf-app__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--plf-accent);
  color: #fff !important;
  font-family: var(--plf-font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 150ms ease, gap 150ms ease;
}
.plf-app__cta:hover,
.plf-app__cta:focus-visible { background: var(--plf-accent-hover); gap: 10px; }
.plf-linklist--posts li { margin-bottom: 12px; line-height: 1.35; }

/* ===== Responsive additions ===== */
@media (max-width: 1024px) {
  .plf-secondary { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .plf-secondary {
    grid-template-columns: 1fr 1fr;
    padding: 28px 20px 24px;
    gap: 28px 24px;
  }
  .plf-col--posts { grid-column: 1 / -1; }
  /* Tabs scroll sideways instead of wrapping into a tall stack. */
  .plf-regions__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .plf-regions__tabs::-webkit-scrollbar { display: none; }
}
@media (max-width: 420px) {
  .plf-secondary { grid-template-columns: 1fr; }
  .plf-linklist--cols { column-count: 1; }
}

/* Grid items default to min-width:auto, so a nowrap flex row (the region tabs)
   forces its track wider than the container and overflows the page instead of
   scrolling inside itself. min-width:0 lets the track shrink as intended. */
.plf-main__inner > *,
.plf-secondary > * { min-width: 0; }
.plf-regions,
.plf-regions__panel { min-width: 0; }

/* ===== Tools as tabs (same CSS-only mechanism as the region tabs) ===== */
/* The tools column is wide, so its panels can hold more columns than the
   destination panels do. */
/* One column reads as a clean list; groups hold at most 6 tools. */
.plf-regions--tools .plf-regions__panel .plf-linklist--cols { column-count: 1; }

/* The app block is gone from the secondary row; its slot now holds the
   GSC-ranked popular guides. */
.plf-col--guides .plf-linklist li { margin-bottom: 9px; }
