/* ============================================================
   Click Society — Playful Neo-Brutalism design system
   See DESIGN.md at the project root for the full token rationale.
   ============================================================ */

@font-face {
  font-family: 'Anton';
  src: url('assets/fonts/anton-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('assets/fonts/hankengrotesk-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Caveat';
  src: url('assets/fonts/caveat-latin.woff2') format('woff2');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans Lao';
  src: url('assets/fonts/notosanslao-lao.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0E80-0EFF, U+25CC;
}
@font-face {
  font-family: 'Noto Sans Lao';
  src: url('assets/fonts/notosanslao-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* surfaces */
  --paper: #FAF7F2;
  --paper-soft: #F3ECDF;
  --ink: #161512;
  --ink-soft: #4A463E;

  /* sticker accents — flat, never gradiented */
  --blue: #3B6DFF;
  --pink: #FF2E97;
  --lime: #C6FF4D;
  --yellow: #FFD100;
  --red: #FF3B2F;
  --lavender: #C7A8FF;
  --sky: #7FDBFF;
  --orange: #FF8A2B;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --border: 3px;
  --border-thick: 4px;

  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow-md: 5px 5px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);

  --ease-brutal: cubic-bezier(0.16, 1, 0.3, 1);
  /* Snappy but never overshoots — an overshoot curve animating height
     (the nav-indicator) makes the element balloon past its target size
     mid-transition, which is a real visual bug, not just a style rule. */
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: linear-gradient(180deg, #FCF8F3 0%, #F7F1E8 52%, #F2EADF 100%);
  color: var(--ink);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

html[lang="lo"] body,
html[lang="lo"] .headline,
html[lang="lo"] .hand-note {
  font-family: 'Noto Sans Lao', 'Hanken Grotesk', system-ui, sans-serif;
}

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

::selection { background: var(--ink); color: var(--paper); }

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

.headline {
  font-family: 'Anton', 'Noto Sans Lao', sans-serif;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 0;
}

.hand-note {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  line-height: 1.1;
}

/* Plain background: just the soft gradient on body (above). Tried a
   layered paper-texture/film-grain/blurred-watermark system here, but
   blur filters + mix-blend-mode across full-viewport fixed layers,
   recomputed on scroll, was genuinely janky on mobile — reverted in
   favor of performance. Keep it this simple unless asked otherwise. */
.bg-texture { display: none; }

/* ============================================================
   Sidebar / nav — same functional structure as the rest of the
   site (script.js drives open/close, language switch, active-link
   indicator, sign-in state), restyled for the new system.
   ============================================================ */

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 12px;
  background: transparent;
  overflow: hidden;
  transition: width 0.35s var(--ease-brutal), background 0.35s var(--ease-brutal);
}

.sidebar.open {
  width: 268px;
  align-items: stretch;
  background: var(--ink);
  border-left: var(--border-thick) solid var(--ink);
  box-shadow: -6px 0 0 rgba(22, 21, 18, 0.12);
  overflow-y: auto;
  overflow-x: visible;
}

.nav-toggle {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
  align-self: flex-start;
  transition: transform 0.15s var(--spring), box-shadow 0.15s;
}
.nav-toggle:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.nav-toggle:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }
.sidebar.open .nav-toggle-icon { stroke: var(--ink); }
.sidebar.open .nav-toggle { background: var(--yellow); }

.auth-status-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pink);
  color: var(--paper);
  border: var(--border) solid var(--ink);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  overflow: hidden;
  position: fixed;
  top: 22px;
  right: 82px;
  z-index: 55;
  transition: transform 0.15s var(--spring);
}
.auth-status-btn:hover { transform: translate(-1px, -1px); }
.auth-status-btn:active { transform: translate(1px, 1px); }
.sidebar.open .auth-status-btn { display: none; }
.auth-status-icon { display: flex; align-items: center; justify-content: center; }
.auth-status-icon[hidden] { display: none; }
.auth-status-avatar { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.auth-status-avatar[hidden] { display: none; }
.auth-status-initial { font-family: 'Anton', sans-serif; font-size: 15px; }

.lang-wrap, .navbar-inner { display: none; }
.sidebar.open .lang-wrap, .sidebar.open .navbar-inner { display: flex; }

.navbar-inner {
  position: relative;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  padding: 0 8px 16px;
}

/* The active link's own background does the highlighting — simpler and
   robust than a separately synced overlay box (a JS-measured absolute
   element easily drifts out of sync with the real link's box, which is
   exactly what was happening here). */
.nav-indicator { display: none; }

.navbar-inner > a,
.navbar-inner .lang-wrap { position: relative; z-index: 1; }

.navbar-inner .lang-wrap:has(.lang-menu.open) { z-index: 20; }

.navbar-inner a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  min-height: 44px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--paper);
  font-weight: 700;
  font-size: 15px;
  transition: background 0.15s;
}
.navbar-inner a.current-page {
  color: var(--ink);
  background: var(--lime);
  border: var(--border) solid var(--ink);
}
.navbar-inner a .icon-chip { display: flex; }
.navbar-inner a .nav-icon { width: 20px; height: 20px; }

