/* Brand site: homepage and /guides/. Tokens match /legal/styles.css and the lander. */
:root {
  --bg: #ffffff;
  --fg: #374151;
  --navy: #0b3161;
  --muted: #656d76;
  --accent: #b31942;
  --sea: #b7d8db;
  --sea-soft: #eef6f7;
  --border: #e4e7eb;
  --card: #f9fafb;
  --maxw: 1080px;
  --readw: 760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

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

h1, h2, h3 {
  color: var(--navy);
  font-family: Poppins, Inter, Arial, sans-serif;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

strong { color: var(--navy); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--sea);
  border-bottom: 1px solid rgb(11 49 97 / 0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand { display: inline-flex; }
.brand img { height: 36px; width: auto; display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px 22px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 10px;
  line-height: 1.2;
}

.btn:hover { background: #981536; }

.site-nav .btn { color: #fff; padding: 10px 18px; font-size: 15px; }
.site-nav .btn:hover { color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-ghost:hover { background: var(--navy); color: #fff; }

/* Hero */
/* Photo sits behind the text; the tint is near-solid on the left where the
   copy is and clears toward the house on the right. */
.hero {
  background:
    linear-gradient(90deg, rgb(226 240 241 / 0.97) 0%, rgb(226 240 241 / 0.93) 42%, rgb(226 240 241 / 0.45) 68%, rgb(226 240 241 / 0.08) 100%),
    url("/img/hero-home.webp") right center / cover no-repeat,
    var(--sea-soft);
  padding: 84px 0 92px;
}

.hero h1 {
  font-size: 44px;
  margin: 0 0 18px;
  max-width: 13em;
}

.hero p.lede {
  font-size: 20px;
  max-width: 26em;
  margin: 0 0 30px;
  color: #26374d;
}

.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero .fineprint {
  margin: 22px 0 0;
  font-size: 14px;
  color: #3d4f66;
  max-width: 34em;
}

/* Sections */
section.band { padding: 64px 0; }
section.band.alt { background: var(--card); border-block: 1px solid var(--border); }

section.band h2 { font-size: 30px; margin: 0 0 10px; }
section.band p.sub { margin: 0 0 34px; max-width: 42em; color: var(--muted); }

.steps,
.cards {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin: 0;
}

.steps .num {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
}

.steps h3 { font-size: 19px; margin: 0 0 8px; }
.steps p { margin: 0; font-size: 16px; }

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  text-decoration: none;
  color: var(--fg);
  transition: border-color .15s, box-shadow .15s;
}

.card:hover {
  border-color: var(--navy);
  box-shadow: 0 6px 20px rgb(11 49 97 / 0.08);
}

.card .tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.card h3 { font-size: 20px; margin: 0 0 10px; }
.card p { margin: 0 0 16px; font-size: 16px; }
.card .more { margin-top: auto; font-weight: 600; color: var(--navy); font-size: 15px; }

.two-col {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 1fr;
}

.two-col h3 { font-size: 20px; margin: 0 0 10px; }
.two-col ul { margin: 0; padding-left: 22px; }
.two-col li { margin: 8px 0; }

/* Guide pages */
.page {
  max-width: var(--readw);
  margin: 0 auto;
  padding: 44px 24px 72px;
}

.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--muted); }

.page h1 { font-size: 38px; margin: 0 0 12px; }
.page .meta { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.page h2 { font-size: 25px; margin: 44px 0 12px; }
.page h3 { font-size: 19px; margin: 28px 0 8px; }
.page ul, .page ol { padding-left: 24px; }
.page li { margin: 8px 0; }

.keypoints {
  background: var(--sea-soft);
  border-left: 4px solid var(--navy);
  border-radius: 10px;
  padding: 18px 24px;
  margin: 0 0 32px;
}

.keypoints h2 { font-size: 17px; margin: 0 0 8px; }
.keypoints ul { margin: 0; }

.table-scroll { overflow-x: auto; margin: 18px 0; }

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  min-width: 560px;
}

th, td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

th { background: var(--card); color: var(--navy); }

.example {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 20px 0;
}

.example p { margin: 6px 0; }

.cta-box {
  background: var(--navy);
  color: #fff;
  border-radius: 16px;
  padding: 30px;
  margin: 48px 0 0;
}

.cta-box h2 { color: #fff; font-size: 23px; margin: 0 0 8px; }
.cta-box p { color: #dbe6f3; margin: 0 0 20px; }
.cta-box .small { font-size: 13px; margin: 16px 0 0; color: #b9c9de; }

.note {
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 18px;
}

.related { margin-top: 44px; }
.related h2 { font-size: 20px; margin: 0 0 10px; }

/* Footer */
.site-footer {
  background: #0a2548;
  color: #c3d0e2;
  font-size: 14px;
  padding: 40px 0 34px;
}

.site-footer a { color: #e6edf6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 22px;
}

.site-footer p { margin: 0 0 10px; max-width: 70em; }

@media (max-width: 860px) {
  .steps, .cards, .two-col { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 52px; }
  .hero h1 { font-size: 32px; }
  .hero p.lede { font-size: 18px; }
  section.band { padding: 48px 0; }
  section.band h2 { font-size: 25px; }
  .page h1 { font-size: 30px; }
  .page h2 { font-size: 22px; }
}

@media (max-width: 1000px) {
  /* The text reaches further across, so the tint has to as well. */
  .hero {
    background:
      linear-gradient(90deg, rgb(226 240 241 / 0.97) 0%, rgb(226 240 241 / 0.94) 62%, rgb(226 240 241 / 0.6) 82%, rgb(226 240 241 / 0.25) 100%),
      url("/img/hero-home.webp") right center / cover no-repeat,
      var(--sea-soft);
  }
}

@media (max-width: 700px) {
  /* No room beside the text on a phone: keep the photo as a faint texture. */
  .hero {
    background:
      linear-gradient(rgb(226 240 241 / 0.9), rgb(226 240 241 / 0.9)),
      url("/img/hero-home.webp") 78% center / cover no-repeat,
      var(--sea-soft);
  }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap, .page { padding-left: 16px; padding-right: 16px; }
  .site-nav { gap: 6px 16px; }
  .site-nav .btn { display: none; }
  .hero .actions .btn { width: 100%; text-align: center; }
}
