/**
 * Service page — the design's dedicated service layout.
 *
 * Loaded only on single service pages, on top of layout.css. All colours and
 * spacing come from tokens.css; the only new values here are the ones the
 * design introduces for this page type (film heights, ghost word sizes).
 *
 * Every animation is gated behind prefers-reduced-motion at the bottom.
 */

.tim-sp {
  background: var(--tim-dark);
  color: var(--tim-on-dark);
}

/* --------------------------------------------------------------- shared */

.tim-sp__section {
  position: relative;
  padding: 76px var(--tim-section-x);
  overflow: hidden;
}

.tim-sp__section--light {
  background: var(--tim-cream);
  color: var(--tim-ink);
}

.tim-sp__section--intro {
  padding-bottom: 20px;
}

.tim-sp__inner {
  position: relative;
  max-width: var(--tim-container);
  margin: 0 auto;
}

.tim-sp__inner--narrow {
  max-width: 900px;
}

.tim-sp__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.tim-sp__heading {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 0;
}

.tim-sp__kicker {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--tim-magenta);
  font: 600 13px/1 var(--tim-font-body);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.tim-sp__section--light .tim-sp__kicker {
  color: var(--tim-magenta);
}

.tim-sp__title {
  margin: 0;
  font: 800 clamp(28px, 3.2vw, 44px) / 1.1 var(--tim-font-display);
  letter-spacing: -0.5px;
  text-wrap: pretty;
}

.tim-sp__accent {
  color: var(--tim-magenta);
}

.tim-sp__outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.45);
}

.tim-sp__note,
.tim-sp__lede {
  margin: 0;
  color: var(--tim-on-dark-dim);
  font: 400 15.5px/1.55 var(--tim-font-body);
  max-width: 340px;
}

.tim-sp__section--light .tim-sp__note,
.tim-sp__section--light .tim-sp__lede {
  color: var(--tim-ink-500);
}

.tim-sp__lede {
  max-width: 520px;
}

/* Oversized background word. Decorative: never selectable, never read out. */
.tim-sp__ghost {
  position: absolute;
  font: 800 clamp(120px, 18vw, 240px) / 1 var(--tim-font-display);
  letter-spacing: -8px;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.tim-sp__section--light .tim-sp__ghost {
  color: rgba(20, 18, 22, 0.04);
}

.tim-sp__ghost--bl { left: -30px; bottom: -50px; }
.tim-sp__ghost--br { right: -30px; bottom: -50px; }
.tim-sp__ghost--tr { right: -30px; top: -40px; }

.tim-sp__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 900px 520px at 20% 40%, rgba(230, 0, 126, 0.1) 0%, rgba(230, 0, 126, 0) 70%);
  pointer-events: none;
}

.tim-sp__glow--right {
  background: radial-gradient(ellipse 1000px 560px at 80% 30%, rgba(230, 0, 126, 0.12) 0%, rgba(230, 0, 126, 0) 70%);
}

.tim-sp__glow--top {
  background: radial-gradient(ellipse 1000px 520px at 50% 0%, rgba(230, 0, 126, 0.18) 0%, rgba(230, 0, 126, 0) 70%);
}

/* Reveal — driven by IntersectionObserver, not by page load. */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--tim-ease), transform 0.8s var(--tim-ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------ 1 · film */

.tim-sp-film {
  position: relative;
  height: 100vh;
  background: var(--tim-dark);
}

/* The tall scroll track only exists once JS confirms it can drive it. */
.tim-sp-film.is-live {
  height: 380vh;
}

.tim-sp-film.is-live.is-poster-only {
  /* Shorter: with no video to scrub there is less to look at per screen. */
  height: 260vh;
}

.tim-sp-film__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--tim-dark);
}

.tim-sp-film__video,
.tim-sp-film__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
}

.tim-sp-film__video {
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* The poster carries the frame until the blob is ready, then hands over. */
.tim-sp-film.is-ready .tim-sp-film__video { opacity: 1; }
.tim-sp-film.is-ready .tim-sp-film__poster { opacity: 0; }

.tim-sp-film__poster {
  transition: opacity 0.6s ease;
}

/*
 * The finished-work still. Sits above the video and poster but below the
 * scrims, so the headline stays readable once it fades in on the last phase.
 */
.tim-sp-film__final {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.tim-sp-film__final.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .tim-sp-film__final {
    transition: none;
  }
}

.tim-sp-film__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tim-sp-film__scrim--v {
  background: linear-gradient(0deg, rgba(13, 11, 15, 0.92) 0%, rgba(13, 11, 15, 0.05) 42%, rgba(13, 11, 15, 0.4) 100%);
}

.tim-sp-film__scrim--h {
  background: linear-gradient(90deg, rgba(13, 11, 15, 0.8) 0%, rgba(13, 11, 15, 0.25) 48%, rgba(13, 11, 15, 0) 72%);
}

.tim-sp-film__body {
  position: absolute;
  left: var(--tim-section-x);
  right: var(--tim-section-x);
  bottom: 104px;
  max-width: 840px;
}

.tim-sp-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--tim-on-dark-dim);
  font: 500 13px/1 var(--tim-font-body);
  flex-wrap: wrap;
}

.tim-sp-crumbs a { color: var(--tim-on-dark-dim); text-decoration: none; }
.tim-sp-crumbs a:hover { color: var(--tim-magenta-light); }
.tim-sp-crumbs [aria-current] { color: var(--tim-on-dark); }

/* Phases stack; only the active one is laid out. */
.tim-sp-phase {
  display: none;
  flex-direction: column;
  gap: 15px;
}

.tim-sp-phase.is-active { display: flex; }

.tim-sp-phase.is-enter {
  animation: tim-sp-in 0.6s var(--tim-ease) both;
}

@keyframes tim-sp-in {
  from { opacity: 0; transform: translateY(24px); clip-path: inset(0 0 100% 0); }
  to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}

.tim-sp-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--tim-magenta-light);
  font: 600 13px/1.3 var(--tim-font-body);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.tim-sp-kicker__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tim-magenta);
  flex: none;
  animation: tim-sp-dot 2.4s ease-in-out infinite;
}

@keyframes tim-sp-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 0, 126, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(230, 0, 126, 0); }
}

