/*
 * Mateen Labs — main stylesheet
 *
 * Loaded on every page, including the static blog articles in /blog/.
 * Blog articles use the older header markup (header > .shell.nav > .brand + nav),
 * so the header/nav/article rules below must keep supporting that markup.
 *
 * Sections:
 *  1. Design tokens (light + dark)
 *  2. Base and typography
 *  3. Header and navigation
 *  4. Buttons
 *  5. Sections and cards
 *  6. Homepage
 *  7. Page headers and breadcrumbs
 *  8. Footer
 *  9. Blog articles and long-form text
 * 10. Accessibility and motion
 */

/* ------------------------------------------------------------------ */
/* 1. Design tokens                                                    */
/* ------------------------------------------------------------------ */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --bg-soft: #f7f9fd;
  --surface: #ffffff;
  --panel: #f6f8fc;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --text: #0f172a;
  --muted: #475569;

  --accent: #2563eb;          /* fills: buttons, bars */
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --accent-text: #1d4ed8;     /* text and links on --bg (7:1 on white) */
  --on-accent: #ffffff;

  --header-bg: rgba(255, 255, 255, .86);
  --code-bg: #f6f8fc;

  --ok-bg: #f0fdf4;
  --ok-text: #166534;
  --ok-line: #bbf7d0;
  --warn-bg: #fffbeb;
  --warn-text: #92400e;
  --warn-line: #fde68a;
  --err-bg: #fef2f2;
  --err-text: #991b1b;
  --err-line: #fecaca;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-md: 0 8px 28px rgba(15, 23, 42, .08);
  --ring: 0 0 0 3px rgba(37, 99, 235, .35);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1e;
    --bg-soft: #0e1530;
    --surface: #111a33;
    --panel: #0f1730;
    --line: #243056;
    --line-strong: #34426c;
    --text: #e8edff;
    --muted: #a8b4d4;

    --accent: #2563eb;
    --accent-hover: #3b82f6;
    --accent-soft: #14214a;
    --accent-text: #8ab4ff;

    --header-bg: rgba(10, 15, 30, .86);
    --code-bg: #0c1329;

    --ok-bg: #0c2a1c;
    --ok-text: #86efac;
    --ok-line: #14532d;
    --warn-bg: #2d2208;
    --warn-text: #fcd34d;
    --warn-line: #713f12;
    --err-bg: #301212;
    --err-text: #fca5a5;
    --err-line: #7f1d1d;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, .45);
    --ring: 0 0 0 3px rgba(138, 180, 255, .45);
  }
}

/* ------------------------------------------------------------------ */
/* 2. Base and typography                                              */
/* ------------------------------------------------------------------ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.shell {
  max-width: 1120px;
  margin: auto;
  padding: 24px;
}

a {
  color: var(--accent-text);
  text-underline-offset: 4px;
}

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

@media (prefers-color-scheme: dark) {
  a:hover {
    color: #b3cdff;
  }
}

h1,
h2,
h3 {
  color: var(--text);
}

h1 {
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.06;
  letter-spacing: -.04em;
  margin: 14px 0 22px;
}

h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.15;
  letter-spacing: -.028em;
  margin: 10px 0 14px;
}

h3 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -.01em;
}

p {
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent-text);
  font-weight: 700;
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
}

.icon-sm {
  width: 18px;
  height: 18px;
}

/* ------------------------------------------------------------------ */
/* 3. Header and navigation                                            */
/* ------------------------------------------------------------------ */

header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-header .nav {
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  font-size: 23px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -.04em;
}

.brand:hover {
  color: var(--text);
}

.brand span {
  color: var(--accent-text);
}

header nav,
footer nav {
  display: flex;
  align-items: center;
  gap: 4px 6px;
  flex-wrap: wrap;
}

header nav a,
footer nav a {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 550;
  transition: background .2s ease, color .2s ease;
}

header nav a:hover,
footer nav a:hover {
  background: var(--panel);
  color: var(--text);
}

header nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle[hidden] {
  display: none !important;
}

.nav-toggle .icon-close {
  display: none;
}

.site-header.is-open .nav-toggle .icon-open {
  display: none;
}

.site-header.is-open .nav-toggle .icon-close {
  display: block;
}

@media (max-width: 760px) {
  .js .site-header .nav-toggle:not([hidden]) {
    display: inline-flex;
  }

  .js .site-header .nav {
    flex-wrap: wrap;
  }

  .js .site-header nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 6px;
  }

  .js .site-header.is-open nav {
    display: flex;
  }

  .js .site-header nav a {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 16px;
  }
}

/* ------------------------------------------------------------------ */
/* 4. Buttons                                                          */
/* ------------------------------------------------------------------ */

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  box-shadow: var(--shadow-sm);
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.button:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: none;
}

.secondary:hover {
  background: var(--panel);
  color: var(--accent-text);
  border-color: var(--accent);
  box-shadow: none;
}

