/* ==========================================================================
   Zexora · service detail pages
   Dark hero (2-col with living widget) plus per-card capability tiles
   Tokens from style.css. Per-page accent set via body.svc--*.
   ========================================================================== */

/* ---------- Per-page accent tokens ---------- */
body.svc--website {
  --svc-ink: #2563EB;
  --svc-ink-2: #60A5FA;
  --svc-soft: rgba(37, 99, 235, 0.12);
  --svc-glow: rgba(37, 99, 235, 0.35);
  --svc-rgb: 37, 99, 235;
}
body.svc--ads {
  --svc-ink: #6D3BF0;
  --svc-ink-2: #A78BFA;
  --svc-soft: rgba(109, 59, 240, 0.14);
  --svc-glow: rgba(109, 59, 240, 0.38);
  --svc-rgb: 109, 59, 240;
}
body.svc--apps {
  --svc-ink: #0D8A8A;
  --svc-ink-2: #2DD4BF;
  --svc-soft: rgba(13, 138, 138, 0.14);
  --svc-glow: rgba(13, 138, 138, 0.36);
  --svc-rgb: 13, 138, 138;
}

body { background: var(--bg); }

/* ==========================================================================
   HERO  (dark, 2-col: text left, living widget right)
   ========================================================================== */
/* Every service hero is exactly one screen tall, so the three pages match. */
.svc-hero {
  position: relative;
  isolation: isolate;
  background: #0A0A0A;
  color: #fff;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(72px, 8vw, 104px) clamp(20px, 5vw, 48px);
  overflow: hidden;
}
.svc-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 90%;
  background:
    radial-gradient(60% 70% at 25% 30%, var(--svc-glow), transparent 60%),
    radial-gradient(40% 60% at 85% 10%, rgba(255, 122, 26, 0.16), transparent 60%);
  filter: blur(12px);
  z-index: -2;
  pointer-events: none;
}
.svc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 75%);
  z-index: -1;
  pointer-events: none;
}

.svc-hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: grid;
  /* the widget caps at 440px, so a 0.95fr track left ~96px of dead space beside it that the
     headline needed. the track now tracks the cap, and the 45% keeps it shrinking as it used
     to once the viewport is too narrow for 440. justify-self:end means the widget itself does
     not move either way. */
  grid-template-columns: minmax(0, 1fr) minmax(0, min(440px, 45%));
  grid-template-areas: "text widget";
  column-gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
/* the headline sizes off this column, not the viewport, so it cannot outgrow its own box */
.svc-hero-text { grid-area: text; min-width: 0; container-type: inline-size; }
.svc-hero-widget { grid-area: widget; min-width: 0; justify-self: end; width: 100%; max-width: 440px; }

.svc-back { display: none; }
.svc-back-legacy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  transition: color 160ms var(--ease), transform 160ms var(--ease);
}
.svc-back:hover { color: #fff; transform: translateX(-2px); }
.svc-back svg { width: 14px; height: 14px; }

.svc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 22px;
}
.svc-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--svc-ink-2);
  box-shadow: 0 0 12px var(--svc-ink-2);
}

.svc-title {
  font-family: inherit;
  font-size: clamp(36px, 5.2vw, 60px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0;
  padding-bottom: 0.12em;
  max-width: 16ch;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.78) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* These headlines carry a hard <br>; 16ch would force a third line, so the break sets the width. */
body.svc--website .svc-title,
body.svc--ads .svc-title,
body.svc--apps .svc-title {
  max-width: none;
  /* the ceiling is what a desktop reads, so that is what carries the +50%. the floor stays low
     because "get chosen, get paid." at 45px runs off a 375px screen. the cqw line is the real
     rule and the vw line is the fallback a browser without container queries keeps. */
  /* 10cqw was exactly the longest line's width, so it fitted only by equality and sub-pixel
     rounding decided each render. Measured live, "get chosen, get paid." runs ~10em, so the
     coefficient has to sit under 1/10em to leave any margin at all. */
  font-size: clamp(26px, 9.3vw, 69px);
  font-size: clamp(26px, 9.3cqw, 69px);
}

.svc-lead {
  margin: 20px 0 0;
  max-width: 52ch;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.55;
  color: rgba(255,255,255,0.68);
}

.svc-actions {
  margin-top: 32px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
}
.svc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease), box-shadow 200ms var(--ease);
}
.svc-btn svg { width: 14px; height: 14px; }
.svc-btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px rgba(255,122,26,0.28);
}
.svc-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(255,122,26,0.42); }
.svc-btn--ghost {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.18);
}
.svc-btn--ghost:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.30); }

/* Stacked hero: copy centres over the widget, widgets shrink to keep 100vh. */
@media (max-width: 960px) {
  .svc-hero-inner {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "widget";
    row-gap: 32px;
  }
  .svc-hero-widget { justify-self: stretch; max-width: 480px; margin: 0 auto; }
  .svc-hero-text { text-align: center; }
  /* stacked, the text column is the whole page, so the same coefficient would jump to the
     desktop ceiling and then halve the instant the grid splits at 961px */
  .svc-title { font-size: clamp(26px, 9.3cqw, 54px); }
  .svc-title { max-width: none; }
  .svc-lead { margin-inline: auto; }
}

/* ==========================================================================
   HOOK  (light band between the hero and the capability groups)
   ========================================================================== */
