/* ─────────────────────────────────────────────────────────────────────────
   Cyberfrog Systems
   Design system: dark editorial, restrained. One accent (green), one
   typeface (Montserrat), consistent radii, consistent rhythm. Pages look
   like one site. No grid animations, no pill buttons, no busy gradients.
   ─────────────────────────────────────────────────────────────────────── */

/* Self-hosted Montserrat (Latin subset, variable weight). No third-party
   font CDN - matches the no-third-parties stance and removes the runtime
   call to Google. Italic face is fetched only if italic text is rendered. */
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat-var-latin-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg-dark: #0d0f12;
  --bg-deep: #07090b;
  --surface-dark: #14181d;
  --surface-light: #ffffff;
  --bg-light: #fafbfc;
  --border-dark: #232930;
  --border-light: #e6e8eb;
  --text-dark: #111418;
  --text-light: #e5e7eb;
  --muted-dark: #8b9199;
  --muted-light: #5d6470;
  --accent: #19c37d;
  --accent-dark: #13a06a;
  --accent-soft: rgba(25, 195, 125, 0.12);
  --shadow-sm: 0 1px 2px rgba(7, 9, 11, 0.04), 0 4px 12px rgba(7, 9, 11, 0.05);
  --shadow-md: 0 2px 6px rgba(7, 9, 11, 0.06), 0 12px 28px rgba(7, 9, 11, 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --maxw: 1100px;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

/* overflow-x: clip guards against horizontal scroll from off-screen elements
   (e.g. the slide-in toast resting at translateX past the right edge). clip,
   not hidden, so it doesn't create a scroll container that would break the
   position: sticky topnav. */
html, body { margin: 0; padding: 0; overflow-x: clip; }

body {
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  font-size: 16px;
}

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

a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ─── Topnav ─────────────────────────────────────────────────────────── */

.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 1.75rem;
  background: rgba(7, 9, 11, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-dark);
  color: var(--text-light);
}

.topnav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.topnav__brand img { width: 28px; height: 28px; }
.topnav__brand:hover { color: var(--accent); }

.topnav__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.95rem;
}
.topnav__links a {
  color: rgba(229, 231, 235, 0.72);
  text-decoration: none;
  transition: color 150ms ease;
  padding: 10px;
}
.topnav__links a:hover { color: var(--text-light); }

.topnav__current {
  color: var(--text-light) !important;
  border-bottom: 2px solid var(--accent);
}

.topnav__cta {
  background: var(--accent);
  color: #07140d !important;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  white-space: nowrap;
  margin-left: 0.25rem;
}
.topnav__cta:hover { background: var(--accent-dark); color: #ffffff !important; }

.topnav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--text-light);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.topnav__toggle:hover { color: var(--accent); }
.topnav__toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.topnav__toggle svg { display: block; }

@media (max-width: 860px) {
  .topnav--js .topnav__toggle { display: inline-flex; }

  .topnav--js .topnav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 49;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 0.9rem;
    background: rgba(7, 9, 11, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-dark);
  }
  .topnav--js.is-open .topnav__links { display: flex; }

  .topnav--js .topnav__links li { width: 100%; }
  .topnav--js .topnav__links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.5rem;
  }
  .topnav--js .topnav__current { border-bottom: 0; color: var(--accent) !important; }

  .topnav--js .topnav__cta {
    justify-content: center;
    margin: 0.5rem 0 0;
    padding: 0.7rem 1.25rem;
    color: #07140d !important;
  }
}

/* No-JS fallback: links wrap rather than collapse. */
@media (max-width: 720px) {
  .topnav:not(.topnav--js) { flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 0.75rem 1rem; }
  .topnav:not(.topnav--js) .topnav__links { width: 100%; flex-wrap: wrap; gap: 0.6rem 1rem; font-size: 0.9rem; }
}

/* ─── Hero (front page) ─────────────────────────────────────────────── */

