/* Shared styles for Honest Pitch pages at /p/* */
:root {
  --hp-primary: #e51923;
  --hp-primary-dark: #b8141c;
  --hp-success: #16a34a;
  --hp-danger: #dc2626;
  --hp-warning: #d97706;
  --hp-gold: #f59e0b;
  --hp-bg: #0b0f14;
  --hp-surface: #111827;
  --hp-surface-raised: #1a2332;
  --hp-border: #2f3336;
  --hp-border-subtle: #1f2937;
  --hp-text: #e7e9ea;
  --hp-text-muted: #9ca3af;
  --hp-text-faint: #6b7280;
  --hp-score-green:   #34d399;
  --hp-score-yellow:  #fbbf24;
  --hp-score-orange:  #fb923c;
  --hp-score-red:     #f87171;
  --hp-radius: 12px;
  --hp-max: 1200px;
  --hp-hype: #f59e0b;
  --hp-reality: #10b981;
}

html[data-pitch-theme="light"] {
  --hp-bg: #f3f4f6;
  --hp-surface: #ffffff;
  --hp-surface-raised: #f9fafb;
  --hp-border: #e5e7eb;
  --hp-border-subtle: #f3f4f6;
  --hp-text: #111827;
  --hp-text-muted: #4b5563;
  --hp-text-faint: #6b7280;
}

html[data-pitch-theme="light"] a {
  color: #b45309;
}

html[data-pitch-theme="light"] .mockup-ribbon {
  background: linear-gradient(90deg, #dbeafe, #e0e7ff);
  color: #1e40af;
}

html[data-pitch-theme="light"] .hp-code-pill {
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--hp-bg);
  color: var(--hp-text);
  line-height: 1.55;
}

a {
  color: #fbbf24;
}

code {
  font-family: Consolas, Monaco, "Courier New", monospace;
  word-break: break-word;
}