.hook { background: var(--bg); }
.hook-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(32px, 4.4vw, 56px) clamp(20px, 5vw, 48px);
  display: grid;
  /* Copy leads this section, so it gets the wider column; the art was taking it. */
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(32px, 5vw, 72px);
}
.hook-title .accent { color: var(--accent); }
/* Sized so the hard-broken second line holds one row inside the narrower text column. */
.hook-title {
  font-size: clamp(30px, 3.75vw, 46px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 16px 0 0;
}
.hook-lead {
  margin: 18px 0 0;
  max-width: 46ch;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.6;
  color: var(--muted);
}
/* The lottie square carries ~25% dead margin, so the box is pulled into the section padding. */
.hook-art {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  justify-self: end;
  margin-block: clamp(-78px, -5.5vw, -28px);
}
.hook-art svg { width: 100%; height: 100%; display: block; }
/* This composition is 4:3 and carries no dead margin, so it needs neither the square nor the pull-in. */
body.svc--ads .hook-art { aspect-ratio: 4 / 3; margin-block: 0; max-width: 600px; }
/* 946x892 canvas, and its background panel was stripped, so it fills the box on its own ratio.
   Mirrored because the composition reads right to left against a left-hand copy column. */
body.svc--apps .hook-art {
  aspect-ratio: 946 / 892;
  margin-block: 0;
  justify-self: center;
  transform: scaleX(-1);
}
/* Gated above the stacking width, where this body-prefixed rule would otherwise outrank
   the shared .hook-art sizing inside the max-width block below. */
@media (min-width: 901px) {
  body.svc--apps .hook-art { width: 80%; max-width: 464px; }
}

@media (max-width: 900px) {
  .hook-inner { grid-template-columns: 1fr; row-gap: 28px; text-align: center; }
  .hook-lead { margin-inline: auto; }
  /* Asymmetric because the two edges want opposite things: the top eats the square asset's dead margin to sit near the copy, the bottom keeps most of it as breathing room before the next section. */
  .hook-art { justify-self: center; max-width: 420px; margin-block: -22% -4%; }
}

/* ==========================================================================
   CORE STACK  (the three every business gets, then the add-ons heading)
   ========================================================================== */
.core { background: var(--bg); }
.core-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 52px) clamp(20px, 5vw, 48px) 0;
}
.core-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}
/* Same shell as the hub's three cards: white surface, coloured glow, centred glyph tile. */
.core-card {
  background: var(--surface);
  border-radius: 22px;
  padding: 32px 26px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 380ms var(--ease), box-shadow 380ms var(--ease);
}
.core-card:hover { transform: translateY(-6px); }
.core-card--blue {
  --core-tile: #E4EDFD;
  --core-ink: #2563EB;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.10), 0 28px 60px -10px rgba(37, 99, 235, 0.42);
}
.core-card--orange {
  --core-tile: #FFEFE4;
  --core-ink: #FF7A1A;
  box-shadow: 0 0 0 1px rgba(255, 122, 26, 0.10), 0 28px 60px -10px rgba(255, 122, 26, 0.45);
}
.core-card--green {
  --core-tile: #E3F4E9;
  --core-ink: #16A34A;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.10), 0 28px 60px -10px rgba(22, 163, 74, 0.40);
}
.core-card--blue:hover   { box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.18), 0 34px 80px -8px rgba(37, 99, 235, 0.58); }
.core-card--orange:hover { box-shadow: 0 0 0 1px rgba(255, 122, 26, 0.18), 0 34px 80px -8px rgba(255, 122, 26, 0.62); }
.core-card--green:hover  { box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.18), 0 34px 80px -8px rgba(22, 163, 74, 0.55); }
.core-card .v-icon {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  margin-bottom: 18px;
  background: var(--core-tile);
  color: var(--core-ink);
}
.core-card .v-icon svg { width: 48px; height: 48px; }

/* One surface carrying the always-on items, same radius as the cards it sits under. */
.core-included {
  position: relative;
  margin-top: clamp(26px, 3.4vw, 40px);
  padding: clamp(26px, 3vw, 34px) clamp(22px, 3vw, 34px) clamp(22px, 2.6vw, 30px);
  background: var(--surface);
  border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(10, 10, 10, 0.05), 0 18px 44px -18px rgba(10, 10, 10, 0.18);
}
/* The label straddles the top edge, centred, so the panel reads as one labelled object. */
.core-included-label {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% -50%;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px -4px rgba(255, 122, 26, 0.55);
}
.core-included-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(18px, 2.4vw, 30px);
  row-gap: clamp(22px, 2.8vw, 32px);
}
.core-included-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding-left: clamp(18px, 2.4vw, 30px);
  border-left: 1px solid var(--line);
}
/* Reset per row, not just the first item: this panel can run to two rows. */
.core-included-list li:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
.core-included-list li > svg {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  padding: 6px;
  border-radius: 999px;
  background: var(--svc-soft);
  color: var(--svc-ink);
}
.core-included-list strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.core-included-list span { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
@media (max-width: 860px) {
  .core-included-list { grid-template-columns: 1fr; gap: 18px; }
  .core-included-list li { padding-left: 0; border-left: 0; }
}
.core-name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 8px;
}
.core-copy {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* Pin: outline draws, the dot lands, the mark settles. 8s on --ic-ease, matching .ic--browser. */
.ic--pin .pin-body {
  stroke-dasharray: 170;
  animation: icPinDraw 8s var(--ic-ease) infinite;
}
@keyframes icPinDraw {
  0% { stroke-dashoffset: 170; }
  34%, 100% { stroke-dashoffset: 0; }
}
.ic--pin .pin-core {
  fill: currentColor;
  fill-opacity: 0.26;
  opacity: 0;
  transform-origin: 50% 50%;
  animation: icPinCore 8s var(--ic-ease) infinite;
}
@keyframes icPinCore {
  0%, 32% { opacity: 0; transform: scale(0.25); }
  46%, 100% { opacity: 1; transform: none; }
}
.ic--pin .pin-drop {
  transform-origin: 50% 100%;
  animation: icPinDrop 8s var(--ic-ease) infinite;
}
@keyframes icPinDrop {
  0%, 50% { transform: none; }
  58% { transform: translateY(-5px); }
  66% { transform: translateY(0) scaleY(0.94); }
  72%, 100% { transform: none; }
}

/* Bag: handle draws, body draws, then it lifts as if picked up. */
.ic--bag .bag-handle {
  stroke-dasharray: 60;
  animation: icBagHandle 8s var(--ic-ease) infinite;
}
@keyframes icBagHandle {
  0% { stroke-dashoffset: 60; }
  24%, 100% { stroke-dashoffset: 0; }
}
.ic--bag .bag-body {
  stroke-dasharray: 200;
  animation: icBagBody 8s var(--ic-ease) infinite;
}
@keyframes icBagBody {
  0%, 14% { stroke-dashoffset: 200; }
  44%, 100% { stroke-dashoffset: 0; }
}
.ic--bag .bag-lift {
  transform-origin: 50% 100%;
  animation: icBagLift 8s var(--ic-ease) infinite;
}
@keyframes icBagLift {
  0%, 52% { transform: none; }
  62% { transform: translateY(-4px) rotate(-3deg); }
  70% { transform: translateY(-4px) rotate(2deg); }
  80%, 100% { transform: none; }
}

/* Feed: the post draws, then the like lands. 8s on --ic-ease, same clock as the others. */
.ic--feed .feed-frame { stroke-dasharray: 170; animation: icFeedFrame 8s var(--ic-ease) infinite; }
.ic--feed .feed-line { stroke-dasharray: 24; animation: icFeedLine 8s var(--ic-ease) infinite; }
.ic--feed .feed-media { stroke-dasharray: 78; animation: icFeedMedia 8s var(--ic-ease) infinite; }
.ic--feed .feed-heart { fill: currentColor; fill-opacity: 0.22; opacity: 0; transform-origin: 50% 78%; animation: icFeedHeart 8s var(--ic-ease) infinite; }
@keyframes icFeedFrame { 0% { stroke-dashoffset: 170; } 16%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 170; } }
@keyframes icFeedLine  { 0%, 14% { stroke-dashoffset: 24; } 24%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 24; } }
@keyframes icFeedMedia { 0%, 22% { stroke-dashoffset: 78; } 36%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 78; } }
@keyframes icFeedHeart { 0%, 44% { opacity: 0; transform: scale(0.4); } 56% { opacity: 1; transform: scale(1.15); } 62%, 92% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(0.4); } }