.navbar-inner a.cta {
  margin-top: 4px;
  background: var(--yellow);
  color: var(--ink);
  border: var(--border) solid var(--ink);
  box-shadow: var(--shadow-sm);
  justify-content: center;
}

.navbar-inner .divider {
  height: 2px;
  background: rgba(250, 247, 242, 0.18);
  margin: 8px 6px;
}

.lang-wrap { position: relative; width: 100%; padding: 0 6px; margin-bottom: 4px; }
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--paper);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.lang-toggle .flag-wrap { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.lang-toggle .lang-name { flex: 1; text-align: left; }
.lang-toggle .lang-chevron { width: 16px; height: 16px; transition: transform 0.2s; }
.lang-toggle[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }

.lang-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  position: absolute;
  top: calc(100% + 4px);
  left: 6px;
  right: 6px;
  z-index: 10;
  padding: 6px;
  background: var(--paper);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.lang-menu.open { display: flex; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  min-height: 40px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}
.lang-option:hover { background: var(--paper-soft); }
.lang-option.active { background: var(--lime); }
.lang-option .flag-wrap { width: 18px; height: 18px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }

/* ============================================================
   Buttons — physical, thick border, offset shadow, press feel
   ============================================================ */

.btn-brutal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 30px;
  border: var(--border-thick) solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--paper);
  color: var(--ink);
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s var(--spring), box-shadow 0.15s var(--spring);
}
.btn-brutal:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn-brutal:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-brutal--accent { background: var(--pink); color: #fff; }
.btn-brutal--lime { background: var(--lime); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .btn-brutal, .nav-toggle, .auth-status-btn { transition: none; }
}

/* ============================================================
   Page loader / transition (existing behavior, restyled)
   ============================================================ */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  transition: opacity 0.4s var(--ease-brutal), visibility 0.4s;
}
.page-loader.loader-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

body:not(.page-visible) { overflow: hidden; }

.camera-flash {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
}
.camera-flash.flashing { animation: camera-flash-anim 0.4s ease-out; }

.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 300;
  pointer-events: none;
}
@keyframes camera-flash-anim {
  0% { opacity: 0; }
  15% { opacity: 1; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .camera-flash.flashing { animation: none; }
}

/* ============================================================
   Home hero
   ============================================================ */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 100px 20px 80px;
  text-align: center;
}

/* ============================================================
   Mascot — living brand character, not a loading spinner.
   All motion is transform/opacity only (no filter:blur, no
   continuous JS loop) to stay cheap on mobile.
   ============================================================ */

.mascot-stage {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  animation: mascot-float 9s ease-in-out infinite;
  cursor: pointer;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 24 24'%3E%3Crect x='2' y='7' width='20' height='14' rx='3' fill='%23161512'/%3E%3Ccircle cx='12' cy='14' r='4' fill='%23FAF7F2'/%3E%3Crect x='8' y='4' width='8' height='4' rx='1' fill='%23161512'/%3E%3C/svg%3E") 15 15, pointer;
}
.mascot-stage:focus-visible { outline-offset: 6px; }

.brand-mark {
  width: 84px;
  position: relative;
  z-index: 2;
  transform-origin: 68% 88%;
  animation: mascot-breathe 8s ease-in-out infinite;
  transition: transform 0.25s var(--ease-brutal);
}

