/*
 * assets/css/components.css
 * Homepage component styles: hero, pricing cards, diagnostic list, mechanism grid
 *
 * LOAD ORDER: Must be loaded after layout.css and utilities.css.
 * All values reference tokens from variables.css.
 */


/* ==========================================================================
   HERO COMPONENT
   ========================================================================== */

.hero__eyebrow {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-block-end: var(--space-4);
}

.hero__headline {
  font-size: var(--text-5xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  margin-block-end: var(--space-6);
  max-width: 20ch;
  color: var(--color-text-primary);
}

.hero__subhead {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  max-width: 55ch;
  line-height: 1.6;
  margin-block-end: var(--space-8);
}

.hero__cta-group {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
}

.text-accent {
  color: var(--color-accent-primary);
}


/* ==========================================================================
   SECTION HELPERS
   ========================================================================== */

/* Reusable eyebrow label above section h2 */
.section-eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-block-end: var(--space-3);
}

/* Reusable subtitle below section h2 */
.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 60ch;
  margin-block: var(--space-4) var(--space-12);
  line-height: 1.6;
}


/* ==========================================================================
   DIAGNOSTIC LIST (HOME-02)
   ========================================================================== */

.diagnostic-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-block: var(--space-8);
  max-width: 65ch;
}

.diagnostic-list li {
  padding-inline-start: var(--space-8);
  position: relative;
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.diagnostic-list li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--color-accent-primary);
  font-weight: var(--font-weight-bold);
}

.diagnostic-footer {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  font-style: italic;
  margin-block-start: var(--space-4);
  max-width: 65ch;
}


/* ==========================================================================
   AGITATION LIST (HOME-03)
   ========================================================================== */

.agitation-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-block: var(--space-8);
  max-width: 65ch;
}

.agitation-list li {
  padding-inline-start: var(--space-8);
  position: relative;
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.agitation-list li strong {
  display: block;
  color: var(--color-text-primary);
  font-size: var(--text-lg);
  margin-block-end: var(--space-2);
}

.agitation-list li::before {
  content: "\2715";
  position: absolute;
  left: 0;
  color: var(--color-accent-primary);
  font-weight: var(--font-weight-bold);
}


/* ==========================================================================
   AI MECHANISM GRID (CRED-01)
   ========================================================================== */

.mechanism-grid {
  margin-block-start: var(--space-12);
}

.mechanism-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--border-radius-lg);
  padding: var(--space-8);
}

.mechanism-card h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent-primary);
  margin-block-end: var(--space-4);
}

.mechanism-card p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
}


/* ==========================================================================
   PRICING CARDS (SVC-01)
   ========================================================================== */

.pricing-grid {
  margin-block-start: var(--space-12);
  align-items: start;
}

.pricing-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--border-radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.pricing-card--featured {
  border-color: var(--color-border-accent);
  transform: translateY(-8px);
}

@media (max-width: 640px) {
  .pricing-card--featured {
    transform: none;
  }
}

.pricing-card__badge {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin: 0;
}

.pricing-card__name {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin: 0;
}

.pricing-card__description {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
  margin: 0;
}

.pricing-card__features li {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  padding-inline-start: var(--space-6);
  position: relative;
}

.pricing-card__features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-accent-primary);
  font-weight: var(--font-weight-bold);
}

.pricing-card__price {
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  margin: 0;
  margin-block-start: auto;
}

.pricing-card__price strong {
  color: var(--color-accent-primary);
}

.pricing-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-block-start: var(--space-8);
  max-width: 60ch;
}

.pricing-note--footnote {
  font-size: var(--text-xs);
  margin-block-start: var(--space-2);
}


/* ==========================================================================
   FINAL CTA SECTION
   ========================================================================== */

.final-cta {
  text-align: center;
  max-width: 55ch;
  margin-inline: auto;
}

.final-cta h2 {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  line-height: 1.2;
  margin-block-end: var(--space-6);
}

