/* Bat Bargains landing — shared styles */
:root {
  --navy: #0a1220;
  --navy-2: #121b2e;
  --ink: #14161c;
  --muted: #5a616e;
  --paper: #f7f5f1;
  --white: #ffffff;
  --accent: #e22c12;
  --accent-dark: #c4220d;
  --line: #e4e0d8;
  --field: #ffffff;
  --focus: #1a4fd8;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--white);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Masthead */
.masthead {
  background: var(--navy);
  color: var(--white);
}

.masthead-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.95rem 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  line-height: 1;
}

.wordmark:hover {
  color: var(--white);
}

.wordmark-mark {
  display: inline-block;
  width: 0.55rem;
  height: 1.05rem;
  background: var(--accent);
  flex-shrink: 0;
}

.masthead-tag {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.accent-bar {
  height: 4px;
  background: var(--accent);
}

/* Ticker */
.ticker {
  background: var(--navy-2);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  line-height: 1;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 1.5rem, #000 calc(100% - 1.5rem), transparent);
  mask-image: linear-gradient(to right, transparent, #000 1.5rem, #000 calc(100% - 1.5rem), transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 52s linear infinite;
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  padding: 0.7rem 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ticker-item {
  padding: 0 1.35rem;
}

.ticker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
    width: auto;
    max-width: 1120px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .ticker-group + .ticker-group {
    display: none;
  }
}

/* Main */
main {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
}

@media (min-width: 900px) {
  main {
    justify-content: center;
  }

  .hero {
    width: 100%;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4.25rem 1.5rem 4.5rem;
}

.kicker {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.kicker::before {
  content: "";
  width: 1.15rem;
  height: 3px;
  background: var(--accent);
}

.hero h1 {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6.4vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  max-width: 18ch;
  color: var(--ink);
  text-wrap: balance;
}

.lede {
  margin: 0 0 2.15rem;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Form */
.signup {
  max-width: 28.5rem;
}

.field {
  margin: 0 0 0.85rem;
}

.field label,
.field-label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

input[type="email"],
select {
  width: 100%;
  height: 3.25rem;
  padding: 0 0.9rem;
  border: 1px solid #cfc9bf;
  border-radius: 2px;
  background: var(--field);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  appearance: none;
  -webkit-appearance: none;
}

select {
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2314161c' d='M1.2 1.1 6 5.9l4.8-4.8 1.1 1.1L6 8.1 0.1 2.2z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px 8px;
  color: var(--ink);
}

select option {
  color: var(--ink);
  font-weight: 400;
}

optgroup {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
}

input[type="email"]::placeholder {
  color: #8a909b;
}

input[type="email"]:hover,
select:hover {
  border-color: #a8a194;
}

.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 3.25rem;
  margin-top: 0.25rem;
  border: 0;
  border-radius: 2px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: var(--accent-dark);
  color: var(--white);
}

.fine-print {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Thanks */
.thanks .hero h1 {
  max-width: 16ch;
}

.back-link {
  display: inline-block;
  margin-top: 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.12rem;
}

.back-link:hover {
  color: var(--accent);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.35rem 1.5rem 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  max-width: 44rem;
}

.footer-links {
  display: flex;
  gap: 1.15rem;
}

.footer-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .masthead-inner {
    padding: 0.85rem 1.15rem;
  }

  .hero {
    padding: 2.75rem 1.15rem 3.25rem;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 10.4vw, 2.85rem);
    max-width: 14ch;
  }

  .lede {
    font-size: 1.05rem;
  }

  .footer-inner {
    padding: 1.2rem 1.15rem 1.6rem;
    flex-direction: column;
    gap: 0.85rem;
  }
}

/* Preview masthead nav + deals board */
.masthead-nav {
  display: flex;
  align-items: baseline;
  gap: 1.15rem;
}

.masthead-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.masthead-nav a:hover,
.masthead-nav a[aria-current="page"] {
  color: var(--white);
}

.masthead-nav a[aria-current="page"] {
  box-shadow: 0 2px 0 var(--accent);
  padding-bottom: 0.12rem;
}

.board-link-wrap {
  margin: -1.15rem 0 2.15rem;
}

.board-link {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.12rem;
}

.board-link:hover {
  color: var(--accent);
}

.page-deals main {
  justify-content: flex-start;
}

.board {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.25rem;
}

.board-intro h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.6vw, 3.15rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 20ch;
  color: var(--ink);
  text-wrap: balance;
}

.board-intro .lede {
  margin-bottom: 0.7rem;
  max-width: 40rem;
}

.board-note,
.board-asof,
.board-count {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 42rem;
}

.board-note {
  margin-bottom: 0.35rem;
}

.board-asof {
  margin-bottom: 0;
}

.board-controls {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.control-search label,
.control-selects .field label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.control-search input[type="search"] {
  width: 100%;
  height: 3.25rem;
  padding: 0 0.9rem;
  border: 1px solid #cfc9bf;
  border-radius: 2px;
  background: var(--field);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  appearance: textfield;
  -webkit-appearance: none;
}

.control-search input[type="search"]::-webkit-search-decoration,
.control-search input[type="search"]::-webkit-search-cancel-button,
.control-search input[type="search"]::-webkit-search-results-button,
.control-search input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.control-search input[type="search"]::placeholder {
  color: #8a909b;
}

.control-search input[type="search"]:hover {
  border-color: #a8a194;
}

.control-selects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.control-selects .field {
  margin: 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.15rem;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.chip:hover {
  border-color: #a8a194;
}

.chip[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.chip-count {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.chip[aria-pressed="true"] .chip-count {
  color: rgba(255, 255, 255, 0.72);
}

.board-count {
  margin: 1.15rem 0 0.85rem;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.deal-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1.1rem 1.1rem 1.15rem;
  min-width: 0;
}

.deal-badge {
  align-self: flex-start;
  margin: 0 0 0.7rem;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.48rem;
  line-height: 1.2;
}

.deal-brand {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.deal-model {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.deal-meta {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
}

.deal-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  margin-top: auto;
}

.deal-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.deal-list {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.deal-retailer {
  margin: 0.45rem 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.deal-cta {
  width: 100%;
  height: 2.7rem;
  margin-top: 0;
  font-size: 0.92rem;
}

.deal-asof {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.board-empty {
  margin: 1.5rem 0 0;
  font-size: 1rem;
  color: var(--muted);
}

.alerts-band {
  border-top: 1px solid var(--line);
  background: #fff;
}

.alerts-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.75rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  gap: 2rem 3rem;
  align-items: start;
}

.alerts-copy h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 16ch;
}

.alerts-copy p {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .deal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alerts-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .board {
    padding: 1.5rem 1.15rem 2.25rem;
  }

  .board-intro h1 {
    margin-bottom: 0.65rem;
  }

  .board-controls {
    margin-top: 1.2rem;
    gap: 0.7rem;
  }

  .control-selects {
    grid-template-columns: 1fr 1fr;
  }

  .control-selects .field:first-child {
    grid-column: 1 / -1;
  }

  .deal-grid {
    grid-template-columns: 1fr;
  }

  .chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 1.25rem), transparent);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 1.25rem), transparent);
  }

  .chip-row::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex-shrink: 0;
  }

  .alerts-inner {
    padding: 2rem 1.15rem 2.4rem;
  }

  .masthead-nav {
    gap: 0.85rem;
  }
}
