/* Sac Bites & Nights :: public/css/growth.css (Upgrader-Growth)
   Promo slots, share bar, "Find us here" kit, /featured/, /founding/, cuisine pages.
   Palette: tokens only (slate ground, teal/blue/violet accents, status colors only for state).
   Every element sets an explicit text color (phone dark-mode once hid text). Body >= 19px, key >= 21px. */

/* ---------------------------------------------------------------- shared bits */
.gr-h2 { font-size: var(--fs-h3); color: var(--text); margin: 0 0 var(--s-4); }
.gr-kicker { display: inline-block; font-size: var(--fs-small); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal); margin: 0 0 var(--s-2); }
.gr-lead { font-size: var(--fs-key); color: var(--text-2); max-width: 60ch; }
.gr-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.gr-chip { text-decoration: none; color: var(--text); }
.gr-chip__n { color: var(--teal); font-weight: 700; margin-left: 4px; }
.gr-more { margin-top: var(--s-7); }
.gr-sponsored { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); font-weight: 700; color: var(--text-2);
  background: var(--surface-3); border: 1px solid var(--border-2); border-radius: var(--radius-pill); padding: 2px 12px; }
.gr-tow-badge { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); font-weight: 700; color: var(--text-invert);
  background: var(--grad-brand); border-radius: var(--radius-pill); padding: 4px 14px; }

/* ---------------------------------------------------------------- <sb-promo> */
sb-promo { display: block; }
sb-promo[hidden], [data-promo-host][hidden] { display: none !important; }
.gr-promo { position: relative; display: grid; gap: var(--s-4); align-items: center; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--s-5); overflow: hidden; }
.gr-promo::before { content: ''; position: absolute; inset: 0; background: var(--grad-night); pointer-events: none; opacity: .9; }
.gr-promo > * { position: relative; }
.gr-promo--tow { border-color: var(--violet-2); box-shadow: var(--glow-violet); }
.gr-promo--sponsor { border-color: var(--border-2); }
.gr-promo__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); }
.gr-promo__title { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 700; line-height: 1.1; color: var(--text); margin: var(--s-2) 0; }
.gr-promo__title a { color: var(--text); text-decoration: none; }
.gr-promo__title a:hover { color: var(--teal); }
.gr-promo__blurb { font-size: var(--fs-body); color: var(--text-2); margin: 0 0 var(--s-3); }
.gr-promo__next { font-size: var(--fs-key); color: var(--text); margin: 0 0 var(--s-4); }
.gr-promo__next strong { color: var(--teal); }
.gr-promo__meta { font-size: var(--fs-small); color: var(--text-3); margin: 0; }
.gr-promo__row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.gr-promo--compact { padding: var(--s-4); gap: var(--s-3); border-radius: var(--radius); }
.gr-promo--compact .gr-promo__title { font-size: var(--fs-key); margin: var(--s-1) 0; }
.gr-promo--compact .gr-promo__img { aspect-ratio: 3 / 1; }
@media (min-width: 820px) {
  .gr-promo:not(.gr-promo--compact).has-img { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding: var(--s-6); }
}
.gr-promo-sec { padding-block: var(--s-6); }

/* ---------------------------------------------------------------- <sb-share> */
sb-share { display: block; }
.gr-share { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; margin: 0; }
.ttd-actions + .gr-share-wrap, * + .gr-share-wrap, * + sb-share, * + .gr-share { display: block; margin-top: var(--s-4); } /* fix r3.2: the Share row never touches the buttons above it */
.gr-share__label { font-size: var(--fs-small); font-weight: 700; color: var(--text-2); margin-right: var(--s-2); }
.gr-share__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 16px; border-radius: var(--radius-pill);
  background: var(--surface-3); color: var(--text); border: 1px solid var(--border-2); font-size: var(--fs-key); font-weight: 600; /* fix r3.2: key text */
  text-decoration: none; cursor: pointer; transition: border-color var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out); }
.gr-share__btn:hover { border-color: var(--teal); color: var(--text); background: var(--surface-2); }
.gr-share__btn--primary { background: var(--teal); color: var(--text-invert); border-color: var(--teal); }
.gr-share__btn--primary:hover { background: var(--blue); border-color: var(--blue); color: var(--text-invert); }
.gr-share__btn svg { width: 20px; height: 20px; flex: none; }

