/* Northwind Logistics — peak seasonal pre-screen page.
   Tokens only; every rate, site, week, notice and question comes from campaign.json. */

:root {
  --navy: #14213d;
  --yellow: #fca311;
  --tint: #f4f5f8;
  --hairline: #d8dbe2;
  --radius: 8px;
  --rhythm: 24px;
}

* { box-sizing: border-box; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: var(--navy);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
}

p, h1, h2, h3, label, li { color: var(--navy); }

/* 1. Header bar with the 3px yellow rule under it, full bleed. */
.header {
  background: var(--navy);
  border-bottom: 3px solid var(--yellow);
}
.header__inner {
  width: 342px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
  padding: 16px 0;
}
.wordmark {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.page {
  width: 342px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
  padding-bottom: 40px;
}

/* 2. Headline. */
.headline {
  margin: 24px 0 0;
  font-size: 28px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.subline {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 400;
}

/* 3. Site picker row. */
.picker {
  width: 100%;
  min-height: 56px;
  margin-top: 24px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(20, 33, 61, 0.06);
  text-align: left;
  font: inherit;
  color: var(--navy);
  cursor: pointer;
}
.picker__text { display: block; font-size: 15px; line-height: 19px; font-weight: 400; }
.picker__text strong { display: block; font-weight: 600; }
.picker__chevron { flex: none; width: 10px; height: 10px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(-45deg); }

/* 4. Rate panel. */
.rate {
  margin-top: 16px;
  padding: 16px;
  background: var(--tint);
  border-radius: var(--radius);
}
.rate__base { margin: 0; font-size: 22px; font-weight: 700; }
.rate__diff { margin: 4px 0 0; font-size: 14px; font-weight: 600; }
.rate__note { margin: 4px 0 0; font-size: 12px; font-weight: 400; }

/* 5 and 6. Chips. */
.field { margin-top: 24px; }
.field__label { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.field__caption { margin: 8px 0 0; font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: var(--navy);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #ffffff; }

/* 7. Numbered steps. */
.steps { margin-top: 24px; padding: 0; list-style: none; }
.step { border-top: 1px solid var(--hairline); }
.step:last-child { border-bottom: 1px solid var(--hairline); }
.step__head {
  width: 100%;
  min-height: 56px;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  font: inherit;
  text-align: left;
  color: var(--navy);
  cursor: pointer;
}
.step__number {
  flex: none;
  width: 24px;
  height: 24px;
  border: 1px solid var(--navy);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}
.step__titles { flex: 1 1 auto; }
.step__title { display: block; font-size: 15px; font-weight: 600; }
.step__sub { display: block; font-size: 13px; font-weight: 400; }
.step__ring {
  flex: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--navy);
  border-radius: 50%;
}
.step.is-complete .step__ring { border-width: 6px; }
.step__body { display: none; padding: 0 0 16px 36px; }
.step.is-open .step__body { display: block; }
.step__body p { margin: 0 0 12px; font-size: 13px; }
.step__error { margin: 0 0 8px; font-size: 12px; font-weight: 600; }

/* Inputs. */
.input, .textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--navy);
  font: inherit;
  font-size: 15px;
}
.input + .input { margin-top: 8px; }
.input-label { display: block; margin: 12px 0 4px; font-size: 13px; font-weight: 600; }

/* Options and questions. */
.option {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 10px 12px;
  display: block;
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: var(--navy);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.option[aria-pressed="true"] { border-color: var(--navy); border-width: 2px; font-weight: 600; }
.question { margin: 0 0 16px; }
.question__prompt { margin: 0; font-size: 14px; font-weight: 600; }
.question__number { font-weight: 700; }

.notice {
  margin: 0 0 12px;
  padding: 16px;
  background: var(--tint);
  border-radius: var(--radius);
  font-size: 13px;
}
.notice__state { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
.check-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.check-row input { width: 20px; height: 20px; margin: 0; accent-color: var(--navy); }

.summary-line { margin: 0; font-size: 13px; }

/* 8. Terms panel. */
.terms {
  margin-top: 24px;
  padding: 16px;
  background: var(--tint);
  border-radius: var(--radius);
  font-size: 13px;
}
.terms a { color: var(--navy); }

/* 9. Confirm. */
.confirm-row {
  min-height: 44px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}
.confirm-row input { width: 20px; height: 20px; margin: 0; accent-color: var(--navy); }

/* 10. Submit. */
.submit {
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  padding: 0 16px;
  background: var(--yellow);
  border: 0;
  border-radius: var(--radius);
  color: var(--navy);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(20, 33, 61, 0.12);
}
.submit[disabled] { opacity: 0.6; cursor: default; }

/* 11. Footer. */
.footer { margin-top: 32px; font-size: 12px; font-weight: 400; }

/* Site sheet. */
.sheet {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(20, 33, 61, 0.4);
  z-index: 10;
}
.sheet.is-open { display: block; }
.sheet__panel {
  position: absolute;
  inset: 0;
  background: #ffffff;
  overflow-y: auto;
  padding: 16px 0 40px;
}
.sheet__inner { width: 342px; max-width: calc(100% - 48px); margin: 0 auto; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; }
.sheet__title { margin: 0; font-size: 18px; font-weight: 700; }
.sheet__close {
  min-height: 44px;
  min-width: 44px;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: var(--navy);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.site-option {
  width: 100%;
  min-height: 56px;
  margin-top: 8px;
  padding: 10px 12px;
  display: block;
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: var(--navy);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.site-option strong { display: block; font-size: 15px; font-weight: 600; }
.site-option span { display: block; font-size: 13px; }

/* Record view and gate screens. */
.screen { padding: 24px 0 0; }
.screen__heading { margin: 0 0 12px; font-size: 24px; line-height: 30px; font-weight: 700; }
.screen p { font-size: 14px; }
.record { margin: 16px 0 0; padding: 0; list-style: none; }
.record li {
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.record li:last-child { border-bottom: 1px solid var(--hairline); }
.record dt, .record .record__key { font-weight: 400; }
.record .record__value { font-weight: 600; text-align: right; }

/* Desktop: the same column, centred; no second layout. */
@media (min-width: 720px) {
  .page, .header__inner { width: 342px; }
}
