/* Self-hosted typefaces for El Fidget. */

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/atkinson-italic-400-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/atkinson-italic-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/atkinson-italic-700-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/atkinson-italic-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/atkinson-normal-400-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/atkinson-normal-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/atkinson-normal-700-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/atkinson-normal-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/bricolage-normal-500800-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/bricolage-normal-500800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f3eee4;
  --paper-2: #e8e1d3;
  --ink: #171411;
  --ink-soft: #3b352f;
  --muted: #5c564e;
  --lime: #d6ff3f;
  --coral: #ff5a36;
  --cobalt: #3558ff;
  --lilac: #c9b6ff;
  --sun: #ffd166;
  --mint: #7dffc2;
  --pink: #ff7ad9;
  --cream: #fffbf3;
  --line: #171411;
  --shadow: 6px 6px 0 #171411;
  --shadow-sm: 3px 3px 0 #171411;
  --radius: 22px;
  --radius-sm: 14px;
  --header-h: 90px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }
html.is-jumping { scroll-behavior: auto !important; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(23, 20, 17, 0.08) 1px, transparent 0) 0 0 / 22px 22px,
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
button, a, .icon-btn, .chip, .logo, .close-x, .linkish, label, summary {
  -webkit-tap-highlight-color: transparent;
}
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--lime);
  color: var(--ink);
  padding: 8px 14px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  z-index: 80;
  font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  position: relative;
  overflow: visible;
  transition: transform 0.18s cubic-bezier(0.22, 1.6, 0.36, 1), box-shadow 0.18s cubic-bezier(0.22, 1.6, 0.36, 1), background 0.12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.btn-coral { background: var(--coral); color: #fff; }
.btn-ink { background: var(--ink); color: var(--lime); }
.btn-ghost { background: var(--cream); }
.btn-small { padding: 0.45rem 0.9rem; font-size: 0.92rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: transparent;
  border-bottom: 3px solid var(--ink);
  overflow: visible;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(243, 238, 228, 0.92);
  backdrop-filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}
.header-inner {
  position: relative;
  z-index: 1;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: visible;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.7rem;
}
.logo-mark {
  position: relative;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  overflow: visible;
  background: var(--lime);
  border: 3px solid var(--ink);
  border-radius: 15px;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  padding-top: 1px;
  transition: transform 0.18s cubic-bezier(0.22, 1.6, 0.36, 1), box-shadow 0.18s cubic-bezier(0.22, 1.6, 0.36, 1);
}
.logo-word { transform: translateY(1px); }
.logo:hover .logo-mark,
.logo:focus-visible .logo-mark {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}
.logo:active .logo-mark {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}
.site-header, .header-inner, .site-footer { overflow: visible; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  position: relative;
  overflow: visible;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  box-shadow: 2px 2px 0 transparent;
  transition: transform 0.18s cubic-bezier(0.22, 1.6, 0.36, 1), box-shadow 0.18s cubic-bezier(0.22, 1.6, 0.36, 1), background 0.12s ease;
}
.nav a:hover, .nav a:focus-visible {
  background: var(--sun);
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--ink);
}
.nav a:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink);
}

.lang-switch, .icon-btn {
  border: 3px solid var(--ink);
  background: var(--cream);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  box-shadow: 2px 2px 0 var(--ink);
}
.icon-btn {
  position: relative;
  overflow: visible;
  transition: transform 0.18s cubic-bezier(0.22, 1.6, 0.36, 1), box-shadow 0.18s cubic-bezier(0.22, 1.6, 0.36, 1), background 0.12s ease;
}
.icon-btn:hover, .icon-btn:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}
.icon-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink);
}
.lang-switch {
  position: relative;
  isolation: isolate;
  overflow: visible;
}
.lang-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  background: var(--ink);
  border-radius: 999px;
  z-index: 0;
  pointer-events: none;
  transform: translateX(0);
  transition: transform 0.38s cubic-bezier(0.22, 1.5, 0.36, 1);
}
.lang-switch.is-en .lang-thumb { transform: translateX(100%); }
.lang-switch button {
  position: relative;
  z-index: 1;
  overflow: visible;
  border: 0;
  background: transparent;
  min-width: 2.85rem;
  padding: 0.38rem 0.7rem;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  border-radius: 999px;
}
.lang-switch button.is-active { background: transparent; color: var(--lime); }
.icon-btn {
  width: 46px;
  height: 46px;
  justify-content: center;
  position: relative;
}
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  border: 2px solid var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.cart-count.is-empty { display: none; }