.mascot-stage:hover .brand-mark,
.mascot-stage:focus-visible .brand-mark {
  transform: scale(1.03) rotate(var(--mascot-tilt, -4deg));
}

@keyframes mascot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes mascot-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.01); }
}

/* soft radial glow — opacity only, never filter:blur */
.mascot-flash {
  position: absolute;
  inset: -60px;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  pointer-events: none;
}

.mascot-focus-ring {
  position: absolute;
  top: 6%;
  left: 16%;
  width: 48%;
  height: 48%;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}

.mascot-sparkle {
  position: absolute;
  width: 13px;
  height: 13px;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}
.ms-1 { top: -8px; right: 2px; }
.ms-2 { bottom: 12%; left: -12px; }
.ms-3 { top: 32%; right: -14px; }

/* ----- the signature camera moment — one-shot, toggled by JS ----- */
.mascot-stage.shooting .brand-mark {
  animation: mascot-shoot 1.1s var(--ease-brutal) 1;
}
.mascot-stage.shooting .mascot-focus-ring {
  animation: ring-pulse 0.4s ease-out 0.15s 1;
}
.mascot-stage.shooting .mascot-flash {
  animation: flash-pulse 0.18s ease-out 0.5s 1;
}
.mascot-stage.shooting .ms-1 { animation: sparkle-pop 0.6s ease-out 0.62s 1; }
.mascot-stage.shooting .ms-2 { animation: sparkle-pop 0.6s ease-out 0.7s 1; }
.mascot-stage.shooting .ms-3 { animation: sparkle-pop 0.6s ease-out 0.66s 1; }

@keyframes mascot-shoot {
  0% { transform: scale(1) rotate(0deg); }
  22% { transform: scale(1) rotate(4deg); }
  45% { transform: scale(1) rotate(4deg); }
  55% { transform: scale(1.04) rotate(2deg); }
  75% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes ring-pulse {
  0% { opacity: 0; transform: scale(0.6); }
  45% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.2); }
}
@keyframes flash-pulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}
@keyframes sparkle-pop {
  0% { opacity: 0; transform: scale(0.3) rotate(0deg); }
  35% { opacity: 1; transform: scale(1) rotate(10deg); }
  100% { opacity: 0; transform: scale(0.7) rotate(20deg); }
}

@media (prefers-reduced-motion: reduce) {
  .mascot-stage, .brand-mark { animation: none; }
  .mascot-stage.shooting .brand-mark,
  .mascot-stage.shooting .mascot-focus-ring,
  .mascot-stage.shooting .ms-1,
  .mascot-stage.shooting .ms-2,
  .mascot-stage.shooting .ms-3 {
    animation: none;
  }
  .mascot-stage.shooting .mascot-flash {
    opacity: 0.5;
    transition: opacity 0.2s;
  }
}

.hero-title {
  font-size: clamp(3rem, 12vw, 6rem);
}
.hero-title .line-accent {
  background: var(--pink);
  color: #fff;
  padding: 0 0.15em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-rotator {
  min-height: 1.6em;
  overflow: hidden;
}
.hero-rotator .rot-word {
  display: inline-block;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--blue);
  transition: opacity 0.4s, transform 0.4s;
}

.hero-sub {
  max-width: 480px;
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.hero-hint {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.social-proof { margin-top: -4px; }
.proof-sub {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  background: var(--sky);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  display: inline-block;
}

/* floating decorative stickers behind the hero */
.hero-blobs, .floaties { display: none; } /* superseded by .sticker-scatter below */

.sticker-scatter { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sticker {
  position: absolute;
  filter: drop-shadow(3px 3px 0 rgba(22,21,18,0.18));
  animation: sticker-float 6s ease-in-out infinite;
}
.sticker svg { width: 100%; height: 100%; }
@keyframes sticker-float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-10px) rotate(var(--r, 0deg)); }
}
@media (prefers-reduced-motion: reduce) {
  .sticker { animation: none; }
}

/* ============================================================
   Shared page chrome (back link, content wrapper, eyebrow tag)
   ============================================================ */

.back-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0 24px;
  padding: 10px 16px;
  min-height: 44px;
  background: var(--paper);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.15s var(--spring);
}
.back-link:hover { transform: translate(-2px, -2px); }
.back-link:active { transform: translate(1px, 1px); }
.back-link svg { width: 18px; height: 18px; }