/* ---------------------------------------------------------------- <sb-truck-kit> ("Find us here" card) */
sb-truck-kit { display: block; }
.gr-kit { display: grid; gap: var(--s-5); }
/* fix r3.1: owner kit collapsed by default */
.gr-kit__summary { cursor: pointer; list-style: none; display: grid; gap: var(--s-1); padding: var(--s-2) 0; min-height: 48px; }
.gr-kit__summary::-webkit-details-marker { display: none; }
.gr-kit__summary h2 { margin: 0; color: var(--text); }
.gr-kit__summary h2::after { content: ' +'; color: var(--teal); }
.gr-kit__details[open] .gr-kit__summary h2::after { content: ' −'; }
.gr-kit__details[open] .gr-kit { margin-top: var(--s-4); }
@media (min-width: 900px) { .gr-kit { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); align-items: start; } }
.gr-kit__preview { width: 100%; max-width: 360px; aspect-ratio: 4 / 5; border-radius: var(--radius); border: 1px solid var(--border-2);
  background: var(--surface-2); box-shadow: var(--shadow); }
.gr-kit__steps { margin: 0 0 var(--s-4); padding-left: 1.2em; }
.gr-kit__steps li { color: var(--text-2); margin-bottom: var(--s-2); }
.gr-kit__field { max-width: 460px; }
.gr-kit__link { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--text); background: var(--surface-3);
  border: 1px solid var(--border-2); border-radius: var(--radius-sm); padding: 10px 12px; overflow-wrap: anywhere; margin: 0 0 var(--s-4); }

/* print: only the poster (A4/Letter), black on white for cheap printing */
.gr-print { display: none; }
@media print {
  body.gr-printing > *:not(.gr-print) { display: none !important; }
  body.gr-printing { background: #FFFFFF !important; color: #000000 !important; }
  body.gr-printing .gr-print { display: block !important; color: #000000; background: #FFFFFF; text-align: center; padding: 10mm; }
  .gr-print h1 { font-family: var(--font-display); font-size: 44pt; color: #000000; margin: 0 0 4mm; }
  .gr-print p { color: #111111; font-size: 18pt; margin: 0 auto 4mm; max-width: none; }
  .gr-print img { width: 110mm; height: 110mm; margin: 6mm auto; image-rendering: pixelated; }
  .gr-print .gr-print__url { font-family: var(--font-mono); font-size: 14pt; color: #000000; }
}

/* ---------------------------------------------------------------- /featured/ + /founding/ pages */
.gr-page { padding-bottom: var(--s-8); overflow-x: clip; } /* fix r3.2: lets the hero glow bleed full width, no sideways scroll */
.gr-hero { position: relative; padding: var(--s-8) 0 var(--s-6); }
/* fix r3.2: the glow is full-bleed (100vw, centred on the page), not a band clipped to the content container.
   The fade at the bottom keeps the hero blending into the page instead of ending in a hard edge. */
.gr-hero::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: var(--grad-night); pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.gr-hero > * { position: relative; z-index: 1; }
.gr-hero__title { font-size: clamp(2.6rem, 1.2rem + 6vw, 6rem); letter-spacing: var(--tracking-display); line-height: .98; color: var(--text); margin: 0 0 var(--s-4); }
.gr-hero__title em { font-style: normal; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gr-hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }

.gr-sec { padding-block: var(--s-7); }
.gr-sec + .gr-sec { border-top: 1px solid var(--border); }
.gr-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); list-style: none; margin: 0; padding: 0; }
.gr-card { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s-5); height: 100%; }
.gr-card h3 { font-size: var(--fs-key); color: var(--text); margin: 0 0 var(--s-2); }
.gr-card p { color: var(--text-2); margin: 0; }
.gr-card__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: var(--s-3);
  font-size: 26px; color: var(--text); background: var(--violet-soft); border: 1px solid var(--violet); }
.gr-card--teal .gr-card__icon { background: var(--teal-soft); border-color: var(--teal); }
.gr-card--blue .gr-card__icon { background: var(--blue-soft); border-color: var(--blue); }

.gr-counter { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-4); margin: var(--s-5) 0 0; }
.gr-counter__n { font-family: var(--font-display); font-size: clamp(3.5rem, 2rem + 6vw, 7rem); font-weight: 700; line-height: 1; color: var(--teal); font-variant-numeric: tabular-nums; }
.gr-counter__l { font-size: var(--fs-key); color: var(--text); font-weight: 600; }
.gr-meter { width: 100%; max-width: 560px; height: 14px; border-radius: var(--radius-pill); background: var(--surface-3); border: 1px solid var(--border-2); overflow: hidden; margin-top: var(--s-3); }
.gr-meter__fill { height: 100%; width: 0; background: var(--grad-brand); border-radius: inherit; transition: width 1.2s var(--ease-out); }
.gr-meter__note { font-size: var(--fs-small); color: var(--text-3); margin-top: var(--s-2); }