.final-cta p {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-block-end: var(--space-8);
}


/* ==========================================================================
   PROCESS STEPS — Services page workflow walkthrough
   ========================================================================== */

.process-steps {
  list-style: none;
  padding: 0;
  counter-reset: process-counter;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-block-start: var(--space-12);
  max-width: 65ch;
}

.process-step {
  counter-increment: process-counter;
  padding-inline-start: var(--space-16);
  position: relative;
}

.process-step::before {
  content: counter(process-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: var(--space-8);
  height: var(--space-8);
  background-color: var(--color-accent-primary);
  color: var(--color-bg-base);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-sm);
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step__title {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-block-end: var(--space-2);
}

.process-step__body {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
}


/* ==========================================================================
   FOUNDER BIO — About page
   ========================================================================== */

.founder-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-12);
  align-items: start;
}

.founder-photo {
  margin: 0;
}

.founder-photo img {
  width: 100%;
  /* 320px display width = 2x density for the 640px source */
  max-width: 320px;
  /* Override the height attribute so the 4:5 ratio is preserved when CSS scales the width */
  height: auto;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border-subtle);
  display: block;
}

.founder-bio h2 {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-block-end: var(--space-2);
}

.founder-bio h2 a {
  color: inherit;
  text-decoration: none;
}

.founder-bio h2 a:hover,
.founder-bio h2 a:focus-visible {
  color: var(--color-accent-primary);
  text-decoration: underline;
}

.founder-title {
  font-size: var(--text-lg);
  color: var(--color-accent-primary);
  font-weight: var(--font-weight-medium);
  margin-block-end: var(--space-6);
}

.founder-credentials {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-block-start: var(--space-6);
}

.founder-credentials li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-inline-start: var(--space-6);
  position: relative;
}

.founder-credentials li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-accent-primary);
  font-weight: var(--font-weight-bold);
}


/* ==========================================================================
   CONTACT — Objection list and cal.com embed placeholder
   ========================================================================== */

.objection-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-block-start: var(--space-8);
  max-width: 60ch;
}

.objection-list dt {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-block-end: var(--space-2);
}

.objection-list dd {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-inline-start: 0;
}

.cal-embed-placeholder {
  min-height: 600px;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block-start: var(--space-8);
}

.cal-embed-placeholder__text {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-align: center;
}

.cal-embed-placeholder__text a {
  color: var(--color-accent-primary);
}

/* ==========================================================================
   PLAN 04-02: Intake form placeholder — thank-you.html
   ========================================================================== */

.intake-form-placeholder {
  margin-top: var(--space-8);
  padding: var(--space-8);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--border-radius-lg);
  background-color: var(--color-bg-elevated);
}

.intake-form-placeholder h2 {
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.intake-form-placeholder p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.intake-form-placeholder p em {
  color: var(--color-text-muted);
  font-style: italic;
}


/* ============================================================
   FAQ Accordion
   Target: <details class="faq-item"> / <summary class="faq-item__question">
   Used on: index.html#faq, services.html#faq
   ============================================================ */

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-block-start: var(--space-12);
  max-width: 65ch;
}

.faq-item {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--color-border-accent);
}

.faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6) var(--space-8);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  cursor: pointer;
  list-style: none;
  gap: var(--space-4);
}

/* Remove default disclosure triangle */
.faq-item__question::-webkit-details-marker {
  display: none;
}

/* Custom +/− expand indicator */
.faq-item__question::after {
  content: "+";
  font-size: var(--text-xl);
  color: var(--color-accent-primary);
  flex-shrink: 0;
  font-weight: var(--font-weight-regular);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-item__question::after {
  content: "−";
}

.faq-item__answer {
  padding: 0 var(--space-8) var(--space-6);
}

.faq-item__answer p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}


/* ==========================================================================
   BLOG CARDS
   Blog index card grid — follows .mechanism-card and .pricing-card patterns.
   Used by: blog/index.html
   ========================================================================== */

