/* ==========================================================================
   KVN Billing — marketing site
   One stylesheet, no external fonts or scripts, no build step.
   Palette matches the product: teal 700 brand, ink, warm paper.
   ========================================================================== */

:root {
  --ink: #0a1a2f;
  --ink-soft: #16294a;
  --paper: #fbf8f1;
  --card: #ffffff;
  --teal: #1d4ed8;
  --teal-bright: #2563eb;
  --teal-wash: #eef3ff;
  --teal-line: #c9d8f8;
  --line: #e8e1d4;
  --muted: #5b6474;
  --gold: #b45309;
  --red: #b42318;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(11, 28, 26, .05);
  --shadow-md: 0 2px 4px rgba(11, 28, 26, .04), 0 22px 48px -28px rgba(11, 28, 26, .38);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { height: auto; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-bright); }

:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: #bff0e7; color: var(--ink); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 241, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -.01em;
  font-size: 17px;
  white-space: nowrap;
}
.brand img { width: 38px; height: 38px; display: block; border-radius: 9px; }
.brand span small {
  display: block;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--teal); }
.site-nav a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--teal); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.site-header.nav-open .nav-toggle .icon-menu { display: none; }
.site-header.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 1px 2px rgba(11, 28, 26, .18);
}
.btn-primary:hover { background: linear-gradient(135deg, #1e40af, #172554); color: #fff; }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--teal-line); background: #fff; color: var(--teal); }

.btn-light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.btn-light:hover { background: #e9f6f2; color: var(--ink); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }

.btn-sm { padding: 8px 13px; font-size: 13.5px; border-radius: 9px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
  color: var(--teal);
  font-size: 14.5px;
}
.text-link:hover { gap: 9px; }
.text-link { transition: gap .15s ease; }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.28rem; letter-spacing: -.01em; }
h4 { font-size: 1.02rem; letter-spacing: 0; }

p { margin: 0 0 1em; }
.lede {
  font-size: clamp(1.02rem, 1.4vw, 1.17rem);
  color: var(--muted);
  line-height: 1.62;
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 16px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: currentColor;
  display: inline-block;
}

.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(46px, 5.5vw, 76px); }
.section-tight { padding-block: clamp(30px, 3.6vw, 48px); }
.section-head { max-width: 720px; margin-bottom: clamp(24px, 3.4vw, 38px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p:last-child { margin-bottom: 0; }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(38px, 4.6vw, 62px) clamp(30px, 3.8vw, 50px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 460px at 84% -12%, #dfe9ff 0%, rgba(223, 233, 255, 0) 62%),
    radial-gradient(700px 420px at 4% 102%, #e3f7e9 0%, rgba(227, 247, 233, 0) 60%),
    radial-gradient(520px 320px at 48% 6%, #fff1d8 0%, rgba(255, 241, 216, 0) 68%),
    linear-gradient(180deg, #fffdf8 0%, var(--paper) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal-line), transparent);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero h1 em {
  font-style: normal;
  color: var(--teal);
  position: relative;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .06em;
  height: .09em;
  background: linear-gradient(90deg, #1d4ed8, #0d9488 55%, #d97706);
  z-index: -1;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 20px; }
.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
}
.hero-note svg { width: 16px; height: 16px; color: var(--teal); flex: 0 0 auto; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.hero-facts span { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts svg { width: 15px; height: 15px; color: var(--teal); }

.hero-media { position: relative; }
.hero-media .frame { box-shadow: 0 3px 6px rgba(11, 28, 26, .05), 0 40px 70px -40px rgba(11, 28, 26, .5); }

.floating-card {
  position: absolute;
  left: -18px;
  bottom: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.floating-card strong {
  display: block;
  font-size: 17px;
  color: var(--ink);
  font-family: var(--serif);
  letter-spacing: -.01em;
}
.floating-card .dot {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--teal-wash);
  color: var(--teal);
  display: grid;
  place-items: center;
}
.floating-card .dot svg { width: 16px; height: 16px; }

/* ---------- Browser frame around previews ---------- */

.frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f0f5f2;
  border-bottom: 1px solid var(--line);
}
.frame-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd8d3;
  display: block;
}
.frame-bar i:nth-child(2) { background: #d9e4df; }
.frame-bar i:nth-child(3) { background: #e3ece8; }
.frame-logo {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: block;
  margin-left: 6px;
  flex: 0 0 auto;
}
.frame-bar span {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: #7b8e88;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 2px 10px;
}
.frame > img { display: block; width: 100%; height: auto; }

/* ---------- Stats strip ---------- */

.stats {
  border-block: 1px solid var(--line);
  background: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 20px clamp(16px, 3vw, 34px);
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.stat > span { font-size: 13px; color: var(--muted); display: block; margin-top: 4px; }

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--line);
}
.feature {
  background: var(--paper);
  padding: clamp(19px, 2.2vw, 27px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color .18s ease;
}
.feature:hover { background: #fff; }
.feature .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal);
  letter-spacing: .08em;
  display: block;
  margin-bottom: 14px;
}
.feature h3 { font-size: 1.14rem; margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }
.feature ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--muted);
}
.feature ul li { padding: 3px 0 3px 16px; position: relative; }
.feature ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--teal-line);
}

/* ---------- Tour ---------- */

.tour { display: grid; gap: clamp(34px, 4.4vw, 58px); }
.tour-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.tour-row.reverse .tour-media { order: 2; }
.tour-copy h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.tour-copy p { color: var(--muted); }
.tour-copy ul {
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
}
.tour-copy ul li {
  padding: 7px 0 7px 26px;
  position: relative;
  border-bottom: 1px dashed var(--line);
}
.tour-copy ul li:last-child { border-bottom: 0; }
.tour-copy ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

/* ---------- Dark band ---------- */

.band-dark {
  background: var(--ink);
  color: #dfeeea;
  position: relative;
  overflow: hidden;
}
.band-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 320px at 12% 0%, rgba(37, 99, 235, .30), transparent 70%),
    radial-gradient(520px 280px at 92% 100%, rgba(13, 148, 136, .26), transparent 70%);
  pointer-events: none;
}
.band-dark .eyebrow { color: #93c5fd; }
.band-dark h2 { color: #fff; }
.band-dark .lede { color: #a9c4bd; }
.band-dark a { color: #93c5fd; }
.band-dark .section-head { position: relative; }

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.security-item {
  background: #0c1d30;
  padding: 22px 20px;
}
.security-item h3 { color: #fff; font-size: 1.08rem; margin-bottom: 6px; }
.security-item p { color: #a9c4bd; font-size: 13.5px; margin: 0; }
.security-item .num {
  font-family: var(--mono);
  color: #93c5fd;
  font-size: 11px;
  letter-spacing: .08em;
  display: block;
  margin-bottom: 12px;
}

/* ---------- Cards / industries ---------- */

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  font-size: 13px;
  color: var(--ink-soft);
}
.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-line);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

/* ---------- Pricing ---------- */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan.featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal), var(--shadow-md);
}
.plan .tag {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
}
.plan h3 { font-size: 1.35rem; margin-bottom: 4px; }
.plan .for { color: var(--muted); font-size: 13.5px; min-height: 40px; }
.plan .price {
  font-family: var(--serif);
  font-size: 1.9rem;
  letter-spacing: -.02em;
  margin: 14px 0 2px;
}
.plan .price-note { font-size: 12.5px; color: var(--muted); margin: 2px 0 0; }
.plan ul { list-style: none; margin: 18px 0 22px; padding: 0; font-size: 14px; flex: 1; }
.plan ul li { padding: 6px 0 6px 22px; position: relative; border-bottom: 1px dashed var(--line); }
.plan ul li:last-child { border-bottom: 0; }
.plan ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}
.plan .btn { width: 100%; }

.plan .plan-per { font-family: var(--sans); font-size: 12.5px; color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.plan .plan-limits { margin: 0 0 18px; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.plan-status { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.plan-status.is-error { max-width: 640px; }
.plan-status a { color: var(--teal); font-weight: 600; }

.note-box {
  border: 1px solid var(--teal-line);
  background: var(--teal-wash);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--ink-soft);
}
.note-box strong { color: var(--teal); }

/* ---------- FAQ ---------- */

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 44px 16px 0;
  font-weight: 600;
  font-size: 15.5px;
  position: relative;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 16px;
  font-size: 22px;
  font-weight: 400;
  color: var(--teal);
  line-height: 1;
  transition: transform .15s ease;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .answer {
  padding: 0 48px 18px 0;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 76ch;
}
.faq-item .answer p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(600px 300px at 88% 8%, rgba(255, 255, 255, .22), transparent 60%),
    radial-gradient(420px 260px at 8% 100%, rgba(251, 191, 36, .30), transparent 70%),
    linear-gradient(120deg, #1e3a8a 0%, #1d4ed8 46%, #0f766e 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.6vw, 44px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #dbe7ff; margin: 0; max-width: 54ch; }
.cta-band .actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #a9c4bd;
  padding: 44px 0 24px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.site-header .brand img { mix-blend-mode: multiply; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #7e9a93; }
.site-footer p { font-size: 13.5px; line-height: 1.6; color: #8faaa3; max-width: 34ch; }
.footer-col h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: #a9c4bd;
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  font-size: 12.5px;
  color: #7e9a93;
}
.footer-bottom div { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a { color: #8faaa3; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Interior page hero ---------- */

.page-hero {
  padding-block: clamp(30px, 3.8vw, 50px) clamp(20px, 2.6vw, 32px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfdfc, var(--paper));
}
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); margin-bottom: 14px; }
.page-hero .lede { margin-bottom: 0; }
.breadcrumb {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { margin: 0 8px; color: #b3c4bf; }

/* ---------- Feature page groups ---------- */

.group {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(22px, 3.4vw, 48px);
  padding-block: clamp(22px, 2.8vw, 34px);
  border-top: 1px solid var(--line);
}
.group:first-of-type { border-top: 0; }
.group h2 { font-size: 1.55rem; position: sticky; top: 92px; }
.group .group-body p { color: var(--muted); }
.group ul {
  columns: 2;
  column-gap: 36px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
}
.group ul li {
  break-inside: avoid;
  padding: 6px 0 6px 20px;
  position: relative;
  color: var(--ink-soft);
}
.group ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}
.group .group-media { margin-top: 20px; }

/* ---------- Legal ---------- */

.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 40px; }
.prose h3 { font-size: 1.1rem; margin-top: 26px; }
.prose p, .prose li { color: #354c47; font-size: 15px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose .updated { color: var(--muted); font-size: 13px; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:first-child { padding-top: 0; }
.contact-list .icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--teal-wash);
  color: var(--teal);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.contact-list .icon svg { width: 18px; height: 18px; }
.contact-list strong { display: block; font-size: 14.5px; }
.contact-list a, .contact-list span { display: block; }
.contact-list a { color: var(--teal); }
.contact-list span, .contact-list a { font-size: 14px; color: var(--muted); text-decoration: none; }
.contact-list a:hover { color: var(--teal); }

.copy-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}
.copy-row code {
  font-family: var(--mono);
  font-size: 13px;
  background: #eef4f1;
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--ink);
}

/* ---------- Reveal on scroll (progressive) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .has-js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s ease, transform .5s ease;
  }
  .has-js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: 2; }
  .floating-card { left: 12px; bottom: 12px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .tour-row, .tour-row.reverse { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .tour-row.reverse .tour-media { order: 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .plan .for { min-height: 0; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .group { grid-template-columns: 1fr; gap: 8px; }
  .group h2 { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 940px) {
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
    box-shadow: 0 20px 30px -24px rgba(11, 28, 26, .4);
  }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav > a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav > a[aria-current="page"] { border-bottom-color: var(--line); }
  .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-drop { display: block; border-bottom: 1px solid var(--line); }
  .nav-drop summary { padding: 12px 0; width: 100%; justify-content: space-between; border: 0; }
  .nav-drop-panel { position: static; min-width: 0; border: 0; box-shadow: none; padding: 0 0 8px 10px; }
  .nav-drop-panel a { padding: 8px 10px; }
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
    box-shadow: 0 20px 30px -24px rgba(11, 28, 26, .4);
  }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-inner { gap: 12px; }
  .header-actions { margin-left: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .group ul { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-facts { gap: 8px 14px; }
  .floating-card { display: none; }
.frame-bar span { display: none; }
}

@media (max-width: 520px) {
  .wrap { width: calc(100% - 32px); }
  h2 { font-size: 1.62rem; }
  .eyebrow { font-size: 10.5px; letter-spacing: .14em; }
  .section-head { margin-bottom: 22px; }
  .nav-drop.current summary { border-bottom-width: 2px; }
  .header-inner { gap: 8px; }
  .brand { font-size: 15px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .brand span small { display: none; }
  .header-actions .btn-primary { padding: 9px 12px; font-size: 13px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .hero-cta .btn { width: 100%; }
}

@media print {
  .site-header, .site-footer, .cta-band, .hero-cta, .nav-toggle { display: none !important; }
  body { background: #fff; }
}


/* ==========================================================================
   Motion, navigation dropdown and polish
   ========================================================================== */

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #1d4ed8, #0d9488, #d97706, #7c3aed);
  z-index: 100;
  pointer-events: none;
}

.site-header { transition: box-shadow .2s ease, background-color .2s ease; }
.site-header.scrolled {
  background: rgba(255, 253, 247, .98);
  box-shadow: 0 16px 36px -32px rgba(11, 28, 26, .55);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes draw-line {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes glow {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: .85; transform: scale(1.06); }
}
@keyframes sheen {
  from { transform: translateX(-120%) skewX(-18deg); }
  to { transform: translateX(220%) skewX(-18deg); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: rise .68s cubic-bezier(.22, .61, .36, 1) both; }
  .hero .lede { animation: rise .68s cubic-bezier(.22, .61, .36, 1) .09s both; }
  .hero-cta { animation: rise .68s cubic-bezier(.22, .61, .36, 1) .16s both; }
  .hero-note { animation: rise .68s cubic-bezier(.22, .61, .36, 1) .22s both; }
  .hero-facts { animation: rise .68s cubic-bezier(.22, .61, .36, 1) .28s both; }
  .hero-media { animation: rise .8s cubic-bezier(.22, .61, .36, 1) .18s both; }
  .hero h1 em::after {
    transform: scaleX(0);
    transform-origin: left;
    animation: draw-line .9s cubic-bezier(.22, .61, .36, 1) .5s forwards;
  }
  .floating-card { animation: float-y 5s ease-in-out infinite; }
  .hero-glow {
    position: absolute;
    right: -120px;
    top: -160px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 148, 136, .16), rgba(13, 148, 136, 0) 65%);
    animation: glow 9s ease-in-out infinite;
    pointer-events: none;
  }
  .frame > img { transition: transform .5s cubic-bezier(.22, .61, .36, 1); }
  .frame:hover > img { transform: scale(1.012); }
  .btn-primary { position: relative; overflow: hidden; }
  .btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 40%;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.28), rgba(255,255,255,0));
    transform: translateX(-120%) skewX(-18deg);
  }
  .btn-primary:hover::after { animation: sheen .75s ease; }
  .card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
  .card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--teal-line); }
  .feature { transition: background-color .18s ease, transform .18s ease; }
  .feature:hover { transform: translateY(-1px); }
  .has-js .reveal { transition-delay: var(--delay, 0ms); }
}

