:root {
  --charcoal: #1F2328;
  --chalk: #F5F3EA;
  --pine: #0F4C3A;
  --brass: #C9A227;
  --ink: #1F2328;
  --muted: #5B6168;
  --rule: #DAD6C8;
  --paper: #FBFAF6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Montserrat, Futura, "Century Gothic", "Avenir Next", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--charcoal); color: var(--chalk); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--chalk); text-decoration: none; }
.brand img { height: 52px; width: auto; display: block; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--chalk); text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.85; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; color: var(--brass); }
.topline { background: var(--pine); color: var(--chalk); font-size: 14px; padding: 8px 0; }
.topline .wrap { display: block; min-height: 0; }

/* Hero */
.hero { background: var(--charcoal); color: var(--chalk); padding: 72px 0 64px; border-top: 1px solid rgba(245,243,234,0.08); }
.hero h1 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.12; margin: 0 0 18px; font-weight: 700; max-width: 820px; }
.hero p { font-size: 19px; max-width: 760px; margin: 0 0 10px; opacity: 0.92; }
.hero .not { color: var(--brass); font-weight: 600; }
.hero .actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn { display: inline-block; padding: 12px 20px; border-radius: 4px; font-weight: 600; text-decoration: none; font-size: 15px; letter-spacing: 0.02em; border: 2px solid transparent; }
.btn-primary { background: var(--brass); color: var(--charcoal); border-color: var(--brass); }
.btn-primary:hover { background: #d9b23a; border-color: #d9b23a; color: var(--charcoal); }
.btn-ghost { background: transparent; color: var(--chalk); border-color: rgba(245,243,234,0.5); }
.btn-ghost:hover { border-color: var(--chalk); color: var(--chalk); }
.btn-dark { background: var(--pine); color: var(--chalk); border-color: var(--pine); }
.btn-dark:hover { background: #136049; color: var(--chalk); }

/* Sections */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--rule); }
h2 { font-size: 28px; line-height: 1.2; margin: 0 0 18px; }
h3 { font-size: 19px; margin: 28px 0 8px; }
p { margin: 0 0 14px; }
.lead { font-size: 19px; max-width: 760px; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 24px; }
.card { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 22px; }
.card h3 { margin-top: 0; }
.card .k { display: inline-block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pine); font-weight: 700; margin-bottom: 8px; }
.callout { border-left: 4px solid var(--brass); background: #fff; padding: 18px 22px; margin: 22px 0; border-radius: 0 6px 6px 0; }
.callout p:last-child { margin-bottom: 0; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 18px 0 6px; background: #fff; border: 1px solid var(--rule); font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
th { background: var(--charcoal); color: var(--chalk); font-weight: 600; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td code, .code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; background: #f1efe6; padding: 1px 6px; border-radius: 3px; }
.table-scroll { overflow-x: auto; }

/* Steps */
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
ol.steps li { counter-increment: s; background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 18px 20px 18px 66px; position: relative; }
ol.steps li::before { content: counter(s); position: absolute; left: 20px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--pine); color: var(--chalk); font-weight: 700; display: grid; place-items: center; font-size: 15px; }
ol.steps li strong { display: block; margin-bottom: 4px; }

/* Forms */
form { display: grid; gap: 14px; max-width: 560px; }
label { font-weight: 600; font-size: 14px; display: grid; gap: 6px; }
input, select, textarea { font: inherit; padding: 10px 12px; border: 1px solid #b9b5a8; border-radius: 4px; background: #fff; }
textarea { min-height: 120px; resize: vertical; }

/* Footer */
.site-footer { background: var(--charcoal); color: var(--chalk); padding: 40px 0; font-size: 14px; margin-top: 40px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.site-footer a { color: var(--chalk); opacity: 0.85; }
.site-footer a:hover { color: var(--brass); opacity: 1; }
.site-footer .rule { height: 3px; background: var(--pine); margin: 0 0 24px; }
.site-footer p { max-width: 560px; opacity: 0.85; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; padding: 14px 20px; }
  .brand img { height: 44px; }
  .hero { padding: 48px 0 44px; }
  section { padding: 40px 0; }
  th, td { padding: 10px; font-size: 14px; }
}

/* Header brand: cropped mark plus the name as text */
.brand img { height: 40px; width: auto; }
.brand-name { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 15px; color: var(--chalk); }
@media (max-width: 640px) { .brand img { height: 34px; } .brand-name { font-size: 14px; } }

/* Tables below tablet width: each row becomes a card, the header cell text becomes a label */
@media (max-width: 720px) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; left: -9999px; top: -9999px; }
  table { border: 0; background: transparent; }
  tr { background: #fff; border: 1px solid var(--rule); border-radius: 6px; margin: 0 0 12px; padding: 6px 0; }
  td { border: 0; padding: 8px 14px; }
  td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pine); font-weight: 700; margin-bottom: 2px; }
  .table-scroll { overflow: visible; }
  .nav { gap: 14px 18px; }
  .nav a { font-size: 13px; }
}

/* Join form */
.fpx-hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.callout-error { border-left-color: #B3261E; }
.fpx-form button { min-width: 140px; }