.blog-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: border-color 150ms ease;
}

.blog-card:hover {
  border-color: var(--color-border-accent);
}

.blog-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.blog-card__body {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  height: 100%;
}

.blog-card__date {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.blog-card__title {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.3;
}

.blog-card__excerpt {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.blog-card__read-more {
  font-size: var(--text-sm);
  color: var(--color-accent-primary);
  font-weight: var(--font-weight-medium);
}


/* ==========================================================================
   BLOG POST PROSE
   Article layout for individual blog posts.
   Used by: blog/blog-post-template.html and all blog post pages.
   ========================================================================== */

.blog-post__header {
  margin-block-end: var(--space-12);
  border-bottom: 1px solid var(--color-border-subtle);
  padding-block-end: var(--space-8);
}

.blog-post__date {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-block-end: var(--space-4);
}

.blog-post__excerpt {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-block-start: var(--space-4);
}

/* Prose container — constrains line length for readability */
.blog-post__body {
  max-width: 70ch;
}

.blog-post__body h2 {
  font-size: var(--text-3xl);
  margin-block: var(--space-12) var(--space-6);
}

.blog-post__body h3 {
  font-size: var(--text-2xl);
  margin-block: var(--space-8) var(--space-4);
}

.blog-post__body p {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-block-end: var(--space-6);
}

.blog-post__body ul,
.blog-post__body ol {
  padding-inline-start: var(--space-6);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-block-end: var(--space-6);
}

.blog-post__body a {
  color: var(--color-accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ==========================================================================
   LANDING PAGE HEADER
   Minimal logo-only header for landing pages.
   Does NOT use the <site-header> Web Component — landing pages strip the nav.
   Used by: landing/*/index.html pages only. Not used on main site pages.
   ========================================================================== */

.landing-header {
  background-color: var(--color-bg-elevated);
  border-bottom: 1px solid var(--color-border-subtle);
  padding-block: var(--space-4);
}

.landing-header .container {
  display: flex;
  align-items: center;
}

.landing-header__logo {
  text-decoration: none;
}

/* Wordmark mirrors site-header__wordmark for brand consistency */
.landing-header__wordmark {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent-primary);
  letter-spacing: -0.02em;
}


/* ==========================================================================
   DIRECTORY COMPONENTS
   Brand directory listing and profile page styles.
   Used by: directory/index.html, directory/[brand-slug]/index.html
   ========================================================================== */

/* Directory Hero */
.directory-hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-24) var(--space-16);
  border-bottom: 1px solid var(--color-border-subtle);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--color-accent-primary) 14%, transparent), transparent 38%),
    radial-gradient(circle at right 15%, color-mix(in srgb, var(--color-bg-card-hover) 65%, transparent), transparent 42%),
    linear-gradient(180deg, color-mix(in srgb, var(--color-bg-elevated) 88%, transparent), var(--color-bg-base));
}

.directory-page {
  padding-bottom: var(--space-24);
}

.directory-hero__grid {
  display: grid;
  gap: var(--space-12);
  align-items: end;
}

@media (min-width: 900px) {
  .directory-hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  }
}

.directory-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.directory-hero__copy .section-subtitle {
  max-width: 60ch;
}

.directory-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.directory-hero__note {
  max-width: 58ch;
  margin: var(--space-6) 0 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.directory-hero__panel {
  position: relative;
  padding: var(--space-8);
  border: 1px solid color-mix(in srgb, var(--color-border-accent) 40%, var(--color-border-subtle));
  border-radius: 24px;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--color-bg-card) 92%, transparent), color-mix(in srgb, var(--color-bg-elevated) 70%, transparent));
  box-shadow: 0 24px 80px color-mix(in srgb, var(--color-bg-base) 65%, transparent);
}