@media (prefers-reduced-motion: reduce) {
  .has-js .reveal { opacity: 1 !important; transform: none !important; }
}

.nav-drop { position: relative; }
.nav-drop summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
}
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary svg { width: 11px; height: 11px; transition: transform .15s ease; }
.nav-drop summary:hover, .nav-drop[open] summary, .nav-drop.current summary { color: var(--teal); }
.nav-drop[open] summary, .nav-drop.current summary { border-bottom-color: var(--teal); }
.nav-drop[open] summary svg { transform: rotate(180deg); }
.nav-drop-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: -16px;
  min-width: 268px;
  display: grid;
  gap: 2px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 26px 50px -30px rgba(11, 28, 26, .5);
  z-index: 70;
}
.nav-drop-panel a {
  display: block;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  font-size: 13.8px;
  color: var(--ink);
}
.nav-drop-panel a:hover { background: var(--teal-wash); color: var(--teal); }
.nav-drop-panel small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.4; margin-top: 1px; }

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #fff;
  padding-block: 13px;
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
}
.marquee-group {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
}
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 38s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 12.5px;
  color: var(--muted);
}
.marquee-item::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-line);
}

.demo-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(26px, 4vw, 52px);
  align-items: center;
}
.demo-copy ul { margin: 16px 0 22px; padding: 0; list-style: none; font-size: 14.5px; }
.demo-copy ul li { padding: 7px 0 7px 24px; position: relative; border-bottom: 1px dashed var(--line); }
.demo-copy ul li:last-child { border-bottom: 0; }
.demo-copy ul li::before {
  content: "";
  position: absolute; left: 0; top: 13px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}
