:root {
  --bg: #f4f8fb;
  --fg: #0f172a;
  --muted: #475569;
  --card: #ffffff;
  --primary: #3dbbfb;
  --primary-dark: #0369a1;
  --border: #dbe4ee;
  --ring: #0284c7;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Google Sans Flex", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
}
a { color: var(--primary-dark); }
.skip-link {
  position: absolute;
  left: -999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.nav-wrap {
  position: sticky;
  top: 1rem;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 0.75rem;
}
.nav {
  width: min(1120px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid #fff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 45px -28px rgba(15, 23, 42, 0.35);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
}
.nav-links, .nav-actions { display: flex; align-items: center; gap: 1.1rem; }
.nav-links a, .nav-actions a { text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--muted); }
.nav-links a:hover, .nav-actions a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  text-decoration: none;
  border: 0;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: #e0f2fe; color: var(--fg); }
.hero, .section { max-width: 1100px; margin: 0 auto; padding: 3.5rem 1.25rem; }
.eyebrow {
  display: inline-block;
  border: 1px solid #bae6fd;
  background: #e0f2fe;
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; margin: 0.8rem 0; }
h2 { font-size: 1.75rem; }
.grad {
  background: linear-gradient(90deg, #0284c7, #0d9488);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.band { background: #e0f2fe; }
.score {
  max-width: 36rem;
  margin: 2.5rem auto 0;
  text-align: left;
}
.score-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}
.quote {
  background: #f0f9ff;
  border-radius: 0.6rem;
  padding: 0.75rem 1rem;
}
.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
@media (min-width: 640px) { .chips { grid-template-columns: repeat(3, 1fr); } }
.chip-box { border: 1px solid var(--border); border-radius: 0.6rem; padding: 0.55rem 0.7rem; background: var(--bg); }
.chip-box small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.72rem; }
.chip { display: inline-block; margin-top: 0.25rem; border-radius: 0.35rem; padding: 0.1rem 0.45rem; font-family: ui-monospace, monospace; font-size: 0.85rem; }
.sky { background: #e0f2fe; color: #075985; }
.slate { background: #f1f5f9; color: #334155; }
.orange { background: #ffedd5; color: #9a3412; }
.teal { background: #ccfbf1; color: #115e59; }
.green { background: #d1fae5; color: #065f46; }
.blue { background: #bae6fd; color: #0c4a6e; }
.steps { list-style: none; padding: 0; max-width: 40rem; margin: 2rem auto 0; }
.steps li { display: flex; gap: 1rem; margin: 1.25rem 0; }
.num {
  flex: 0 0 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.split { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; } }
.rule { border-left: 3px solid var(--primary); padding-left: 1rem; }
.lede { color: var(--muted); font-size: 1.1rem; max-width: 40rem; }
.callout {
  max-width: 40rem;
  margin: 1.25rem auto 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--primary);
  background: #e0f2fe;
}
.center { text-align: center; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.4rem;
  box-shadow: 0 10px 30px -24px rgba(15, 23, 42, 0.4);
}
.card h3 { margin-top: 0; }
.tagline { color: var(--primary-dark); font-size: 0.85rem; font-weight: 600; }
footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  background: #e0f2fe;
  padding: 3rem 1.25rem 2rem;
}
.foot-inner { max-width: 1100px; margin: 0 auto; display: grid; gap: 2rem; }
@media (min-width: 800px) { .foot-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-inner nav a { display: block; margin: 0.35rem 0; text-decoration: none; color: var(--muted); }
.nav-toggle { display: none; background: none; border: 0; font: inherit; }
@media (max-width: 799px) {
  .nav-links, .nav-actions { display: none; }
  .nav.is-open .nav-links, .nav.is-open .nav-actions {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 4.4rem;
    left: 0.75rem;
    right: 0.75rem;
    background: #fff;
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
  }
  .nav-toggle { display: block; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.grid-4 { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-card { width: min(28rem, 100%); background: #fff; border: 1px solid var(--border); border-radius: 1.25rem; padding: 2rem; box-shadow: 0 20px 50px -30px rgba(15, 23, 42, 0.45); }
.auth-card label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.35rem; }
.auth-card input { width: 100%; border: 1px solid var(--border); border-radius: 0.7rem; padding: 0.75rem 0.9rem; font: inherit; background: #fff; color: var(--fg); margin-bottom: 1rem; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; background: #f1f5f9; border-radius: 999px; padding: 0.25rem; margin: 1.25rem 0; }
.tabs button { border: 0; border-radius: 999px; padding: 0.55rem; font: inherit; font-weight: 600; background: transparent; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--primary); color: #fff; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; }
.chat { background: #fff; border: 1px solid var(--border); border-radius: 1.1rem; overflow: hidden; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 1rem; background: #e0f2fe; }
.chat-log { min-height: 22rem; padding: 1rem; display: flex; flex-direction: column; gap: 0.7rem; }
.bubble { max-width: 85%; border-radius: 0.8rem; padding: 0.7rem 0.9rem; }
.bubble.user { align-self: flex-end; background: #3dbbfb; color: #fff; }
.bubble.bot { align-self: flex-start; background: #f8fafc; border: 1px solid var(--border); }
.ad-card { align-self: flex-start; max-width: 90%; background: #0f172a; color: #f8fafc; border-radius: 0.8rem; padding: 0.9rem 1rem; }
.ad-card .tagline { color: #7dd3fc; }
.ad-card a { color: #fff; background: var(--primary); display: inline-block; margin-top: 0.6rem; padding: 0.45rem 0.85rem; border-radius: 0.5rem; text-decoration: none; font-weight: 600; }
.chat-input { display: flex; gap: 0.5rem; padding: 0.75rem; background: #f8fafc; }
.chat-input input { flex: 1; border: 1px solid var(--border); border-radius: 999px; padding: 0.65rem 1rem; font: inherit; }
pre, code { font-family: ui-monospace, monospace; font-size: 0.85rem; }
pre { background: #f8fafc; border: 1px solid var(--border); border-radius: 0.8rem; padding: 1rem; overflow: auto; }