.menu-toggle { display: none; }

/* Hero */
.hero {
  padding: 5.4rem 0 4.4rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 3px solid var(--ink);
  background: var(--sun);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
h1, h2, h3, .display {
  font-family: var(--font-display);
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0;
}
.hero h1 {
  display: flex;
  flex-direction: column;
  gap: 0.12em;
  font-size: clamp(3.1rem, 6.8vw, 5.4rem);
  line-height: 0.9;
  margin: 1.25rem 0 1.35rem;
  max-width: 18ch;
}
.hero-hook { display: block; }
.hero-punch {
  display: block;
  font-size: 0.58em;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.hero .lede {
  font-size: 1.2rem;
  max-width: 38ch;
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual {
  position: relative;
  min-height: 380px;
}
.hero-stack {
  position: relative;
  height: 400px;
}
.sticker {
  position: absolute;
  border: 3px solid var(--ink);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--cream);
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.22, 1.6, 0.36, 1), box-shadow 0.18s cubic-bezier(0.22, 1.6, 0.36, 1);
}
.sticker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.sticker-a { width: 250px; height: 250px; left: 8%; top: 10%; transform: rotate(-8deg); }
.sticker-b { width: 170px; height: 170px; right: 4%; top: 0; transform: rotate(7deg); z-index: 2; overflow: visible; }
.sticker-c { width: 160px; height: 160px; right: 10%; bottom: 8%; transform: rotate(-4deg); }
.badge-float {
  position: absolute;
  left: 0;
  bottom: 18px;
  z-index: 3;
  background: var(--ink);
  color: var(--lime);
  border-radius: 16px;
  padding: 0.7rem 0.9rem;
  font-weight: 800;
  font-size: 0.86rem;
  box-shadow: var(--shadow-sm);
  transform: rotate(-3deg);
}

/* Sections */
.section { padding: 4rem 0; }
#catalogo, #onde-usar, #como-funciona {
  scroll-margin-top: calc(var(--header-h) + 3px);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 1.6rem;
}
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); max-width: 16ch; }
.kicker {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--cobalt);
  margin: 0 0 0.5rem;
}
.section-intro { max-width: 42ch; color: var(--ink-soft); margin: 0; }

