/* Pro storefront — extends tokens.css. */

/* ---------- Test-mode banner ---------- */

.test-banner {
  display: none;
  background: color-mix(in oklch, var(--danger) 14%, var(--bg) 86%);
  border-bottom: 1px solid color-mix(in oklch, var(--danger) 38%, var(--border));
  color: var(--fg);
  font-size: 13.5px;
}
.test-banner[data-visible="true"] { display: block; }
.test-banner .shell {
  display: flex; align-items: center; gap: var(--s-3);
  padding-block: 10px;
}
.test-banner strong { font-weight: 600; }
.test-banner button {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  padding: 4px 8px;
}
.test-banner button:hover { color: var(--fg); }

/* ---------- Pro hero ---------- */

.pro-hero {
  padding-block: var(--s-10) var(--s-9);
}
.pro-hero .grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--s-9);
  align-items: end;
}
@media (max-width: 900px) { .pro-hero .grid { grid-template-columns: 1fr; } }
.pro-hero h1 {
  font-size: clamp(40px, 5vw, 76px);
  letter-spacing: -0.024em;
  font-weight: 380;
  font-variation-settings: "opsz" 144;
  line-height: 1;
}
.pro-hero h1 em {
  font-style: italic;
  color: var(--accent-strong);
  font-weight: 460;
}
.pro-hero .lead {
  font-size: var(--fs-body-lg);
  color: var(--fg-soft);
  max-width: 52ch;
}
.pro-hero .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: var(--s-5);
}
.pro-hero .back:hover { color: var(--fg); }

/* ---------- Featured Pro card ---------- */

.pro-featured {
  margin-top: var(--s-8);
  background: var(--surface-ink);
  color: var(--on-ink);
  border-radius: var(--r-4);
  padding: var(--s-9);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--s-9);
  align-items: end;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.pro-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 90% -10%,
      color-mix(in oklch, var(--accent-strong) 20%, transparent),
      transparent 70%);
  pointer-events: none;
  z-index: -1;
}
@media (max-width: 820px) {
  .pro-featured { grid-template-columns: 1fr; gap: var(--s-7); padding: var(--s-7); }
}
.pro-featured .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crit);
}
.pro-featured h3 {
  font-size: clamp(28px, 3.2vw, 48px);
  letter-spacing: -0.02em;
  font-weight: 420;
  font-variation-settings: "opsz" 72;
  margin-top: var(--s-3);
  color: var(--on-ink);
}
.pro-featured h3 em { font-style: italic; color: var(--crit); font-weight: 460; }
.pro-featured p {
  color: var(--on-ink-soft);
  margin-top: var(--s-4);
  max-width: 56ch;
  font-size: var(--fs-body-lg);
}
.pro-featured ul.bullets {
  list-style: none;
  padding: 0;
  margin: var(--s-6) 0 0;
  display: grid;
  gap: var(--s-3);
}
.pro-featured ul.bullets li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: var(--s-3);
  font-size: 14.5px;
  color: var(--on-ink);
  align-items: baseline;
}
.pro-featured ul.bullets li::before {
  content: "+";
  font-family: var(--font-display);
  color: var(--crit);
  font-size: 18px;
  line-height: 1;
}

.pro-featured .price-block {
  background: color-mix(in oklch, var(--surface-ink) 86%, var(--fg) 14%);
  border: 1px solid var(--border-ink);
  border-radius: var(--r-3);
  padding: var(--s-6);
  display: grid;
  gap: var(--s-4);
}
.pro-featured .price-block .price {
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 420;
  color: var(--on-ink);
}
.pro-featured .price-block .price small {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-ink-soft);
  font-weight: 400;
  margin-top: var(--s-2);
}
.pro-featured .price-block .also {
  font-size: 12.5px;
  color: var(--on-ink-soft);
  line-height: 1.5;
}

/* ---------- Section helpers ---------- */

.section-head .tail {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-head .tail strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--fg);
  display: block;
}

