/*
 * Ignition Events AI landing page (/public/ignition-events-ai).
 * Everything is scoped to .ie-page / ie-* classes because application.css pulls in this directory via require_tree.
 */

.ie-page {
  --ie-orange: #ff6414;
  --ie-orange-600: #e8540a;
  --ie-orange-soft: #ffe9dc;
  --ie-ink: #020c1f;
  --ie-navy: #0b1a33;
  --ie-navy-2: #0e2140;
  --ie-text: #0b1a33;
  --ie-muted: #5b6b82;
  --ie-muted-dark: #8d9bb0;
  --ie-mist: #edf3fb;
  --ie-slate: #e1e9f3;
  --ie-line: #dbe4f0;
  --ie-radius: 18px;

  margin: 0;
  background: var(--ie-ink);
  color: var(--ie-text);
  font-family: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.ie-page :where(*, *::before, *::after) { box-sizing: border-box; }
/* :where() keeps the reset at single-class specificity so component classes win. */
.ie-page :where(h1, h2, h3, h4, p) { margin: 0; }
.ie-page :where(a) { color: inherit; text-decoration: none; }
.ie-page :where(img, svg) { display: block; }
html:has(.ie-page) { scroll-behavior: smooth; }
.ie-page :where(section[id]) { scroll-margin-top: 90px; }

.ie-container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.ie-center { display: flex; justify-content: center; margin-top: 56px; }
.ie-text-orange { color: var(--ie-orange); }
.ie-muted { color: var(--ie-muted); font-size: 17px; max-width: 560px; margin-top: 18px; }

/* ───────── Buttons ───────── */
.ie-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid transparent; border-radius: 999px;
  padding: 14px 28px; font: inherit; font-weight: 600; font-size: 16px; line-height: 1;
  cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.ie-btn:hover { transform: translateY(-1px); }
.ie-btn:focus-visible { outline: 3px solid rgba(255, 100, 20, .45); outline-offset: 3px; }
.ie-btn--lg { padding: 20px 36px; font-size: 17px; }
.ie-btn--primary { background: var(--ie-orange); color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 100, 20, .7); }
.ie-btn--primary:hover { background: var(--ie-orange-600); }
.ie-btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.ie-btn--ghost:hover { background: rgba(255, 255, 255, .08); }
.ie-btn--dark { background: var(--ie-navy); color: #fff; }
.ie-btn--dark:hover { background: var(--ie-ink); }
.ie-btn--outline-dark { border-color: rgba(11, 26, 51, .55); color: var(--ie-navy); }
.ie-btn--outline-dark:hover { background: rgba(255, 255, 255, .15); }

/* ───────── Eyebrow pills ───────── */
.ie-eyebrow {
  display: inline-block; padding: 7px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: var(--ie-orange-soft); color: var(--ie-orange-600); border: 1px solid #ffd6c0;
}
.ie-eyebrow--dark { background: rgba(255, 100, 20, .12); color: var(--ie-orange); border-color: rgba(255, 100, 20, .25); }
.ie-eyebrow--muted { background: #dde5f0; color: var(--ie-navy); border-color: #c9d4e3; }
.ie-eyebrow--glass { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.ie-eyebrow--onorange { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); }

/* ───────── Section shells ───────── */
.ie-section { position: relative; padding: 120px 0; overflow: hidden; }
.ie-section--tight-top { padding-top: 40px; }
.ie-section--navy { background: linear-gradient(180deg, var(--ie-navy) 0%, #07142a 100%); color: #fff; }
.ie-section--ink { background: var(--ie-ink); color: #fff; }
.ie-section--mist { background: linear-gradient(180deg, #f3f7fc, var(--ie-mist)); }
.ie-section--slate { background: var(--ie-slate); }
.ie-section--white { background: #fff; }

/* Decorative wide arcs used on several dark panels */
.ie-arc { position: relative; isolation: isolate; }
.ie-arc::before, .ie-arc::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  border: 70px solid rgba(255, 255, 255, .025); border-radius: 50%;
  width: 900px; height: 900px; right: -420px; top: -300px;
}
.ie-arc::after { width: 1300px; height: 1300px; right: -700px; top: -380px; border-width: 60px; }

.ie-heading { max-width: 880px; margin: 0 auto 64px; text-align: center; }
.ie-heading h2, .ie-page .ie-h2-left, .ie-two-col__lead h2, .ie-cta h2 {
  font-size: clamp(34px, 4.6vw, 62px); font-weight: 700; line-height: 1.08; letter-spacing: -.02em;
}
.ie-heading h2 { margin-top: 26px; }
.ie-heading p { max-width: 760px; margin: 26px auto 0; font-size: 17px; color: var(--ie-muted); }
.ie-section--navy .ie-heading p, .ie-section--ink .ie-heading p, .ie-section--navy .ie-muted, .ie-section--ink .ie-muted { color: var(--ie-muted-dark); }
.ie-page .ie-h2-left { margin-top: 26px; }

.ie-grid { display: grid; gap: 28px; }
.ie-grid--2 { grid-template-columns: repeat(2, 1fr); gap: 36px; }
.ie-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 36px; }
.ie-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ───────── Cards ───────── */
.ie-card { border-radius: var(--ie-radius); padding: 34px; }
.ie-card h3 { font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.ie-card p { margin-top: 16px; font-size: 16.5px; }

.ie-card--problem {
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(160deg, rgba(255, 100, 20, .16) 0%, rgba(255, 100, 20, 0) 32%), rgba(255, 255, 255, .015);
}
.ie-card--problem h3 { font-size: clamp(24px, 2.2vw, 32px); margin-top: 30px; }
.ie-card--problem p { color: var(--ie-muted-dark); }

.ie-card--outline { border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .015); padding: 44px 46px 52px; }
.ie-card--outline h3 { font-size: 30px; margin-top: 26px; }
.ie-card--outline p { color: var(--ie-muted-dark); }

.ie-card--light { background: #fff; border: 1px solid var(--ie-line); box-shadow: 0 10px 30px -18px rgba(11, 26, 51, .25); }
.ie-card--light h3 { font-size: 30px; margin-top: 26px; color: var(--ie-navy); }
.ie-card--light p { color: var(--ie-muted); }

.ie-card--stat { background: #fff; text-align: center; padding: 30px 28px 32px; box-shadow: 0 10px 30px -20px rgba(11, 26, 51, .3); }
.ie-card--stat strong { display: block; font-size: clamp(52px, 5.5vw, 76px); line-height: 1; font-weight: 700; letter-spacing: -.03em; color: var(--ie-navy); }
.ie-card--stat span { display: block; margin-top: 24px; color: var(--ie-orange-600); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.ie-card--stat p { margin-top: 18px; color: var(--ie-muted); font-size: 17px; }

.ie-icon-tile {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 10px;
  background: var(--ie-orange-soft); color: var(--ie-orange);
}
.ie-icon-tile--dark { background: rgba(255, 100, 20, .16); }
.ie-icon-round {
  display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--ie-orange); color: #fff; box-shadow: 0 0 0 7px rgba(255, 100, 20, .14);
}
.ie-icon-soft {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ie-orange-soft); color: var(--ie-orange);
}

/* ───────── Header / nav ───────── */
.ie-hero { position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(ellipse 60% 45% at 50% 55%, rgba(255, 100, 20, .16), transparent 70%),
    radial-gradient(ellipse 80% 60% at 20% 20%, #1a2a47 0%, transparent 60%),
    linear-gradient(180deg, #121e33 0%, #1a2233 45%, #11192a 100%);
}
.ie-hero__roads { position: absolute; inset: 0; color: #fff; pointer-events: none; }
.ie-hero__roads svg { width: 100%; height: 100%; }

.ie-nav { position: sticky; top: 0; z-index: 50; transition: background .2s ease, box-shadow .2s ease; }
.ie-nav.is-scrolled { background: rgba(10, 20, 38, .9); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.ie-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 104px; transition: height .2s ease; }
.ie-nav.is-scrolled .ie-nav__inner { height: 80px; }
.ie-nav__links { display: flex; align-items: center; gap: clamp(24px, 2.8vw, 48px); }
.ie-nav__link { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 18px; font-weight: 500; color: rgba(255, 255, 255, .92); }
.ie-nav__link:hover { color: #fff; }
.ie-nav__link svg { color: var(--ie-orange); }
.ie-nav__actions { display: flex; align-items: center; gap: 24px; }
.ie-nav__login { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; }
.ie-nav__toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }

.ie-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.ie-logo__mark { color: var(--ie-orange); }
.ie-logo__word { display: flex; flex-direction: column; line-height: .9; }
.ie-logo__name { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.ie-logo__sub { align-self: flex-end; margin-top: -2px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.ie-logo__sub em { font-style: normal; color: var(--ie-orange); }

/* ───────── Hero ───────── */
.ie-hero__content { position: relative; text-align: center; padding-top: 90px; }
.ie-hero__title { margin-top: 36px; font-size: clamp(42px, 6.4vw, 84px); font-weight: 700; line-height: 1.06; letter-spacing: -.025em; }
.ie-hero__lede { max-width: 920px; margin: 36px auto 0; font-size: clamp(17px, 1.7vw, 25px); line-height: 1.4; color: rgba(255, 255, 255, .92); }
.ie-hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 56px; }

.ie-device {
  position: relative; margin: 90px auto 0; max-width: 1180px;
  padding: 24px 24px 0; border-radius: 48px 48px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .12); border-bottom: 0;
  box-shadow: 0 -30px 80px -40px rgba(0, 0, 0, .6);
}

/* Dashboard mockup */
.ie-dash { background: #f5f8fc; color: #0f1b2e; border-radius: 28px 28px 0 0; overflow: hidden; text-align: left; font-size: 11px; }
.ie-dash__head { position: relative; display: flex; align-items: center; gap: 22px; min-height: 128px; padding: 22px 26px; background: #fff; }
.ie-dash__title { display: flex; flex-direction: column; gap: 4px; padding-right: 22px; border-right: 1px solid #d8dfe9; }
.ie-dash__kicker { font-size: 10px; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; }
.ie-dash__title strong { font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -.01em; }
.ie-dash__sub { font-size: 13px; color: #445268; }
.ie-dash__status { display: flex; gap: 10px; align-items: flex-start; font-size: 10px; color: #4a566a; position: relative; z-index: 1; }
.ie-dash__status div { display: flex; flex-direction: column; }
.ie-dash__live { font-weight: 600; color: #0f1b2e; }
.ie-dash__live i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; margin-left: 4px; vertical-align: middle; }
.ie-dash__banner {
  position: absolute; right: 0; top: 0; bottom: 0; width: 48%;
  background:
    linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .0) 30%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .5) 0 2px, transparent 2px 60px),
    linear-gradient(180deg, #d6e2ee 0%, #b6c6d8 70%, #8e9fb4 100%);
}
.ie-dash__banner span {
  position: absolute; left: 36%; top: 18px; padding: 8px 12px; background: #3a4557; color: #e9eef5;
  font-weight: 700; font-size: 14px; line-height: 1.05; text-transform: uppercase;
}
.ie-dash__metrics { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; padding: 14px 20px; }
.ie-metric { display: flex; flex-direction: column; background: #fff; border: 1px solid #e6ebf2; border-radius: 8px; padding: 10px 10px 0; min-width: 0; }
.ie-metric__icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: #fff; }
.ie-metric__label { margin-top: 10px; font-weight: 500; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ie-metric__value { font-size: 28px; font-weight: 700; line-height: 1.15; }
.ie-metric__delta { font-size: 10.5px; font-weight: 600; }
.ie-metric__delta em { display: block; font-style: normal; font-weight: 400; color: #7a8599; font-size: 9px; }
.ie-metric__spark { width: 100%; height: 36px; margin-top: 4px; }
.ie-metric__line { fill: none; stroke-width: 1.6; }
.ie-metric__area { opacity: .14; }
.ie-metric--blue .ie-metric__icon, .ie-metric__icon.ie-metric--blue { background: #2f6bff; }
.ie-metric--green .ie-metric__icon, .ie-metric__icon.ie-metric--green { background: #19b56b; }
.ie-metric--purple .ie-metric__icon, .ie-metric__icon.ie-metric--purple { background: #8a5cf6; }
.ie-metric--teal .ie-metric__icon { background: #10a58a; }
.ie-metric--orange .ie-metric__icon, .ie-metric__icon.ie-metric--orange { background: #ff7a2f; }
.ie-metric--blue { --spark: #2f6bff; } .ie-metric--green { --spark: #19b56b; } .ie-metric--purple { --spark: #8a5cf6; }
.ie-metric--teal { --spark: #10a58a; } .ie-metric--orange { --spark: #ff7a2f; }
.ie-metric__line { stroke: var(--spark); } .ie-metric__area { fill: var(--spark); }
.ie-metric__delta { color: var(--spark); }

.ie-dash__tables { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 20px 20px; }
.ie-dash__panel { background: #fff; border: 1px solid #e6ebf2; border-radius: 8px; padding: 10px 12px; min-width: 0; }
.ie-dash__panel-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 12px; padding-bottom: 8px; border-bottom: 1px solid #eef2f7; }
.ie-dash__panel-head .ie-metric__icon { width: 22px; height: 22px; border-radius: 6px; }
.ie-dash__panel-head em { margin-left: auto; font-style: normal; font-size: 9.5px; color: #2f6bff; font-weight: 500; }
.ie-dash__panel-head .ie-dash__pill-live { color: #19b56b; }
.ie-convo { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: start; padding: 8px 0; border-bottom: 1px solid #f1f4f8; }
.ie-convo b { display: block; font-size: 10.5px; }
.ie-convo span { display: block; color: #6b7689; font-size: 9.5px; line-height: 1.35; }
.ie-convo time { font-size: 9px; color: #6b7689; }
.ie-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #f2c7a5, #b07a55); color: #fff; font-weight: 700; }
.ie-row { display: grid; grid-template-columns: 44px 1fr 52px 58px; gap: 6px; align-items: center; padding: 6px 0; font-size: 9.5px; border-bottom: 1px solid #f1f4f8; white-space: nowrap; }
.ie-row span { overflow: hidden; text-overflow: ellipsis; }
.ie-tag { font-style: normal; text-align: center; border-radius: 4px; padding: 3px 4px; font-size: 8.5px; font-weight: 600; }
.ie-tag--confirmed { background: #dcfce7; color: #15803d; }
.ie-tag--booked { background: #dbeafe; color: #1d4ed8; }
.ie-tag--arrived { background: #ffedd5; color: #c2410c; }
.ie-tag--rebooked { background: #ffe4dc; color: #e8540a; }
.ie-dash__panel:nth-child(3) .ie-row span:first-child { color: #2f6bff; }
.ie-dash__panel:nth-child(4) .ie-row span:first-child { color: #ff7a2f; }

/* ───────── Ticker ───────── */
.ie-ticker { position: relative; z-index: 2; overflow: hidden; background: linear-gradient(90deg, #e1500c, var(--ie-orange) 50%, #e1500c); color: #fff; }
.ie-ticker__track { display: flex; width: max-content; animation: ie-marquee 40s linear infinite; }
.ie-ticker ul { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.ie-ticker li { display: flex; align-items: center; padding: 20px 0; font-size: 15px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; }
.ie-ticker li::after { content: ''; width: 7px; height: 7px; margin: 0 30px; border-radius: 50%; background: var(--ie-ink); }
@media (min-width: 1280px) {
  .ie-ticker__track { width: 100%; justify-content: center; animation: none; }
  .ie-ticker ul[aria-hidden] { display: none; }
  .ie-ticker li:last-child::after { display: none; }
}
@keyframes ie-marquee { to { transform: translateX(-50%); } }

/* ───────── How it works timeline ───────── */
.ie-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ie-steps {
  --step-gap: 20px; --dot: 48px;
  position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--step-gap);
  list-style: none; margin: 0; padding: 0; counter-reset: step;
}
/* Connector runs from the first dot's centre to the last one's. */
.ie-steps::before {
  content: ''; position: absolute; top: calc(var(--dot) / 2 - 1px); height: 2px;
  left: calc((100% - 4 * var(--step-gap)) / 10); right: calc((100% - 4 * var(--step-gap)) / 10);
  background: linear-gradient(90deg, var(--ie-navy), var(--ie-orange));
}
.ie-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.ie-step__dot {
  position: relative; z-index: 1; display: grid; place-items: center; flex: none;
  width: var(--dot); height: var(--dot); border-radius: 50%;
  background: var(--ie-navy); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 0 0 6px var(--ie-mist), 0 0 0 7px rgba(11, 26, 51, .12);
  transition: background .2s ease, transform .2s ease;
}
.ie-step:last-child .ie-step__dot { background: var(--ie-orange); }
.ie-step__card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; width: 100%; flex: 1;
  padding: 26px 24px 28px; border-radius: 16px; background: #fff; border: 1px solid var(--ie-line);
  box-shadow: 0 12px 32px -22px rgba(11, 26, 51, .35); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ie-step__card::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--ie-orange), #ffa36b); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.ie-step:hover .ie-step__card { transform: translateY(-4px); border-color: #ffd6c0; box-shadow: 0 22px 40px -24px rgba(11, 26, 51, .45); }
.ie-step:hover .ie-step__card::before { transform: scaleX(1); }
.ie-step:hover .ie-step__dot { background: var(--ie-orange); transform: scale(1.06); }
.ie-step__card h3 {
  margin-top: 20px; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.22; font-weight: 700; letter-spacing: -.01em;
  color: var(--ie-navy); text-wrap: balance;
}
.ie-step__card p { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--ie-muted); }
.ie-chip { padding: 5px 12px; border-radius: 999px; background: var(--ie-orange-soft); color: var(--ie-orange-600); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* ───────── Partner model ───────── */
.ie-partner { display: grid; grid-template-columns: 1fr 1fr; min-height: 580px; border-radius: 28px; overflow: hidden; background: #1c2536; }
.ie-partner__body { display: flex; flex-direction: column; justify-content: center; padding: 64px 70px;
  background: linear-gradient(135deg, rgba(120, 135, 160, .45), rgba(40, 52, 75, .6)), #2a3447; }
.ie-partner__body h3 { font-size: clamp(34px, 3.8vw, 60px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }
.ie-partner__body p { margin-top: 30px; font-size: 18px; color: rgba(255, 255, 255, .92); }
.ie-partner__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.ie-partner__stats div { padding: 26px 34px 30px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px); }
.ie-partner__stats strong { display: block; font-size: clamp(44px, 4.8vw, 70px); line-height: 1; font-weight: 700; color: var(--ie-orange); letter-spacing: -.03em; }
.ie-partner__stats span { display: block; margin-top: 16px; font-size: 18px; }

/* Stock photography (Unsplash) over a gradient fallback – swap for brand photography when available. */
.ie-photo { position: relative; background-size: cover; background-position: center; background-color: #2a3447; }
.ie-photo--meeting {
  background-image:
    linear-gradient(90deg, rgba(255, 238, 214, .18), rgba(111, 159, 154, .25)),
    url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?w=1400&q=75&auto=format&fit=crop'),
    linear-gradient(160deg, #f6efe4 0%, #cfe0dc 45%, #6f9f9a 100%);
}
.ie-photo--showroom {
  background-position: center 20%;
  background-image:
    url('https://images.unsplash.com/photo-1560250097-0b93528c311a?w=1200&q=75&auto=format&fit=crop'),
    linear-gradient(180deg, #d8cfc4 0%, #b7aa99 55%, #8a7d70 100%);
}

/* ───────── Agency vs Ignition split ───────── */
.ie-split { border-radius: 14px; padding: 44px 46px 48px; }
.ie-split h3 { font-size: 34px; font-weight: 700; letter-spacing: -.01em; }
.ie-split ul { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 36px; }
.ie-split li { display: flex; gap: 26px; align-items: flex-start; }
.ie-split li svg { flex: none; margin-top: 4px; }
.ie-split b { display: block; font-size: 18px; font-weight: 600; }
.ie-split span { display: block; font-size: 17px; margin-top: 2px; }
.ie-split--light { background: var(--ie-mist); border: 1px solid var(--ie-line); color: var(--ie-navy); }
.ie-split--light span { color: var(--ie-muted); }
.ie-split--dark { background: linear-gradient(160deg, #0e2140, #07142a); color: #fff; overflow: hidden; }
.ie-split--dark span { color: var(--ie-muted-dark); }

/* ───────── Programs row ───────── */
.ie-programs {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 max(24px, calc((100vw - 1280px) / 2 + 24px)) 8px;
}
.ie-programs::-webkit-scrollbar { display: none; }
.ie-program { flex: none; scroll-snap-align: start; padding: 32px 34px; border-radius: 12px; background: var(--ie-mist); border: 1px solid var(--ie-line); }
.ie-program span { display: block; color: var(--ie-orange-600); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ie-program strong { display: block; margin-top: 10px; font-size: 32px; font-weight: 600; color: var(--ie-navy); white-space: nowrap; letter-spacing: -.01em; }

/* ───────── Interactive note ───────── */
.ie-note { max-width: 820px; margin: 72px auto 0; text-align: center; font-size: 17px; color: var(--ie-muted-dark); }

/* ───────── Two column layouts ───────── */
.ie-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.ie-two-col--center { align-items: center; }
.ie-two-col__lead h2 { margin-top: 30px; }
.ie-two-col__lead p { margin: 36px 0 44px; font-size: 17px; color: var(--ie-muted-dark); max-width: 680px; }

.ie-phases { display: grid; }
.ie-phase { padding: 0 0 60px; }
.ie-phase + .ie-phase { padding-top: 70px; border-top: 1px solid rgba(255, 255, 255, .1); }
.ie-phase span { color: var(--ie-orange); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ie-phase h3 { margin-top: 18px; font-size: 34px; font-weight: 600; letter-spacing: -.01em; }
.ie-phase p { margin-top: 22px; font-size: 17px; color: var(--ie-muted-dark); }

.ie-live-list { list-style: none; margin: 60px 0 60px; padding: 0; display: grid; gap: 48px; }
.ie-live-list li { display: flex; gap: 24px; align-items: flex-start; }
.ie-live-list h3 { font-size: 34px; font-weight: 600; line-height: 1.1; color: var(--ie-navy); letter-spacing: -.01em; }
.ie-live-list p { margin-top: 14px; font-size: 17px; color: var(--ie-muted); }

.ie-live-photo { min-height: 980px; border-radius: 24px; overflow: hidden; display: flex; align-items: flex-end; padding: 0 70px 20px; }
.ie-live-photo__bubble { width: 100%; padding: 32px 36px; border-radius: 22px; background: rgba(215, 218, 224, .88); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .6); }
.ie-live-photo__bubble span { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #3a4557; }
.ie-live-photo__bubble p { margin-top: 12px; font-size: 27px; line-height: 1.3; color: var(--ie-navy); }
.ie-live-photo__bubble em { font-style: normal; color: var(--ie-orange); }

/* ───────── Languages ───────── */
.ie-lang-section { padding-top: 40px; padding-bottom: 0; }
.ie-lang-section .ie-two-col { grid-template-columns: 1fr 1.15fr; gap: 48px; }
.ie-langs { position: relative; height: 640px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); }
.ie-langs__track { animation: ie-rise 36s linear infinite; }
.ie-langs__grid { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-around; gap: 36px 16px; padding-bottom: 36px; }
.ie-lang {
  display: inline-flex; align-items: center; gap: 12px; padding: clamp(10px, 1.1vw, 18px) clamp(14px, 1.6vw, 32px); border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .8);
  font-size: clamp(14px, 1.15vw, 19px); font-weight: 600; text-transform: uppercase; white-space: nowrap;
}
.ie-lang i { width: clamp(24px, 2.2vw, 36px); height: clamp(24px, 2.2vw, 36px); border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
@keyframes ie-rise { to { transform: translateY(-50%); } }

/* ───────── Integrations ───────── */
.ie-integrations { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.ie-integration { display: inline-flex; align-items: center; gap: 16px; padding: 18px 34px; border-radius: 10px; background: #fff; color: var(--ie-navy); font-size: 19px; font-weight: 600; }
.ie-integration i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ie-orange-soft); color: var(--ie-orange); }

/* ───────── Call me form ───────── */
.ie-callme { padding-bottom: 120px; }
.ie-form-card { background: #fff; border-radius: 24px; padding: 54px 54px 48px; box-shadow: 0 20px 60px -30px rgba(11, 26, 51, .3); }
.ie-form { display: grid; gap: 26px; }
.ie-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ie-field label { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ie-navy); }
.ie-field input {
  width: 100%; padding: 16px 18px; border: 1.5px solid transparent; border-radius: 6px;
  background: var(--ie-mist); color: var(--ie-navy); font: inherit; font-size: 17px;
}
.ie-field input::placeholder { color: #6b7a90; }
.ie-field input:focus { outline: none; border-color: var(--ie-orange); background: #fff; box-shadow: 0 0 0 4px rgba(255, 100, 20, .12); }
.ie-form .ie-btn { justify-self: start; margin-top: 18px; }
.ie-form__consent { margin-top: 20px; font-size: 16px; color: var(--ie-muted); }
.ie-alert { display: grid; gap: 4px; margin-bottom: 28px; padding: 16px 20px; border-radius: 10px; font-size: 15px; }
.ie-alert--success { background: #e7f8ef; color: #14532d; border: 1px solid #bbf0d0; }
.ie-alert--error { background: #fdecec; color: #7f1d1d; border: 1px solid #f7c6c6; }

/* ───────── Final CTA + footer ───────── */
.ie-cta-wrap { position: relative; background: linear-gradient(180deg, var(--ie-slate) 0 280px, var(--ie-navy) 280px); }
.ie-cta {
  position: relative; z-index: 1; padding: 110px 40px 110px; border-radius: 28px; text-align: center; color: #fff;
  background: linear-gradient(115deg, #d9480a 0%, #ec6a2a 55%, #ff8a45 100%);
}
.ie-cta h2 { margin-top: 44px; font-size: clamp(36px, 5.4vw, 76px); }
.ie-cta p { max-width: 920px; margin: 30px auto 0; font-size: 18px; }
.ie-cta .ie-hero__ctas { margin-top: 60px; gap: 12px; }

.ie-footer { background: linear-gradient(180deg, var(--ie-navy), #07142a); color: #fff; padding: 140px 0 60px; margin-top: -1px; overflow: hidden; }
.ie-footer__top { display: grid; grid-template-columns: 1.4fr 1.2fr .8fr; gap: 56px; }
.ie-footer__tagline {
  position: relative; max-width: 460px; margin-top: 40px; padding-left: 20px; border-left: 3px solid var(--ie-orange);
  font-size: clamp(18px, 1.55vw, 23px); font-weight: 500; line-height: 1.45; letter-spacing: -.005em;
  color: var(--ie-muted-dark); text-wrap: pretty;
}
.ie-footer__tagline em { font-style: normal; font-weight: 600; color: #fff; }
.ie-social { display: flex; gap: 12px; margin-top: 40px; }
.ie-social a { display: grid; place-items: center; width: 46px; height: 46px; transition: border-color .15s ease, color .15s ease; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .15); }
.ie-social a:hover { border-color: var(--ie-orange); color: var(--ie-orange); }
.ie-footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 64px 40px; }
.ie-footer h4 { font-size: 18px; font-weight: 500; color: var(--ie-muted-dark); margin-bottom: 20px; }
.ie-footer__cols a { display: block; margin-bottom: 14px; font-size: 18px; }
.ie-footer__cols a:hover, .ie-footer__contact a:not(.ie-btn):hover { color: var(--ie-orange); }
.ie-footer__contact a:not(.ie-btn) { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-size: 18px; }
.ie-footer__contact hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .12); margin: 24px 0 36px; }
.ie-footer__contact p { font-size: 18px; margin-bottom: 30px; }
.ie-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; margin-top: 130px; padding-top: 50px; border-top: 1px solid rgba(255, 255, 255, .12); color: var(--ie-muted-dark); font-size: 18px; }
.ie-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 36px; }
.ie-footer__bottom a:hover { color: #fff; }

/* ───────── Responsive ───────── */
@media (max-width: 1200px) {
  .ie-nav__links { gap: 28px; }
  .ie-nav__link, .ie-nav__login { font-size: 16px; }
  .ie-steps { grid-template-columns: 1fr; gap: 20px; max-width: 760px; margin: 0 auto; }
  .ie-steps::before { top: calc(var(--dot) / 2); bottom: calc(var(--dot) / 2); left: calc(var(--dot) / 2 - 1px); right: auto; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--ie-navy), var(--ie-orange)); }
  .ie-step { flex-direction: row; align-items: flex-start; gap: 24px; }
  .ie-dash__metrics { grid-template-columns: repeat(4, 1fr); }
  .ie-dash__tables { grid-template-columns: repeat(2, 1fr); }
  .ie-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .ie-langs__grid { grid-template-columns: repeat(2, auto); }
  .ie-footer__top { grid-template-columns: 1fr 1fr; }
  .ie-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1100px) {
  .ie-nav__toggle { display: inline-grid; }
  .ie-nav__login { display: none; }
  .ie-nav__links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px 24px 20px; background: rgba(10, 20, 38, .98); border-top: 1px solid rgba(255, 255, 255, .08);
    display: none;
  }
  .ie-nav.is-open .ie-nav__links { display: flex; }
  .ie-nav.is-open { background: rgba(10, 20, 38, .98); }
  .ie-nav__link { padding: 14px 0; width: 100%; }
  .ie-nav__inner, .ie-nav.is-scrolled .ie-nav__inner { height: 76px; }
  .ie-logo__name { font-size: 32px; }
  .ie-logo__sub { font-size: 15px; }
  .ie-logo__mark svg { width: 36px; height: 36px; }

}

@media (max-width: 960px) {
  .ie-section { padding: 88px 0; }
  .ie-grid--2, .ie-grid--3, .ie-two-col, .ie-lang-section .ie-two-col, .ie-partner { grid-template-columns: 1fr; }
  .ie-two-col { gap: 48px; }
  .ie-partner__photo { min-height: 320px; }
  .ie-partner__body { padding: 44px 32px; }
  .ie-live-photo { min-height: 620px; padding: 0 20px 20px; }
  .ie-dash__banner { display: none; }
  .ie-langs { height: 460px; }
  .ie-langs__grid { gap: 24px 16px; }
  .ie-lang { padding: 12px 18px; font-size: 15px; }
  .ie-lang i { width: 26px; height: 26px; }
}

@media (max-width: 640px) {
  .ie-container { padding: 0 16px; }
  .ie-nav__actions .ie-btn--primary { display: none; }
  .ie-hero__content { padding-top: 48px; }
  .ie-hero__ctas { flex-direction: column; align-items: stretch; }
  .ie-device { margin-top: 56px; padding: 10px 10px 0; border-radius: 24px 24px 0 0; }
  .ie-dash { border-radius: 16px 16px 0 0; }
  .ie-dash__head { flex-direction: column; align-items: flex-start; }
  .ie-dash__title { border-right: 0; padding-right: 0; }
  .ie-dash__title strong { font-size: 22px; }
  .ie-dash__metrics { grid-template-columns: repeat(2, 1fr); padding: 10px; }
  .ie-dash__tables { grid-template-columns: 1fr; padding: 0 10px 10px; }
  .ie-dash__panel:nth-child(n+3) { display: none; }
  .ie-steps { --dot: 40px; }
  .ie-step { gap: 16px; }
  .ie-step__card { padding: 22px 20px; }
  .ie-grid--4, .ie-form__row, .ie-footer__top, .ie-partner__stats { grid-template-columns: 1fr; }
  .ie-card, .ie-card--outline, .ie-split { padding: 28px 24px; }
  .ie-card--problem h3, .ie-card--outline h3, .ie-card--light h3, .ie-split h3, .ie-phase h3, .ie-live-list h3 { font-size: 24px; }
  .ie-program strong { font-size: 24px; }
  .ie-live-photo { min-height: 480px; padding: 0 12px 12px; }
  .ie-live-photo__bubble { padding: 20px; }
  .ie-live-photo__bubble p { font-size: 19px; }
  .ie-langs__grid { grid-template-columns: repeat(2, auto); }
  .ie-integration { padding: 14px 20px; font-size: 16px; }
  .ie-form-card { padding: 28px 20px; }
  .ie-cta { padding: 64px 20px; }
  .ie-cta .ie-hero__ctas .ie-btn { white-space: normal; }
  .ie-footer__cols { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .ie-footer__bottom { margin-top: 64px; font-size: 15px; }
  .ie-footer__bottom nav { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .ie-ticker__track, .ie-langs__track { animation: none; }
  html:has(.ie-page) { scroll-behavior: auto; }
}
/*
  Inter Font
  Load the Inter font from Google Fonts CDN
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Support for Inter var (variable font) */
@supports (font-variation-settings: normal) {
  @import url('https://rsms.me/inter/inter.css');
  html { font-family: 'Inter var', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; }
}

/* Fallback for browsers that don't support variable fonts */
@supports not (font-variation-settings: normal) {
  html { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; }
}
.logo-container {
    height: auto;
    overflow:hidden;
    position:relative;
}

.videoshowlogo img {
    position:absolute;
}

.modal ul {
    list-style: disc;
    margin-left: 1.5rem;
    padding-left: 1rem;
}

.modal ol {
    list-style: decimal;
    margin-left: 1.5rem;
    padding-left: 1rem;
}


video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.drag-chosen {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 150ms ease, box-shadow 150ms ease;
    z-index: 50;
}

.drag-ghost {
    opacity: 0.3;
    background-color: #f3f4f6; /* opcional para distinguir el clon */
    border-radius: 8px;
}

.drag-animation {
    transition: transform 200ms ease-in-out;
}

.drag-placeholder {
    height: 64px;
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    margin: 0.25rem 0;
    transition: all 0.2s ease-in-out;
}

.upload-loader-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: upload-loader-backdrop-in 0.25s ease-out both;
}

@keyframes upload-loader-backdrop-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.upload-loader-spinner {
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top: 6px solid #ffffff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.upload-loader-text {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
}

.image_carousel_items_container {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.image_carousel_items_container .carousel-item .delete-carousel-item{
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.selected-carousel-item {
    border: 1px solid #3b82f6;
    border-radius: 0.5rem; /* rounded-lg */
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Stagger children animation */
.stagger-children > * {
    opacity: 0;
    animation: lp-fade-up 0.5s ease-out forwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0ms; }
.stagger-children > *:nth-child(2) { animation-delay: 80ms; }
.stagger-children > *:nth-child(3) { animation-delay: 160ms; }
.stagger-children > *:nth-child(4) { animation-delay: 240ms; }
.stagger-children > *:nth-child(5) { animation-delay: 320ms; }
.stagger-children > *:nth-child(6) { animation-delay: 400ms; }
.stagger-children > *:nth-child(7) { animation-delay: 480ms; }
.stagger-children > *:nth-child(8) { animation-delay: 560ms; }

@keyframes lp-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Button shine sweep on hover */
.btn-shine {
    position: relative;
    overflow: hidden;
}
.btn-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}
.btn-shine:hover::after {
    left: 100%;
}

/* Textarea accent border */
.lp-textarea-accent {
    border-left-width: 4px;
    border-left-style: solid;
    padding-left: 1rem;
}

/* Fix for Safari image display in modals */
@media not all and (min-resolution:.001dpcm) { 
    @supports (-webkit-appearance:none) {
        .flex-col img {
            max-width: 100%;
            height: auto;
            -webkit-transform: translateZ(0);
            transform: translateZ(0);
        }
    }
}
.filter_active {
  position: relative;
  cursor: default;
  user-select: none;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 0.75rem;
  padding-right: 2.25rem;
  color: white;
  background-color: #3d5b81;
  outline: none;
}

.filter_inactive {
  position: relative;
  cursor: default;
  user-select: none;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 0.75rem;
  padding-right: 2.25rem;
  color: #111827;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

.selected-stroke svg {
    stroke: #F2383A;
}

.unselected-stroke svg {
    stroke: white;
}


.selected-fill svg {
    fill: #F2383A;
}

.unselected-fill svg {
    fill: white;
}

@layer base {
    /* Always show number input spinners */
    input[type="number"]::-webkit-inner-spin-button,
    input[type="number"]::-webkit-outer-spin-button {
        opacity: 1 !important;      /* Always visible */
        pointer-events: auto !important;
    }

    /* Firefox support (optional, keeps consistent styling) */
    input[type="number"] {
        -moz-appearance: number-input;
    }
}

/* Dashboard Card Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-bounce-in {
    animation: bounceIn 0.6s ease-out;
}

.animate-slide-down {
    animation: slideDown 0.2s ease-out;
}

/* Staggered children for admin org/location detail & multi-card forms */
@keyframes adminStaggerIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .admin-stagger-sections > section {
        animation: adminStaggerIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
    .admin-stagger-sections > section:nth-child(1) { animation-delay: 40ms; }
    .admin-stagger-sections > section:nth-child(2) { animation-delay: 95ms; }
    .admin-stagger-sections > section:nth-child(3) { animation-delay: 150ms; }
    .admin-stagger-sections > section:nth-child(4) { animation-delay: 205ms; }
    .admin-stagger-sections > section:nth-child(5) { animation-delay: 260ms; }
    .admin-stagger-sections > section:nth-child(6) { animation-delay: 315ms; }
    .admin-stagger-sections > section:nth-child(7) { animation-delay: 370ms; }
    .admin-stagger-sections > section:nth-child(8) { animation-delay: 425ms; }
    .admin-stagger-sections > section:nth-child(9) { animation-delay: 480ms; }
    .admin-stagger-sections > section:nth-child(10) { animation-delay: 535ms; }
    .admin-stagger-sections > section:nth-child(11) { animation-delay: 590ms; }
    .admin-stagger-sections > section:nth-child(12) { animation-delay: 645ms; }

    .admin-stagger-children > * {
        animation: adminStaggerIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
    .admin-stagger-children > *:nth-child(1) { animation-delay: 30ms; }
    .admin-stagger-children > *:nth-child(2) { animation-delay: 70ms; }
    .admin-stagger-children > *:nth-child(3) { animation-delay: 110ms; }
    .admin-stagger-children > *:nth-child(4) { animation-delay: 150ms; }
    .admin-stagger-children > *:nth-child(5) { animation-delay: 190ms; }
    .admin-stagger-children > *:nth-child(6) { animation-delay: 230ms; }
    .admin-stagger-children > *:nth-child(7) { animation-delay: 270ms; }
    .admin-stagger-children > *:nth-child(8) { animation-delay: 310ms; }
    .admin-stagger-children > *:nth-child(9) { animation-delay: 350ms; }
    .admin-stagger-children > *:nth-child(10) { animation-delay: 390ms; }
    .admin-stagger-children > *:nth-child(11) { animation-delay: 430ms; }
    .admin-stagger-children > *:nth-child(12) { animation-delay: 470ms; }
}

@media (prefers-reduced-motion: reduce) {
    .admin-stagger-sections > section,
    .admin-stagger-children > * {
        animation: none;
    }
}

/* Flow template form */
@media (prefers-reduced-motion: no-preference) {
    .video-kind-reveal:not(.hidden):not(.is-hiding) {
        animation: adminStaggerIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .video-kind-mode-card {
        transition:
            border-color 0.22s ease,
            background-color 0.22s ease,
            box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .video-kind-mode-card:hover {
        transform: translateY(-2px);
    }

    .video-kind-mode-card:has(:checked) {
        transform: translateY(0);
    }

    .video-kind-section:hover {
        box-shadow: 0 10px 28px -12px rgba(15, 23, 42, 0.1);
    }
}

.video-kind-mode-card:has(:checked) {
    border-color: rgb(99 102 241 / 0.45);
    background-color: rgb(238 242 255 / 0.75);
    box-shadow: 0 4px 16px -4px rgba(79, 70, 229, 0.22);
}

.video-kind-reveal.is-hiding {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.24s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .video-kind-reveal.is-hiding {
        transition: none;
    }
}

/* Drag and drop states */
.drag-ghost {
    opacity: 0.4;
}

.drag-chosen {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Loading bar animation */
@keyframes loading-bar {
    0% {
        width: 0%;
        transform: translateX(-100%);
    }
    50% {
        width: 70%;
        transform: translateX(0%);
    }
    100% {
        width: 100%;
        transform: translateX(100%);
    }
}

.animate-loading-bar {
    width: 0%;
    animation: loading-bar 1.5s ease-in-out infinite;
}

/* Tag Request Modal Styles */
.tag-request-modal-container [data-tag-request-modal-target="modal"] {
    transition: opacity 0.3s ease-in-out;
}

.tag-request-modal-container [data-tag-request-modal-target="modal"].hidden {
    opacity: 0;
    pointer-events: none;
}

.tag-request-modal-container [data-tag-request-modal-target="modal"]:not(.hidden) {
    opacity: 1;
    pointer-events: all;
}

/* Modal panel animation */
.tag-request-modal-container [data-tag-request-modal-target="form"] {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-1rem) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Ensure overlay is above other content */
.tag-request-modal-container [data-tag-request-modal-target="modal"] {
    z-index: 9999;
}