/*
 * Phase headlines vary a lot in length — "Klikne." against "A přistane na
 * stránce, která prodává." Sizing on the viewport alone let the long ones run
 * to four lines and collide with the lede, so the size also scales with the
 * available height and the block is capped.
 */
.tim-sp-film__title {
  margin: 0;
  font: 800 clamp(30px, min(4.4vw, 7vh), 62px) / 1.08 var(--tim-font-display);
  letter-spacing: -1.5px;
  color: var(--tim-on-dark);
  text-wrap: balance;
  max-width: 15ch;
}

.tim-sp-film__title .tim-sp__accent {
  text-shadow: 0 0 70px rgba(230, 0, 126, 0.45);
}

.tim-sp-film__lede {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font: 400 18px/1.6 var(--tim-font-body);
  max-width: 540px;
  text-wrap: pretty;
}

.tim-sp-film__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  transition: opacity 0.5s ease;
}

.tim-sp-film__actions.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.tim-sp-film__badge {
  color: rgba(255, 255, 255, 0.55);
  font: 500 14px/1.4 var(--tim-font-body);
}

.tim-sp-film__progress {
  position: absolute;
  left: var(--tim-section-x);
  right: var(--tim-section-x);
  bottom: 34px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.tim-sp-film__progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tim-sp-film__idx {
  color: var(--tim-on-dark);
  font: 800 17px/1 var(--tim-font-display);
}

.tim-sp-film__idx-total { color: rgba(255, 255, 255, 0.4); }

.tim-sp-film__hint {
  color: var(--tim-magenta-light);
  font: 600 12px/1.3 var(--tim-font-body);
  letter-spacing: 2px;
  text-align: right;
}

/* The floating phone pill is fixed at the bottom-right and would sit on top
   of the hint. Keep the whole progress row clear of it. */
@media (min-width: 901px) {
  .tim-sp-film__progress { padding-right: 210px; }
}

.tim-sp-film__track {
  position: relative;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
}

.tim-sp-film__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, var(--tim-magenta), var(--tim-magenta-light));
  box-shadow: 0 0 14px rgba(230, 0, 126, 0.7);
}

/* ---------------------------------------------------------- 2 · stroj */

.tim-sp-stroj__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 12px;
  align-items: stretch;
}

.tim-sp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--tim-dark-panel-2);
  border: 1.5px solid var(--tim-line-dark);
  border-radius: 20px;
  padding: 18px;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

[data-stroj-card="1"].is-lit { border-color: rgba(66, 133, 244, 0.85); box-shadow: 0 0 44px rgba(66, 133, 244, 0.3); }
[data-stroj-card="2"].is-lit { border-color: rgba(52, 168, 83, 0.85); box-shadow: 0 0 44px rgba(52, 168, 83, 0.28); }
[data-stroj-card="3"].is-lit { border-color: rgba(230, 0, 126, 0.85); box-shadow: 0 0 44px rgba(230, 0, 126, 0.32); }

.tim-sp-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tim-sp-card__label {
  color: var(--tim-on-dark-dim);
  font: 600 10.5px/1 var(--tim-font-body);
  letter-spacing: 2px;
}

.tim-sp-card__count,
.tim-sp-card__big {
  color: var(--tim-on-dark);
  font: 800 20px/1 var(--tim-font-display);
}

.tim-sp-card__big {
  font-size: clamp(26px, 3vw, 38px);
}

.tim-sp-card__live {
  color: var(--tim-seo);
  font: 600 11px/1 var(--tim-font-body);
  letter-spacing: 1px;
}

.tim-sp-card__sub {
  color: var(--tim-on-dark-dim);
  font: 500 12px/1.3 var(--tim-font-body);
}

.tim-sp-card__hint {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.45);
  font: 600 11.5px/1.4 var(--tim-font-body);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tim-sp-card__hint b {
  color: var(--tim-on-dark);
  font-weight: 700;
}

.tim-sp-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.tim-sp-card__foot span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tim-sp-card__foot i {
  color: var(--tim-on-dark-dim);
  font: 500 11px/1 var(--tim-font-body);
  font-style: normal;
}

.tim-sp-card__foot b {
  color: var(--tim-on-dark);
  font: 700 15px/1 var(--tim-font-body);
}

.tim-sp-card__roas { text-align: right; }

.tim-sp-card__roas b {
  color: var(--tim-magenta);
  font: 800 22px/1.1 var(--tim-font-display);
  /* A tight glow on a single digit reads as a filled circle; keep it wide. */
  text-shadow: 0 0 24px rgba(230, 0, 126, 0.35);
}

/*
 * Packet lane. The card clips its own overflow, so the lane sits far enough
 * inside the bottom edge that a pill travelling along it is not sliced in half.
 */
.tim-sp-card__lane {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  height: 3px;
  pointer-events: none;
}

/* Mock search result, the click target. */
.tim-sp-serp {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  background: #fff;
  border: 0;
  border-radius: 14px;
  padding: 13px;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.tim-sp-serp:focus-visible {
  outline: 2px solid var(--tim-magenta);
  outline-offset: 3px;
}

.tim-sp-serp__search {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1.5px solid rgba(20, 18, 22, 0.14);
  border-radius: var(--tim-radius-pill);
  padding: 8px 13px;
  min-height: 34px;
}

.tim-sp-serp__query {
  color: var(--tim-ink);
  font: 500 12.5px/1 var(--tim-font-body);
  white-space: nowrap;
  overflow: hidden;
}

.tim-sp-serp__caret {
  width: 2px;
  height: 13px;
  background: var(--tim-magenta);
  flex: none;
  animation: tim-sp-blink 1s steps(1) infinite;
}

@keyframes tim-sp-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.tim-sp-serp__ad {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(230, 0, 126, 0.06);
  border: 1.5px solid rgba(230, 0, 126, 0.35);
  border-radius: 11px;
  padding: 11px 12px;
}

.tim-sp-serp__ad.is-ping {
  animation: tim-sp-ping 0.7s ease-out;
}

@keyframes tim-sp-ping {
  0% { box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.55); }
  100% { box-shadow: 0 0 0 26px rgba(66, 133, 244, 0); }
}

