/* ============================================================
   Brand Logos — Design System & Stylesheet
   ============================================================ */

:root {
  --heading: #111111;
  --body: #262626;
  --body-muted: #737373;
  --body-faint: #a1a1aa;
  --background: #ffffff;
  --card-bg: #f4f4f5;
  --card-hover-bg: #e8e8eb;
  --border: rgba(0, 0, 0, 0.06);
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", sans-serif;
  --duration-smooth: .15s;
  --ease-smooth: cubic-bezier(.19, 1, .22, 1);
  --selection-color: #111111;
  --selection-bg: #efefef;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none;
}

*:focus,
*:focus-visible,
button:focus,
button:focus-visible,
a:focus,
a:focus-visible,
input:focus,
input:focus-visible,
div:focus,
div:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

button,
a,
.brand-card,
.variant-btn,
.bg-switch-btn,
.card-text-variant-btn {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

html,
body {
  min-height: 100%;
  color: var(--body);
  background-color: var(--background);
  font-family: var(--font-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.28);
}

a {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-smooth) var(--ease-smooth);
}

/* ── Top Header Bar (Layout Switcher Right) ── */
.brand-page-header {
  position: absolute;
  top: 2rem;
  left: 2rem;
  right: 2rem;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: calc(100% - 4rem);
}

/* ── Layout View Switcher Pill ── */
.layout-toggle-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: var(--card-bg);
  border-radius: 9999px;
  gap: 2px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: background-color var(--duration-smooth) var(--ease-smooth);
}

.layout-slider {
  position: absolute;
  top: 3px;
  left: 0;
  z-index: 1;
  height: calc(100% - 6px);
  width: 0;
  background: var(--background);
  border-radius: 9999px;
  transform: translateX(3px);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, width;
  pointer-events: none;
}

.layout-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: transparent;
  border: none;
  color: var(--body-faint);
  cursor: pointer;
  transition: color 0.2s var(--ease-smooth),
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.layout-btn:hover,
.layout-btn.active {
  color: var(--heading);
}

.layout-btn:active {
  transform: scale(0.90);
}

/* ── Page Main Layout ── */
.page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 7rem 2rem 4rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* ── Hero Section ── */
.header-hero {
  width: 100%;
  max-width: 36.375rem;
  margin: 0 auto 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.hero-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--heading);
  letter-spacing: -.015em;
}

.hero-subtitle {
  font-size: .925rem;
  color: var(--body-muted);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -.00563rem;
  max-width: 440px;
}

/* ── Brand Cards Grid ── */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  transition: grid-template-columns var(--duration-smooth) var(--ease-smooth);
}

.brand-grid.list-view {
  grid-template-columns: 1fr !important;
  max-width: 580px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .brand-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ── Brand Squircle Card ── */
.brand-card {
  position: relative;
  background-color: var(--card-bg);
  border: none !important;
  box-shadow: none !important;
  padding: 44px 28px 32px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  overflow: visible !important;
  transition: background-color var(--duration-smooth) var(--ease-smooth);
}

.brand-card:hover {
  background-color: var(--card-hover-bg);
}

/* ── Brand Card Content / Preview ── */
.brand-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 14px;
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 260px;
  height: 80px;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  color: var(--heading);
}

.icon-box img {
  max-width: 240px;
  max-height: 68px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.icon-box img.wide-logo {
  max-width: 250px;
  max-height: 72px;
}

.icon-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--heading);
  letter-spacing: -0.01em;
}

.brand-card-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: -2px;
}

.card-category-tag {
  font-size: 10px;
  font-weight: 500;
  color: var(--body-faint);
  background: rgba(0, 0, 0, 0.04);
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: 0.01em;
}

/* ── Wordmark / Text Variant Toggle Button ── */
.card-text-variant-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 5;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  color: var(--body-muted);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
}

.card-text-variant-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--heading);
  transform: scale(1.08);
}

.card-text-variant-btn.active {
  background: var(--heading);
  color: var(--background);
}

