/* /led-control/ — Kreative Arena LED product page.
   Uses the site's theme-creative tokens (--tc-*). Rule from styles.css:
   never white text on orange; on orange use #06101F. */

/* ---------- Hero LED ribbon (5200 x 200 board, 26:1) ---------- */
.ledc-strip {
  position: relative;
  margin: var(--space-lg) 0 var(--space-md);
  width: 100%;
  aspect-ratio: 26 / 1;
  min-height: 46px;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 50px -10px rgba(255, 92, 0, 0.35);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: clamp(11px, 2.3vw, 30px);
  line-height: 1;
  color: #fff;
}
/* LED pixel grid look */
.ledc-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.45) 56%);
  background-size: 4px 4px;
}
.ledc-scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  opacity: 0;
  transition: opacity 500ms ease;
}
.ledc-scene.is-on { opacity: 1; }
.ledc-team { height: 100%; display: flex; align-items: center; justify-content: center; flex: 0 0 34%; }
.ledc-team--home { background: #B91C1C; }
.ledc-team--away { background: #1D4ED8; }
.ledc-num { flex: 0 0 8%; text-align: center; font-size: 1.35em; }
.ledc-clock { flex: 0 0 16%; text-align: center; display: flex; flex-direction: column; gap: 0.15em; }
.ledc-clock small { font-size: 0.42em; color: #FACC15; letter-spacing: 0.1em; }
.ledc-scene--goal { background: repeating-linear-gradient(-45deg, #B91C1C 0 22px, #DC2626 22px 44px); justify-content: flex-start; }
.ledc-goal-text { white-space: nowrap; padding-left: 100%; }
.ledc-scene--goal.is-on .ledc-goal-text { animation: ledc-marquee 7s linear infinite; }
@keyframes ledc-marquee { to { transform: translateX(-100%); } }
.ledc-sponsor {
  padding: 0.35em 0.8em;
  border-radius: 4px;
  background: #FACC15;
  color: #06101F;
  font-size: 0.62em;
}
.ledc-sponsor--alt { background: #16A34A; color: #fff; }
.ledc-scene--pp { background: linear-gradient(90deg, #06101F, #0B1E3D 50%, #06101F); }
.ledc-pp-clock { color: #FF8A3D; font-size: 1.2em; }

.ledc-hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

@media (prefers-reduced-motion: reduce) {
  .ledc-scene { transition: none; }
  .ledc-scene--goal.is-on .ledc-goal-text { animation: none; padding-left: 0; }
}

/* ---------- Features ---------- */
.ledc-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}
.ledc-feature {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--tc-card, #0B1E3D);
  border: 1px solid var(--tc-border, rgba(255, 255, 255, 0.1));
}
.ledc-feature h3 { font-size: 19px; font-weight: 700; margin-bottom: var(--space-xs); color: var(--tc-text, #F3F6FC); }
.ledc-feature h3::before {
  content: "";
  display: block;
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-accent);
  margin-bottom: var(--space-sm);
}
.ledc-feature p { color: var(--tc-muted, #B7C1D4); line-height: 1.5; font-size: 15.5px; }
@media (max-width: 900px) { .ledc-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .ledc-features { grid-template-columns: 1fr; } }

/* ---------- Two-column layouts ---------- */
.ledc-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
}
.ledc-split--form { align-items: start; }
@media (max-width: 900px) { .ledc-split { grid-template-columns: 1fr; gap: var(--space-lg); } }

.ledc-steps { margin-top: var(--space-md); padding-left: 1.3em; display: grid; gap: var(--space-sm); }
.ledc-steps li { line-height: 1.5; color: var(--tc-muted, #B7C1D4); }
.ledc-steps li strong { color: var(--tc-text, #F3F6FC); }
.ledc-steps a { text-decoration: underline; }

/* Control panel mock (HTML, invented teams) */
.ledc-phone {
  justify-self: center;
  width: min(100%, 360px);
  padding: 12px;
  border-radius: 44px;
  background: #1a1d24;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.ledc-phone-screen {
  border-radius: 34px;
  background: #111318;
  padding: 26px 14px 18px;
  display: grid;
  gap: 12px;
  font-size: 13px;
  color: #E8EAEE;
}
.ledc-onair { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #F87171; font-size: 12px; }
.ledc-onair span { width: 8px; height: 8px; border-radius: 50%; background: #F87171; }
.ledc-score { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 8px; }
.ledc-goalbtn {
  border: 0; border-radius: 12px; padding: 14px 4px; color: #fff; font: inherit; font-weight: 800; font-size: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: default;
}
.ledc-goalbtn small { font-size: 9.5px; letter-spacing: 0.08em; opacity: 0.9; }
.ledc-goalbtn--home { background: #B91C1C; }
.ledc-goalbtn--away { background: #1D4ED8; }
.ledc-mid { border-radius: 12px; background: #1b1e26; border: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; }
.ledc-mid small { color: #FACC15; font-weight: 700; font-size: 10px; }
.ledc-mid b { font-size: 15px; white-space: nowrap; }
.ledc-mid span { font-size: 11px; padding: 3px 12px; border-radius: 8px; background: #2a2e38; }
.ledc-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ledc-modes span, .ledc-tabs span {
  border-radius: 10px; background: #1b1e26; border: 1px solid rgba(255,255,255,0.07);
  text-align: center; padding: 9px 4px; font-weight: 700; font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase;
}
.ledc-modes span.is-on, .ledc-tabs span.is-on { background: #F1F2F4; color: #111318; }
.ledc-tabs { display: flex; gap: 6px; overflow: hidden; }
.ledc-tabs span { border-radius: 999px; padding: 8px 12px; flex: none; }
.ledc-panel { border-radius: 14px; background: #1b1e26; border: 1px solid rgba(255,255,255,0.07); padding: 12px; display: grid; gap: 8px; }
.ledc-panel > p { font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 12px; }
.ledc-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; font-size: 12px; }
.ledc-row b { font-size: 18px; }
.ledc-row i { font-style: normal; font-weight: 700; padding: 7px 10px; border-radius: 9px; background: #FF6A2B; color: #06101F; }

/* ---------- Install / download ---------- */
.ledc-req { margin-top: var(--space-md); display: grid; gap: var(--space-xs); padding-left: 1.2em; list-style: disc; color: var(--tc-muted, #B7C1D4); }
.ledc-card {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--tc-card, #0B1E3D);
  border: 1px solid var(--tc-border, rgba(255, 255, 255, 0.1));
}
.ledc-consent { margin: var(--space-xs) 0 var(--space-md); color: var(--tc-muted, #B7C1D4); }
.ledc-turnstile { min-height: 65px; margin-bottom: var(--space-sm); }
.ledc-error { color: #FF8A80; font-size: 15px; margin-bottom: var(--space-sm); }
.ledc-submit { width: 100%; }
.ledc-submit[disabled] { opacity: 0.6; cursor: wait; }
.ledc-done h3 { font-size: 24px; font-weight: 700; margin-bottom: var(--space-md); color: var(--tc-text, #F3F6FC); }
.ledc-done .btn { white-space: normal; text-align: center; }
.ledc-note { margin-top: var(--space-md); color: var(--tc-muted, #B7C1D4); font-size: 15px; }

/* form fields stay inside the card */
.ledc-form .quote-field { min-width: 0; }
.ledc-form .quote-field input { width: 100%; max-width: 100%; box-sizing: border-box; min-width: 0; }
.ledc-form .quote-field-grid { margin-bottom: var(--space-sm); }

/* phone mock: score readable */
.ledc-mid b { font-size: 17px; letter-spacing: 0.02em; }

@media (max-width: 599px) {
  /* a 26:1 board is too thin on a phone: show it taller, cropped like a zoomed view */
  .ledc-strip { aspect-ratio: 9 / 1; font-size: 13px; }
  .ledc-team { flex-basis: 32%; font-size: 0.85em; text-align: center; padding: 0 4px; }
  .ledc-card { padding: var(--space-md); }
  .ledc-phone { width: min(100%, 330px); }
}

.ledc-hero-note { margin-top: var(--space-sm); color: var(--tc-muted, #B7C1D4); font-size: 15px; }
.ledc-skip { margin-top: var(--space-sm); text-align: center; color: var(--tc-muted, #B7C1D4); font-size: 15px; }
.ledc-skip a { color: var(--tc-text, #F3F6FC); text-decoration: underline; font-weight: 600; }

/* ---------- Real captures ---------- */
.ledc-boards { display: grid; gap: var(--space-md); margin-top: var(--space-xl); }
.ledc-board { margin: 0; }
.ledc-board img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 12px 30px -12px rgba(0,0,0,0.6); }
.ledc-board figcaption { margin-top: 8px; font-size: 14px; color: var(--tc-muted, #B7C1D4); }
.ledc-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); margin-top: var(--space-xl); }
.ledc-shotcard { margin: 0; }
.ledc-shotcard a { display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--tc-border, rgba(255,255,255,0.1)); box-shadow: var(--shadow-lg); transition: transform var(--transition-fast), border-color var(--transition-fast); }
.ledc-shotcard a:hover { transform: translateY(-4px); border-color: rgba(255, 92, 0, 0.5); }
.ledc-shotcard img { display: block; width: 100%; height: auto; }
.ledc-shotcard figcaption { margin-top: 12px; color: var(--tc-muted, #B7C1D4); font-size: 15px; line-height: 1.45; }
.ledc-shotcard figcaption strong { display: block; color: var(--tc-text, #F3F6FC); font-size: 17px; margin-bottom: 2px; }
.ledc-gallery-cta { margin-top: var(--space-xl); text-align: center; }
.ledc-phoneshot { justify-self: center; margin: 0; width: min(100%, 300px); padding: 10px; border-radius: 42px; background: #1a1d24; box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,0.08); }
.ledc-phoneshot img { display: block; width: 100%; height: auto; border-radius: 32px; }
@media (max-width: 760px) { .ledc-gallery { grid-template-columns: 1fr; } }

/* ==========================================================================
   Feature cards with the real control screens (bento grid)
   ========================================================================== */
.ledc-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}
.ledc-fcard {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, #0F2446 0%, #0A1830 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  isolation: isolate;
}
.ledc-fcard::after { /* orange glow that wakes up on hover */
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(255, 92, 0, 0.35), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: -1;
  pointer-events: none;
}
.ledc-fcard:hover { transform: translateY(-6px); border-color: rgba(255, 138, 61, 0.45); box-shadow: 0 40px 70px -30px rgba(255, 92, 0, 0.35); }
.ledc-fcard:hover::after { opacity: 1; }

.ledc-fcard-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0d0f14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ledc-fcard-media::after { /* soft fade into the card */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(10, 24, 48, 0) 0%, rgba(10, 24, 48, 0.85) 100%);
  pointer-events: none;
}
.ledc-fcard-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.ledc-fcard:hover .ledc-fcard-media img { transform: scale(1.04); }

.ledc-fcard-body { padding: var(--space-md) var(--space-md) 28px; display: flex; flex-direction: column; gap: 8px; }
.ledc-fcard-num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FF8A3D;
}
.ledc-fcard h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; color: var(--tc-text, #F3F6FC); }
.ledc-fcard p { color: var(--tc-muted, #B7C1D4); font-size: 15.5px; line-height: 1.5; }

/* the first card: full width, text beside the screen */
.ledc-fcard--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr); align-items: center; }
.ledc-fcard--wide .ledc-fcard-media { order: 2; aspect-ratio: 1600 / 402; border-bottom: 0; border-left: 1px solid rgba(255, 255, 255, 0.06); }
.ledc-fcard--wide .ledc-fcard-media::after { display: none; }
.ledc-fcard--wide .ledc-fcard-body { padding: var(--space-lg); }
.ledc-fcard--wide h3 { font-size: clamp(24px, 2.4vw, 32px); }

.ledc-fcard--span2 { grid-column: span 2; }
.ledc-fcard--span2 .ledc-fcard-media { aspect-ratio: 2.35 / 1; }

/* call-to-action card */
.ledc-fcard--cta {
  justify-content: center;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 92, 0, 0.38) 0%, rgba(255, 92, 0, 0) 55%),
    linear-gradient(180deg, #0F2446 0%, #0A1830 100%);
  border-color: rgba(255, 138, 61, 0.35);
}
.ledc-fcard--cta .ledc-fcard-body { padding: var(--space-lg); gap: 12px; align-items: flex-start; }
.ledc-fcard--cta h3 { font-size: clamp(26px, 2.6vw, 36px); }
.ledc-fcard--cta .btn { margin-top: 8px; }

@media (max-width: 1000px) {
  .ledc-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledc-fcard--wide { grid-template-columns: 1fr; }
  .ledc-fcard--wide .ledc-fcard-media { order: 0; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .ledc-fcard--wide .ledc-fcard-body { padding: var(--space-md) var(--space-md) 28px; }
}
@media (max-width: 680px) {
  .ledc-bento { grid-template-columns: 1fr; }
  .ledc-fcard--span2 { grid-column: auto; }
  .ledc-fcard--span2 .ledc-fcard-media { aspect-ratio: 16 / 10; }
}

/* ==========================================================================
   iPad in perspective ("How it works")
   ========================================================================== */
.ledc-ipad-stage {
  position: relative;
  perspective: 1800px;
  display: flex;
  justify-content: center;
  padding: var(--space-lg) 0;
}
.ledc-ipad-stage::before { /* glow behind the tablet */
  content: "";
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(closest-side, rgba(255, 92, 0, 0.32), rgba(29, 78, 216, 0.18) 60%, transparent);
  filter: blur(30px);
  z-index: 0;
}
.ledc-ipad {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  padding: 14px;
  border-radius: 36px;
  background: linear-gradient(145deg, #3a3f4a 0%, #16181d 45%, #0b0c10 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14),
    0 0 0 1px #000,
    -50px 70px 90px -30px rgba(0, 0, 0, 0.8);
  transform: rotateY(-24deg) rotateX(12deg) rotateZ(3deg);
  transform-style: preserve-3d;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.ledc-ipad::before { /* camera */
  content: "";
  position: absolute;
  top: 50%;
  left: 6px;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: #2a2e36;
}
.ledc-ipad::after { /* glass reflection */
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 38%);
  pointer-events: none;
}
.ledc-ipad img { display: block; width: 100%; height: auto; border-radius: 24px; }
.ledc-ipad-stage:hover .ledc-ipad { transform: rotateY(-12deg) rotateX(6deg) rotateZ(1deg); }
@media (max-width: 900px) { .ledc-ipad { transform: rotateY(-14deg) rotateX(8deg) rotateZ(2deg); } }
@media (prefers-reduced-motion: reduce) { .ledc-ipad, .ledc-fcard, .ledc-fcard-media img { transition: none; } }