.tim-sp-serp__badge { color: var(--tim-ink); font: 700 9px/1 var(--tim-font-body); letter-spacing: 1.5px; }
.tim-sp-serp__title { color: #1a0dab; font: 600 14px/1.3 var(--tim-font-body); }
.tim-sp-serp__url { color: #0b6e3e; font: 500 10.5px/1 var(--tim-font-body); }
.tim-sp-serp__desc { color: var(--tim-ink-500); font: 400 11.5px/1.45 var(--tim-font-body); }

.tim-sp-serp__stub {
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0.3;
}

.tim-sp-serp__stub i { height: 7px; border-radius: 4px; background: rgba(20, 18, 22, 0.4); }
.tim-sp-serp__stub i:last-child { width: 48%; height: 6px; background: rgba(20, 18, 22, 0.25); }

/* Order list */
.tim-sp-orders {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.tim-sp-order {
  display: flex;
  align-items: center;
  gap: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--tim-line-dark);
  border-radius: 12px;
  padding: 11px 13px;
  transition: all 0.5s var(--tim-ease);
}

.tim-sp-order.is-fresh {
  background: rgba(52, 168, 83, 0.12);
  border-color: rgba(52, 168, 83, 0.45);
}

.tim-sp-order__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tim-on-dark);
  font: 700 12px/1 var(--tim-font-body);
}

.tim-sp-order.is-fresh .tim-sp-order__avatar {
  background: linear-gradient(135deg, var(--tim-magenta), var(--tim-magenta-light));
}

.tim-sp-order__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.tim-sp-order__text b { color: var(--tim-on-dark); font: 600 13px/1.3 var(--tim-font-body); }
.tim-sp-order__text i { color: var(--tim-on-dark-dim); font: 400 11px/1.3 var(--tim-font-body); font-style: normal; }

.tim-sp-order__sum {
  color: rgba(255, 255, 255, 0.7);
  font: 600 13px/1 var(--tim-font-body);
  white-space: nowrap;
}

.tim-sp-order.is-fresh .tim-sp-order__sum { color: var(--tim-seo); }
.tim-sp-order--empty .tim-sp-order__avatar { background: rgba(255, 255, 255, 0.12); }

/* Revenue bars */
.tim-sp-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 74px;
}

.tim-sp-bars span {
  flex: 1;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  transition: height 0.55s var(--tim-ease);
}

.tim-sp-bars span.is-lead {
  background: linear-gradient(0deg, var(--tim-magenta), var(--tim-magenta-light));
  box-shadow: 0 0 16px rgba(230, 0, 126, 0.6);
}

/* Packets travelling between cards */
.tim-sp-packet {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 5px 11px;
  border-radius: var(--tim-radius-pill);
  color: #fff;
  font: 600 11px/1 var(--tim-font-body);
  animation: tim-sp-packet 1.3s linear forwards;
}

.tim-sp-packet--click { background: var(--tim-google); box-shadow: 0 0 18px var(--tim-google); }
.tim-sp-packet--order { background: var(--tim-seo); box-shadow: 0 0 18px var(--tim-seo); }

@keyframes tim-sp-packet {
  0% { left: 0; opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  12% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  88% { opacity: 1; }
  100% { left: 100%; opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
}

.tim-sp-stroj__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.tim-sp-stroj__reset {
  background: none;
  border: 0;
  padding: 0;
  color: var(--tim-on-dark-dim);
  font: 600 13px/1 var(--tim-font-body);
  cursor: pointer;
}

.tim-sp-stroj__reset:hover { color: var(--tim-magenta-light); }

.tim-sp-stroj__note {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font: 400 12.5px/1.5 var(--tim-font-body);
  max-width: 560px;
}

/* ------------------------------------------------- 2b · meta widget */

.tim-sp-social {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(96px, 1fr);
  gap: 10px;
  align-items: start;
}

/* Mock social post — the click target. */
.tim-sp-post {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
  background: #fff;
  border: 0;
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.tim-sp-post:focus-visible {
  outline: 2px solid var(--tim-magenta);
  outline-offset: 3px;
}

.tim-sp-post__head { display: flex; align-items: center; gap: 9px; }

.tim-sp-post__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tim-magenta), var(--tim-magenta-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 13px/1 var(--tim-font-body);
  flex: none;
}

.tim-sp-post__who { display: flex; flex-direction: column; min-width: 0; }
.tim-sp-post__who b { color: var(--tim-ink); font: 600 12.5px/1.3 var(--tim-font-body); }
.tim-sp-post__who i { color: var(--tim-ink-500); font: 400 10.5px/1.3 var(--tim-font-body); font-style: normal; }

.tim-sp-post__body {
  color: var(--tim-ink-700);
  font: 400 12px/1.45 var(--tim-font-body);
}

.tim-sp-post__media {
  position: relative;
  display: block;
  height: 104px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #2c2930, #16131b);
  background-size: cover;
  background-position: center 30%;
}

.tim-sp-post__media.is-ping { animation: tim-sp-ping 0.7s ease-out; }

.tim-sp-post__shine {
  position: absolute;
  inset: 0 auto 0 0;
  width: 60px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: tim-sp-shine 3.6s ease-in-out infinite;
}

@keyframes tim-sp-shine {
  0% { transform: translateX(-120%) skewX(-20deg); }
  60%, 100% { transform: translateX(340%) skewX(-20deg); }
}

.tim-sp-post__caption {
  position: absolute;
  left: 10px;
  bottom: 8px;
  right: 10px;
  color: #fff;
  font: 600 11px/1.3 var(--tim-font-body);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.tim-sp-post__link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--tim-cream);
  border-radius: 9px;
  padding: 8px 10px;
}

.tim-sp-post__link-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tim-sp-post__link-text b { color: var(--tim-ink-400); font: 700 9px/1.3 var(--tim-font-body); letter-spacing: 1px; }
.tim-sp-post__link-text i { color: var(--tim-ink); font: 600 11.5px/1.3 var(--tim-font-body); font-style: normal; }

.tim-sp-post__link-cta {
  background: var(--tim-magenta);
  color: #fff;
  border-radius: var(--tim-radius-pill);
  padding: 6px 12px;
  font: 600 11px/1 var(--tim-font-body);
  white-space: nowrap;
  flex: none;
}

/* Decorative story mock. */
.tim-sp-story {
  position: relative;
  min-height: 220px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(160deg, #2c2930, #0d0b0f);
  background-size: cover;
  background-position: center;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.tim-sp-story__bars { display: flex; gap: 3px; }

.tim-sp-story__bars i {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.tim-sp-story__bars i.is-live {
  background: rgba(255, 255, 255, 0.25);
  position: relative;
}

.tim-sp-story__bars i.is-live::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  background: #fff;
  animation: tim-sp-story 4.5s linear infinite;
}

@keyframes tim-sp-story {
  from { width: 0; }
  to { width: 100%; }
}

.tim-sp-story__who {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  color: #fff;
  font: 600 10.5px/1 var(--tim-font-body);
}

.tim-sp-story__avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tim-magenta), var(--tim-magenta-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 9px/1 var(--tim-font-body);
  flex: none;
}

.tim-sp-story__hearts {
  position: relative;
  flex: 1;
  margin-top: 8px;
}

.tim-sp-story__hearts i {
  position: absolute;
  bottom: 0;
  color: var(--tim-magenta-light);
  font-size: 13px;
  font-style: normal;
  opacity: 0;
  animation: tim-sp-heart 2.8s ease-out infinite;
}

.tim-sp-story__hearts i:nth-child(1) { left: 14%; }
.tim-sp-story__hearts i:nth-child(2) { left: 44%; animation-duration: 3.4s; animation-delay: 1.1s; }
.tim-sp-story__hearts i:nth-child(3) { left: 70%; animation-duration: 3.1s; animation-delay: 2s; }

@keyframes tim-sp-heart {
  0% { transform: translateY(0) scale(0.7); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(-90px) scale(1.2); opacity: 0; }
}

.tim-sp-story__swipe {
  align-self: center;
  color: #fff;
  font: 600 9.5px/1 var(--tim-font-body);
  letter-spacing: 1px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: var(--tim-radius-pill);
  padding: 5px 10px;
}

/* ------------------------------------------------- 2c · build widget */

.tim-sp-build__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 28px;
  align-items: start;
}

.tim-sp-build__steps,
.tim-sp-local__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tim-sp-build__step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--tim-line-dark);
  border-radius: var(--tim-radius-card-sm);
  padding: 16px 18px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: all 0.4s var(--tim-ease);
}

