/* Shookhy. Bump ?v= in index.html, 404.html, and privacy/index.html after visual edits. */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/InterVariable-latin.woff2?v=20261203r") 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: Fraunces;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/fraunces-latin.woff2?v=20261203r") 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 {
  --bg: #12090e;
  --surface: #1e1218;
  --raised: #2a1a22;
  --text: #f5f0e8;
  --muted: #c8b6b0;
  --faint: rgba(245, 240, 232, 0.42);
  --line: rgba(245, 240, 232, 0.1);
  --accent: #c49a42;
  --accent-hover: #d4aa52;
  --accent-ink: #12090e;
  --secondary: #ba5e6c;
  --deep: #904850;
  --gold: #c49a42;
  --icon-light: #f5f0e8;
  --radius: 24px;
  --max: 72rem;
  --header-h: 64px;
  --tap: 48px;
  --font-sans: Inter, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-display: Fraunces, "Times New Roman", serif;
}

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

html {
  color-scheme: dark;
  background-color: #12090e;
  background: #12090e;
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: "cv11", "ss01";
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
  color: var(--text);
}

body.nav-open { overflow: hidden; }

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--accent-hover); }

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

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

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--raised);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.page { position: relative; z-index: 10; background: transparent; }

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

/* Hidden for JS users so it cannot flash before render.js runs. No-JS users get the <noscript> document. */
.js-required {
  display: none;
}

/* Reveals — same timing as By Jahangiri, ported here. */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Header */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(18, 9, 14, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 18;
  min-height: var(--tap);
}
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 4px;
}
.nav-desktop a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-desktop a:hover { color: var(--text); background: rgba(245, 240, 232, 0.06); }

.nav-toggle {
  width: var(--tap);
  height: var(--tap);
  margin-right: -8px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  transition: transform 0.2s ease, top 0.2s ease, background-color 0.2s ease;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.nav-sheet[hidden],
.nav-backdrop[hidden] { display: none !important; }

.nav-sheet {
  position: fixed;
  z-index: 50;
  top: calc(var(--header-h) + 8px);
  right: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}
.nav-sheet a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border-radius: 12px;
}
.nav-sheet a:hover { background: rgba(245, 240, 232, 0.06); }

@media (min-width: 720px) {
  .nav-desktop { display: flex; }
  .nav-toggle,
  .nav-backdrop,
  .nav-sheet { display: none !important; }
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 72vh;
  padding: 8rem 0 5rem;
  overflow: hidden;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 10vw, 8rem);
  letter-spacing: -0.045em;
  line-height: 0.92;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}

.hero-wordmark {
  display: inline-block;
  transform-origin: 50% 55%;
}

.brand {
  transform-origin: 50% 50%;
}

@media (prefers-reduced-motion: reduce) {
  .hero-wordmark,
  .brand {
    transform: none !important;
  }
}

.hero-accent {
  display: block;
  color: var(--gold);
}

.hero .lead {
  margin: 2rem 0 0;
  max-width: 36rem;
  color: var(--secondary);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.1vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 24;
}

/* Noscript homepage has no .hero wrapper. */
noscript main > h1 {
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
noscript main > h1 + p,
noscript .lead {
  color: var(--secondary);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 24;
}

.hero-rule {
  margin-top: 2.5rem;
  width: 6rem;
  height: 1px;
  background: var(--accent);
}

@media (min-width: 640px) {
  .hero {
    min-height: 86vh;
    padding: 9rem 0 7rem;
  }
}

/* Product icon marquee — never apply .reveal / opacity to this strip. */
.ic-strip {
  position: relative;
  display: flex;
  align-items: stretch;
  background: #12090e;
}
.ic-marquee {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 1.25rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 36px), transparent);
}