.page-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 100px;
}

.policy-eyebrow {
  display: inline-flex;
  padding: 5px 14px;
  background: var(--lime);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.page-content h1 {
  font-family: 'Anton', 'Noto Sans Lao', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: -0.01em;
  font-size: clamp(2.4rem, 8vw, 4rem);
  margin: 0 0 14px;
  text-wrap: balance;
}

/* ============================================================
   About page
   ============================================================ */

.about-lead, .about-para {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

.about-strips {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 36px 0;
}
.about-strips .pb-strip {
  position: static;
  width: 130px;
  transform: none;
}
.a-s1 { rotate: -6deg; }
.a-s2 { rotate: 4deg; margin-top: 18px; }
.a-s3 { rotate: -3deg; }

.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 36px 0;
}
.value {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: var(--paper-soft);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.value-ic {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
}
.value-ic svg { width: 22px; height: 22px; }
.value div { display: flex; flex-direction: column; gap: 4px; }
.value strong { font-size: 15px; font-weight: 800; }
.value span { font-size: 13.5px; color: var(--ink-soft); }

.faq { margin-top: 48px; }
.faq-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  margin: 0 0 18px;
}
.faq-item {
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  padding: 14px 18px;
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 800;
  font-size: 14.5px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  margin-left: auto;
  font-family: 'Anton', sans-serif;
  font-size: 20px;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.about-cta-wrap {
  margin-top: 48px;
  padding: 32px;
  text-align: center;
  background: var(--pink);
  border: var(--border-thick) solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-cta-line {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  color: #fff;
  font-size: clamp(1.4rem, 5vw, 2rem);
  margin: 0 0 16px;
}
.about-cta-wrap .cta-btn { margin: 0 auto; }

/* ============================================================
   Contact page
   ============================================================ */

.contact-lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 30px 0;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--paper);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s var(--spring);
}
a.contact-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.cc-ic {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sky);
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.cc-ic svg { width: 20px; height: 20px; }
.contact-card div { display: flex; flex-direction: column; gap: 2px; }
.contact-card strong { font-size: 14px; font-weight: 800; }
.contact-card span { font-size: 13.5px; color: var(--ink-soft); }

.contact-follow {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--blue);
  margin: 40px 0 14px;
}
.contact-socials { display: flex; gap: 12px; }
.social-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  border: var(--border) solid var(--ink);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: transform 0.15s var(--spring);
}
.social-btn:hover { transform: translate(-2px, -2px) rotate(-6deg); }
.social-btn svg { width: 22px; height: 22px; }

/* ============================================================
   Privacy policy page
   ============================================================ */

.policy-updated {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.policy-intro {
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 62ch;
}
.policy-tldr {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  margin: 26px 0;
  background: var(--lime);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.policy-tldr svg { flex-shrink: 0; width: 26px; height: 26px; }
.policy-tldr p { margin: 0; font-size: 14.5px; font-weight: 600; }

.policy-section { margin: 30px 0; }
.policy-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 800;
  font-size: 18px;
  margin: 0 0 10px;
}
.policy-section h2 .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--orange);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  font-family: 'Anton', sans-serif;
  font-size: 13px;
  color: #fff;
}
.policy-section p, .policy-section li {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 65ch;
}
.policy-section ul { padding-left: 20px; }

.policy-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px dashed rgba(22, 21, 18, 0.25);
  font-size: 14px;
  color: var(--ink-soft);
}
.policy-footer a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   Choose Layout — collectible template grid
   ============================================================ */

.template-page { max-width: 640px; text-align: center; }
.template-page > p { color: var(--ink-soft); font-size: 1rem; margin: 0 0 8px; }

.tpl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 130px));
  justify-content: center;
  gap: 18px 16px;
  margin-top: 26px;
  max-height: 68vh;
  overflow-y: auto;
  padding: 6px 4px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tpl-grid::-webkit-scrollbar { display: none; }