/* Search: the bar draws, results land, the lens sweeps in over them. */
.ic--search .srch-bar { stroke-dasharray: 124; animation: icSrchBar 8s var(--ic-ease) infinite; }
.ic--search .srch-row { stroke-dasharray: 68; animation: icSrchRow 8s var(--ic-ease) infinite; }
.ic--search .srch-lens { opacity: 0; animation: icSrchLens 8s var(--ic-ease) infinite; }
@keyframes icSrchBar  { 0% { stroke-dashoffset: 124; } 18%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 124; } }
@keyframes icSrchRow  { 0%, 20% { stroke-dashoffset: 68; } 34%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 68; } }
@keyframes icSrchLens { 0%, 42% { opacity: 0; transform: translate(7px, 7px) scale(0.8); } 56%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(7px, 7px) scale(0.8); } }

/* Mail: the envelope draws, the flap folds down, the text bubble arrives beside it. */
.ic--mail .mail-body { stroke-dasharray: 128; animation: icMailBody 8s var(--ic-ease) infinite; }
.ic--mail .mail-flap { stroke-dasharray: 50; animation: icMailFlap 8s var(--ic-ease) infinite; }
.ic--mail .mail-bubble { opacity: 0; transform-origin: 70% 70%; animation: icMailBubble 8s var(--ic-ease) infinite; }
@keyframes icMailBody   { 0% { stroke-dashoffset: 128; } 18%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 128; } }
@keyframes icMailFlap   { 0%, 20% { stroke-dashoffset: 50; } 32%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 50; } }
@keyframes icMailBubble { 0%, 44% { opacity: 0; transform: scale(0.6) translateY(6px); } 58%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(0.6) translateY(6px); } }

/* Build: the shell draws with a piece missing, the content lands, the piece slots into the gap. */
.ic--build .app-shell { stroke-dasharray: 172; animation: icBuildShell 8s var(--ic-ease) infinite; }
.ic--build .app-line { stroke-dasharray: 28; animation: icBuildLine 8s var(--ic-ease) infinite; }
.ic--build .app-piece { fill: currentColor; fill-opacity: 0.22; opacity: 0; animation: icBuildPiece 8s var(--ic-ease) infinite; }
@keyframes icBuildShell { 0% { stroke-dashoffset: 172; } 22%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 172; } }
@keyframes icBuildLine  { 0%, 22% { stroke-dashoffset: 28; } 34%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 28; } }
@keyframes icBuildPiece { 0%, 44% { opacity: 0; transform: translate(7px, -7px) scale(0.7); } 58%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(7px, -7px) scale(0.7); } }

/* Agent: the head draws, the aerial lights, then it opens its eyes and speaks. */
.ic--agent .agent-head { stroke-dasharray: 125; animation: icAgentHead 8s var(--ic-ease) infinite; }
.ic--agent .agent-ant { stroke-dasharray: 10; animation: icAgentAnt 8s var(--ic-ease) infinite; }
.ic--agent .agent-bulb { fill: currentColor; opacity: 0; transform-origin: 50% 12.5%; animation: icAgentBulb 8s var(--ic-ease) infinite; }
.ic--agent .agent-eye { fill: currentColor; opacity: 0; animation: icAgentEye 8s var(--ic-ease) infinite; }
.ic--agent .agent-mouth { stroke-dasharray: 15; animation: icAgentMouth 8s var(--ic-ease) infinite; }
@keyframes icAgentHead  { 0% { stroke-dashoffset: 125; } 20%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 125; } }
@keyframes icAgentAnt   { 0%, 18% { stroke-dashoffset: 10; } 28%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 10; } }
@keyframes icAgentBulb  { 0%, 26% { opacity: 0; transform: scale(0.2); } 38% { opacity: 1; transform: scale(1.25); } 44%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(0.2); } }
@keyframes icAgentEye   { 0%, 40% { opacity: 0; } 52%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes icAgentMouth { 0%, 50% { stroke-dashoffset: 15; } 62%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 15; } }

