/**
 * 5 Tier bento grid - 12-col asymmetric layout (no row-span)
 *
 * Layout (desktop >= 1024px):
 *   row 1: T1 (col-span-4) | T3 (col-span-8)  — T3 is hero (wider, same height)
 *   row 2: T2 (col-span-4) | T4 (col-span-4) | T5 (col-span-4)  — 3 equal cards
 *
 * Layout (tablet 768-1023px):
 *   row 1: T1 (col-span-6) | T2 (col-span-6)
 *   row 2: T3 (col-span-12)  — full width
 *   row 3: T4 (col-span-6) | T5 (col-span-6)
 *
 * Layout (mobile < 768px): single column
 *
 * Each card: SVG + tier number + name + description + price + CTA
 * Breathing glow 4s loop, hover translateY(-8px) scale(1.02)
 * Per-tier color tokens for glow/line/price
 *
 * Memory: img rules !important, transform/opacity only for animation.
 */

[data-blinds-tiers] {
  position: relative;
  padding: clamp(96px, 14vw, 192px) clamp(20px, 4vw, 64px);
  max-width: 1400px;
  margin: 0 auto;
}

.tiers-head {
  display: grid;
  gap: 16px;
  max-width: 800px;
  margin: 0 0 64px;
}
.tiers-head .eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-12);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--ink-lime);
}
.tiers-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-96);
  line-height: 0.96;
  letter-spacing: var(--ls-tight);
  color: var(--ink-fg);
  text-wrap: balance;
  margin: 0;
}
.tiers-head h2 .accent { color: var(--ink-lime); font-style: italic; }
.tiers-head p {
  font-family: var(--font-body);
  font-size: var(--fs-18);
  line-height: 1.5;
  color: var(--ink-mute);
  max-width: 60ch;
  margin: 0;
}

/* 12-col bento grid */
.tiers-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2vw, 28px);
  grid-auto-rows: minmax(360px, auto);
}

/* individual tier card */
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 3vw, 40px);
  background: var(--ink-surface);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-2xl);
  overflow: hidden;
  isolation: isolate;
  text-decoration: none !important;
  color: inherit;
  min-height: 360px;
  transition: transform var(--dur-base) var(--ease-spring),
              border-color var(--dur-base) var(--ease-out-expo),
              box-shadow var(--dur-base) var(--ease-out-expo);
}
.tier::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--tier-glow, var(--ink-lime-soft)) 0%, transparent 60%);
  opacity: 0.4;
  animation: tier-breathe var(--dur-pulse) var(--ease-in-out) infinite;
  pointer-events: none;
}
@keyframes tier-breathe {
  0%, 100% { opacity: 0.30; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.05); }
}
.tier:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--tier-line, var(--ink-lime-line));
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7),
              0 0 60px -10px var(--tier-glow, var(--ink-lime-soft));
}
.tier:hover .tier-svg {
  transform: translateY(-4px) scale(1.04) rotate(2deg);
}
.tier:hover .tier-cta .arrow {
  transform: translateX(4px);
}

/* tier number badge */
.tier-num {
  position: absolute;
  top: clamp(20px, 2.5vw, 32px);
  right: clamp(20px, 2.5vw, 32px);
  font-family: var(--font-body);
  font-size: var(--fs-12);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--ink-mute);
  z-index: var(--z-content);
}

/* tier SVG container */
.tier-svg {
  position: relative;
  z-index: var(--z-content);
  width: clamp(120px, 18vw, 200px);
  aspect-ratio: 1;
  margin: 0 auto;
  transition: transform var(--dur-base) var(--ease-spring);
  will-change: transform;
}
.tier-svg svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

/* tier meta (bottom) */
.tier-meta {
  position: relative;
  z-index: var(--z-content);
  display: grid;
  gap: 8px;
}
.tier-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-24);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-fg);
  margin: 0;
}
.tier-desc {
  font-family: var(--font-body);
  font-size: var(--fs-14);
  line-height: 1.5;
  color: var(--ink-mute);
  margin: 0;
}
.tier-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
}
.tier-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-48);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--tier-color, var(--ink-lime));
}
.tier-currency {
  font-family: var(--font-body);
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
}
.tier-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--tier-color, var(--ink-lime));
  width: max-content;
}
.tier-cta .arrow {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-spring);
}