.mockup-ribbon {
  background: linear-gradient(90deg, #1e3a5f, #312e81);
  border-bottom: 1px solid var(--hp-border);
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
}

.hp-topbar {
  max-width: var(--hp-max);
  margin: 0 auto;
  padding: 1rem 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hp-search-bar {
  display: none; /* hidden on very small screens */
  flex: 1;
  max-width: 300px;
  align-items: center;
  background: var(--hp-surface-raised);
  border: 1px solid var(--hp-border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  color: var(--hp-text-muted);
  font-size: 0.875rem;
}
@media (min-width: 600px) {
  .hp-search-bar { display: flex; }
}
.hp-search-bar svg {
  margin-right: 0.5rem;
  opacity: 0.7;
}

.hp-logo {
  font-weight: 800;
  font-size: 1rem;
  color: var(--hp-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.hp-logo span {
  color: var(--hp-gold);
}

.hp-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 0.875rem;
  font-weight: 700;
  color: #60a5fa;
  background: #0f172a;
  border: 1px solid var(--hp-primary);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.25);
}

.pitch-page {
  max-width: var(--hp-max);
  padding: 2rem;
  background: var(--hp-surface);
}

html[data-pitch-theme="light"] .pitch-page {
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

.pitch-toolbar {
  /* v3 (2026-06-09): the h1.pitch-title moved into the header.
     Layout is a 3-column grid — logo on the left (with the
     optional HP-code pill), h1 centered, theme toggle on the
     right. Each child is placed explicitly with grid-column so
     the conditional .hp-code-pill doesn't drag the h1 out of
     the middle column. */
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hp-border-subtle);
}

.pitch-toolbar .hp-logo {
  grid-column: 1;
  margin: 0;
  padding: 0;
}

.pitch-toolbar .hp-code-pill {
  /* Pinned to the left column next to the logo, never the middle. */
  grid-column: 1;
  justify-self: start;
}

/* h1 sits in the middle column. `text-align: center` keeps long
   titles visually centered even if they wrap. */
.pitch-toolbar .pitch-title {
  grid-column: 2;
  margin: 0;
  text-align: center;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--hp-text);
  /* If the title overflows, truncate with an ellipsis instead
     of pushing the toggle off the row on narrow viewports. */
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pitch-toolbar .pitch-theme-toggle {
  grid-column: 3;
}

.pitch-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hp-text-muted);
  background: var(--hp-surface-raised);
  border: 1px solid var(--hp-border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.pitch-theme-toggle:hover {
  color: var(--hp-text);
  border-color: var(--hp-text-faint);
}

.pitch-theme-toggle__icon {
  font-size: 1rem;
  line-height: 1;
}

.pitch-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .pitch-layout {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 2rem;
    align-items: start;
  }

  .pitch-col--rail {
    position: sticky;
    top: 1rem;
    align-self: start;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding-right: 0.25rem;
  }

  .pitch-col--rail .pitch-pros-cons {
    grid-template-columns: 1fr;
  }

  .pitch-col--rail .honestscore-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pitch-col--rail .honestscore-ring {
    margin: 0 auto;
  }

  .pitch-col--rail .pitch-cta-wrapper {
    position: static;
    background: none;
    padding: 0;
    margin-top: 0;
  }

  #vote-widget-mount .vote-widget,
  #vote-widget-mount > .vote-widget {
    max-width: none;
    margin-top: 0;
  }
}

@media (max-width: 600px) {
  .pitch-page {
    margin: 0 auto;
    padding: 1rem;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }

  .pitch-toolbar {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }

  .pitch-toolbar .pitch-title {
    /* Allow the long hero title to wrap on very narrow viewports
       so the theme toggle isn't pushed off the row. The desktop
       `nowrap` + `ellipsis` rule remains in effect above 600px. */
    font-size: 0.9rem;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.2;
  }
}

.disclosure-ribbon {
  background: #422006;
  border: 1px solid #92400e;
  border-radius: var(--hp-radius);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.disclosure-badge {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
}

.pitch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.hp-chip {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--hp-surface-raised);
  border: 1px solid var(--hp-border);
  color: var(--hp-text-muted);
}

.hp-chip--active {
  background: #14532d;
  border-color: #16a34a;
  color: #86efac;
}

.hp-chip--audience {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 0.8125rem;
  max-width: 100%;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
  border-radius: var(--hp-radius);
  overflow: hidden;
  margin-bottom: 0.75rem;
  border: 1px solid var(--hp-border);
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  /* The static "Video placeholder — add embed when ready" block.
     Removed from the stage layout (no more empty rectangles
     below the pitch title) but the class is kept here in case
     a future mockup inherits it from a pre-stage template. */
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  text-align: center;
  padding: 1.5rem;
}

.video-play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--hp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.5);
}

.video-play::after {
  content: "";
  border: 14px solid transparent;
  border-left: 22px solid #fff;
  margin-left: 6px;
}

.video-meta {
  font-size: 0.8125rem;
  color: var(--hp-text-muted);
}

.disclosure-inline {
  font-size: 0.75rem;
  color: var(--hp-text-faint);
  margin: 0 0 1.25rem;
}

.honestscore-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.honestscore-hero--green {
  border-color: var(--hp-score-green);
  box-shadow: 0 0 32px rgba(52, 211, 153, 0.12);
}

.honestscore-hero--yellow {
  border-color: #b45309;
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.08);
}

.honestscore-hero--orange {
  border-color: var(--hp-score-orange);
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.08);
}

.honestscore-hero--red {
  border-color: var(--hp-score-red);
  box-shadow: 0 0 24px rgba(248, 113, 113, 0.12);
}

.honestscore-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 4px solid var(--hp-gold);
  background: #0f172a;
}

.honestscore-hero--green .honestscore-ring {
  border-color: var(--hp-score-green);
}

