/*
  Shared stylesheet for all landing pages.
  Cached once by the browser and reused across lp1.html, lp2.html, etc.
  Palette is exposed as CSS custom properties so a page can override
  --color-primary / --color-primary-dark locally if a future LP needs
  a different accent while keeping the same layout and components.
*/

:root {
  --color-primary: #00aff0;
  --color-primary-dark: #018cf1;
  --color-ink: #27272b;
  --color-white: #ffffff;
  --color-muted: #8a96a3;

  --color-bg: var(--color-white);
  --color-bg-alt: #f5fafd;
  --color-border: #e7ebef;
  --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 6px 20px rgba(39, 39, 43, 0.08);
  --shadow-card-hover: 0 14px 32px rgba(1, 140, 241, 0.2);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-primary);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(1, 140, 241, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(1, 140, 241, 0.38);
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 40px;
  background: radial-gradient(circle at 15% 0%, rgba(0, 175, 240, 0.12), transparent 55%),
    radial-gradient(circle at 85% 10%, rgba(1, 140, 241, 0.1), transparent 50%);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: rgba(0, 175, 240, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.hero h1 .accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lede {
  max-width: 620px;
  margin: 0 auto 28px;
  color: var(--color-muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: 0 10px 26px rgba(1, 140, 241, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(1, 140, 241, 0.4);
}

.btn-ghost {
  background: var(--color-white);
  color: var(--color-ink);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.trust-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Stats strip ---------- */
.stats-strip {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 28px 0;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-ink);
}

.stat span {
  color: var(--color-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Catalog section ---------- */
.catalog {
  padding: 48px 0 72px;
}

.catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.catalog-head h1,
.catalog-head h2 {
  font-size: 1.6rem;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

/* Variant where the grid is the first thing on the page (lp2): give the
   heading a bit more presence and room to breathe since there is no hero. */
.catalog-top {
  padding-top: 40px;
}

.catalog-top .catalog-head h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
}

.catalog-head p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.catalog-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.catalog-controls input[type="search"],
.catalog-controls select {
  font: inherit;
  font-size: 0.92rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-ink);
}

.catalog-controls input[type="search"] {
  min-width: 220px;
}

.catalog-controls input[type="search"]:focus,
.catalog-controls select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 175, 240, 0.18);
}

/* ---------- Grid & cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* ---------- Featured "Model of the Week" card ---------- */
.card--featured {
  position: relative;
  background: linear-gradient(160deg, #fff6df 0%, #ffe6a6 45%, #f3c866 100%);
  border: 1px solid #e0b450;
  box-shadow: 0 14px 34px rgba(201, 151, 46, 0.35);
}

/* Only widen the featured card once the grid has room for 2+ columns —
   spanning on a single-column mobile layout would force horizontal scroll. */
@media (min-width: 640px) {
  .card--featured {
    grid-column: span 2;
  }
}

.card--featured:hover {
  box-shadow: 0 18px 42px rgba(201, 151, 46, 0.45);
}

.card--featured .card-cta {
  background: rgba(255, 255, 255, 0.65);
  color: #7a5412;
}

.card--featured .card-cta:hover {
  background: var(--gradient-primary);
  color: var(--color-white);
}

.card--featured .card-stats {
  color: #8a6a1f;
}

/* Diagonal shine that sweeps across the whole card once every 10s */
.card--featured::after {
  content: "";
  position: absolute;
  inset: 0;
  left: -160%;
  width: 55%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-20deg);
  animation: glare-sweep 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes glare-sweep {
  0% {
    left: -160%;
  }
  12% {
    left: 160%;
  }
  100% {
    left: 160%;
  }
}

.card-badge--featured {
  background: linear-gradient(135deg, #f6d273, #c9972e);
  color: #3a2800;
  box-shadow: 0 4px 10px rgba(122, 84, 18, 0.4);
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--color-bg-alt);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .card-media img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--gradient-primary);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(1, 140, 241, 0.3);
}

.price-chip {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}

.price-chip--free {
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary-dark);
  box-shadow: 0 4px 10px rgba(39, 39, 43, 0.15);
}

.price-chip--paid {
  background: var(--color-ink);
  color: var(--color-white);
  box-shadow: 0 4px 10px rgba(39, 39, 43, 0.35);
}

.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-stats {
  display: flex;
  gap: 14px;
  color: var(--color-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.card-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-stat-value {
  font-weight: 800;
}

.card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}

.card-cta:hover {
  background: var(--gradient-primary);
  color: var(--color-white);
}

/* ---------- Skeleton loading state ---------- */
.skeleton .card-media,
.skeleton-line {
  position: relative;
  overflow: hidden;
  background: #e9eef2;
}

.skeleton .card-media::after,
.skeleton-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: shimmer 1.3s infinite;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.skeleton-line.w-60 {
  width: 60%;
}

.skeleton-line.w-40 {
  width: 40%;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* ---------- Empty / error states ---------- */
.state-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  color: var(--color-muted);
}

.state-message strong {
  display: block;
  color: var(--color-ink);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.state-message button {
  margin-top: 14px;
  font: inherit;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  background: var(--gradient-primary);
  color: var(--color-white);
  cursor: pointer;
}

/* ---------- Freshness line ---------- */
.freshness {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-muted);
}

.freshness [data-fresh-date] {
  color: var(--color-ink);
  font-weight: 700;
}

/* ---------- FAQ accordion ---------- */
.faq {
  padding: 48px 0 72px;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
}

.faq-head {
  text-align: center;
  margin-bottom: 28px;
}

.faq-head h2 {
  font-size: 1.6rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.faq-head p {
  margin: 0;
  color: var(--color-muted);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0 20px;
  box-shadow: var(--shadow-card);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
  font-size: 1.1rem;
  font-weight: 800;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin: 0 0 18px;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-ink);
  color: var(--color-muted);
  padding: 40px 0 28px;
  font-size: 0.88rem;
}

.site-footer .footer-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.site-footer .brand {
  background: none;
  -webkit-text-fill-color: unset;
  color: var(--color-white);
}

.site-footer a:hover {
  color: var(--color-primary);
}

.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  line-height: 1.6;
}

/* ---------- Age gate modal ---------- */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(39, 39, 43, 0.85);
  backdrop-filter: blur(4px);
}

.age-gate[hidden] {
  display: none;
}

.age-gate-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.age-gate-card h2 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.age-gate-card p {
  color: var(--color-muted);
  font-size: 0.92rem;
  margin: 0 0 22px;
}

.age-gate-actions {
  display: flex;
  gap: 12px;
}

.age-gate-actions .btn {
  flex: 1;
  justify-content: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .site-header .header-cta {
    display: none;
  }

  .stats-strip {
    gap: 28px;
  }

  .catalog-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .catalog-controls input[type="search"] {
    flex: 1;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
