/* Atlas Icons — site styles. Bricolage Grotesque only.
   Lime #CCEA4A accent. White minimal aesthetic inspired by boxicons.com. */

:root {
  --bg: #ffffff;
  --bg-card: #ffffff;
  --bg-soft: #f6f6f5;
  --bg-hover: #efeeeb;
  --bg-modal: rgba(10, 10, 10, 0.55);

  --border: #ececec;
  --border-strong: #d4d4d4;

  --text: #0a0a0a;
  --text-soft: #18181b;
  --text-muted: #6b7280;
  --text-faint: #9ca3af;

  --lime: #CCEA4A;
  --lime-dark: #b8d63a;
  --lime-soft: #ecf8b8;
  --lime-fg: #000000;

  --link: #0a0a0a;
  --shadow-xs: 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-sm: 0 2px 8px rgba(10, 10, 10, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 10, 10, 0.08);
  --shadow-lg: 0 20px 48px rgba(10, 10, 10, 0.12);

  --radius-pill: 999px;
  --radius-card: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;

  --max-w: 1360px;
  --transition: 0.2s ease;
  --topbar-h: 132px;
  --topbar-h-scrolled: 68px;

  --font-display: 'Bricolage Grotesque', 'Bricolage Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-body: 'Bricolage Grotesque', 'Bricolage Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--link); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.7; }
img, svg { max-width: 100%; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

/* ---------- Topbar — centered logo, menu under, glass effect, sticky ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
          backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 32px 14px;
  transition: padding var(--transition);
}
.topbar-row {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: var(--max-w);
  margin: 0 auto;
}
.topbar-row-brand { margin-bottom: 12px; }
.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--text);
}
.topbar-brand:hover { opacity: 1; }
.topbar-mark {
  display: inline-block;
  width: 36px; height: 36px;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.topbar-brand:hover .topbar-mark { transform: rotate(-8deg) scale(1.05); }
.topbar-row-nav {
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
  flex-wrap: wrap;
}
.topbar-row-nav a {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar-row-nav a:hover { color: var(--text); opacity: 1; }
.topbar-row-nav a svg { display: inline-block; flex-shrink: 0; }
.nav-figma { color: var(--text); font-weight: 600; }
.topbar-cta {
  background: var(--text);
  color: var(--bg) !important;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.topbar-cta:hover { opacity: 0.85 !important; }

/* Sticky search + weight filter appear when scrolled past the hero */
.topbar-row-search {
  margin-top: 12px;
  display: none;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.topbar.is-compact .topbar-row-search { display: flex; }
.weight-filter-sticky { flex-shrink: 0; padding: 2px; }
.weight-filter-sticky .weight-btn { padding: 5px 10px; font-size: 12px; }
#searchInputSticky {
  flex: 1;
  min-width: 0;
  padding: 10px 18px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
#searchInputSticky:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(204, 234, 74, 0.4);
}

/* ---------- Hero ---------- */
.hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 32px 40px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  box-shadow: var(--shadow-xs);
}
.hero-eyebrow a { color: var(--text); font-weight: 600; }
.hero-eyebrow a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.hero-eyebrow .dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--lime);
  border-radius: 50%;
}
.hero-headline {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
  color: var(--text);
}
#totalCount {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}
.hero-strong {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.hero-strong::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 4px;
  height: 11px;
  background: var(--lime);
  z-index: -1;
  border-radius: 2px;
}
.hero-sub {
  max-width: 580px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
}
.hero-search-wrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}
#searchInput {
  width: 100%;
  padding: 16px 24px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-xs);
}
#searchInput:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 4px rgba(204, 234, 74, 0.4);
}
#searchInput::placeholder, #searchInputSticky::placeholder { color: var(--text-faint); }
.search-count {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--text-faint);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

