:root {
  /* STA icon palette — flat, high contrast */
  --sta-yellow: #ffb840;
  --sta-yellow-hover: #f5a524;
  --sta-red: #b22222;
  --sta-green: #006d41;
  --sta-blue: #1e5d8c;
  --sta-black: #1a1a1a;
  --white: #ffffff;
  --text-muted: #5c5c5c;
  --border: #e0e0e0;
  --surface-tint: #f5f5f5;
  --page-bg: #ffffff;
  --radius: 10px;
  --radius-sm: 6px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
}

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

html {
  height: 100%;
  background-color: var(--page-bg);
}

body {
  position: relative;
  z-index: 1;
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--sta-black);
  background: var(--white);
  line-height: 1.6;
}

/* Four-bar accent — matches logo quadrants */
body::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--sta-yellow) 0%,
    var(--sta-yellow) 25%,
    var(--sta-red) 25%,
    var(--sta-red) 50%,
    var(--sta-green) 50%,
    var(--sta-green) 75%,
    var(--sta-blue) 75%,
    var(--sta-blue) 100%
  );
  position: relative;
  z-index: 2;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  background: var(--white);
}

/* Fills space above the card; logo centred in the middle of the viewport band */
.logo-stage {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.25rem 1.25rem 1.5rem;
  min-height: min(42vh, 360px);
}

.site-header {
  text-align: center;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0;
}

.logo-link {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  display: block;
  margin: 0 auto;
  max-width: min(100%, 520px);
  width: 100%;
  height: auto;
  object-fit: contain;
}

.wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 1.25rem 1.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: 0 8px 32px rgba(26, 26, 26, 0.06);
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sta-blue);
}

p.lead {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.actions--centered {
  justify-content: center;
}

.actions--centered .btn-primary {
  min-width: min(100%, 17rem);
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

a.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

a.btn-primary,
button.btn-primary {
  background: var(--sta-yellow);
  color: var(--white);
  box-shadow: 0 2px 0 rgba(26, 26, 26, 0.12);
}

a.btn-primary:hover,
button.btn-primary:hover {
  background: var(--sta-yellow-hover);
  color: var(--white);
}

button.btn-primary.btn-block {
  width: 100%;
  margin-top: 0.25rem;
}

.actions-spaced {
  margin-top: 1.5rem;
}

a.btn-ghost {
  background: transparent;
  color: var(--sta-blue);
  border: 2px solid var(--sta-blue);
}

a.btn-ghost:hover {
  background: rgba(30, 93, 140, 0.08);
  border-color: var(--sta-blue);
  color: #164a72;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sta-green);
  margin-bottom: 0.75rem;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--sta-black);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-tint);
  color: var(--sta-black);
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 1rem;
}

select {
  cursor: pointer;
  appearance: auto;
}

input:focus,
select:focus {
  outline: 2px solid var(--sta-blue);
  outline-offset: 1px;
  border-color: var(--sta-blue);
  background: var(--white);
}

.site-footer {
  margin-top: auto;
  background: var(--sta-black);
  color: var(--white);
  text-align: center;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.site-footer span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-top: 0.35rem;
}

/* Countdown inside card — white panel under lead, larger type */
.countdown--in-card {
  width: 100%;
  margin: 0 0 1.35rem;
  padding: 1.1rem 0.85rem 1.2rem;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 12px rgba(30, 93, 140, 0.06);
}

.countdown-line {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 0.35rem 0.25rem;
  font-size: clamp(2.35rem, 12vw, 4.25rem);
  font-weight: 200;
  letter-spacing: 0.06em;
  color: var(--sta-blue);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  font-family: var(--font);
}

.countdown--in-card .cd-num {
  font-weight: 300;
  text-align: center;
}

.countdown--in-card .cd-sep {
  font-weight: 200;
  color: var(--sta-blue);
  opacity: 0.45;
  letter-spacing: 0.02em;
}

.countdown-done {
  margin: 0;
  padding: 0.75rem 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--sta-green);
  background: transparent;
}
