/* ═══════════════════════════════════════════════════════════════
   The four tools that came together (2026-11-15): «فلاش», «شيل الخلفية»,
   «ريتاتش الوش», «سبيد رامب» — Premiere 2.9.19, After Effects 1.4.0,
   DaVinci 1.2.0. One block, the same on the three pages (index, ae,
   davinci), each in its product's words.

   «فلاش» lies across, its reel beside its words; the three others stand
   under it, each in the colour its tool wears inside the plugin: the
   flash's ice blue, the cut-out's lime, the retouch's peach, the ramp's
   amber. Nine visits in ten are on a phone: there each card is its reel
   over its words, one under the other.

   The reels play only while on screen (js/new31.js) and never with
   reduced motion.
   ═══════════════════════════════════════════════════════════════ */
.n31 { margin: 0 0 26px; }

.n31-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 18px; }
.n31-kicker {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 15px 7px; border-radius: 999px;
  font-size: 14.5px; font-weight: 700; color: #0E1310; white-space: nowrap;
  background: linear-gradient(100deg, #CFE8FF 0%, #CEF754 36%, #FFB09E 68%, #FFB25A 100%);
  box-shadow: 0 10px 30px -14px rgba(206, 247, 84, .55);
}
.n31-kicker .num { font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
.n31-head p { margin: 0; color: var(--tx-3); font-size: 15.5px; line-height: 1.7; }

/* ── a card ── */
.n31-card {
  --c: #CFE8FF; --c2: #3FA2FF; --c-rgb: 160, 205, 255;
  position: relative; display: grid; align-items: center; gap: 24px; padding: 20px;
  border-radius: 24px; border: 1px solid rgba(var(--c-rgb), .26); overflow: hidden;
  background:
    radial-gradient(120% 85% at 100% 0%, rgba(var(--c-rgb), .13), transparent 62%),
    linear-gradient(180deg, var(--bg-000), var(--bg-100));
}
[dir="ltr"] .n31-card { background: radial-gradient(120% 85% at 0% 0%, rgba(var(--c-rgb), .13), transparent 62%), linear-gradient(180deg, var(--bg-000), var(--bg-100)); }
.n31-cut { --c: #CEF754; --c2: #5FE08B; --c-rgb: 206, 247, 84; }
.n31-rt  { --c: #FFB09E; --c2: #F2708E; --c-rgb: 255, 176, 158; }
.n31-sr  { --c: #FFB25A; --c2: #5ABEFF; --c-rgb: 255, 178, 90; }

/* the reel: what the plugin made, standing like a reel on a phone */
.n31-media { position: relative; display: grid; place-items: center; }
.n31-reel {
  position: relative; width: 100%; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13); background: #0a0b0d;
  box-shadow: 0 30px 60px -32px rgba(0, 0, 0, .95), 0 0 0 6px rgba(255, 255, 255, .025), 0 0 70px -34px rgba(var(--c-rgb), .9);
}
.n31-reel video { display: block; width: 100%; height: 100%; object-fit: cover; }
.n31-real {
  position: absolute; inset-inline-start: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; color: var(--tx); background: rgba(8, 7, 10, .64); border: 1px solid rgba(255, 255, 255, .13);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* the words */
.n31-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 6px; }
.n31-h h3 { margin: 0; font-size: 16.5px; font-weight: 700; letter-spacing: -.02em; color: var(--c); }
.n31-copy > p { margin: 0; color: var(--tx-2); font-size: 15px; line-height: 1.85; }
.n31-copy > p.n31-big {
  margin: 2px 0 12px; color: var(--tx); font-size: clamp(22px, 2vw, 28px); line-height: 1.34; font-weight: 800;
  letter-spacing: -.025em; text-wrap: balance;
}
.n31-big em {
  font-style: normal; color: transparent;
  background: linear-gradient(100deg, var(--c), var(--c2)); -webkit-background-clip: text; background-clip: text;
}
.n31-points { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.n31-points li { position: relative; padding-inline-start: 26px; color: var(--tx); font-size: 14.5px; line-height: 1.65; }
.n31-points li::before {
  content: ''; position: absolute; inset-inline-start: 2px; top: .52em; width: 12px; height: 7px;
  border: solid var(--c); border-width: 0 0 2.2px 2.2px; transform: rotate(-45deg);
}

/* ── «فلاش», across ── */
.n31-flash { grid-template-columns: minmax(0, 1fr) 286px; gap: 34px; padding: 22px 26px; }
.n31-flash .n31-media { order: 2; }
.n31-flash .n31-copy > p.n31-big { font-size: clamp(25px, 2.6vw, 34px); }
/* its beat, as the tool's own strip shows it: a cell a frame */
.n31-beat { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 16px 0 0; }
.n31-strip {
  display: flex; gap: 3px; padding: 5px; border-radius: 9px; direction: ltr;
  background: rgba(160, 205, 255, .07); border: 1px solid rgba(160, 205, 255, .16);
}
.n31-strip i { display: block; width: 15px; height: 22px; border-radius: 3px; background: rgba(160, 205, 255, .12); }
.n31-strip i.w { background: #F4FAFF; box-shadow: 0 0 10px rgba(160, 210, 255, .9); animation: n31-blink 2.6s steps(1, end) infinite; }
.n31-strip i.w:nth-child(n+5) { animation-delay: .2s; }
.n31-strip i.w:nth-child(n+9) { animation-delay: .4s; }
@keyframes n31-blink { 0%, 62% { opacity: 1; } 66%, 78% { opacity: .28; } 82%, 100% { opacity: 1; } }
.n31-beat span { font-size: 13px; color: var(--tx-3); }
/* its looks, by name */
.n31-looks { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 0; padding: 0; }
.n31-looks li {
  padding: 4px 11px 5px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #DCEBFF; white-space: nowrap;
  background: rgba(63, 162, 255, .1); border: 1px solid rgba(160, 205, 255, .24);
}
.n31-looks li:nth-child(1) { color: #06131F; background: linear-gradient(120deg, #F4FAFF, #CFE8FF); border-color: transparent; }

/* ── the three under it ── */
.n31-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.n31-trio .n31-card { align-content: start; align-items: start; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 16px 16px 22px; }
/* each reel stands in the middle of a stage lit in its tool's colour */
.n31-trio .n31-media {
  padding: 16px 0 14px; border-radius: 18px;
  background:
    radial-gradient(70% 60% at 50% 46%, rgba(var(--c-rgb), .2), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0));
  border: 1px solid rgba(255, 255, 255, .05);
}
.n31-trio .n31-reel { width: min(62%, 232px); border-radius: 18px; }
.n31-trio .n31-copy { padding: 0 4px; }
.n31-trio .n31-copy > p.n31-big { font-size: clamp(20px, 1.75vw, 24px); }
/* the retouch is a face, close: the same reel, cut to the face */
.n31-rt .n31-reel { aspect-ratio: 4 / 5; width: min(80%, 300px); }
.n31-rt .n31-reel video { object-position: 50% 30%; }
.n31-rt .n31-media { padding-block: 34px 32px; }

.n31-note { margin: 14px 4px 0; font-size: 13px; line-height: 1.7; color: var(--tx-4); }

/* ── narrower ── */
@media (max-width: 1100px) {
  .n31-flash { grid-template-columns: minmax(0, 1fr) 250px; gap: 26px; padding: 20px; }
  .n31-trio { grid-template-columns: minmax(0, 1fr); }
  .n31-trio .n31-card { grid-template-columns: 232px minmax(0, 1fr); align-items: center; gap: 24px; padding: 16px 20px 16px 16px; }
  [dir="ltr"] .n31-trio .n31-card { padding: 16px 16px 16px 20px; }
  .n31-trio .n31-media { padding: 14px; }
  .n31-trio .n31-reel, .n31-rt .n31-reel { width: 100%; }
  .n31-rt .n31-media { padding: 14px; }
}
/* ── a phone: the reel over its words ── */
@media (max-width: 640px) {
  .n31-head { margin-bottom: 14px; }
  .n31-head p { font-size: 14.5px; }
  .n31-card, .n31-flash, .n31-trio .n31-card, [dir="ltr"] .n31-trio .n31-card { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 14px 14px 20px; border-radius: 20px; }
  .n31-flash .n31-media { order: 0; }
  .n31-flash .n31-reel { width: min(100%, 290px); }
  .n31-trio .n31-media, .n31-rt .n31-media { padding: 14px 0; }
  .n31-trio .n31-reel { width: min(66%, 240px); }
  .n31-rt .n31-reel { width: min(84%, 300px); }
  .n31-copy { padding: 0 4px; }
  .n31-strip i { width: 13px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .n31-strip i.w { animation: none; }
}