/* Auto: the trigger draws, the wiring runs out to the branches, each one fires in turn. */
.ic--auto .auto-hub { fill: currentColor; fill-opacity: 0.2; stroke-dasharray: 45; animation: icAutoHub 8s var(--ic-ease) infinite; }
.ic--auto .auto-wire { stroke-dasharray: 64; animation: icAutoWire 8s var(--ic-ease) infinite; }
.ic--auto .auto-node { fill: currentColor; fill-opacity: 0.22; opacity: 0; transform-origin: 68.75% 50%; }
.ic--auto .n1 { animation: icAutoN1 8s var(--ic-ease) infinite; }
.ic--auto .n2 { animation: icAutoN2 8s var(--ic-ease) infinite; }
.ic--auto .n3 { animation: icAutoN3 8s var(--ic-ease) infinite; }
@keyframes icAutoHub  { 0% { stroke-dashoffset: 45; } 18%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 45; } }
@keyframes icAutoWire { 0%, 18% { stroke-dashoffset: 64; } 40%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 64; } }
@keyframes icAutoN1 { 0%, 42% { opacity: 0; transform: scale(0.3); } 52%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(0.3); } }
@keyframes icAutoN2 { 0%, 48% { opacity: 0; transform: scale(0.3); } 58%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(0.3); } }
@keyframes icAutoN3 { 0%, 54% { opacity: 0; transform: scale(0.3); } 64%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(0.3); } }

@media (prefers-reduced-motion: reduce) {
  .ic--build .app-shell,
  .ic--build .app-line,
  .ic--agent .agent-head,
  .ic--agent .agent-ant,
  .ic--agent .agent-mouth,
  .ic--auto .auto-hub,
  .ic--auto .auto-wire,
  .ic--pin .pin-body,
  .ic--bag .bag-handle,
  .ic--bag .bag-body,
  .ic--feed .feed-frame,
  .ic--feed .feed-line,
  .ic--feed .feed-media,
  .ic--search .srch-bar,
  .ic--search .srch-row,
  .ic--mail .mail-body,
  .ic--mail .mail-flap { stroke-dashoffset: 0; }
  .ic--pin .pin-core,
  .ic--feed .feed-heart,
  .ic--search .srch-lens,
  .ic--mail .mail-bubble { opacity: 1; transform: none; }
}

/* A hairline broken by the plus, with the label riding beside it. */
.addons-rule {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 26px);
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  font-size: 16px;
  font-weight: 700;
}
.addons-rule > i { flex: 1; height: 1px; background: var(--line); }
.addons-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.addons-mark svg { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; }
.addons-mark em {
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

@media (max-width: 860px) {
  .core-grid { grid-template-columns: 1fr; }
  /* Every value here matches .n3-card's mobile block in style.css, so the hub and the service pages stay one card language; change them together. */
  .core-card { max-width: 90%; justify-self: center; padding: 29px 23px 25px; }
  .core-card .v-icon { width: 54px; height: 54px; border-radius: 14px; margin-bottom: 18px; }
  .core-card .v-icon svg { width: 43px; height: 43px; }
  .core-name { font-size: 19px; margin-bottom: 7px; }
  .core-copy { font-size: 13px; }
}

/* ==========================================================================
   HERO WIDGETS  (shared shell)
   ========================================================================== */
.svc-widget {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 22px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.02) inset,
    0 -20px 60px -30px var(--svc-glow);
  overflow: hidden;
}
.svc-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.svc-widget-head-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.svc-widget-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.005em;
}
.svc-widget-sub {
  font-size: 11.5px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.svc-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4ade80;
}
.svc-live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,0.6);
  animation: livePulse 1.8s var(--ease) infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* ==========================================================================
   WIDGET 1 · Booking feed (Web Design page)
   ========================================================================== */
.svc-feed-track {
  position: relative;
  height: 360px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 88%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 88%, transparent 100%);
}
.svc-feed-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  animation: svcFeedScroll 38s linear infinite;
}
.svc-widget:hover .svc-feed-list { animation-play-state: paused; }
.svc-feed-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.svc-feed-time {
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  font-weight: 700;
  color: #0A0A0A;
  background: #fff;
  padding: 5px 9px;
  border-radius: 8px;
  flex-shrink: 0;
}
.svc-feed-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.svc-feed-body strong {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.svc-feed-body span {
  font-size: 11.5px;
  color: rgba(255,255,255,0.55);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.svc-feed-tag {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: #4ade80;
  background: rgba(74,222,128,0.12);
  padding: 4px 9px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.svc-feed-tag--ghost {
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.06);
}
@keyframes svcFeedScroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

/* "Just booked" toast pop */
.svc-toast {
  position: absolute;
  left: 14px; right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(10,10,10,0.85);
  border: 1px solid rgba(var(--svc-rgb), 0.45);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
  font-size: 12px;
  color: #fff;
  pointer-events: none;
  opacity: 0;
  transform: translateY(14px);
  animation: svcToast 7s var(--ease) infinite;
}
.svc-toast-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--svc-ink-2);
  box-shadow: 0 0 10px var(--svc-ink-2);
  flex: none;
}
.svc-toast strong { font-weight: 700; margin-right: 4px; }
.svc-toast span { color: rgba(255,255,255,0.6); font-size: 11.5px; }
@keyframes svcToast {
  0%, 6%   { opacity: 0; transform: translateY(14px); }
  10%, 28% { opacity: 1; transform: translateY(0); }
  34%, 100% { opacity: 0; transform: translateY(-6px); }
}

