/* Shelpful Shortcut Library — styles
   Brand tokens lifted from ~/Documents/Shelpful Design System/colors_and_type.css */

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,600&display=swap');

:root {
  --orange: #F56400;
  --orange-700: #D75700;
  --orange-500: #FF7A1F;
  --orange-300: #FCB98A;
  --orange-200: #FFD7BE;
  --orange-100: #FFE8D6;

  --teal: #01AFB5;
  --teal-700: #008C90;
  --teal-500: #2FC2C7;
  --teal-300: #B5EAEC;
  --teal-100: #EEF9FA;

  --white: #FFFFFF;
  --off-white: #FAFAF9;
  --gray-50: #F5F5F4;
  --gray-100: #EDEDEB;
  --gray-200: #DFDFDB;
  --gray-300: #C4C4BF;
  --gray-400: #9C9C96;
  --gray-500: #6E6E68;
  --gray-600: #4A4A45;
  --gray-700: #2F2F2B;
  --black: #111110;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 6px rgba(28, 28, 26, 0.06);
  --shadow-md: 0 6px 18px rgba(28, 28, 26, 0.08);
  --shadow-lg: 0 14px 36px rgba(28, 28, 26, 0.14);

  --font: 'Nunito', ui-rounded, -apple-system, 'SF Pro Rounded', system-ui, sans-serif;
}

/* Trigger accent color: each trigger's hex lives in app.js's TRIGGER_META
   and is set inline as --tc on the card/label ("style="--tc:#F59E0B""). Every
   rule below just reads that one variable via color-mix, so a 24-trigger
   taxonomy (and any triggers added later) needs zero new CSS — see the
   comment above TRIGGER_META in app.js. */

* { box-sizing: border-box; }
html, body {
  margin: 0;
  font-family: var(--font);
  background: var(--off-white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font-family: inherit; }

.sl-app { max-width: 780px; margin: 0 auto; }

/* ── LOGO ─────────────────────────────────────────────────────── */
.sl-logo-link { display: block; text-align: center; padding-top: 28px; }
.sl-logo-link img { height: 30px; width: auto; }

/* ── HERO ─────────────────────────────────────────────────────── */
.sl-hero {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 28px;
  text-align: center;
}
.sl-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--teal-700);
  background: var(--teal-100);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  margin-bottom: 16px;
}
.sl-hero h1 {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.15;
}
.sl-hero h1 span { color: var(--orange); }
.sl-hero p {
  color: var(--gray-500);
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto;
}
.sl-hero-stats {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.sl-hero-stat { font-size: 12px; color: var(--gray-500); font-weight: 700; }
.sl-hero-stat b { color: var(--black); font-size: 16px; display: block; font-weight: 900; }

/* ── HOW IT WORKS — a recipe, not a diagram. Plain, simple, no animation. ── */
.sl-recipe {
  max-width: 440px;
  margin: 28px auto 0;
  padding: 20px 24px;
  background: #fff;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.sl-recipe-title {
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-700); margin-bottom: 14px;
}
.sl-recipe-num {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal); color: #fff; font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.sl-recipe-note {
  margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed var(--gray-100);
  font-size: 11.5px; color: var(--gray-500); line-height: 1.55;
}
.sl-recipe-note em { color: var(--orange); font-style: normal; font-weight: 700; }

/* ── HOW IT WORKS — visual steps, real screens off an iPhone ────── */
.sl-howto-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.sl-howto-step:first-child { padding-bottom: 4px; border-bottom: 1px dashed var(--gray-100); }
.sl-howto-head { display: flex; align-items: flex-start; gap: 10px; }
.sl-howto-step:first-child .sl-howto-head { padding-bottom: 22px; }
.sl-howto-text strong { display: block; font-size: 14px; font-weight: 800; color: var(--black); line-height: 1.35; }
.sl-howto-text span { display: block; font-size: 12px; color: var(--gray-500); margin-top: 2px; line-height: 1.4; }
.sl-howto-phone {
  position: relative;
  margin: 12px 0 0 30px;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.sl-howto-phone img { display: block; width: 100%; height: auto; }
.sl-howto-fade::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
}

/* ── FILTER PANEL ─────────────────────────────────────────────── */
.sl-filter-panel {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 250, 249, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--orange);
  padding: 14px 0 10px;
}

