/* FWSSR leads (from fwssr.com): rodeo red, charcoal, cream, steel blue; condensed italic caps
   headlines. BelWave (Brand Guidelines v1.0) supports: Blue for the "powered by" presence,
   Green only for success states, Red Hat Display for body copy. */
:root {
  --fw-red: #980000;
  --fw-red-deep: #7A0000;
  --fw-charcoal: #252525;
  --fw-cream: #EBE4D4;
  --fw-steel: #1D4962;
  --fw-gold: #E0B04A;
  --bw-blue: #163C9E;
  --bw-green: #51B14F;
  --white: #FFFFFF;

  --bg: var(--fw-cream);
  --surface: var(--white);
  --surface-alt: #F6F2EA;
  --text: var(--fw-charcoal);
  --heading: var(--fw-charcoal);
  --muted: #5B554C;
  --field-bg: #F6F2EA;
  --field-border: #CFC6B4;
  --focus: var(--fw-steel);
  --error: #B3261E;
  --price: var(--fw-red);

  --font-display: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Red Hat Display", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B1B1B;
    --surface: var(--fw-charcoal);
    --surface-alt: #2E2E2E;
    --text: var(--fw-cream);
    --heading: var(--fw-cream);
    --muted: #C9C1B1;
    --field-bg: #2E2E2E;
    --field-border: #454545;
    --focus: var(--fw-gold);
    --error: #FF8A80;
    --price: #FF6B5E;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font-body);
}