/* ==========================================================================
   WIDGET 2 · Ad performance (Marketing page)
   ========================================================================== */
.svc-ads-body { padding: 18px 20px 20px; }
.svc-ads-spend {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.svc-ads-amount {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.svc-ads-delta {
  font-size: 12px;
  font-weight: 700;
  color: #4ade80;
  letter-spacing: -0.005em;
}
.svc-ads-label {
  font-size: 11.5px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.svc-ads-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.svc-ads-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.svc-ads-stat-k { font-size: 10.5px; color: rgba(255,255,255,0.5); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.svc-ads-stat-v { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }

.svc-ads-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
  margin-bottom: 16px;
  padding: 0 2px;
}
.svc-ads-bar {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--svc-ink-2), var(--svc-ink));
  height: 0;
  animation: svcBarGrow 12s var(--ease) infinite;
  transform-origin: bottom;
}
.svc-ads-bar:nth-child(1) { --h: 32%; animation-delay: 0s; }
.svc-ads-bar:nth-child(2) { --h: 54%; animation-delay: 0.15s; }
.svc-ads-bar:nth-child(3) { --h: 42%; animation-delay: 0.3s; }
.svc-ads-bar:nth-child(4) { --h: 78%; animation-delay: 0.45s; }
.svc-ads-bar:nth-child(5) { --h: 62%; animation-delay: 0.6s; }
.svc-ads-bar:nth-child(6) { --h: 90%; animation-delay: 0.75s; }
.svc-ads-bar:nth-child(7) { --h: 70%; animation-delay: 0.9s; }
@keyframes svcBarGrow {
  0%       { height: 0; opacity: 0.3; }
  8%, 80%  { height: var(--h); opacity: 1; }
  88%, 100% { height: var(--h); opacity: 1; }
}

.svc-ads-rows { display: flex; flex-direction: column; gap: 6px; }
.svc-ads-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  position: relative;
  overflow: hidden;
}
.svc-ads-row strong { color: #fff; font-weight: 700; margin-right: 6px; }
.svc-ads-row span { color: rgba(255,255,255,0.5); font-size: 11.5px; }
.svc-ads-row.is-hot {
  border-color: rgba(var(--svc-rgb), 0.55);
  background: rgba(var(--svc-rgb), 0.10);
  box-shadow: 0 0 0 4px rgba(var(--svc-rgb), 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .svc-feed-list, .svc-toast,
  .svc-ads-bar, .svc-live::before { animation: none !important; }
  .svc-toast { opacity: 1; transform: none; }
  .svc-ads-bar { height: var(--h); }
}

/* ==========================================================================
   CAPABILITY GROUPS  (magazine-style header)
   ========================================================================== */
.svc-group {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 88px) clamp(20px, 5vw, 48px);
}
.svc-group + .svc-group { border-top: 1px solid var(--line); }
.svc-group-head {
  margin: 0 auto clamp(36px, 5vw, 52px);
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.svc-group-eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--svc-soft);
  color: var(--svc-ink);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.svc-group-eyebrow::before { content: none; }
.svc-group-num { display: none; }
.svc-group-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
  max-width: 28ch;
}
.svc-group-sub {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  max-width: 56ch;
}
.svc-group-toggle { display: none; }

/* ==========================================================================
   CAPABILITY CARDS — fresh build, mirrors home page n3-card
   ========================================================================== */
.cap-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, 1fr);
}
.cap-grid:has(> .cap:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); max-width: 720px; margin: 0 auto; }
/* Seven tiles run four then three. An 8-track grid with 2-track tiles lets the
   second row start half a tile in, so it centres. Keyed off the tile count rather
   than the page, so any seven-tile group gets it. Gated above the stacking widths,
   where :has() specificity would otherwise outrank the plain rules below. */
