/* Kool Thriftz — mobile-first styles. Brand colors live in :root. */
:root {
  --yellow: #f9f96a;
  --yellow-soft: #fdfdc4;
  --green: #27562b;
  --blue: #1877e8;
  --pink: #f27af0;
  --pink-soft: #fbd3fa;
  --red: #bb0000;
  --ink: #17301a;
  --paper: #fffef2;
  --wobble: 22px 14px 24px 12px / 14px 24px 12px 22px;
  --wobble-sm: 14px 9px 15px 8px / 9px 15px 8px 14px;
  --font: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--yellow);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2 { line-height: 1.1; margin: 0 0 .5em; color: var(--green); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 9vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 6.5vw, 2.4rem); }
p { margin: 0 0 1em; }
ul { list-style: none; margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.visually-hidden, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 10; background: #fff; padding: 8px 12px; }

/* ---------- Discount strip ---------- */
.strip {
  margin: 0; padding: 9px 16px;
  background: var(--green); color: var(--yellow);
  text-align: center; font-size: .92rem;
}
.code-chip {
  font: inherit; font-weight: 800; letter-spacing: .06em;
  color: var(--green); background: var(--yellow);
  border: 0; border-radius: var(--wobble-sm);
  padding: 2px 10px; cursor: pointer;
}

/* ---------- Header ---------- */
.header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 6px 16px; padding: 12px 16px;
  max-width: 1040px; margin: 0 auto;
}
.brand img { width: 190px; }
.nav { display: flex; gap: 4px; margin-left: -8px; }
.nav a {
  color: var(--green); font-weight: 700; text-decoration: none;
  padding: 10px 8px; font-size: .95rem;
}
.nav a:hover { text-decoration: underline wavy var(--pink) 2px; text-underline-offset: 5px; }

/* ---------- Layout ---------- */
.hero, .section { padding: 36px 16px; }
.hero > *, .section > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.section-alt { background: var(--paper); border-block: 3px solid var(--green); }
.section-pink { background: var(--pink-soft); border-block: 3px solid var(--green); }
.section-sub { margin-top: -.2em; opacity: .85; }

.card {
  background: var(--paper);
  border: 3px solid var(--green);
  border-radius: var(--wobble);
  box-shadow: 5px 6px 0 var(--green);
  padding: 20px;
}
.eyebrow {
  margin: 0 0 6px; font-size: .8rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em; color: var(--blue);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 22px;
  font: inherit; font-weight: 800; text-decoration: none; text-align: center;
  color: var(--green); background: var(--paper);
  border: 3px solid var(--green); border-radius: var(--wobble-sm);
  box-shadow: 3px 4px 0 var(--green);
  cursor: pointer; transition: transform .1s, box-shadow .1s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 5px 0 var(--green); }
