/* ==========================================================================
   FruitStack — components.css
   Header, navigation, buttons, cards, product seals, footer, forms.
   ========================================================================== */

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--f-body);
  font-size: .97rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .22s ease, background-color .18s ease,
              border-color .18s ease, color .18s ease;
}
.btn svg { flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 2px 6px rgba(108,92,231,.24), 0 12px 26px rgba(108,92,231,.24);
}
.btn--primary:hover {
  background: var(--purple-600);
  color: #fff;
  box-shadow: 0 4px 10px rgba(108,92,231,.28), 0 20px 40px rgba(108,92,231,.3);
}

.btn--ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--sh-1);
}
.btn--ghost:hover { border-color: var(--purple-300); color: var(--ink); box-shadow: var(--sh-2); }

.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-800); color: #fff; }

.btn--on-ink {
  background: rgba(255,255,255,.07);
  color: #fff;
  border-color: rgba(255,255,255,.2);
}
.btn--on-ink:hover { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.36); }

.btn--sm { padding: 11px 18px; font-size: .9rem; }
.btn--lg { padding: 17px 30px; font-size: 1.02rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Text link with a moving arrow */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: .97rem;
  color: var(--purple-700);
  text-decoration: none;
}
.arrow-link svg { transition: transform .22s ease; }
.arrow-link:hover svg { transform: translateX(4px); }
.section--ink .arrow-link { color: var(--teal); }

/* --- Header / navigation -------------------------------------------------
   A floating tab bar. Icons support the labels rather than replacing them,
   so nothing depends on decoding a glyph.
   ------------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding-block: clamp(10px, 1.2vw, 16px);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header.is-stuck {
  background: rgba(250, 251, 255, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}

.navbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 10px 8px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--sh-2);
  transition: box-shadow .25s ease;
}
.site-header.is-stuck .navbar { box-shadow: var(--sh-3); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--brand-gap, 16px);
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand svg { width: var(--brand-mark, 68px); height: var(--brand-mark, 68px); }
.brand-word {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--brand-word, 2.48rem);
  letter-spacing: -.032em;
}

/* --- Tabs ---------------------------------------------------------------- */

.tabs { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.tab-wrap { position: relative; }

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 9px 13px 8px;
  border-radius: 15px;
  text-decoration: none;
  color: var(--gray-600);
  border: 1px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.tab__icon { display: block; color: var(--gray-500); transition: color .18s ease; }
.tab__label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: -.008em;
  line-height: 1;
  white-space: nowrap;
}
.tab__chev {
  position: absolute;
  top: 12px; right: 4px;
  color: var(--gray-300);
  transition: transform .2s ease, color .18s ease;
}

.tab:hover { background: var(--gray-50); color: var(--ink); border-color: var(--line-soft); }
.tab:hover .tab__icon { color: var(--purple); }

.tab[aria-current='page'] {
  background: var(--mist);
  border-color: var(--mist-deep);
  color: var(--ink);
}
.tab[aria-current='page'] .tab__icon { color: var(--purple); }

.tab-wrap--menu .tab { padding-right: 22px; }
.tab-wrap--menu:hover .tab__chev,
.tab-wrap--menu:focus-within .tab__chev { transform: rotate(180deg); color: var(--purple); }

.nav-cta { flex: none; margin-left: 6px; }

/* --- Products panel ------------------------------------------------------ */

.pmenu {
  position: absolute;
  top: calc(100% + 12px);
  right: -40px;
  width: min(620px, 78vw);
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--sh-4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 90;
}
.tab-wrap--menu:hover .pmenu,
.tab-wrap--menu:focus-within .pmenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
/* Bridge the gap so the pointer can travel from tab to panel */
.pmenu::before {
  content: '';
  position: absolute;
  inset: -14px 0 auto 0;
  height: 14px;
}

.pmenu__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.pmenu__col { display: grid; align-content: start; gap: 2px; }
.pmenu__head {
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray-500);
  padding: 12px 8px 6px;
}
.pmenu__col > .pmenu__head:first-child { padding-top: 2px; }