.hero {
  position: relative;
  background: var(--bg-deep);
  color: var(--text-light);
  padding: 5rem 1.5rem 5.5rem;
  text-align: center;
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero__content { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.hero__logo { width: clamp(110px, 16vw, 170px); margin: 0 auto 1.25rem; }

.hero__company-name {
  text-align: center;
  margin-bottom: 1.75rem;
  letter-spacing: -0.01em;
}
.hero__company-name-line { line-height: 1.05; }
.hero__company-name-line--bold {
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
}
.hero__company-name-line--light {
  font-weight: 400;
  font-size: clamp(0.95rem, 1.8vw, 1.3rem);
  color: rgba(229, 231, 235, 0.7);
  letter-spacing: 0.18em;
}

.hero__content > p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
  color: rgba(229, 231, 235, 0.88);
  max-width: 600px;
  margin: 0 auto 0.75rem;
}
.hero__location {
  margin-top: 0.5rem !important;
  color: rgba(229, 231, 235, 0.55) !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.04em;
}

.hero__actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ─── Inner-page hero ───────────────────────────────────────────────── */

.page-hero {
  background: var(--bg-deep);
  color: var(--text-light);
  padding: 4.5rem 1.5rem 4rem;
  text-align: center;
}
.page-hero__content { max-width: 720px; margin: 0 auto; }
.page-hero__eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}
.page-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.page-hero__lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.55;
  color: rgba(229, 231, 235, 0.78);
  margin: 0;
}
.page-hero__lead a { color: var(--accent); }
.page-hero__sub {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.page-hero__sub a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease;
}
.page-hero__sub a:hover { border-bottom-color: var(--accent); }

/* ─── Sections ──────────────────────────────────────────────────────── */

.section { padding: 4.5rem 1.5rem; }

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1.2;
}

.section__eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  text-align: center;
}

.section__lead {
  max-width: 640px;
  margin: 0.5rem auto 2.5rem;
  font-size: 1.05rem;
  color: var(--muted-light);
  text-align: center;
  line-height: 1.55;
}

.section__content { max-width: var(--maxw); margin: 0 auto; }

.section--light { background: var(--bg-light); color: var(--text-dark); }
.section--white { background: var(--surface-light); color: var(--text-dark); }
.section--dark { background: var(--bg-dark); color: var(--text-light); }
.section--dark h2 { color: var(--text-light); }
.section--dark .section__lead { color: rgba(229, 231, 235, 0.7); }

/* ─── Trust strip (front page) ──────────────────────────────────────── */

.section--trust {
  background: var(--surface-dark);
  color: var(--text-light);
  padding: 2.25rem 1.5rem;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}