.honestscore-hero--yellow .honestscore-ring {
  border-color: var(--hp-score-yellow);
}

.honestscore-hero--orange .honestscore-ring {
  border-color: var(--hp-score-orange);
}

.honestscore-hero--red .honestscore-ring {
  border-color: var(--hp-score-red);
}

.honestscore-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--hp-gold);
}

.honestscore-hero--green .honestscore-value {
  color: var(--hp-score-green);
}

.honestscore-hero--yellow .honestscore-value {
  color: var(--hp-score-yellow);
}

.honestscore-hero--orange .honestscore-value {
  color: var(--hp-score-orange);
}

.honestscore-hero--red .honestscore-value {
  color: var(--hp-score-red);
}

.honestscore-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hp-text-faint);
  margin-top: 0.15rem;
}

.honestscore-meta h2 {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.honestscore-meta p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--hp-text);
}

.metrics-illustration-note {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #93c5fd;
}

.hp-versus-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.25rem;
  font-size: 0.875rem;
  line-height: 1.45;
}

.hp-versus-table th,
.hp-versus-table td {
  border: 1px solid var(--hp-border);
  padding: 0.65rem 0.75rem;
  vertical-align: top;
  text-align: left;
}

.hp-versus-table thead th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--hp-surface-raised);
  color: var(--hp-text-muted);
}

.hp-versus-table thead th.hp-versus-new {
  color: var(--hp-gold);
}

.hp-versus-table tbody th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  width: 24%;
  background: var(--hp-surface);
  color: var(--hp-text-muted);
}

.pitch-pas-kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hp-gold);
  margin: 0 0 1rem;
}

.pitch-body--pas h2 {
  font-size: 1.125rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--hp-text);
}

.pitch-benefits-short {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.pitch-benefits-short li {
  margin-bottom: 0.5rem;
}

.pitch-body a {
  color: #fbbf24;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pitch-figure {
  margin: 1.25rem 0;
  padding: 0;
}

.pitch-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--hp-radius);
  border: 1px solid var(--hp-border);
}

.pitch-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--hp-text-faint);
  font-style: italic;
}

.pitch-figure--timeline {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.pitch-figure--timeline img {
  border: none;
  border-radius: 12px;
}

.pitch-details {
  margin: 1rem 0 1.25rem;
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  padding: 0.75rem 1rem;
}

.pitch-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--hp-text-muted);
  list-style-position: outside;
}

.pitch-details[open] summary {
  margin-bottom: 0.75rem;
  color: var(--hp-gold);
}

.pitch-details .hp-metrics {
  margin-top: 0.5rem;
}

.hp-versus-table tbody td.hp-versus-new {
  background: rgba(245, 158, 11, 0.08);
}

.honestscore-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--hp-text-muted);
}

.honestscore-stats strong {
  color: var(--hp-text);
}

.hp-metrics {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hp-metric {
  display: grid;
  grid-template-columns: 7.5rem 1fr 2.5rem 2.5rem;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8125rem;
}

.hp-metric-label {
  color: var(--hp-text-muted);
  font-weight: 500;
}

.hp-metric-track {
  height: 6px;
  background: var(--hp-surface-raised);
  border-radius: 999px;
  overflow: hidden;
}

.hp-metric-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--hp-primary), #fbbf24);
  border-radius: 999px;
}

