:root {
  --bg: #f4ead8;
  --bg2: #ecd9ba;
  --paper: #fffaf1;
  --ink: #1f2a44;
  --muted: #5c6477;
  --line: #dcc9ab;
  --accent: #dd5445;
  --accent2: #ff8c4b;
  --chip: #f7ecdb;
  --shadow: 0 16px 40px rgba(35, 22, 9, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: "Trebuchet MS", Verdana, "Segoe UI", sans-serif;
  line-height: 1.45;
  background:
    radial-gradient(circle at 8% 12%, rgba(221, 84, 69, 0.14), transparent 36%),
    radial-gradient(circle at 82% 4%, rgba(31, 42, 68, 0.14), transparent 34%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0 4px, rgba(250, 235, 209, 0.3) 4px 20px),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

body.theme-keychain {
  --bg: #101426;
  --bg2: #2a2250;
  --paper: #161f39;
  --ink: #e8eeff;
  --muted: #b6c1e6;
  --line: #42557f;
  --accent: #ff4f93;
  --accent2: #53d8ff;
  --chip: #1b2f52;
  --shadow: 0 18px 44px rgba(4, 8, 22, 0.58);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 79, 147, 0.22), transparent 34%),
    radial-gradient(circle at 86% 8%, rgba(83, 216, 255, 0.2), transparent 30%),
    radial-gradient(circle at 50% 82%, rgba(134, 98, 255, 0.16), transparent 36%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

body.theme-catalog {
  --bg: #1a1529;
  --bg2: #342448;
  --paper: #1b1830;
  --ink: #f2ecff;
  --muted: #c5b5e3;
  --line: #66508d;
  --accent: #ff8e4a;
  --accent2: #ff4fa0;
  --chip: #2d2148;
  --shadow: 0 18px 44px rgba(7, 5, 18, 0.56);
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 142, 74, 0.24), transparent 34%),
    radial-gradient(circle at 85% 8%, rgba(255, 79, 160, 0.22), transparent 32%),
    radial-gradient(circle at 52% 86%, rgba(99, 210, 255, 0.2), transparent 36%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

.skipLink {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  background: #fff6e8;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 700;
  text-decoration: none;
}

.skipLink:focus {
  top: 12px;
}

a {
  color: inherit;
}

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.topNav {
  width: min(1240px, calc(100% - 28px));
  margin: 18px auto 0;
  border: 1px solid rgba(31, 42, 68, 0.2);
  border-radius: 14px;
  background: rgba(255, 250, 241, 0.92);
  box-shadow: var(--shadow);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  text-decoration: none;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 0.95;
  letter-spacing: 0.5px;
  color: var(--ink);
}

.navLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.navLinks a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  border: 1px solid rgba(31, 42, 68, 0.24);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff4e1;
}

.navLinks a:hover {
  border-color: rgba(31, 42, 68, 0.6);
}

body.theme-keychain .topNav {
  border-color: rgba(232, 238, 255, 0.22);
  background: rgba(12, 18, 37, 0.86);
}

body.theme-catalog .topNav {
  border-color: rgba(242, 236, 255, 0.24);
  background: rgba(18, 15, 33, 0.84);
}

body.theme-keychain .brand {
  color: var(--ink);
}

body.theme-catalog .brand {
  color: var(--ink);
}

body.theme-keychain .navLinks a {
  color: var(--ink);
  border-color: rgba(232, 238, 255, 0.26);
  background: #1a2746;
}

body.theme-catalog .navLinks a {
  color: var(--ink);
  border-color: rgba(242, 236, 255, 0.26);
  background: #2b1f42;
}

body.theme-keychain .navLinks a:hover {
  border-color: rgba(232, 238, 255, 0.52);
}

body.theme-catalog .navLinks a:hover {
  border-color: rgba(242, 236, 255, 0.5);
}

.store {
  width: min(1240px, calc(100% - 28px));
  margin: 18px auto 26px;
}

.pageSwitch {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.switchPill {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.6px;
  font-weight: 800;
  border: 1px solid rgba(31, 42, 68, 0.24);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff4e1;
}

.switchPill.current {
  color: #fff9f1;
  border-color: transparent;
  background: linear-gradient(120deg, var(--accent), var(--accent2));
}

body.theme-keychain .switchPill {
  color: var(--ink);
  border-color: rgba(232, 238, 255, 0.26);
  background: #1a2746;
}

body.theme-catalog .switchPill {
  color: var(--ink);
  border-color: rgba(242, 236, 255, 0.26);
  background: #2b1f42;
}

body.theme-keychain .skipLink {
  color: var(--ink);
  border-color: rgba(232, 238, 255, 0.44);
  background: #19284a;
}

body.theme-catalog .skipLink {
  color: var(--ink);
  border-color: rgba(242, 236, 255, 0.44);
  background: #2a1f46;
}

.productTop {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 14px;
  align-items: stretch;
}

.productTop + .productTop {
  margin-top: 16px;
}

.productTop.reverse .heroShot {
  order: 2;
}

.productTop.reverse .buyPanel {
  order: 1;
}

.heroShot,
.buyPanel,
.metaCard,
.footer {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.heroShot,
.buyPanel,
.blankCopy,
.blankPreview,
.metaCard {
  height: 100%;
}

.buyPanel,
.blankCopy,
.metaCard {
  display: flex;
  flex-direction: column;
}

.heroShot {
  margin: 0;
  padding: 14px;
  animation: up 680ms ease both;
}

.pillTag {
  margin: 0 0 8px;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #fff7ef;
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  padding: 7px 10px;
  border-radius: 999px;
}

.heroShot a {
  display: block;
}

.heroShot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(31, 42, 68, 0.2);
}

.buyPanel {
  padding: clamp(16px, 2.6vw, 28px);
  animation: up 680ms 120ms ease both;
}

.kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: #a04434;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.03;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0.2px;
}

h1 {
  margin-top: 8px;
  font-size: clamp(42px, 5.7vw, 76px);
  color: var(--ink);
}

.subtitle {
  margin: 14px 0 0;
  font-size: clamp(16px, 1.6vw, 22px);
  color: #41495d;
  max-width: 44ch;
}

.priceRow {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
}

.price {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1;
  color: var(--accent);
}

.ship {
  color: var(--muted);
  font-size: 14px;
}

.actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 11px;
  padding: 11px 14px;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid transparent;
}