.demo-shot { position: relative; }
.demo-shot .frame > img { display: block; width: 100%; height: auto; }
.demo-shot .live {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.94); border: 1px solid var(--line);
  border-radius: 99px; padding: 5px 10px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .08em; color: var(--teal);
  text-transform: uppercase;
}
.demo-shot .live i {
  width: 6px; height: 6px; border-radius: 50%; background: #22c55e;
}
@media (prefers-reduced-motion: no-preference) {
  .demo-shot .live i { animation: glow 2.4s ease-in-out infinite; }
}

.stat strong { font-variant-numeric: tabular-nums; }

.prose h2 { margin-top: 32px; }
.prose h3 { margin-top: 22px; }

/* ---------- Late overrides for components added after the first media pass ---------- */
@media (max-width: 980px) {
  .demo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 940px) {
  .nav-drop summary { width: 100%; justify-content: space-between; }
  .nav-drop-panel {
    position: static;
    left: auto;
    top: auto;
    min-width: 0;
    border: 0;
    box-shadow: none;
    padding: 0 0 8px 10px;
  }
}
@media (max-width: 520px) {
  h2 { font-size: 1.62rem; }
}

@media (max-width: 940px) {
  .nav-drop.current summary { border-bottom-color: transparent; }
  .nav-drop-panel a[aria-current="page"] { color: var(--teal); font-weight: 600; }
}