.directory-hero__panel-label {
  margin: 0 0 var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.directory-hero__panel-copy {
  margin: var(--space-6) 0 0;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.directory-hero__stats {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.directory-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border-subtle);
  background: color-mix(in srgb, var(--color-bg-base) 22%, transparent);
}

.directory-stat__value {
  color: var(--color-text-primary);
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  font-weight: var(--font-weight-bold);
  line-height: 1;
}

.directory-stat__label {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* Directory Filter Nav */
.directory-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  -webkit-overflow-scrolling: touch;
}

.directory-filter__pill {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--border-radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-subtle);
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
  background: color-mix(in srgb, var(--color-bg-card) 88%, transparent);
  white-space: nowrap;
  font-family: inherit;
}

.directory-filter__pill:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-1px);
}

.directory-filter__pill--active {
  background: var(--color-accent-primary);
  color: var(--color-navy-950);
  border-color: var(--color-accent-primary);
}

.directory-filter__pill--active:hover {
  border-color: var(--color-accent-primary);
}

/* Directory Card */
.directory-featured {
  padding-block: var(--space-16) var(--space-12);
}

.directory-section-heading {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

@media (min-width: 900px) {
  .directory-section-heading {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.7fr);
    align-items: end;
  }
}

.directory-section-heading h2 {
  margin: 0;
}

.directory-section-heading__copy {
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.directory-featured__grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.directory-featured-card,
.directory-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  border-radius: 24px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--color-bg-card) 92%, transparent), color-mix(in srgb, var(--color-bg-base) 88%, transparent));
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.directory-featured-card:hover,
.directory-card:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-3px);
  box-shadow: 0 24px 60px color-mix(in srgb, var(--color-bg-base) 70%, transparent);
}

.directory-card__visual {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border-subtle);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--color-bg-elevated) 85%, transparent), color-mix(in srgb, var(--color-bg-card-hover) 78%, transparent));
}

/* Soft inner frame so light storefront captures sit comfortably on dark. */
.directory-card__visual::after,
.brand-profile__image-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-bg-base) 35%, transparent),
              inset 0 -32px 44px -30px color-mix(in srgb, var(--color-bg-base) 78%, transparent);
}

.brand-profile__image-shell {
  position: relative;
}

.directory-card__visual img,
.brand-profile__image-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Typographic card — brands without a captured storefront get an editorial,
   image-free entry instead of a placeholder visual. */
.directory-card--text {
  position: relative;
}

.directory-card--text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-primary), transparent 65%);
  opacity: 0.55;
}

.directory-card--text .directory-card__body,
.directory-card--text .directory-featured-card__body {
  padding: var(--space-8) var(--space-6);
}

.directory-card__domain {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.directory-featured-card__body,
.directory-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 100%;
}

.directory-card__badges,
.brand-profile__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.directory-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  border-radius: var(--border-radius-full);
  border: 1px solid color-mix(in srgb, var(--color-border-accent) 30%, var(--color-border-subtle));
  background: color-mix(in srgb, var(--color-bg-base) 25%, transparent);
  color: var(--color-text-secondary);
  font-size: 0.72rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.directory-badge--featured {
  color: var(--color-navy-950);
  background: var(--color-accent-primary);
  border-color: var(--color-accent-primary);
}

.directory-card__name {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.directory-card__summary {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
}

.directory-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.directory-card__stats li,
.directory-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: var(--border-radius-full);
  background: color-mix(in srgb, var(--color-bg-elevated) 88%, transparent);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.3;
}

.directory-tag--muted {
  color: var(--color-text-muted);
}

.directory-card__tags,
.brand-profile__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.directory-card__actions,
.brand-profile__hero-actions,
.brand-profile__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-top: auto;
}

.directory-card__store-link {
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
}

.directory-card__store-link:hover,
.brand-profile__url:hover,
.directory-breadcrumb:hover {
  color: var(--color-text-primary);
}

