/* AviSeek marketing site.
   Same tokens as the app (app/lib/ui/theme.dart) so the two never drift. */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --navy: #10204f;
  --blue: #1a5fe0;
  --blue-bright: #2f7bff;
  --ink: #0c1428;
  --muted: #5b6780;
  --paper: #f6f8fc;
  --card: #ffffff;
  --border: #e2e6ef;
  --good: #16a34a;
  --warn: #8a5206;
  --measure: 62ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

a { color: var(--blue); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------------------------------------------------------------- header */
header.site {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
header.site .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}
.brand {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand span { color: var(--blue); }
header.site nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--navy); background: #fff; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 1.06rem; }

/* ------------------------------------------------------------------ hero */
.hero {
  background: linear-gradient(140deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  padding: 84px 0 92px;
}
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  max-width: 17ch;
  text-wrap: balance;
}
.hero p.sub {
  font-size: 1.2rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  max-width: 54ch;
  margin: 0 0 32px;
}
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.35); }
.hero .btn-ghost:hover { background: rgba(255,255,255,0.16); color: #fff; border-color: #fff; }
.hero .fine { margin-top: 22px; font-size: 0.9rem; color: rgba(255,255,255,0.66); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-stats b { display: block; font-size: 1.9rem; font-weight: 800; line-height: 1; }
.hero-stats span { font-size: 0.9rem; color: rgba(255,255,255,0.7); }

/* -------------------------------------------------------------- sections */
section.band { padding: 76px 0; }
section.band.alt { background: var(--card); border-block: 1px solid var(--border); }
h2.section {
  font-size: clamp(1.7rem, 3.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-wrap: balance;
}
p.section-sub { color: var(--muted); font-size: 1.1rem; max-width: var(--measure); margin: 0 0 36px; }

/* ------------------------------------------------------------- how steps */
.steps { display: grid; gap: 2px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.step { background: var(--card); padding: 24px 26px; display: grid; grid-template-columns: 40px 1fr; gap: 18px; align-items: start; }
.step .num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.step h3 { margin: 4px 0 4px; font-size: 1.1rem; font-weight: 700; }
.step p { margin: 0; color: var(--muted); max-width: 60ch; }

/* ------------------------------------------------------------------ grid */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
}
.card h3 { margin: 0 0 8px; font-size: 1.08rem; font-weight: 700; }
.card p { margin: 0; color: var(--muted); }

/* --------------------------------------------------------------- pricing */
.price-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 720px; }
.price { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 30px; }
.price.featured { border-color: var(--blue); border-width: 2px; }
.price .amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price .per { color: var(--muted); font-size: 1rem; font-weight: 500; }
.price ul { list-style: none; padding: 0; margin: 20px 0 24px; }
.price li { padding-left: 26px; position: relative; margin-bottom: 9px; color: var(--muted); }
.price li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--good); border-bottom: 2px solid var(--good);
  transform: rotate(-45deg);
}

.guarantee {
  margin-top: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--good);
  border-radius: 12px;
  padding: 22px 26px;
  max-width: 720px;
}
.guarantee b { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.guarantee p { margin: 0; color: var(--muted); }

/* ------------------------------------------------------------------- faq */
details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 10px;
}
details[open] { border-color: var(--blue); }
summary { font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--blue); font-weight: 700; }
details[open] summary::after { content: "\2212"; }
details p { color: var(--muted); margin: 12px 0 0; max-width: var(--measure); }

/* ---------------------------------------------------------------- notice */
.notice {
  background: #fff8ec;
  border: 1px solid #f0dcb8;
  border-radius: 12px;
  padding: 18px 22px;
  color: var(--warn);
  max-width: var(--measure);
}
.notice b { display: block; margin-bottom: 4px; color: var(--warn); }

/* ---------------------------------------------------------------- footer */
footer.site {
  background: var(--navy);
  color: rgba(255,255,255,0.72);
  padding: 44px 0;
  font-size: 0.93rem;
}
footer.site a { color: #fff; text-decoration: none; }
footer.site a:hover { text-decoration: underline; color: #fff; }
footer.site .row { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
footer.site .row nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }

/* -------------------------------------------------------------- documents */
.doc { padding: 56px 0 90px; }
.doc h1 { font-size: clamp(1.9rem, 4.5vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
.doc .updated { color: var(--muted); font-size: 0.93rem; margin: 0 0 34px; }
.doc h2 { font-size: 1.2rem; font-weight: 700; margin: 36px 0 10px; }
.doc h3 { font-size: 1.02rem; font-weight: 600; margin: 22px 0 6px; }
.doc p, .doc li { max-width: var(--measure); color: var(--ink); }
.doc p { margin: 0 0 14px; }
.doc ul { padding-left: 22px; margin: 0 0 16px; }
.doc li { margin-bottom: 8px; }
.doc .draft {
  background: #fff8ec;
  border: 1px solid #f0dcb8;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 32px;
  color: var(--warn);
  max-width: var(--measure);
}