.sl-search-wrap { max-width: 780px; margin: 0 auto; padding: 0 24px 10px; }
.sl-search-input {
  width: 100%;
  padding: 12px 20px 12px 42px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23F56400' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 14px center;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.sl-search-input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(245,100,0,0.12); }
.sl-search-input::placeholder { color: var(--gray-300); }

.sl-chip-row {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 780px;
  margin: 0 auto;
  padding: 6px 24px 0;
}
.sl-chip-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.sl-chip-scroll::-webkit-scrollbar { display: none; }
.sl-filter-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  white-space: nowrap;
  min-width: 46px;
}
.sl-fchip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-600);
  background: #fff;
  border: 1.5px solid var(--gray-200);
  cursor: pointer;
  transition: all .15s ease;
  flex-shrink: 0;
  user-select: none;
}
.sl-fchip:hover { border-color: var(--orange); color: var(--orange-700); background: var(--orange-100); }
.sl-fchip.active { background: var(--black); border-color: var(--black); color: #fff; }

/* Apps filter — the headline feature: a toggle that opens a checkbox grid */
.sl-apps-toggle-row { max-width: 780px; margin: 0 auto; padding: 8px 24px 0; }
.sl-apps-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--teal);
  background: var(--teal-100);
  color: var(--teal-700);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}
.sl-apps-toggle:hover { background: var(--teal-300); }
.sl-apps-toggle .sl-apps-count {
  background: var(--teal);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 11px;
  padding: 2px 9px;
}
.sl-apps-panel {
  display: none;
  max-width: 780px;
  margin: 8px auto 0;
  padding: 16px 24px;
  background: #fff;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.sl-apps-panel.open { display: block; }
.sl-apps-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.sl-apps-panel-head p { font-size: 12.5px; color: var(--gray-500); margin: 0; max-width: 480px; }
.sl-apps-panel-actions { display: flex; gap: 12px; }
.sl-apps-panel-actions button {
  background: none; border: none; color: var(--orange); font-weight: 800; font-size: 12px; cursor: pointer; padding: 0;
}
.sl-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px 12px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}
.sl-app-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  padding: 4px 0;
  cursor: pointer;
}
.sl-app-check input { accent-color: var(--teal); width: 15px; height: 15px; cursor: pointer; }

.sl-active-filters {
  display: none;
  max-width: 780px;
  margin: 0 auto;
  padding: 8px 24px 0;
  font-size: 11.5px;
  color: var(--gray-400);
}
.sl-active-filters.visible { display: block; }
.sl-clear-filters { color: var(--orange); cursor: pointer; font-weight: 700; margin-left: 6px; }

/* ── LAYOUT / SECTIONS ────────────────────────────────────────── */
.sl-wrap { max-width: 780px; margin: 0 auto; padding: 32px 24px 96px; }

.sl-no-results { display: none; text-align: center; padding: 72px 20px; color: var(--gray-300); font-size: 14px; }
.sl-no-results.visible { display: block; }

.sl-loading { text-align: center; padding: 80px 20px; color: var(--gray-400); font-size: 14px; }
.sl-error { text-align: center; padding: 60px 20px; color: var(--orange-700); background: var(--orange-100); border-radius: var(--radius-lg); }

.sl-cat-section { margin-bottom: 48px; }
.sl-cat-section.sl-sec-hidden { display: none; }

.sl-section-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gray-100);
}
.sl-cat-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  border: 1.5px solid transparent;
}
.sl-section-note { font-size: 12.5px; color: var(--gray-500); width: 100%; }
.sl-section-note a { color: var(--orange); font-weight: 700; text-decoration: none; }

/* trigger tint, per-section — reads --tc, set inline per TRIGGER_META entry */
.sl-cat-label {
  background: color-mix(in oklab, var(--tc, var(--gray-400)) 14%, white);
  color: var(--tc, var(--gray-600));
  border-color: var(--tc, var(--gray-300));
}

/* Featured section — no single trigger color makes sense here (it can hold
   cards from any trigger), so it gets its own fixed gold tint instead of
   reading --tc like every other section label does. */
.sl-featured-section { margin-bottom: 40px; }
.sl-featured-label {
  background: #FEF3C7; color: #92400E; border-color: #FDE68A;
}

/* ── CARDS — playing-card grid, tap to expand ────────────────────── */
.sl-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}

/* ── SMART TAGS product callout — sits right after the Smart Tag section's
   cards, once someone's actually seen a bunch of NFC-triggered automations.
   Dark, matching the product photo's own moody background, rather than
   reused off the light PROVE IT card — this one's meant to read as a real
   product shot, not another text callout. Image is optional (onerror hides
   it in index.html's twin, and inline here too) so a missing file just
   collapses to a plain dark card instead of a broken-image icon. ──────── */
