/* Mean Mug Auto. The same look as the Amazon store: blue panels, navy ink,
   orange for the one thing to notice, condensed uppercase headlines. */

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/barlow-condensed-800-latin.woff2') format('woff2');
}

:root {
  --blue-1: #4a68d0;
  --blue-2: #2f4bb0;
  --blue-3: #213a8f;
  --ink: #16265c;
  --ink-2: #2b2f35;
  --grey: #4a5058;
  --orange: #e8731a;
  --orange-dark: #cf6211;
  --cta: #ffd814;
  --cta-dark: #f2c200;
  --line: #d5d9de;
  --paper: #f4f5f7;
  --tile-1: #ffffff;
  --tile-2: #eef1f6;
  --tile-3: #e3e8f0;
  --no: #cf3030;

  --font-head: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1120px;
  --radius: 14px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }

/* Nothing may scroll sideways. The tilted hero face hangs past the edge on
   purpose; on html (not body) this keeps the sticky header working. */
html { overflow-x: hidden; }
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background: #fff;
}

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

a { color: var(--blue-2); }
a:hover { color: var(--blue-3); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .98;
  letter-spacing: .5px;
  color: var(--ink);
}

p { margin: 0 0 1em; }

[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.orange { color: var(--orange); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--ink); color: #fff; font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Honeypot: off-screen, so only a bot fills it in. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* --- buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 17px; line-height: 1.2;
  text-decoration: none; text-align: center; white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
/* Yellow, so the one thing to click never blends into the orange headlines. */
.btn-cta { background: var(--cta); color: var(--ink); }
.btn-cta:hover { background: var(--cta-dark); color: var(--ink); }
.btn-ghost { border-color: rgba(255, 255, 255, .75); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-navy { background: var(--ink); color: #fff; }
.btn-navy:hover { background: var(--blue-3); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 15px; }
.btn-lg { padding: 16px 32px; font-size: 19px; }
.btn[disabled] { opacity: .7; cursor: default; }

.btn-arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* --- header ----------------------------------------------------------- */

.header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .15s, box-shadow .15s;
}
.header.scrolled { border-color: var(--line); box-shadow: 0 2px 12px rgba(22, 38, 92, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.header-logo img { width: 168px; }
.header-nav { display: flex; align-items: center; gap: 26px; }
.cta-short { display: none; }

/* --- hero ------------------------------------------------------------- */

.blue {
  background: radial-gradient(ellipse 70% 90% at 62% 45%, var(--blue-1) 0%, var(--blue-2) 50%, var(--blue-3) 100%);
  color: #fff;
}
.stripe { border-bottom: 8px solid var(--orange); }

.hero {
  background: radial-gradient(ellipse 60% 90% at 76% 50%, var(--blue-1) 0%, var(--blue-3) 42%, var(--ink) 100%);
  color: #fff; overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 24px; padding-top: 72px; padding-bottom: 72px; }
.eyebrow { margin: 0 0 14px; font-weight: 700; font-size: 16px; letter-spacing: .4px; color: rgba(255, 255, 255, .88); }
.hero h1 { font-size: clamp(72px, 11.5vw, 150px); color: #fff; }
.hero .lede { max-width: 26em; margin: 22px 0 30px; font-size: 20px; line-height: 1.5; color: rgba(255, 255, 255, .94); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-face { margin: -40px -110px -40px -50px; }
.hero-face img { width: 100%; max-width: 640px; margin: 0 auto; transform: rotate(-6deg); filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .35)); }

/* --- the rules -------------------------------------------------------- */

.rules-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin: 0; padding: 0; list-style: none; }
.rules-list li { padding-top: 22px; border-top: 8px solid var(--ink); }
.rules-list h3 { font-size: clamp(44px, 4.6vw, 62px); }
.rules-list p { margin: 14px 0 0; font-size: 19px; color: var(--grey); }
.catalog { background: var(--paper); }
.catalog .part { background: #fff; }

/* --- sections --------------------------------------------------------- */

.section { padding: 72px 0; }
.section-title { font-size: clamp(40px, 5.4vw, 60px); text-align: center; }
.section-title::after {
  content: ''; display: block; width: 72px; height: 5px; margin: 14px auto 0;
  border-radius: 3px; background: var(--orange);
}
.section-lede { max-width: 36em; margin: 18px auto 0; text-align: center; color: var(--grey); font-size: 19px; }

/* shop by part */
.parts {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  margin: 40px 0 0; padding: 0; list-style: none;
}
.part {
  display: flex; flex-direction: column; align-items: center; height: 100%;
  padding: 22px 12px 20px;
  border-radius: var(--radius);
  background: radial-gradient(ellipse 85% 75% at 50% 46%, var(--tile-1) 0%, var(--tile-2) 70%, var(--tile-3) 100%);
  text-decoration: none; text-align: center;
  transition: transform .15s, box-shadow .15s;
}
.part:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(22, 38, 92, .16); }
.part img { width: 100%; max-width: 170px; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 14px 12px rgba(0, 0, 0, .22)); }
.part-name { margin-top: 16px; font-family: var(--font-head); font-weight: 800; font-size: 25px; line-height: 1; text-transform: uppercase; color: var(--ink); }
.part-go { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--orange-dark); }
.parts-all { margin: 36px 0 0; text-align: center; }

/* sign-up */
.signup-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 72px; }
.signup h2 { font-size: clamp(44px, 5.6vw, 68px); color: #fff; }
.signup .lede { margin: 18px 0 0; font-size: 19px; color: rgba(255, 255, 255, .94); }
.signup-points { margin: 20px 0 0; padding: 0; list-style: none; }
.signup-points li { position: relative; margin-top: 10px; padding-left: 30px; color: rgba(255, 255, 255, .94); }
.signup-points li::before {
  content: ''; position: absolute; left: 0; top: .38em; width: 18px; height: 10px;
  border-left: 4px solid var(--orange); border-bottom: 4px solid var(--orange);
  transform: rotate(-45deg) scale(.8);
}

.signup-card { padding: 30px 28px; border-radius: var(--radius); background: #fff; color: var(--ink-2); box-shadow: 0 24px 48px rgba(0, 0, 0, .28); }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 15px; color: var(--ink); }
.field .optional { font-weight: 500; color: var(--grey); }
.field input, .field select {
  width: 100%; padding: 13px 14px;
  border: 2px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink-2); background: #fff;
}
.field input:focus, .field select:focus { border-color: var(--blue-2); outline: none; }
.signup-form .btn { width: 100%; margin-top: 4px; }
.form-error { margin: 12px 0 0; color: var(--no); font-weight: 700; }
.form-success strong { display: block; margin-bottom: 6px; font-family: var(--font-head); font-size: 34px; text-transform: uppercase; color: var(--ink); }
.microcopy { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--grey); }

/* the sign-up, drawn like a mail-in coupon */
.coupon { border: 3px dashed var(--ink); box-shadow: none; }
.coupon-kicker { margin: 0 0 10px; font-weight: 800; font-size: 14px; letter-spacing: 1.6px; text-transform: uppercase; color: rgba(255, 255, 255, .85); }

.text-link { font-weight: 800; }
.tagline { font-family: var(--font-head); font-size: 30px; line-height: 1.05; letter-spacing: .5px; text-transform: uppercase; color: var(--ink); }

/* --- footer ----------------------------------------------------------- */

.footer { background: var(--ink); color: rgba(255, 255, 255, .86); font-size: 15px; }
.footer a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
.footer-logo { display: inline-block; padding: 10px 14px; border-radius: 10px; background: #fff; }
.footer-logo img { width: 150px; }
.footer-brand p { margin: 16px 0 0; max-width: 22em; }
.footer-col h3 { margin-bottom: 12px; font-size: 22px; color: #fff; }
.footer-col a { display: block; padding: 4px 0; }
.footer-legal { padding-bottom: 28px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.footer-legal p { margin: 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); }

/* --- inner pages (about, contact, legal, thanks) ---------------------- */

.page-head { padding: 52px 0; text-align: center; }
.page-head h1 { font-size: clamp(46px, 7vw, 80px); color: #fff; }
.page-head p { margin: 14px auto 0; max-width: 34em; font-size: 19px; color: rgba(255, 255, 255, .92); }

.prose { max-width: 760px; padding-top: 56px; padding-bottom: 72px; }
.prose h2 { margin: 1.6em 0 .5em; font-size: 34px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.4em 0 .4em; font-size: 25px; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose address { margin: 0 0 1em; font-style: normal; }
.prose .updated { margin-top: 2.4em; color: var(--grey); font-size: 15px; }

.callout { margin: 0 0 1.4em; padding: 20px 22px; border-left: 6px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; background: var(--paper); }
.callout p:last-child { margin-bottom: 0; }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0 0 1.6em; }
.card { padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.card h2 { margin: 0 0 8px; font-size: 30px; }
.card p:last-child { margin-bottom: 0; }

.thanks { max-width: 720px; padding-top: 64px; padding-bottom: 72px; text-align: center; }
.thanks h1 { font-size: clamp(56px, 9vw, 100px); }
.thanks .lede { margin: 18px auto 0; max-width: 30em; font-size: 20px; color: var(--grey); }
.thanks-next { margin-top: 44px; padding-top: 40px; border-top: 1px solid var(--line); }
.thanks-next h2 { font-size: 38px; margin-bottom: 10px; }
.thanks-next .btn { margin-top: 12px; }

/* --- small screens ---------------------------------------------------- */

@media (max-width: 900px) {
  .parts { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .header-inner { min-height: 62px; }
  .header-logo img { width: 132px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }

  .hero-inner { grid-template-columns: 1fr; gap: 6px; padding-top: 40px; padding-bottom: 48px; }
  /* The header logo already shows the face, so a phone gets no big one. */
  .hero-face { display: none; }
  .hero h1 { font-size: clamp(64px, 19vw, 84px); }
  .hero .lede { margin: 16px 0 22px; }
  .footer-col a { padding: 9px 0; }
  .rules-list { grid-template-columns: 1fr; gap: 26px; }
  .hero .lede { font-size: 18px; }
  .hero-actions .btn { width: 100%; }

  .parts { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .parts li:last-child { grid-column: span 2; }
  .signup-inner { grid-template-columns: 1fr; gap: 30px; padding-top: 52px; padding-bottom: 52px; }
  .signup-card { padding: 24px 20px; }
  .cards { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .part, .header { transition: none; }
}