.pmenu__item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 8px;
  border-radius: 11px;
  text-decoration: none;
  transition: background-color .16s ease;
}
.pmenu__item:hover { background: var(--gray-50); }
.pmenu__item .seal { width: 30px; height: 30px; }
.pmenu__text { display: grid; min-width: 0; }
.pmenu__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: -.015em;
  color: var(--ink);
  line-height: 1.25;
}
.pmenu__desc {
  font-size: .72rem;
  color: var(--gray-600);
  line-height: 1.3;
}
.pmenu__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  width: 100%;
  font-size: .84rem;
  font-weight: 600;
  color: var(--purple-700);
  text-decoration: none;
}
.pmenu__all svg { transition: transform .2s ease; }
.pmenu__all:hover svg { transform: translateX(3px); }

/* --- Mobile --------------------------------------------------------------- */

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle:hover { border-color: var(--purple-300); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--soft);
  display: flex;
  flex-direction: column;
  padding: 18px var(--gutter) 40px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s ease, transform .24s ease, visibility .24s;
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; transform: none; visibility: visible; }
.mobile-nav__top { display: flex; align-items: center; min-height: 60px; }
.mobile-nav .brand { --brand-mark: 46px; --brand-word: 1.6rem; --brand-gap: 12px; }
.mobile-nav__close {
  margin-left: auto;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 13px; cursor: pointer; color: var(--ink);
}
.mobile-nav__links { margin-top: 22px; display: flex; flex-direction: column; }
.mobile-nav__links a {
  padding: 15px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.42rem;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
}
.mobile-nav__links a[aria-current='page'] { color: var(--purple); }

.mobile-nav__products { margin-top: 26px; }
.mobile-nav__label {
  display: block;
  font-family: var(--f-mono);
  font-size: .64rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 12px;
}
.mobile-nav__grid { display: flex; flex-wrap: wrap; gap: 7px; }
.mobile-nav__grid a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
  font-size: .84rem;
  font-weight: 600;
  color: var(--gray-700);
  text-decoration: none;
}
.mobile-nav__grid a:hover { border-color: var(--purple-300); color: var(--ink); }

.mobile-nav__foot { margin-top: 30px; display: grid; gap: 16px; }
.mobile-nav__foot .btn { justify-content: center; }

@media (max-width: 1240px) {
  .tabs, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .navbar { padding: 10px 12px 10px 18px; }
}
@media (max-width: 640px) {
  .site-header .brand { --brand-mark: 46px; --brand-word: 1.6rem; --brand-gap: 12px; }
}
@media (max-width: 380px) {
  .site-header .brand { --brand-mark: 40px; --brand-word: 1.38rem; }
}

/* --- Cards --------------------------------------------------------------- */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.4vw, 34px);
  box-shadow: var(--sh-1);
  transition: transform .24s cubic-bezier(.22,.61,.36,1), box-shadow .24s ease, border-color .24s ease;
}
.card--lift:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--purple-100); }
.card--flat { box-shadow: none; }
.card--ink {
  background: var(--ink-800);
  border-color: rgba(255,255,255,.09);
  color: #fff;
  box-shadow: none;
}

.card__title { font-size: var(--t-h3); margin-bottom: 12px; }
.card__body { color: var(--fg-muted); }

/* Capability list with seed markers */
.caps { margin-top: 22px; display: grid; gap: 11px; }
.caps li {
  position: relative;
  padding-left: 20px;
  font-size: .94rem;
  color: var(--gray-700);
}
.caps li::before {
  content: '';
  position: absolute;
  left: 0; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--purple);
  opacity: .55;
}
.caps li:nth-child(2)::before { background: var(--teal); }
.caps li:nth-child(3)::before { background: var(--orange); }
.section--ink .caps li { color: rgba(255,255,255,.74); }