@media (min-width: 1024px) {
  .cap-grid:has(> .cap:nth-child(7):last-child) { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .cap-grid:has(> .cap:nth-child(7):last-child) > .cap { grid-column: span 2; }
  .cap-grid:has(> .cap:nth-child(7):last-child) > .cap:nth-child(5) { grid-column: 2 / span 2; }
}
@media (max-width: 1023px) {
  .cap-grid { grid-template-columns: repeat(3, 1fr); }
  .cap-grid:has(> .cap:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .cap-grid, .cap-grid:has(> .cap:nth-child(3):last-child) { grid-template-columns: repeat(2, 1fr); }
}
/* Two per row holds all the way down; below ~380px the eyebrow pill outgrows its column, so the tile tightens instead of stacking. */
@media (max-width: 380px) {
  .cap { padding: 18px 10px 14px; min-height: 168px; }
  .cap > .cap-eyebrow { font-size: 9px; padding: 3px 7px; letter-spacing: 0.06em; }
  .cap .cap-teaser { font-size: 12px; max-width: none; }
}

/* Per-card colour palette (drawn from style.css tokens). */
.cap--c-website   { --svc-ink: #2563EB; --svc-ink-2: #60A5FA; --svc-soft: rgba(37,99,235,0.12);   --svc-rgb: 37,99,235; }
.cap--c-landing   { --svc-ink: #E8731C; --svc-ink-2: #FFB26B; --svc-soft: rgba(232,115,28,0.12);  --svc-rgb: 232,115,28; }
.cap--c-ads       { --svc-ink: #6D3BF0; --svc-ink-2: #A78BFA; --svc-soft: rgba(109,59,240,0.12);  --svc-rgb: 109,59,240; }
.cap--c-apps      { --svc-ink: #0D8A8A; --svc-ink-2: #2DD4BF; --svc-soft: rgba(13,138,138,0.12);  --svc-rgb: 13,138,138; }
.cap--c-store     { --svc-ink: #10A24A; --svc-ink-2: #34D17A; --svc-soft: rgba(16,162,74,0.12);   --svc-rgb: 16,162,74; }
.cap--c-restaurant{ --svc-ink: #D63A3A; --svc-ink-2: #F87171; --svc-soft: rgba(214,58,58,0.12);   --svc-rgb: 214,58,58; }
.cap--c-salon     { --svc-ink: #D4317A; --svc-ink-2: #F472B6; --svc-soft: rgba(212,49,122,0.12);  --svc-rgb: 212,49,122; }
.cap--c-furniture { --svc-ink: #8A6B2E; --svc-ink-2: #C9A867; --svc-soft: rgba(138,107,46,0.12);  --svc-rgb: 138,107,46; }
.cap--c-trade     { --svc-ink: #B58600; --svc-ink-2: #F2C744; --svc-soft: rgba(181,134,0,0.12);   --svc-rgb: 181,134,0; }

/* Card — compact, centered, just icon + label + dots. */
.cap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--surface);
  border: 0;
  border-radius: 16px;
  padding: 22px 16px 18px;
  min-height: 188px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  box-shadow:
    0 0 0 1px rgba(var(--svc-rgb), 0.10),
    0 18px 40px -14px rgba(var(--svc-rgb), 0.38);
  transition: transform 380ms var(--ease), box-shadow 380ms var(--ease);
}
.cap:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(var(--svc-rgb), 0.20),
    0 32px 70px -8px rgba(var(--svc-rgb), 0.58);
}
.cap:focus-visible { outline: 2px solid var(--svc-ink); outline-offset: 4px; }

/* Hide modal-only content — icon + eyebrow + teaser + dots show on the card */
.cap .cap-bullets,
.cap .cap-title { display: none; }

/* Card teaser — short, calm, one-line outcome under the eyebrow */
.cap .cap-teaser {
  display: block;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 24ch;
}

/* Eyebrow on the card — small pill in the accent color, centered under the icon */
.cap > .cap-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--svc-soft);
  color: var(--svc-ink);
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin: 0;
}
.cap > .cap-eyebrow::before { content: none; }
/* Icon-right variant — let head-row contents flow naturally as flex children. */
.cap--icon-right .cap-head-row { display: contents; }

/* Icon — tinted square tile, centered at top of the card. */
.cap-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--svc-soft);
  color: var(--svc-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 10px;
  flex: none;
  border: 0;
  order: -2;
  transition: transform 320ms var(--ease-spring);
}
.cap-icon svg { width: 18px; height: 18px; stroke: currentColor; }
.cap:hover .cap-icon { transform: translateY(-2px) scale(1.06); }
/* Eyebrow comes after icon */
.cap > .cap-eyebrow { order: -1; }
/* Dots last */
.cap-dots { order: 1; margin-top: 12px; }
.cap-dots span { width: 6px; height: 6px; }

/* Title and teaser — calm, confident. */
.cap-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--ink);
  line-height: 1.22;
  margin: 0 0 8px;
  max-width: 22ch;
}
.cap-teaser {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 32ch;
}

/* Bouncing dots — soul, exact n3-dots match in the card's accent color. */
.cap-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.cap-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--svc-ink);
  animation: capDotBounce 1.4s ease-in-out infinite;
}
.cap-dots span:nth-child(2) { animation-delay: 0.15s; }
.cap-dots span:nth-child(3) { animation-delay: 0.30s; }
@keyframes capDotBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .cap, .cap-icon { transition: none; }
  .cap-dots span { animation: none; }
}

/* ==========================================================================
   CAP MODAL  (Split layout: story left, dark proof panel right, footer CTAs.
   Accent-tinted per card via the svc tokens copied on open by service.js.)
   ========================================================================== */
.cap-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms var(--ease);
}
.cap-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.cap-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 10, 0.62);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.cap-modal-card {
  --m-rgb: var(--svc-rgb, 37, 99, 235);
  --m-ink: var(--svc-ink, #2563EB);
  --m-ink-2: var(--svc-ink-2, #60A5FA);
  position: relative;
  width: min(880px, 100%);
  min-width: 0;
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  color: #17150F;
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  grid-template-areas:
    "main side"
    "foot foot";
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6);
  transform: translateY(14px) scale(0.96);
  opacity: 0;
  transition: transform 320ms var(--ease-spring), opacity 220ms var(--ease);
}
.cap-modal.is-open .cap-modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.cap-modal-card.is-single {
  grid-template-columns: 1fr;
  grid-template-areas: "main" "foot";
  width: min(560px, 100%);
}
.cap-modal-card.is-single .cap-modal-side { display: none; }
.cap-modal-main, .cap-modal-side, .cap-modal-foot { min-width: 0; }

.cap-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 0;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms var(--ease), transform 200ms var(--ease-spring);
}
.cap-modal-close:hover {
  background: rgba(0, 0, 0, 0.55);
  transform: rotate(90deg);
}
.cap-modal-close svg { width: 16px; height: 16px; }

