/* Shared visual polish, install bar, prerequisite callout, comparison table, and Hub diagram styles for index.html, coral.html, and hub.html. */

/* Prevent horizontal overflow on narrow mobile screens while preserving position: sticky/fixed behavior */
html, body {
  overflow-x: clip;
  max-width: 100%;
}

/* Header Hub-login clarity without crowding 390px */
@media (max-width: 480px) {
  .snav.snav-has-search .snav-login,
  .snav.snav-has-search .snav-cta,
  .snav.snav-has-search .snav-toggle {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 13px;
  }
}

/* ── Compact Hero & Atmospheric Backdrop ─────────────────────────────────── */
html body section.hero-v2 {
  padding: 84px 24px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 55% at 50% -10%, rgba(88, 166, 255, 0.14), transparent 70%);
}
.hero-v2 .container {
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(22, 27, 34, 0.9);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
}
.hero-eyebrow .eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  flex: none;
}
.hero-eyebrow strong {
  color: var(--text-primary);
}
.hero-v2 h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.025em;
  margin: 0 auto 10px;
  max-width: 820px;
  text-wrap: balance;
}
.hero-v2 h1 .accent {
  color: var(--accent);
}
.hero-v2 .hero-sub {
  font-size: clamp(16px, 2vw, 18.5px);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 18px;
  line-height: 1.5;
}
.hero-v2 .hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.hero-v2 .btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
}
.hero-v2 .btn-primary {
  background: var(--accent-dim);
  color: #fff;
  box-shadow: 0 4px 20px rgba(31, 111, 235, 0.35);
}
.hero-v2 .btn-primary:hover {
  background: var(--accent);
  color: #0a0e14;
}
.hero-platform-links {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
}
.hero-platform-links a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hero-platform-links a:hover {
  color: var(--text-primary);
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 18px;
}
.hero-inline-note {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}
.hero-inline-note strong {
  color: var(--text-primary);
}

/* ── Copyable Terminal Install Bar ───────────────────────────────────────── */
.install-box {
  max-width: 820px;
  margin: 14px auto 0;
  background: #0d1117;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.install-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  background: #161b22;
  border-bottom: 1px solid var(--border);
}
.install-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.install-tab {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 5px 10px;
  min-height: 36px;
  cursor: pointer;
}
.install-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}
.install-tab.is-active {
  color: var(--text-primary);
  background: #0d1117;
  border-color: var(--border-light);
}
.install-meta {
  font-size: 13px;
  color: var(--text-muted);
}
.install-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}
.install-cmd {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.5;
  color: #e6edf3;
  padding: 4px 2px;
  scrollbar-width: thin;
}
.install-cmd::before {
  content: "$ ";
  color: var(--accent);
  user-select: none;
}
.copy-btn {
  flex: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  min-height: 38px;
  min-width: 72px;
  padding: 6px 14px;
  border-radius: 7px;
  border: 1px solid var(--border-light);
  background: #161b22;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.copy-btn:hover {
  border-color: var(--accent);
  background: #1c2129;
}
.copy-btn[data-copied="1"] {
  border-color: var(--success);
  color: var(--success);
}
.install-alt-row {
  padding: 7px 14px 9px;
  border-top: 1px solid var(--border);
  background: rgba(22, 27, 34, 0.45);
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}
.install-alt-row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  color: var(--text-secondary);
  background: #161b22;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.hero-trust {
  margin: 12px auto 0;
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 780px;
}
.hero-trust strong {
  color: var(--text-primary);
}
.hero-trust a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hero-trust a:hover {
  color: var(--text-primary);
}

/* ── Hero Showcase Window ────────────────────────────────────────────────── */
.hero-showcase {
  max-width: 1020px;
  margin: 18px auto 0;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: #0d1117;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  text-align: left;
}
.hero-showcase-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  background: #161b22;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}
.hero-showcase-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-showcase-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #30363d;
  display: inline-block;
}
.hero-showcase-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-right: auto;
}
.sample-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(88, 166, 255, 0.1);
  border: 1px solid rgba(88, 166, 255, 0.3);
  color: var(--accent);
  white-space: nowrap;
}
.hero-showcase img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-showcase-cap {
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--text-secondary);
  background: #0d1117;
  border-top: 1px solid var(--border);
}

/* ── Quiet Hub Strip ─────────────────────────────────────────────────────── */
.hub-quiet {
  padding: 18px 24px;
  background: #0d1117;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.install-band {
  padding: 28px 24px 0;
  background: var(--bg-primary);
}
.install-band .install-box {
  margin: 0 auto;
}
.hub-quiet-inner {
  max-width: 1020px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 14.5px;
  color: var(--text-secondary);
}
.hub-quiet-inner strong {
  color: var(--text-primary);
}
.hub-quiet-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.hub-quiet-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--accent);
}