.tpl-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.tpl-card-frame {
  display: block;
  width: 100%;
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--spring), box-shadow 0.2s var(--spring);
}
.tpl-card:hover .tpl-card-frame { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tpl-card:active .tpl-card-frame { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.tpl-card-frame img { display: block; width: 100%; height: auto; }
.tpl-card-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
}

/* ============================================================
   Capture page
   ============================================================ */

.capture-page { max-width: 640px; text-align: center; }
.capture-subtitle { color: var(--ink-soft); font-size: 1rem; margin: 0 0 4px; }

.capture-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 40px;
  padding: 0 14px;
  margin: 10px 0 20px;
  background: var(--yellow);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-family: 'Anton', sans-serif;
  font-size: 16px;
}

.capture-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}
.capture-select-wrap { position: relative; }
.capture-select, .capture-upload {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  background: var(--paper);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
}
.capture-select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161512' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
}

.camera-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--ink);
  border: var(--border-thick) solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 22px;
}
.camera-frame video, .camera-frame .upload-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.camera-frame video.mirrored, .camera-frame .upload-preview.mirrored {
  transform: scaleX(-1);
}
.countdown-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anton', sans-serif;
  font-size: 6rem;
  color: #fff;
  text-shadow: 4px 4px 0 var(--pink);
  background: rgba(22, 21, 18, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.countdown-overlay.visible {
  opacity: 1;
}

.countdown-overlay.tick {
  animation: count-pop 0.9s var(--ease-brutal);
}

@keyframes count-pop {
  from { transform: scale(1.5); opacity: 0.2; }
  to { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .countdown-overlay.tick { animation: none; }
}

.filter-presets {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}
.filter-preset {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}
.filter-swatch {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: var(--border) solid var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--spring);
}
.filter-preset:hover .filter-swatch { transform: translateY(-2px); }
.filter-preset.active .filter-swatch { box-shadow: 4px 4px 0 var(--pink); }
.filter-label { font-size: 11.5px; font-weight: 800; }

.swatch-none { background: #fff; position: relative; }
.swatch-none::before, .swatch-none::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 20px; height: 3px; background: var(--red); border-radius: 2px;
}
.swatch-none::before { transform: translate(-50%, -50%) rotate(45deg); }
.swatch-none::after { transform: translate(-50%, -50%) rotate(-45deg); }
.swatch-mono   { background: linear-gradient(135deg, #fff, #9aa0a0 55%, #2b2f2f); }
.swatch-retro  { background: var(--orange); }
.swatch-vivid  { background: var(--pink); }
.swatch-cool   { background: var(--sky); }
.swatch-warm   { background: var(--yellow); }
.swatch-fade   { background: var(--paper-soft); }
.swatch-noir   { background: var(--ink); }
.swatch-dreamy { background: var(--lavender); }
.swatch-neon   { background: var(--lime); }

.capture-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}
.mirror-toggle, .retake-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  background: var(--paper);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s var(--spring);
}
.mirror-toggle:hover, .retake-btn:hover { transform: translate(-2px, -2px); }
.retake-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.start-capture-btn {
  min-height: 56px;
  padding: 0 36px;
  background: var(--pink);
  color: #fff;
  border: var(--border-thick) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.15s var(--spring);
}
.start-capture-btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.start-capture-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

.capture-results {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.capture-results img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   Review page
   ============================================================ */

.review-page { max-width: 640px; text-align: center; }

.review-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  margin: 26px 0;
}

/* ----- printer rig: the strip "prints" out of a slot on page load ----- */
.printer-rig {
  position: relative;
  width: min(100%, 210px);
  margin: 0 auto;
}

.printer-body {
  position: relative;
  z-index: 3;
  background: var(--paper);
  border: var(--border-thick) solid var(--ink);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 12px 16px 16px;
  box-shadow: var(--shadow-sm);
}
.printer-vents { display: flex; gap: 6px; margin-bottom: 10px; }
.printer-vents span { flex: 1; height: 4px; background: var(--ink); opacity: 0.14; border-radius: 2px; }
.printer-led {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  border: 1.5px solid var(--ink);
}
.printer-led.is-busy { background: var(--yellow); animation: printer-blink 0.9s ease-in-out infinite; }
@keyframes printer-blink { 50% { opacity: 0.3; } }

.printer-slot {
  position: relative;
  z-index: 4;
  height: 10px;
  margin: 0 14px;
  background: var(--ink);
  border-radius: 3px;
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.35);
}