.cap-modal-main {
  grid-area: main;
  padding: clamp(26px, 4vw, 38px) clamp(22px, 3.5vw, 36px) clamp(18px, 3vw, 26px);
}
.cap-modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--m-ink);
  margin-bottom: 10px;
}
.cap-modal-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--m-ink);
  box-shadow: 0 0 8px rgba(var(--m-rgb), 0.6);
}
.cap-modal-title {
  font-size: clamp(25px, 3.3vw, 31px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.032em;
  margin: 0 0 14px;
  color: #131210;
  /* Balance evens the two lines, so no title orphans its last word without a hardcoded break. */
  text-wrap: balance;
}
.cap-modal-lead {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.62;
  color: #56514A;
  text-wrap: pretty;
}
/* The label rides a hairline, so it reads as a divider rather than a stray line of grey text. */
.cm-how {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B4ADA4;
  margin: 0 0 18px;
}
/* display:flex above outranks the UA [hidden] rule, so the fallback path needs this. */
.cm-how[hidden] { display: none; }
.cm-how::after { content: ""; flex: 1; height: 1px; background: rgba(0, 0, 0, 0.08); }
.cm-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: cmstep;
}
.cm-steps li {
  counter-increment: cmstep;
  position: relative;
  padding: 0 0 0 48px;
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.55;
  color: #55504A;
}
.cm-steps li:last-child { margin-bottom: 0; }
.cm-steps li::before {
  content: "0" counter(cmstep);
  position: absolute;
  left: 0;
  top: -3px;
  color: var(--m-ink);
  opacity: 0.32;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.cm-steps b { color: #131210; font-weight: 700; }

.cap-modal-side {
  grid-area: side;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(var(--m-rgb), 0.22), transparent 60%),
    #141414;
  color: #fff;
  padding: clamp(24px, 3.5vw, 30px) clamp(20px, 3vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cm-art {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 14px 12px;
}
/* A tile with art carries the visual instead of a second block of prose. */
.cap-modal-side.has-art { justify-content: center; }
.cap-modal-side.has-art .cm-proof,
.cap-modal-side.has-art .cm-get { display: none; }
.cap-modal-side.has-art .cm-art { padding: 22px 16px 18px; }
.cm-art svg { display: block; width: 100%; height: auto; }
.cm-art .art-ink { stroke: rgba(255, 255, 255, 0.85); }
.cm-art .art-dim { stroke: rgba(255, 255, 255, 0.28); }
.cm-art .art-hot { stroke: var(--m-ink-2); }
.cm-art .art-hot-fill { fill: var(--m-ink-2); fill-opacity: 0.18; }
.cm-art .art-run { fill: var(--m-ink-2); stroke: none; opacity: 0; }
.cm-art text { fill: rgba(255, 255, 255, 0.55); font: 600 8px Inter, sans-serif; letter-spacing: 0.04em; }
.cm-art text.hot { fill: var(--m-ink-2); }

/* --ic-ease is scoped to .ic, so the art must carry its own fallback or the shorthand is void. */
.art-strip .art-step { opacity: 0; animation: artStep 8s cubic-bezier(0.16, 1, 0.3, 1) infinite; }
.art-strip .s2 { animation-delay: 0.9s; }
.art-strip .s3 { animation-delay: 1.8s; }
.art-strip .r1 { animation: artRun1 8s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.art-strip .r2 { animation: artRun2 8s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
/* The tick path measures 15.95 units, so the dash must exceed it or the tail never draws. */
.art-strip .art-tick { stroke-dasharray: 17; stroke-dashoffset: 17; animation: artTick 8s cubic-bezier(0.16, 1, 0.3, 1) infinite; }
@keyframes artStep { 0%, 4% { opacity: 0; transform: translateY(4px); } 12%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(4px); } }
@keyframes artRun1 { 0%, 14% { transform: translateX(0); opacity: 0; } 19% { opacity: 1; } 30% { transform: translateX(63px); opacity: 1; } 34%, 100% { transform: translateX(63px); opacity: 0; } }
@keyframes artRun2 { 0%, 36% { transform: translateX(0); opacity: 0; } 41% { opacity: 1; } 52% { transform: translateX(63px); opacity: 1; } 56%, 100% { transform: translateX(63px); opacity: 0; } }
@keyframes artTick { 0%, 58% { stroke-dashoffset: 17; } 68%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 17; } }
@media (prefers-reduced-motion: reduce) {
  .cm-art * { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; transform: none !important; }
}

.cm-feed {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 14px 6px;
}
.cm-feed-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 8px;
}
.cm-feed-title em {
  font-style: normal;
  color: #4ADE80;
  font-size: 10.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cm-feed-title em::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #4ADE80;
}
.cm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
}
.cm-row:first-child { border-top: 0; }
.cm-row-body { min-width: 0; }
.cm-row-body strong { display: block; font-weight: 600; color: #fff; }
.cm-row-body small { display: block; color: rgba(255, 255, 255, 0.45); font-size: 11px; }
.cm-tag {
  flex-shrink: 0;
  background: rgba(74, 222, 128, 0.15);
  color: #4ADE80;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 9px;
  white-space: nowrap;
}
.cm-tag.is-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}
.cm-proof {
  background: rgba(var(--m-rgb), 0.12);
  border: 1px solid rgba(var(--m-rgb), 0.3);
  border-radius: 14px;
  padding: 13px 15px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}
.cm-proof strong { color: #fff; }
.cm-get {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}
.cm-get li {
  padding: 5px 0 5px 22px;
  position: relative;
}
.cm-get li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ADE80' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5 9-10'/></svg>") no-repeat center / contain;
}

.cap-modal-foot {
  grid-area: foot;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px clamp(22px, 3.5vw, 36px) 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  background: #fff;
}
.cap-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  min-width: 200px;
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease), box-shadow 220ms var(--ease);
  text-decoration: none;
  text-align: center;
}
.cap-modal-btn svg { width: 14px; height: 14px; }
.cap-modal-btn--primary {
  background: linear-gradient(180deg, var(--m-ink-2), var(--m-ink));
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(var(--m-rgb), 0.55);
}
.cap-modal-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px -10px rgba(var(--m-rgb), 0.7);
}
.cap-modal-btn--ghost {
  background: #fff;
  color: #17150F;
  border: 1.5px solid rgba(0, 0, 0, 0.16);
}
.cap-modal-btn--ghost:hover {
  border-color: rgba(0, 0, 0, 0.34);
}