.trust-strip {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.trust-badge {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.trust-badge strong {
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  /* `balance` distributes line-break points evenly so titles like
     "Built by the people you talk to" don't drop "to" onto its own
     line as an orphan. Wide browser support 2024+. */
  text-wrap: balance;
}
.trust-badge span {
  color: rgba(229, 231, 235, 0.7);
  font-size: 0.85rem;
  line-height: 1.45;
  /* `pretty` optimizes the LAST few lines of body copy to avoid
     orphans + bad ragging. Wide browser support 2024+. */
  text-wrap: pretty;
}

/* ─── Service / generic card grid ───────────────────────────────────── */

.cards {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 880px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .cards { grid-template-columns: 1fr; } }
.cards--centered {
  display: flex;
  justify-content: center;
}

.cta-row {
  text-align: center;
  margin: 1.5rem 0 0;
}

/* ─── Checkout success page ─────────────────────────────────────────── */

.checkout-success {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}
.checkout-success h2 {
  text-align: left;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
.checkout-success__ref {
  margin-top: 3rem;
  font-size: 0.8rem;
  color: var(--muted-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-align: center;
}

.recover-form {
  margin-top: 1rem;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.recover-form__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 0.5rem;
}
.recover-form__row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.recover-form__row input[type="email"] {
  flex: 1 1 240px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--surface-light);
  color: var(--text-dark);
  font-size: 0.95rem;
  font-family: inherit;
}
.recover-form__row input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.recover-form__status {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.recover-form__status[data-state="ok"] { color: var(--accent-dark); }
.recover-form__status[data-state="err"] { color: #c0382b; }
.recover-form__status[data-state="pending"] { color: var(--muted-light); }

.card {
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card__art {
  background: var(--bg-deep);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Reserves space for the canvas before its drawer paints, so the
     tile heights don't pop on first render. */
  aspect-ratio: 5 / 3;
  overflow: hidden;
}
.card__art img { max-width: 80%; height: auto; }
.card__canvas {
  display: block;
  width: 100%;
  height: 100%;
  /* Per-tile motion is driven from tile-animations.js. The canvas is
     decorative (aria-hidden in markup) so screen readers skip it. */
}
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--muted-light);
  line-height: 1.55;
  font-size: 0.95rem;
}

/* ─── Engineering principles list (dark section) ────────────────────── */

.section--dark ul.principles {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 700px;
  display: grid;
  gap: 1rem;
}
.section--dark ul.principles li {
  background: var(--surface-dark);
  border: 1px solid var(--border-dark);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1rem 1.25rem;
  color: rgba(229, 231, 235, 0.92);
  line-height: 1.55;
}
.section--dark ul.principles li strong {
  color: var(--text-light);
  display: block;
  margin-bottom: 0.25rem;
}

/* ─── Buttons ───────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
  line-height: 1;
}
.btn--primary {
  background: var(--accent);
  color: #07140d;
}
.btn--primary:hover {
  background: var(--accent-dark);
  color: #ffffff;
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--text-light);
  border: 1px solid rgba(229, 231, 235, 0.35);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(25, 195, 125, 0.06);
}

/* ─── Contact section ───────────────────────────────────────────────── */

.section--accent {
  background: var(--bg-light);
  color: var(--text-dark);
}

.contact-card {
  max-width: 640px;
  margin: 1.5rem auto 0;
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.contact-card__email {
  text-align: center;
  margin-bottom: 1.25rem;
}
.contact-card__email span {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05rem;
  color: var(--text-dark);
  word-break: break-all;
}
.contact-card__note {
  margin: 0.75rem 0;
  color: var(--muted-light);
  font-size: 0.95rem;
  line-height: 1.55;
}
.contact-card__list {
  margin: 0.75rem 0 1rem;
  padding-left: 1.25rem;
  color: var(--muted-light);
  font-size: 0.95rem;
  line-height: 1.55;
}
.contact-card__list li { margin-bottom: 0.4rem; }
.contact-card__thanks {
  margin-top: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* ─── Page-hero variants for inner pages ────────────────────────────── */

.prose {
  max-width: 680px;
  margin: 0 auto 1.25rem;
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 1.05rem;
}
.section--dark .prose { color: rgba(229, 231, 235, 0.88); }
.prose code {
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--accent-dark);
}

.prose-list {
  list-style: none;
  max-width: 720px;
  margin: 1.25rem auto;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.prose-list li {
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 0.9rem 1.1rem;
  color: var(--text-dark);
  line-height: 1.55;
}
.section--dark .prose-list li {
  background: var(--surface-dark);
  border-color: var(--border-dark);
  border-left-color: var(--accent);
  color: rgba(229, 231, 235, 0.92);
}

/* ─── Team (about) ─────────────────────────────────────────────────── */

.team {
  max-width: 640px;
  margin: 1.75rem auto 0;
}
.team-card {
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.team-card__head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.1rem;
}
.team-card__avatar {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0b0d0f 0%, #0f1418 60%, #1a2530 100%);
  border: 1px solid var(--border-light);
  box-shadow: 0 0 0 4px rgba(25, 195, 125, 0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.team-card__avatar img { width: 60%; height: 60%; object-fit: contain; }
.team-card__head-text { min-width: 0; }
.team-card h3 { margin: 0; font-size: 1.3rem; line-height: 1.2; }
.team-card__role {
  margin: 0.2rem 0 0.4rem;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
}
.team-card__meta {
  margin: 0;
  color: var(--muted-light);
  font-size: 0.85rem;
}
.team-card__meta a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease;
}
.team-card__meta a:hover { border-bottom-color: var(--accent); }
.team-card__chips {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.team-card__chips li {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-light);
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
}
.team-card__bio {
  color: var(--muted-light);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}
.team-note {
  max-width: 640px;
  margin: 1rem auto 0;
  text-align: center;
  color: var(--muted-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ─── Prior work cards (about page, dark section) ───────────────────── */

.prior-work {
  list-style: none;
  margin: 1.5rem auto 0;
  padding: 0;
  max-width: var(--maxw);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 880px) {
  .prior-work { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .prior-work { grid-template-columns: 1fr; }
}
.prior-work li {
  background: var(--surface-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.prior-work h3 {
  margin: 0 0 0.6rem;
  color: var(--text-light);
  font-size: 1.05rem;
  font-weight: 700;
}
.prior-work p {
  margin: 0;
  color: rgba(229, 231, 235, 0.7);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* ─── Marketplace product card (single-product centered layout) ────── */

.product {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 280px 1fr;
}
@media (max-width: 720px) {
  .product { grid-template-columns: 1fr; }
}

/* Vertical spacing between stacked product cards (games + marketplace). */
.product + .product { margin-top: 1.75rem; }

.product__art {
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-right: 1px solid var(--border-light);
}
@media (max-width: 720px) {
  .product__art { border-right: none; border-bottom: 1px solid var(--border-light); }
}
.product__art img { width: 100%; height: auto; max-width: 220px; }

.product__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.product__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.product__head h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.product__platform {
  margin: 0;
  color: var(--muted-light);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.product__price {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-dark);
}
.product__price .unit {
  margin-left: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.product__desc {
  margin: 0;
  color: var(--text-dark);
  line-height: 1.6;
}
.product__feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.93rem;
  color: var(--text-dark);
}
.product__feats li {
  position: relative;
  padding-left: 1.25rem;
}
.product__feats li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.product__feats a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.product__actions {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.product__actions .btn { flex: 1 1 auto; }

/* Image and title both link to the detail page; reset link styling so the
   card itself looks unchanged from when both were plain content. */
.product__art { text-decoration: none; }
.product__title-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease, color 150ms ease;
}
.product__title-link:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

/* ─── Catalog (shared listing: software / games / webtools) ──────────── */

.catalog {
  max-width: var(--maxw);
  margin: 0 auto;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.catalog-filter {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.6rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}
.catalog-filter:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.catalog-views {
  display: inline-flex;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.catalog-views__btn {
  padding: 0.55rem 1rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted-light);
  background: var(--surface-light);
  border: none;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.catalog-views__btn + .catalog-views__btn { border-left: 1px solid var(--border-light); }
.catalog-views__btn:hover { color: var(--text-dark); }
.catalog-views__btn.is-active,
.catalog-views__btn[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
@media (max-width: 640px) {
  .catalog-grid { grid-template-columns: 1fr; }
}
/* The hidden attribute must beat .catalog-grid's display:grid (and the table's
   display), so the view toggle actually hides the inactive view. */
.catalog-grid[hidden], .catalog-table[hidden] { display: none !important; }

.catalog-tile {
  display: flex;
  flex-direction: column;
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.catalog-tile__art {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
}
.catalog-tile__art img { width: 100%; height: auto; max-width: 160px; }

.catalog-tile__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.5rem;
  /* Fill the grid-stretched tile height so the CTA's margin-top:auto can pin
     it to the bottom - keeps buttons aligned across tiles of different copy. */
  flex: 1;
}
.catalog-tile__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.catalog-tile__title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease, color 150ms ease;
}
.catalog-tile__title a:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}
.catalog-tile__subtitle {
  margin: -0.4rem 0 0;
  color: var(--muted-light);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
}
.catalog-tile__type {
  margin: 0;
  color: var(--muted-light);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.catalog-tile__price {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-dark);
}
.catalog-tile__desc {
  margin: 0;
  color: var(--text-dark);
  line-height: 1.55;
  font-size: 0.95rem;
}
.catalog-tile__feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-dark);
}
.catalog-tile__feats li {
  position: relative;
  padding-left: 1.25rem;
}
.catalog-tile__feats li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.catalog-tile__actions {
  margin-top: auto;
  padding-top: 0.5rem;
}
.catalog-tile__actions .btn { width: 100%; }

/* List view: built by catalog-view.js, hidden until selected. */
.catalog-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 0.95rem;
}
.catalog-table th,
.catalog-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
}
.catalog-table thead th {
  background: var(--bg-light);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-light);
}
.catalog-table tbody tr:last-child td { border-bottom: none; }
.catalog-table tbody tr:hover { background: var(--accent-soft); }
.catalog-table__icon { width: 56px; }
.catalog-table__desc { max-width: 380px; color: var(--muted-light); font-size: 0.9rem; line-height: 1.45; }
.catalog-table__icon img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  display: block;
}
.catalog-table a {
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.catalog-table a:hover { border-bottom-color: var(--accent); }
.catalog-table__sort {
  font: inherit;
  font-size: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-light);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.catalog-table__sort:hover { color: var(--text-dark); }
.catalog-table th[aria-sort] .catalog-table__sort { color: var(--accent-dark); }
.catalog-table__ind { font-weight: 700; }

/* Mobile: a 5-column table has no room on a phone (the description column
   collapses to a skinny strip and the row overflows), so each row becomes a
   stacked card. The header row is dropped - the values read as a card without
   column labels. Applies to every catalog list view (games/software/webtools/
   puzzles) since they share .catalog-table. */
@media (max-width: 640px) {
  .catalog-table {
    border: none;
    background: none;
    border-radius: 0;
    overflow: visible;
  }
  .catalog-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .catalog-table tbody,
  .catalog-table tr,
  .catalog-table td { display: block; }
  .catalog-table tr {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--surface-light);
    padding: 0.9rem 1rem;
    margin-bottom: 0.85rem;
  }
  .catalog-table tbody tr:hover { background: var(--surface-light); }
  .catalog-table td {
    padding: 0.1rem 0;
    border-bottom: none;
    max-width: none;
  }
  .catalog-table tbody tr:last-child td { border-bottom: none; }
  .catalog-table__icon { width: auto; }
  .catalog-table__icon:empty { display: none; }
  .catalog-table__icon img {
    width: 40px;
    height: 40px;
    margin-bottom: 0.35rem;
  }
  /* td order: 1 icon, 2 name, 3 desc, 4 type, 5 price, 6 open/cta */
  .catalog-table td:nth-child(2) a { font-size: 1.1rem; font-weight: 700; }
  .catalog-table__desc { margin: 0.2rem 0 0.45rem; }
  .catalog-table td:nth-child(4),
  .catalog-table td:nth-child(5) {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--muted-light);
  }
  .catalog-table td:nth-child(4):not(:empty)::after { content: " \00b7 "; }
  .catalog-table td:nth-child(6) { margin-top: 0.65rem; }
  .catalog-table td:nth-child(6) a {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    color: var(--accent-dark);
    font-weight: 600;
  }
}

.catalog-empty {
  margin: 2rem 0;
  text-align: center;
  color: var(--muted-light);
  font-weight: 600;
}

/* ─── Marketplace product detail page ────────────────────────────────── */

.product-detail-section { padding-top: 5rem; }
.product-detail__crumbs {
  max-width: var(--maxw);
  margin: 0 auto 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-light);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.product-detail__crumbs a {
  color: var(--muted-light);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
}
.product-detail__crumbs a:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent-dark);
}
.product-detail__crumbs [aria-current="page"] { color: var(--text-dark); }

.product-detail__title {
  max-width: var(--maxw);
  margin: 0 auto 1.25rem;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-dark);
}

.product-detail {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 880px) {
  .product-detail { grid-template-columns: 1fr; gap: 2rem; }
}

.product-detail__media { min-width: 0; }
.product-detail__media .media-carousel { margin: 0; }

.product-detail__below {
  max-width: var(--maxw);
  margin: 2.5rem auto 0;
}

.product-detail__info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
/* Marketplace standard "header" asset slot: 2:1 horizontal banner that
   anchors the top of the right-side product card (Steam capsule analogue).
   Dimensions are fixed by aspect-ratio so every product reads at the same
   size regardless of source-image dimensions; the underlying logo is
   centered with letterboxing rather than cropped. */
.product-detail__header {
  width: 100%;
  aspect-ratio: 2 / 1;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-detail__header img {
  max-width: 70%;
  max-height: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.product-detail__buy-card {
  width: 100%;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}
.product-detail__price {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-dark);
}
.product-detail__price .unit {
  margin-left: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.product-detail__platform {
  margin: 0;
  color: var(--muted-light);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.product-detail__buy { margin-top: 0.5rem; }
.product-detail__license {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
}
.product-detail__license a { color: var(--accent-dark); }

.product-detail__body {
  min-width: 0;
}
.product-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.product-detail__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-light);
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}
.product-detail__desc {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.92rem;
  line-height: 1.55;
}
/* Per-product price honesty line under the buy card. Italic so it reads
   as a sidebar note, not a marketing claim. */
.product-detail__price-note {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted-light);
  font-style: italic;
  text-align: center;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}
.product-detail__recovery {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted-light);
  text-align: center;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}
.product-detail__recovery a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease;
}
.product-detail__recovery a:hover { border-bottom-color: var(--accent); }

.product-detail__notice {
  margin: 0 0 1.5rem;
  padding: 0.95rem 1.1rem;
  background: #fff8e1;
  border: 1px solid #f1d77a;
  border-left: 4px solid #c49213;
  border-radius: 8px;
}
.product-detail__notice-title {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b4c00;
}
.product-detail__notice-body {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #4a3700;
}
.product-detail__notice-body strong { color: #1a1300; }
.product-detail__heading {
  margin: 2rem 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.product-detail__feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: var(--text-dark);
}
.product-detail__feats li {
  position: relative;
  padding-left: 1.25rem;
}
.product-detail__feats li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.product-detail__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}
.product-detail__shot {
  display: block;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-deep);
  transition: border-color 150ms ease, transform 150ms ease;
}
.product-detail__shot:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.product-detail__shot img { width: 100%; height: auto; display: block; }
.product-detail__download-info {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted-light);
}
.product-detail__download-info + .product-detail__download-info { margin-top: 0.35rem; }
.product-detail__download-info a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease;
}
.product-detail__download-info a:hover { border-bottom-color: var(--accent); }
.product-detail__build {
  margin: 0;
  padding: 1rem 1.1rem;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.5rem 1rem;
  font-size: 0.88rem;
}
.product-detail__build dt {
  color: var(--muted-light);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding-top: 0.15rem;
}
.product-detail__build dd {
  margin: 0;
  color: var(--text-dark);
  word-break: break-word;
}
.product-detail__build code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
}
.product-detail__build-hash {
  display: inline-block;
  word-break: break-all;
  user-select: all;
}
.product-detail__build-sub {
  color: var(--muted-light);
  font-size: 0.78rem;
  margin-left: 0.25rem;
}
.product-detail__build-verify {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--muted-light);
  line-height: 1.55;
}
.product-detail__build-verify code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  background: var(--bg-light);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  user-select: all;
}
@media (max-width: 540px) {
  .product-detail__build { grid-template-columns: 1fr; gap: 0.15rem; }
  .product-detail__build dt { padding-top: 0.5rem; }
}

