/* ===== DIFRESHHELLAS — upgrade layer =====
   Loaded after style.css on every page. Tokens live in style.css :root.
   Sections: base polish · cursor · sound · icons · how-it-works · slots ·
   chips · hero sequence · knob scene · colour picker · map · business teaser */

/* ---------- Base polish ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
body { background: var(--black); -webkit-font-smoothing: antialiased; }
::selection { background: var(--ink); color: var(--black); }
.btn-primary { background: var(--ink); color: var(--black); }
.btn, .btn-sm { transition: transform .4s var(--arrive), box-shadow .4s var(--arrive), background .3s ease, translate .5s var(--arrive); }
.will-reveal { transition: opacity 1s var(--arrive), transform 1.1s var(--arrive); transition-delay: var(--rd, 0s); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px;
}
.condoms-page { background: var(--black); }   /* product colours live only in the colour picker */
.eyebrow { letter-spacing: .18em; }
.mask-rise { will-change: clip-path, transform; }

@media (max-width: 600px) {
  .container, .nav-inner { padding-left: 16px; padding-right: 16px; }
}

/* Carousel dots keep their 8px look but get 24px touch targets */
.carousel-dots { gap: 0; }
.carousel-dots .dot { box-sizing: content-box; padding: 8px; background-clip: content-box; }

/* Header: keep every nav label on one line now that the sound toggle shares the row */
.nav-menu a { white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 769px) { .nav-menu { gap: 1.25rem; } .nav-menu a { font-size: 13.5px; } }
@media (max-width: 960px) and (min-width: 769px) { .nav-menu { gap: .9rem; } .nav-menu a { font-size: 13px; } .logo { font-size: 19px; } }

/* ---------- Coin cursor ---------- */
.coin-cursor {
  position: fixed; left: 0; top: 0; z-index: 9999;
  width: 14px; height: 14px; border-radius: 50%;
  pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 35% 30%, #F6E2A2 0%, var(--gold) 46%, #8C6B22 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 236, 180, .55), 0 2px 6px rgba(0,0,0,.45);
  transition: opacity .3s ease;
}
.coin-cursor.on { opacity: 1; }
.coin-cursor.hot { opacity: .85; }

/* ---------- Sound toggle ---------- */
.sound-toggle {
  flex: 0 0 auto; margin-left: 1.25rem; width: 36px; height: 36px;
  display: inline-grid; place-items: center; padding: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--mute); cursor: pointer;
  transition: color .3s ease, border-color .3s ease;
}
.sound-toggle svg { width: 18px; height: 18px; }
.sound-toggle .w1, .sound-toggle .w2 { opacity: 0; transition: opacity .3s ease; }
.sound-toggle.is-on { color: var(--ink); border-color: var(--mute); }
.sound-toggle.is-on .w1, .sound-toggle.is-on .w2 { opacity: 1; }
.sound-toggle.is-on .x { opacity: 0; }
.sound-toggle:hover { color: var(--ink); }
.sound-toggle + .lang-toggle { margin-left: .6rem; }
@media (max-width: 768px) {
  .sound-toggle { margin-left: 0; margin-right: .5rem; width: 34px; height: 34px; }
  .sound-toggle + .lang-toggle { margin-left: 0; }
}

/* ---------- Line-art icons (js/icons.js fills [data-icon]) ---------- */
[data-icon] { display: inline-block; width: 1em; height: 1em; color: inherit; line-height: 0; }
[data-icon] svg { width: 100%; height: 100%; overflow: visible; }
.icon-xl { font-size: 64px; }
.product-card .card-icon {
  position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 46px;
  color: var(--ink); opacity: .9;
  padding: 7px; border-radius: 50%; background: rgba(11,10,9,.62);
  border: 1px solid var(--line); backdrop-filter: blur(6px);
}
.product-card { position: relative; }

/* ---------- How this machine works ---------- */
.how-strip {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.how-step { position: relative; padding: 1.5rem 1.4rem 1.6rem; display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; align-items: start; }
.how-step + .how-step { border-left: 1px solid var(--line); }
.how-step [data-icon] { grid-row: span 2; font-size: 46px; color: var(--ink); }
.how-step .how-num { position: absolute; top: 1rem; right: 1.1rem; font: 400 13px/1 var(--font-display); letter-spacing: .1em; color: var(--mute); }
.how-step h3 { font-size: 15px; margin: .35rem 0 .2rem; letter-spacing: .01em; }
.how-step p { font-size: 13.5px; color: var(--mute); margin: 0; line-height: 1.5; }
.how-title { font: 500 12px/1 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); margin: 3rem 0 0; }
.how-step .coin-accent { color: var(--gold); }
/* the x-ray: icons draw their line art in when the strip enters */
.how-strip.draw [data-icon] path, .how-strip.draw [data-icon] circle,
.how-strip.draw [data-icon] rect, .how-strip.draw [data-icon] line, .how-strip.draw [data-icon] polyline {
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--arrive);
}
.how-strip.draw .how-step:nth-child(2) [data-icon] * { transition-delay: .12s; }
.how-strip.draw .how-step:nth-child(3) [data-icon] * { transition-delay: .24s; }
.how-strip.draw.drawn [data-icon] * { stroke-dashoffset: 0; }
@media (max-width: 760px) {
  .how-strip { grid-template-columns: 1fr; }
  .how-step + .how-step { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Owner slots: clearly marked places for missing content ---------- */
.slot {
  border: 1px dashed rgba(241,231,217,.32); border-radius: 12px;
  padding: 1.25rem 1.4rem; color: var(--mute); font-size: 14px;
  background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(241,231,217,.025) 10px 20px);
}
.slot strong { color: var(--ink-2); font-weight: 500; }
.slot .slot-tag {
  display: inline-block; margin-bottom: .5rem; font: 600 10.5px/1 var(--font);
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}

/* ---------- Chips (filters, swatches row labels) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  appearance: none; border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  padding: 8px 14px; border-radius: 999px; font: 500 13px/1 var(--font); cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.chip:hover { border-color: var(--mute); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--black); border-color: var(--ink); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .how-strip.draw [data-icon] * { stroke-dashoffset: 0 !important; }
  .coin-cursor { display: none; }
}
