/* AllTrk landing page. Tokens mirror frontend/src/app.css: blue, sky, teal, yellow, orange. */
:root {
  color-scheme: light dark;
  --blue: #2364aa;
  --sky: #3da5d9;
  --teal: #73bfb8;
  --yellow: #fec601;
  --orange: #ea7317;

  --bg: #f2f6fb;
  --surface: #fbfdff;
  --ink: #0f2540;
  --ink-soft: #2f4866;
  --muted: #4d6480;
  --line: #dce6f1;
  --field-line: #6f87a3;
  --brand: #2364aa;
  --brand-ink: #ffffff;
  --brand-soft: #e0ecf8;
  --good: #1d7a4b;
  --bad: #b02a3c;
  --glow: rgba(61, 165, 217, 0.22);
  --shadow: 0 1px 2px rgba(15, 37, 64, 0.08), 0 18px 48px -12px rgba(15, 37, 64, 0.28);
  --focus: #2364aa;

  --radius: 14px;
  --maxw: 1120px;
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1828;
    --surface: #112338;
    --ink: #e6f0fa;
    --ink-soft: #c2d5e8;
    --muted: #9bb2c9;
    --line: #20354b;
    --field-line: #5f7c9b;
    --brand: #3da5d9;
    --brand-ink: #0a1828;
    --brand-soft: #173452;
    --good: #4cbf86;
    --bad: #f08a98;
    --glow: rgba(61, 165, 217, 0.16);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 48px -12px rgba(0, 0, 0, 0.7);
    --focus: #fec601;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--ink-soft);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--brand);
  color: var(--brand-ink);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 20;
}
.skip:focus {
  top: 1rem;
}
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4rem;
}
.brand {
  display: inline-flex;
  line-height: 0;
}
.brand img {
  height: 30px;
  width: auto;
}
.nav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
  align-items: center;
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.nav .btn {
  color: var(--brand-ink);
}
@media (max-width: 760px) {
  .nav a:not(.btn) {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--brand);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, transform 0.15s;
}
.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
}
.btn-primary:hover {
  color: var(--brand-ink);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
}
.btn-secondary:hover {
  background: var(--brand-soft);
  color: var(--ink);
}
.btn-small {
  min-height: 2.4rem;
  padding: 0.4rem 1.1rem;
  font-size: 0.95rem;
}
.btn[disabled] {
  opacity: 0.65;
  cursor: progress;
}

/* Type */
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}
h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 750;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--yellow);
  margin-right: 0.55rem;
}
.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 40rem;
}
p {
  margin: 0 0 1em;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.9rem;
}

section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.section-head {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}

/* Hero */
.hero {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  background: radial-gradient(60rem 28rem at 50% -6rem, var(--glow), transparent 70%);
}
.hero-copy {
  max-width: 50rem;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.8rem 0 0.8rem;
}
.shot {
  margin: 0;
}
.shot img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.hero .shot {
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
figcaption {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.7rem;
}

/* Cards and grids */
.grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .grid,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .grid,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 {
  margin-bottom: 0.4em;
}
.card p:last-child {
  margin-bottom: 0;
}
.card p {
  color: var(--ink-soft);
}
.icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--ink);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.icon svg {
  width: 1.4rem;
  height: 1.4rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band .card {
  background: var(--bg);
}

/* Screenshot showcase */
.showcase {
  display: grid;
  gap: 2.5rem 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}
.showcase .wide {
  grid-column: 1 / -1;
}
@media (max-width: 760px) {
  .showcase {
    grid-template-columns: 1fr;
  }
}

/* AI connection */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.diagram {
  width: 100%;
  margin: 0 0 2rem;
}
.diagram svg {
  display: block;
  width: 100%;
}
.d-box {
  fill: var(--surface);
  stroke: var(--ink);
  stroke-width: 2;
}
.d-box-hot {
  fill: var(--brand-soft);
  stroke: var(--ink);
  stroke-width: 2;
}
.d-none {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-dasharray: 6 6;
}
.d-line {
  stroke: var(--ink);
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.d-text {
  fill: var(--ink);
  font: 600 15px var(--font);
}
.d-sub {
  fill: var(--muted);
  font: 400 13px var(--font);
}
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.1rem;
  color: var(--ink-soft);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 700;
  display: grid;
  place-items: center;
}
.steps strong {
  color: var(--ink);
}

/* Privacy list */
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}
.checks li {
  position: relative;
  padding-left: 2rem;
  color: var(--ink-soft);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.35em;
  width: 0.5rem;
  height: 0.9rem;
  border: solid var(--good);
  border-width: 0 3px 3px 0;
  transform: rotate(40deg);
}
.checks strong {
  color: var(--ink);
}

/* Waitlist */
.next-list {
  margin-bottom: 2.5rem;
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  max-width: 42rem;
  box-shadow: var(--shadow);
}
label,
legend {
  font-weight: 600;
}
.field {
  margin-bottom: 1.3rem;
}
input[type="email"] {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  min-height: 3rem;
  padding: 0.6rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--field-line);
  border-radius: 10px;
}
input[type="email"]:focus-visible {
  outline-offset: 2px;
}
fieldset {
  border: 0;
  margin: 0 0 1.3rem;
  padding: 0;
}
legend {
  padding: 0;
  margin-bottom: 0.5rem;
}
.opt {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.6rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.opt input {
  width: 1.3rem;
  height: 1.3rem;
  accent-color: var(--brand);
  flex: none;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.status {
  margin-top: 1rem;
  min-height: 1.5rem;
  font-weight: 600;
}
.status.ok {
  color: var(--good);
}
.status.err {
  color: var(--bad);
}

/* FAQ */
.faq {
  max-width: 48rem;
}
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
}
summary {
  cursor: pointer;
  font-weight: 650;
  padding: 1.1rem 1.3rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
}
details[open] summary::after {
  content: "\2212";
}
details .answer {
  padding: 0 1.3rem 1.1rem;
  color: var(--ink-soft);
}
details .answer p:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  color: var(--muted);
}
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: space-between;
  align-items: flex-start;
}
.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.foot a {
  color: var(--ink-soft);
}

/* Plain pages (privacy, thanks) */
.prose {
  max-width: 44rem;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.prose h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}
.prose h2 {
  font-size: 1.4rem;
  margin-top: 2.2rem;
}
.prose ul {
  padding-left: 1.3rem;
}
.prose li {
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
}
.prose p {
  color: var(--ink-soft);
}
.notice {
  border-left: 4px solid var(--yellow);
  background: var(--surface);
  padding: 0.9rem 1.1rem;
  border-radius: 0 10px 10px 0;
  color: var(--ink-soft);
}

.mt {
  margin-top: 2rem;
}
.mt-s {
  margin-top: 0.8rem;
}
.foot-logo img {
  height: 24px;
}
.shot.inset {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.4rem;
}
.shot.inset img {
  border: 0;
  box-shadow: none;
  border-radius: 8px;
}
.btn .plat {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.85;
  padding-left: 0.6rem;
  border-left: 1px solid currentColor;
}

/* Tester download page */
.dl {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.75rem;
}
.dl li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}
