/* LaneWise marketing site — shared design system */

:root {
  --bg: #0a0d14;
  --bg-raised: #10141e;
  --surface: #151a26;
  --surface-2: #1b2130;
  --border: #262e42;
  --text: #eaeef7;
  --text-dim: #a7b0c4;
  --text-faint: #6f7994;
  --accent: #6e7bff;
  --accent-2: #34d3b8;
  --accent-soft: rgba(110, 123, 255, 0.14);
  --warn: #f2b84b;
  --danger: #ff6b6b;
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1120px;
  --header-h: 68px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 13, 20, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.brand:hover { text-decoration: none; }

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #0a0d14;
  flex: none;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.main-nav a {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #0a0d14 !important;
  font-weight: 600;
}
.nav-cta:hover { background: #828dff; text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  flex: none;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-toggle-glyph { display: block; font-size: 1.15rem; }

@media (max-width: 820px) {
  /* Anchored to the header, not the viewport. The header carries
     backdrop-filter, which makes it the containing block for positioned
     descendants (same as a transform would) -- so the viewport-style
     `position: fixed; inset: 68px 0 0 0` this used to have resolved
     against the 68px-tall header and collapsed the panel to a sliver
     with the links spilling out of it. `top: 100%` also means the panel
     follows the header height instead of hard-coding it. */
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 24px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    /* Long menu on a short screen (landscape phone) scrolls inside the
       panel rather than running off the bottom. */
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
  }
  nav.main-nav a.nav-cta {
    border-bottom: none;
    text-align: center;
    margin-top: 12px;
    padding: 13px 18px;
  }
  .nav-toggle { display: block; }
  /* Only while the panel is actually rendered as an overlay. */
  body.nav-open { overflow: hidden; }
}

/* ---------- Disclaimer strip ---------- */

.riot-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-dim);
}
.riot-strip .wrap {
  padding: 10px 24px;
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}
.riot-strip strong { color: var(--text); }

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

.hero {
  padding: 88px 0 64px;
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(110,123,255,0.16), transparent 70%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.hero p.lead {
  max-width: 640px;
  margin: 0 auto 34px;
  color: var(--text-dim);
  font-size: 1.15rem;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--accent); color: #060810; }
.btn-primary:hover { background: #828dff; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

.trust-line {
  color: var(--text-faint);
  font-size: 0.88rem;
  max-width: 560px;
  margin: 0 auto;
}

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

section { padding: 72px 0; }
section.tight { padding: 48px 0; }
section.alt { background: var(--bg-raised); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 12px; letter-spacing: -0.01em; }
.section-head p { color: var(--text-dim); margin: 0; }
.section-head.left { text-align: left; margin: 0 0 36px; }

.kicker {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

/* ---------- Cards / grids ---------- */

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

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Steps (how it works) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.step-card::before {
  content: attr(data-step);
  position: absolute;
  top: -18px;
  right: -6px;
  font-size: 5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.03);
  line-height: 1;
}
.step-card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.step-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
}
.step-card ul { margin: 14px 0 0; padding-left: 20px; color: var(--text-dim); font-size: 0.92rem; }
.step-card li { margin-bottom: 6px; }

/* ---------- Screenshot carousel ---------- */

.shots { position: relative; }

.shots-stage {
  /* The nav buttons centre on the image box, so both derive from these two
     instead of repeating the numbers and drifting apart at a breakpoint. */
  --shot-h: 460px;
  --stage-pad: 18px;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #0d111a, #0a0d14);
  padding: var(--stage-pad);
  box-shadow: var(--shadow);
}

/* Scroll-snap does the work: touch swipe and keyboard scrolling come for
   free, and with JS disabled the track degrades to a scrollable strip. */
.shots-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 10px;
}
.shots-track::-webkit-scrollbar { display: none; }
.shots-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.shot {
  flex: 0 0 100%;
  scroll-snap-align: center;
  min-width: 0;
}

/* The shots range from a 1423x806 full window to small portrait panels, so the
   stage is a fixed box and each image is contained inside it rather than
   stretched — no cropping, no layout jump between slides. */