.tim-sp-build__step.is-active {
  background: rgba(230, 0, 126, 0.1);
  border-color: rgba(230, 0, 126, 0.6);
}

.tim-sp-build__step.is-done { border-color: rgba(52, 168, 83, 0.4); }

.tim-sp-build__num {
  font: 800 20px/1 var(--tim-font-display);
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(230, 0, 126, 0.9);
  flex: none;
}

.tim-sp-build__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.tim-sp-build__body b { color: var(--tim-on-dark); font: 600 15px/1.3 var(--tim-font-body); }
.tim-sp-build__body i { color: var(--tim-on-dark-dim); font: 400 13.5px/1.5 var(--tim-font-body); font-style: normal; }

.tim-sp-build__tick {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--tim-line-dark);
  flex: none;
  position: relative;
}

.tim-sp-build__step.is-done .tim-sp-build__tick {
  border-color: var(--tim-seo);
  background: var(--tim-seo);
}

.tim-sp-build__step.is-done .tim-sp-build__tick::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Browser mock-up whose page morphs per stage. */
.tim-sp-browser {
  background: var(--tim-dark-panel);
  border: 1.5px solid var(--tim-line-dark);
  border-radius: 18px;
  overflow: hidden;
}

.tim-sp-browser__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--tim-line-dark);
}

.tim-sp-browser__chrome i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex: none;
}

.tim-sp-browser__url {
  margin-left: 10px;
  color: var(--tim-on-dark-dim);
  font: 500 11px/1 var(--tim-font-body);
}

.tim-sp-browser__page {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  min-height: 300px;
  background: var(--tim-dark);
  transition: background 0.6s ease;
}

.tim-sp-browser__nav { display: flex; align-items: center; gap: 8px; }

.tim-sp-browser__nav b {
  width: 46px;
  height: 12px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  transition: all 0.6s ease;
}

.tim-sp-browser__nav em {
  width: 30px;
  height: 7px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.tim-sp-browser__hero { display: flex; flex-direction: column; gap: 8px; }

.tim-sp-browser__hero b {
  width: 78%;
  height: 20px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
  transition: all 0.6s ease;
}

.tim-sp-browser__hero i {
  width: 56%;
  height: 9px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.tim-sp-browser__hero u {
  width: 96px;
  height: 26px;
  border-radius: var(--tim-radius-pill);
  background: rgba(255, 255, 255, 0.14);
  transition: all 0.6s ease;
}

.tim-sp-browser__cards { display: flex; gap: 8px; }

.tim-sp-browser__cards span {
  flex: 1;
  height: 60px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  transition: all 0.6s ease;
}

.tim-sp-browser__metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.tim-sp-browser__metric b { color: var(--tim-magenta); font: 800 26px/1 var(--tim-font-display); }
.tim-sp-browser__metric i { color: var(--tim-on-dark-dim); font: 400 12.5px/1 var(--tim-font-body); font-style: normal; }

/* Stage 1 — design lands: brand colours appear. */
[data-build-stage="1"] .tim-sp-browser__nav b,
[data-build-stage="2"] .tim-sp-browser__nav b,
[data-build-stage="3"] .tim-sp-browser__nav b {
  background: var(--tim-magenta);
}

[data-build-stage="1"] .tim-sp-browser__hero b,
[data-build-stage="2"] .tim-sp-browser__hero b,
[data-build-stage="3"] .tim-sp-browser__hero b {
  background: rgba(255, 255, 255, 0.9);
}

[data-build-stage="1"] .tim-sp-browser__hero u,
[data-build-stage="2"] .tim-sp-browser__hero u,
[data-build-stage="3"] .tim-sp-browser__hero u {
  background: var(--tim-magenta);
  box-shadow: var(--tim-shadow-cta);
}

[data-build-stage="1"] .tim-sp-browser__cards span,
[data-build-stage="2"] .tim-sp-browser__cards span,
[data-build-stage="3"] .tim-sp-browser__cards span {
  background: rgba(255, 255, 255, 0.12);
}

/* Stage 2 — speed: the page snaps into focus. */
[data-build-stage="2"] .tim-sp-browser__page,
[data-build-stage="3"] .tim-sp-browser__page {
  background: linear-gradient(160deg, #16131b, var(--tim-dark));
}

/* Stage 3 — selling: the metric appears. */
[data-build-stage="3"] .tim-sp-browser__metric { opacity: 1; }

/* -------------------------------------------------- 2d · grow widget */

.tim-sp-grow__grid,
.tim-sp-chat__grid,
.tim-sp-local__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 12px;
  align-items: stretch;
}

.tim-sp-chat__grid { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }

.tim-sp-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.tim-sp-feed__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-radius: 12px;
  border: 1px solid var(--tim-line-dark);
  background: rgba(255, 255, 255, 0.04);
  padding: 11px 13px;
  border-left-width: 3px;
  transition: all 0.5s var(--tim-ease);
}

.tim-sp-feed__item--reel { border-left-color: var(--tim-instagram); }
.tim-sp-feed__item--photo { border-left-color: var(--tim-facebook); }
.tim-sp-feed__item--story { border-left-color: var(--tim-ai); }

.tim-sp-feed__item.is-live {
  background: rgba(230, 0, 126, 0.12);
  border-color: rgba(230, 0, 126, 0.45);
  transform: translateX(4px);
}

.tim-sp-feed__item b { color: var(--tim-on-dark); font: 600 11px/1 var(--tim-font-body); letter-spacing: 1px; text-transform: uppercase; }
.tim-sp-feed__item i { color: var(--tim-on-dark-dim); font: 400 13px/1.4 var(--tim-font-body); font-style: normal; }

.tim-sp-grow__fire {
  align-self: flex-start;
  margin-top: 4px;
  background: var(--tim-magenta);
  border: 0;
  border-radius: var(--tim-radius-pill);
  padding: 11px 22px;
  color: #fff;
  font: 600 14px/1 var(--tim-font-body);
  cursor: pointer;
  transition: background 0.3s ease;
}

.tim-sp-grow__fire:hover { background: var(--tim-magenta-hover); }

/* -------------------------------------------------- 2e · chat widget */

.tim-sp-chat__who {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--tim-on-dark);
  font: 600 13px/1 var(--tim-font-body);
}