/* ---------- Browse (sidebar + grid) — full viewport width for max icons per row ---------- */
.browse {
  max-width: none;
  margin: 0;
  padding: 32px max(32px, 4vw) 56px;
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: auto 1fr;
  gap: 20px 32px;
  grid-template-areas:
    "toolbar toolbar"
    "sidebar grid";
}
.browse-toolbar {
  grid-area: toolbar;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.browse-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.browse-count {
  margin: 0 0 0 auto;
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

/* Weight filter pills (Thin / Regular / Bold) */
.weight-filter {
  display: inline-flex;
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}
.weight-btn {
  background: transparent;
  border: 0;
  padding: 6px 14px;
  font: inherit;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}
.weight-btn:hover { color: var(--text); }
.weight-btn.is-active {
  background: var(--text);
  color: var(--bg);
}

.sidebar {
  grid-area: sidebar;
  position: sticky;
  top: calc(var(--topbar-h) + 16px);
  align-self: start;
  max-height: calc(100vh - var(--topbar-h) - 32px);
  overflow-y: auto;
  padding-right: 8px;
}
.topbar.is-compact ~ * .sidebar { top: calc(var(--topbar-h-scrolled) + 16px); }
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.pack-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 14px;
  margin-bottom: 2px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: background-color var(--transition);
}
.pack-pill:hover { background: var(--bg-hover); }
.pack-pill.is-active {
  background: var(--lime);
  color: var(--lime-fg);
  font-weight: 700;
}
.pack-pill.is-active .pill-count { color: var(--lime-fg); opacity: 0.7; }
.pill-count {
  font-size: 12px;
  color: var(--text-faint);
  margin-left: 8px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.pack-list { display: flex; flex-direction: column; }

.grid-area { grid-area: grid; min-width: 0; }
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 6px;
}
.icon-card {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 26px;
  color: var(--text);
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
  position: relative;
}
.icon-card:hover {
  border-color: var(--lime);
  background: var(--lime-soft);
  transform: translateY(-1px);
  opacity: 1;
}
.icon-card:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-color: var(--lime); }

.empty-state { padding: 60px 20px; text-align: center; color: var(--text-muted); }
.load-more-wrap { padding: 32px 0 8px; text-align: center; }

/* ---------- Pack discovery (compact, 3 icons per card) ---------- */
.pack-discovery {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 32px 64px;
  border-top: 1px solid var(--border);
}
.pack-discovery .section-eyebrow { margin-bottom: 16px; }
.pack-discovery .section-title { margin-bottom: 36px; font-size: clamp(28px, 3.5vw, 36px); }
.pack-discovery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.pack-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 22px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  min-height: 140px;
  position: relative;
}
.pack-card:hover {
  border-color: var(--text);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
  opacity: 1;
}
.pack-card-text {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.pack-card-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
}
.pack-card-count {
  font-size: 12px;
  color: var(--lime-fg);
  font-variant-numeric: tabular-nums;
  background: var(--lime);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  white-space: nowrap;
}
.pack-card-glyphs {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.pack-card-glyphs i {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  font-size: 26px;
  color: var(--text);
  background: var(--bg-soft);
  border-radius: var(--radius-xs);
  transition: background-color var(--transition);
}
.pack-card:hover .pack-card-glyphs i { background: var(--lime-soft); }

/* ---------- Frameworks section ---------- */
.frameworks-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 32px;
  border-top: 1px solid var(--border);
}
.section-eyebrow {
  text-align: center;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0 0 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 12px;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin: 0 auto 40px;
  font-size: 16px;
  max-width: 580px;
}
.framework-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.framework-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 26px;
  color: var(--text);
  text-decoration: none;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-xs);
}
.framework-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  opacity: 1;
}

