/* Layout: light page in JBTrack's navy family, Novyx blue (from the logo), yellow marker for warmth.
   JBTrack sits in an inset dark "stage" so the product reads as its own thing. */
:root {
  --bg: #F6F6F9;
  --surface: #FFFFFF;
  --alt: #EEEFF5;
  --ink: #12132A;
  --muted: #4E5470;
  --line: #DFE1EA;
  --field-line: #A9AEC4;
  --accent: #1F5FD6;
  --accent-hover: #1A4FB3;
  --accent-ink: #FFFFFF;
  --accent-soft: #E6EEFC;
  --mark: #F3C643;
  --error: #C2410C;
  --shadow: 0 1px 2px rgba(18, 19, 42, .06), 0 10px 28px -14px rgba(18, 19, 42, .22);
  /* JBTrack stage, dark in both themes (matches jbtrack.com) */
  --jb-bg: #12132A;
  --jb-bg2: #1B1D38;
  --jb-ink: #E5E7EB;
  --jb-muted: #A3AEC2;
  --jb-line: rgba(255, 255, 255, .14);
  --jb-cyan: #22D3EE;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 12px;
  --maxw: 1140px;
  --header-h: 68px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0F20; --surface: #17192F; --alt: #131428; --ink: #E8E9F2; --muted: #A0A5C0; --line: #2A2D48;
    --field-line: #4A4E70; --accent: #5AAEFF; --accent-hover: #7DC0FF; --accent-ink: #04172E; --accent-soft: #15254A;
    --error: #FB923C; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -14px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0F20; --surface: #17192F; --alt: #131428; --ink: #E8E9F2; --muted: #A0A5C0; --line: #2A2D48;
  --field-line: #4A4E70; --accent: #5AAEFF; --accent-hover: #7DC0FF; --accent-ink: #04172E; --accent-soft: #15254A;
  --error: #FB923C; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -14px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; font-weight: 600; }

.wrap {
  max-width: var(--maxw); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--ink); padding: 8px 12px; z-index: 50; border-radius: 8px; }
.skip:focus { left: 8px; }
.eyebrow { font: 600 15px/1.3 var(--body); color: var(--accent); margin-bottom: 12px; }

/* Focus: blue ring + yellow halo reads on every background */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; box-shadow: 0 0 0 7px color-mix(in srgb, var(--mark) 70%, transparent); }
.proof :focus-visible { outline-color: var(--mark); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 15px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--muted) 45%, transparent); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
  .btn-primary:hover { background: var(--accent-hover); }
  .btn-ghost:hover { border-color: var(--muted); }
  .proof-link:hover { gap: 12px; }
}

/* Nav */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 21px/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-text { display: grid; gap: 3px; }
.logo-name { font: 500 23px/1 "Montserrat", var(--body); letter-spacing: -0.01em; color: var(--ink); }
.logo-sub { font: 500 8.5px/1 "Montserrat", var(--body); letter-spacing: 0.46em; text-transform: uppercase; color: var(--muted); }
.nav nav { margin-left: auto; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }

