/*
 * The public site — homepage, pricing, contact, getting started, and the legal
 * pages. One stylesheet, no build step and no CDN: every public page is served
 * logged-out to somebody deciding whether to trust us, so it must render from
 * this origin alone.
 *
 * It lives under /static/ rather than in a <style> block so the service worker
 * (which caches /static/ and nothing else) can keep it, and so a legal page
 * added later inherits the look without copying a stylesheet.
 */
* { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0; color: #0f172a; line-height: 1.6;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
a { color: #2563eb }
img { max-width: 100% }

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

/* ---------------------------------------------------------------- header */
header {
  position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px); border-bottom: 1px solid #eef2f7;
}
header .wrap { display: flex; align-items: center; gap: 14px; min-height: 64px; flex-wrap: wrap }
.brand { font-weight: 800; letter-spacing: -.02em; text-decoration: none; color: #0f172a }
header nav { margin-left: auto; display: flex; gap: 22px; align-items: center; font-size: 14px; font-weight: 600 }
header nav a { color: #475569; text-decoration: none }
header nav a:hover, header nav a[aria-current] { color: #0f172a }
.nav-login {
  background: #2563eb; color: #fff !important; padding: 9px 22px; border-radius: 8px;
  font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.nav-login:hover { background: #1d4ed8 }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-block; background: #2563eb; color: #fff; padding: 13px 26px;
  border-radius: 10px; font: inherit; font-weight: 700; text-decoration: none;
  border: 0; cursor: pointer; font-size: 15px;
}
.btn:hover { background: #1d4ed8 }
.ghost {
  display: inline-block; padding: 13px 22px; border-radius: 10px; font-weight: 700;
  text-decoration: none; border: 1px solid #cbd5e1; color: #334155;
}
.ghost:hover { border-color: #94a3b8 }

/* ------------------------------------------------------------- structure */
.hero {
  background: radial-gradient(1200px 500px at 70% -10%, #dbeafe, transparent),
              linear-gradient(180deg, #f8fafc, #fff);
  padding: 76px 0 60px;
}
.hero h1 { font-size: 52px; line-height: 1.06; letter-spacing: -.03em; margin: 0 0 18px; max-width: 16ch }
.hero p.sub { font-size: 20px; color: #475569; max-width: 56ch; margin: 0 0 30px }
.cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center }
.pill {
  display: inline-block; background: #eff6ff; color: #1d4ed8; font-weight: 700;
  font-size: 13px; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
section { padding: 60px 0 }
section.tint { background: #f8fafc }
h2 { font-size: 34px; letter-spacing: -.02em; margin: 0 0 8px }
h3 { font-size: 19px; margin: 12px 0 6px }
.lead { color: #64748b; margin: 0 0 34px; font-size: 17px; max-width: 62ch }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px }
.grid.two { grid-template-columns: 1fr 1fr }
.card {
  background: #fff; border: 1px solid #eef2f7; border-radius: 16px; padding: 26px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}
.card .ico { font-size: 30px; line-height: 1 }
.card p { margin: 0 0 10px; color: #475569; font-size: 15px }
.card ul { margin: 10px 0 0; padding-left: 20px; color: #475569; font-size: 15px }
.card ul li { margin-bottom: 6px }
.note { color: #64748b; font-size: 14px }

/* ------------------------------------------------------------ the plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start }
.plan { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 28px }
.plan.feature { border-color: #bfdbfe; box-shadow: 0 6px 24px rgba(37, 99, 235, .08) }
.plan h3 { font-size: 24px; margin: 0 }
.plan .price { color: #64748b; font-size: 15px; margin: 6px 0 18px }
.allow { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 20px }
.allow th, .allow td { text-align: left; padding: 9px 0; border-bottom: 1px solid #f1f5f9 }
.allow td.num { text-align: right; font-weight: 700; white-space: nowrap }
.allow th { font-weight: 600; color: #475569 }

/* --------------------------------------------------------- numbered steps */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0 }
.steps > li {
  counter-increment: step; position: relative; padding: 0 0 26px 52px; margin: 0;
  border-left: 2px solid #e2e8f0; margin-left: 15px;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0 }
.steps > li::before {
  content: counter(step); position: absolute; left: -16px; top: -4px;
  width: 32px; height: 32px; border-radius: 999px; background: #2563eb; color: #fff;
  font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin: 0 0 4px }
.steps p { margin: 0 0 8px; color: #475569 }

/* -------------------------------------------------------- the dark panel */
.panel {
  background: #0f172a; color: #fff; border-radius: 24px; padding: 44px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
}
.panel h2 { color: #fff }
.panel p { color: #cbd5e1 }
.panel a { color: #93c5fd }
.panel form { display: grid; gap: 12px }
.panel label { font-size: 13px; font-weight: 600; color: #e2e8f0 }
.panel input, .panel textarea, .panel select {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid #334155;
  background: #1e293b; color: #fff; font: inherit;
}
.panel input::placeholder, .panel textarea::placeholder { color: #94a3b8 }
.panel .field { display: grid; gap: 5px }
.hp { position: absolute; left: -9999px }
.formMsg { font-size: 14px; margin-top: 6px; min-height: 20px }

/* ---------------------------------------------------------------- footer */
footer { border-top: 1px solid #eef2f7; padding: 30px 0 40px; color: #64748b; font-size: 14px }
footer .cols { display: flex; gap: 30px; flex-wrap: wrap; align-items: baseline }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto }
footer a { color: #475569; text-decoration: none }
footer a:hover { text-decoration: underline }
footer .legal { margin-top: 18px; color: #94a3b8 }

@media (max-width: 820px) {
  .hero { padding: 52px 0 40px }
  .hero h1 { font-size: 38px }
  .grid, .grid.two, .plans, .panel { grid-template-columns: 1fr }
  .panel { padding: 28px }
  header nav { gap: 14px; font-size: 13px }
  footer nav { margin-left: 0 }
}
