/* Entity authority prototype styles */

.entity-hero {
  padding: 4.5rem 0 3rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--color-border);
}

.entity-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 3rem;
  align-items: start;
  min-width: 0;
}

.entity-hero h1 {
  font-size: 3.6rem;
  line-height: 1.04;
  letter-spacing: 0;
  margin: 1rem 0 1.1rem;
  overflow-wrap: anywhere;
}

.entity-hero__lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-text-medium);
  max-width: 760px;
}

.entity-proof-panel {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.entity-proof-panel h2,
.entity-proof-panel h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.85rem;
}

.entity-proof-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.entity-proof-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.7rem;
  align-items: start;
  color: var(--color-text-medium);
  font-size: 0.95rem;
  line-height: 1.45;
  min-width: 0;
}

.entity-proof-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.entity-proof-list li::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(10, 37, 64, 0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230a2540' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 8.5 6.5 12 13 4.5'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
}

.entity-main {
  padding: 3rem 0 5rem;
}

.entity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 3rem;
  align-items: start;
}

.entity-prose {
  max-width: 780px;
}

.entity-prose > * + * {
  margin-top: 1.15rem;
}

.entity-prose h2 {
  font-size: 1.7rem;
  line-height: 1.18;
  letter-spacing: 0;
  margin-top: 3rem;
}

.entity-prose h3 {
  font-size: 1.18rem;
  margin-top: 1.9rem;
}

.entity-prose p,
.entity-prose li {
  color: var(--color-text-medium);
  font-size: 1.02rem;
  line-height: 1.72;
}

.entity-prose a:not(.btn):not(.seo-pkg-cta):not(.seo-pkg-choice) {
  color: var(--color-primary);
  font-weight: 600;
  border-bottom: 1px solid rgba(10, 37, 64, 0.25);
}

.entity-prose ul,
.entity-prose ol {
  padding-left: 1.35rem;
  display: grid;
  gap: 0.5rem;
}

.entity-callout {
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  background: #f8fafc;
  border-radius: 8px;
  padding: 1.2rem 1.35rem;
  margin: 2rem 0;
}

.entity-comparison {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.95rem;
}

.entity-comparison th,
.entity-comparison td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.entity-comparison th {
  background: #f8fafc;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.76rem;
}

.entity-sidebar {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 1rem;
}

.entity-sidebar__card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.1rem;
}

.entity-sidebar__card h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.85rem;
}

.entity-sidebar__card ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.entity-sidebar__card a:not(.btn) {
  color: var(--color-text);
  font-size: 0.92rem;
  line-height: 1.35;
}

/* Wide / solo layout (no sidebar) — used by conversion pages so the
   pricing cards get full room while body text stays a readable width. */
.entity-grid--solo {
  grid-template-columns: minmax(0, 1fr);
}
.entity-prose--solo {
  max-width: 1100px;
}
.entity-prose--solo > * {
  max-width: 800px;
}
.entity-prose--solo > .pkg-cards-wrap {
  max-width: 1100px;
}

.entity-section {
  padding: 4.5rem 0;
}

.entity-band {
  background: #061226;
  color: #fff;
  padding: 4.5rem 0;
}

.entity-band h2,
.entity-band h3 {
  color: #fff;
}

.entity-band p {
  color: rgba(255,255,255,0.72);
}

.entity-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  min-width: 0;
}

.entity-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.25rem;
  min-height: 100%;
  min-width: 0;
  overflow: hidden;
}

.entity-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.55rem;
  overflow-wrap: anywhere;
}

.entity-card p {
  color: var(--color-text-medium);
  font-size: 0.95rem;
  line-height: 1.6;
}

.entity-logo-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  overflow: hidden;
}

.entity-logo-row img {
  max-height: 30px;
  max-width: 130px;
  opacity: 0.78;
  filter: grayscale(1);
}

.entity-mobile-break {
  display: none;
}

@media (max-width: 980px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .entity-hero > .container,
  .entity-section.container,
  .entity-section > .container,
  .entity-band > .container,
  .entity-main.container {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .entity-hero,
  .entity-section,
  .entity-band {
    max-width: 100vw;
    overflow: hidden;
  }

  .entity-hero__grid,
  .entity-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .entity-proof-panel,
  .entity-card-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .entity-hero h1,
  .entity-hero__lead {
    width: auto;
    max-width: 100%;
  }

  .entity-mobile-break {
    display: block;
  }

  .entity-sidebar {
    position: static;
  }

  .entity-card-grid {
    grid-template-columns: 1fr;
  }

  .entity-review-cta {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 540px) {
  .entity-hero {
    padding: 3.25rem 0 2.5rem;
  }

  .entity-hero h1 {
    font-size: 1.75rem;
    line-height: 1.08;
  }

  .entity-prose h2,
  .entity-section h2,
  .entity-band h2 {
    font-size: 1.75rem;
  }

  .entity-hero__lead {
    font-size: 0.93rem;
  }

  .entity-logo-row img {
    max-width: 100%;
  }

  .entity-logo-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
  }

  .entity-proof-panel {
    padding: 1rem;
  }

  .entity-proof-list li {
    grid-template-columns: 18px 1fr;
    font-size: 0.9rem;
  }

  .entity-proof-list li::before {
    width: 18px;
    height: 18px;
  }
}

/* Breadcrumbs */
.crumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.crumbs a {
  color: var(--color-text-muted);
  border-bottom: none;
}
.crumbs a:hover { color: var(--color-primary); }
.crumbs span[aria-hidden] { opacity: 0.6; }

/* FAQ accordion */
.faq-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-answer {
  padding: 0 1.2rem 1.1rem;
  color: var(--color-text-medium);
  font-size: 0.95rem;
  line-height: 1.6;
}
.faq-answer p { margin: 0; }

/* Guide byline */
.guide-byline {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.guide-byline a { color: var(--color-primary); font-weight: 600; }

/* Author profiles */
.author-head {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.25rem;
}
.author-avatar {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--color-primary, #0a2540);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 0.02em;
}
.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.author-role {
  color: var(--color-text-muted);
  margin: 0 0 0.6rem;
  font-size: 0.98rem;
}
.author-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
  border-bottom: none;
}
.author-linkedin:hover { opacity: 0.8; }

/* Author / founder cards (about + authors index) */
.author-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.author-card {
  display: block;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.5rem;
  background: #fff;
  transition: border-color 0.2s, transform 0.2s;
}
.author-card:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.author-card__top { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.9rem; }
.author-card .author-avatar { width: 56px; height: 56px; font-size: 1.25rem; }
.author-card h3 { margin: 0; font-size: 1.1rem; color: var(--color-text); }
.author-card .author-role { font-size: 0.84rem; margin: 0.15rem 0 0; }
.author-card p { font-size: 0.94rem; color: var(--color-text-medium); line-height: 1.6; margin: 0; }

@media (max-width: 540px) {
  .author-head { gap: 1rem; }
  .author-avatar { width: 64px; height: 64px; font-size: 1.45rem; }
}