.hp-metric-fill--green {
  background: linear-gradient(90deg, #047857, var(--hp-score-green));
}

.hp-metric-fill--yellow {
  background: linear-gradient(90deg, #b45309, var(--hp-score-yellow));
}

.hp-metric-fill--orange {
  background: linear-gradient(90deg, #c2410c, var(--hp-score-orange));
}

.hp-metric-fill--red {
  background: linear-gradient(90deg, #b91c1c, var(--hp-score-red));
}

.hp-metric-value {
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hp-metric-count {
  color: var(--hp-text-faint);
  font-size: 0.75rem;
  text-align: right;
}

.pitch-header {
  margin-bottom: 1rem;
}

.pitch-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.pitch-byline {
  font-size: 0.9rem;
  color: var(--hp-text-muted);
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.inline-badge {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-left: 0.25rem;
  margin-top: -1px;
}

.badge-verified {
  display: inline-block;
  background: #14532d;
  color: #86efac;
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-weight: 600;
  margin-left: 0.25rem;
}

.badge-founding {
  display: inline-block;
  background: linear-gradient(135deg, #78350f, #b45309);
  color: #fef3c7;
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-weight: 700;
  margin-left: 0.25rem;
}

.listing-countdown {
  font-size: 0.8125rem;
  color: #86efac;
  margin: 0.5rem 0 0;
}

.pitch-lead {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #d1d5db;
  margin-bottom: 1.25rem;
}

.pitch-lead strong {
  color: var(--hp-text);
}

.pitch-body h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
  color: var(--hp-text);
}

.pitch-body p,
.pitch-body li {
  font-size: 0.9375rem;
  color: #d1d5db;
}

.pitch-body ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.pitch-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}

.pros,
.cons {
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  padding: 1rem;
}

.pros h2 {
  color: var(--hp-success);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
}

.cons h2 {
  color: var(--hp-warning);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
}

.pros ul,
.cons ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.875rem;
}

.pitch-claims {
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.pitch-claims h2 {
  margin-top: 0;
  font-size: 0.9375rem;
}

.pitch-claims ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.claim-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--hp-border-subtle);
  font-size: 0.875rem;
}

.claim-item:last-child {
  border-bottom: none;
}

.claim-evidence {
  font-size: 0.75rem;
}

.badge-self-attested {
  font-size: 0.65rem;
  background: var(--hp-surface-raised);
  color: var(--hp-text-faint);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.pitch-cta-wrapper {
  /* The .pitch-cta-wrapper class is preserved for the legacy
     pitchCta() macro (www/src/_includes/_macros/pitch-cta.njk)
     which still emits it. The sticky-bottom positioning used
     to live here; the stage layout's CTA bar is now a
     fixed-position element in pitch-stage.css, so this class
     no longer applies any positioning by default. */
  margin-top: 1.5rem;
}

html[data-pitch-theme="light"] .pitch-cta-wrapper {
  /* see above — sticky background was removed. */
}

.pitch-cta {
  display: block;
  text-align: center;
  background: var(--hp-primary);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}

.pitch-cta:hover {
  background: var(--hp-primary-dark);
  text-decoration: none;
}

.cta-meta {
  text-align: center;
  font-size: 0.75rem;
  color: var(--hp-text-faint);
  margin: 0.5rem 0 0;
}

.rate-panel {
  background: var(--hp-surface);
  border: 1px dashed var(--hp-border);
  border-radius: var(--hp-radius);
  padding: 1.25rem;
  margin-top: 2rem;
  opacity: 0.85;
}

.rate-panel h2 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.rate-panel p {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--hp-text-muted);
}

.rate-panel .mock-note {
  font-size: 0.75rem;
  color: var(--hp-text-faint);
  font-style: italic;
}

.pitch-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hp-border);
  text-align: center;
  font-size: 0.75rem;
  color: var(--hp-text-faint);
}

@media (max-width: 600px) {
  .honestscore-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.25rem 1rem;
  }

  .honestscore-ring {
    margin: 0 auto;
  }

  .honestscore-stats {
    justify-content: center;
  }

  .hp-metric {
    grid-template-columns: 6.5rem 1fr 2rem;
  }

  .hp-metric-count {
    display: none;
  }

  .pitch-pros-cons {
    grid-template-columns: 1fr;
  }

  .hp-versus-table {
    font-size: 0.75rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .hp-versus-table th,
  .hp-versus-table td {
    padding: 0.4rem 0.5rem;
  }
}