/* ---------- Theme cards grid (irregular 2-3) ---------- */

.theme-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-4);
}
@media (max-width: 980px) { .theme-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 620px) { .theme-grid { grid-template-columns: 1fr; } }

.theme-card {
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  overflow: hidden;
  display: grid;
  grid-template-rows: 180px 1fr;
  transition: transform var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out);
}
.theme-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
@media (min-width: 981px) {
  /* 5 cards in a 6-col grid: two rows where the first card spans 3 cols, the rest 2 cols x3 / 3 cols x2.
     We use a deterministic asymmetric pattern: 3 / 3 / 2 / 2 / 2 for visual rhythm. */
  .theme-card:nth-child(1) { grid-column: span 3; }
  .theme-card:nth-child(2) { grid-column: span 3; }
  .theme-card:nth-child(3),
  .theme-card:nth-child(4),
  .theme-card:nth-child(5) { grid-column: span 2; }
}

.theme-art {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.theme-art .palette {
  position: absolute; inset: 0;
  display: grid;
}
.theme-art .palette span {
  background: var(--c);
}
.theme-art .palette.cols-3 { grid-template-columns: 1.6fr 1fr 1.2fr; }
.theme-art .palette.cols-5 { grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr; }
.theme-art .overlay {
  position: absolute;
  left: var(--s-5);
  bottom: var(--s-5);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  font-weight: 500;
  color: var(--ink, oklch(15% 0.02 320));
  letter-spacing: -0.01em;
  z-index: 2;
  font-variation-settings: "opsz" 72;
  max-width: 70%;
}
.theme-art .runes {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--ink, oklch(15% 0.02 320)) 60%, transparent);
}

.theme-body {
  padding: var(--s-5);
  display: grid;
  gap: var(--s-3);
  align-content: space-between;
}
.theme-body h4 {
  font-size: 19px;
  font-weight: 500;
  font-style: italic;
  font-variation-settings: "opsz" 36;
  color: var(--fg);
}
.theme-body p {
  font-size: 14px;
  color: var(--fg-soft);
  line-height: 1.55;
}
.theme-body .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
}
.theme-body .price {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--fg);
}
.theme-body .price small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* ---------- Dice grid ---------- */

.dice-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-4);
}
@media (max-width: 980px) { .dice-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 620px) { .dice-grid { grid-template-columns: 1fr; } }

.dice-card {
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  padding: var(--s-6);
  display: grid;
  gap: var(--s-4);
  transition: transform var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out);
}
.dice-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }

@media (min-width: 981px) {
  /* 5 dice cards: 2 / 2 / 2 then 3 / 3 — opposite rhythm to themes */
  .dice-card:nth-child(1),
  .dice-card:nth-child(2),
  .dice-card:nth-child(3) { grid-column: span 2; }
  .dice-card:nth-child(4),
  .dice-card:nth-child(5) { grid-column: span 3; }
}

.dice-card .scene {
  background:
    radial-gradient(80% 60% at 50% 100%,
      color-mix(in oklch, var(--fg) 8%, transparent),
      transparent 70%),
    var(--surface-sunk);
  border-radius: var(--r-2);
  padding: var(--s-5) var(--s-4) var(--s-4);
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 14px;
  min-height: 140px;
}
.dice-card h4 {
  font-size: 19px;
  font-weight: 500;
  font-style: italic;
  font-variation-settings: "opsz" 36;
  color: var(--fg);
}
.dice-card p {
  font-size: 14px;
  color: var(--fg-soft);
  line-height: 1.5;
}
.dice-card .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
}
.dice-card .price {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--fg);
}
.dice-card .price small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* Footer (.legal-footer) унифицирован в landing.css — используется обеими
   страницами; здесь больше не переопределяется (kenku-l5xs). */

/* ---------- Mini-die for shop cards (reuse) ---------- */
.mini-die.shop { width: 56px; height: 64px; }
.mini-die.shop.large { width: 78px; height: 86px; }