.btn:active { transform: translate(3px, 4px); box-shadow: 0 0 0 var(--green); }
.btn-primary { background: var(--blue); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding-top: 20px; }
.tagline { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tagline span {
  font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem;
  padding: 4px 12px; border: 2.5px solid var(--green); border-radius: var(--wobble-sm);
  background: var(--paper);
}
.tagline span:nth-child(1) { background: var(--green); color: var(--yellow); transform: rotate(-2deg); }
.tagline span:nth-child(2) { background: var(--blue); color: #fff; transform: rotate(1.5deg); }
.tagline span:nth-child(3) { background: var(--pink); color: var(--ink); transform: rotate(-1deg); }
.lede { font-size: 1.1rem; }
.next-show { margin-top: 24px; }
.next-title { font-size: 1.5rem; font-weight: 800; line-height: 1.2; color: var(--green); margin-bottom: 4px; }
.next-when { font-weight: 700; margin-bottom: 2px; }
.next-count { color: #3d5a40; margin-bottom: 16px; min-height: 1.5em; }
.next-show .btn { width: 100%; }
.is-live .eyebrow { color: var(--red); }
.is-live .eyebrow::before {
  content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px;
  border-radius: 50%; background: var(--red); animation: pulse 1.2s infinite;
}
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- Schedule ---------- */
.sample-note {
  display: inline-block; font-size: .85rem; font-weight: 700;
  background: var(--pink-soft); border: 2px dashed var(--green);
  border-radius: var(--wobble-sm); padding: 4px 12px;
}
.schedule { display: grid; gap: 14px; }
.show { display: grid; grid-template-columns: 86px 1fr; gap: 14px; align-items: center; padding: 16px; }
.show-day {
  text-align: center; font-weight: 800; line-height: 1.2;
  background: var(--yellow-soft); border: 2.5px solid var(--green);
  border-radius: var(--wobble-sm); padding: 8px 4px;
}
.show-day b { display: block; font-size: 1.15rem; text-transform: uppercase; color: var(--green); }
.show-day span { font-size: .82rem; }
.show-title { font-weight: 800; font-size: 1.1rem; margin: 0; color: var(--green); }
.show-blurb { margin: 0; font-size: .95rem; }
.show.is-next .show-day { background: var(--pink); }
.show-flag {
  display: inline-block; margin-left: 6px; padding: 1px 8px; vertical-align: middle;
  font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: #fff; background: var(--blue); border-radius: 99px;
}

/* ---------- Categories ---------- */
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cat {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 16px 14px; text-decoration: none; color: var(--ink);
  border: 3px solid var(--green); border-radius: var(--wobble);
  box-shadow: 4px 5px 0 var(--green);
  transition: transform .1s, box-shadow .1s;
}
.cat:hover { transform: translate(-1px, -2px) rotate(-.5deg); box-shadow: 6px 8px 0 var(--green); }
.cat-icon { font-size: 2rem; line-height: 1; }
.cat-name { font-weight: 800; font-size: 1.15rem; line-height: 1.2; }
.cat-text { font-size: .9rem; line-height: 1.35; }
.cat-blue { background: #d3e6fd; }
.cat-pink { background: var(--pink-soft); }
.cat-green { background: #d5ead7; }
.cat-yellow { background: var(--yellow); }

/* ---------- Sell to me ---------- */
.wants { display: grid; gap: 6px; }
.wants li { padding-left: 26px; position: relative; font-weight: 700; }
.wants li::before {
  content: ""; position: absolute; left: 4px; top: .45em;
  width: 12px; height: 12px; border-radius: 50% 40% 55% 45%; background: var(--pink);
  border: 2px solid var(--green);
}
.steps { list-style: none; padding: 0; margin: 22px auto; display: grid; gap: 12px; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  padding: 4px 0 4px 56px; min-height: 44px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 42px; height: 42px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.2rem; color: #fff; background: var(--blue);
  border: 2.5px solid var(--green); border-radius: var(--wobble-sm);
}
.steps b { display: block; color: var(--green); }
.steps span { font-size: .95rem; }
.pickup {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 18px; padding: 12px 14px;
  background: var(--pink-soft); border: 2.5px dashed var(--green);
  border-radius: var(--wobble-sm); font-size: .95rem;
}
.pickup b { color: var(--green); }
.sell-btn { display: flex; }

/* ---------- Deal ---------- */
.deal { text-align: center; background: var(--paper); }
.deal h2 { margin-bottom: .3em; }
.code-big {
  display: inline-flex; flex-direction: column; align-items: center;
  font: inherit; font-size: 2.2rem; font-weight: 800; letter-spacing: .14em; line-height: 1.1;
  color: var(--green); background: var(--yellow);
  border: 3px dashed var(--green); border-radius: var(--wobble);
  padding: 12px 28px; cursor: pointer;
}
.code-big small { font-size: .8rem; letter-spacing: .04em; font-weight: 700; margin-top: 4px; }

/* ---------- About ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.stats li {
  text-align: center; padding: 12px 4px;
  background: var(--yellow); border: 2.5px solid var(--green); border-radius: var(--wobble-sm);
}
.stats strong { display: block; font-size: 1.4rem; color: var(--green); line-height: 1.1; }
.stats span { font-size: .8rem; font-weight: 700; }

/* ---------- Socials ---------- */
.socials { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.socials li:first-child { grid-column: 1 / -1; }
.socials .btn { width: 100%; }

/* ---------- Signup ---------- */
.signup { display: grid; gap: 12px; }
.signup input {
  min-height: 50px; padding: 12px 16px; width: 100%;
  font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 3px solid var(--green); border-radius: var(--wobble-sm);
}
.signup-msg { margin: 12px auto 0; font-weight: 700; min-height: 1.5em; }

/* ---------- Contact / footer ---------- */
.email-link { font-size: clamp(1.15rem, 5.5vw, 1.6rem); font-weight: 800; color: var(--green); word-break: break-word; }
.footer { background: var(--green); color: var(--yellow); text-align: center; padding: 28px 16px; font-size: .9rem; }
.footer p { margin: 0 0 4px; }
.footer-tag { font-weight: 800; font-size: 1.1rem; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Bigger screens ---------- */
@media (min-width: 720px) {
  body { font-size: 18px; }
  .brand img { width: 240px; }
  .hero, .section { padding: 56px 24px; }
  .next-show .btn { width: auto; }
  .sell-btn { display: inline-flex; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .socials { grid-template-columns: repeat(4, 1fr); }
  .signup { grid-template-columns: 1fr auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
