:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #0a0a0a;
  --text: #1f2937;
  --muted: #6b7280;
  --faint: #d1d5db;
  --line: #e5e7eb;
  --soft: #f9fafb;
  --dark: #030712;
  --accent: #2e5bff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Heebo", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.wrap { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */

.top { position: relative; padding: 20px 0 12px; flex-shrink: 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; }
.top .brand img { height: 26px; width: auto; display: block; }
.progress { position: absolute; inset: 0 0 auto 0; height: 3px; background: #f3f4f6; }
.progress div { height: 100%; width: 0; background: var(--ink); transition: width 0.5s ease-out; }
.progress[hidden] { display: none; }

/* ---------- Screens ---------- */

main { flex: 1; display: flex; flex-direction: column; }
#screen { flex: 1; display: flex; flex-direction: column; transition: opacity 0.2s ease-out, transform 0.2s ease-out; }
#screen.out-fwd { opacity: 0; transform: translateX(-24px); }
#screen.out-back { opacity: 0; transform: translateX(24px); }
.center { margin: auto 0; padding: 24px 0 32px; }

/* ---------- Intro ---------- */

.intro { display: flex; flex-direction: column; gap: 28px; padding: 8px 0 32px; }

.proof { background: var(--dark); color: #fff; border-radius: 16px; padding: 18px 0 20px; overflow: hidden; }
.proof .label { font-size: 10px; color: rgba(255, 255, 255, 0.35); text-align: center; letter-spacing: 0.2em; margin-bottom: 14px; padding: 0 20px; }
.marquee { position: relative; direction: ltr; overflow: hidden; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(to right, var(--dark), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--dark), transparent); }
.track { display: flex; gap: 14px; width: max-content; animation: scroll 48s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .track { animation: none; }
  .marquee { overflow-x: auto; }
}

.card { direction: rtl; flex-shrink: 0; width: 236px; background: #fff; color: var(--ink); border-radius: 12px; overflow: hidden; }
.card .chrome { display: flex; gap: 5px; padding: 8px 10px; background: #f3f4f6; border-bottom: 1px solid var(--line); direction: ltr; }
.card .chrome i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.card .shot { height: 88px; padding: 12px; background: var(--soft); border-bottom: 1px solid var(--line); }
.card .info { padding: 10px 12px 12px; }
.card h3 { font-size: 14px; font-weight: 800; line-height: 1.3; }
.card p { font-size: 12px; color: var(--muted); line-height: 1.45; margin-top: 2px; min-height: 35px; }
.card .tags { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.card .tags span { font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: #eef2ff; color: var(--accent); direction: ltr; }

/* Skeleton screenshots, one look per kind of product */
.sk { display: block; background: #e5e7eb; border-radius: 3px; height: 6px; }
.shot.table { display: flex; flex-direction: column; gap: 9px; }
.shot.table .row { display: flex; align-items: center; gap: 6px; }
.shot.table .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--faint); flex-shrink: 0; }
.shot.table .pill { width: 26px; height: 9px; border-radius: 99px; background: #c7d2fe; margin-inline-start: auto; }
.shot.table .pill.ok { background: #bbf7d0; }
.shot.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.shot.cal i { height: 16px; border-radius: 3px; background: #fff; border: 1px solid var(--line); }
.shot.cal i.on { background: var(--accent); border-color: var(--accent); }
.shot.cal i.half { background: #c7d2fe; border-color: #c7d2fe; }
.shot.phone { display: flex; justify-content: center; gap: 10px; padding-bottom: 0; }
.shot.phone .ph { width: 54px; height: 100%; border: 2px solid var(--ink); border-bottom: 0; border-radius: 10px 10px 0 0; padding: 8px 6px; display: flex; flex-direction: column; gap: 5px; background: #fff; }
.shot.phone .ph .hero { height: 22px; border-radius: 4px; background: var(--accent); }
.shot.chart { display: flex; align-items: flex-end; gap: 5px; }
.shot.chart i { flex: 1; border-radius: 3px 3px 0 0; background: #c7d2fe; }
.shot.chart i.up { background: var(--accent); }
.shot.screen { display: flex; align-items: center; justify-content: center; }
.shot.screen .frame { width: 150px; height: 80px; border-radius: 6px; border: 2px solid var(--ink); background: #fff; position: relative; }
.shot.screen .rec { position: absolute; top: 6px; left: 6px; display: flex; align-items: center; gap: 4px; font-size: 8px; font-weight: 800; color: #ef4444; direction: ltr; }
.shot.screen .rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ef4444; }

.intro .copy { text-align: center; display: flex; flex-direction: column; gap: 16px; }
.intro h1 { font-size: 30px; font-weight: 900; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
@media (min-width: 640px) { .intro h1 { font-size: 40px; } }
.intro .note { font-size: 13px; color: var(--muted); text-align: center; margin-top: -18px; }
.intro .lead { font-size: 16px; color: #4b5563; line-height: 1.7; }
.services { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.services span { font-size: 13px; font-weight: 500; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line); color: #374151; }

.btn {
  display: block;
  width: 100%;
  padding: 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, opacity 0.15s;
}
.btn:hover { background: #1f2937; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.3; cursor: default; transform: none; background: var(--ink); }

/* ---------- Questions ---------- */

.q { display: flex; align-items: flex-start; gap: 12px; }
.q .num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 4px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 900; flex-shrink: 0; margin-top: 3px; }
.q h2 { font-size: 21px; font-weight: 700; line-height: 1.4; }
.hint { font-size: 14px; color: #9ca3af; margin-top: 10px; }

.field {
  width: 100%;
  margin-top: 24px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--line);
  outline: none;
  font: inherit;
  font-size: 18px;
  padding: 8px 0;
  color: var(--ink);
  transition: border-color 0.15s;
}
.field:focus { border-color: var(--ink); }
.field::placeholder { color: var(--faint); }
textarea.field { resize: none; font-size: 16px; }
.field[type="email"], .field[type="tel"] { direction: ltr; text-align: right; }

.choices { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.choice {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: right;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--soft);
  color: #1f2937;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.choice:hover { border-color: #9ca3af; }
.choice .id { width: 24px; height: 24px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 900; background: var(--line); color: #4b5563; flex-shrink: 0; }
.choice.sel { border-color: var(--ink); background: var(--ink); color: #fff; }
.choice.sel .id { background: #fff; color: var(--ink); }

.actions { position: sticky; bottom: 0; background: linear-gradient(to top, var(--bg) 75%, transparent); padding: 16px 0 20px; }
.actions .row { display: flex; align-items: center; gap: 12px; }
.actions .row .btn { flex: 1; }
.back-round { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.back-round:hover { background: #1f2937; }
.back-text { width: 100%; padding: 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 500; }
.back-text:hover { border-color: #9ca3af; }
.by { text-align: center; font-size: 11px; color: var(--faint); margin-top: 10px; }
.err { text-align: center; font-size: 14px; color: #dc2626; margin-top: 10px; }

/* ---------- Done ---------- */

.done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.done .check { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.done h2 { font-size: 22px; font-weight: 900; }
.done p { font-size: 15px; color: #4b5563; line-height: 1.7; }

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

footer { border-top: 1px solid var(--line); padding: 22px 0 28px; text-align: center; font-size: 13px; color: var(--muted); }
footer p + p { margin-top: 3px; }
footer a { color: var(--muted); }
footer .links { margin-top: 10px; }
footer .links a { color: var(--ink); font-weight: 500; text-decoration: none; }
footer .links a:hover { text-decoration: underline; }
.ltr { direction: ltr; unicode-bidi: embed; }

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

.legal { flex: 1; padding-top: 32px; padding-bottom: 56px; }
.legal h1 { font-size: 30px; font-weight: 900; line-height: 1.25; }
.legal .updated { color: var(--muted); font-size: 14px; margin-top: 4px; }
.legal h2 { font-size: 18px; font-weight: 700; margin-top: 30px; margin-bottom: 8px; }
.legal p, .legal li { color: #374151; font-size: 15px; }
.legal p + p { margin-top: 8px; }
.legal ul { padding-inline-start: 20px; margin-top: 8px; }
.legal li + li { margin-top: 4px; }
.legal a { color: var(--accent); }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0 40px; }
