/* willitarrive.com — design layer, v3 "midnight postal" identity.
   System fonts only, no external images, no frameworks.
   Palette: midnight navy + postal red + snow white + ice blue.
   This identity is deliberately DIFFERENT from any green/cream/gold
   brand family: no eucalyptus green, no cream paper, no gold, no
   ember orange anywhere in this file. */
:root {
  --navy: #0a1f44;
  --navy-deep: #06122b;
  --navy-light: #16305e;
  --red: #d22630;
  --red-dark: #a81e28;
  --red-soft: #fdecef;
  --snow: #ffffff;
  --ice: #f2f5f9;
  --ice-deep: #e2e9f2;
  --sky: #8fb4dd;
  --sky-soft: #dce8f6;
  --ink: #0f1b2d;
  --muted: #4a5b74;
  --line: #d7e0ec;
  --ok: #0e7a3e;
  --ok-soft: #e4f3e8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--ice);
  color: var(--ink);
  line-height: 1.55;
}
a { color: var(--red); }
a:hover { color: var(--red-dark); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 3px solid rgba(143, 180, 221, 0.9);
  outline-offset: 2px;
}

/* Candy-cane stripe: classic postal motif, red + snow white. */
.candy {
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--red) 0 18px, var(--snow) 18px 36px);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(640px 300px at 85% 15%, rgba(143, 180, 221, 0.28), transparent 60%),
    radial-gradient(420px 220px at 8% 90%, rgba(210, 38, 48, 0.22), transparent 60%),
    linear-gradient(180deg, var(--navy), var(--navy-deep));
  color: var(--snow);
  border-bottom: 6px solid var(--red);
}
.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 44px 24px 40px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}
.hero-snow { margin-bottom: 10px; }
.hero h1 {
  font-size: 58px;
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--snow);
}
.hero .sub {
  font-size: 19px;
  line-height: 1.45;
  color: #c7d6ea;
  margin: 0;
  max-width: 30em;
}
.countdown { margin-top: 26px; }
.countdown .big {
  font-size: 66px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--snow);
}
.countdown p {
  margin: 8px 0 0;
  color: var(--sky);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-art svg { width: 100%; height: auto; display: block; }

/* ---------- Page body ---------- */
main { max-width: 780px; margin: 0 auto; padding: 0 20px 8px; }
.banner {
  position: relative;
  z-index: 1;
  margin-top: -22px;
  border: 1.5px solid var(--sky);
  border-left: 6px solid var(--red);
  border-radius: 14px;
  padding: 15px 18px;
  background: var(--snow);
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(10, 31, 68, 0.12);
}
.banner strong { color: var(--red); }
.card {
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 2px 12px rgba(10, 31, 68, 0.06);
}
h2 { font-size: 20px; margin: 0 0 12px; letter-spacing: -0.01em; }

/* ---------- Picker: design cards, not bare controls ---------- */
.picker { padding: 24px; }
.field {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--ice);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.field-ic {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--snow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.field-body { flex: 1; min-width: 0; }
.field-body label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
.field-step {
  flex: none;
  font-size: 21px;
  font-weight: 800;
  color: var(--red);
  line-height: 1.4;
}
select, input {
  width: 100%;
  padding: 12px 40px 12px 12px;
  font-size: 16px;
  font-weight: 600;
  border: 1.5px solid #c3d0e0;
  border-radius: 10px;
  background-color: #fff;
  color: var(--ink);
}
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234A5B74' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  cursor: pointer;
}
select:hover, input:hover { border-color: var(--navy-light); }
.hint { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
button {
  margin-top: 18px;
  width: 100%;
  padding: 16px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(210, 38, 48, 0.28);
  transition: background 0.15s ease, transform 0.15s ease;
}
button:hover { background: var(--red-dark); transform: translateY(-1px); }

/* ---------- Result ---------- */
#result { display: none; border-top: 6px solid var(--navy); }
#result.is-late { border-top-color: var(--red); }
#result-head {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
#result .cutoff {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
#result .ok, #result .late {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
}
#result .ok { background: var(--ok-soft); color: var(--ok); }
#result .late { background: var(--red-soft); color: var(--red-dark); }

/* Timeline: Today -> cutoff -> Christmas Day */
.timeline { margin: 22px 0 6px; }
.tl-track {
  position: relative;
  height: 10px;
  background: var(--ice-deep);
  border-radius: 999px;
}
.tl-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--sky), var(--navy));
  border-radius: 999px;
}
.tl-dot {
  position: absolute;
  top: 50%;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--navy);
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.tl-dot-today { left: 0; }
.tl-dot-xmas { left: 100%; border-color: var(--red); background: var(--red); }
.tl-dot-cutoff { background: var(--red); border-color: #fff; }
.tl-dot-cutoff.passed { background: var(--red); border-color: var(--red-dark); }
.tl-labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.tl-lab-today { text-align: left; font-weight: 700; color: var(--ink); }
.tl-lab-cutoff { text-align: center; font-weight: 700; color: var(--ink); }
.tl-lab-xmas { text-align: right; font-weight: 700; color: var(--ink); }

/* Alternatives as cards, not a plain list */
.alt {
  background: var(--ice);
  border: 1px solid var(--sky-soft);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}
.alt > strong { display: block; margin-bottom: 12px; font-size: 16px; }
.alt-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.alt-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  line-height: 1.45;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.alt-ic {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--sky-soft);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.verify { margin-top: 16px; font-size: 15px; }
.verify a { font-weight: 700; }

/* ---------- Bands ---------- */
.band { padding: 8px 0 36px; }
.band-inner { max-width: 780px; margin: 0 auto; padding: 0 20px; }
.band-cream { background: linear-gradient(180deg, var(--ice-deep), var(--ice)); }
.band-white { background: var(--ice); }
.table-card { margin: 24px 0 8px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; }
tbody tr:nth-child(even) td { background: #f8fafd; }
td.date-cell { font-weight: 800; white-space: nowrap; color: var(--ink); }
.cbadge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  white-space: nowrap;
}
.cbadge-usps { background: #00447c; }
.cbadge-ups { background: #351c15; }
.cbadge-fedex { background: #4d148c; }
.cbadge-amazon { background: #232f3e; }
.foot { font-size: 13px; color: var(--muted); }
.links {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.links li { margin: 0; }
.links a {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.links a:hover { border-color: var(--navy-light); box-shadow: 0 2px 10px rgba(10, 31, 68, 0.10); color: var(--ink); }
.link-badge {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--navy);
  color: var(--snow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}
.link-badge-amazon { background: #232f3e; }
.link-badge-walmart { background: #0071dc; }
.link-badge-target { background: #cc0000; }
.link-badge-usps { background: #00447c; }
.link-badge-ups { background: #351c15; }
.link-badge-fedex { background: #4d148c; }

/* ---------- Footer ---------- */
.footer-band {
  background: var(--navy-deep);
  color: #c7d6ea;
  border-top: 4px solid var(--red);
  padding: 30px 0 38px;
  font-size: 13px;
}
.footer-band a { color: var(--sky); }
.footer-band p { margin: 6px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; padding: 36px 20px 32px; gap: 20px; }
  .hero h1 { font-size: 42px; }
  .hero-art { max-width: 460px; margin: 0 auto; width: 100%; }
  .countdown .big { font-size: 54px; }
  .alt-cards { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 34px; }
  .hero .sub { font-size: 17px; }
  .countdown .big { font-size: 46px; }
  .card { padding: 18px; }
  .field { padding: 12px; gap: 10px; }
  .field-step { display: none; }
  #result .cutoff { font-size: 25px; }
  .links { grid-template-columns: 1fr; }
  table { font-size: 14px; }
  .tl-labels { font-size: 11.5px; }
}

/* ---- Multi-holiday banners (v3) ---- */
.hol-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
button.hol-chip {
  width: auto; margin-top: 0; padding: 9px 14px; font-size: 14px; font-weight: 700;
  background: rgba(255,255,255,0.14); color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4); border-radius: 999px; box-shadow: none;
}
button.hol-chip:hover { background: rgba(255,255,255,0.26); transform: none; }
button.hol-chip.active { background: #fff; color: #0a1f44; border-color: #fff; }

/* Hero art: only the selected holiday's motif group shows. */
.hero-art g.art { display: none; }
body[data-holiday="christmas"] #art-christmas,
body[data-holiday="valentine"] #art-valentine,
body[data-holiday="mothers"] #art-mothers,
body[data-holiday="fathers"] #art-fathers { display: block; }

/* Per-holiday hero palettes. All stay on the midnight-postal family:
   dark banner, one strong accent, zero eucalyptus green / paper / ember. */
body[data-holiday="valentine"] .hero {
  background: radial-gradient(900px 300px at 90% 0%, rgba(232,93,117,0.25), transparent 60%),
    linear-gradient(180deg, #5E1230, #3D0A20);
  border-bottom-color: #E85D75;
}
body[data-holiday="valentine"] .candy {
  background: repeating-linear-gradient(90deg, #E85D75 0 18px, #FFFFFF 18px 36px);
}
body[data-holiday="valentine"] .countdown p { color: #F5A8BC; }
body[data-holiday="mothers"] .hero {
  background: radial-gradient(900px 300px at 90% 0%, rgba(216,184,232,0.22), transparent 60%),
    linear-gradient(180deg, #4A235A, #2E1440);
  border-bottom-color: #C79BD8;
}
body[data-holiday="mothers"] .candy {
  background: repeating-linear-gradient(90deg, #C79BD8 0 18px, #FFFFFF 18px 36px);
}
body[data-holiday="mothers"] .countdown p { color: #D8B8E8; }
body[data-holiday="fathers"] .hero {
  background: radial-gradient(900px 300px at 90% 0%, rgba(143,180,221,0.22), transparent 60%),
    linear-gradient(180deg, #2E4A6B, #1B2F4A);
  border-bottom-color: #8FB4DD;
}
body[data-holiday="fathers"] .candy {
  background: repeating-linear-gradient(45deg, #8FB4DD 0 12px, #FFFFFF 12px 24px);
}
body[data-holiday="fathers"] .countdown p { color: #8FB4DD; }
/* ---- Result-area disclaimer ---- */
.result-card .disclaimer {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid #E2E9F2;
  font-size: 13px; line-height: 1.65; color: #5A6B82;
}

/* ---- Shop CTAs: the affiliate-earning action. By design these are
   the most prominent buttons on the page — no click, no commission.
   They link to retailer homepages for now (see TODO(affiliate) in
   index.html and cutoffs.js); they never masquerade as official
   retailer buttons and never use retailer logos. The tag + disclosure
   next to each button say what it is. */
.shop-cta { margin-top: 18px; }
a.btn-shop {
  display: block; width: 100%; padding: 18px 20px;
  font-size: 20px; font-weight: 800; text-align: center;
  text-decoration: none; color: #fff; background: var(--red);
  border-radius: 12px; box-shadow: 0 8px 22px rgba(210, 38, 48, 0.32);
  transition: background 0.15s ease, transform 0.15s ease;
}
a.btn-shop:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); }
.shop-tag {
  display: inline-block; margin-top: 8px; padding: 2px 9px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.shop-disclosure { font-size: 13px; color: var(--muted); margin: 8px 0 0; line-height: 1.55; }
a.btn-shop-sm { padding: 12px 14px; font-size: 15px; box-shadow: 0 4px 12px rgba(210, 38, 48, 0.25); }
.alt-card { flex-direction: column; }
.alt-row { display: flex; gap: 9px; align-items: flex-start; }
.alt-card .btn-shop { margin-top: 2px; }
.alt-card .shop-tag { margin-top: 0; }
.shop-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.shop-group .btn-shop { padding: 15px 12px; font-size: 17px; }
@media (max-width: 820px) {
  .shop-group { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  a.btn-shop { font-size: 19px; padding: 17px 16px; }
}
