/* Net Hub Chat — single hand-written stylesheet.
   Taken from nethub-support (itself the nethubkb shell) and reshaped for a
   sales landing page with a live chat stage. 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; }

/* ---- Article prose ---- */
.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); }
.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; }


/* ---- Hero: centred copy, then the video stage as the main element ---- */
.hero { padding: 22px 0 40px; }
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero-copy { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; max-width: 1040px; }
.hero h1 { font-size: clamp(28px, 3.1vw, 42px); line-height: 1.1; }
.hero .lede { font-size: 16px; line-height: 1.5; max-width: 760px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: var(--white); font-weight: 500; font-size: 14.5px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { color: #FF6B78; }
.ai-note { font-size: 13px; color: #9FB0B6; text-align: center; max-width: 640px; }
.ai-note a { color: var(--white); }

/* ---- Chat stage: 16:9 "video" with the guide behind the form card.
   Sized to fit the viewport height so it sits above the fold. ---- */
.stage {
  --bar: 56px;
  position: relative; width: min(100%, 1120px, max(760px, calc((100vh - 285px) * 16 / 9)));
  aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #0E2A33;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.stage-media { position: absolute; inset: 0; }
.stage-media img { width: 100%; height: 100%; object-fit: cover; display: block; transform: translateX(-19%); }
.stage-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 25, 31, 0) 38%, rgba(8, 25, 31, 0.7) 60%, #0E2A33 82%);
}
.stage-label {
  position: absolute; left: 20px; bottom: 18px; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(8, 25, 31, 0.72); color: var(--white); font-size: 13.5px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; backdrop-filter: blur(6px);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.25); }
.stage[data-current=live] .stage-media { display: none; }

.panel { display: flex; flex-direction: column; gap: 10px; padding: 22px 26px 22px; }
.panel-card {
  position: absolute; z-index: 2; top: 50%; right: 28px; transform: translateY(-50%);
  width: min(400px, calc(100% - 56px)); max-height: calc(100% - 40px); overflow: auto;
  background: var(--white); color: var(--ink); border-radius: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.panel h2 { font-size: 22px; font-weight: 700; line-height: 1.2; }
.panel-sub { color: var(--ink-soft); font-size: 14px; }
.panel-centre { align-items: center; justify-content: center; text-align: center; }
.panel-icon {
  width: 60px; height: 60px; border-radius: 50%; background: var(--grey); color: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.panel-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.panel label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.panel input:not([type=checkbox]) {
  height: 40px; padding: 0 13px; border-radius: 10px; border: 1px solid #CBD2D6; background: var(--white);
  color: var(--ink); font-size: 16px; font-weight: 400;
}
.panel input:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
.panel input[aria-invalid=true] { border-color: var(--red); }
.opt { font-weight: 400; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.panel label.consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
.consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--red); flex: 0 0 auto; }
.consent a { color: var(--ink); }
.form-error { background: #FDECEE; color: #9B1C28; border-radius: 10px; padding: 9px 13px; font-size: 13.5px; }
.btn-wide { width: 100%; justify-content: center; min-height: 48px; font-size: 16px; }
.panel-note { font-size: 12px; color: var(--ink-soft); text-align: center; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.spinner {
  width: 48px; height: 48px; border-radius: 50%; border: 4px solid var(--grey); border-top-color: var(--red);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Live call fills the whole stage, bar along the bottom. */
.call { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--navy); }
.call-frame { flex: 1; position: relative; }
.call-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.call-bar { height: var(--bar); flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; background: #0E2A33; color: var(--white); }
.call-timer { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.call-timer.is-low { color: #FF6B78; }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
.btn-ghost-dark { border: 1px solid rgba(255, 255, 255, 0.35); color: var(--white); background: transparent; cursor: pointer; font-family: inherit; }
.btn-ghost-dark:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
button.btn { border: 0; cursor: pointer; font-family: inherit; }
button.btn-ghost-dark { border: 1px solid rgba(255, 255, 255, 0.35); }

/* ---- Suggested questions ---- */
.ask { padding: 64px 0 8px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 9px 16px;
  font-size: 14.5px; font-weight: 500;
}

/* ---- Who it's for ---- */
.who { padding: 56px 0 8px; scroll-margin-top: 16px; }
.who-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.who-card { background: var(--white); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 8px; border-top: 4px solid var(--red); }
.who-card:nth-child(even) { border-top-color: var(--navy); }
.who-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--grey); color: var(--red); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.who-card h3 { font-size: 18px; font-weight: 700; }
.who-card p { color: var(--ink-soft); font-size: 14.5px; }

/* ---- Demo cards ---- */
.demos { padding: 56px 0 72px; scroll-margin-top: 16px; }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.demo-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;
}
.demo-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(8, 25, 31, 0.16); }
.demo-shot { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--navy); overflow: hidden; }
.demo-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.demo-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--white);
  background: linear-gradient(180deg, rgba(8, 25, 31, 0) 40%, rgba(8, 25, 31, 0.45));
}
.demo-play svg { filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4)); }
.demo-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.demo-body h3 { font-size: 17px; font-weight: 700; }
.demo-body p { font-size: 14px; color: var(--ink-soft); }
.open { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.demo-card:hover .open { color: var(--red); }

/* ---- Closing CTA ---- */
.cta { background: var(--navy); color: var(--white); padding: 48px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { font-size: 28px; font-weight: 700; }
.cta p { color: #C7D0D4; margin-top: 4px; }
.cta .panel-actions { justify-content: flex-start; margin: 0; }

/* ---- 404 ---- */
.empty { background: var(--white); border: 1px dashed #C9CED2; border-radius: 16px; padding: 32px; max-width: 720px; }
.empty h1 { font-size: 22px; margin-bottom: 6px; }
.empty a { color: var(--red); }
.empty-404 { margin: 64px auto; }
.page-privacy .prose { margin-top: 36px; }

/* ---- Small screens ---- */
/* Narrow: the guide still sits on top at 16:9, the form drops below it. */
@media (max-width: 860px) {
  .stage { width: 100%; aspect-ratio: auto; display: flex; flex-direction: column; background: var(--white); }
  .stage-media { position: relative; aspect-ratio: 16 / 9; }
  .stage-media img { transform: none; }
  .stage-media::after { background: linear-gradient(180deg, rgba(8, 25, 31, 0) 60%, rgba(8, 25, 31, 0.5)); }
  .panel-card { position: static; transform: none; width: auto; max-height: none; box-shadow: none; border-radius: 0; }
  .stage[data-current=live] { aspect-ratio: auto; }
  .call { position: relative; inset: auto; height: 78vh; }
}
@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; }
  .hero { padding: 24px 0 32px; }
  .facts { display: none; }
  .hero .lede { font-size: 15px; }
  .panel { padding: 22px 18px 24px; }
  .panel-actions .btn, .cta .btn { width: 100%; justify-content: center; }
}
@media (max-width: 380px) {
  .topbar-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .demo-card { transition: none; }
  .demo-card:hover { transform: none; }
  .spinner { animation-duration: 3s; }
}