.wrap { max-width: 880px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* ---- masthead: FWSSR on charcoal, like their site header ---- */
.masthead { background: var(--fw-charcoal); color: var(--fw-cream); }
.masthead-inner { display: flex; align-items: center; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.fw-logo {
  flex: none;
  display: block;
  background: var(--fw-cream);
  border-radius: 8px;
  padding: 8px 10px;
  line-height: 0;
}
.fw-logo img { width: 150px; height: auto; }
.kicker, .card-kicker {
  margin: 0;
  color: var(--fw-gold);
  font: 700 14px/1.2 var(--font-display);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.masthead-title {
  margin: 4px 0 0;
  font: italic 800 clamp(28px, 5vw, 44px)/1 var(--font-display);
  text-transform: uppercase;
  color: var(--white);
}
@media (max-width: 520px) {
  .masthead-inner { gap: 14px; }
  .fw-logo img { width: 104px; }
}

/* ---- date bar: mirrors fwssr.com's steel-blue countdown bar ("presented by") ---- */
.datebar { background: var(--fw-steel); color: var(--fw-cream); font: 400 15px/1.3 var(--font-display); }
.datebar-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 16px; padding-top: 10px; padding-bottom: 10px;
}
.datebar strong { font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.powered { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.powered img { display: block; width: 96px; height: auto; }

/* ---- page ---- */
.page { padding-top: 28px; padding-bottom: 56px; }

h1, h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--heading);
  line-height: 1.05;
}
h1 { margin: 0 0 8px; font-size: clamp(28px, 4.6vw, 38px); }
h2 { margin: 0 0 8px; font-size: 22px; }
.lede { margin: 0 0 20px; font-size: 17px; max-width: 60ch; }

.back {
  display: inline-block;
  margin: 0 0 12px; padding: 0; border: 0; background: none; color: var(--muted);
  font: 600 15px var(--font-body); cursor: pointer; text-decoration: none;
}

/* ---- pass cards ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

.pass, .vendor-option {
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 18px 16px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.pass:hover, .vendor-option:hover:not(:disabled) { border-color: var(--fw-red); }
.pass:focus-visible, .vendor-option:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.pass-name { font: italic 800 22px/1 var(--font-display); text-transform: uppercase; color: var(--heading); }
.pass-price { font: 800 30px/1.1 var(--font-display); color: var(--price); }
.pass-blurb { font-size: 15px; }
.pass-devices {
  justify-self: start;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface-alt);
  color: var(--muted);
  font: 700 12px/1.6 var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.vendor-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px 20px;
  border-radius: 12px;
  background: var(--fw-steel);
  color: var(--fw-cream);
}
.vendor-card h2 { color: var(--white); font-size: 28px; }
.vendor-card p { margin: 0; }
.vendor-card .card-kicker { margin-bottom: 4px; font-size: 13px; }
.vendor-options { display: grid; gap: 10px; }
.vendor-option { background: var(--white); color: var(--fw-charcoal); }
.vendor-option .pass-price { color: var(--fw-red); font-size: 26px; }
.vendor-option .pass-devices { background: var(--fw-cream); color: var(--fw-charcoal); }
.vendor-option:disabled { opacity: .7; cursor: not-allowed; }
@media (max-width: 640px) { .vendor-card { grid-template-columns: 1fr; } }

/* ---- summary chip on later steps ---- */
.summary {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  max-width: 640px; margin-bottom: 16px; padding: 10px 14px; border-radius: 8px;
  background: var(--surface); border-left: 4px solid var(--fw-red);
}
.summary span { font: italic 800 18px var(--font-display); text-transform: uppercase; }
.summary strong { font: 800 18px var(--font-display); color: var(--price); }
.summary em { font-style: normal; color: var(--muted); font-size: 14px; }
.summary:empty { display: none; }

/* ---- forms ---- */
.panel {
  margin: 0 0 16px;
  padding: 18px 16px 8px;
  background: var(--surface);
  border: 0;
  border-radius: 12px;
}
form, [data-step="email"] .panel, .done { max-width: 640px; }
legend {
  float: left;
  width: 100%;
  margin-bottom: 12px;
  padding: 0;
  font: italic 800 20px var(--font-display);
  text-transform: uppercase;
  color: var(--heading);
}
legend + * { clear: both; }

label { display: block; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.opt { font-weight: 400; }

input, select, textarea, .nmi-field {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 4px;
  padding: 0 12px;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  background: var(--field-bg);
  color: var(--text);
  font: 400 16px var(--font-body);
}
textarea { height: auto; padding: 10px 12px; resize: vertical; }
.nmi-field { padding: 0; margin-bottom: 12px; overflow: hidden; }
.nmi-field iframe { width: 100% !important; height: 44px !important; }
input:focus, select:focus, textarea:focus, .nmi-field:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.nmi-field.invalid { border-color: var(--error); }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { grid-template-columns: 2fr 1fr 1.2fr; }
@media (max-width: 440px) { .row, .row-3 { grid-template-columns: 1fr; gap: 0; } }

.hint { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.sent-to { margin: 0 0 12px; }
.sent-to a { color: inherit; }
.grace { margin: 0 0 12px; padding: 8px 12px; border-radius: 6px; background: var(--surface-alt); font-size: 14px; }
.dev-code { font-family: ui-monospace, monospace; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.error { color: var(--error); font-weight: 600; }

/* CTA in rodeo red */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin-bottom: 12px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--fw-red);
  color: var(--white);
  font: 700 19px var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.cta:hover:not(:disabled) { background: var(--fw-red-deep); }
.cta:disabled { cursor: progress; background: #6E6E6E; }

/* ---- done / setup ---- */
.done { padding: 22px 20px; }
.done .card-kicker { color: var(--bw-green); margin-bottom: 4px; }
.start-over { display: inline-block; margin-top: 4px; color: var(--muted); font-size: 14px; }
pre { overflow-x: auto; font-size: 12px; white-space: pre-wrap; word-break: break-word; }

.setup-grid { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding-bottom: 18px; }
@media (max-width: 600px) { .setup-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.qr-box { background: var(--white); border-radius: 10px; padding: 10px; text-align: center; }
.qr-box img { display: block; width: 220px; height: 220px; }
.qr-box .hint { color: #5B554C; margin: 6px 0 0; }
.creds { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 16px; text-align: left; }
.creds dt { color: var(--muted); font-weight: 600; }
.creds dd { margin: 0; font-weight: 700; word-break: break-all; }
.creds code { font: 700 18px ui-monospace, "SF Mono", Menlo, monospace; }
.copy {
  margin-left: 6px; padding: 2px 10px; border: 1px solid var(--field-border); border-radius: 6px;
  background: var(--surface-alt); color: var(--text); font: 600 13px var(--font-body); cursor: pointer;
}
details { border-top: 1px solid var(--field-border); padding: 10px 0; }
summary { cursor: pointer; font-weight: 700; }
details ol { margin: 8px 0 0; padding-left: 20px; }
.pending .only-ready, .ready .only-pending { display: none; }

/* ---- footer: BelWave Blue with the white logo, per the BelWave guide ---- */
.site-footer { background: var(--bw-blue); color: var(--white); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 22px; padding-bottom: 22px; }
.footer-inner img { display: block; width: 110px; height: auto; }
.footer-inner p { margin: 0; flex: 1 1 200px; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 2px solid var(--white); border-radius: 8px; color: var(--white);
  font: 700 15px var(--font-display); letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
}
.footer-btn:hover { background: var(--white); color: var(--bw-blue); }
@media (max-width: 520px) { .footer-actions, .footer-btn { width: 100%; justify-content: center; } }

/* ---- banners ---- */
.dry-run-banner { display: none; }
body.dry-run .dry-run-banner {
  display: block; padding: 8px 16px; background: #F4D35E; color: #111;
  text-align: center; font-size: 14px; font-weight: 700;
}
.net-banner {
  position: sticky; top: 0; z-index: 10; padding: 8px 16px;
  background: var(--fw-red); color: var(--white); text-align: center; font-weight: 700;
}