/* Grid helpers */
.grid { display: grid; gap: clamp(18px, 2vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* --- Solution icon (minimal, drawn from the seed-grid grammar) ----------- */

.sol-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--mist);
  color: var(--purple);
  margin-bottom: 22px;
}
.sol-icon svg { width: 24px; height: 24px; }
.sol-icon--teal { background: var(--teal-100); color: var(--teal-700); }
.sol-icon--orange { background: var(--orange-100); color: var(--orange-700); }

/* --- Product seals (one shared grammar, per-product accent) -------------- */

.seal {
  width: 44px; height: 44px;
  flex: none;
  color: var(--purple);
}
.seal svg { width: 100%; height: 100%; }
.seal--lg { width: 58px; height: 58px; }

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.2vw, 30px);
  box-shadow: var(--sh-1);
  text-decoration: none;
  color: inherit;
  transition: transform .24s cubic-bezier(.22,.61,.36,1), box-shadow .24s ease, border-color .24s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-3);
  border-color: color-mix(in srgb, currentColor 22%, var(--line));
  color: inherit;
}
.product-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.product-card__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -.02em;
  color: var(--ink);
}
.product-card__tm { font-size: .62em; vertical-align: super; opacity: .5; font-weight: 600; }
.product-card__desc { color: var(--fg-muted); font-size: .96rem; }
.product-card__tags {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 7px;
}
.tag {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-600);
  background: var(--gray-50);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xs);
  padding: 5px 8px;
}