/* ── List View Adjustments ── */
.brand-grid.list-view .brand-card {
  min-height: 220px;
  padding: 44px 28px 32px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ── Gooey Morphing Search System ── */
.gooey-search-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}

.gooey-filter-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: url(#gooey-filter);
  padding: 10px 14px;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gooey-search-container.is-expanded .gooey-filter-stage {
  transform: translateX(24px);
}

.gooey-search-pill {
  position: relative;
  display: flex;
  align-items: center;
  height: 44px;
  width: 170px;
  background: var(--card-bg);
  color: var(--heading);
  border-radius: 9999px;
  padding: 0 16px;
  transition: width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease;
  z-index: 2;
  cursor: pointer;
}

.gooey-search-pill:hover,
.gooey-search-container.is-expanded .gooey-search-pill {
  background: var(--card-hover-bg);
}

.gooey-search-container.is-expanded .gooey-search-pill {
  width: 320px;
  cursor: text;
}

@media (max-width: 640px) {
  .gooey-search-pill {
    width: 155px;
  }

  .gooey-search-container.is-expanded .gooey-search-pill {
    width: min(250px, calc(100vw - 110px));
  }

  .gooey-search-pill input {
    font-size: 16px;
  }
}

.gooey-search-pill .search-icon {
  color: var(--body-muted);
  margin-right: 8px;
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), margin-right 0.3s ease, color 0.2s ease;
}

.gooey-search-pill:hover .search-icon {
  color: var(--heading);
}

.gooey-search-container.is-expanded .gooey-search-pill .search-icon {
  opacity: 0;
  transform: scale(0.4);
  margin-right: -16px;
  pointer-events: none;
}

.gooey-search-pill input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  color: var(--heading);
  outline: none;
}

.gooey-search-pill input::-webkit-search-decoration,
.gooey-search-pill input::-webkit-search-cancel-button,
.gooey-search-pill input::-webkit-search-results-button,
.gooey-search-pill input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  display: none;
}

.gooey-search-pill input::placeholder {
  color: var(--body-muted);
}

.gooey-icon-bubble {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  opacity: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card-hover-bg);
  color: var(--heading);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, background-color 0.25s ease;
}

.gooey-search-container.is-expanded .gooey-icon-bubble {
  transform: translateY(-50%) translateX(-48px) scale(1);
  opacity: 1;
}

.clear-search-btn {
  background: transparent;
  border: none;
  color: var(--body-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease 0.15s, color 0.15s ease, background-color 0.15s ease;
  flex-shrink: 0;
}

.clear-search-btn[hidden] {
  display: none !important;
}

.gooey-search-container.is-expanded .clear-search-btn:not([hidden]) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.clear-search-btn:hover {
  color: var(--heading);
  background: rgba(0, 0, 0, 0.06);
}

/* ── Buttons System ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 0;
  border-radius: 9999px;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease-smooth), opacity 0.2s var(--ease-smooth), transform 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--heading);
  color: var(--background);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--heading);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.09);
}

/* ── Skeleton Loading Animation ── */
.skeleton-card .icon-box.pulse {
  background: rgba(0, 0, 0, 0.06);
  animation: pulseBg 1.5s infinite ease-in-out;
}

.skeleton-card .text-pulse {
  color: var(--body-faint);
  animation: pulseBg 1.5s infinite ease-in-out;
}

@keyframes pulseBg {
  0% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.8;
  }

  100% {
    opacity: 0.4;
  }
}

/* ── Toast Notification ── */
.toast-notification {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 2000;
  background: #111111;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.25s ease;
}

.toast-notification.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Bottom Fade Overlay ── */
.bottom-fade-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--background) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 50;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .page-container {
    padding: 1.75rem 1.25rem 2.5rem;
  }

  .brand-page-header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .layout-toggle-pill {
    display: none !important;
  }

  .action-btn-group {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .action-btn-group .btn {
    width: 100%;
  }
}

/* ── Brand Subpage Detail Styles ── */
.subpage-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 1.5rem auto;
  padding: 0 0.5rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--body-muted);
  list-style: none;
}

