:root {
  --brand: #E5462A;
  --brand-dark: #c33a21;
  --ink: #1b1b1f;
  --muted: #5a5a62;
  --bg: #fffcf7;
  --card: #ffffff;
  --line: #ece6dd;
  --maxw: 760px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

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

header.site {
  background: var(--brand);
  color: #fff;
}
header.site .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
}
header.site a { color: #fff; text-decoration: none; }
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(255,255,255,0.18);
  font-size: 20px;
}
.brandname {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
header.site nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 15px;
  font-weight: 500;
}
header.site nav a { opacity: 0.92; display: inline-flex; align-items: center; min-height: 40px; }
header.site nav a:hover { opacity: 1; text-decoration: underline; }

main { padding: 40px 0 64px; }

.hero { text-align: center; padding: 56px 0 28px; }
.hero h1 {
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.hero p.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 30px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229,70,42,0.10);
  border-color: var(--brand);
}
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

h1.page { font-size: 32px; margin: 6px 0 6px; letter-spacing: -0.02em; }
.updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
h2 { font-size: 22px; margin: 34px 0 10px; letter-spacing: -0.01em; }
h3 { font-size: 18px; margin: 22px 0 8px; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 22px 0;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}
table.data th, table.data td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data th { background: #faf4ec; font-weight: 600; }

ol.steps { padding-left: 22px; }
ol.steps li { margin-bottom: 10px; }

.faq dt { font-weight: 600; margin-top: 18px; }
.faq dd { margin: 6px 0 0; color: var(--muted); }

.back { display: inline-block; margin-bottom: 18px; font-size: 15px; text-decoration: none; }

footer.site {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  padding: 26px 22px;
}
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--brand); }
footer.site .spacer { margin-left: auto; }
footer.site .badge-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  opacity: 0.7;
  transition: opacity .12s ease;
}
footer.site .badge-link:hover,
footer.site .badge-link:focus-visible { opacity: 1; }

@media (max-width: 600px) {
  /* Tables become self-scrolling so they never push the page wider than the viewport */
  table.data {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: normal;
  }
  table.data thead, table.data tbody, table.data tr { width: 100%; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 32px; }
  header.site nav { gap: 4px 12px; font-size: 14px; }
  .wrap { padding: 0 18px; }
  h1.page { font-size: 28px; }
  main { padding: 28px 0 48px; }
}