.sl-tagcallout {
  margin-top: 20px;
  background: var(--black); border-radius: var(--radius-xl); overflow: hidden;
  display: flex; flex-direction: column;
}
.sl-tagcallout-img { width: 100%; display: block; object-fit: cover; max-height: 280px; }
.sl-tagcallout-body { padding: 24px 26px; }
@media (min-width: 620px) {
  .sl-tagcallout { flex-direction: row; align-items: stretch; }
  .sl-tagcallout-img { width: 44%; max-height: none; flex-shrink: 0; }
  .sl-tagcallout-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
}
.sl-tagcallout-badge {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--orange); background: rgba(245,100,0,.15); border: 1px solid rgba(245,100,0,.3);
  padding: 3px 10px; border-radius: var(--radius-pill); margin-bottom: 12px; align-self: flex-start;
}
.sl-tagcallout-title { font-size: 17px; font-weight: 900; color: #fff; margin: 0 0 8px; line-height: 1.3; letter-spacing: -0.01em; }
.sl-tagcallout-desc { font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.6; margin: 0 0 16px; }
.sl-tagcallout-cta {
  display: inline-block; align-self: flex-start;
  font-size: 13px; font-weight: 800; color: #fff; text-decoration: none;
  background: var(--orange); padding: 10px 18px; border-radius: var(--radius-pill);
}
.sl-tagcallout-cta:hover { background: var(--orange-700); }

.sl-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-100);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, grid-column .2s;
  overflow: hidden;
}
.sl-card:hover { box-shadow: var(--shadow-md); }
.sl-card.sl-hidden { display: none; }
.sl-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--tc, var(--orange));
  z-index: 1;
}
/* Expanded: break out of its grid cell to span the full row, revealing details */
.sl-card.expanded {
  grid-column: 1 / -1;
  box-shadow: var(--shadow-lg);
}

/* The compact "front" — a big tappable button, playing-card proportioned */
.sl-card-front {
  all: unset;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  width: 100%;
  min-height: 152px;
  padding: 22px 14px 16px;
  cursor: pointer;
}
.sl-card.expanded .sl-card-front { min-height: 0; padding: 18px 20px 4px; }
.sl-card-emoji { font-size: 30px; line-height: 1; }
.sl-card-title {
  font-size: 14px; font-weight: 800; color: var(--black); line-height: 1.25;
}
.sl-new-badge {
  display: inline-block; background: var(--teal); color: #fff; font-size: 8.5px; font-weight: 800;
  padding: 2px 7px; border-radius: var(--radius-pill); margin-left: 4px; vertical-align: middle; letter-spacing: .04em;
}
.sl-featured-badge {
  display: inline-block; background: #FBBF24; color: #78350F; font-size: 8.5px; font-weight: 800;
  padding: 2px 7px; border-radius: var(--radius-pill); margin-left: 4px; vertical-align: middle; letter-spacing: .04em;
}
.sl-verified-badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 800;
  color: #065F46; background: #D1FAE5; padding: 3px 10px; border-radius: var(--radius-pill);
}
.sl-card-phrase {
  font-size: 11.5px; font-weight: 700; color: var(--tc, var(--orange));
  background: color-mix(in oklab, var(--tc, var(--orange)) 12%, white);
  padding: 4px 10px; border-radius: var(--radius-pill); margin-top: 2px;
}
/* Mini IF/THEN preview on the collapsed card front — same color language as
   the expanded flow blocks (dark IF, light THEN), just single-line chips. */