/* ==========================================================================
   MULTI-COLOUR THEME
   Blue and green from the logo, with amber, violet, rose and cyan accents.
   ========================================================================== */

:root {
  --blue: #1d4ed8;
  --blue-deep: #1e3a8a;
  --blue-wash: #eef3ff;
  --green: #15803d;
  --green-wash: #e9f7ee;
  --amber: #b45309;
  --amber-wash: #fdf3e2;
  --violet: #6d28d9;
  --violet-wash: #f1ebff;
  --rose: #be123c;
  --rose-wash: #fdebf0;
  --cyan: #0e7490;
  --cyan-wash: #e6f7fb;
}

::selection { background: #dbeafe; color: var(--ink); }

body { background: var(--paper); }

/* Header */
.site-header { background: rgba(251, 248, 241, .92); }
.site-header.scrolled { box-shadow: 0 16px 36px -32px rgba(10, 26, 47, .45); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--blue); }
.nav-drop summary:hover, .nav-drop[open] summary, .nav-drop.current summary { color: var(--blue); }
.nav-drop[open] summary, .nav-drop.current summary { border-bottom-color: var(--blue); }
.nav-drop-panel a:hover { background: var(--blue-wash); color: var(--blue); }

/* Primary action */
.btn-primary {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 62%, #0e7490 100%);
  box-shadow: 0 2px 6px -2px rgba(29, 78, 216, .55);
}