.printer-output {
  position: relative;
  z-index: 1;
  clip-path: inset(0 0 92% 0);
}
.printer-output.is-printing {
  clip-path: inset(0 0 0% 0);
  transition: clip-path 3.2s cubic-bezier(0.32, 0.56, 0.34, 1);
}

.strip-card {
  position: relative;
  padding: 14px;
  background: #fff;
  border: var(--border-thick) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.printer-output .strip-card {
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transform-origin: top center;
}
.printer-output.is-printing .strip-card {
  animation: paper-sway 3.2s ease-in-out 1 both;
}
.printer-output.is-printing .strip-card.print-bounce {
  animation: paper-bounce 380ms cubic-bezier(0.34, 1.4, 0.64, 1) 1 both;
}
@keyframes paper-sway {
  0% { transform: rotate(0deg) translateX(0); }
  22% { transform: rotate(-0.7deg) translateX(-2px); }
  46% { transform: rotate(0.5deg) translateX(2.5px); }
  70% { transform: rotate(-0.4deg) translateX(-1.5px); }
  100% { transform: rotate(0deg) translateX(0); }
}
@keyframes paper-bounce {
  0% { transform: translateY(0); }
  45% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

.print-sparkle { position: absolute; width: 15px; height: 15px; opacity: 0; pointer-events: none; z-index: 2; }
.ps-1 { top: -6px; left: 14%; }
.ps-2 { top: 30%; right: -8px; }
.ps-3 { bottom: 18%; left: -8px; }
.strip-card.print-celebrate .ps-1 { animation: sparkle-pop 0.6s ease-out 0s 1; }
.strip-card.print-celebrate .ps-2 { animation: sparkle-pop 0.6s ease-out 0.08s 1; }
.strip-card.print-celebrate .ps-3 { animation: sparkle-pop 0.6s ease-out 0.14s 1; }

.review-actions .review-btn,
.sticker-bar { transition: opacity 0.25s ease; }
.review-actions .review-btn[disabled],
.sticker-bar.is-printing {
  opacity: 0.35;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .printer-output { clip-path: inset(0 0 0% 0); }
  .printer-output.is-printing,
  .printer-output.is-printing .strip-card,
  .printer-output.is-printing .strip-card.print-bounce,
  .printer-led.is-busy { animation: none; transition: none; }
  .strip-card.print-celebrate .ps-1,
  .strip-card.print-celebrate .ps-2,
  .strip-card.print-celebrate .ps-3 { animation: none; }
}

.review-canvas { display: block; max-width: 182px; height: auto; }

.sticker-bar {
  width: 100%;
  max-width: 320px;
  padding: 18px;
  background: var(--paper-soft);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.sticker-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.3rem;
  margin: 0 0 4px;
}
.sticker-hint { font-size: 13px; color: var(--ink-soft); margin: 0 0 14px; }
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.sticker-grid button {
  width: 100%;
  aspect-ratio: 1;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 6px;
  overflow: hidden;
}
.sticker-grid button:hover { background: var(--yellow); }
.sticker-grid button svg,
.sticker-grid button img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

@media (max-width: 480px) {
  .sticker-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .sticker-bar { max-width: 100%; padding: 14px; }
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.review-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  background: var(--paper);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s var(--spring);
}
.review-btn:hover { transform: translate(-2px, -2px); }
.review-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.review-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.review-btn-done {
  background: var(--lime);
}

@media (prefers-reduced-motion: reduce) {
  .tpl-card-frame, .back-link, .social-btn, .mirror-toggle, .retake-btn,
  .start-capture-btn, .review-btn, .filter-swatch { transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 640px) {
  .hero { padding: 88px 16px 64px; gap: 16px; }
  .mascot-stage { width: 64px; height: 64px; }
  .brand-mark { width: 64px; }
  .strip-stack { width: min(84vw, 260px); height: 300px; }
  .pb-strip { width: 176px; }
  .page-content { padding: 24px 18px 80px; }
  .tpl-grid {
    grid-template-columns: repeat(2, minmax(0, 108px));
    gap: 14px 12px;
    max-height: none;
    overflow-y: visible;
  }
}