.sl-card-if-mini, .sl-card-then-mini {
  display: block; max-width: 100%; margin-top: 4px;
  font-size: 10.5px; font-weight: 600; line-height: 1.35;
  padding: 3px 9px; border-radius: var(--radius-pill);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sl-card-if-mini { color: #fff; background: var(--tc, var(--teal-700)); }
.sl-card-if-mini b, .sl-card-then-mini b { font-weight: 900; margin-right: 3px; }
.sl-card-then-mini { color: var(--gray-700, #2F2F2B); background: var(--teal-300); }
.sl-card-apps-mini { font-size: 10px; color: var(--gray-300); margin-top: 4px; }
.sl-card.expanded .sl-card-phrase, .sl-card.expanded .sl-card-if-mini,
.sl-card.expanded .sl-card-then-mini, .sl-card.expanded .sl-card-apps-mini { display: none; }

/* The "details" — everything below the fold, revealed on expand */
.sl-card-details { display: none; padding: 0 20px 22px; }
.sl-card.expanded .sl-card-details { display: block; }
.sl-card-details-head { min-height: 20px; margin-bottom: 4px; padding-right: 30px; }
/* Pinned to the true top-right corner of the whole card, not inline with
   the details content below it (the details section has its own padding,
   which used to push this down and inward). */
.sl-card-collapse {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  background: var(--gray-50); border: none; color: var(--gray-400); width: 26px; height: 26px;
  border-radius: 50%; font-size: 13px; cursor: pointer; flex-shrink: 0;
}
.sl-card-collapse:hover { background: var(--gray-100); color: var(--gray-600); }

.sl-card-desc { font-size: 13.5px; color: var(--gray-600); line-height: 1.65; margin: 0 0 14px; text-align: left; }
.sl-card-apps { font-size: 11px; color: var(--gray-300); margin: -6px 0 12px; letter-spacing: .02em; text-align: left; }
.sl-card-credit { font-size: 11px; color: var(--gray-300); margin-bottom: 12px; text-align: left; }
.sl-card-credit a { color: var(--orange); font-weight: 700; text-decoration: none; }

/* Instagram cross-reference — only rendered when Instagram URL is filled
   in for that row. Thumbnail is optional (Instagram Thumbnail attachment
   field); falls back to a plain camera-emoji tile so the link's still
   there and clickable either way, never broken-image. */
.sl-instagram-line {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px; padding: 8px; border-radius: var(--radius-md);
  background: var(--gray-50); text-decoration: none;
  transition: background .15s;
}
.sl-instagram-line:hover { background: var(--gray-100); }
.sl-instagram-thumb {
  width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0;
}
.sl-instagram-thumb-fallback {
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-100); font-size: 17px;
}
.sl-instagram-text { font-size: 12px; font-weight: 700; color: var(--gray-600); }
.sl-instagram-arrow { color: var(--orange); }

/* Ready-to-install flag — a small corner tag on the card itself (not a
   pill in the content flow), flush against the top-right corner, visible
   before anyone even expands the card. Sits on .sl-card (position:
   relative, overflow:hidden), just below the existing accent bar, so it
   reads as a corner flag rather than a chip among the card's text. */
.sl-install-flag {
  position: absolute; top: 4px; right: 0; z-index: 2;
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .02em; white-space: nowrap;
  color: #fff; background: var(--teal-700);
  padding: 4px 10px 4px 12px;
  border-radius: 0 0 0 var(--radius-sm);
}

/* Pre-built install callout — elevated above the AI-sentence flow entirely,
   right under the description, for any card that has a real Download URL.
   The whole point of a pre-built shortcut is skipping the sentence, so it
   shouldn't be buried under it — this is the primary CTA, the sentence
   block below is the secondary/fallback path. */
.sl-install-hero {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(135deg, var(--teal-100), var(--teal-100) 55%, #fff);
  border: 2px solid var(--orange);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 16px;
  margin-bottom: 16px;
}
.sl-install-hero-eyebrow {
  flex: 1 1 100%;
  font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange);
}
.sl-install-hero-text { flex: 1 1 auto; min-width: 0; }
.sl-install-hero-title { font-size: 15px; font-weight: 900; color: var(--teal-700); line-height: 1.3; }
.sl-install-hero-desc { font-size: 12px; color: var(--gray-500); margin-top: 4px; line-height: 1.45; }
/* Two classes for specificity — beats the base .sl-btn { width: 100% } rule
   regardless of stylesheet order. */
.sl-install-hero .sl-btn-install-hero {
  flex-shrink: 0; width: auto; white-space: nowrap;
  padding: 14px 20px; font-size: 13.5px; font-weight: 900;
  background: var(--orange); color: #fff; border: none;
  border-radius: var(--radius-sm); cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
}
.sl-install-hero .sl-btn-install-hero:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.sl-install-hero .sl-btn-install-hero:active { transform: scale(0.98); }
@media (max-width: 420px) {
  .sl-install-hero { flex-direction: column; align-items: stretch; }
  .sl-install-hero .sl-btn-install-hero { width: 100%; }
}

/* When a card also has a download, the sentence block below the hero reads
   as the secondary/fallback path — quieter label, outline (not solid-black)
   copy button, so the eye lands on the download button first. */
.sl-sentence-block-secondary .sl-sentence-label span { color: var(--gray-400); font-weight: 700; }
.sl-sentence-copy-secondary {
  background: #fff; color: var(--gray-600);
  border: 1.5px solid var(--gray-200);
}
.sl-sentence-copy-secondary.copied { background: var(--teal); color: #fff; border-color: var(--teal); }

/* Sentence block — an IF/THEN flow instead of one dense paragraph, per
   Shelpful's own Auto tab (colored IF/THEN cards) and Apple's own Describe a
   Shortcut result screen ("This shortcut will:" + a bullet list). The copy
   button still copies the full original sentence — this is a friendlier
   preview of it, not a replacement for what gets pasted. */
.sl-sentence-block {
  border-radius: var(--radius-md);
  padding: 0;
  margin-bottom: 14px;
}
.sl-sentence-label {
  font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gray-400); margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between;
}
.sl-sentence-text {
  font-size: 13.5px; color: var(--black); line-height: 1.55; font-weight: 600; margin-bottom: 12px;
  background: var(--gray-50); border: 1.5px dashed var(--gray-200); border-radius: var(--radius-md); padding: 14px 16px;
}

.sl-flow { display: flex; flex-direction: column; gap: 0; margin-bottom: 12px; }
/* Sits above the IF box on Share Sheet cards — the actual instruction that
   gets the built shortcut to show up in the system Share menu, not just
   descriptive framing, so it's shown as part of the flow, not a caption. */
.sl-flow-share-badge {
  display: inline-flex; align-self: flex-start; align-items: center;
  font-size: 10.5px; font-weight: 800; letter-spacing: .01em;
  color: #4F46E5; background: #EEF2FF; border: 1px solid #E0E7FF;
  padding: 5px 11px; border-radius: var(--radius-pill);
  margin-bottom: 6px;
}
.sl-flow-if, .sl-flow-then {
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.sl-flow-if {
  background: var(--teal-700); color: #fff;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13px; font-weight: 700; line-height: 1.45;
}
.sl-flow-arrow { text-align: center; color: var(--gray-300); font-size: 13px; padding: 3px 0; }
.sl-flow-then { background: var(--teal-300); color: var(--gray-800, #2F2F2B); }
.sl-flow-tag {
  font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  opacity: .7; display: block; margin-bottom: 4px;
}
.sl-flow-then ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.sl-flow-then li {
  font-size: 13px; font-weight: 700; line-height: 1.45; padding-left: 16px; position: relative;
}
.sl-flow-then li::before { content: '•'; position: absolute; left: 2px; opacity: .55; }
/* The "adds a comment to help you wire in other apps" bullet — lives right
   in the normal THEN list (not split into its own callout) so it reads as
   one more thing the shortcut does, not a confusing aside. Slightly lighter
   weight than the real actions around it, so it still reads as a footnote. */
.sl-flow-then li.sl-flow-then-manual { font-weight: 600; opacity: .85; }
.sl-flow-then li.sl-flow-then-manual::before { content: '📝'; opacity: 1; left: -1px; }

/* The literal comment text — kept visible below the THEN list for anyone
   who wants to see exactly what it'll say before they build. */
.sl-flow-manual { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.sl-flow-manual-text {
  margin: 0 0 4px; font-size: 12.5px; color: var(--gray-600); line-height: 1.55;
  background: var(--gray-50); border: 1.5px dashed var(--gray-200); border-radius: var(--radius-md);
  padding: 10px 12px;
}
.sl-flow-manual-label {
  display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: var(--gray-400); margin-bottom: 4px;
}
.sl-apple-caveat {
  font-size: 11.5px; color: #92400E; background: #FEF3C7; border-radius: var(--radius-sm);
  padding: 8px 11px; margin: -4px 0 12px; line-height: 1.5; font-weight: 600;
}
/* A friendly customization tip, not a warning — the baked-in link builds
   fine as-is (it's a plain Open URL step), this just points out it's a
   starter and how to swap it for their own. Neutral/teal, not amber. */
.sl-swap-tip {
  font-size: 11.5px; color: var(--teal-700); background: var(--teal-100); border-radius: var(--radius-sm);
  padding: 8px 11px; margin: -4px 0 12px; line-height: 1.5; font-weight: 600;
}
.sl-swap-tip strong { font-weight: 800; }
.sl-sentence-copy {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 11px 16px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .01em;
  background: var(--black); color: #fff; border: none; border-radius: var(--radius-sm);
  cursor: pointer; transition: transform .15s, background .15s;
}
.sl-sentence-copy:active { transform: scale(0.98); }
.sl-sentence-copy.copied { background: var(--teal); }

.sl-card-actions { display: flex; flex-direction: column; gap: 8px; }
.sl-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 18px;
  font-size: 13px; font-weight: 800; text-align: center; text-decoration: none;
  border-radius: var(--radius-md); border: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  letter-spacing: .01em;
}
.sl-btn:active { transform: scale(0.98); }
.sl-btn-copy { background: var(--black); color: #fff; }
.sl-btn-copy:hover { box-shadow: var(--shadow-md); }
.sl-btn-copy.copied { background: var(--teal); }
.sl-btn-ghost {
  background: none; border: 1.5px solid var(--gray-200); color: var(--gray-500);
}
.sl-btn-ghost:hover { border-color: var(--orange); color: var(--orange-700); }

/* ── ADD-ONS shelf — optional extras beyond the Apple-only base sentence.
   Deliberately subtle: small outlined chips, not big buttons. Shelpful's
   own CTA lives in here too now, as just one chip among others. ────────── */
.sl-addons { margin-bottom: 16px; }

.sl-addons-label {
  font-size: 10px; font-weight: 800; letter-spacing: .04em; color: var(--gray-400);
  text-align: left; margin-bottom: 8px;
}
.sl-addons-label span { font-weight: 600; text-transform: none; letter-spacing: 0; }
.sl-addons-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; }
.sl-addon { display: flex; flex-direction: column; }
/* When its steps are open, an add-on takes the full shelf width so the
   instructions have room to breathe instead of being squeezed to chip-width. */
.sl-addon:has(.sl-addon-steps:not([hidden])) { flex-basis: 100%; }
.sl-addon-chip {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  font-size: 11.5px; font-weight: 700; color: var(--gray-500);
  background: #fff; border: 1.5px solid var(--gray-200); border-radius: var(--radius-pill);
  padding: 6px 12px; cursor: pointer; text-decoration: none;
}
.sl-addon-chip:hover { border-color: var(--teal); color: var(--teal-700); background: var(--teal-100); }
.sl-addon-chip.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.sl-addon-flag {
  font-size: 9px; font-weight: 900; color: var(--gray-300); background: var(--gray-100);
  width: 13px; height: 13px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
}
.sl-addon-chip.active .sl-addon-flag { background: rgba(255,255,255,.3); color: #fff; }
.sl-addon-chip.sl-addon-shelfup,
.sl-addon-chip.sl-addon-proveit {
  border-style: dashed; padding: 8px 13px;
}
.sl-addon-chip.sl-addon-shelfup { border-color: var(--orange-200); color: var(--orange-700); }
.sl-addon-chip.sl-addon-shelfup:hover { background: var(--orange-100); border-color: var(--orange); }
.sl-addon-chip.sl-addon-proveit { border-color: var(--gray-300); color: var(--gray-600); }
.sl-addon-chip.sl-addon-proveit:hover { background: var(--gray-50); border-color: var(--gray-400); }

/* The "why would I add this" line — leads before the how-to steps. */
.sl-addon-example {
  margin: 8px 0 0 4px; padding: 8px 12px;
  background: var(--teal-100); border-radius: var(--radius-sm);
  font-size: 12px; color: var(--teal-700); font-weight: 600; line-height: 1.5;
}

/* Unfurled manual-install steps — a full-width panel under its chip */
.sl-addon-steps {
  margin: 8px 0 4px 4px;
  padding: 10px 0 10px 14px;
  border-left: 2px solid var(--teal-300);
  font-size: 12px; color: var(--gray-600); line-height: 1.6;
}
.sl-addon-steps li { margin-bottom: 4px; }
.sl-addon-steps li.sl-addon-note { color: var(--gray-400); font-size: 11px; margin-top: 6px; }

.sl-card-footer {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--gray-100);
}
.sl-tip-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--gray-500);
  background: var(--gray-50); border: 1px solid var(--gray-100);
  border-radius: var(--radius-pill); padding: 7px 13px; cursor: pointer;
}
.sl-tip-link:hover { border-color: var(--teal); color: var(--teal-700); background: var(--teal-100); }

/* ── NOTES FROM "TRIED IT" (Airtable Tips and Edits, Status=Reviewed only) ── */
.sl-notes { margin-top: 14px; }
.sl-notes-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--gray-500);
  background: var(--gray-50); border: 1px solid var(--gray-100);
  border-radius: var(--radius-pill); padding: 7px 13px; cursor: pointer;
}
.sl-notes-toggle:hover { border-color: var(--teal); color: var(--teal-700); background: var(--teal-100); }
.sl-notes-toggle.active { background: var(--teal-100); border-color: var(--teal-300); color: var(--teal-700); }
.sl-notes-arrow { font-size: 10px; }
.sl-notes-list { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.sl-notes-list[hidden] { display: none; }
.sl-note {
  background: var(--gray-50); border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm); padding: 10px 12px;
}
.sl-note-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.sl-note-type {
  font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  color: var(--teal-700);
}
.sl-note-name { font-size: 11px; color: var(--gray-400); font-weight: 600; }
.sl-note-body { font-size: 12.5px; color: var(--gray-600); line-height: 1.55; margin: 0; white-space: pre-wrap; }

/* ── EMAIL CAPTURE PAGE (index.html — the "fake first page") ─────────
   No longer an overlay on top of blurred content (there's nothing behind
   it anymore — this page IS just the card). Reused the .sl-gate-* names
   since it's the same visual component, just full-page instead of modal. */
.sl-capture-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.sl-gate-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 36px 30px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.sl-gate-logo-link { display: block; margin-bottom: 18px; }
.sl-gate-logo-link img { height: 26px; width: auto; }
.sl-gate-emoji { font-size: 40px; margin-bottom: 12px; }
.sl-gate-card h2 { font-size: 22px; font-weight: 900; margin: 0 0 12px; letter-spacing: -0.01em; }
.sl-gate-card p { font-size: 13.5px; color: var(--gray-500); line-height: 1.6; margin: 0 0 20px; }
.sl-gate-card form { display: flex; flex-direction: column; gap: 10px; }
.sl-gate-card input[type="email"] {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-md); border: 1.5px solid var(--gray-200);
  font-family: var(--font); font-size: 15px; font-weight: 600; outline: none; text-align: center;
}
.sl-gate-card input[type="email"]:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(245,100,0,.12); }
.sl-gate-card input[type="email"].sl-input-error { border-color: #F43F5E; }
.sl-gate-card .sl-btn { padding: 14px 18px; font-size: 14px; }
.sl-gate-fineprint { font-size: 11px !important; color: var(--gray-300) !important; margin: 14px 0 0 !important; }
/* The privacy-policy link needs to actually be legible/clickable, not just
   inherit the fineprint's near-invisible gray — a disclosure link nobody
   can see doesn't really count as disclosed. */
.sl-gate-fineprint a { color: var(--gray-500) !important; text-decoration: underline; }
.sl-gate-fineprint a:hover { color: var(--orange) !important; }
/* The "check your email!" success state, swapped in after signup. */
.sl-gate-success { display: none; }
.sl-gate-success.show { display: block; }
.sl-gate-success-emoji { font-size: 40px; margin-bottom: 12px; }
.sl-gate-success h2 { font-size: 22px; font-weight: 900; margin: 0 0 12px; letter-spacing: -0.01em; }
.sl-gate-success p { font-size: 13.5px; color: var(--gray-500); line-height: 1.6; margin: 0; }

/* ── TIP FORM (inline, per card) ─────────────────────────────── */
.sl-tip-form {
  display: none; flex-direction: column; gap: 8px; margin-top: 12px; padding-top: 12px;
  border-top: 1px dashed var(--gray-200);
}
.sl-tip-form.open { display: flex; }
.sl-tip-form select, .sl-tip-form textarea, .sl-tip-form input {
  width: 100%; padding: 10px 13px; border-radius: var(--radius-sm); border: 1.5px solid var(--gray-200);
  font-family: var(--font); font-size: 13px; font-weight: 600; outline: none; resize: vertical;
}
.sl-tip-form select:focus, .sl-tip-form textarea:focus, .sl-tip-form input:focus { border-color: var(--teal); }
.sl-tip-form-row { display: flex; gap: 8px; }
.sl-tip-form-row > * { flex: 1; }

/* ── CONTRIBUTE — "add yours!" ───────────────────────────────────── */
.sl-contribute-wrap { max-width: 780px; margin: 0 auto 40px; padding: 0 24px; }
.sl-contribute-card {
  background: var(--teal-100);
  border: 1.5px solid var(--teal-300);
  border-radius: var(--radius-xl);
  padding: 24px 26px;
}
.sl-contribute-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sl-contribute-emoji { font-size: 32px; line-height: 1; }
.sl-contribute-head > div:nth-child(2) { flex: 1; min-width: 180px; }
.sl-contribute-head h3 { margin: 0 0 4px; font-size: 18px; font-weight: 900; color: var(--black); }
.sl-contribute-head p { margin: 0; font-size: 13px; color: var(--gray-600); }
.sl-contribute-toggle { width: auto; flex-shrink: 0; background: #fff; }

.sl-contribute-form {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1.5px dashed var(--teal-300);
}
.sl-contribute-form.open { display: flex; }
.sl-contribute-form input,
.sl-contribute-form select,
.sl-contribute-form textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--gray-200);
  font-family: var(--font); font-size: 13.5px; font-weight: 600; outline: none; resize: vertical; background: #fff;
}
.sl-contribute-form input:focus,
.sl-contribute-form select:focus,
.sl-contribute-form textarea:focus { border-color: var(--teal); }
.sl-contribute-form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.sl-contribute-form-row > * { flex: 1; min-width: 160px; }

