/* TBH Companion landing — editorial split (matches mock B) */

:root {
  --bg: #0f1117;
  --panel: #171a23;
  --card: #1d212c;
  --border: #2a2f3d;
  --fg: #e8eaf0;
  --muted: #8b93a7;
  --accent: #5ad17a;
  --accent-fg: #0c0f14;
  --gold: #e8c45a;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --page-pad: clamp(1.25rem, 4vw, 3rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--fg);
  background: var(--bg);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
}

@media (min-width: 861px) and (min-height: 720px) {
  body {
    height: 100%;
    overflow: hidden;
  }
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--page-pad) 0.65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fg);
  min-width: 0;
}

.brand:hover {
  opacity: 0.9;
}

.brand img {
  border-radius: 7px;
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.5rem);
  flex-shrink: 0;
}

.header-bmc {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0.28rem 0.75rem 0.22rem;
  border-radius: 999px;
  background: #ffdd00;
  color: #000;
  font-family: "Cookie", cursive;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid #000;
}

.header-bmc svg {
  display: block;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

.header-bmc:hover {
  filter: brightness(1.05);
}

.header-bmc:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.header-nav a:not(.header-bmc) {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.header-nav a:not(.header-bmc):hover {
  color: var(--fg);
}

/* Main */

.landing-main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: 0 var(--page-pad) clamp(1rem, 2vh, 1.5rem);
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.copy {
  max-width: 540px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.8vw, 3.35rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.h1-eyebrow {
  display: block;
  font-family: var(--font);
  font-size: 0.22em;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.lead {
  margin: 0 0 1.25rem;
  font-size: clamp(0.88rem, 1.6vw, 0.92rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 44ch;
}

/* Feature list */

.feature-lines {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.feature-lines li {
  display: grid;
  grid-template-columns: 16px minmax(88px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem 0.65rem;
  padding: 0.45rem 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.feature-lines li:last-child {
  border-bottom: none;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  color: var(--accent);
}

.feature-icon svg {
  display: block;
}

.feature-label {
  font-weight: 600;
  color: var(--accent);
}

.feature-desc {
  color: var(--muted);
  min-width: 0;
}

/* Actions */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.35rem;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition:
    filter 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.btn-icon {
  flex-shrink: 0;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  padding-left: 1.15rem;
  padding-right: 1.5rem;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  color: var(--fg);
  border-color: var(--border);
  background: transparent;
}

.btn-ghost:hover {
  border-color: rgba(90, 209, 122, 0.45);
  color: var(--accent);
}

/* Visual */

.visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: clamp(180px, 28vh, 280px);
}

.visual-glow {
  position: absolute;
  width: min(200px, 32vw);
  height: min(200px, 32vw);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(90, 209, 122, 0.12) 0%,
    rgba(90, 209, 122, 0.04) 50%,
    transparent 72%
  );
  pointer-events: none;
}

.icon-frame {
  position: relative;
  z-index: 1;
  padding: clamp(0.85rem, 2vw, 1.35rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.hero-icon {
  width: clamp(120px, 16vw, 210px);
  height: clamp(120px, 16vw, 210px);
  border-radius: 18px;
}

/* Stats bar */

.stats-bar {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 0.85rem var(--page-pad) 1rem;
}

.stats-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
}

.stat-block {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  justify-content: center;
  min-width: 0;
  padding: 0 0.5rem;
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.stat-icon svg {
  display: block;
}

.stat-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.stat-value {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--fg);
}

.stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  justify-self: center;
}

/* Footer */

.site-footer {
  padding: 0.75rem var(--page-pad) 1.25rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
  margin-inline: auto;
}

.footer-link {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-link:hover {
  color: var(--accent);
}

/* Tablet */

@media (max-width: 860px) {
  .landing-main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .copy {
    max-width: none;
  }

  .visual {
    order: -1;
    min-height: 160px;
  }

  .lead {
    max-width: none;
  }

  h1 {
    font-size: clamp(1.85rem, 7vw, 2.75rem);
  }
}

/* Mobile */

@media (max-width: 560px) {
  .site-header {
    padding-top: 0.85rem;
    flex-wrap: wrap;
  }

  .header-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 0.5rem;
  }

  .feature-lines li {
    grid-template-columns: 16px 1fr;
    row-gap: 0.15rem;
  }

  .feature-label {
    grid-column: 2;
  }

  .feature-desc {
    grid-column: 2;
    font-size: 12px;
    line-height: 1.45;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .stats-inner {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .stat-divider {
    display: none;
  }

  .stat-block {
    justify-content: flex-start;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border);
  }

  .stat-block:last-child {
    border-bottom: none;
  }

  .stat-value {
    font-size: 1.2rem;
  }
}

@media (max-width: 380px) {
  .brand span {
    font-size: 0.88rem;
  }

  .header-nav a:not(.header-bmc) {
    font-size: 12px;
  }

  .hero-icon {
    width: 108px;
    height: 108px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