/* Figma: full-width centered highlight card at the bottom of the grid */
.framework-card.framework-figma {
  grid-column: 1 / -1;
  max-width: 720px;
  margin: 16px auto 0;
  background: linear-gradient(135deg, #ffffff, var(--lime-soft) 60%, var(--lime));
  border: 2px solid var(--text);
  padding: 36px 40px;
  text-align: center;
  align-items: center;
  position: relative;
}
.framework-card.framework-figma:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.framework-figma-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--text);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.framework-figma .framework-logo-figma {
  width: 60px; height: 60px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.framework-figma h3 { font-size: 22px; }
.framework-figma p { font-size: 14px; max-width: 480px; margin: 0 auto; }
.framework-figma .framework-cta {
  margin-top: 10px;
  padding: 9px 18px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.framework-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.framework-logo svg { display: block; }
.framework-logo-mark {
  background: var(--lime);
  font-size: 24px;
  color: var(--lime-fg);
}
.framework-card h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.framework-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.framework-cta {
  display: inline-block;
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.framework-snippet {
  display: block;
  margin-top: auto;
  padding: 9px 11px;
  background: var(--bg-soft);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text);
  overflow-x: auto;
  white-space: nowrap;
}

/* ---------- Vectoricons.net showcase ---------- */
.vectoricons-section {
  background: var(--bg);
  padding: 56px 32px;
}
.vectoricons-card {
  max-width: var(--max-w);
  margin: 0 auto;
  background: linear-gradient(160deg, #0a0a0a 0%, #18181b 100%);
  color: var(--bg);
  border-radius: 28px;
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
}
.vectoricons-card::before {
  content: '';
  position: absolute;
  top: -100px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--lime) 0%, transparent 70%);
  opacity: 0.18;
  pointer-events: none;
}
.vectoricons-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.vectoricons-logo {
  display: block;
  height: 40px;
  width: auto;
  margin: 0 auto 28px;
}
.vectoricons-section .section-eyebrow {
  color: var(--lime);
  margin-bottom: 14px;
}
.vectoricons-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  color: var(--bg);
}
.vectoricons-headline .hero-strong { color: var(--lime); }
.vectoricons-headline .hero-strong::after { display: none; }
.vectoricons-sub {
  margin: 0 auto 36px;
  font-size: 16px;
  max-width: 720px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}
