:root {
  --navy: #0b1f4d;
  --navy-2: #12336b;
  --blue: #1e6fe0;
  --blue-dark: #1558b8;
  --teal: #1fc8a9;
  --ink: #0b1f4d;
  --muted: #5c6b84;
  --line: #e2e8f0;
  --bg: #f4f7fb;
  --card: #ffffff;
  --prose: #24385f;
  --danger: #b42318;
  --ok: #0f9b80;
  --shadow: 0 18px 50px rgba(11, 31, 77, 0.12);
  --radius: 18px;
  --max: 1120px;
  --header: 76px;
  --font: "Segoe UI", "Avenir Next", "Trebuchet MS", "Liberation Sans", sans-serif;
  color-scheme: light;
}
html[data-theme="dark"] {
  --ink: #e8eef8;
  --muted: #b7c4da;
  --line: #2a406e;
  --bg: #07122e;
  --card: #102044;
  --prose: #d5e2f5;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: #fff;
  color: var(--navy);
  padding: 8px 12px;
  z-index: 30;
  border-radius: 8px;
}
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 31, 77, 0.92);
  color: #fff;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.nav a, .theme-toggle, .nav-toggle {
  color: #e7f1fc;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
  background: transparent;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.nav a:hover, .theme-toggle:hover { color: var(--teal); }
.nav a[aria-current="page"] { color: var(--teal); }
.nav-toggle { display: none; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 8px 14px; }
.theme-toggle { border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 8px 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-family: inherit;
  border-radius: 999px;
  padding: 12px 18px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(30, 111, 224, 0.28);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.btn:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn.secondary {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.75);
  box-shadow: none;
}
.btn.secondary:hover { background: rgba(255,255,255,0.12); }
.btn.ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 2px solid var(--line);
  box-shadow: none;
}
.btn.ghost:hover { border-color: var(--blue); color: var(--blue) !important; }
.btn.navy { background: var(--navy); }