/* Hero */
.hero h1 em {
  background: linear-gradient(100deg, #1d4ed8 0%, #0e7490 55%, #15803d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero h1 em::after { opacity: .85; }

.hero-glow {
  position: absolute;
  right: -120px;
  top: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 78, 216, .20), rgba(29, 78, 216, 0) 65%);
  pointer-events: none;
}
.hero-glow::before,
.hero-glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-glow::before {
  left: -220px;
  top: 250px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(21, 128, 61, .16), rgba(21, 128, 61, 0) 65%);
}
.hero-glow::after {
  right: 170px;
  top: 90px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(217, 119, 6, .16), rgba(217, 119, 6, 0) 65%);
}

/* Section labels cycle through the palette */
.section:not(.band-dark):nth-of-type(4n+1) .section-head .eyebrow { color: var(--blue); }
.section:not(.band-dark):nth-of-type(4n+2) .section-head .eyebrow { color: var(--green); }
.section:not(.band-dark):nth-of-type(4n+3) .section-head .eyebrow { color: var(--violet); }
.section:not(.band-dark):nth-of-type(4n) .section-head .eyebrow { color: var(--amber); }

.tour-row:nth-child(4n+1) .eyebrow { color: var(--green); }
.tour-row:nth-child(4n+2) .eyebrow { color: var(--violet); }
.tour-row:nth-child(4n+3) .eyebrow { color: var(--amber); }
.tour-row:nth-child(4n) .eyebrow { color: var(--blue); }

