/* Net Hub Demo — single hand-written stylesheet, forked from nethub-support.
   Taken from the nethubkb shell (site.css + home.css) and trimmed for a
   public site. Brand: Navy #08191F dominant dark, Red #E73746 accent/CTA,
   Grey #F2F2F2, White. Poppins substitutes the licensed brand faces.
   Light theme only, zero external requests. */

/* ---- Fonts (self-hosted) ---- */
@font-face { font-family: Poppins; font-weight: 400; font-style: normal; font-display: swap; src: url('/static/fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: Poppins; font-weight: 400; font-style: italic; font-display: swap; src: url('/static/fonts/poppins-400i.woff2') format('woff2'); }
@font-face { font-family: Poppins; font-weight: 500; font-style: normal; font-display: swap; src: url('/static/fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: Poppins; font-weight: 600; font-style: normal; font-display: swap; src: url('/static/fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: Poppins; font-weight: 700; font-style: normal; font-display: swap; src: url('/static/fonts/poppins-700.woff2') format('woff2'); }

:root {
  --navy: #08191F;
  --red: #E73746;
  --red-dark: #C42B39;
  --grey: #F2F2F2;
  --white: #FFFFFF;
  --border: #E6E6EA;
  --ink: #08191F;
  --ink-soft: #4A5A61;
  --teal: #00B3BA;
  --amber: #FCBF00;
  --radius: 13px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: Poppins, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--grey); line-height: 1.55;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
a { color: inherit; }
img { max-width: 100%; }
input { font: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--white); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---- Top bar ---- */
.topbar {
  background: var(--navy); display: flex; align-items: center; gap: 18px;
  padding: 14px 24px; flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar-logo { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.topbar-logo img { width: 180px; height: auto; }  /* brand minimum for the master lockup */
.topbar-tag {
  color: var(--white); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, 0.25);
}
.topbar-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.topbar-nav a { color: var(--white); text-decoration: none; font-weight: 500; font-size: 14px; padding: 7px 10px; border-radius: 8px; }
.topbar-nav a:hover { background: rgba(255, 255, 255, 0.1); }

/* ---- Hero ---- */
.hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; padding: 72px 0 120px; }
.hero::before {
  content: ""; position: absolute; right: -160px; top: -240px; width: 720px; height: 720px;
  border-radius: 50%; background: var(--red); opacity: 0.14;
}
.hero::after {
  content: ""; position: absolute; right: 280px; bottom: -280px; width: 440px; height: 440px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.08);
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; }
.kicker { font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #FF6B78; }
.hero h1 { font-size: clamp(38px, 5.5vw, 60px); line-height: 1.04; font-weight: 700; letter-spacing: -0.01em; }
.lede { font-size: 18px; line-height: 1.6; color: #C7D0D4; max-width: 560px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: 10px; font-weight: 600; font-size: 14.5px; text-decoration: none;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: #163540; }
.btn-ghost { border: 1px solid var(--border); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--navy); }

/* ---- Section heading ---- */
.head { margin-bottom: 24px; }
.head h2 { font-size: 28px; font-weight: 700; line-height: 1.2; }
.head h2::before { content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--red); margin-bottom: 12px; }
.head p { color: var(--ink-soft); font-size: 15.5px; margin-top: 6px; max-width: 640px; }

/* ---- Topic cards (KB area cards) ---- */
.topics { padding: 72px 0; scroll-margin-top: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card {
  display: flex; flex-direction: column; background: var(--white); border-radius: 16px; overflow: hidden;
  text-decoration: none; box-shadow: 0 2px 8px rgba(8, 25, 31, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(8, 25, 31, 0.16); }
.band {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  height: 112px; padding: 0 24px; background: var(--band); overflow: hidden; color: var(--white);
}
.band::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 200px; height: 200px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.08);
}
.band-icon {
  width: 56px; height: 56px; border-radius: 14px; background: rgba(255, 255, 255, 0.14); color: var(--white);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.count { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; }
.count strong { font-size: 32px; font-weight: 700; line-height: 1; }
.count span { font-size: 12.5px; font-weight: 500; opacity: 0.85; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px 22px; flex: 1; }
.card-body h3 { font-size: 19px; font-weight: 700; line-height: 1.25; }
.card-body p { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.open { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.card:hover .open { color: var(--red); }

/* ---- Article prose ---- */
.article-crumb { color: var(--ink-soft); margin: 28px auto 0; max-width: 780px; }
.article-crumb a:hover { color: var(--ink); }
.prose {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(24px, 5vw, 48px); margin: 14px auto 64px; max-width: 780px;
}
.prose h1, .prose h2, .prose h3, .prose h4 { font-weight: 600; line-height: 1.3; margin: 1.4em 0 0.5em; }
.prose h1 { font-size: 30px; font-weight: 700; margin-top: 0; }
.prose h2 { font-size: 22px; }
.prose h3 { font-size: 18px; }
.prose p, .prose ul, .prose ol { margin-bottom: 1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 0.3em; }
.prose a { color: var(--red); }
.prose code { background: var(--grey); border-radius: 5px; padding: 0.1em 0.35em; font-size: 0.9em; font-family: ui-monospace, Consolas, monospace; }
.prose blockquote { border-left: 3px solid var(--red); padding-left: 16px; color: var(--ink-soft); margin-bottom: 1em; }
.prose table { border-collapse: collapse; width: 100%; margin-bottom: 1em; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.prose th { background: var(--grey); font-weight: 600; }
.prose img { border-radius: 8px; border: 1px solid var(--border); }
.article-meta { color: var(--ink-soft); font-size: 13.5px; margin: -0.3em 0 1.6em; }
.article-help { margin-top: 2em; padding: 16px 18px; background: var(--grey); border-radius: 10px; font-size: 14.5px; }
.draft-flag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  background: #FFF4CC; color: #6B5000; border-radius: 999px; padding: 3px 10px; margin-bottom: 14px;
}

/* ---- Footer ---- */
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.65); text-align: center; padding: 40px 24px; font-size: 13px; }
.footer img { width: 180px; height: auto; margin-bottom: 14px; }
.footer-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.footer-links a { color: var(--white); text-decoration: none; font-weight: 500; }
.footer-links a:hover { text-decoration: underline; }

/* ---- Top bar CTA ---- */
.topbar-nav a.topbar-cta { background: var(--red); }
.topbar-nav a.topbar-cta:hover { background: var(--red-dark); }

/* ---- Hero + gate ---- */
.hero { padding: 64px 0 80px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; }
.promise { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 4px; }
.promise li { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 15px; }
.promise svg { color: var(--teal); }
.gate {
  background: var(--white); color: var(--ink); border-radius: 18px; padding: 30px 30px 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); border-top: 5px solid var(--red);
  display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 16px;
}
.gate h2 { font-size: 24px; font-weight: 700; line-height: 1.2; }
.gate-sub { color: var(--ink-soft); font-size: 14.5px; margin-top: -8px; }
.field { display: flex; flex-direction: column; gap: 5px; flex: 1 1 0; min-width: 0; }
.field span { font-size: 13.5px; font-weight: 600; }
.field em { font-style: normal; font-weight: 400; color: var(--ink-soft); }
.field input, .switch select {
  height: 46px; padding: 0 14px; border: 1px solid #CBD2D6; border-radius: 10px; background: var(--white); color: var(--ink); font-size: 15px; width: 100%;
}
.field input:focus, .switch select:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field-row { display: flex; gap: 12px; }
.sets { border: 0; display: flex; flex-direction: column; gap: 8px; }
.sets legend { font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.set { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.set:has(input:checked) { border-color: var(--red); background: #FFF5F6; }
.set input { margin-top: 4px; accent-color: var(--red); }
.set strong { display: block; font-size: 14.5px; }
.set small { display: block; color: var(--ink-soft); font-size: 13px; line-height: 1.45; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft); }
.consent input { margin-top: 4px; accent-color: var(--red); }
.consent a { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gate-error { color: #B3261E; background: #FDECEC; border-radius: 8px; padding: 9px 12px; font-size: 14px; }
.btn { border: 0; cursor: pointer; font-family: inherit; }
.btn-block { width: 100%; justify-content: center; min-height: 52px; font-size: 16px; }
.btn[disabled] { opacity: 0.65; cursor: progress; }

/* ---- Sections ---- */
.try { padding: 72px 0 40px; scroll-margin-top: 16px; }
.card { cursor: default; }
.card:hover { transform: none; box-shadow: 0 2px 8px rgba(8, 25, 31, 0.06); }
.band { height: 92px; }
.steps { padding: 32px 0 40px; }
.steps-list { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.steps-list li { counter-increment: step; background: var(--white); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.steps-list li::before { content: counter(step); width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: var(--white); font-weight: 700; display: grid; place-items: center; margin-bottom: 6px; }
.steps-list strong { font-size: 18px; }
.steps-list span { color: var(--ink-soft); font-size: 14.5px; }
.faq { padding: 32px 0 80px; scroll-margin-top: 16px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq details { background: var(--white); border-radius: 12px; padding: 16px 20px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { color: var(--ink-soft); margin-top: 8px; font-size: 15px; }
.faq-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---- Play launcher ---- */
.play-head { background: var(--navy); color: var(--white); padding: 48px 0 56px; }
.play-head .wrap { display: flex; flex-direction: column; gap: 12px; }
.play-head h1 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.1; }
.play-head .lede strong { color: var(--white); }
.play-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: -28px; position: relative; }
.tile {
  background: var(--white); border-radius: 18px; padding: 28px; text-decoration: none; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 18px 44px rgba(8, 25, 31, 0.14); border-top: 5px solid var(--red); transition: transform 0.18s ease;
}
.tile + .tile { border-top-color: var(--navy); }
.tile:hover { transform: translateY(-3px); }
.tile[aria-disabled="true"] { pointer-events: none; opacity: 0.6; }
.tile-icon { width: 60px; height: 60px; border-radius: 14px; background: var(--grey); color: var(--red); display: grid; place-items: center; }
.tile h2 { font-size: 24px; }
.tile p { color: var(--ink-soft); }
.tile:hover .open { color: var(--red); }
.play-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 64px; }
.switch { display: flex; align-items: center; gap: 10px; }
.switch label { font-weight: 600; font-size: 14px; }
.switch select { width: auto; }

/* ---- Small screens ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .topbar { padding: 12px 16px; gap: 10px; }
  .topbar-logo img { width: 150px; }
  .topbar-nav a { padding: 6px 8px; font-size: 13px; }
  .topbar-nav a:not(.topbar-cta) { display: none; }
  .hero { padding: 36px 0 48px; }
  .gate { padding: 24px 18px 20px; }
  .field-row { flex-direction: column; }
  .grid, .play-grid { grid-template-columns: 1fr; }
  .try { padding: 56px 0 24px; }
}
@media (max-width: 380px) {
  .topbar-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile { transition: none; }
  .tile:hover { transform: none; }
}