.hero {
  position: relative;
  color: #fff;
  padding: 56px 0 72px;
  overflow: hidden;
  background: #071633;
}
.mesh, .mesh::after {
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(circle at 18% 30%, rgba(30, 111, 224, .85), transparent 42%),
    radial-gradient(circle at 78% 18%, rgba(31, 200, 169, .75), transparent 36%),
    radial-gradient(circle at 60% 80%, rgba(21, 88, 184, .8), transparent 40%),
    radial-gradient(circle at 30% 80%, rgba(11, 31, 77, .4), transparent 40%);
  animation: mesh 16s ease-in-out infinite alternate;
}
.mesh::after {
  content: "";
  background:
    radial-gradient(circle at 70% 60%, rgba(31, 200, 169, .45), transparent 32%),
    radial-gradient(circle at 20% 70%, rgba(30, 111, 224, .45), transparent 34%);
  animation-duration: 22s;
  animation-direction: alternate-reverse;
  filter: blur(10px);
}
.hero-grid, .hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 36px;
  align-items: center;
}
.kicker {
  display: inline-block;
  color: var(--teal);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 10px;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 12px; }
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.lede { font-size: 1.12rem; color: #d5e2f5; max-width: 38rem; }
.flow-line { margin: 0 0 14px; color: var(--teal); font-weight: 800; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.logo-lockup {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 12px;
  margin-bottom: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.flow {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 24px;
  padding: 18px;
  backdrop-filter: blur(8px);
}
.flow-track { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 8px; align-items: center; }
.flow-card {
  background: #fff;
  color: var(--navy);
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  min-height: 132px;
  animation: rise 4.8s ease-in-out infinite;
}
.flow-card:nth-child(3) { animation-delay: .4s; }
.flow-card:nth-child(5) { animation-delay: .8s; }
.flow-card strong { display: block; margin-top: 8px; }
.flow-card span { display: block; color: #5c6b84; font-size: .85rem; }
.flow-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  color: #fff; display: grid; place-items: center; font-weight: 800;
  animation: nudge 1.6s ease-in-out infinite;
}
.mark { font-size: 1.8rem; }
@keyframes mesh { to { transform: translate3d(-4%, 3%, 0) scale(1.08); } }
@keyframes rise { 50% { transform: translateY(-6px); } }
@keyframes nudge { 50% { transform: translateX(4px); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(30, 111, 224, 0); } }

section { padding: 72px 0; }
.section-intro { max-width: 42rem; color: var(--muted); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

.band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.stat strong { display: block; font-size: 2.4rem; letter-spacing: -0.04em; }
.stat span { color: var(--muted); }
.example-flag {
  display: inline-block;
  background: #fff4d6;
  color: #6b4a08;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 8px;
  margin-bottom: 8px;
}

.demo-grid, .calc-grid, .story, .tour-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 24px;
  align-items: start;
}
.panel, .invoice, .calc, .price, .card, .quote, .shot {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 30px rgba(11, 31, 77, .06);
}
.demo-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 8px; }
#demo-email, .calc input[type="number"] {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  resize: vertical;
}
.demo-steps { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.demo-steps li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
  font-size: .85rem;
}
.demo-steps li.is-done { background: rgba(31, 200, 169, .16); color: var(--ink); border-color: transparent; }
.invoice { color: #0b1f4d; background: #fff; min-height: 280px; }
html[data-theme="dark"] .invoice { color: #0b1f4d; }
.inv-kicker { color: #1558b8; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .75rem; margin: 0 0 6px; }
.inv-meta, .inv-note { color: #5c6b84; }
.invoice table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.invoice td, .invoice th { text-align: left; padding: 8px 0; border-bottom: 1px solid #e2e8f0; }
.invoice td:last-child, .invoice th:last-child { text-align: right; }
.invoice tfoot th, .invoice tfoot td { font-size: 1.15rem; }

.story-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; }
.story-step h3 { font-size: 1.8rem; }
.story-step p { color: var(--muted); }
.story-step.is-active h3 { color: var(--blue); }
.story-visual { position: sticky; top: calc(var(--header) + 16px); }
.story-visual img, .frame img { border-radius: 14px; border: 1px solid var(--line); width: 100%; }
.story-inline { display: none; margin-top: 12px; }
.story-visual figcaption, .shot figcaption { color: var(--muted); margin-top: 8px; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tabs button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.frame { position: relative; margin-top: 12px; }
.hotspot {
  position: absolute;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  transform: translate(-50%, -50%);
  cursor: pointer;
  box-shadow: 0 0 0 6px rgba(30, 111, 224, .35);
  animation: pulse 2s ease-in-out infinite;
}
.hotspot-note {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  background: #fff;
  color: #0b1f4d;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.cards, .quotes, .audience { display: grid; gap: 16px; margin-top: 22px; }
.cards { grid-template-columns: repeat(3, 1fr); }
.quotes, .audience { grid-template-columns: repeat(3, 1fr); }
.audience { grid-template-columns: 1fr 1fr; }
.card h3 { font-size: 1.15rem; }
.card p, .quote p { color: var(--muted); margin: 0; }
.quote strong { display: block; margin-top: 10px; color: var(--ink); }

.slider-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
input[type="range"] { width: 100%; accent-color: var(--blue); }
.advice {
  background: rgba(31, 200, 169, .12);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0 0;
}
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; align-items: stretch; }
.price { position: relative; display: flex; flex-direction: column; transition: transform .16s ease, box-shadow .16s ease; }
.price h3 { margin: 8px 0 0; }
.price .amount { font-size: 1.8rem; font-weight: 800; margin: 8px 0 0; color: var(--ink); }
.price .per, .price .was, .price .month, .price li { color: var(--muted); }
.price .was { margin: 0; }
.price .was s { text-decoration: line-through; }
.price .month { margin: 0 0 8px; font-size: .92rem; }
.price ul { padding-left: 18px; }
.badge-row { margin: 0; min-height: 1.6rem; }
.intro-badge, .popular {
  display: inline-block;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 10px;
}
.intro-badge { background: linear-gradient(135deg, var(--blue), var(--teal)); }
.popular { position: absolute; top: -12px; left: 16px; margin: 0; background: var(--navy); }
.price.featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(135deg, var(--blue), var(--teal)) border-box;
  padding-top: 28px;
}
.price.is-pick { box-shadow: 0 0 0 3px var(--teal), var(--shadow); }
.note, .example-banner {
  background: #fff8e8;
  border: 1px solid #f5d48a;
  color: #6b4a08;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 16px;
}

.calc label { display: block; font-weight: 700; margin: 12px 0 6px; }
.calc-results { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.calc-results div { background: var(--bg); border-radius: 14px; padding: 14px; }
.calc-results strong { display: block; font-size: 1.8rem; }

details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 10px;
}
summary { cursor: pointer; font-weight: 750; }
details p { margin: 8px 0 0; color: var(--muted); }
details[open] { border-color: var(--blue); }

.cta {
  background: linear-gradient(100deg, #0b1f4d, #16407a 55%, #127e86);
  color: #fff;
  border-radius: 28px;
  padding: 36px;
}
.cta p { color: #d5e2f5; }
.cta a { color: #fff; }
.site-footer { background: #0b1f4d; color: #d5e2f5; padding: 28px 0 40px; }
.site-footer a { color: #fff; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.legal h1 { margin-top: 12px; }
.legal h2 { margin-top: 28px; font-size: 1.35rem; }
.legal p, .legal li { color: var(--prose); }
.page-hero { background: #0b1f4d; color: #fff; padding: 48px 0 36px; }
.page-hero p { color: #d5e2f5; max-width: 40rem; }

html[data-shot="hero"] #main > :not(.hero),
html[data-shot="hero"] .site-footer,
html[data-shot="demo"] body > :not(#main),
html[data-shot="demo"] #main > :not(#demo),
html[data-shot="savings"] body > :not(#main),
html[data-shot="savings"] #main > :not(#savings),
html[data-shot="pricing"] body > :not(#main),
html[data-shot="pricing"] #main > :not(#pricing) { display: none !important; }
html[data-shot] .reveal { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .prices { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-header .wrap { flex-wrap: wrap; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 4px 0 16px;
  }
  .nav.is-open { display: flex; }
  .hero-grid, .demo-grid, .calc-grid, .story, .tour-layout, .band, .cards, .quotes, .audience, .prices, .flow-track {
    grid-template-columns: 1fr;
  }
  .flow-arrow { transform: rotate(90deg); margin: 0 auto; }
  .story-step { min-height: 0; }
  .story-visual { display: none; }
  .story-inline { display: block; }
  .popular { position: static; margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mesh, .mesh::after, .flow-card, .flow-arrow, .hotspot, .reveal { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
