/* Eliio V6 · small additions on top of site-pages.css, theme-mix.css and v5.css */

/* Compact approval marker inside cards */
.v6-pending-inline {
  margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--sp-accent-text);
  font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; color: var(--sp-muted);
}
.v6-pending-inline span {
  display: inline-block; margin-right: 6px; padding: 2px 7px; border-radius: 999px;
  background: var(--sp-accent-text); color: var(--sp-bg);
  font-family: var(--sp-font-body); font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}

/* Section heads with a status label */
.sp-head > .v5-label { margin-bottom: 12px; }

/* Five nav items + language switch in the mix header: tighten at laptop widths */
@media (min-width: 1024px) and (max-width: 1279px) {
  body[data-variant="v6-mix"] .cmp-slot[data-section="S01"] .nav-links a { padding-inline: 9px; font-size: 14px; }
}

/* The hero of the mix is the homepage's first section; the page content follows it */
body[data-variant="v6-mix"] .cmp-slot[data-section="S02"] + [data-site-main] > .sp-section:first-child { padding-top: calc(var(--sp-y) * 0.7); }

/* ==========================================================================
   Day preview that recomposes itself (v6.js): activities swap, times stay
   ========================================================================== */
.v6-day li { position: relative; transition: background 450ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 450ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.v6-day li > span { position: relative; z-index: 1; padding-right: 36px; transition: transform 650ms cubic-bezier(0.65, 0, 0.35, 1), opacity 260ms ease, translate 260ms ease; }
.v6-day li > span.v6-out { opacity: 0; translate: 14px 0; }
.v6-day li.is-moved { background: var(--sp-tint); box-shadow: inset 0 0 0 1px rgb(243 125 48 / 0.35); }
.v6-day-mark {
  position: absolute; right: 12px; top: 50%; translate: 0 -50%; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--sp-card); color: var(--sp-accent-text);
  border: 1px solid var(--sp-line); opacity: 0; scale: 0.6; transition: opacity 300ms ease, scale 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.v6-day-mark .icon { width: 15px; height: 15px; }
.v6-day li.is-moved .v6-day-mark { opacity: 1; scale: 1; }

/* ==========================================================================
   Proof strip: equal logo tiles, logos sized to their shape, claims in a row
   ========================================================================== */
.v6-proof-section {
  --v6-proof-bg: linear-gradient(120deg, #fff5ed 0%, #fbf7f4 48%, #f4f1fb 100%);
  padding-block: 56px; background: var(--v6-proof-bg); border-block: 1px solid var(--sp-line);
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])):not([data-theme="light"]) .v6-proof-section { --v6-proof-bg: linear-gradient(120deg, rgb(243 125 48 / 0.10), rgb(255 255 255 / 0.02) 50%, rgb(140 120 220 / 0.10)); }
}

  :root:where([data-theme="dark"]):not([data-theme="light"]) .v6-proof-section { --v6-proof-bg: linear-gradient(120deg, rgb(243 125 48 / 0.10), rgb(255 255 255 / 0.02) 50%, rgb(140 120 220 / 0.10)); }