/* ── TOAST ────────────────────────────────────────────────────── */
.sl-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--black); color: #fff; font-size: 13px; font-weight: 700;
  padding: 12px 22px; border-radius: var(--radius-pill); box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 200;
}
.sl-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── FLOATING "add yours" BUTTON — a shortcut to the contribute card for
   anyone who scrolled way past it. Sits above regular content, but below
   the email gate overlay so it's not visible/usable until unlocked. ───── */
.sl-fab-add {
  position: fixed; right: 20px; bottom: 24px; z-index: 150;
  display: flex; align-items: center; gap: 8px;
  background: var(--orange); color: #fff; border: none;
  padding: 14px 20px; border-radius: var(--radius-pill);
  font-family: var(--font); font-size: 13.5px; font-weight: 800; letter-spacing: .01em;
  box-shadow: var(--shadow-lg); cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.sl-fab-add:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(245,100,0,.35); }
.sl-fab-add:active { transform: scale(0.97); }
.sl-fab-add-icon { font-size: 16px; line-height: 1; }
@media (max-width: 520px) {
  .sl-fab-add { right: 14px; bottom: 18px; padding: 14px; }
  .sl-fab-add-label { display: none; }
  .sl-fab-add-icon { font-size: 18px; }
}

/* ── PROVE IT teaser — small, honest "coming soon", not a hard sell ──── */
.sl-proveit-wrap { max-width: 780px; margin: 0 auto 40px; padding: 0 24px; }
.sl-proveit-card {
  background: var(--gray-50); border: 1.5px dashed var(--gray-200);
  border-radius: var(--radius-xl); overflow: hidden;
  display: flex; flex-direction: column;
}
/* Image on top on narrow screens, side-by-side on wider ones. The image
   is optional — .sl-proveit-img has onerror="this.style.display='none'"
   in index.html, so a missing file just collapses back to the text-only
   card instead of showing a broken-image icon. */
