:root {
  --ft-brand: #3B5866;        /* Primary slate-teal: banner, accent text, button, footer */
  --ft-brand-hover: #2F4955;  /* Button hover / link color */
  --ft-link-hover: #1E333C;
  --ft-ink: #1F2A30;          /* Headings, wordmark */
  --ft-body: #4F5D64;         /* Body copy */
  --ft-muted: #5B686E;        /* Small helper text */
  --ft-line: #E6E8EA;         /* Header rule, progress track */
  --ft-spinner-track: #DDE4E7;
  --ft-footer-sub: #E3EAED;
  --ft-bg: #FFFFFF;
  --ft-font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --ft-duration: 5s;          /* Keep in sync with redirect delay */
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ft-bg);
  color: var(--ft-ink);
  font-family: var(--ft-font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ft-brand-hover); }
a:hover { color: var(--ft-link-hover); }
a:focus-visible { outline: 3px solid var(--ft-brand); outline-offset: 3px; }

/* ---------- Banner ---------- */
.ft-banner {
  background: var(--ft-brand);
  color: #FFFFFF;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 9px 16px;
}

/* ---------- Header ---------- */
.ft-header {
  border-bottom: 1px solid var(--ft-line);
  padding: 18px 16px;
  display: flex;
  justify-content: center;
}
.ft-wordmark {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--ft-ink);
  text-decoration: none;
  padding-left: 0.3em; /* optically re-centre tracked text */
}

/* ---------- Main ---------- */
.ft-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.ft-card {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.ft-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid var(--ft-spinner-track);
  border-top-color: var(--ft-brand);
  animation: ft-spin 0.9s linear infinite;
}

.ft-copy { display: flex; flex-direction: column; gap: 10px; }
.ft-eyebrow { margin: 0; font-size: 13px; font-style: italic; color: var(--ft-body); }
.ft-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ft-ink);
}
.ft-title span { color: var(--ft-brand); word-break: break-word; }
.ft-lede { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ft-body); }

.ft-progress {
  width: 100%;
  max-width: 240px;
  height: 4px;
  background: var(--ft-line);
  border-radius: 2px;
  overflow: hidden;
}
.ft-progress__bar {
  height: 100%;
  width: 0;
  background: var(--ft-brand);
  animation: ft-bar var(--ft-duration) linear forwards;
}

.ft-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 0 32px;
  background: var(--ft-brand);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: background-color 150ms ease;
}
.ft-button:hover { background: var(--ft-brand-hover); color: #FFFFFF; }

.ft-help { margin: 0; font-size: 13px; color: var(--ft-muted); }
.ft-help a { font-weight: 600; }

/* ---------- Footer ---------- */
.ft-footer {
  background: var(--ft-brand);
  color: #FFFFFF;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ft-footer__mark { font-size: 14px; font-weight: 600; letter-spacing: 0.28em; }
.ft-footer__copy { font-size: 12px; color: var(--ft-footer-sub); }

/* ---------- Tablet ≥ 768px ---------- */
@media (min-width: 768px) {
  .ft-banner { font-size: 12px; padding: 10px 24px; }
  .ft-header { padding: 24px; }
  .ft-wordmark { font-size: 22px; letter-spacing: 0.32em; padding-left: 0.32em; }
  .ft-main { padding: 64px 48px; }
  .ft-card { max-width: 520px; gap: 32px; }
  .ft-spinner { width: 60px; height: 60px; }
  .ft-copy { gap: 14px; }
  .ft-eyebrow { font-size: 15px; }
  .ft-title { font-size: 34px; line-height: 1.25; }
  .ft-lede { font-size: 17px; }
  .ft-progress { max-width: 340px; }
  .ft-button { width: auto; min-height: 52px; padding: 0 40px; }
  .ft-help { font-size: 14px; }
  .ft-footer { flex-direction: row; justify-content: space-between; padding: 32px; }
  .ft-footer__mark { font-size: 15px; }
}

/* ---------- Desktop ≥ 1024px ---------- */
@media (min-width: 1024px) {
  .ft-main { padding: 64px 16px; }
  .ft-card { max-width: 560px; gap: 28px; }
  .ft-spinner { width: 56px; height: 56px; }
  .ft-copy { gap: 12px; }
  .ft-eyebrow { font-size: 14px; }
  .ft-lede { font-size: 16px; }
  .ft-progress { max-width: 320px; }
  .ft-button { min-height: 48px; padding: 0 32px; font-size: 14px; }
  .ft-help { font-size: 13px; }
  .ft-footer { padding: 28px 24px; }
}

@keyframes ft-spin { to { transform: rotate(360deg); } }
@keyframes ft-bar { from { width: 0; } to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .ft-spinner { animation: none; }
  .ft-progress__bar { animation: none; width: 100%; }
}

.ft-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