/* ─── Media carousel (Steam-style stage + thumbnail strip) ──────────── */

.media-carousel {
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.media-carousel__stage {
  background: #000;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-carousel__current {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.media-carousel__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.5rem;
}
/* Overflow mode: when there are >4 thumbs the server adds data-scroll="true"
   so we switch to a horizontal scroller. Thumbs get a slightly shorter
   aspect-ratio to claw back the vertical space the scrollbar costs, so the
   carousel column bottom still aligns with the right info column. */
.media-carousel__thumbs[data-scroll="true"] {
  display: flex;
  grid-template-columns: none;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-color: var(--accent-dark) transparent;
  scrollbar-width: thin;
  padding-bottom: 0.25rem;
}
.media-carousel__thumbs[data-scroll="true"]::-webkit-scrollbar {
  height: 8px;
}
.media-carousel__thumbs[data-scroll="true"]::-webkit-scrollbar-track {
  background: transparent;
}
.media-carousel__thumbs[data-scroll="true"]::-webkit-scrollbar-thumb {
  background: var(--accent-dark);
  border-radius: 4px;
}
.media-carousel__thumbs[data-scroll="true"] .media-carousel__thumb {
  /* Show ~4 thumbs in the visible area; horizontal-scroll the rest. */
  flex: 0 0 calc((100% - 1.5rem) / 4);
  min-width: 160px;
  /* Shorter than the non-scroll 16:10 to compensate for the scrollbar. */
  aspect-ratio: 16 / 8.5;
}
.media-carousel__thumb {
  position: relative;
  display: block;
  padding: 0;
  background: #000;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 10;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.media-carousel__thumb:hover { border-color: var(--accent-dark); transform: translateY(-1px); }
.media-carousel__thumb.is-active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent), 0 0 12px rgba(25, 195, 125, 0.35);
}
.media-carousel__thumb video,
.media-carousel__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-carousel__thumb-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.3rem 0.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
  color: var(--text-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: left;
  pointer-events: none;
}
.media-carousel__thumb.is-active .media-carousel__thumb-label { color: var(--accent); }