.tim-sp-chat__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tim-seo);
  animation: tim-sp-dot 2s ease-in-out infinite;
}

.tim-sp-chat__log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 280px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.tim-sp-bubble {
  max-width: 84%;
  border-radius: 14px;
  padding: 10px 13px;
  font: 400 13.5px/1.5 var(--tim-font-body);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s var(--tim-ease);
}

.tim-sp-bubble.is-in { opacity: 1; transform: none; }

.tim-sp-bubble--them {
  align-self: flex-end;
  background: var(--tim-magenta);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.tim-sp-bubble--bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  color: var(--tim-on-dark-muted);
  border-bottom-left-radius: 4px;
}

.tim-sp-bubble--typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.07);
  border-bottom-left-radius: 4px;
}

.tim-sp-bubble--typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tim-on-dark-dim);
  animation: tim-sp-typing 1.2s ease-in-out infinite;
}

.tim-sp-bubble--typing i:nth-child(2) { animation-delay: 0.18s; }
.tim-sp-bubble--typing i:nth-child(3) { animation-delay: 0.36s; }

@keyframes tim-sp-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.tim-sp-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.tim-sp-timeline__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-left: 16px;
  border-left: 2px solid var(--tim-line-dark);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.5s ease, transform 0.5s var(--tim-ease), border-color 0.5s ease;
}

.tim-sp-timeline__item.is-in {
  opacity: 1;
  transform: none;
  border-left-color: var(--tim-magenta);
}

.tim-sp-timeline__time {
  color: var(--tim-magenta-light);
  font: 700 12px/1.4 var(--tim-font-body);
  flex: none;
  min-width: 42px;
}

.tim-sp-timeline__text {
  color: var(--tim-on-dark-muted);
  font: 400 13.5px/1.45 var(--tim-font-body);
}

/* ------------------------------------------------- 2f · local widget */

.tim-sp-local__query { margin-bottom: 4px; background: #fff; }
.tim-sp-local__query span { color: var(--tim-ink); font: 500 12.5px/1 var(--tim-font-body); }

.tim-sp-local__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.tim-sp-local__row {
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 12px;
  border: 1px solid var(--tim-line-dark);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 12px;
  transition: all 0.55s var(--tim-ease);
}

.tim-sp-local__row.is-you {
  border-color: rgba(230, 0, 126, 0.55);
  background: rgba(230, 0, 126, 0.12);
}

.tim-sp-local__pos {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tim-on-dark);
  font: 700 12px/1 var(--tim-font-body);
  flex: none;
}

.tim-sp-local__row.is-you .tim-sp-local__pos {
  background: var(--tim-magenta);
}

.tim-sp-local__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tim-sp-local__body b { color: var(--tim-on-dark); font: 600 13.5px/1.3 var(--tim-font-body); }
.tim-sp-local__body i { color: var(--tim-on-dark-dim); font: 400 11.5px/1.3 var(--tim-font-body); font-style: normal; }

/* The cut-off line sits after the third result — the local pack's limit. */
.tim-sp-local__cut {
  display: block;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.25);
  color: var(--tim-on-dark-dim);
  font: 500 11.5px/1.3 var(--tim-font-body);
  text-align: center;
  transition: opacity 0.5s ease;
}

[data-rank="1"] ~ .tim-sp-local__cut,
.tim-sp-card:has([data-rank="1"]) .tim-sp-local__cut { opacity: 0.35; }

/* ----------------------------------------------- 2g · measure widget */

.tim-sp-measure__toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.tim-sp-measure__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tim-sp-measure__row {
  display: grid;
  grid-template-columns: minmax(120px, 190px) 1fr minmax(60px, auto);
  align-items: center;
  gap: 16px;
}

.tim-sp-measure__name {
  color: var(--tim-on-dark-muted);
  font: 500 14.5px/1.3 var(--tim-font-body);
}

.tim-sp-measure__track {
  height: 12px;
  border-radius: var(--tim-radius-pill);
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.tim-sp-measure__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: var(--tim-radius-pill);
  background: var(--ch, var(--tim-magenta));
  transition: width 0.7s var(--tim-ease);
}