/* Accent classes drive the seal colour and hover border for each product */
.acc-lime        { color: #4fa83d; }
.acc-coconut     { color: #2f7ad0; }
.acc-guava       { color: #d94f7a; }
.acc-papaya      { color: #e07b21; }
.acc-breadfruit  { color: #6f8a3c; }
.acc-soursop     { color: #2f9c8a; }
.acc-starfruit   { color: #c9a415; }
.acc-passion     { color: #8b52c9; }
.acc-pineapple   { color: #d68a12; }
.acc-tamarind    { color: #a06a3d; }
.acc-mango       { color: #e0761c; }

/* --- Footer -------------------------------------------------------------
   A white card on the page field, closed by an oversized ghosted wordmark
   that is clipped by the bottom of the page.
   ------------------------------------------------------------------------ */

.site-footer {
  --fs-radius: clamp(20px, 2.6vw, 36px);
  --fs-ghost: clamp(3rem, 15.5vw, 11.5rem);
  background: var(--soft);
  padding-bottom: 0;
}

.footer-slab {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--fs-radius);
  box-shadow: var(--sh-2);
  padding: clamp(30px, 4vw, 60px) clamp(24px, 3.4vw, 58px) clamp(20px, 2.2vw, 30px);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.28fr);
  gap: clamp(30px, 5vw, 76px);
  padding-bottom: clamp(28px, 3.2vw, 44px);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr; gap: 36px; } }

/* Brand block */
.footer-brand .brand { color: var(--ink); }
.footer-note {
  margin-top: 22px;
  font-size: .96rem;
  line-height: 1.65;
  color: var(--gray-600);
  max-width: 46ch;
}

/* Link columns */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 36px);
}
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr 1fr; gap: 30px 20px; } }

.footer-col h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -.018em;
  color: var(--ink);
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 13px; }
.footer-col li { font-size: .95rem; color: var(--gray-600); }
.footer-col a {
  color: var(--gray-600);
  text-decoration: none;
  font-size: .95rem;
  transition: color .18s ease;
}
.footer-col a:hover { color: var(--ink); }
.footer-col .footer-email { word-break: break-word; }

/* Bottom bar */
.footer-bottom {
  padding-top: clamp(18px, 2vw, 26px);
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  font-size: .9rem;
  color: var(--gray-600);
}
.footer-legal { margin-left: auto; display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
.footer-legal a { color: var(--gray-700); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--ink); }
@media (max-width: 680px) { .footer-legal { margin-left: 0; } }

/* Ghosted wordmark, clipped by the foot of the page */
.footer-ghost-wrap {
  overflow: hidden;
  height: calc(var(--fs-ghost) * .64);
  margin-top: clamp(16px, 2.4vw, 34px);
  pointer-events: none;
}
.footer-ghost {
  display: block;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--fs-ghost);
  line-height: .84;
  letter-spacing: -.055em;
  text-align: center;
  color: var(--gray-100);
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

/* --- Forms --------------------------------------------------------------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: .89rem;
  font-weight: 600;
  color: var(--gray-700);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.field .opt {
  font-family: var(--f-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--r-sm);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; background-image: none; cursor: pointer; }
.field input::placeholder, .field textarea::placeholder { color: var(--gray-500); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(108,92,231,.14);
}
.field input[type='file'] { padding: 11px 12px; background: var(--gray-50); cursor: pointer; }

.field-error {
  font-size: .84rem;
  color: #c02a3f;
  display: none;
  align-items: center;
  gap: 6px;
}
.field-error::before { content: '\2715'; font-size: .7em; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #c02a3f; }
.field.has-error .field-error { display: flex; }

.select-wrap { position: relative; }
.select-wrap::after {
  content: '';
  position: absolute;
  right: 17px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--gray-500);
  border-bottom: 2px solid var(--gray-500);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .92rem;
  color: var(--gray-700);
  line-height: 1.55;
  cursor: pointer;
}
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--purple); }

/* Honeypot — visually and semantically removed from the flow */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  margin-bottom: 24px;
  padding: 18px 22px;
  border-radius: var(--r-md);
  font-size: .96rem;
}
.form-status.is-visible { display: block; }
.form-status[data-state='success'] {
  background: var(--status-ok-bg);
  border: 1px solid #b6e5d7;
  color: #085f4a;
}
.form-status[data-state='error'] {
  background: #fdecee;
  border: 1px solid #f3c3ca;
  color: #8e1d2d;
}
.form-status strong { display: block; font-family: var(--f-display); font-size: 1.05rem; margin-bottom: 4px; }

/* --- Contact panel --------------------------------------------------------
   A floating button that opens a chooser rather than committing the visitor
   to one channel. WhatsApp is listed first and marked as fastest, because it
   is, but email and phone are equally available.
   ------------------------------------------------------------------------ */

.ctx {
  position: fixed;
  right: clamp(14px, 2.2vw, 26px);
  bottom: clamp(14px, 2.2vw, 26px);
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.ctx__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 14px 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--purple);
  color: #fff;
  font-family: var(--f-body);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(108, 92, 231, .28), 0 16px 34px rgba(108, 92, 231, .26);
  transition: transform .2s ease, box-shadow .22s ease, background-color .18s ease;
}
.ctx__toggle:hover {
  background: var(--purple-600);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(108, 92, 231, .32), 0 22px 44px rgba(108, 92, 231, .3);
}
.ctx__toggle-icon { display: flex; }
.ctx__toggle[aria-expanded="true"] .ctx__toggle-label { opacity: .85; }
@media (max-width: 480px) {
  .ctx__toggle { padding: 14px; }
  .ctx__toggle-label { display: none; }
}

.ctx__panel {
  width: min(340px, calc(100vw - 28px));
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--sh-4);
  opacity: 0;
  transform: translateY(8px) scale(.98);
  transform-origin: bottom right;
  transition: opacity .2s ease, transform .2s cubic-bezier(.22,.61,.36,1);
}
.ctx__panel.is-open { opacity: 1; transform: none; }

.ctx__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.ctx__eyebrow {
  font-family: var(--f-mono);
  font-size: .64rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 6px;
}
.ctx__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -.028em;
  line-height: 1.15;
  color: var(--ink);
}
.ctx__close {
  margin-left: auto;
  width: 32px; height: 32px;
  flex: none;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--gray-500);
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}
.ctx__close:hover { background: var(--gray-50); color: var(--ink); }

.ctx__opt {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  text-decoration: none;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}
.ctx__opt:hover { border-color: var(--purple-300); background: var(--soft); transform: translateX(2px); }
.ctx__opt--wa { background: var(--mist); border-color: var(--mist-deep); }
.ctx__opt--wa:hover { background: var(--mist-deep); }