.vectoricons-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin: 0 0 32px;
  text-align: left;
}
.vectoricons-feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-card);
  transition: border-color var(--transition), background-color var(--transition);
}
.vectoricons-feature:hover {
  border-color: var(--lime);
  background: rgba(204, 234, 74, 0.06);
}
.vectoricons-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--lime);
  color: var(--lime-fg);
  border-radius: var(--radius-sm);
  font-size: 18px;
  margin-bottom: 4px;
}
.vectoricons-feature strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--bg);
}
.vectoricons-feature span:not(.vectoricons-feature-icon) {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}
.vectoricons-pricing {
  margin: 0 0 24px;
}
.vectoricons-pricing-tag {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(204, 234, 74, 0.12);
  border: 1px solid rgba(204, 234, 74, 0.3);
  color: var(--lime);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.vectoricons-actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.vectoricons-actions .btn-primary {
  background: var(--lime);
  color: var(--lime-fg);
  border-color: var(--lime);
}
.vectoricons-actions .btn-primary:hover { opacity: 0.9; }
.vectoricons-actions .btn-secondary {
  background: transparent;
  color: var(--bg);
  border-color: rgba(255, 255, 255, 0.4);
}
.vectoricons-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--bg);
  opacity: 1;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--bg-soft);
  padding: 80px 32px;
}
.contact-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}
.contact-sub {
  margin: 0 auto 28px;
  color: var(--text-muted);
  font-size: 16px;
  max-width: 540px;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--shadow-xs);
}
.contact-email:hover {
  border-color: var(--text);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  opacity: 1;
  text-decoration: none;
}
.contact-email-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--lime);
  color: var(--lime-fg);
  border-radius: var(--radius-sm);
  font-size: 18px;
}
.contact-email-cta {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}
.contact-other {
  margin: 24px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.contact-other a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- CTA Band (rounded lime card) ---------- */
.cta-band {
  background: var(--bg);
  padding: 56px 32px;
}
.cta-band-card {
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--lime);
  border-radius: 28px;
  padding: 80px 48px;
  position: relative;
  overflow: hidden;
}
/* Faded illustrations background — shows the breadth of the GI library */
.cta-band-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/illustrations-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.18;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.cta-band-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: var(--lime-fg);
}
.cta-band-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  background: var(--text);
  border-radius: var(--radius-card);
  margin: 0 auto 20px;
  box-shadow: var(--shadow-md);
}
.cta-band-logo img { display: block; }
.cta-eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 600;
  margin: 0 0 12px;
  opacity: 0.7;
}
.cta-headline {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}
.cta-sub {
  margin: 0 auto 24px;
  font-size: 16px;
  max-width: 640px;
  line-height: 1.6;
}
.cta-sub a {
  color: var(--lime-fg);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cta-actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-actions .btn-primary {
  background: var(--text);
  color: var(--lime);
  border-color: var(--text);
}
.cta-actions .btn-primary:hover { opacity: 0.85; }
.cta-actions .btn-secondary {
  background: transparent;
  color: var(--lime-fg);
  border-color: var(--lime-fg);
}
.cta-actions .btn-secondary:hover { background: var(--lime-fg); color: var(--lime); opacity: 1; }

/* ---------- FAQ ---------- */
.faq {
  max-width: 920px;
  margin: 0 auto;
  padding: 80px 32px;
}
.faq .section-title { margin-bottom: 40px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 0;
  transition: border-color var(--transition);
}
.faq-item[open] { border-color: var(--text); }
.faq-item summary {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform var(--transition);
  width: 20px;
  text-align: center;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-answer {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
}
.faq-answer p { margin: 0 0 10px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { color: var(--text); font-weight: 600; }
.faq-answer code {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 2px 6px;
  background: var(--bg-soft);
  border-radius: 4px;
}
.faq-answer pre {
  margin: 12px 0;
  padding: 12px 14px;
  background: var(--bg-soft);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  overflow-x: auto;
}
.faq-answer pre code { background: transparent; padding: 0; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: opacity var(--transition);
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { opacity: 0.85; }
.btn-secondary { background: transparent; color: var(--text); }
.btn-secondary:hover { background: var(--bg-hover); opacity: 1; }
.btn-copy {
  font-family: var(--font-display);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition);
  font-weight: 600;
}
.btn-copy:hover { background: var(--bg-hover); border-color: var(--text); }
.btn-copy.is-copied { background: var(--lime); color: var(--lime-fg); border-color: var(--lime); }

/* ---------- Modal ---------- */
.modal-root[hidden] { display: none !important; }
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--bg-modal);
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  padding: 22px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px; height: 30px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: background-color var(--transition);
}
.modal-close:hover { background: var(--bg-hover); color: var(--text); }

.modal-head {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  align-items: center;
}
.modal-preview {
  width: 140px; height: 140px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.modal-svg-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
}
/* SVG width/height come from JS attributes — only enforce a max so very
   large user-chosen sizes don't overflow the preview tile. */
.modal-svg-wrap svg { display: block; max-width: 100%; max-height: 100%; }
.modal-meta { min-width: 0; }
.modal-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 4px;
  word-break: break-all;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: 0;
}
.modal-pack {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.modal-controls-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.ctrl {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.ctrl-size { flex: 1; min-width: 140px; }
.ctrl-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.ctrl-label strong { color: var(--text); font-weight: 700; }
.ctrl-color-wrap {
  position: relative;
  width: 36px; height: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  overflow: hidden;
}
#ctrlColor {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
#ctrlSize {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border-strong);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
#ctrlSize::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  background: var(--lime);
  border: 1px solid var(--text);
  border-radius: 50%;
  cursor: pointer;
}
#ctrlSize::-moz-range-thumb {
  width: 16px; height: 16px;
  background: var(--lime);
  border: 1px solid var(--text);
  border-radius: 50%;
  cursor: pointer;
}
.variants-row { display: flex; gap: 4px; }
.variant-btn {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.variant-btn:hover { color: var(--text); border-color: var(--text); }
.variant-btn.is-active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  font-weight: 600;
}