.directory-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.directory-controls__tools {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.directory-search__input {
  min-width: 220px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--border-radius-full);
  border: 1px solid var(--color-border-subtle);
  background: color-mix(in srgb, var(--color-bg-card) 88%, transparent);
  color: var(--color-text-primary);
  font: inherit;
  font-size: var(--text-sm);
  transition: border-color 150ms ease;
}

.directory-search__input:focus {
  outline: none;
  border-color: var(--color-border-accent);
}

.directory-search__input::placeholder {
  color: var(--color-text-muted);
}

.directory-sort {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-secondary);
}

.directory-sort__label {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.directory-sort__select {
  min-width: 180px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-card);
  color: var(--color-text-primary);
  font: inherit;
}

.directory-results-intro {
  margin-bottom: var(--space-8);
  max-width: 64ch;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.directory-grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

/* Brand Profile Page */
.brand-profile-hero {
  padding-block: var(--space-12) var(--space-8);
}

.directory-breadcrumb {
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--space-6);
  color: var(--color-text-muted);
  text-decoration: none;
}

.brand-profile {
  display: grid;
  gap: var(--space-8);
}

.brand-profile__name {
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin: 0;
  line-height: 0.96;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.brand-profile__lede {
  margin: var(--space-4) 0 0;
  max-width: 60ch;
  color: var(--color-text-secondary);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.7;
}

.brand-profile__domain {
  margin: var(--space-2) 0 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.brand-profile__badges {
  margin-top: var(--space-4);
}

.brand-profile__visual {
  min-width: 0;
}

.brand-profile__image-shell {
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--color-border-accent) 38%, var(--color-border-subtle));
  background: linear-gradient(160deg, color-mix(in srgb, var(--color-bg-card) 94%, transparent), color-mix(in srgb, var(--color-bg-elevated) 70%, transparent));
  box-shadow: 0 30px 90px color-mix(in srgb, var(--color-bg-base) 72%, transparent);
}

.brand-profile__grid {
  display: grid;
  gap: var(--space-8);
  padding-top: var(--space-4);
}

@media (min-width: 960px) {
  .brand-profile,
  .brand-profile__grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  }

  /* Sparse profiles have no visual panel — the intro owns the full width. */
  .brand-profile--sparse {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand-profile--sparse .brand-profile__intro {
    max-width: 72ch;
  }

  /* When no facts survive the empty-data filter, the story owns the row. */
  .brand-profile__grid--single {
    grid-template-columns: minmax(0, 1fr);
  }
}

.brand-profile__fact-value--tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.brand-profile__facts,
.brand-profile__story,
.brand-profile__cta {
  border: 1px solid var(--color-border-subtle);
  border-radius: 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--color-bg-card) 92%, transparent), color-mix(in srgb, var(--color-bg-base) 88%, transparent));
}

.brand-profile__facts {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.brand-profile__fact {
  display: grid;
  gap: var(--space-1);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border-subtle) 88%, transparent);
}

.brand-profile__fact:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.brand-profile__fact-label {
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.brand-profile__fact-value {
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--color-text-primary);
}

.brand-profile__story {
  padding: var(--space-6);
}

.brand-profile__section + .brand-profile__section {
  margin-top: var(--space-8);
}

.brand-profile__description {
  margin: 0;
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.brand-profile__cta {
  margin-top: var(--space-8);
  padding: var(--space-6);
}

.brand-profile__cta h2 {
  margin: 0 0 var(--space-3);
}

.brand-profile__cta-subtext {
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.brand-profile__owner-note {
  margin: var(--space-4) 0 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* Empty state for category filter */
.directory-empty {
  text-align: center;
  padding: var(--space-12);
  color: var(--color-text-muted);
  font-size: var(--text-base);
  grid-column: 1 / -1;
}

@media (max-width: 639px) {
  .directory-hero {
    padding-block: var(--space-16) var(--space-12);
  }

  .directory-hero__panel,
  .directory-card__body,
  .brand-profile__facts,
  .brand-profile__story,
  .brand-profile__cta {
    padding: var(--space-5, 1.25rem);
  }
}