:root[data-theme="dark"] .v6-proof-section { --v6-proof-bg: linear-gradient(120deg, rgb(243 125 48 / 0.10), rgb(255 255 255 / 0.02) 50%, rgb(140 120 220 / 0.10)); }
.v6-proof { text-align: center; }
.v6-proof-title { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sp-muted); }
/* Marquee: one track holding the list twice; it slides by exactly one set (50%) and pauses on hover or focus. */
.v6-marquee {
  --gap: 10px; --tile: 138px; --speed: 38s;
  margin-top: 20px; overflow: hidden; padding-block: 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.v6-logos { display: flex; width: max-content; animation: v6-marquee var(--speed) linear infinite; }
.v6-marquee:hover .v6-logos, .v6-marquee:focus-within .v6-logos { animation-play-state: paused; }
@keyframes v6-marquee { to { transform: translateX(-50%); } }
.v6-logos li {
  flex: 0 0 var(--tile); margin-right: var(--gap); min-width: 0;
  display: grid; place-items: center; height: 84px; padding: 12px;
  border-radius: 16px; background: #fff; border: 1px solid var(--sp-line);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
.v6-logos img { display: block; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: 0.85; transition: filter 250ms ease, opacity 250ms ease; }
.v6-logos .is-badge img { height: 58px; }
.v6-logos .is-light img { filter: grayscale(1) brightness(1.35) contrast(0.85); }
.v6-logos .is-wide img { height: auto; width: 100%; max-width: 118px; }
.v6-logos .is-word img { height: 38px; }
@media (hover: hover) {
  .v6-logos li:hover { border-color: var(--sp-line-strong); box-shadow: 0 6px 18px rgb(16 16 24 / 0.08); transform: translateY(-2px); }
  .v6-logos li:hover img { filter: none; opacity: 1; }
}
/* Text lockups (E-Chopper: bolt + name, as on their sites) */
.v6-logo-text { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: #52525b; font-weight: 700; font-size: 13px; line-height: 1.1; letter-spacing: -0.01em; text-align: left; opacity: 0.9; transition: color 250ms ease, opacity 250ms ease; }
.v6-logo-text svg { flex: none; width: 18px; height: 18px; }
.v6-logos li.is-text { padding-inline: 8px; }
@media (hover: hover) {
  .v6-logos li:hover .v6-logo-text { color: #15803d; opacity: 1; }
  .v6-logos li:hover .v6-logo-text svg { color: #22c55e; }
}
/* No motion: a still, wrapped row of the real set only. */
@media (prefers-reduced-motion: reduce) {
  .v6-marquee { -webkit-mask-image: none; mask-image: none; }
  .v6-logos { width: auto; flex-wrap: wrap; justify-content: center; row-gap: var(--gap); animation: none; }
  .v6-logos li[aria-hidden="true"] { display: none; }
}
.v6-proof-claims { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.v6-proof-claims li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 18px;
  background: var(--sp-card); border: 1px solid var(--sp-line); font-size: 14px; line-height: 1.35; text-align: left;
}
.v6-proof-claims .icon { flex: none; width: 15px; height: 15px; color: var(--sp-tick, var(--sp-accent-text)); stroke-width: 2.4; }
@media (min-width: 768px) {
  .v6-proof-section { padding-block: 72px; }
  .v6-marquee { --gap: 14px; --tile: 200px; --speed: 46s; margin-top: 24px; }
  .v6-logos li { height: 96px; }
  .v6-logos .is-badge img { height: 70px; }
  .v6-logos .is-wide img { max-width: 140px; }
  .v6-logos .is-word img { height: 50px; }
  .v6-logo-text { font-size: 16px; gap: 8px; }
  .v6-logos li.is-text { padding-inline: 12px; }
  .v6-logo-text svg { width: 24px; height: 24px; }
  .v6-proof-claims { margin-top: 24px; gap: 10px; }
}

/* ==========================================================================
   Hero story (V08): the headline changes once the chaos calms down (story.js, title option)
   ========================================================================== */
.story .h1.st-swap { display: grid; }
.story .h1.st-swap > .st-line { grid-area: 1 / 1; display: block; will-change: transform, opacity; }
.st-grad {
  --st-grad: linear-gradient(96deg, #e06a1e 2%, #df6418 30%, #b94c13 64%, #5a4a86 98%);
  color: #b94c13;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])):not([data-theme="light"]) .st-grad { --st-grad: linear-gradient(96deg, #fbb47a 4%, #f8984f 34%, #f37d30 62%, #b4a9e6 96%); color: #fbb47a; }
}

  :root:where([data-theme="dark"]):not([data-theme="light"]) .st-grad { --st-grad: linear-gradient(96deg, #fbb47a 4%, #f8984f 34%, #f37d30 62%, #b4a9e6 96%); color: #fbb47a; }

:root[data-theme="dark"] .st-grad { --st-grad: linear-gradient(96deg, #fbb47a 4%, #f8984f 34%, #f37d30 62%, #b4a9e6 96%); color: #fbb47a; }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .st-grad {
    background-image: var(--st-grad); -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-bottom: 0.06em;
  }
}

/* Hero story: no subtitle, so the headline breathes; desktop spacing keeps the planner high */
body:is([data-variant="v6-mix"], [data-variant="v7-mix"], [data-variant="v8-mix"]) .story .hero-lead { display: none; }
body:is([data-variant="v6-mix"], [data-variant="v7-mix"], [data-variant="v8-mix"]) .story .hero-actions { margin-top: 28px; }
@media (min-width: 1024px) {
  body:is([data-variant="v6-mix"], [data-variant="v7-mix"], [data-variant="v8-mix"]) .story-copy { padding-top: calc(var(--header-space) + clamp(16px, 3.4vh, 36px)); }
  body:is([data-variant="v6-mix"], [data-variant="v7-mix"], [data-variant="v8-mix"]) .story .h1 { font-size: clamp(56px, 4.4vw, 64px); }
  body:is([data-variant="v6-mix"], [data-variant="v7-mix"], [data-variant="v8-mix"]) .story .hero-actions { margin-top: 36px; }
  body:is([data-variant="v6-mix"], [data-variant="v7-mix"], [data-variant="v8-mix"]) .story .hero-points { margin-top: 22px; }
  body:is([data-variant="v6-mix"], [data-variant="v7-mix"], [data-variant="v8-mix"]) .story .screen-slot { margin-top: clamp(24px, 3.6vh, 40px); }
}
@media (min-width: 1024px) and (max-height: 820px) {
  body:is([data-variant="v6-mix"], [data-variant="v7-mix"], [data-variant="v8-mix"]) .story .h1 { font-size: 54px; }
}

/* Eliio logo between the header and the headline (story.js, logo option) */
.story .st-logo { display: block; margin-bottom: 14px; will-change: transform, opacity; }
.story .st-logo img { display: block; height: 40px; width: auto; }
@media (min-width: 1024px) { .story .st-logo { margin-bottom: 18px; } .story .st-logo img { height: 52px; } }

/* Hero story: skip button (story.js skip option), top right where the header will appear */
.story .st-skip {
  position: absolute; top: 18px; right: 16px; z-index: 30; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px 9px 16px; border: 1px solid rgb(16 16 24 / 0.12); border-radius: 999px;
  background: rgb(255 255 255 / 0.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #18181b; font: 600 14px/1 Inter, system-ui, sans-serif; cursor: pointer;
  box-shadow: 0 4px 14px rgb(16 16 24 / 0.08); transition: opacity 250ms ease, visibility 0s linear 0s, background 150ms ease;
}
.story .st-skip svg { width: 14px; height: 14px; }
.story .st-skip:hover { background: #fff; }
.story .st-skip:focus-visible { outline: 2px solid #f37d30; outline-offset: 3px; }
.story .st-skip.is-gone { opacity: 0; visibility: hidden; transition: opacity 250ms ease, visibility 0s linear 250ms; }
@media (min-width: 1024px) { .story .st-skip { top: 24px; right: 32px; } }
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])):not([data-theme="light"]) .story .st-skip { background: rgb(24 24 27 / 0.82); border-color: rgb(255 255 255 / 0.14); color: #fafafa; }
}

  :root:where([data-theme="dark"]):not([data-theme="light"]) .story .st-skip { background: rgb(24 24 27 / 0.82); border-color: rgb(255 255 255 / 0.14); color: #fafafa; }

:root[data-theme="dark"] .story .st-skip { background: rgb(24 24 27 / 0.82); border-color: rgb(255 255 255 / 0.14); color: #fafafa; }

/* Header waits for the hero story (story.js, headerAfter option) */
.cmp-slot[data-section="S01"] { transition: opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0s; }
html.st-head-wait .cmp-slot[data-section="S01"] { opacity: 0; visibility: hidden; transition: opacity 250ms ease, visibility 0s linear 250ms; }
@media (prefers-reduced-motion: reduce) { html.st-head-wait .cmp-slot[data-section="S01"] { opacity: 1; visibility: visible; } }