.ctx__icon {
  width: 38px; height: 38px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--mist);
  color: var(--purple);
}
.ctx__icon--wa { background: #d9f5e3; color: #0d7a3d; }
.ctx__icon--teal { background: var(--teal-100); color: var(--teal-700); }
.ctx__icon--orange { background: var(--orange-100); color: var(--orange-700); }

.ctx__text { display: grid; gap: 2px; min-width: 0; }
.ctx__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: -.018em;
  color: var(--ink);
}
.ctx__sub { font-size: .82rem; line-height: 1.35; color: var(--gray-600); word-break: break-word; }

.ctx__foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: .8rem;
  line-height: 1.5;
  color: var(--gray-600);
}

@media (prefers-reduced-motion: reduce) {
  .ctx__toggle, .ctx__panel, .ctx__opt { transition: none; }
  .ctx__toggle:hover, .ctx__opt:hover { transform: none; }
}
@media print { .ctx { display: none; } }

/* --- Footer social -------------------------------------------------------- */

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--gray-700);
  transition: color .18s ease, border-color .18s ease, transform .2s ease, box-shadow .2s ease;
}
.social a:hover,
.social a:focus-visible {
  color: var(--purple-700);
  border-color: var(--purple-300);
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
}

@media (prefers-reduced-motion: reduce) {
  .social a { transition: none; }
  .social a:hover, .social a:focus-visible { transform: none; }
}

/* --- Checkbox group ------------------------------------------------------- */

.checkgroup {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.checkgroup legend {
  padding: 0;
  margin-bottom: 12px;
  font-size: .89rem;
  font-weight: 600;
  color: var(--gray-700);
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.checkgroup__grid { display: flex; flex-wrap: wrap; gap: 8px; }

.checkpill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--r-pill);
  background: var(--white);
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}
.checkpill:hover { border-color: var(--purple-300); }
.checkpill input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: none;
  accent-color: var(--purple);
  cursor: pointer;
}
/* Selected state. Without :has() support the pill simply stays neutral and
   the checkbox itself still shows the state, so nothing breaks. */
.checkpill:has(input:checked) {
  border-color: var(--purple);
  background: var(--mist);
  color: var(--ink);
}
.checkpill:focus-within { outline: 2px solid var(--purple); outline-offset: 2px; }

/* "Looking for X?" row at the top of the products dropdown */
.pmenu__need {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  margin-bottom: 14px;
  border-radius: 13px;
  background: var(--mist);
  border: 1px solid var(--mist-deep);
  text-decoration: none;
  color: var(--purple-700);
  transition: background-color .16s ease, border-color .16s ease;
}
.pmenu__need:hover { background: var(--mist-deep); border-color: var(--purple-300); color: var(--purple-700); }
.pmenu__need .pmenu__name { color: var(--ink); }
.pmenu__need svg:last-child { flex: none; transition: transform .2s ease; }
.pmenu__need:hover svg:last-child { transform: translateX(3px); }
.pmenu__need-icon {
  width: 34px; height: 34px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--white);
  color: var(--purple);
}

/* Guides dropdown: wider left column, since the titles are full sentences */
.pmenu--guides { width: min(700px, 82vw); }
.pmenu--guides .pmenu__cols { grid-template-columns: 1.35fr 1fr; }
.pmenu--guides .pmenu__item { align-items: flex-start; }
.pmenu--guides .pmenu__name { line-height: 1.3; }
@media (max-width: 1240px) { .pmenu--guides { width: min(560px, 88vw); } }

/* Websites panel: locations get a seal, guides are a plain list */
.pmenu--websites { width: min(660px, 84vw); }
.pmenu--websites .pmenu__cols { grid-template-columns: .95fr 1.05fr; }
.pmenu--websites .pmenu__name { line-height: 1.3; }
.pmenu__seal {
  width: 34px; height: 34px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--mist);
  color: var(--purple);
}
@media (max-width: 1240px) { .pmenu--websites { width: min(540px, 88vw); } }