.modal-actions { display: flex; gap: 8px; }
.modal-actions-primary .btn-primary,
.modal-actions-primary .btn-secondary {
  flex: 1;
  padding: 11px 14px;
}

.modal-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.modal-tabs::-webkit-scrollbar { display: none; }
.modal-tab {
  background: transparent;
  border: 0;
  padding: 8px 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}
.modal-tab:hover { color: var(--text); }
.modal-tab.is-active {
  color: var(--text);
  border-bottom-color: var(--lime);
  font-weight: 600;
}

.snippet-box {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.snippet-block {
  display: block;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
  max-height: 120px;
  overflow-y: auto;
  white-space: pre;
  word-break: normal;
  margin: 0;
  background: transparent;
  border: 0;
}
.snippet-box .btn-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
}

.modal-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
  font-size: 11.5px;
}
.meta-chip .meta-key {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  font-weight: 600;
}
.meta-chip code {
  font-family: var(--font-mono);
  color: var(--text);
  font-size: 11.5px;
}
.meta-link {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}
.meta-link:hover { color: var(--text); opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.meta-link + .meta-link { margin-left: 12px; }

/* ---------- Footer (centered, matches the rest of the site) ---------- */
.site-footer {
  padding: 64px 32px 28px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-cols {
  max-width: 1080px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  justify-items: center;
}
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--text);
}
.footer-col a {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-col a:hover { color: var(--text); opacity: 1; }
.footer-mark {
  display: inline-block;
  width: 44px; height: 44px;
  margin-bottom: 14px;
}
.footer-name {
  font-family: var(--font-display);
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.footer-tagline {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 280px;
}
.footer-credit {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 280px;
}
.footer-credit a { display: inline; margin: 0; color: var(--text); font-weight: 500; }
.footer-meta {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .topbar { padding: 12px 16px; }
  .topbar-row-brand { margin-bottom: 8px; }
  .topbar-row-nav { gap: 12px; font-size: 13px; }
  .topbar-row-nav a:not(.topbar-cta):not(.nav-figma) { display: none; }
  .hero { padding: 36px 16px 28px; }
  .browse {
    grid-template-columns: 1fr;
    grid-template-areas: "toolbar" "sidebar" "grid";
    padding: 20px 16px 48px;
    gap: 16px;
  }
  .sidebar { position: static; max-height: 240px; }
  .pack-list { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .pack-pill { width: auto; }
  .pack-discovery, .frameworks-section, .cta-band, .faq, .vectoricons-section, .contact { padding: 48px 16px; }
  .vectoricons-card { padding: 40px 24px; border-radius: 20px; }
  .cta-band-card { padding: 48px 24px; border-radius: 20px; }
  .framework-grid { grid-template-columns: 1fr; }
  .framework-card.framework-figma { grid-column: 1; max-width: none; padding: 28px; }
  .contact-email { flex-direction: column; gap: 8px; padding: 16px; }
  .contact-email-cta { margin: 0; padding: 0; border: 0; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; padding: 0 16px; }
  .modal-card { padding: 18px 18px 16px; max-width: calc(100vw - 32px); }
  .modal-head { grid-template-columns: 80px 1fr; gap: 12px; }
  .modal-preview { width: 80px; height: 80px; }
  .modal-svg-wrap svg { width: 52px; height: 52px; }
}

@media (max-width: 600px) {
  .footer-cols { grid-template-columns: 1fr; }
  .browse-toolbar { gap: 8px; }
  .weight-filter { flex: 1; }
  .browse-count { width: 100%; text-align: right; margin-left: 0; }
}