.btn.primary {
  color: #fff9f1;
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  animation: pulse 2.7s ease-in-out infinite;
}

.btn.secondary {
  border-color: rgba(31, 42, 68, 0.24);
  background: #fff3df;
}

body.theme-keychain .btn.secondary {
  color: var(--ink);
  border-color: rgba(232, 238, 255, 0.28);
  background: #1b2d52;
}

body.theme-catalog .btn.secondary {
  color: var(--ink);
  border-color: rgba(242, 236, 255, 0.28);
  background: #2e2348;
}

body.theme-keychain .kicker {
  color: #ff96c2;
}

body.theme-catalog .kicker {
  color: #ffb993;
}

body.theme-keychain .subtitle,
body.theme-keychain .blankCopy p,
body.theme-keychain .metaCard p {
  color: #d2dcff;
}

body.theme-catalog .subtitle,
body.theme-catalog .blankCopy p,
body.theme-catalog .metaCard p {
  color: #ddd2f2;
}

body.theme-keychain .ship,
body.theme-keychain .blankNote {
  color: var(--muted);
}

body.theme-catalog .ship,
body.theme-catalog .blankNote {
  color: var(--muted);
}

body.theme-keychain .howTo {
  border-color: rgba(232, 238, 255, 0.24);
  background: #1a2746;
}

body.theme-catalog .howTo {
  border-color: rgba(242, 236, 255, 0.24);
  background: #2a1f46;
}

body.theme-keychain .trustRow li {
  border-color: rgba(232, 238, 255, 0.24);
  background: #1b2f52;
}

body.theme-catalog .trustRow li {
  border-color: rgba(242, 236, 255, 0.24);
  background: #2d2148;
}

.howTo {
  margin-top: 16px;
  border: 1px solid rgba(31, 42, 68, 0.16);
  border-radius: 12px;
  padding: 13px;
  background: #fffdf8;
}

.howTo h2 {
  font-size: clamp(29px, 3vw, 42px);
  color: var(--ink);
}

.howTo ol {
  margin: 8px 0 10px;
  padding-left: 20px;
}

.howTo li {
  margin-bottom: 5px;
}

.phone {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
}

.trustRow {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trustRow li {
  border: 1px solid rgba(31, 42, 68, 0.2);
  border-radius: 999px;
  background: var(--chip);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.printBlank {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  align-items: stretch;
}

.blankCopy,
.blankPreview {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow);
  animation: up 680ms 520ms ease both;
}

.blankCopy {
  padding: clamp(14px, 2vw, 22px);
}

.blankCopy h2 {
  font-size: clamp(34px, 4.6vw, 56px);
}

.blankCopy p {
  margin: 10px 0 0;
  color: #3f485d;
}

.blankNote {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.blankPreview {
  padding: 12px;
}

.blankPreview a {
  display: block;
}

.blankPreview img {
  display: block;
  width: min(860px, 100%);
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid rgba(31, 42, 68, 0.16);
}

.metaGrid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: stretch;
}

.videoDock {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: clamp(14px, 2vw, 22px);
  animation: up 680ms 600ms ease both;
}

.videoDock .promoTag {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}

.videoDock p {
  margin: 10px 0 0;
  color: #3f485d;
  max-width: 66ch;
}

.videoFrame {
  margin-top: 12px;
  border: 1px solid rgba(31, 42, 68, 0.18);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

.videoFrame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

body.theme-keychain .videoDock p {
  color: #d2dcff;
}

body.theme-catalog .videoDock p {
  color: #ddd2f2;
}

body.theme-keychain .videoFrame {
  border-color: rgba(232, 238, 255, 0.24);
}

body.theme-catalog .videoFrame {
  border-color: rgba(242, 236, 255, 0.24);
}

.metaCard {
  padding: 14px;
  animation: up 680ms ease both;
}

.metaCard:nth-child(1) {
  animation-delay: 280ms;
}

.metaCard:nth-child(2) {
  animation-delay: 360ms;
}

.metaCard:nth-child(3) {
  animation-delay: 440ms;
}

.metaCard h3 {
  font-size: clamp(30px, 3.5vw, 48px);
  margin-bottom: 8px;
}

.metaCard ul {
  margin: 0;
  padding-left: 18px;
}

.metaCard li {
  margin-top: 5px;
}

.metaCard p {
  margin: 0 0 7px;
}

.footer {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto 24px;
  padding: 14px;
  text-align: center;
  font-weight: 700;
}

.footer p {
  margin: 0;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(221, 84, 69, 0.27);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(221, 84, 69, 0);
  }
}

@keyframes up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1000px) {
  .productTop {
    grid-template-columns: 1fr;
  }

  .productTop.reverse .heroShot,
  .productTop.reverse .buyPanel {
    order: initial;
  }

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

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

@media (max-width: 720px) {
  .topNav,
  .store,
  .footer {
    width: min(1240px, calc(100% - 18px));
  }

  .topNav {
    flex-direction: column;
    align-items: flex-start;
  }

  .navLinks {
    justify-content: flex-start;
  }

  .navLinks a {
    font-size: 11px;
  }

  .blankPreview {
    padding: 8px;
  }
}

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