/* ─── Footer ────────────────────────────────────────────────────────── */

.footer {
  background: var(--bg-deep);
  color: rgba(229, 231, 235, 0.72);
  padding: 3rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border-dark);
  font-size: 0.92rem;
}
/* Brand block centered above the two link columns. */
.footer__brand-block { text-align: center; margin: 0 auto 2.25rem; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 2rem 4rem;
  justify-content: center;
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer__col p, .footer__col ul { margin: 0; }
.footer__col ul { list-style: none; padding: 0; display: grid; gap: 0.45rem; }
.footer__col a {
  color: rgba(229, 231, 235, 0.7);
  text-decoration: none;
  transition: color 150ms ease;
}
.footer__col a:hover { color: var(--accent); }
.footer__brand {
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.4rem !important;
}
.footer__addr { color: rgba(229, 231, 235, 0.55); font-size: 0.88rem; }
.footer__heading {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: rgba(229, 231, 235, 0.45);
  margin-bottom: 0.6rem !important;
  font-weight: 600;
}
.footer__copy {
  text-align: center;
  margin: 2.5rem auto 0;
  color: rgba(229, 231, 235, 0.4);
  font-size: 0.82rem;
  max-width: var(--maxw);
  border-top: 1px solid var(--border-dark);
  padding-top: 1.5rem;
}

/* Desktop: lay the brand beside the link columns (horizontal), centered as a
   group. Mobile (below) keeps the stacked, centered layout. */
@media (min-width: 700px) {
  .footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    column-gap: 5rem;
  }
  .footer__brand-block { text-align: left; margin: 0; }
  .footer__cols { margin: 0; }
  .footer__copy { flex-basis: 100%; }
}

/* ─── Toast (used by Copy Email button) ─────────────────────────────── */

.toast {
  position: fixed;
  top: 2rem;
  right: 2rem;
  transform: translateX(400px);
  background: var(--bg-deep);
  color: var(--text-light);
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 250ms ease, transform 250ms ease;
  z-index: 1000;
  font-size: 0.92rem;
  max-width: 320px;
}
.toast.toast--visible { opacity: 1; transform: translateX(0); }
.toast.toast--success { border-left: 3px solid var(--accent); }
.toast.toast--error { border-left: 3px solid #e63946; }

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