.shot-media {
  height: var(--shot-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: repeating-linear-gradient(45deg, #0c1019, #0c1019 12px, #0d1220 12px, #0d1220 24px);
  border-radius: 10px;
}
.shot-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.shot-caption {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 14px auto 0;
  max-width: 62ch;
  /* Holds the dots still while captions of different lengths scroll past. */
  min-height: 2.8em;
}

.shots-nav {
  position: absolute;
  top: calc(var(--stage-pad) + var(--shot-h) / 2);
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(21, 26, 38, 0.92);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.shots-nav:hover:not(:disabled) { background: var(--surface-2); border-color: var(--accent); }
.shots-nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shots-nav:disabled { opacity: 0.3; cursor: default; }
.shots-nav.prev { left: 4px; }
.shots-nav.next { right: 4px; }
.shots-nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shots-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.shots-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.shots-dots button:hover { background: var(--text-faint); }
.shots-dots button[aria-selected="true"] { background: var(--accent-2); transform: scale(1.3); }
.shots-dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 720px) {
  .shots-stage { --shot-h: 340px; --stage-pad: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .shots-track { scroll-behavior: auto; }
  .shots-dots button { transition: none; }
}

/* ---------- Feature comparison table ---------- */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}
@media (max-width: 780px) { .tier-grid { grid-template-columns: 1fr; } }

.tier-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  background: var(--surface);
}
.tier-card.pro { border-color: var(--accent); background: linear-gradient(180deg, rgba(110,123,255,0.08), var(--surface)); }
.tier-name { font-size: 1.3rem; font-weight: 700; margin: 0 0 4px; }
.tier-price { color: var(--text-dim); font-size: 0.95rem; margin: 0 0 18px; }
.tier-card ul { list-style: none; margin: 0; padding: 0; }
.tier-card li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
  color: var(--text-dim);
}
.tier-card li:last-child { border-bottom: none; }
.tier-card li .check { color: var(--accent-2); flex: none; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
table.compare th, table.compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
table.compare th { background: var(--surface); color: var(--text-faint); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
table.compare td.center, table.compare th.center { text-align: center; }
table.compare tr:last-child td { border-bottom: none; }
.yes { color: var(--accent-2); font-weight: 700; }
.no { color: var(--text-faint); }

.callout {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-top: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.callout .icon { color: var(--accent-2); font-size: 1.3rem; }
.callout h4 { margin: 0 0 6px; }
.callout p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }
.callout.warn { border-color: rgba(242,184,75,0.4); }
.callout.warn .icon { color: var(--warn); }

/* ---------- Steps list (download page) ---------- */

.numbered { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.numbered li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 44px;
  border-left: 2px solid var(--border);
  margin-left: 15px;
}
.numbered li:last-child { border-color: transparent; padding-bottom: 0; }
.numbered li::before {
  content: counter(step);
  position: absolute;
  left: -15px;
  top: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.numbered h4 { margin: 0 0 6px; font-size: 1rem; }
.numbered p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }

pre.code {
  background: #05070c;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.86rem;
  color: #c7d3f0;
}

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

.legal {
  max-width: 780px;
  margin: 0 auto;
}
.legal h2 { margin-top: 44px; font-size: 1.25rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.02rem; margin-top: 26px; }
.legal p, .legal li { color: var(--text-dim); font-size: 0.96rem; }
.legal ul { padding-left: 20px; }
.legal .updated { color: var(--text-faint); font-size: 0.85rem; margin-top: -6px; }
.placeholder {
  background: rgba(242,184,75,0.12);
  color: var(--warn);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

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

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq-item h3 { margin: 0 0 8px; font-size: 1rem; }
.faq-item p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }

.contact-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px;
}
.contact-card h3 { margin-top: 0; }

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

.cta-band {
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(110,123,255,0.16), rgba(52,211,184,0.10));
  border: 1px solid var(--border);
  padding: 52px 40px;
  text-align: center;
}
.cta-band h2 { margin: 0 0 10px; font-size: 1.7rem; }
.cta-band p { color: var(--text-dim); margin: 0 0 26px; }

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

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  background: var(--bg-raised);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

.footer-grid h5 {
  color: var(--text-faint);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-dim); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--text); }

.footer-disclaimer {
  color: var(--text-faint);
  font-size: 0.82rem;
  line-height: 1.6;
  max-width: 620px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 0.82rem;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-left: 8px;
}
