/* Macro Plastics™ — Too big to swallow. */

:root {
  --paper: #FCF3E3;
  --paper-deep: #F6E7C9;
  --orange: #FF6B1A;
  --orange-deep: #E4530A;
  --blue: #1257A8;
  --blue-deep: #0C3E79;
  --sky: #BFE3F2;
  --brick: #D93A21;
  --ink: #1A130C;
  --white: #FFFDF7;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --border: 3px solid var(--ink);
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
}

h1, h2, h3, .display {
  font-family: "Fredoka", "Archivo", sans-serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

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

a { color: var(--blue); }

:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--white);
  border-bottom: var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.logo svg { width: 34px; height: 34px; }

.logo span {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
}

.logo .tm { font-size: 0.65rem; vertical-align: super; }

.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }

.site-nav a {
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  border: 3px solid transparent;
}

.site-nav a:hover { border-color: var(--ink); background: var(--sky); }

.site-nav a[aria-current="page"] {
  background: var(--orange);
  border-color: var(--ink);
  color: var(--white);
}

/* ---------- Hero ---------- */

.hero {
  background: var(--sky);
  border-bottom: var(--border);
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 24px;
  padding-top: 56px;
}

.hero-copy { padding-bottom: 56px; }

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--ink);
  text-shadow: 4px 4px 0 var(--white);
}

.hero .sub {
  font-size: 1.2rem;
  margin-top: 18px;
  max-width: 34ch;
}

.hero-art { align-self: end; }
.hero-art svg { width: 100%; height: auto; }

.eyebrow {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--white);
  border: var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.btn {
  display: inline-block;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--white);
  background: var(--orange);
  border: var(--border);
  border-radius: 14px;
  padding: 14px 28px;
  margin-top: 28px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.btn:hover { transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--ink); }

.btn.secondary { background: var(--blue); }

/* ---------- Ticker ---------- */

.ticker {
  background: var(--ink);
  color: var(--paper);
  border-bottom: var(--border);
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
}

.ticker-track {
  display: inline-block;
  animation: ticker 40s linear infinite;
}

.ticker-track span { margin-right: 3em; }
.ticker-track .star { color: var(--orange); }

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

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section.tint { background: var(--paper-deep); border-top: var(--border); border-bottom: var(--border); }

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 12px;
}

.section-lede { max-width: 60ch; margin-bottom: 40px; font-size: 1.15rem; }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: transform 150ms ease;
}

.card:hover { transform: rotate(-1deg) translateY(-4px); }

.card h3 { font-size: 1.5rem; margin-bottom: 10px; }

.card .badge {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  background: var(--blue);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 14px;
}

.card .badge.hot { background: var(--brick); }

/* ---------- Product cards ---------- */

.product-art {
  background: var(--sky);
  border: var(--border);
  border-radius: 12px;
  margin-bottom: 18px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-art svg { width: 70%; height: auto; }

.spec {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
}

.spec td { border-top: 2px dashed var(--ink); padding: 6px 4px; vertical-align: top; }
.spec td:first-child { font-weight: 600; padding-right: 12px; white-space: nowrap; }

.price {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--orange-deep);
}

.btn.disabled {
  background: var(--paper-deep);
  color: var(--ink);
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: var(--shadow-sm);
  font-size: 1rem;
  padding: 10px 18px;
  margin-top: 14px;
}

.btn.disabled:hover, .btn.disabled:active { transform: none; box-shadow: var(--shadow-sm); }

/* ---------- Halftone divider ---------- */

.dots {
  height: 40px;
  background-image: radial-gradient(var(--ink) 2.5px, transparent 3px);
  background-size: 22px 22px;
  opacity: 0.18;
}

/* ---------- Timeline ---------- */

.timeline { list-style: none; max-width: 720px; }

.timeline li {
  position: relative;
  padding: 0 0 32px 40px;
  border-left: 4px solid var(--ink);
  margin-left: 12px;
}

.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 2px;
  width: 22px;
  height: 22px;
  background: var(--orange);
  border: var(--border);
  border-radius: 50%;
}

.timeline .year {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--blue-deep);
  display: block;
}

/* ---------- Compare table (Science) ---------- */

.compare-wrap { overflow-x: auto; }

.compare {
  width: 100%;
  min-width: 560px;
  border-collapse: separate;
  border-spacing: 0;
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 2px solid var(--ink); }
.compare tr:last-child td { border-bottom: none; }
.compare thead th { font-family: "Fredoka", sans-serif; font-size: 1.1rem; border-bottom: 3px solid var(--ink); }
.compare th.micro { background: var(--paper-deep); }
.compare th.macro { background: var(--orange); color: var(--white); }
.compare td:first-child { font-weight: 600; }

/* ---------- Quotes ---------- */

.quote {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  position: relative;
}

.quote blockquote { font-size: 1.15rem; font-style: italic; }

.quote figcaption {
  margin-top: 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
}

.quote .stars { color: var(--orange); letter-spacing: 2px; font-style: normal; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 760px; }

.faq-list details {
  background: var(--white);
  border: var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-list summary {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--orange-deep);
  flex-shrink: 0;
}

.faq-list details[open] summary::after { content: "–"; }

.faq-list details p { padding: 0 20px 18px; }

/* ---------- Quote form ---------- */

.quote-form {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  max-width: 640px;
  display: grid;
  gap: 18px;
}

.quote-form label {
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  display: grid;
  gap: 6px;
}

.quote-form input, .quote-form select, .quote-form textarea {
  font-family: "Archivo", sans-serif;
  font-size: 1rem;
  padding: 12px 14px;
  border: var(--border);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}

.quote-form .btn { margin-top: 4px; justify-self: start; }

.form-note { font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--blue-deep);
  color: var(--paper);
  border-top: var(--border);
  padding: 48px 0;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer .tagline {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
}

.site-footer small { font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; opacity: 0.85; }

/* ---------- Mascot animation ---------- */

.wave-arm {
  transform-origin: 310px 265px;
  animation: wave 2.4s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-14deg); }
}

/* ---------- 404 ---------- */

.lost { text-align: center; padding: 96px 24px; }
.lost h1 { font-size: clamp(4rem, 12vw, 8rem); }

/* ---------- Responsive & motion ---------- */

@media (max-width: 780px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero-art { max-width: 320px; margin: 0 auto; }
  .section { padding: 48px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .wave-arm { animation: none; }
  .card:hover, .btn:hover, .btn:active { transform: none; }
}