.tim-sp-measure__row.is-top .tim-sp-measure__fill {
  box-shadow: 0 0 20px var(--ch, var(--tim-magenta));
}

.tim-sp-measure__val {
  color: var(--tim-on-dark);
  font: 700 15px/1 var(--tim-font-body);
  text-align: right;
}

.tim-sp-measure__row.is-top .tim-sp-measure__val { color: var(--ch, var(--tim-magenta)); }

.tim-sp-measure__verdict {
  margin: 24px 0 0;
  color: var(--tim-on-dark-muted);
  font: 400 15.5px/1.6 var(--tim-font-body);
  max-width: 640px;
  border-left: 2px solid var(--tim-magenta);
  padding-left: 16px;
}

/* -------------------------------------------------------- 3 · marquee */

.tim-sp-marquee {
  position: relative;
  background: var(--tim-magenta);
  padding: 14px 0;
  overflow: hidden;
  /* Below the floating call button, which is z-index 60. */
  z-index: 1;
}

/*
 * The call button is magenta on a magenta strip, so where they meet the words
 * disappear into it. Fade the strip out under the button instead of letting
 * the two collide.
 */
@media (min-width: 901px) {
  .tim-sp-marquee::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    background: linear-gradient(90deg, rgba(230, 0, 126, 0) 0%, var(--tim-magenta) 55%);
    pointer-events: none;
  }
}

.tim-sp-marquee__track {
  display: flex;
  align-items: center;
  gap: 52px;
  width: max-content;
  animation: tim-sp-marquee 24s linear infinite;
}

@keyframes tim-sp-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tim-sp-marquee__item {
  color: #fff;
  font: 800 16px/1 var(--tim-font-display);
  white-space: nowrap;
}

.tim-sp-marquee__sep { color: rgba(255, 255, 255, 0.5); }

/* ----------------------------------------------------------- 4 · pain */

.tim-sp-pain {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 36px;
  align-items: center;
}

.tim-sp-pain__head {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.tim-sp-pain__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tim-sp-pain__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(20, 18, 22, 0.1);
  color: var(--tim-ink-700);
  font: 400 16px/1.5 var(--tim-font-body);
  transition: padding-left 0.3s ease;
}

.tim-sp-pain__item:hover { padding-left: 8px; }

.tim-sp-pain__mark {
  color: var(--tim-magenta);
  font-weight: 700;
  flex: none;
  line-height: 1.5;
}

/* -------------------------------------------------------- 5 · formats */

.tim-sp-format {
  position: relative;
  padding: 56px var(--tim-section-x);
  overflow: hidden;
}

.tim-sp-format__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 500px at 22% 50%, color-mix(in srgb, var(--fmt) 12%, transparent) 0%, transparent 70%);
  pointer-events: none;
}

.tim-sp-format--flip .tim-sp-format__glow {
  background: radial-gradient(ellipse 800px 500px at 78% 50%, color-mix(in srgb, var(--fmt) 12%, transparent) 0%, transparent 70%);
}

.tim-sp-format__ghost {
  position: absolute;
  top: -40px;
  right: -30px;
  font: 800 clamp(110px, 15vw, 200px) / 1 var(--tim-font-display);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.05);
  pointer-events: none;
  user-select: none;
}

.tim-sp-format--flip .tim-sp-format__ghost { right: auto; left: -30px; }

.tim-sp-format__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 44px;
  align-items: center;
}

/* Flip by ordering, not direction:rtl — rtl leaks into text selection. */
.tim-sp-format--flip .tim-sp-format__media { order: 2; }

.tim-sp-format__media {
  position: relative;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--fmt) 35%, transparent);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.6), 0 0 60px color-mix(in srgb, var(--fmt) 20%, transparent);
  overflow: hidden;
  transition: transform 0.4s var(--tim-ease);
}

.tim-sp-format__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tim-sp-format__scrim {
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(13, 11, 15, 0.9), transparent);
  pointer-events: none;
}

.tim-sp-format__badge {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.tim-sp-format__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: 0 0 26px color-mix(in srgb, var(--fmt) 35%, transparent);
}

.tim-sp-format__tag {
  color: var(--tim-on-dark);
  font: 600 11px/1 var(--tim-font-body);
  letter-spacing: 2px;
}

.tim-sp-format__metric {
  margin-left: auto;
  color: var(--fmt);
  font: 800 clamp(20px, 2.4vw, 30px) / 1 var(--tim-font-display);
  text-shadow: 0 0 24px color-mix(in srgb, var(--fmt) 45%, transparent);
  white-space: nowrap;
}

.tim-sp-format__body {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
}

.tim-sp-format__num {
  font: 800 clamp(38px, 5vw, 58px) / 1 var(--tim-font-display);
  color: transparent;
  -webkit-text-stroke: 1.6px var(--fmt);
}

.tim-sp-format__name {
  margin: 0;
  font: 800 clamp(24px, 2.8vw, 36px) / 1.15 var(--tim-font-display);
  color: var(--tim-on-dark);
}

.tim-sp-format__text {
  margin: 0;
  color: var(--tim-on-dark-muted);
  font: 400 16px/1.6 var(--tim-font-body);
  max-width: 520px;
}

.tim-sp-format__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.tim-sp-format__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--tim-on-dark-muted);
  font: 400 15px/1.5 var(--tim-font-body);
}

.tim-sp-format__list span {
  color: var(--fmt);
  font-weight: 700;
  flex: none;
}

.tim-sp-format__foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.tim-sp-format__metric-label {
  color: var(--tim-on-dark-dim);
  font: 400 13.5px/1.4 var(--tim-font-body);
  max-width: 260px;
}

/* ---------------------------------------------------------- 6 · steps */

.tim-sp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 14px;
}

.tim-sp-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--tim-line-dark);
  border-radius: var(--tim-radius-card-sm);
  padding: 22px 20px;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s var(--tim-ease);
}

.tim-sp-step:hover {
  background: rgba(230, 0, 126, 0.09);
  border-color: rgba(230, 0, 126, 0.5);
  transform: translateY(-5px);
}

.tim-sp-step__num {
  font: 800 30px/1 var(--tim-font-display);
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(230, 0, 126, 0.9);
}