/* Filters */
.filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1.5rem;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-label { font-weight: 800; font-size: 0.82rem; margin-right: 4px; }
.chip {
  position: relative;
  overflow: visible;
  border: 2px solid var(--ink);
  background: var(--cream);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 0.18s cubic-bezier(0.22, 1.6, 0.36, 1), box-shadow 0.18s cubic-bezier(0.22, 1.6, 0.36, 1), background 0.12s ease, color 0.12s ease;
}
.chip:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.chip.is-active { background: var(--ink); color: var(--cream); }
.chip[data-noise="silent"].is-active { background: var(--mint); color: var(--ink); }
.chip[data-noise="clicky"].is-active { background: var(--coral); color: #fff; }

.catalog-meta {
  margin: 0 0 1rem;
  font-weight: 700;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s cubic-bezier(0.22, 1.5, 0.36, 1), box-shadow 0.18s cubic-bezier(0.22, 1.5, 0.36, 1);
}
.card:hover { transform: translate(-2px, -2px); }
.card-media {
  background: var(--paper-2);
  aspect-ratio: 1;
  border-bottom: 3px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.badges {
  position: absolute;
  left: 10px;
  top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--cream);
}
.tag-feel { background: var(--lilac); }
.tag-silent { background: var(--mint); }
.tag-soft { background: var(--sun); }
.tag-clicky { background: var(--coral); color: #fff; }
.card-body { padding: 1rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.card-body h3 { font-size: 1.35rem; }
.tagline { margin: 0; color: var(--ink-soft); }
.where-chip {
  display: inline-flex;
  border: 2px dashed var(--ink);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  width: max-content;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 0.6rem;
}
.price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}
.empty {
  border: 3px dashed var(--ink);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  background: var(--cream);
  grid-column: 1 / -1;
}

/* Modal */
.modal-backdrop, .drawer-backdrop, .checkout-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 20, 17, 0.55);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-backdrop.is-open, .drawer-backdrop.is-open, .checkout-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  position: fixed;
  z-index: 51;
  inset: 4vh auto auto 50%;
  transform: translate(-50%, 12px);
  width: min(920px, calc(100% - 24px));
  max-height: 92vh;
  overflow: auto;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 28px;
  box-shadow: 10px 10px 0 var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.modal.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; }
.modal-media { border-right: 3px solid var(--ink); background: var(--cream); }
.modal-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo-idea, .video-idea-note {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-top: 2px dashed var(--ink);
}
.video-stage {
  margin: 0;
  border-top: 3px solid var(--ink);
  background: #111;
  color: #fff;
  min-height: 220px;
  position: relative;
  display: grid;
  place-items: center;
}
.video-stage video, .video-stage iframe {
  width: 100%;
  height: 240px;
  border: 0;
  background: #000;
}
.video-placeholder {
  width: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 1.2rem;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, #191919, #191919 12px, #151515 12px, #151515 24px);
}
.play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--coral);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 4px 4px 0 #000;
}
.play-btn svg { width: 26px; height: 26px; margin-left: 3px; }
.video-script {
  max-width: 42ch;
  font-size: 0.92rem;
  margin: 0;
  color: #f3eee4;
}
.placeholder-flag {
  display: inline-flex;
  background: var(--sun);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.modal-body { padding: 1.3rem 1.3rem 1.5rem; }
.modal-body h2 { font-size: 2.1rem; margin: 0.4rem 0 0.5rem; }
.close-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--cream);
  font-size: 1.3rem;
  z-index: 2;
  overflow: visible;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s cubic-bezier(0.22, 1.6, 0.36, 1), box-shadow 0.18s cubic-bezier(0.22, 1.6, 0.36, 1);
}
.close-x:hover, .close-x:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}
.close-x:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}
.where-list { margin: 0.6rem 0 1rem; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1rem; }

/* Guides */
.guide-grid, .steps, .about-grid {
  display: grid;
  gap: 16px;
}
.guide-grid { grid-template-columns: repeat(4, 1fr); }
.guide-card, .step, .panel {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
.guide-card h3, .step h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.guide-card p, .step p { margin: 0; color: var(--ink-soft); }
.guide-card[data-tone="school"] { background: var(--mint); }
.guide-card[data-tone="travel"] { background: var(--sun); }
.guide-card[data-tone="wait"] { background: var(--lilac); }
.guide-card[data-tone="work"] { background: #dfe6ff; }

.about-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.about-copy h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 1rem; }
.about-copy p { margin: 0 0 0.9rem; max-width: 48ch; }
.about-panel {
  background: var(--ink);
  color: var(--cream);
  border-radius: 28px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
  border: 3px solid var(--ink);
}
.about-panel h3 { color: var(--lime); font-size: 1.6rem; margin-bottom: 0.6rem; }

.steps { grid-template-columns: repeat(3, 1fr); }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--lime); border: 2px solid var(--ink);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 0.7rem;
}