/* Feature cards */
.feature:nth-child(6n+1) { --accent: var(--blue); }
.feature:nth-child(6n+2) { --accent: var(--green); }
.feature:nth-child(6n+3) { --accent: var(--amber); }
.feature:nth-child(6n+4) { --accent: var(--violet); }
.feature:nth-child(6n+5) { --accent: var(--rose); }
.feature:nth-child(6n)   { --accent: var(--cyan); }
.feature:nth-child(6n+1) .num { color: var(--blue); }
.feature:nth-child(6n+2) .num { color: var(--green); }
.feature:nth-child(6n+3) .num { color: var(--amber); }
.feature:nth-child(6n+4) .num { color: var(--violet); }
.feature:nth-child(6n+5) .num { color: var(--rose); }
.feature:nth-child(6n) .num { color: var(--cyan); }
.feature:hover { box-shadow: inset 0 3px 0 var(--accent, var(--blue)); }

/* Stats */
.stat:nth-child(1) strong { color: var(--blue); }
.stat:nth-child(2) strong { color: var(--green); }
.stat:nth-child(3) strong { color: var(--amber); }
.stat:nth-child(4) strong { color: var(--violet); }

/* Cards in grids get a coloured top edge */
.grid-3 > .card { border-top: 3px solid var(--line); }
.grid-3 > .card:nth-child(3n+1) { border-top-color: var(--blue); }
.grid-3 > .card:nth-child(3n+2) { border-top-color: var(--green); }
.grid-3 > .card:nth-child(3n)   { border-top-color: var(--amber); }

/* Chips and ticker dots */
.chip:nth-child(5n+1)::before { background: var(--blue); }
.chip:nth-child(5n+2)::before { background: var(--green); }
.chip:nth-child(5n+3)::before { background: var(--amber); }
.chip:nth-child(5n+4)::before { background: var(--violet); }
.chip:nth-child(5n)::before   { background: var(--rose); }
.marquee-item:nth-child(6n+1)::before { background: var(--blue); }
.marquee-item:nth-child(6n+2)::before { background: var(--green); }
.marquee-item:nth-child(6n+3)::before { background: var(--amber); }
.marquee-item:nth-child(6n+4)::before { background: var(--violet); }
.marquee-item:nth-child(6n+5)::before { background: var(--rose); }
.marquee-item:nth-child(6n)::before   { background: var(--cyan); }

