/* ---------- tokens ---------- */
:root {
  --brand-1: #5775fb;
  --brand-2: #203280;
  --accent:  #ecff20;

  --bg:      #ffffff;
  --surface: #f5f7fb;
  --text:    #14171c;
  --muted:   #5a626e;
  --link:    #2747c8;
  --border:  #e3e7ef;

  --maxw: 980px;
  --readw: 720px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16,24,48,.06), 0 8px 24px rgba(16,24,48,.07);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #101319;
    --surface: #171b23;
    --text:    #e9ecf2;
    --muted:   #9aa3b2;
    --link:    #93aaff;
    --border:  #262c37;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--link); }

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

/* ---------- header ---------- */
.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);                                   /* fallback */
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}

.site nav { display: flex; flex-wrap: wrap; gap: 6px; }

.site nav a {
  font-size: 14px;
  text-decoration: none;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
}

.site nav a:hover { color: var(--text); background: var(--surface); }
.site nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--brand-1) 0%, var(--brand-2) 100%);
  color: #fff;
  padding: 62px 20px 74px;
}

/* road dashes along the bottom edge */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 26px;
  height: 6px;
  background: repeating-linear-gradient(
    to right,
    rgba(255,255,255,.5) 0 34px,
    transparent 34px 68px);
  mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 46px;
}

.hero-text { max-width: 540px; }

.hero img.appicon {
  flex: 0 0 auto;
  width: 172px; height: 172px;
  margin: 0;
  border-radius: 38px;
  box-shadow: 0 14px 40px rgba(6,14,45,.45);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5.2vw, 46px);
  line-height: 1.1;
  letter-spacing: -.025em;
  font-weight: 800;
}

.hero p.tagline {
  margin: 0 0 4px;
  font-size: clamp(17px, 2.2vw, 20px);
  max-width: 42ch;
  color: rgba(255,255,255,.94);
}


.cta {
  display: inline-block;
  margin-top: 22px;
  padding: 13px 26px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-2);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(6,14,45,.3);
  transition: transform .15s ease, box-shadow .15s ease;
}

.cta:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(6,14,45,.38); }

/* ---------- page head (interior pages) ---------- */
.pagehead {
  background: linear-gradient(165deg, var(--brand-1) 0%, var(--brand-2) 100%);
  color: #fff;
  padding: 44px 20px 40px;
}

.pagehead .inner { max-width: var(--readw); margin: 0 auto; }

.pagehead h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -.02em;
  font-weight: 800;
}

/* ---------- layout ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 52px 20px 72px; }
main.prose { max-width: var(--readw); }

section + section { margin-top: 56px; }

h2 {
  font-size: clamp(21px, 2.6vw, 26px);
  letter-spacing: -.015em;
  margin: 0 0 18px;
}

.prose h2 { margin: 36px 0 10px; font-size: 20px; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 22px; }
.prose li { margin: 7px 0; }

.lede { font-size: 18px; color: var(--muted); }

/* ---------- feature cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 16px;
}

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

.card .ico {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--brand-1), var(--brand-2));
  margin-bottom: 13px;
}

.card .ico svg { width: 20px; height: 20px; stroke: #fff; fill: none;
                 stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.card h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: -.01em; }
.card p  { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ---------- screenshots ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}

.shots img {
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ---------- note ---------- */
.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand-1);
  border-radius: 10px;
  padding: 15px 18px;
  font-size: 14px;
  color: var(--muted);
}

.effective { font-weight: 600; margin-top: 30px; }

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}

.foot .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px 20px 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
}

.foot nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 560px) {
  .hero { padding: 52px 20px 62px; }
  .foot nav { margin-left: 0; }
}

/* ---------- contact card ---------- */
.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  background: var(--surface);                              /* fallback */
  background: linear-gradient(150deg,
    color-mix(in srgb, var(--brand-1) 12%, var(--surface)),
    var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
}

.contact .txt { flex: 1 1 260px; }
.contact h2 { margin: 0 0 6px; font-size: 19px; }
.contact p  { margin: 0; color: var(--muted); font-size: 15px; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(160deg, var(--brand-1), var(--brand-2));
  color: #fff;
  font-weight: 650;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(32,50,128,.28);
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(32,50,128,.36); }

/* ---------- checklist ---------- */
ul.check { list-style: none; padding: 0; margin: 0; }

ul.check li {
  position: relative;
  padding-left: 27px;
  margin: 9px 0;
  color: var(--muted);
}

ul.check li::before {
  content: "";
  position: absolute;
  left: 2px; top: .55em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--brand-1);
  border-bottom: 2px solid var(--brand-1);
  transform: rotate(-45deg);
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 34px 16px 0;
  position: relative;
  font-weight: 600;
  font-size: 15.5px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .18s ease;
}

.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq summary:hover { color: var(--link); }

.faq .answer { padding: 0 0 18px; color: var(--muted); font-size: 15px; }
.faq .answer p:first-child { margin-top: 0; }
.faq .answer p:last-child  { margin-bottom: 0; }

/* ---------- mobile header ----------
   Four nav links don't fit at phone widths. Left alone they wrap to a second
   row, and `position: sticky` then pins that double-height bar over the content
   for the whole scroll. Instead: keep one row and let the nav scroll sideways,
   and let the whole header scroll away rather than camp on a short viewport. */
@media (max-width: 640px) {
  .site { position: static; }

  .site .inner {
    flex-wrap: nowrap;
    align-items: center;
    gap: 14px;
    padding: 10px 20px;
  }

  .brand { flex: 0 0 auto; margin-right: 0; }

  .site nav {
    flex-wrap: nowrap;
    min-width: 0;                  /* lets the flex item actually overflow */
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-right: -20px;           /* bleed to the edge so it reads as scrollable */
    padding-right: 20px;
  }

  .site nav::-webkit-scrollbar { display: none; }
  .site nav a { white-space: nowrap; padding: 6px 8px; }

  .pagehead { padding: 32px 20px 30px; }
  main { padding: 34px 20px 54px; }
}

/* ---------- hero stacks below the two-column breakpoint ---------- */
@media (max-width: 720px) {
  .hero-inner {
    flex-direction: column;
    gap: 26px;
    text-align: center;
  }

  .hero-text { max-width: 100%; }
  .hero img.appicon { width: 112px; height: 112px; border-radius: 25px; }
  .hero p.tagline { margin-left: auto; margin-right: auto; max-width: 34ch; }
  .hero h1 { font-size: clamp(28px, 7vw, 38px); }
}