.tim-sp-step__title {
  margin: 0;
  color: var(--tim-on-dark);
  font: 600 17px/1.3 var(--tim-font-display);
}

.tim-sp-step__text {
  margin: 0;
  color: var(--tim-on-dark-dim);
  font: 400 14.5px/1.55 var(--tim-font-body);
}

.tim-sp-step__time {
  margin-top: auto;
  color: var(--tim-magenta-light);
  font: 600 11.5px/1 var(--tim-font-body);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ---------------------------------------------------------- 8 · cases */

.tim-sp-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 16px;
}

.tim-sp-case {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--tim-card);
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow: 0 20px 50px rgba(20, 18, 22, 0.09);
  transition: transform 0.4s var(--tim-ease);
}

.tim-sp-case:hover { transform: translateY(-6px); }

.tim-sp-case__client {
  color: var(--tim-ink-400);
  font: 600 11.5px/1 var(--tim-font-body);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.tim-sp-case__val {
  color: var(--tim-magenta);
  font: 800 clamp(30px, 3.6vw, 46px) / 1 var(--tim-font-display);
}

.tim-sp-case__label {
  color: var(--tim-ink-700);
  font: 600 15px/1.4 var(--tim-font-body);
}

.tim-sp-case__note {
  margin: 0;
  color: var(--tim-ink-500);
  font: 400 14px/1.55 var(--tim-font-body);
}

/* -------------------------------------------------------- 9 · tariffs */

.tim-sp-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 16px;
}

.tim-sp-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--tim-line-dark);
  border-radius: var(--tim-radius-card);
  padding: 30px 26px;
  cursor: pointer;
  transition: all 0.45s var(--tim-ease);
}

.tim-sp-plan:focus-visible {
  outline: 2px solid var(--tim-magenta);
  outline-offset: 3px;
}

.tim-sp-plan.is-active {
  background: rgba(230, 0, 126, 0.1);
  border-color: rgba(230, 0, 126, 0.6);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(230, 0, 126, 0.22);
  transform: translateY(-6px);
}

.tim-sp-plan__tag {
  position: absolute;
  right: 20px;
  top: 16px;
  color: var(--tim-magenta-light);
  font: 600 10.5px/1 var(--tim-font-body);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.tim-sp-plan__name {
  margin: 0;
  color: var(--tim-on-dark);
  font: 600 21px/1.2 var(--tim-font-display);
}

.tim-sp-plan__price {
  color: var(--tim-magenta);
  font: 800 clamp(26px, 3vw, 38px) / 1 var(--tim-font-display);
}

.tim-sp-plan__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.tim-sp-plan__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--tim-on-dark-muted);
  font: 400 14.5px/1.5 var(--tim-font-body);
}

.tim-sp-plan__list span { color: var(--tim-magenta); font-weight: 700; flex: none; }

.tim-sp-plan__cta {
  align-self: flex-start;
  margin-top: 6px;
}

/* ------------------------------------------------------------ 10 · FAQ */

.tim-sp-faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 44px;
  align-items: start;
}

.tim-sp-faq__cta { align-self: flex-start; margin-top: 8px; }

.tim-sp-faq__list {
  display: flex;
  flex-direction: column;
}

.tim-sp-faq__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tim-sp-faq__h { margin: 0; }

.tim-sp-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  background: none;
  border: 0;
  padding: 20px 0;
  cursor: pointer;
  text-align: left;
  color: rgba(255, 255, 255, 0.66);
  font: 600 17px/1.4 var(--tim-font-body);
  transition: color 0.3s ease;
}

.tim-sp-faq__item.is-open .tim-sp-faq__q { color: var(--tim-on-dark); }

.tim-sp-faq__sign {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  transition: transform 0.4s var(--tim-ease), border-color 0.3s ease, color 0.3s ease;
}

.tim-sp-faq__item.is-open .tim-sp-faq__sign {
  transform: rotate(45deg);
  border-color: var(--tim-magenta);
  color: var(--tim-magenta-light);
}

/* Height animation via grid rows: no fixed max-height to outgrow. */
.tim-sp-faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--tim-ease);
}

.tim-sp-faq__item.is-open .tim-sp-faq__a { grid-template-rows: 1fr; }

.tim-sp-faq__a-inner { overflow: hidden; }

.tim-sp-faq__a p {
  margin: 0 0 20px;
  color: var(--tim-on-dark-dim);
  font: 400 15.5px/1.65 var(--tim-font-body);
  max-width: 620px;
  opacity: 0;
  transition: opacity 0.4s ease 0.1s;
}

.tim-sp-faq__item.is-open .tim-sp-faq__a p { opacity: 1; }

/* ----------------------------------------------------------- 11 · form */

.tim-sp-lead__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 48px;
  align-items: start;
}