.future {
  background: var(--cobalt);
  color: #fff;
  border: 3px solid var(--ink);
  border-radius: 32px;
  padding: 2rem 2rem;
  box-shadow: var(--shadow);
}
.future h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 18ch; margin-bottom: 0.7rem; }
.future p { margin: 0; max-width: 52ch; color: #e8ecff; }

/* Footer */
.site-footer {
  border-top: 3px solid var(--ink);
  padding: 2rem 0 2.4rem;
  margin-top: 2rem;
  background: var(--paper-2);
}
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: start; }
.fineprint { color: var(--muted); font-size: 0.9rem; max-width: 52ch; margin: 0.4rem 0 0; }

/* Cart drawer */
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: var(--paper);
  border-left: 3px solid var(--ink);
  z-index: 52;
  transform: translateX(110%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.drawer.is-open { transform: translateX(0); }
.drawer-head, .checkout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 1rem 1rem;
  border-bottom: 3px solid var(--ink);
}
.drawer-head h2, .checkout-head h2 { font-size: 1.6rem; }
.cart-items { flex: 1; overflow: auto; padding: 1rem; display: flex; flex-direction: column; gap: 10px; }
.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 10px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 8px;
  background: var(--cream);
  overflow: visible;
}
.cart-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; border: 2px solid var(--ink); }
.qty {
  display: inline-flex;
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: visible;
  margin-top: 6px;
}
.qty button, .qty span { border: 0; background: transparent; width: 28px; height: 28px; display: grid; place-items: center; font-weight: 800; }
.qty button {
  position: relative;
  overflow: visible;
  border-radius: 999px;
  transition: transform 0.16s cubic-bezier(0.22, 1.6, 0.36, 1);
}
.qty button:active { transform: translate(1px, 1px); }
.qty span { width: 22px; }
.linkish {
  position: relative;
  overflow: visible;
  background: none;
  border: 0;
  text-decoration: underline;
  font-size: 0.82rem;
  padding: 0.15rem 0.2rem;
  transition: transform 0.16s cubic-bezier(0.22, 1.6, 0.36, 1);
}
.linkish:active { transform: translate(1px, 1px); }
.cart-summary {
  border-top: 3px solid var(--ink);
  padding: 1rem;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.row { display: flex; justify-content: space-between; gap: 12px; }
.row.total { font-weight: 800; font-size: 1.15rem; padding-top: 6px; }
.ship-note { font-size: 0.8rem; color: var(--muted); margin: 0 0 8px; }
.empty-cart { color: var(--muted); text-align: center; padding: 2rem 1rem; }

/* Checkout */
.checkout {
  position: fixed;
  z-index: 60;
  inset: 3vh auto auto 50%;
  transform: translate(-50%, 8px);
  width: min(860px, calc(100% - 20px));
  max-height: 94vh;
  overflow: auto;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 28px;
  box-shadow: 10px 10px 0 var(--ink);
  opacity: 0;
  pointer-events: none;
}
.checkout.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.checkout-body { padding: 1.2rem 1.2rem 1.5rem; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 800; font-size: 0.86rem; }
.field input, .field select, .field textarea {
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
  background: var(--cream);
}
.field textarea { min-height: 80px; resize: vertical; }
.field .error { color: #9f1c00; font-size: 0.8rem; min-height: 1em; }
.pay-list { display: flex; flex-direction: column; gap: 8px; margin: 0.4rem 0 0.8rem; }
.pay-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
  background: var(--cream);
  cursor: pointer;
}
.pay-option:has(input:checked) { background: var(--lime); }
.pay-option input { accent-color: var(--ink); }
.demo-banner, .confirm-banner {
  border: 2px solid var(--ink);
  background: var(--sun);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  font-size: 0.9rem;
  margin: 0 0 0.9rem;
}
.pay-hint { font-size: 0.86rem; color: var(--ink-soft); margin: 0 0 0.8rem; }
.side-card {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 1rem;
  height: max-content;
}
.confirm { display: none; padding: 1.2rem 1.2rem 1.6rem; }
.confirm.is-visible { display: block; }
.confirm pre {
  white-space: pre-wrap;
  background: var(--ink);
  color: var(--lime);
  border-radius: 16px;
  padding: 1rem;
  overflow: auto;
  font-size: 0.86rem;
}
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--lime);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 800;
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border: 3px solid var(--ink);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .hero-grid, .about-grid, .checkout-body, .modal-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .guide-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .modal-media { border-right: 0; border-bottom: 3px solid var(--ink); }
  .sticker-a { width: 210px; height: 210px; }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(var(--header-h) + 8px);
    right: 20px;
    background: var(--cream);
    border: 3px solid var(--ink);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 8px;
    flex-direction: column;
    min-width: 200px;
  }
  .nav-links.is-open { display: flex; }
  .hero { padding-top: 3.2rem; padding-bottom: 2.8rem; }
  .hero-visual { min-height: 300px; }
  .hero-stack { height: 300px; }
}

