:root {
  --blue: #0F6CBD;          /* Fluent blue */
  --blue-dark: #005A9E;
  --blue-deep: #004578;
  --sky: #50A0E8;
  --tint: #EFF6FC;
  --tint-2: #DEECF9;
  --text: #1b2733;
  --muted: #5b6b7b;
  --border: #e3ebf2;
  --bg: #ffffff;
  --ok: #107c41;
  --err: #c4314b;
  --warn-bg: #FFF8E6;
  --warn-border: #F2D58A;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ── */
body > nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  max-width: 960px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
}
.nav-logo:hover { text-decoration: none; }
img.nav-logo-icon { display: block; background: none; }
.nav-logo-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 16px;
}
.nav-links { display: flex; align-items: center; gap: 18px; font-size: 0.92rem; font-weight: 600; }
.nav-links a { color: var(--text); }
.nav-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-dark);
  background: var(--tint-2);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 76px 24px 48px;
  max-width: 760px;
  margin: 0 auto;
}
.hero-art { display: block; width: 100%; max-width: 400px; height: auto; margin: -36px auto 4px; }
.hero-badge {
  display: inline-block;
  background: var(--tint-2);
  color: var(--blue-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 22px;
  letter-spacing: 0.3px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--blue), var(--sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 auto 36px;
  max-width: 560px;
}
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 800;
}
.btn:hover { text-decoration: none; opacity: 0.95; }
.btn-ghost { background: var(--tint-2); color: var(--blue-dark); }
.hero-note { margin-top: 14px; font-size: 0.82rem; color: var(--muted); }

/* ── Signup form ── */
.signup { display: flex; flex-wrap: wrap; gap: 10px; max-width: 480px; margin: 0 auto; }
.signup select, .signup input[type="text"] {
  flex: 1 1 100%;
  padding: 13px 16px;
  font-size: 1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
}
.signup select:invalid { color: var(--muted); }
.signup input[type="text"][hidden], .provider-ask[hidden] { display: none; }
.provider-ask { flex: 1 1 100%; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.provider-q { font-weight: 700; font-size: 0.95rem; }
.signup input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  font-size: 1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.signup input[type="email"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(15, 108, 189, 0.15);
}
.signup button {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(15, 108, 189, 0.32);
  transition: transform 0.12s, opacity 0.12s;
}
.signup button:hover:not(:disabled) { transform: translateY(-1px); opacity: 0.95; }
.signup button:disabled { opacity: 0.6; cursor: default; }
.form-msg { margin-top: 14px; font-size: 0.9rem; font-weight: 600; min-height: 1.2em; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }

/* ── Sections ── */
section { padding: 56px 24px; }
.section-tint { background: var(--tint); }
h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.section-sub { text-align: center; color: var(--muted); max-width: 540px; margin: 0 auto 40px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
}
.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--tint-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.94rem; }
a.card { color: var(--text); display: block; transition: border-color 0.15s, transform 0.15s; }
a.card:hover { text-decoration: none; border-color: var(--blue); transform: translateY(-2px); }
a.card .card-more { display: inline-block; margin-top: 12px; color: var(--blue); font-weight: 700; font-size: 0.9rem; }

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  max-width: 720px;
  margin: 0 auto;
}
.trust-item { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem; }
.trust-item span { color: var(--blue); font-weight: 900; }

/* ── FAQ ── */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  background: var(--bg);
}
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin-top: 10px; color: var(--muted); }

.cta-final { text-align: center; max-width: 620px; margin: 0 auto; }
.cta-final h2 { margin-bottom: 14px; }
.cta-final p { color: var(--muted); margin-bottom: 30px; }

/* ── Article (guides) ── */
.article { max-width: 720px; margin: 0 auto; padding: 48px 24px 24px; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.article h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.article .lede { font-size: 1.12rem; color: var(--muted); margin-bottom: 10px; }
.article .meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 30px; }
.article h2 {
  text-align: left;
  font-size: 1.5rem;
  margin: 44px 0 14px;
  scroll-margin-top: 20px;
}
.article h3 { font-size: 1.12rem; font-weight: 800; margin: 26px 0 10px; }
.article p { margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 18px 22px; }
.article li { margin-bottom: 8px; }
.article code {
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.9em;
}
.article table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 0.94rem; }
.article th, .article td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.article th { background: var(--tint); font-weight: 700; }
.table-wrap { overflow-x: auto; margin-bottom: 22px; }
.table-wrap table { margin: 0; }

.toc {
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 10px;
}
.toc strong { display: block; margin-bottom: 8px; }
.toc ol { margin: 0 0 0 20px; }
.toc li { margin-bottom: 4px; }

.answer {
  border-left: 4px solid var(--blue);
  background: var(--tint);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin-bottom: 26px;
}
.answer p:last-child { margin-bottom: 0; }

.callout {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 20px;
  font-size: 0.95rem;
}
.callout p:last-child { margin-bottom: 0; }

.sources { font-size: 0.88rem; color: var(--muted); }
.sources li { margin-bottom: 6px; }

.cta-box {
  max-width: 720px;
  margin: 40px auto 0;
  padding: 30px 26px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--tint), var(--tint-2));
  border: 1px solid var(--border);
  text-align: center;
}
.cta-box h2 { margin: 0 0 10px; font-size: 1.4rem; text-align: center; }
.cta-box p { color: var(--muted); margin-bottom: 20px; }

.related { max-width: 720px; margin: 0 auto; padding: 40px 24px 10px; }
.related h2 { text-align: left; font-size: 1.25rem; margin-bottom: 14px; }
.related ul { list-style: none; }
.related li { margin-bottom: 10px; }
.related a { font-weight: 600; }

/* ── Guides index ── */
.guides-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 960px; margin: 0 auto; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  margin-top: 56px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-logo { font-weight: 800; color: var(--text); margin-bottom: 6px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 12px 0; }
.footer-links a { color: var(--muted); }
.footer-legal { margin-top: 14px; font-size: 0.78rem; max-width: 520px; margin-left: auto; margin-right: auto; }

@media (max-width: 720px) {
  .cards, .guides-grid { grid-template-columns: 1fr; }
  .signup { flex-direction: column; }
  .signup button { width: 100%; }
  .nav-links .nav-hide-sm { display: none; }
  body > nav { padding: 14px 16px; }
  .article, .related { padding-left: 16px; padding-right: 16px; }
  section { padding: 44px 16px; }
}