/* per-tier color tokens */
.tier-1 { --tier-glow: var(--ink-lime-soft); --tier-line: var(--ink-lime-line); --tier-color: var(--ink-mute); }
.tier-2 { --tier-glow: var(--ink-lime-soft); --tier-line: var(--ink-lime-line); --tier-color: var(--ink-lime); }
.tier-3 { --tier-glow: var(--ink-violet-soft); --tier-line: var(--ink-violet-line); --tier-color: var(--ink-lime); }
.tier-4 { --tier-glow: rgba(255,214,0,0.18); --tier-line: rgba(255,214,0,0.4); --tier-color: var(--ink-amber); }
.tier-5 {
  --tier-glow: linear-gradient(135deg, rgba(255,59,124,0.18), rgba(255,214,0,0.18), rgba(123,44,191,0.18));
  --tier-line: rgba(255,214,0,0.5);
  --tier-color: var(--ink-amber);
  background: linear-gradient(180deg, var(--ink-surface) 0%, var(--ink-surface-2) 100%);
}

/* ============================================ */
/* 12-COL ASYMMETRIC BENTO (no row-span)        */
/* ============================================ */

/* Desktop >= 1024px: 4-8 / 4-4-4 */
@media (min-width: 1024px) {
  .tier-1 { grid-column: span 4; }   /* row 1 left */
  .tier-3 { grid-column: span 8; }   /* row 1 right (hero) */
  .tier-2 { grid-column: span 4; }   /* row 2 */
  .tier-4 { grid-column: span 4; }   /* row 2 */
  .tier-5 { grid-column: span 4; }   /* row 2 */
  /* T3 SVG larger since it has more space */
  .tier-3 .tier-svg { width: clamp(180px, 22vw, 280px); }
}

/* Tablet 768-1023px: 6-6 / 12 / 6-6 */
@media (min-width: 768px) and (max-width: 1023px) {
  .tier-1, .tier-2 { grid-column: span 6; }
  .tier-3 { grid-column: span 12; }
  .tier-3 .tier-svg { width: clamp(160px, 24vw, 240px); }
  .tier-4, .tier-5 { grid-column: span 6; }
}

/* SVG animation classes (pulse, float) */
.tier-pulse {
  animation: tier-pulse 3s var(--ease-in-out) infinite;
  transform-origin: center;
}
.tier-pulse-slow {
  animation: tier-pulse-slow 5s var(--ease-in-out) infinite;
  transform-origin: center;
}
.tier-float-a { animation: tier-float-a 4s var(--ease-in-out) infinite; }
.tier-float-b { animation: tier-float-b 5s var(--ease-in-out) infinite; }
.tier-float-c { animation: tier-float-c 6s var(--ease-in-out) infinite; }
.tier-rays { animation: tier-rays 8s linear infinite; transform-origin: center; transform-box: fill-box; }

@keyframes tier-pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}
@keyframes tier-pulse-slow {
  0%, 100% { opacity: 0.5; transform: scale(0.95); }
  50% { opacity: 0.9; transform: scale(1.05); }
}
@keyframes tier-float-a {
  0%, 100% { transform: translate(0, 0); opacity: 0.4; }
  50% { transform: translate(2px, -4px); opacity: 0.9; }
}
@keyframes tier-float-b {
  0%, 100% { transform: translate(0, 0); opacity: 0.5; }
  50% { transform: translate(-3px, -5px); opacity: 1; }
}
@keyframes tier-float-c {
  0%, 100% { transform: translate(0, 0); opacity: 0.45; }
  50% { transform: translate(4px, -3px); opacity: 0.85; }
}
@keyframes tier-rays {
  to { transform: rotate(360deg); }
}