/* Hero */
.hero .wrap { padding-block: 64px 88px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-grid > * { min-width: 0; }
h1 { font-size: clamp(38px, 5.4vw, 62px); line-height: 1.05; letter-spacing: -0.025em; }
.hl { background: linear-gradient(transparent 60%, color-mix(in srgb, var(--mark) 80%, transparent) 60% 90%, transparent 90%); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; margin: 20px 0 28px; }
.lede strong { color: var(--ink); }

/* Quick reassurance under the CTAs */
.hero-facts { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 15px; font-weight: 600; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Hero art: a sample customer website + the quote request it sends */
.hero-art { position: relative; padding: 0 0 44px 0; }
.browser { border-radius: 16px; overflow: hidden; background: #FFFFFF; color: #12132A; border: 1px solid var(--line); box-shadow: 0 40px 80px -36px rgba(18, 19, 42, .5); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #EEEFF5; color: #4E5470; font-size: 12px; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #CDD0DC; display: block; }
.browser-bar span { margin-left: 8px; background: #FFFFFF; border-radius: 6px; padding: 3px 10px; }
.demo { display: grid; }
.demo-nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid #EEEFF5; }
.demo-logo { font: 700 14px/1 var(--display); color: #1F5FD6; }
.demo-links { display: flex; gap: 8px; }
.demo-links b { width: 34px; height: 6px; border-radius: 3px; background: #DFE1EA; }
.demo-hero { display: grid; gap: 10px; justify-items: start; padding: 26px 20px 22px; background: linear-gradient(160deg, #EAF1FE, #FFFFFF 70%); }
.demo-kicker { font: 600 12px/1 var(--body); color: #1F5FD6; }
.demo-h { font: 700 clamp(20px, 2.3vw, 26px)/1.15 var(--display); letter-spacing: -0.015em; max-width: 15em; }
.demo-p { font-size: 14px; color: #4E5470; max-width: 28em; }
.demo-btn { margin-top: 4px; font: 600 13px/1 var(--body); background: #F3C643; color: #2A2100; padding: 10px 14px; border-radius: 9px; }
.demo-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 20px 20px; }
.demo-tile { display: grid; gap: 8px; font: 600 13px/1 var(--body); color: #12132A; }
.demo-tile b { display: block; aspect-ratio: 4 / 3; border-radius: 10px; background: linear-gradient(140deg, #CFE0FB, #E9EEF8); }
.toast { position: absolute; right: -12px; bottom: 0; display: flex; gap: 12px; align-items: flex-start; max-width: 270px; padding: 14px 16px; border-radius: 14px; background: var(--surface); color: var(--ink); font-size: 14px; line-height: 1.4; box-shadow: 0 24px 50px -20px rgba(18, 19, 42, .45); border: 1px solid var(--line); }
.toast span:last-child { color: var(--muted); }
.toast strong { color: var(--ink); }
.toast-dot { flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }

/* Proof: our own product, kept short */
.proof { margin: 0 max(12px, 2vw); border-radius: 28px; overflow: hidden; background: radial-gradient(1100px 520px at 85% 0%, var(--jb-bg2), var(--jb-bg)); color: var(--jb-ink); box-shadow: inset 0 0 0 1px var(--jb-line); }
.proof .wrap { padding-block: 64px; }
.proof-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; }
.proof-grid > * { min-width: 0; }
.proof-eyebrow { font: 600 15px/1.3 var(--body); color: var(--jb-cyan); margin-bottom: 12px; }
.proof h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; }
.proof-copy > p:not(.proof-eyebrow) { color: var(--jb-muted); margin: 14px 0 22px; max-width: 32em; }
.proof-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--jb-cyan); font-weight: 600; text-decoration: none; transition: gap .15s ease; }
.proof-shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--jb-line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }

/* Ticks */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 16px; }
.ticks li::before { content: ""; width: 13px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); margin-top: 7px; }

/* Sections */
.section .wrap { padding-block: 88px; }
.section-alt { background: var(--alt); }
.section h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; max-width: 18em; }
.section-sub { color: var(--muted); font-size: 18px; max-width: 38em; margin: 14px 0 44px; }

/* Offers */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.offer { background: var(--surface); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; min-width: 0; box-shadow: var(--shadow); }
.offer-feature { background: var(--accent-soft); outline: 2px solid var(--accent); outline-offset: -2px; box-shadow: 0 26px 50px -28px rgba(31, 95, 214, .5); }
.offer-label { font: 600 14px/1.2 var(--body); color: var(--muted); }
.offer-badge { align-self: start; background: var(--accent); color: var(--accent-ink); padding: 6px 11px; border-radius: 999px; font-size: 13px; }
.offer h3 { font-size: 24px; }
.offer-price { font: 700 42px/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: 4px 0 0; }
.offer-price small { font: 400 16px var(--body); color: var(--muted); letter-spacing: 0; }
.offer-alt { font-size: 15px; color: var(--muted); }
.offer .ticks { margin-top: 10px; }
.offer-price-text { font-size: 34px; }
.offer-cta { margin-top: 8px; align-self: flex-start; }
.offer-price small { margin-right: 4px; }
.price-drivers { margin-top: 10px; padding-top: 16px; border-top: 1px dashed var(--line); }
.price-drivers p { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.app-care { display: block; font-size: 15px; color: var(--muted); }
.app-care strong { color: var(--ink); }
.price-drivers ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; display: grid; gap: 2px; }


.promises { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promise { padding: 20px 4px; min-width: 0; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: start; }
.promise-icon { grid-row: span 2; width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.promise h3 { font-size: 18px; }
.promise p { color: var(--muted); font-size: 16px; }

/* Steps: a real sequence, so numbered dots on a rail */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 18px; right: 18px; top: 18px; height: 2px; background: var(--line); }
.step { counter-increment: step; position: relative; min-width: 0; }
.step::before { content: counter(step); position: relative; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 700 16px/1 var(--display); margin-bottom: 16px; box-shadow: 0 0 0 6px var(--bg); }
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 16px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-grid > * { min-width: 0; }
.about-copy { display: grid; gap: 16px; font-size: 18px; color: var(--muted); max-width: 36em; padding-top: 30px; }
.about-copy p:first-child { color: var(--ink); font-size: 20px; }
.about-mark { width: 120px; height: 120px; border-radius: 28px; margin-top: 28px; box-shadow: 0 20px 40px -18px rgba(29, 63, 191, .55); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq-grid > * { min-width: 0; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 20px; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-copy > p { color: var(--muted); font-size: 18px; margin: 14px 0 28px; }
.contact-copy > .contact-aside { font-size: 15px; margin: 24px 0 0; }
.contact-ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-ways li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); min-width: 0; }
.contact-ways svg { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-ways div { display: grid; gap: 2px; min-width: 0; }
.cw-label { font-size: 14px; color: var(--muted); }
.contact-ways a { font-weight: 600; font-size: 17px; text-decoration: none; overflow-wrap: anywhere; }
.contact-ways a:hover { text-decoration: underline; }

.contact-form { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: 32px; display: grid; gap: 20px; }
.form-title { font-size: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 15px; padding: 0; }
.req { color: var(--error); }
.opt { color: var(--muted); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; font: 400 16px/1.4 var(--body); color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--field-line); border-radius: 12px; padding: 12px 14px; min-height: 50px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input[type="text"]:hover, .field input[type="email"]:hover, .field textarea:hover { border-color: var(--muted); }
.field input[type="text"]:focus, .field input[type="email"]:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field textarea { resize: vertical; min-height: 120px; }
.field ::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }

/* Interest chips: native radio kept for keyboard and screen readers, drawn as pills */
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.choice { position: relative; cursor: pointer; font-weight: 400 !important; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--field-line); border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; transition: border-color .15s ease, background-color .15s ease; }
.choice span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--field-line); box-sizing: border-box; transition: all .15s ease; }
.choice:hover span { border-color: var(--muted); }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.choice input:checked + span::before { border: 5px solid var(--accent); background: var(--surface); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; }
.contact-form.is-sending { opacity: .7; }
.contact-form button[disabled] { cursor: progress; }
.form-done { display: grid; gap: 10px; justify-items: start; padding: 12px 0; }
.form-done h3 { font-size: 24px; }
.form-done p { color: var(--muted); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
.form-note { font-size: 14px; color: var(--muted); }
.form-status { font-size: 15px; color: var(--accent); min-height: 1.4em; margin-top: -8px; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }

/* Placeholder text the owner still needs to fill in */
mark.todo { background: color-mix(in srgb, var(--mark) 55%, transparent); color: inherit; padding: 0 .2em; border-radius: 4px; }

/* Footer */
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 28px; }

/* Scroll reveal: only once JS has opted in, so content is visible at rest */
.js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .proof-grid, .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 600px; }
  .offers, .promises { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .about-copy { padding-top: 0; }
}
@media (max-width: 720px) {
  :root { --header-h: 112px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .nav-inner { flex-wrap: wrap; row-gap: 0; justify-content: space-between; padding-top: 10px; }
  .nav nav { order: 3; flex-basis: 100%; margin: 0 -20px; overflow-x: auto; scrollbar-width: none; }
  .nav nav::-webkit-scrollbar { display: none; }
  .nav-links { gap: 20px; padding: 0 20px; white-space: nowrap; }
  .hero .wrap { padding-block: 40px 56px; }
  .section .wrap { padding-block: 64px; }
  .proof .wrap { padding-block: 48px; }
  .toast { right: 8px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .nav-inner { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
