/* ═══════════════════════════════════════════════════════
   YallaPOS — Solutions carousel (homepage)
   Square-style expandable focal carousel
═══════════════════════════════════════════════════════ */

/* Section is sized to fit ONE viewport — total height = 100vh, internal
   layout is a vertical flex column so the header + carousel split the
   space. Header is compact, carousel takes the rest.

   GOD-TIER COLOR TREATMENT:
     The previous attempt used a 160px linear-gradient scrim to "dissolve"
     the seam from the cream section above. It read as an amateur fade
     band. Killed.

     New approach (Apple/Stripe/Linear playbook):
       1. CLEAN HARD EDGE at the top — confident break from cream to
          deep near-black, no fade. The contrast IS the design.
       2. A 1px amber hairline sits exactly on that seam — almost
          subliminal, but it makes the cut feel intentional + branded.
       3. A WARM amber atmospheric glow above the fold and a cool blue
          glow at the bottom-left give the dark slab real depth (not a
          flat painted wall).
       4. Background isn't pure navy — it's near-black with a tiny
          warm undertone (#0B0F1A → #07090E radial), so the dark
          feels rich and analog, not "default web dark".
*/
.sol-section {
  position: relative;
  /* Lock to a single viewport — height not just min-height, so the
     header + carousel split the visible space and never push past the
     fold even on shorter laptop screens. */
  height: 100vh;
  min-height: 600px;
  padding: clamp(36px, 4.5vh, 56px) 0 clamp(28px, 3.5vh, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  background:
    /* warm amber atmospheric glow upper-right (carries the brand accent) */
    radial-gradient(60% 55% at 85% 5%, rgba(255, 184, 77, 0.14) 0%, rgba(255, 184, 77, 0) 60%),
    /* cool blue glow lower-left (depth + balance) */
    radial-gradient(55% 60% at 8% 100%, rgba(91, 115, 240, 0.10) 0%, rgba(91, 115, 240, 0) 65%),
    /* base — near-black with a faint warm radial centre, never flat */
    radial-gradient(100% 100% at 50% 0%, #0E1320 0%, #07090E 100%);
  color: #FFF;
  overflow: hidden;
}
/* Branded hairline RIGHT on the seam from the cream section above —
   ~1.5px of amber that bleeds inward, making the hard transition feel
   intentional and luxurious instead of accidental. */
.sol-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1.5px;
  background: linear-gradient(
    90deg,
    rgba(255, 184, 77, 0) 0%,
    rgba(255, 184, 77, 0.55) 20%,
    rgba(255, 184, 77, 0.85) 50%,
    rgba(255, 184, 77, 0.55) 80%,
    rgba(255, 184, 77, 0) 100%
  );
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 0 28px rgba(255, 184, 77, 0.35);
}
/* Faint film-grain texture for premium analog depth (CSS-only). */
.sol-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 2px;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
  opacity: 0.55;
}

.sol-wrap {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  box-sizing: border-box;
}

/* ── Header ─────────────────────────────────────────── */
.sol-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(14px, 2vh, 22px);
  flex-shrink: 0;
}

.sol-header-copy {
  max-width: 760px;
}

/* Eyebrow chip above the title — mirrors the brand pattern in the hero
   and business-platform sections (amber dot + uppercase tracking). */
.sol-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.sol-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50% !important;
  background: #FFB84D;
  box-shadow: 0 0 12px rgba(255, 184, 77, 0.7);
}

/* Title — bold Inter on dark, single line. Clamp uses vh as well as
   vw so it shrinks on short screens to keep the whole section in one
   viewport. */
.sol-title {
  font-family: 'Inter', 'Cairo', sans-serif;
  font-size: clamp(26px, min(3.6vw, 5.5vh), 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: #FFF;
  margin: 0 0 12px;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

.sol-sub {
  font-size: clamp(13.5px, 1.05vw, 16px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 14px;
  max-width: 560px;
}

.sol-cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: #FFF;
  text-decoration: underline;
  text-decoration-color: rgba(255, 184, 77, 0.7);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.25s ease, color 0.25s ease;
}

.sol-cta:hover {
  color: #FFB84D;
  text-decoration-color: #FFB84D;
}

.sol-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sol-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: #FFF;
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sol-arrow:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 184, 77, 0.5);
  color: #FFB84D;
}

.sol-arrow:active {
  transform: scale(0.94);
}

/* ── Track ──────────────────────────────────────────── */
.sol-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  outline: none;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scroll-padding-inline: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.sol-viewport::-webkit-scrollbar {
  display: none;
}

.sol-viewport.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}