.tim-sp-lead__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tim-sp-audit {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tim-sp-audit__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.tim-sp-audit__num {
  font: 800 22px/1 var(--tim-font-display);
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(230, 0, 126, 0.9);
  flex: none;
}

.tim-sp-audit__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tim-sp-audit__body strong { color: var(--tim-on-dark); font: 600 15.5px/1.3 var(--tim-font-body); }
.tim-sp-audit__body span { color: var(--tim-on-dark-dim); font: 400 14px/1.5 var(--tim-font-body); }

/* Glass panel around the CF7 form. */
.tim-sp-lead__form {
  background: var(--tim-glass-bg);
  backdrop-filter: var(--tim-glass-blur);
  -webkit-backdrop-filter: var(--tim-glass-blur);
  border: 1px solid var(--tim-glass-border);
  border-radius: 24px;
  padding: 30px;
}

.tim-sp-lead__label {
  display: block;
  margin-bottom: 12px;
  color: var(--tim-on-dark-dim);
  font: 600 12px/1 var(--tim-font-body);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.tim-sp-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tim-sp-chip {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--tim-radius-pill);
  padding: 9px 16px;
  color: var(--tim-on-dark-muted);
  font: 500 13.5px/1 var(--tim-font-body);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tim-sp-chip.is-active {
  border-color: var(--tim-magenta);
  background: rgba(230, 0, 126, 0.18);
  color: var(--tim-on-dark);
}

.tim-sp-lead__fine {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.45);
  font: 400 12.5px/1.5 var(--tim-font-body);
}

/* CF7 fields, restyled to match the design's glass form. */
.tim-sp-lead__form .wpcf7-form-control-wrap { display: block; }

.tim-sp-lead__form input[type="text"],
.tim-sp-lead__form input[type="email"],
.tim-sp-lead__form input[type="tel"],
.tim-sp-lead__form input[type="url"],
.tim-sp-lead__form textarea,
.tim-sp-lead__form select {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 14px 17px;
  margin-bottom: 10px;
  color: var(--tim-on-dark);
  font: 400 15px/1.4 var(--tim-font-body);
}

.tim-sp-lead__form input::placeholder,
.tim-sp-lead__form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.tim-sp-lead__form input:focus,
.tim-sp-lead__form textarea:focus,
.tim-sp-lead__form select:focus {
  outline: none;
  border-color: var(--tim-magenta);
}

.tim-sp-lead__form textarea { min-height: 110px; resize: vertical; }

.tim-sp-lead__form input[type="submit"],
.tim-sp-lead__form .wpcf7-submit {
  width: 100%;
  margin-top: 6px;
  background: var(--tim-magenta);
  border: 0;
  border-radius: var(--tim-radius-pill);
  padding: 15px 28px;
  color: #fff;
  font: 600 16px/1 var(--tim-font-body);
  cursor: pointer;
  box-shadow: var(--tim-shadow-cta);
  transition: background 0.3s ease;
}

.tim-sp-lead__form input[type="submit"]:hover { background: var(--tim-magenta-hover); }

.tim-sp-lead__form .wpcf7-not-valid-tip {
  color: #ff6b8f;
  font: 400 12.5px/1.4 var(--tim-font-body);
  margin-bottom: 8px;
}

.tim-sp-lead__form .wpcf7-response-output {
  margin: 14px 0 0;
  border-radius: 12px;
  border-width: 1px;
  padding: 12px 14px;
  color: var(--tim-on-dark-muted);
  font: 400 14px/1.5 var(--tim-font-body);
}

/* -------------------------------------------------------- cross-links */

.tim-sp-next { border-top: 1px solid var(--tim-line-dark); }

.tim-sp-next__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 12px;
  margin-top: 20px;
}

.tim-sp-next__item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--tim-line-dark);
  border-radius: var(--tim-radius-card-sm);
  padding: 18px 20px;
  text-decoration: none;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s var(--tim-ease);
}

.tim-sp-next__item:hover {
  background: rgba(230, 0, 126, 0.09);
  border-color: rgba(230, 0, 126, 0.5);
  transform: translateY(-4px);
}

.tim-sp-next__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.tim-sp-next__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.tim-sp-next__name { color: var(--tim-on-dark); font: 600 15.5px/1.3 var(--tim-font-body); }
.tim-sp-next__sub { color: var(--tim-on-dark-dim); font: 400 13px/1.4 var(--tim-font-body); }
.tim-sp-next__arrow { color: var(--tim-magenta); font-size: 18px; flex: none; }

/* -------------------------------------------------------------- mobile */

@media (max-width: 900px) {
  /*
   * The hero keeps its scroll film on a phone, as in the design: one phase at a
   * time over the artwork. Stacking all four as a text column — which this
   * block used to do — produced four headlines in a row and read as a wall of
   * copy rather than a sequence.
   *
   * The track is shorter than the desktop 380vh: four phone screens of scroll
   * before the second section is a long way to travel on a thumb.
   */
  .tim-sp-film.is-live {
    height: 300vh;
  }

  .tim-sp-film.is-live.is-poster-only {
    height: 240vh;
  }

  .tim-sp-film__stage {
    /* svh keeps the stage inside the visible area while mobile browser chrome
       shows and hides; vh would leave the CTA under the address bar. */
    height: 100svh;
  }

  /*
   * The film is 16:9 and the phone is portrait, so `cover` crops the sides away
   * and the panther can fall outside the frame. Sit the video in a band at the
   * top, `contain`, and let the copy own the space beneath it.
   */
  .tim-sp-film__video,
  .tim-sp-film__poster {
    inset: 0 0 auto 0;
    height: 52svh;
    object-fit: contain;
    background-color: var(--tim-dark);
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
  }

  .tim-sp-film__scrim--h {
    display: none;
  }

  /* Dark under the copy, clear over the film. */
  .tim-sp-film__scrim--v {
    background: linear-gradient(0deg, rgba(13, 11, 15, 0.97) 0%, rgba(13, 11, 15, 0.94) 42%, rgba(13, 11, 15, 0.35) 58%, rgba(13, 11, 15, 0.25) 100%);
  }

  .tim-sp-film__body {
    /* Copy sits below the film band, pinned to the bottom of the stage. */
    top: auto;
    bottom: 0;
    height: auto;
    padding-top: 0;
    padding-bottom: 74px;
    justify-content: flex-end;
  }

  .tim-sp-phase .tim-sp-film__actions.is-hidden { display: none; }

  .tim-sp-format__grid { gap: 28px; }
  .tim-sp-format--flip .tim-sp-format__media { order: 0; }
  .tim-sp-format__media { transform: none !important; }

  .tim-sp-lead__form { padding: 22px 18px; }
}

@media (max-width: 600px) {
  .tim-sp-stroj__grid,
  .tim-sp-grow__grid,
  .tim-sp-chat__grid,
  .tim-sp-local__grid {
    grid-template-columns: 1fr;
  }

  .tim-sp__ghost { display: none; }

  /* The story mock has no room beside the post at this width. */
  .tim-sp-social { grid-template-columns: 1fr; }
  .tim-sp-story { display: none; }

  /* Name above its own bar rather than a cramped three-column row. */
  .tim-sp-measure__row {
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
  }

  .tim-sp-measure__name { grid-column: 1 / -1; }
}

/* ---------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  .tim-sp-marquee__track,
  .tim-sp-kicker__dot,
  .tim-sp-serp__caret,
  .tim-sp-packet {
    animation: none !important;
  }

  .tim-sp-phase.is-enter { animation: none; }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .tim-sp-format__media,
  .tim-sp-step,
  .tim-sp-case,
  .tim-sp-plan,
  .tim-sp-next__item {
    transition: none;
  }

  .tim-sp-marquee__track { transform: none; }
}