/* ------------------------------------------------------------------ */
/* 5. Sections and cards                                               */
/* ------------------------------------------------------------------ */

section {
  padding: 56px 0;
  scroll-margin-top: 84px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 30px;
}

.section-head h2 {
  margin-top: 8px;
}

.section-head p {
  margin: 0;
  font-size: 17px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 18px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.card:hover,
.card:focus-within {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin: 10px 0 8px;
}

.card p {
  margin: 0 0 18px;
}

.card > a:last-child:not(.card-link):not(.button),
.card .card-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: auto;
  font-weight: 650;
  text-decoration: none;
}

.card > a:last-child:not(.card-link):not(.button):hover {
  text-decoration: underline;
}

/* Whole-card click target for cards that link somewhere. */
.card-linked .card-link::after,
.card-stretch::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.card-link {
  color: var(--text);
  text-decoration: none;
}

.card-link:hover {
  color: var(--accent-text);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .01em;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-text);
}

.card-icon .icon {
  width: 24px;
  height: 24px;
}

.card-icon + .tag {
  margin-bottom: 2px;
}

/* ------------------------------------------------------------------ */
/* 6. Homepage                                                         */
/* ------------------------------------------------------------------ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: start;
  gap: 44px;
  padding: 36px 0 8px;
}

.hero-headline {
  grid-column: 1 / -1;
  max-width: 760px;
  margin: 0 auto 6px;
  color: var(--text);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}

.hero-headline span {
  display: block;
  color: var(--accent-text);
}

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

.hero-col {
  min-width: 0;
}

.hero-label {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}

/* Free tools: one tile per finished tool (latest 4). */
.tool-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 12px;
}

.tool-tile {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.tool-tile:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  color: var(--text);
  transform: translateY(-1px);
}

.tool-tile .product-icon {
  width: 52px;
  height: 52px;
  margin: 0;
  border-radius: 13px;
}

.tool-tile-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
  line-height: 1.35;
}

.tool-tile-text strong {
  font-size: 16px;
  letter-spacing: -.01em;
}

.tool-tile-desc {
  color: var(--muted);
  font-size: 14px;
}

.tool-tile > .icon {
  margin-top: 4px;
  color: var(--accent-text);
}

.hero-col-tools .actions {
  margin-top: 16px;
}

.hero-col-tools .trust-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0 0;
}

/* Quick-access list beside the headline. */
.hero-products {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-product {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.hero-product:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  color: var(--text);
  transform: translateY(-1px);
}

.hero-product .product-icon {
  width: 52px;
  height: 52px;
  margin: 0;
  border-radius: 13px;
  font-size: 22px;
}

.hero-product-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.hero-product-text strong {
  font-size: 16px;
  letter-spacing: -.01em;
}

.hero-product-text span {
  color: var(--muted);
  font-size: 13px;
}

.hero-product > .icon {
  color: var(--accent-text);
}

.hero .actions {
  align-items: center;
  margin-top: 28px;
}

.button.ghost {
  min-height: 46px;
  padding-inline: 12px;
  border-color: transparent;
  background: transparent;
  color: var(--accent-text);
  box-shadow: none;
}

.button.ghost:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
  box-shadow: none;
  transform: none;
}

.products {
  padding-top: 40px;
}

.product-card {
  padding: 24px;
}

.product-card h3 {
  font-size: 22px;
  letter-spacing: -.02em;
}

.product-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 16px;
  object-fit: cover;
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15), var(--shadow-sm);
}

/* Flat colours per app; replaced automatically by a real icon file if present. */
.product-icon-mistri { background: #0f766e; }
.product-icon-paperso { background: #1e293b; }
.product-icon-dozora { background: #3730a3; }
.product-icon-gold-identifier { background: #b45309; }
.product-icon-tool { background: var(--accent); }
.product-icon-tool .icon { width: 26px; height: 26px; }

.group-label {
  margin: 34px 0 14px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.section-head + .group-label {
  margin-top: 0;
}

/* Free tool cards: one wide card per tool, switching to a row layout when there is room. */
.tool-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 18px;
}

.tool-card {
  display: block;
  container-type: inline-size;
}

.tool-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.tool-card-body .product-icon {
  margin: 0;
}

.tool-card-text {
  flex: 1;
  min-width: 0;
}

.tool-card-text h3 {
  margin: 8px 0 6px;
  font-size: 22px;
  letter-spacing: -.02em;
}

.tool-card-text p {
  margin: 0;
}

.tool-card .card-button {
  margin-top: 0;
  /* No background transition: avoids a brief white flash when the card's container query first resolves. */
  transition: transform .2s ease, box-shadow .2s ease;
}

@container (min-width: 640px) {
  .tool-card-body {
    flex-direction: row;
    align-items: center;
    gap: 22px;
  }

  .tool-card .card-button {
    width: auto;
    flex: none;
    padding-inline: 26px;
  }
}

.card-button {
  width: 100%;
  margin-top: auto;
  font-size: 14px;
}

/* Row of privacy points under the hero. */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.trust-strip li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}

.trust-strip .icon {
  color: var(--accent-text);
}

/* Featured tool + privacy promise layout. */
.tool-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
}

.tool-feature .card {
  padding: 30px;
}

.card-featured {
  background:
    radial-gradient(500px 220px at 100% 0%, rgba(37, 99, 235, .10), transparent 65%),
    var(--surface);
}

.card-featured h3 {
  font-size: 24px;
  letter-spacing: -.02em;
}

.mini-code {
  width: 100%;
  margin: 0 0 20px;
  padding: 14px 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--code-bg);
  color: var(--muted);
  font: 13px/1.7 var(--mono);
}

.mini-code b {
  color: var(--accent-text);
  font-weight: 600;
}

.panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-soft);
}