.sol-viewport.is-navigating {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.sol-viewport.is-hover-expanding {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.sol-viewport:focus-visible {
  box-shadow: 0 0 0 2px rgba(13, 17, 23, 0.25);
  border-radius: 12px;
}

.sol-track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding-bottom: 2px;
}

.sol-card {
  flex: 0 0 auto;
  scroll-snap-align: center;
  min-width: 0;
  transition:
    flex-basis 720ms cubic-bezier(0.16, 1, 0.3, 1),
    width 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

.sol-card-media {
  cursor: pointer;
}

.sol-card-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Card media shell ───────────────────────────────── */
/* Card media height — calc subtracts the chrome (section padding +
   header + label + gaps) from 100vh so the card always sits exactly
   inside one viewport. Clamped so it never gets uncomfortably small
   or absurdly tall on giant monitors. */
.sol-card-media {
  position: relative;
  height: clamp(300px, calc(100vh - 320px), 540px);
  border-radius: 12px;
  overflow: hidden;
  background: #E8E4DC;
}

/* Fallback gradient lives BEHIND the video; visible only during the
   brief moment between mount and the video's first frame loading. The
   video covers it once metadata is in. */
.sol-card-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #3d4f6a 0%,
    #1a2233 40%,
    #0d1117 100%
  );
  background-size: 200% 200%;
  opacity: 1;
  animation: solGradientShift 8s ease-in-out infinite;
}

@keyframes solGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Video is ALWAYS visible — paused on a poster frame by default, plays
   only when its card is hovered (handled by JS). Subtle scale-on-hover
   adds a touch of life on interaction. */
.sol-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transform: scale(1);
  transition: transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Static product thumbnail is no longer used — the video itself is the
   only visual layer. Hidden, not removed from the markup so existing
   templates still parse. */
.sol-card-thumb {
  display: none;
}

.sol-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.28) 42%,
    rgba(0, 0, 0, 0) 68%
  );
  opacity: 0;
  transition: opacity 500ms ease;
}

/* ── Expanded overlay ───────────────────────────────── */
.sol-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 28px 26px;
  pointer-events: none;
}

.sol-card-overlay > * {
  pointer-events: auto;
}

.sol-card-title {
  display: inline-block;
  align-self: flex-start;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  margin: 0 0 8px;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 480ms ease,
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--reveal-i, 0) * 60ms);
}

.sol-card-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 8px;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 480ms ease,
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 60ms;
}

.sol-card-desc {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 auto;
  max-width: 340px;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 480ms ease,
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 120ms;
}

.sol-card-learn {
  align-self: flex-end;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 480ms ease,
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 180ms;
}

.sol-card-learn:hover {
  color: #fff;
}

/* ── Collapsed label ──────────────────────────────────
   Label sits under the card on the dark section background, so it
   needs light text + a subtle amber underline to feel branded. */
.sol-card-label {
  display: inline-block;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-decoration-color: rgba(255, 184, 77, 0.55);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  opacity: 1;
  transform: translateY(0);
  transition:
    color 220ms ease,
    text-decoration-color 220ms ease,
    opacity 360ms ease,
    transform 480ms cubic-bezier(0.16, 1, 0.3, 1);
}
.sol-card-label:hover {
  color: #FFB84D;
  text-decoration-color: #FFB84D;
}

/* ── Active state ─────────────────────────────────────
   Video is always opacity:1 so it doesn't need a toggle. The active
   state shows the scrim + overlay copy, and a subtle hover-scale on
   the video itself adds life when the user mouses in. */
.sol-card.is-active .sol-card-scrim,
.sol-card[data-active="true"] .sol-card-scrim {
  opacity: 1;
}

.sol-card:hover .sol-card-video {
  transform: scale(1.03);
}

.sol-card.is-active .sol-card-title,
.sol-card.is-active .sol-card-badge,
.sol-card.is-active .sol-card-desc,
.sol-card.is-active .sol-card-learn,
.sol-card[data-active="true"] .sol-card-title,
.sol-card[data-active="true"] .sol-card-badge,
.sol-card[data-active="true"] .sol-card-desc,
.sol-card[data-active="true"] .sol-card-learn {
  opacity: 1;
  transform: translateY(0);
}

.sol-card.is-active .sol-card-label,
.sol-card[data-active="true"] .sol-card-label {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

/* (Removed) — both rules below referenced .sol-card-thumb which is now
   display:none, and the bg-color hover was only visible behind a thumb.
   The video itself fills the card now, so no media-background hover is
   needed. */

/* ═══════════════════════════════════════════════════════
   PRODUCT MOCKS — Loyalty, KDS, AI chatbot
   Hand-crafted CSS animations that REPLACE stock video for the
   solutions where literal restaurant-tech footage doesn't exist.
═══════════════════════════════════════════════════════ */

.sol-mock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  box-sizing: border-box;
  font-family: 'Inter', 'Cairo', sans-serif;
  pointer-events: none;
}

