/* ---------- Services page ---------- */

/* Hero */
.sv-hero {
  position: relative; overflow: hidden;
  padding: 168px var(--gutter) 40px;
  background:
    radial-gradient(900px 520px at 85% 35%, rgba(24, 80, 225, .10), transparent 70%),
    radial-gradient(600px 400px at 0% 0%, rgba(191, 208, 255, .45), transparent 70%),
    #fff;
}
.sv-hero-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center;
}
.sv-title {
  font-family: "Heebo", sans-serif;
  font-size: clamp(44px, 5vw, 72px); font-weight: 800;
  line-height: 1.03; letter-spacing: -.045em;
  color: var(--navy); text-wrap: balance;
}
.sv-title span {
  background: linear-gradient(100deg, var(--blue) 0%, #4f7cf5 45%, var(--blue) 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: heroShimmer 6s linear infinite;
}
.sv-sub { max-width: 540px; margin-top: 24px; font-size: 18px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.sv-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.sv-jump { list-style: none; margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.sv-jump a {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 18px 8px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-family: "Heebo", sans-serif; font-size: 15px; font-weight: 500; color: var(--ink);
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.sv-jump a:hover { border-color: var(--blue-light); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.sv-jump i {
  font-style: normal; font-size: 12px; font-weight: 700;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: var(--blue);
}

/* Hero visual: a "campaign preview" app window and an iPhone, both scrollable */
.sv-preview { position: relative; height: 600px; --phone: 214px; --pad: 26px; }
.sv-panel {
  position: absolute; inset: 0;
  border-radius: 32px;
  background: linear-gradient(160deg, #f4f7ff, #e6edff);
  border: 1px solid var(--line);
}
.sv-panel::after {   /* soft block in the corner, like a second card behind */
  content: ""; position: absolute; left: 0; bottom: 0; width: 40%; height: 30%;
  border-radius: 0 28px 0 32px; background: rgba(191, 208, 255, .35);
}
.sv-app {
  /* sits beside the phone, never under it */
  position: absolute; left: var(--pad); top: 40px; width: calc(100% - var(--phone) - var(--pad) * 3); height: 500px;
  display: flex; flex-direction: column;
  border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 30px 70px rgba(7, 16, 61, .14);
}
.sv-app-bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 44px; padding: 0 18px; flex-shrink: 0;
  border-bottom: 1px solid var(--line);
}
.sv-dots { display: flex; gap: 6px; }
.sv-dots i { width: 8px; height: 8px; border-radius: 50%; background: #d5dae6; }
.sv-app-title { font-family: "Heebo", sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #8b93a8; }
.sv-app-body { flex: 1; min-height: 0; display: flex; }
.sv-side {
  width: 66px; flex-shrink: 0; padding: 22px 12px;
  display: flex; flex-direction: column; gap: 9px;
  background: #fafbfe; border-right: 1px solid var(--line);
}
.sv-side i { display: block; height: 5px; width: 70%; border-radius: 5px; background: #e4e8f2; }
.sv-side i.on { width: 70%; height: 7px; margin-bottom: 22px; background: var(--blue); }
.sv-side i.hi { width: 100%; background: var(--blue-light); }
.sv-side i:nth-child(4) { width: 85%; }
.sv-app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 16px 18px 0; }
.sv-app-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sv-app-head small { display: block; font-family: "Heebo", sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #8b93a8; }
.sv-app-head b { font-family: "Heebo", sans-serif; font-size: 15px; font-weight: 600; color: var(--navy); }
.sv-badge {
  padding: 5px 12px; border-radius: 999px;
  font-family: "Heebo", sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--blue); background: var(--soft); border: 1px solid var(--blue-light);
}
.sv-app-email {
  flex: 1; min-height: 0; border-radius: 10px 10px 0 0; background: #f4f6fb;
  -webkit-mask-image: linear-gradient(to bottom, #000 85%, rgba(0,0,0,.4));
          mask-image: linear-gradient(to bottom, #000 85%, rgba(0,0,0,.4));
}
.sv-app-email img { display: block; width: 100%; }
.sv-app .scroll-cue { left: calc(50% + 33px); }

/* the iPhone reuses the homepage mockup, a size smaller */
.sv-mobile { position: absolute; right: var(--pad); bottom: 40px; width: var(--phone); z-index: 2; }
.sv-mobile .iphone { height: 440px; padding: 8px; border-radius: 42px; box-shadow: inset 0 0 0 2px #3a3c43, 0 34px 70px rgba(7, 16, 61, .3); }
.sv-mobile .iphone-screen { border-radius: 34px; display: flex; flex-direction: column; background: #fff; }
.sv-mobile .dynamic-island { width: 70px; height: 20px; margin-left: -35px; top: 8px; }
.sv-mobile .ios-status { height: 38px; padding: 2px 20px 0 24px; font-size: 12.5px; }
.sv-mobile .scroll-cue { bottom: 20px; }

.sv-chip {
  position: absolute; z-index: 3; left: 46%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 14px;
  background: #fff; box-shadow: 0 18px 40px rgba(7, 16, 61, .16);
  font-family: "Heebo", sans-serif; font-size: 14px; font-weight: 700; color: var(--navy);
  animation: svFloat2 5s ease-in-out infinite;
}
.sv-chip small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.sv-chip i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); }
.sv-chip svg { width: 20px; height: 20px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; }
@keyframes svFloat2 { 50% { transform: translate(-50%, -6px); } }
/* Service blocks */
.sv-services { padding: var(--section) var(--gutter) 0; }
.sv-service {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.sv-service + .sv-service { margin-top: var(--section); }
.sv-service.flip .sv-service-copy { order: 2; }
.sv-num {
  display: block;
  font-family: "Heebo", sans-serif; font-size: 96px; font-weight: 900; line-height: .8; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 2px var(--blue-light);
}
.sv-kicker {
  margin: 22px 0 12px;
  font-family: "Heebo", sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--blue);
}
.sv-text { margin-top: 20px; font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 540px; }
.sv-checks {
  list-style: none; margin: 28px 0 34px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 12px 20px;
}
.sv-checks li {
  display: flex; align-items: center; gap: 10px;
  font-family: "Heebo", sans-serif; font-size: 15.5px; font-weight: 500; color: var(--ink);
}
.sv-checks li::before {
  content: "✓"; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--blue); background: var(--soft); border: 1px solid var(--blue-light);
}
.sv-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* 01 visual: fanned campaign emails */
.sv-fan {
  position: relative; isolation: isolate; height: 560px;
  border-radius: var(--r-lg);
  background: radial-gradient(circle at 50% 45%, #e3eaff, var(--soft) 65%);
  border: 1px solid var(--line);
}
.sv-fan figure {
  position: absolute; left: 50%; top: 50%; width: 200px; margin: 0;
  transform: translate(calc(-50% + var(--x)), -50%) rotate(var(--r));
  transition: transform .6s var(--ease);
}
.sv-fan figure.front { z-index: 1; width: 236px; }
.sv-fan:hover figure { transform: translate(calc(-50% + var(--x) * 1.08), -52%) rotate(calc(var(--r) * 1.25)); }
.sv-fan img {
  display: block; width: 100%; aspect-ratio: 608 / 1000; object-fit: cover; object-position: top;
  border-radius: 18px; background: #fff;
  box-shadow: 0 30px 60px rgba(7, 16, 61, .2);
}
.sv-fan figcaption {
  position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%);
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
  background: var(--navy); color: #fff;
  font-family: "Heebo", sans-serif; font-size: 12.5px; font-weight: 600;
}
.sv-fan figure.front figcaption { background: var(--blue); }
.sv-sent {
  position: absolute; z-index: 2; top: 24px; right: 24px;
  display: flex; align-items: center; gap: 9px;
  padding: 9px 14px; border-radius: 999px; background: #fff;
  box-shadow: var(--shadow-sm);
  font-family: "Heebo", sans-serif; font-size: 13px; font-weight: 600; color: var(--navy);
}
.sv-sent i { width: 8px; height: 8px; border-radius: 50%; background: #22b07d; box-shadow: 0 0 0 4px rgba(34, 176, 125, .2); }

/* 02 visual: a flow, with a pulse travelling down the line */
.sv-flow {
  position: relative; padding: 36px 40px 40px;
  border-radius: var(--r-lg); background: var(--navy); color: #fff;
  background-image:
    radial-gradient(600px 300px at 100% 0%, rgba(79, 124, 245, .4), transparent 70%),
    radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: auto, 20px 20px;
  overflow: hidden;
}
.sv-trigger {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 10px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  font-family: "Heebo", sans-serif; font-size: 14px; font-weight: 600;
}
.sv-trigger i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px; background: #f5b83d; }
.sv-steps { list-style: none; position: relative; margin-top: 22px; padding-left: 26px; }
.sv-steps::before {   /* the connecting line */
  content: ""; position: absolute; left: 13px; top: -22px; bottom: 40px; width: 2px;
  background: linear-gradient(rgba(191, 208, 255, .6), rgba(191, 208, 255, .15));
}
.sv-steps li {
  position: relative; display: flex; align-items: center; gap: 16px;
  margin-left: 20px; padding: 12px; border-radius: 16px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  transition: background .3s, transform .3s var(--ease);
}
.sv-steps li + li { margin-top: 14px; }
.sv-steps li:hover { background: rgba(255,255,255,.12); transform: translateX(4px); }
.sv-steps li::before {   /* node on the line */
  content: ""; position: absolute; left: -40px; top: 50%; margin-top: -8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--navy); border: 3px solid var(--blue-light);
}
.sv-steps img { width: 54px; height: 70px; flex-shrink: 0; object-fit: cover; object-position: top; border-radius: 8px; background: #fff; }
.sv-steps b { display: block; font-family: "Heebo", sans-serif; font-size: 18px; font-weight: 700; }
.sv-steps small { display: block; margin-top: 3px; font-size: 13.5px; color: rgba(255,255,255,.65); }
.sv-pulse {
  position: absolute; left: 49px; top: 111px;   /* centred on the line, just above the first node */
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 5px rgba(191, 208, 255, .3), 0 0 18px #9db4f2;
  animation: svPulse 4.5s ease-in-out infinite;
}
@keyframes svPulse { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(370px); opacity: 0; } }

/* Klaviyo build strip */
.sv-extra {
  max-width: 1280px; margin: var(--section) auto 0;
  display: flex; align-items: center; gap: 24px;
  padding: 28px 32px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.sv-extra > div { flex: 1; }
.sv-extra h3 { font-family: "Heebo", sans-serif; font-size: 21px; font-weight: 700; color: var(--navy); }
.sv-extra p { margin-top: 4px; font-size: 15px; color: var(--muted); }

/* How it works: numbered timeline */
.sv-process { padding: var(--section) var(--gutter) 0; }
.sv-timeline {
  list-style: none; position: relative;
  max-width: 1180px; margin: 64px auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.sv-timeline::before {
  content: ""; position: absolute; top: 31px; left: 12.5%; right: 12.5%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue-light) 0 8px, transparent 8px 16px);
}
.sv-timeline li { position: relative; text-align: center; padding: 0 8px; }
.sv-step-dot {
  position: relative; display: grid; place-items: center;
  width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%;
  font-family: "Heebo", sans-serif; font-size: 18px; font-weight: 800; color: var(--blue);
  background: #fff; border: 2px solid var(--blue-light);
  box-shadow: 0 0 0 8px #fff;
  transition: background .35s, color .35s, transform .35s var(--ease);
}
.sv-timeline li:hover .sv-step-dot { background: var(--blue); color: #fff; transform: scale(1.08); }
.sv-timeline li:last-child .sv-step-dot { background: var(--blue); color: #fff; border-color: var(--blue); }
.sv-timeline h3 { font-family: "Heebo", sans-serif; font-size: 20px; font-weight: 700; color: var(--navy); }
.sv-timeline p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* The work reel */
.sv-work { padding: var(--section) 0 0; }
.sv-work-head {
  max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.sv-work-head .section-title { max-width: 620px; }
.sv-reel {
  margin-top: 48px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.sv-reel-track { display: flex; gap: 20px; width: max-content; animation: scrollLeft 80s linear infinite; }
.sv-reel:hover .sv-reel-track { animation-play-state: paused; }
.sv-reel img {
  width: 200px; aspect-ratio: 500 / 760; object-fit: cover; object-position: top;
  border-radius: 16px; border: 1px solid var(--line);
  transition: transform .4s var(--ease);
}
.sv-reel img:hover { transform: translateY(-6px); }

/* Closing call to action */
.sv-cta-wrap { padding: var(--section) var(--gutter) 110px; }
.sv-cta {
  position: relative; overflow: hidden;
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center;
  padding: 64px 64px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, #f4f7ff, #e6edff); border: 1px solid var(--line);
}
.sv-cta .sv-kicker { margin-top: 0; }
.sv-cta-side { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.sv-cta-note { font-size: 14px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .sv-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .sv-hero-copy { text-align: center; }
  .sv-sub { margin-left: auto; margin-right: auto; }
  .sv-ctas, .sv-jump { justify-content: center; }
  .sv-preview { width: min(100%, 640px); margin: 0 auto; }
  .sv-cta { grid-template-columns: 1fr; gap: 28px; padding: 48px 40px; }
  .sv-service { grid-template-columns: 1fr; gap: 48px; }
  .sv-service.flip .sv-service-copy { order: 0; }
  .sv-timeline { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .sv-timeline::before { display: none; }
}
@media (max-width: 860px) {
  .sv-hero { padding-top: 132px; }
  .sv-jump a { font-size: 14px; }
  /* phones get just the iPhone, like the homepage */
  .sv-preview { height: 580px; }
  .sv-panel { border-radius: 24px; }
  .sv-app { display: none; }
  .sv-mobile { right: auto; left: 50%; bottom: 84px; margin-left: calc(var(--phone) / -2); }
  .sv-mobile .iphone { height: 450px; }
  .sv-chip { left: 50%; bottom: 14px; font-size: 13px; padding: 10px 14px 10px 10px; white-space: nowrap; }
  .sv-chip i { width: 30px; height: 30px; }
  .sv-cta { padding: 36px 22px; }
  .sv-num { font-size: 72px; }
  .sv-checks { grid-template-columns: 1fr 1fr; gap: 10px 12px; }
  .sv-checks li { font-size: 14.5px; }
  .sv-fan { height: 420px; }
  .sv-fan { overflow: hidden; }
  .sv-fan figure { width: 128px; }
  .sv-fan figure.front { width: 156px; }
  .sv-sent { top: 14px; right: 14px; font-size: 12px; }
  .sv-flow { padding: 26px 18px 28px; }
  .sv-steps li { gap: 12px; }
  .sv-steps b { font-size: 16px; }
  .sv-steps small { font-size: 12.5px; }
  .sv-pulse { display: none; }
  .sv-extra { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .sv-timeline { grid-template-columns: 1fr; row-gap: 32px; }
  .sv-work-head { flex-direction: column; align-items: flex-start; }
  .sv-reel img { width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .sv-title span, .sv-chip, .sv-pulse, .sv-reel-track { animation: none; }
}