.panel p {
  max-width: 760px;
}

/* ------------------------------------------------------------------ */
/* 7. Page headers and breadcrumbs                                     */
/* ------------------------------------------------------------------ */

.page-head {
  max-width: 760px;
  padding: 24px 0 6px;
}

.page-head h1 {
  font-size: clamp(34px, 5vw, 52px);
}

.page-head p {
  font-size: 18px;
  margin: 0;
}

/* ------------------------------------------------------------------ */
/* 8. Footer                                                           */
/* ------------------------------------------------------------------ */

footer {
  background: var(--panel);
  border-top: 1px solid var(--line);
  margin-top: 56px;
  color: var(--muted);
  font-size: 14px;
}

footer a {
  display: inline-block;
  padding-block: 8px;
}

footer .shell {
  padding-top: 30px;
  padding-bottom: 30px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 28px;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.footer-brand .brand {
  font-size: 19px;
}

/* ------------------------------------------------------------------ */
/* 9. Blog articles and long-form text                                 */
/* ------------------------------------------------------------------ */

article {
  max-width: 740px;
  margin: 40px auto;
  overflow-wrap: break-word;
}

article h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
}

article h2 {
  font-size: 28px;
  margin-top: 44px;
}

article h3 {
  margin-top: 30px;
}

article p,
article li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

article li {
  margin-bottom: 6px;
}

article a {
  font-weight: 550;
}

article img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

article hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}

/* Developer code blocks */

article pre {
  overflow: auto;
  background: var(--code-bg);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

article code {
  font-family: var(--mono);
  overflow-wrap: anywhere;
}

article :not(pre) > code {
  background: var(--accent-soft);
  color: var(--accent-text);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: .92em;
}

article pre code {
  overflow-wrap: normal;
  background: transparent;
  color: inherit;
  padding: 0;
}

/* Comparison tables */

article table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  max-width: 100%;
  margin: 24px 0;
}

article th,
article td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
}

article th {
  background: var(--panel);
  color: var(--text);
}

article blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 12px 12px 0;
}

article blockquote p {
  margin: 0;
  color: var(--text);
}

/* ------------------------------------------------------------------ */
/* 10. Accessibility and motion                                        */
/* ------------------------------------------------------------------ */

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: var(--on-accent);
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .tool-feature {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .shell {
    padding: 16px;
  }

  .hero {
    padding-top: 20px;
  }

  .hero-col-tools .actions .button {
    width: 100%;
  }

  .hero-label {
    font-size: 22px;
  }

  section {
    padding: 40px 0;
  }

  .panel {
    padding: 24px 20px;
  }

  .card,
  .tool-feature .card {
    padding: 22px;
  }

  article {
    margin: 24px auto;
  }

  article p,
  article li {
    font-size: 16.5px;
  }

  header nav,
  footer nav {
    gap: 2px 4px;
  }
}

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

  * {
    transition: none !important;
  }

  .button:hover {
    transform: none;
  }
}


/* Free tools marquee: two rows scrolling in opposite directions. Pure CSS, no JS. */
.marquee {
  display: grid;
  gap: 16px;
  margin-top: 8px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-row {
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-left 45s linear infinite;
}

.marquee-row.rows-b .marquee-track {
  animation-name: marquee-right;
  animation-duration: 55s;
}

.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  animation-play-state: paused;
}

.marquee-set {
  display: flex;
  flex: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.marquee-set li {
  margin-right: 16px;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 280px;
  padding: 14px 20px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.marquee-item:hover,
.marquee-item:focus-visible {
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(37, 99, 235, .12);
}

.marquee-item .product-icon {
  margin: 0;
  flex: none;
}

.marquee-text {
  display: grid;
  gap: 2px;
  white-space: nowrap;
}

.marquee-text strong {
  font-size: 16px;
  letter-spacing: -.01em;
}

.marquee-text span {
  color: var(--muted);
  font-size: 13px;
}

@keyframes marquee-left {
  to { transform: translateX(-50%); }
}

@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
    overflow-x: auto;
  }
  .marquee-track {
    animation: none;
  }
  .marquee-set[aria-hidden="true"] {
    display: none;
  }
}