/* ── Alfredo chat ─────────────────────────────────────────── */
.sol-mock--ai {
  background: radial-gradient(120% 80% at 50% 0%, #1a2236 0%, #0a0f1c 60%, #06090f 100%);
}
.sol-mock-chat-frame {
  width: min(100%, 320px);
  max-height: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
}
.sol-mock-chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sol-mock-chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #FFB84D, #FF6B6B);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sol-mock-chat-id { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
.sol-mock-chat-name { color: #fff; font-size: 13px; font-weight: 600; }
.sol-mock-chat-status { color: rgba(255, 255, 255, 0.45); font-size: 10px; }
.sol-mock-chat-dot {
  width: 8px; height: 8px;
  border-radius: 50% !important;
  background: #4ADE80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: solDotPulse 2.4s ease-in-out infinite;
}
@keyframes solDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}
.sol-mock-chat-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.sol-mock-bubble {
  max-width: 78%;
  padding: 8px 12px;
  font-size: 12.5px;
  line-height: 1.42;
  border-radius: 14px !important;
  opacity: 0;
  transform: translateY(8px);
  animation: solBubbleIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s) forwards,
             solChatLoop 9s linear var(--d, 0s) infinite;
}
.sol-mock-bubble--user {
  align-self: flex-end;
  background: linear-gradient(135deg, #5C7BFF, #4763E0);
  color: #fff;
  border-bottom-right-radius: 4px !important;
}
.sol-mock-bubble--ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  border-bottom-left-radius: 4px !important;
}
.sol-mock-bubble--typing {
  display: flex;
  gap: 4px;
  padding: 10px 12px;
}
.sol-mock-bubble--typing span {
  width: 6px; height: 6px;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.55);
  animation: solTyping 1.2s ease-in-out infinite;
}
.sol-mock-bubble--typing span:nth-child(2) { animation-delay: 0.18s; }
.sol-mock-bubble--typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes solTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-3px); opacity: 1; }
}
@keyframes solBubbleIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* After 8s reset so the conversation re-plays each loop */
@keyframes solChatLoop {
  0%   { opacity: 1; }
  88%  { opacity: 1; }
  92%  { opacity: 0; }
  100% { opacity: 0; }
}