.breadcrumb-list a {
  color: var(--body-muted);
  transition: color 0.15s ease;
}

.breadcrumb-list a:hover {
  color: var(--heading);
}

.breadcrumb-separator {
  color: var(--body-faint);
  font-size: 11px;
}

.breadcrumb-current {
  color: var(--heading);
  font-weight: 500;
}

.back-to-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--body-muted);
  padding: 6px 14px;
  background: var(--card-bg);
  border-radius: 9999px;
  transition: all 0.15s ease;
}

.back-to-home-btn:hover {
  color: var(--heading);
  background: var(--card-hover-bg);
}

.brand-detail-layout {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.brand-main-hero-card {
  background: var(--card-bg);
  border-radius: 28px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.brand-hero-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-hero-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-hero-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-hero-title {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--heading);
}

.brand-website-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--body-muted);
  background: rgba(0, 0, 0, 0.05);
  padding: 4px 10px;
  border-radius: 9999px;
  transition: all 0.15s ease;
}

.brand-website-link:hover {
  color: var(--heading);
  background: rgba(0, 0, 0, 0.09);
}

.brand-hero-meta-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.brand-cat-badge {
  font-size: 12px;
  font-weight: 500;
  color: var(--body-muted);
  background: rgba(0, 0, 0, 0.04);
  padding: 3px 10px;
  border-radius: 9999px;
}

.brand-hex-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  font-family: monospace;
  color: var(--heading);
  background: rgba(0, 0, 0, 0.04);
  padding: 3px 10px;
  border-radius: 9999px;
  cursor: pointer;
}

.brand-hex-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.snippets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.snippet-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.snippet-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.snippet-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--heading);
}

.snippet-copy-btn {
  background: transparent;
  border: none;
  color: var(--body-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.snippet-copy-btn:hover {
  color: var(--heading);
}

.snippet-code-block {
  background: #111111;
  color: #f4f4f5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.5;
}

.related-brands-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.related-section-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--heading);
  letter-spacing: -0.01em;
}

/* ============================================================
   Blog Article Page Styling (Matching Main Reicon Brands Design)
   ============================================================ */
.blog-container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
  color: var(--body);
  font-family: var(--font-primary);
  line-height: 1.7;
}

.blog-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.blog-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--card-bg);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--heading);
  text-decoration: none;
  transition: background-color var(--duration-smooth) var(--ease-smooth), transform 0.2s ease;
}

.blog-back-btn:hover {
  background: var(--card-hover-bg);
  color: var(--heading);
}

.blog-hero-img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  border-radius: 20px;
  background-color: var(--card-bg);
  margin-bottom: 2.5rem;
  display: block;
}

.blog-title {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--heading);
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

.short-answer-box {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--body);
  line-height: 1.6;
}

.short-answer-box strong {
  color: var(--heading);
  font-weight: 600;
}

.llm-citation-box {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.925rem;
  color: var(--body-muted);
  line-height: 1.6;
}

.llm-citation-box strong {
  color: var(--heading);
  font-weight: 600;
}

.blog-section {
  margin-bottom: 2.5rem;
}

.blog-section h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--heading);
  letter-spacing: -0.015em;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.blog-text p {
  font-size: 1rem;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.blog-text a {
  color: var(--heading);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.blog-text a:hover {
  color: var(--body-muted);
}

.faq-section {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.faq-section h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--heading);
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
}

.faq-item {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.5rem;
}

.faq-item p {
  font-size: 0.95rem;
  color: var(--body-muted);
  line-height: 1.6;
}

.product-cta-box {
  background-color: var(--card-bg);
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.product-cta-box h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--heading);
  letter-spacing: -0.02em;
}

.product-cta-box p {
  font-size: 0.95rem;
  color: var(--body-muted);
  max-width: 480px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--heading);
  color: #ffffff;
  font-size: 0.925rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 9999px;
  text-decoration: none;
  margin-top: 8px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-cta:hover {
  opacity: 0.88;
  color: #ffffff;
}