/* Dark band */
.band-dark { background: #081625; }
.band-dark::before {
  background:
    radial-gradient(680px 320px at 10% 0%, rgba(37, 99, 235, .32), transparent 70%),
    radial-gradient(520px 280px at 88% 95%, rgba(13, 148, 136, .28), transparent 70%),
    radial-gradient(420px 220px at 52% 100%, rgba(217, 119, 6, .16), transparent 70%);
}
.security-item:nth-child(6n+1) .num { color: #93c5fd; }
.security-item:nth-child(6n+2) .num { color: #86efac; }
.security-item:nth-child(6n+3) .num { color: #fcd34d; }
.security-item:nth-child(6n+4) .num { color: #c4b5fd; }
.security-item:nth-child(6n+5) .num { color: #fda4af; }
.security-item:nth-child(6n) .num   { color: #67e8f9; }

/* Security detail page: dark tiles on the cream page */
.section:not(.band-dark) .security-grid {
  background: var(--line);
  border-color: var(--line);
}
.section:not(.band-dark) .security-item { background: #0c1d30; }

/* Pricing */
.plan:nth-child(3n+1) { border-top: 4px solid var(--blue); }
.plan:nth-child(3n+2) { border-top: 4px solid var(--green); }
.plan:nth-child(3n+3) { border-top: 4px solid var(--amber); }
.plan.featured {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green), var(--shadow-md);
}
.plan .tag { background: linear-gradient(135deg, #15803d, #0d9488); }

/* Warm note panels */
.note-box {
  background: var(--amber-wash);
  border-color: #f0d9ae;
  color: #4a3a1f;
}
.note-box strong { color: var(--amber); }

/* CTA and footer */
.cta-band { box-shadow: 0 26px 60px -34px rgba(30, 58, 138, .65); }
.cta-band .btn-light { background: #fffdf8; }

.site-footer {
  background: #081625;
  position: relative;
  border-top: 0;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #1d4ed8, #0d9488, #f59e0b, #7c3aed, #be123c);
}
.footer-col h4::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  margin-top: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}
.footer-grid > div:nth-child(3) h4::after { background: linear-gradient(90deg, #15803d, #0d9488); }
.footer-grid > div:nth-child(4) h4::after { background: linear-gradient(90deg, #d97706, #be123c); }

/* Window chrome and page headers */
.frame-bar {
  background: #f6f1e7;
}
.frame-bar i:nth-child(1) { background: #fca5a5; }
.frame-bar i:nth-child(2) { background: #fcd34d; }
.frame-bar i:nth-child(3) { background: #86efac; }
.frame-bar span { color: #6b7280; }

.page-hero {
  background:
    radial-gradient(680px 300px at 92% -30%, #e3ecff 0%, rgba(227, 236, 255, 0) 65%),
    radial-gradient(420px 220px at 0% 110%, #e7f7ec 0%, rgba(231, 247, 236, 0) 65%),
    linear-gradient(180deg, #fffdf8, var(--paper));
}

/* Links keep the blue, with a green hover for warmth */
a:not(.btn):hover { color: #15803d; }
.brand:hover { color: var(--ink); }
.text-link:hover { color: #15803d; }
.site-footer a:hover { color: #fff; }

/* The gradient text replaces the old solid underline; an inline element that
   wraps across lines cannot draw a reliable full-width rule. */
.hero h1 em::after { display: none; }
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 em { color: var(--blue); -webkit-text-fill-color: var(--blue); background: none; }
}

/* ---------- Small refinements ---------- */

/* ---------- Refinements to the colour theme ---------- */
:root { color-scheme: light; }
h1, h2, h3 { text-wrap: balance; }
[id] { scroll-margin-top: 88px; }
.hero h1 { text-wrap: pretty; }
.hero .lede { text-wrap: pretty; }
/* Security detail page: the cards were made dark in the colour pass. */
.section:not(.band-dark) .security-grid { background: var(--line); border-color: var(--line); }
.section:not(.band-dark) .security-item { background: #0c1d30; }

/* Green ticks echo the V in the logo; blue stays on actions and links. */
.tour-copy ul li::before,
.group ul li::before,
.plan ul li::before,
.demo-copy ul li::before { border-color: #15803d; }
.hero-note svg { color: #15803d; }

/* ---------- Section colour rhythm: a different tint per block ---------- */
.section[data-tone] {
  background: var(--tint, #fff);
  border-top: 2px solid var(--tone);
  border-bottom: 1px solid var(--line);
}
.section[data-tone="blue"]   { --tone: #1d4ed8; --tint: #edf2ff; }
.section[data-tone="green"]  { --tone: #15803d; --tint: #ebf6ee; }
.section[data-tone="amber"]  { --tone: #b45309; --tint: #fbf1dd; }
.section[data-tone="violet"] { --tone: #6d28d9; --tint: #f2ecfb; }
.section[data-tone="rose"]   { --tone: #be123c; --tint: #fcecef; }
.section[data-tone="cyan"]   { --tone: #0e7490; --tint: #e9f6f9; }

.section[data-tone]:nth-of-type(n) .section-head .eyebrow { color: var(--tone); }
.section[data-tone] .tour-copy .eyebrow { color: var(--tone); }
.section[data-tone] .section-head h2 { color: var(--ink); }

/* ---------- Interactive product tour (homepage) ---------- */
.tour-player { display: grid; gap: 16px; }
.tour-video {
  position: relative; overflow: hidden; background: #08131f;
  border: 1px solid rgba(9, 24, 40, .18); border-radius: var(--radius-lg);
  box-shadow: 0 30px 64px -38px rgba(9, 24, 40, .7);
}
.tour-video video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  background: #08131f;
}
.tour-play {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 0; border: 0; cursor: pointer; color: #fff;
  background: linear-gradient(180deg, rgba(8, 19, 31, .12), rgba(8, 19, 31, .62));
  transition: opacity .3s ease, visibility .3s ease;
}
.tour-play.is-hidden { opacity: 0; visibility: hidden; }
.play-ring {
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .6);
  transition: transform .22s ease, background .22s ease, color .22s ease;
}
.play-ring svg { width: 34px; height: 34px; margin-left: 4px; }
.tour-play:hover .play-ring { transform: scale(1.07); background: #fff; color: #1d4ed8; }
.play-pill {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 22px; border-radius: 999px;
  background: rgba(8, 19, 31, .58); border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(4px);
}
.play-pill b { font-size: 15px; letter-spacing: .01em; }
.play-pill small { font-size: 12px; opacity: .8; }
.tour-chapters {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  margin: 0; padding: 0; list-style: none;
}
.tour-chapters button {
  --chapter: #1d4ed8;
  width: 100%; height: 100%;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 11px 13px; text-align: left;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  color: var(--ink); cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.tour-chapters button:hover { border-color: var(--chapter); transform: translateY(-1px); }
.tour-chapters button:focus-visible { outline: 2px solid var(--chapter); outline-offset: 2px; }
.tour-chapters button[aria-current="true"] {
  border-color: var(--chapter);
  box-shadow: inset 0 0 0 1px var(--chapter), 0 12px 26px -20px var(--chapter);
}
.tour-chapters .cn {
  width: 27px; height: 27px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff; background: var(--chapter);
}
.tour-chapters .cc b { display: block; font-size: 14px; line-height: 1.25; }
.tour-chapters .cc small { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; }
.tour-chapters .ct { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tour-note { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .tour-chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .tour-chapters { grid-template-columns: 1fr; }
  .play-ring { width: 66px; height: 66px; }
  .play-ring svg { width: 28px; height: 28px; }
  .play-pill { padding: 7px 16px; }
  .play-pill small { font-size: 11px; }
}

/* ---------- Boot screen: logo, wordmark, a single sweeping line ---------- */
html:not(.has-js) .boot { display: none; }
.boot {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; background: var(--paper);
  transition: opacity .45s ease, visibility .45s ease;
}
.boot.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-mark {
  width: 88px; height: 88px; margin-bottom: 12px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-md);
}
.boot-mark img { width: 66px; height: 66px; display: block; border-radius: 14px; }
.boot-name { font-size: 20px; font-weight: 650; letter-spacing: -.01em; color: var(--ink); }
.boot-sub {
  font-size: 9.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}
.boot-line {
  width: 148px; height: 3px; margin-top: 20px;
  border-radius: 999px; background: var(--line); overflow: hidden;
}
.boot-line i {
  display: block; width: 46%; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #15803d, #1d4ed8 55%, #6d28d9);
  animation: boot-sweep 1.15s cubic-bezier(.55, .15, .35, .85) infinite;
}
@keyframes boot-sweep {
  0%   { transform: translateX(-115%); }
  70%  { transform: translateX(125%); }
  100% { transform: translateX(235%); }
}
@media (prefers-reduced-motion: reduce) {
  .boot, .boot-line i { transition: none; animation: none; }
  .boot-line i { width: 100%; opacity: .5; }
}