/* ── KDS display ─────────────────────────────────────────── */
.sol-mock--kds {
  background: radial-gradient(120% 80% at 50% 0%, #0e1c12 0%, #060c08 100%);
  padding: 18px 16px;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
}
.sol-mock-kds-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sol-mock-kds-bar-dot {
  width: 8px; height: 8px;
  border-radius: 50% !important;
  background: #4ADE80;
  animation: solDotPulse 2s ease-in-out infinite;
}
.sol-mock-kds-bar-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sol-mock-kds-bar-clock { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.55); }
.sol-mock-kds-rail {
  display: flex;
  gap: 10px;
  width: 100%;
  align-items: stretch;
}
.sol-mock-ticket {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.86);
  opacity: 0;
  transform: translateY(14px);
  animation: solTicketIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s) forwards,
             solTicketCycle 7.2s ease-in-out var(--d, 0s) infinite;
  border-radius: 8px !important;
}
.sol-mock-ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-weight: 600;
  font-size: 11px;
}
.sol-mock-ticket-head > span:first-child {
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}
.sol-mock-status {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 4px !important;
  text-transform: uppercase;
}
.sol-mock-status--new   { color: #FFD66E; background: rgba(255, 214, 110, 0.16); }
.sol-mock-status--cook  { color: #FF9F5C; background: rgba(255, 159, 92, 0.18); }
.sol-mock-status--ready { color: #62E89A; background: rgba(98, 232, 154, 0.18); }
.sol-mock-ticket-row { color: rgba(255, 255, 255, 0.78); line-height: 1.4; }
.sol-mock-ticket-foot {
  margin-top: auto;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.45);
}
@keyframes solTicketIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Subtle breathe so the rail feels alive even between status flips */
@keyframes solTicketCycle {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}

/* ── Loyalty rewards card ─────────────────────────────────── */
.sol-mock--loyalty {
  background:
    radial-gradient(120% 70% at 50% 0%, #2d2018 0%, #150d08 70%, #0a0604 100%);
}
.sol-mock-phone {
  width: min(220px, 78%);
  aspect-ratio: 9 / 17.5;
  background: #1a1206;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  position: relative;
  padding: 14px 10px 16px;
  display: flex;
  flex-direction: column;
  border-radius: 28px !important;
  overflow: hidden;
}
.sol-mock-phone-notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 14px;
  background: #000;
  border-radius: 0 0 12px 12px !important;
}
.sol-mock-phone-screen {
  flex: 1;
  margin-top: 18px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.sol-mock-loy-brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFB84D;
  text-align: center;
}
.sol-mock-loy-card {
  width: 100%;
  background: linear-gradient(135deg, #FFB84D 0%, #FF8A3D 100%);
  color: #1a0f04;
  padding: 12px 10px 10px;
  border-radius: 10px !important;
  box-shadow: 0 10px 30px rgba(255, 138, 61, 0.3);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sol-mock-loy-title {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.sol-mock-loy-stamps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.sol-mock-stamp {
  aspect-ratio: 1;
  border: 1.5px dashed rgba(26, 15, 4, 0.4);
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a0f04;
}
.sol-mock-stamp svg { width: 60%; height: 60%; opacity: 0; transform: scale(0.4); transition: none; }
.sol-mock-stamp { animation: solStampFill 8s linear infinite; animation-delay: calc(var(--i) * 0.55s); }
@keyframes solStampFill {
  0%   { background: transparent;    border-style: dashed; }
  3%   { background: #1a0f04;        border-style: solid;  }
  88%  { background: #1a0f04;        border-style: solid;  }
  92%  { background: transparent;    border-style: dashed; }
  100% { background: transparent;    border-style: dashed; }
}
.sol-mock-stamp svg { animation: solCheckIn 8s linear infinite; animation-delay: calc(var(--i) * 0.55s); }
@keyframes solCheckIn {
  0%, 2%   { opacity: 0; transform: scale(0.4); }
  4%, 88%  { opacity: 1; transform: scale(1); color: #FFB84D; }
  92%, 100% { opacity: 0; transform: scale(0.4); }
}
.sol-mock-loy-progress {
  height: 4px;
  background: rgba(26, 15, 4, 0.2);
  border-radius: 99px !important;
  overflow: hidden;
}
.sol-mock-loy-progress-fill {
  height: 100%;
  width: 50%;
  background: #1a0f04;
  border-radius: 99px !important;
  animation: solProgressGrow 8s linear infinite;
}
@keyframes solProgressGrow {
  0%   { width: 0%; }
  85%  { width: 100%; }
  92%  { width: 0%; }
  100% { width: 0%; }
}
.sol-mock-loy-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9.5px;
  font-weight: 600;
}
.sol-mock-loy-count { font-variant-numeric: tabular-nums; }
.sol-mock-loy-num   { font-size: 13px; font-weight: 800; }
.sol-mock-loy-cta {
  font-size: 8.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(26, 15, 4, 0.7);
}

/* Reduced motion — pause all mock animations on the user's preference */
@media (prefers-reduced-motion: reduce) {
  .sol-mock-bubble,
  .sol-mock-bubble--typing span,
  .sol-mock-chat-dot,
  .sol-mock-kds-bar-dot,
  .sol-mock-ticket,
  .sol-mock-stamp,
  .sol-mock-stamp svg,
  .sol-mock-loy-progress-fill {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Mobile ─────────────────────────────────────────── */
.sol-mobile-meta {
  display: none;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

@media (max-width: 768px) {
  /* Below desktop the section is no longer height-locked — content stacks
     normally and the title is allowed to wrap (nowrap can't fit
     "One platform, every workflow" at a sane size on phones). */
  .sol-section {
    min-height: 0;
    padding: 48px 0 40px;
    justify-content: flex-start;
  }

  .sol-wrap {
    padding: 0 20px;
  }

  .sol-title {
    white-space: normal;
  }

  .sol-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
  }

  .sol-nav {
    align-self: flex-end;
  }

  .sol-viewport {
    scroll-snap-type: x mandatory;
  }

  .sol-card {
    scroll-snap-align: center;
  }

  .sol-card-media {
    height: min(420px, 72vw);
  }

  .sol-card-label {
    display: none;
  }

  .sol-card.is-active .sol-card-label,
  .sol-card[data-active="true"] .sol-card-label {
    display: none;
  }

  .sol-mobile-meta {
    display: block;
  }
}

@media (max-width: 640px) {
  .sol-title {
    font-size: clamp(26px, 7.5vw, 34px);
  }
}

/* ── Reduced motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .sol-viewport {
    scroll-behavior: auto;
  }

  .sol-track,
  .sol-card,
  .sol-card-video,
  .sol-card-thumb,
  .sol-card-scrim,
  .sol-card-title,
  .sol-card-badge,
  .sol-card-desc,
  .sol-card-learn,
  .sol-card-label,
  .sol-card-fallback {
    transition: none !important;
    animation: none !important;
  }

  .sol-card.is-active .sol-card-video,
  .sol-card[data-active="true"] .sol-card-video {
    display: none;
  }

  .sol-card.is-active .sol-card-thumb,
  .sol-card[data-active="true"] .sol-card-thumb {
    opacity: 0.35;
    transform: translate(-50%, -50%) scale(1);
  }
}