.ic-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 0;
  column-gap: 0;
  animation: ic-scroll 50s linear infinite;
  animation-delay: -25s;
}
.ic-dup {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.ic-strip:hover .ic-track,
.ic-strip:focus-within .ic-track,
.ic-strip.is-paused .ic-track {
  animation-play-state: paused;
}

.ic-item {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  margin-right: 4rem;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 18;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.ic-item:hover,
.ic-item:focus-visible { color: var(--text); }

.ic-item .product-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease;
}
.ic-item:hover .product-icon,
.ic-item:focus-visible .product-icon {
  transform: translateY(-3px);
  box-shadow: 0 0 0 2px var(--accent);
}
.ic-item .product-icon img {
  width: 48px;
  height: 48px;
}
.ic-item .product-icon-light img {
  width: 34px;
  height: 34px;
}

.ic-toggle {
  position: relative;
  flex: 0 0 auto;
  align-self: center;
  margin: 0 max(12px, env(safe-area-inset-right, 0px)) 0 10px;
  z-index: 3;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #12090e;
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.ic-toggle::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 4.5rem;
  background: linear-gradient(90deg, rgba(18, 9, 14, 0), #12090e 78%);
  pointer-events: none;
}
.ic-toggle:hover {
  border-color: rgba(245, 240, 232, 0.22);
  color: var(--text);
}
.ic-toggle[aria-pressed="true"] {
  border-color: var(--accent);
}

@keyframes ic-scroll {
  to { transform: translateX(-50%); }
}

/* Sections */

.section {
  padding: 5.5rem 0;
  border-top: 1px solid var(--line);
}

.section-grid {
  display: grid;
  gap: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}

.kicker {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 14;
}

.about-meta {
  margin: 0.65rem 0 0;
  max-width: 16rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.section-intro,
.about-text {
  margin: 0;
  max-width: 40rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 24;
}

@media (min-width: 800px) {
  .section { padding: 7.5rem 0; }
  .section-grid {
    grid-template-columns: minmax(10rem, 3fr) 9fr;
    align-items: start;
    margin-bottom: 2.75rem;
  }
  .products .section-grid { margin-bottom: 2.25rem; }
}

/* Products */

.product-groups {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.product-group + .product-group {
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.product-group-heading {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.product-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.product-card:hover {
  border-color: rgba(245, 240, 232, 0.22);
  background: #2a181f;
}

.product-icon {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--icon-light);
}
.product-icon img {
  width: 72px;
  height: 72px;
  object-fit: cover;
}
.product-icon-dark { background: #0e080b; }
.product-icon-own { background: transparent; }
.product-icon-fill { background: var(--icon-light); }
.product-icon-fill img { width: 72px; height: 72px; object-fit: cover; }
.product-icon-light {
  background: var(--icon-light);
  display: grid;
  place-items: center;
}
.product-icon-light img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.product-body { min-width: 0; flex: 1; }

.product-card h3,
.product-card h4 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}

.product-status {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px !important;
}

.product-link {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  min-height: 44px;
  padding-block: 10px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}
@media (min-width: 800px) {
  .product-link {
    min-height: 32px;
    padding-block: 0;
  }
}
.product-link:hover { text-decoration: underline; color: var(--accent-hover); }

.product-link-secondary {
  color: var(--muted);
  font-weight: 500;
}
.product-link-secondary:hover { color: var(--text); }

@media (min-width: 800px) {
  .product-groups { gap: 3.25rem; }
  .product-group + .product-group {
    padding-top: 3.25rem;
  }
  .product-group-heading { margin-bottom: 1.2rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Contact */

.contact-emails p { margin: 0; }
.contact-emails p + p { margin-top: 0.4em; }

.email {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 32;
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s ease;
}
.email:hover { color: var(--accent-hover); }

.email-note {
  margin-top: 12px !important;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 36rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
  flex-wrap: wrap;
}
.footer-bar p { margin: 0; }
.footer-links {
  display: flex;
  align-items: center;
  gap: 8px 20px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--text);
}

/* Error page */

.page-error {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 24px 7rem;
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.page-error h1 {
  margin: 1rem 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}

.page-error p {
  margin: 0;
  color: var(--muted);
  max-width: 28rem;
  font-size: 1.1rem;
}

.text-back {
  display: inline-block;
  margin-top: 2rem;
  color: var(--text);
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(245, 240, 232, 0.2);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.text-back:hover {
  color: var(--text);
  text-decoration-color: var(--accent);
}

/* Legal / privacy */

.page-legal {
  padding: 8rem 0 5rem;
}

.page-legal h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}

.legal-updated {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.legal-body {
  max-width: 38rem;
  margin-top: 2.75rem;
}

.legal-body h2 {
  margin: 2.25rem 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.legal-body a {
  color: var(--text);
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(245, 240, 232, 0.2);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.legal-body a:hover {
  color: var(--text);
  text-decoration-color: var(--accent);
}

/* Playful confetti background (canvas). */

.site-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: #12090e;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.site-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 64% 50% at 48% 28%, rgba(30, 18, 24, 0.42), transparent 68%),
    radial-gradient(ellipse 88% 80% at 50% 40%, transparent 50%, rgba(8, 3, 6, 0.3) 100%),
    radial-gradient(ellipse 64% 56% at 94% 4%, rgba(186, 94, 108, 0.12), transparent 72%),
    radial-gradient(ellipse 58% 54% at 8% 96%, rgba(196, 154, 66, 0.07), transparent 70%),
    radial-gradient(ellipse 54% 50% at 80% 82%, rgba(58, 122, 116, 0.04), transparent 72%);
}

.site-bg canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

html::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("assets/bluenoise.png");
  background-repeat: repeat;
  background-size: 256px 256px;
  mix-blend-mode: soft-light;
}

.hero::before {
  content: "";
  position: absolute;
  left: -10%;
  right: 15%;
  top: 18%;
  bottom: 0;
  background: radial-gradient(ellipse 70% 58% at 28% 68%, rgba(18, 9, 14, 0.62), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ic-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .ic-track {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 1rem;
    animation: none;
    animation-delay: 0s;
  }
  .ic-track [data-dup],
  .ic-dup,
  .ic-toggle { display: none; }
  .ic-item .product-icon { transition: none; }
  .ic-item:hover .product-icon,
  .ic-item:focus-visible .product-icon { transform: none; }
  *,
  *::before,
  *::after {
    animation: none !important;
  }
}

/* App card previews */

.product-card-preview {
  position: relative;
}
.product-preview-open {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}
.product-card-preview .product-icon,
.product-card-preview .product-body {
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.product-card-preview .product-links {
  pointer-events: auto;
}
.product-card-preview:has(.product-preview-open:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.product-preview-hint {
  margin: 0.55rem 0 0 !important;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.product-preview {
  width: min(72rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  overflow: auto;
  opacity: 0;
  transform: translateY(0.75rem) scale(0.98);
  transition: opacity 0.32s ease, transform 0.32s ease;
}
.product-preview.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.product-preview::backdrop {
  background: rgba(8, 3, 6, 0.72);
}

.product-preview-panel {
  position: relative;
  padding: 1.5rem 1.35rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
.product-preview-panel h2 {
  margin: 0 3.5rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.product-preview-lead {
  margin: 0.85rem 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}
.product-preview-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  min-height: var(--tap);
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--raised);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}
.product-preview-close:hover,
.product-preview-close:focus-visible {
  background: #3a2430;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.product-preview-shots {
  display: flex;
  gap: 1rem;
  margin: 1.35rem 0 0;
  padding: 0.25rem 0 0.75rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.product-preview-shots:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 12px;
}

.phone-frame {
  flex: 0 0 auto;
  width: min(13.5rem, 58vw);
  margin: 0;
  padding: 0.5rem;
  background: #090609;
  border: 2px solid rgba(245, 240, 232, 0.16);
  border-radius: 1.85rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  scroll-snap-align: start;
}
.phone-frame picture,
.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.35rem;
}

.product-preview-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.25rem;
  margin: 1.15rem 0 0;
}
.product-preview-note {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .product-preview {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