.gr-wall { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: 0; }
.gr-wall a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--violet-soft); color: var(--text); border: 1px solid var(--violet); text-decoration: none; font-weight: 600; font-size: var(--fs-body); }
.gr-wall a:hover { border-color: var(--teal); color: var(--text); }
.gr-wall__empty { color: var(--text-2); }

.gr-steps { counter-reset: gr; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.gr-steps li { counter-increment: gr; position: relative; padding: var(--s-4) var(--s-4) var(--s-4) 72px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-2); }
.gr-steps li::before { content: counter(gr); position: absolute; left: var(--s-4); top: 50%; transform: translateY(-50%); width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: var(--text-invert); font-weight: 700; font-family: var(--font-display); }
.gr-steps strong { color: var(--text); }

.gr-form { display: grid; gap: var(--s-4); max-width: 720px; background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--s-5); }
.gr-form__grid { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .gr-form__grid { grid-template-columns: 1fr 1fr; } .gr-form__full { grid-column: 1 / -1; } }
.gr-form .sb-field__error { color: var(--bad); font-size: var(--fs-small); margin: var(--s-1) 0 0; }
.gr-form__done { font-size: var(--fs-key); color: var(--text); background: var(--ok-soft); border: 1px solid var(--ok); border-radius: var(--radius); padding: var(--s-4); margin: 0; }
.gr-form__note { font-size: var(--fs-small); color: var(--text-3); margin: 0; }

.gr-history { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); list-style: none; padding: 0; margin: 0; }
.gr-history a { display: block; height: 100%; padding: var(--s-4); background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none; }
.gr-history a:hover { border-color: var(--teal); color: var(--text); }
.gr-history__wk { display: block; font-size: var(--fs-small); color: var(--teal); font-weight: 700; }
.gr-history__name { display: block; font-family: var(--font-display); font-size: var(--fs-key); font-weight: 700; color: var(--text); margin: 4px 0; }
.gr-history__sub { display: block; font-size: var(--fs-small); color: var(--text-2); }

.gr-faq details { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s-4) var(--s-5); margin-bottom: var(--s-3); }
.gr-faq summary { cursor: pointer; font-size: var(--fs-key); font-weight: 600; color: var(--text); }
.gr-faq details p { margin: var(--s-3) 0 0; color: var(--text-2); }

.gr-reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js-motion .gr-reveal { opacity: 0; transform: translateY(18px); }
}

/* blindside r3: /founding/ hero photo (truck owners). Beside the text from 900px, under it on phones. */
.gr-hero__fig { margin: var(--s-6) 0 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-2);
  background: var(--surface-2); box-shadow: var(--shadow), var(--glow-teal); aspect-ratio: 16 / 9; }
.gr-hero__photo, .gr-hero__photo img { display: block; width: 100%; height: 100%; }
.gr-hero__photo img { object-fit: cover; object-position: 40% 35%; }
@media (min-width: 900px) {
  .gr-hero:has(.gr-hero__fig) { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); column-gap: var(--s-7); align-items: center; }
  .gr-hero:has(.gr-hero__fig) > :not(.gr-hero__fig) { grid-column: 1; }
  .gr-hero__fig { grid-column: 2; grid-row: 1 / span 7; margin: 0; aspect-ratio: 4 / 5; }
}