.sl-proveit-img { width: 100%; display: block; object-fit: cover; max-height: 260px; }
.sl-proveit-body { padding: 22px 24px; }
@media (min-width: 620px) {
  .sl-proveit-card { flex-direction: row; align-items: stretch; }
  .sl-proveit-img { width: 42%; max-height: none; flex-shrink: 0; }
  .sl-proveit-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
}
.sl-proveit-badge {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gray-500); background: #fff; border: 1px solid var(--gray-200);
  padding: 3px 10px; border-radius: var(--radius-pill); margin-bottom: 10px; align-self: flex-start;
}
.sl-proveit-title { font-size: 15px; font-weight: 900; color: var(--black); margin: 0 0 8px; }
.sl-proveit-desc { font-size: 12.5px; color: var(--gray-600); line-height: 1.6; margin: 0 0 12px; }
.sl-proveit-examples { margin: 0 0 14px; padding-left: 18px; font-size: 12px; color: var(--gray-500); line-height: 1.7; }
.sl-proveit-examples li { margin-bottom: 6px; }
.sl-proveit-cta { font-size: 12.5px; font-weight: 800; color: var(--orange-700); text-decoration: none; align-self: flex-start; }
.sl-proveit-cta:hover { text-decoration: underline; }

/* ── UPSELL ───────────────────────────────────────────────────── */
.sl-upsell-wrap { max-width: 780px; margin: 0 auto 80px; padding: 0 24px; text-align: center; }
.sl-upsell-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: lowercase; color: var(--orange); margin-bottom: 10px; }
.sl-upsell-headline { font-size: 34px; font-weight: 900; color: var(--black); line-height: 1.15; margin-bottom: 32px; letter-spacing: -0.02em; }
.sl-upsell-headline span { color: var(--orange); }
/* Two cards (Shelpful app + Smart Tags) — one column on phones, side by side
   once there's room. Each card is image-on-top, edge to edge, then a padded
   body — so the img sits flush against the card's own rounded corners. */