/* ── Problem & Positioning Section ───────────────────────────────────────── */
.problem-band {
  padding: 72px 24px;
  background: var(--bg-primary);
}
.problem-band .container {
  max-width: 1120px;
  margin: 0 auto;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 32px;
}
.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}
.problem-kicker {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #e3b341;
  margin-bottom: 8px;
}
.problem-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.35;
}
.problem-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}
.positioning-callout {
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.1), rgba(22, 27, 34, 0.95));
  border: 1px solid rgba(88, 166, 255, 0.35);
  border-radius: 14px;
  padding: 26px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}
.positioning-quote {
  font-size: clamp(19px, 2.5vw, 25px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 720px;
  margin: 0;
}
.positioning-quote span {
  color: var(--accent);
}
.positioning-sub {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin: 8px 0 0;
  max-width: 720px;
}
@media (max-width: 820px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Prerequisite + Download Layout ──────────────────────────────────────── */
.prereq-card {
  max-width: 1020px;
  margin: 0 auto 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 22px 24px;
  text-align: left;
}
.prereq-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
}
.prereq-head h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.prereq-head p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}
.prereq-clis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.prereq-cli {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  min-width: 0;
}
.prereq-cli-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.prereq-cli-top a {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text-primary);
}
.prereq-cli > code {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  color: var(--accent);
  padding: 2px 0;
}
@media (max-width: 820px) {
  .prereq-clis {
    grid-template-columns: 1fr;
  }
}

/* Step 4 Hub bridge on coral.html */
.start-steps-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
@media (max-width: 760px) {
  .start-steps-4 {
    grid-template-columns: 1fr !important;
  }
}

/* ── Also Works With Strip ───────────────────────────────────────────────── */
.also-works {
  padding: 40px 24px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.also-works-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
}
.also-works h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}
.also-works p {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin: 0;
}
.also-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.also-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

/* ── Comparison Table (Mobile-Stackable) ─────────────────────────────────── */
.compare-band {
  padding: 72px 24px;
  background: var(--bg-primary);
}
.compare-band .container {
  max-width: 1120px;
  margin: 0 auto;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 28px;
  font-size: 14.5px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.compare-table th,
.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}
.compare-table thead th {
  background: var(--bg-card);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}
.compare-table th.coral-col,
.compare-table td.coral-col {
  background: rgba(88, 166, 255, 0.06);
}
.compare-table thead th.coral-col {
  color: var(--accent);
}
.compare-table td:first-child {
  font-weight: 700;
  color: var(--text-primary);
}
.compare-table td.coral-col {
  color: var(--text-primary);
  font-weight: 600;
}
@media (max-width: 680px) {
  .compare-table,
  .compare-table thead,
  .compare-table tbody,
  .compare-table tr,
  .compare-table td {
    display: block;
    width: 100%;
  }
  .compare-table thead {
    position: absolute;
    left: -9999px;
  }
  .compare-table {
    background: transparent;
    border: 0;
  }
  .compare-table tr {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
  }
  .compare-table td {
    border: 0;
    padding: 5px 0;
    font-size: 14.5px;
  }
  .compare-table td.coral-col {
    background: rgba(88, 166, 255, 0.08);
    padding: 6px 10px;
    border-radius: 6px;
    margin: 4px 0;
  }
  .compare-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2px;
  }
  .compare-table td:first-child::before {
    display: none;
  }
}

/* ── Walkthrough Video Section (Below the Fold) ──────────────────────────── */
.tour-section {
  padding: 72px 24px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}
.tour-section .container {
  max-width: 960px;
  margin: 0 auto;
}
.tour-frame {
  margin-top: 24px;
}
.tour-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: #0d1117;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

/* ── Hub Diagram & Tab Overview ──────────────────────────────────────────── */
.hero-diagram img.hub-diagram-desktop {
  display: block;
}
.hero-diagram img.hub-diagram-mobile {
  display: none;
}
@media (max-width: 700px) {
  .hero-diagram img.hub-diagram-desktop {
    display: none;
  }
  .hero-diagram img.hub-diagram-mobile {
    display: block;
    max-width: 350px;
    margin: 0 auto;
  }
}
.hub-tabs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.hub-tab-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-align: left;
}
.hub-tab-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
}
.hub-tab-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 820px) {
  .hub-tabs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .hub-tabs-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile refinements */
@media (max-width: 768px) {
  html body section.hero-v2 {
    padding: 82px 16px 28px;
  }
}
@media (max-width: 640px) {
  html body section.hero-v2 {
    padding: 82px 16px 28px;
  }
  .hero-v2 .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-eyebrow {
    border-radius: 14px;
    padding: 6px 12px;
    font-size: 12.5px;
    line-height: 1.35;
  }
  .hero-v2 .hero-buttons .btn {
    width: 100%;
    max-width: 100%;
  }
  .install-row {
    flex-wrap: wrap;
  }
  .install-row .copy-btn {
    width: 100%;
  }
  .prereq-cli-top .copy-btn {
    width: auto;
    flex: none;
  }
  .hub-quiet {
    padding: 16px;
  }
  .problem-band,
  .compare-band,
  .tour-section {
    padding: 52px 16px;
  }
  .positioning-callout {
    padding: 20px 18px;
  }
}