@media (max-width: 600px) {
  .wrap { width: min(var(--max), calc(100% - 24px)); }
  .grid, .form-grid, .guide-grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .cart-item { grid-template-columns: 64px 1fr; }
  .cart-item .item-actions { grid-column: 1 / -1; }
}


/* Fidget-inspired motion */
.product-card[data-feel="click"] { overflow: visible; }
.product-card[data-feel="click"]:active {
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 var(--ink);
}

.product-card[data-feel="spin"]:hover .card-media img,
.product-card[data-feel="spin"]:focus-within .card-media img,
.sticker-c:hover img,
.sticker-c.is-spinning img {
  transform: rotate(400deg);
  transition: transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card[data-feel="slide"]:hover .card-media img,
.product-card[data-feel="slide"]:focus-within .card-media img {
  transform: translateX(10px);
  transition: transform 0.4s cubic-bezier(0.22, 1.5, 0.36, 1);
}

@keyframes fidget-flex {
  0% { transform: rotate(0deg) skewX(0deg) scale(1, 1); }
  25% { transform: rotate(-4deg) skewX(-4deg) scale(1.03, 0.97); }
  50% { transform: rotate(3deg) skewX(3deg) scale(0.97, 1.04); }
  75% { transform: rotate(-2deg) skewX(-2deg) scale(1.02, 0.98); }
  100% { transform: rotate(0deg) skewX(0deg) scale(1, 1); }
}
.product-card[data-feel="flex"]:hover .card-media img,
.product-card[data-feel="flex"]:focus-within .card-media img,
.sticker-a:hover img,
.sticker-a.is-flexing img {
  animation: fidget-flex 0.7s cubic-bezier(0.22, 1.3, 0.36, 1);
}

@keyframes fidget-roll {
  0% { transform: rotate(0deg) translateX(0); }
  30% { transform: rotate(10deg) translateX(8px); }
  60% { transform: rotate(-7deg) translateX(-5px); }
  100% { transform: rotate(0deg) translateX(0); }
}
.product-card[data-feel="roll"]:hover .card-media img,
.product-card[data-feel="roll"]:focus-within .card-media img {
  animation: fidget-roll 0.7s cubic-bezier(0.22, 1.2, 0.36, 1);
}

.sticker-b:active,
.sticker-b.is-clicking {
  transform: rotate(7deg) translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--ink);
}

.click-burst {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5.6rem;
  height: 5.6rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
  overflow: visible;
  z-index: 9999;
  animation: click-burst-pop 0.32s ease-out forwards;
}
@keyframes click-burst-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.45); }
  22% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.28); }
}

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


/* Layout helpers (kept in CSS so the page can use a strict CSP with no inline styles) */
.badges-inline { position: static; }
.close-inline { position: static; }
.kicker-space { margin-top: 1rem; }
.btn-block { width: 100%; margin-top: 12px; }

.play-tri {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid currentColor;
  margin-left: 3px;
}