body.cap-modal-open { overflow: hidden; }

@media (max-width: 760px) {
  .cap-modal { padding: 12px; }
  .cap-modal-card {
    grid-template-columns: 1fr;
    /* Visual leads on a phone, so the dark panel comes before the prose; the side block carries no radius of its own and is clipped by the card's overflow, so it rounds correctly in either position. */
    grid-template-areas: "side" "main" "foot";
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cap-modal, .cap-modal-card, .cap-modal-close { transition: none !important; }
  .cap-modal-card { transform: none; }
}

/* ==========================================================================
   LAYOUT VARIANTS  (3 rhythmic compositions across the grid)
   ========================================================================== */

/* Variant A · default stacked (icon, title, teaser, sample, demo-link).
   This is the implicit base, no extra class needed. */

/* Icon-right variant collapsed back to standard stacked layout */
.cap.cap--icon-right .cap-head-row {
  display: contents;
}
.cap.cap--icon-right .cap-icon {
  margin: 0 0 10px;
  order: -2;
}

/* ==========================================================================
   MAGAZINE HEADER  (small eyebrow + bold rewritten headline + sub)
   ========================================================================== */
.cap-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--svc-ink);
  margin-bottom: 10px;
}
.cap-eyebrow::before {
  content: "";
  width: 14px; height: 1.5px;
  background: var(--svc-ink);
  flex: none;
  border-radius: 999px;
}

/* ==========================================================================
   CARD BULLETS  (text-only feature rows under the teaser)
   ========================================================================== */
.cap-bullets {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cap-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}
.cap-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: rgba(34,197,94,0.14);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5 9-10'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 9px 9px;
}

@media (prefers-reduced-motion: reduce) {
  .cap, .cap-icon, .cap-icon svg, .cap::before { transition: none !important; animation: none !important; }
}

/* Widget size caps live after the base widget rules; a media query adds no specificity. */
@media (max-width: 960px) {
  .svc-feed-track { height: clamp(220px, 32svh, 360px); }
}

@media (max-width: 720px) {
  .svc-hero { padding: 64px clamp(18px, 5vw, 28px) 44px; }
  .svc-hero-inner { row-gap: 22px; }
  .svc-eyebrow { margin-bottom: 16px; }
  .svc-lead { margin-top: 14px; }

  /* Both CTAs share one row; they shrink rather than wrap. */
  .svc-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
  }
  .svc-btn {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    white-space: nowrap;
    gap: 6px;
    padding: 12px 14px;
    font-size: clamp(11.5px, 3.4vw, 14px);
  }
  .svc-btn svg { width: 13px; height: 13px; }

  .svc-feed-track { height: clamp(170px, 26svh, 300px); }
  .svc-ads-body { padding: 14px 16px 16px; }
  .svc-ads-amount { font-size: 32px; }
  .svc-ads-label { margin-bottom: 12px; }
  .svc-ads-stats { margin-bottom: 10px; }
  .svc-ads-stat { padding: 8px 10px; }
  .svc-ads-chart { height: 40px; margin-bottom: 10px; }
  .svc-ads-row { padding: 7px 10px; }
}

/* ==========================================================================
   ULTRA · pointer spotlight, conic ring, scroll reveal, icon halo
   Layered on top of the base .cap styles, kept additive so nothing breaks.
   ========================================================================== */

/* per-card pointer position, set from JS in % of the card box. */
.cap { --mx: 50%; --my: 0%; }

.cap > .cap-spot { display: none; }
.cap > .cap-spot--legacy {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 280ms var(--ease);
  background:
    radial-gradient(
      300px circle at var(--mx) var(--my),
      rgba(var(--svc-rgb), 0.07),
      rgba(var(--svc-rgb), 0.02) 35%,
      transparent 60%
    );
  z-index: 0;
}
.cap:hover > .cap-spot { opacity: 1; }

/* Conic ring disabled for the cleaner look */
.cap > .cap-ring { display: none; }
.cap > .cap-ring--legacy {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--ring-angle, 0deg),
    transparent 0deg,
    rgba(var(--svc-rgb), 0.55) 70deg,
    transparent 130deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 320ms var(--ease);
  z-index: 0;
}
.cap:hover > .cap-ring { opacity: 1; animation: capRingSpin 5.5s linear infinite; }
@keyframes capRingSpin { to { --ring-angle: 360deg; } }
@property --ring-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* Stronger icon halo and pulse on hover. */
.cap-icon { position: relative; }
.cap-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 14px;
  background: radial-gradient(closest-side, rgba(var(--svc-rgb), 0.30), transparent 70%);
  opacity: 0;
  transition: opacity 280ms var(--ease);
  z-index: -1;
}
.cap:hover .cap-icon::after { opacity: 1; }
.cap:hover .cap-icon { transform: translateY(-2px) scale(1.04); }

/* Hover transform/shadow already defined on .cap above */

/* Bullets + demo link sit above the spot/ring layers. */
.cap > * { position: relative; z-index: 1; }
.cap-icon { z-index: 1; }

/* Scroll reveal initial state. JS strips .cap--enter once Motion runs. */
.cap.cap--enter {
  opacity: 0;
  transform: translateY(22px);
}

/* Eyebrow gets a tiny pulse dot on hover to feel alive. */
.cap-eyebrow::before { transition: transform 320ms var(--ease-spring), background 200ms var(--ease); }
.cap:hover .cap-eyebrow::before { transform: scaleX(1.6); background: var(--svc-ink-2); }

/* Demo link arrow shifts on hover. */
.cap-demo-link svg { transition: transform 220ms var(--ease-spring); }
.cap:hover .cap-demo-link svg { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .cap.cap--enter { opacity: 1; transform: none; }
  .cap > .cap-ring { display: none; }
}