.sl-upsell-grid { display: grid; grid-template-columns: 1fr; gap: 16px; text-align: left; max-width: 420px; margin: 0 auto; }
.sl-upsell-card { border-radius: var(--radius-xl); overflow: hidden; display: flex; flex-direction: column; }
.sl-upsell-dark { background: var(--black); }
.sl-upsell-light { background: #fff; border: 1.5px solid var(--gray-100); box-shadow: var(--shadow-sm); }
.sl-upsell-card-img { width: 100%; display: block; object-fit: cover; height: 180px; }
.sl-upsell-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.sl-upsell-card-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.sl-upsell-dark .sl-upsell-card-label { color: rgba(255,255,255,.65); }
.sl-upsell-light .sl-upsell-card-label { color: var(--teal-700); }
.sl-upsell-card-title { font-size: 19px; font-weight: 900; margin-bottom: 10px; letter-spacing: -0.01em; }
.sl-upsell-dark .sl-upsell-card-title { color: #fff; }
.sl-upsell-light .sl-upsell-card-title { color: var(--black); }
.sl-upsell-card-desc { font-size: 13px; line-height: 1.6; margin-bottom: 22px; flex: 1; }
.sl-upsell-dark .sl-upsell-card-desc { color: rgba(255,255,255,.75); }
.sl-upsell-light .sl-upsell-card-desc { color: var(--gray-600); }
.sl-upsell-btn {
  display: inline-block; padding: 12px 20px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 800;
  text-decoration: none; text-align: center; width: 100%; box-sizing: border-box;
}
.sl-upsell-btn-orange { background: var(--orange); color: #fff; }
.sl-upsell-btn-dark { background: var(--black); color: #fff; }

@media (min-width: 600px) {
  .sl-upsell-grid { grid-template-columns: 1fr 1fr; max-width: 780px; }
}

/* ── FOOTER ───────────────────────────────────────────────────── */
.sl-footer { text-align: center; padding: 0 24px 48px; color: var(--gray-300); font-size: 11.5px; }

@media (min-width: 640px) {
  .sl-cards-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
  .sl-card-details { padding: 0 24px 26px; }
  .sl-card-front { padding: 24px 16px 18px; }
  .sl-hero h1 { font-size: 42px; }
}
