/* Kinvra AI — extra patterns for the Services pages (site/lib-services.mjs).
   Loaded after site.css and pages.css, only on /services and its children. */

/* ---------- shared bits ---------- */
.pg-title, .pg-h2, .pg-h3, .svc-tile h3, .svc-statement h3 { text-wrap: balance; }
.pg-lede, .pg-sub { text-wrap: pretty; }
.pg-hero:not(.has-media) { padding-bottom: 32px; }

.svc-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: -0.005em; color: #5b3fd6; }
.pg-section.dark .svc-eyebrow { color: #c9bbff; }

.svc-glyph { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, rgba(41, 151, 255, 0.14), rgba(255, 79, 216, 0.14)); }
.svc-glyph svg, .pg-icon svg, .svc-journey-dot svg { fill: none; stroke: #5b3fd6; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc-glyph svg { width: 24px; height: 24px; }
.pg-section.dark .svc-glyph { background: linear-gradient(135deg, rgba(41, 151, 255, 0.24), rgba(255, 79, 216, 0.24)); }
.pg-section.dark .svc-glyph svg { stroke: #c9bbff; }

/* A link that makes its whole card clickable. */
.svc-stretch::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--radius-lg); }
.svc-stretch:focus-visible { outline: none; }
.svc-stretch:focus-visible::after { outline: 3px solid var(--blue); outline-offset: 3px; }

.svc-space { margin-top: 56px; }
.svc-fine { max-width: 72ch; margin: 40px auto 0; text-align: center; font-size: 13px; line-height: 1.55; color: var(--ink-3); }

/* Steps and compact cards on dark sections. */
.pg-card .pg-card-eyebrow { color: #5b3fd6; }
.pg-section.dark .pg-steps li { background: #161617; }
.pg-section.dark .pg-steps p { color: var(--on-dark-2); }
.pg-section.dark .chev { color: #2997ff; }
.svc-cards-compact .pg-card { padding: 24px; }
.svc-cards-compact .pg-card h3 { font-size: 18px; }
.svc-cards-compact .pg-card p { font-size: 15px; }

/* Keep the reveal fade while cards lift on hover. */
.svc-bento .svc-tile, .svc-work .svc-work-card, .svc-channels .svc-channel { transition: opacity 1s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }

/* ---------- service tiles (bento) ---------- */
.svc-bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.svc-tile { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-xl); background: var(--bg-2); color: var(--ink); }
.svc-bento .svc-tile:hover { transform: translateY(-4px); box-shadow: 0 34px 70px -40px rgba(0, 0, 0, 0.35); }
.svc-tile .svc-stretch::after { border-radius: var(--radius-xl); }
.svc-tile-media { aspect-ratio: 16 / 10; overflow: hidden; }
.svc-tile-media picture, .svc-tile-media img { display: block; width: 100%; height: 100%; }
.svc-tile-media img { object-fit: cover; transition: transform 1.2s var(--ease); }
.svc-tile:hover .svc-tile-media img { transform: scale(1.035); }
.svc-tile-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 30px 32px 32px; }
.svc-tile h3 { font-size: clamp(1.6rem, 2.7vw, 2.15rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; }
.svc-tile-text { font-size: 17px; line-height: 1.5; color: var(--ink-3); }
.svc-mini { margin-top: 8px; gap: 8px; }
.svc-mini li { font-size: 15px; }
.svc-tile .chev { margin-top: auto; padding-top: 14px; }
.svc-tile.is-wide { grid-column: 1 / -1; flex-direction: row; }
.svc-tile.is-wide.is-flip { flex-direction: row-reverse; }
.svc-tile.is-wide .svc-tile-media { flex: 1.08; aspect-ratio: auto; min-height: 400px; }
.svc-tile.is-wide .svc-tile-body { flex: 1; justify-content: center; padding: 48px 52px; }
.svc-tile.is-wide .chev { margin-top: 12px; }

/* ---------- channel tiles ---------- */
.svc-channels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.svc-channel { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 24px 24px; border-radius: var(--radius-lg); background: var(--bg); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 40px -28px rgba(0, 0, 0, 0.22); }
.pg-section:not(.alt):not(.dark) .svc-channel { background: var(--bg-2); box-shadow: none; }
.svc-channels .svc-channel:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 30px 60px -30px rgba(0, 0, 0, 0.3); }
.svc-channel .svc-glyph { margin-bottom: 12px; }
.svc-channel h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; }
.svc-channel-text { margin-top: 2px; font-size: 15px; line-height: 1.5; color: var(--ink-3); }
.svc-channel .chev { margin-top: auto; padding-top: 14px; font-size: 15px; }
.svc-channels.is-detailed { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.svc-channels.is-detailed .svc-channel { padding: 34px 34px 30px; border-radius: var(--radius-xl); }
.svc-channels.is-detailed .svc-stretch::after { border-radius: var(--radius-xl); }
.svc-channels.is-detailed h3 { font-size: 28px; letter-spacing: -0.03em; }
.svc-channels.is-detailed .svc-channel-text { font-size: 17px; }
.svc-channels.is-detailed .pg-checks { margin: 18px 0 6px; gap: 10px; }
.svc-channels.is-detailed .pg-checks li { font-size: 16px; }

/* ---------- journey ---------- */
.svc-journey { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 28px; }
.svc-journey li { position: relative; }
.svc-journey li:not(:last-child)::after { content: ""; position: absolute; top: 27px; left: 68px; right: -16px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(41, 151, 255, 0.55), rgba(122, 92, 255, 0.55), rgba(255, 79, 216, 0.55)); }
.svc-journey-dot { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line), 0 12px 26px -16px rgba(0, 0, 0, 0.35); }
.pg-section:not(.alt):not(.dark) .svc-journey-dot { background: var(--bg-2); box-shadow: none; }
.svc-journey-dot svg { width: 24px; height: 24px; }
.svc-journey-label { font-size: 13px; font-weight: 600; color: #5b3fd6; }
.svc-journey h3 { margin-top: 4px; font-size: 21px; letter-spacing: -0.02em; }
.svc-journey p:not(.svc-journey-label) { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--ink-3); }
.pg-section.dark .svc-journey-dot { background: #161617; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.pg-section.dark .svc-journey-dot svg { stroke: #c9bbff; }
.pg-section.dark .svc-journey-label { color: #c9bbff; }
.pg-section.dark .svc-journey p:not(.svc-journey-label) { color: var(--on-dark-2); }

/* ---------- statements ---------- */
.svc-statements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; max-width: 980px; margin-inline: auto; }
.svc-statement { padding: 36px 0 40px; border-top: 1px solid var(--line); }
.svc-statement .svc-glyph { margin-bottom: 20px; }
.svc-statement h3 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.035em; }
.svc-statement p { margin-top: 12px; max-width: 44ch; font-size: 17px; line-height: 1.55; color: var(--ink-3); }
.pg-section.dark .svc-statement { border-top-color: rgba(255, 255, 255, 0.16); }
.pg-section.dark .svc-statement p { color: var(--on-dark-2); }

/* ---------- compare ---------- */
.svc-compare { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 0 16px; }
.svc-compare-col { display: grid; grid-row: span var(--span); grid-template-rows: subgrid; row-gap: 0; padding: 6px 24px 10px; border-radius: var(--radius-lg); background: var(--bg-2); }
.pg-section.alt .svc-compare-col { background: var(--bg); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 40px -30px rgba(0, 0, 0, 0.2); }
.svc-compare-col h3 { padding: 22px 0 18px; font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; border-bottom: 1px solid var(--line); }
.svc-compare-cell { padding: 16px 0 18px; border-bottom: 1px solid var(--line); }
.svc-compare-cell:last-child { border-bottom: 0; }
.svc-compare-k { margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.svc-compare-cell p:not(.svc-compare-k) { font-size: 16px; line-height: 1.45; color: var(--ink); }

/* ---------- common mistakes ---------- */
.svc-fixes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.svc-fix { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius-lg); background: var(--bg-2); }
.pg-section.alt .svc-fix { background: var(--bg); }
.svc-fix-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #c4122f; }
.svc-fix-x, .svc-fix-ok { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; }
.svc-fix-x { background: rgba(215, 0, 21, 0.1); }
.svc-fix-x svg { width: 14px; height: 14px; fill: none; stroke: #c4122f; stroke-width: 2.4; stroke-linecap: round; }
.svc-fix h3 { font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; }
.svc-fix > p:not([class]) { color: var(--ink-3); line-height: 1.5; }
.svc-fix-do { display: flex; gap: 10px; align-items: flex-start; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.svc-fix-do strong { color: var(--ink); }
.svc-fix-ok { margin-top: 1px; background: var(--blue); }
.svc-fix-ok svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- checklists in groups ---------- */
.svc-groups { display: grid; gap: 18px; }
.svc-groups.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svc-groups.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc-groups.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.svc-group { padding: 30px 28px; border-radius: var(--radius-lg); background: var(--bg-2); }
.pg-section.alt .svc-group { background: var(--bg); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 40px -30px rgba(0, 0, 0, 0.2); }
.pg-section.dark .svc-group { background: #161617; text-align: left; }
.svc-group .svc-eyebrow { margin-bottom: 6px; }
.svc-group h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.svc-group-text { margin-top: 8px; color: var(--ink-3); line-height: 1.5; }
.svc-group .pg-checks { margin-top: 20px; }
.svc-group .pg-checks li { font-size: 16px; }

/* ---------- spec rows ---------- */
.svc-specs { border-top: 1px solid var(--line); }
.svc-spec { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 40px; padding: 38px 0; border-bottom: 1px solid var(--line); }
.svc-spec-head { display: flex; align-items: center; gap: 16px; align-self: start; }
.svc-spec-head h3 { font-size: clamp(1.35rem, 2.3vw, 1.7rem); line-height: 1.15; letter-spacing: -0.03em; }
.svc-spec-body > p { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.svc-spec-body .pg-checks { margin-top: 16px; gap: 10px; }
.svc-spec-body .pg-checks li { font-size: 16px; color: var(--ink-2); }

/* ---------- note ---------- */
.svc-note { display: flex; gap: 16px; align-items: flex-start; max-width: 820px; margin-inline: auto; padding: 24px 28px; border-radius: var(--radius-lg); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.pg-section:not(.alt):not(.dark) .svc-note { background: var(--bg-2); box-shadow: none; }
.svc-note-ic svg { display: block; width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; }
.svc-note-title { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.svc-note-title + p { margin-top: 6px; color: var(--ink-3); line-height: 1.55; }

/* ---------- copy beside a visual ---------- */
.svc-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.svc-duo.reverse .svc-duo-copy { order: 2; }
.svc-duo-copy .pg-checks { margin-top: 26px; }
.pg-section.dark .svc-duo-copy .pg-sub { color: var(--on-dark-2); }

/* ---------- conversions log ---------- */
.svc-log { margin: 0; overflow: hidden; border-radius: 24px; background: #161617; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px -40px rgba(0, 0, 0, 0.8); }
.svc-log-bar { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 14px; }
.svc-log-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.18); }
.svc-tag { margin-left: auto; padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); font-size: 12px; color: #c7c7cc; }
.svc-log ol { list-style: none; margin: 0; padding: 4px 20px; }
.svc-log li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.svc-log li:last-child { border-bottom: 0; }
.svc-log-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(41, 151, 255, 0.16); }
.svc-log-ic svg { width: 20px; height: 20px; fill: none; stroke: #6cb6ff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc-log-what strong { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.svc-log-what span { display: block; margin-top: 2px; font-size: 13px; color: var(--on-dark-2); }
.svc-log-to { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.svc-log-to span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px 4px 7px; border-radius: 99px; background: rgba(48, 209, 88, 0.14); font-size: 12px; font-weight: 600; color: #7ee29a; white-space: nowrap; }
.svc-log-to svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.svc-log figcaption { padding: 12px 20px 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 12px; line-height: 1.5; color: var(--on-dark-2); }

/* ---------- free grader panel ---------- */
.svc-grader { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.svc-grader-copy .pg-actions { margin-top: 28px; }
.svc-grader-foot { margin-top: 18px; max-width: 46ch; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.svc-grader-areas { list-style: none; margin: 0; padding: 8px 28px; border-radius: var(--radius-xl); background: var(--bg); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 40px 80px -48px rgba(0, 0, 0, 0.3); }
.svc-grader-areas li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.svc-grader-areas li:last-child { border-bottom: 0; }
.svc-grader-areas strong { display: block; font-size: 17px; letter-spacing: -0.015em; }
.svc-grader-areas li > span:last-child > span { display: block; margin-top: 3px; font-size: 15px; line-height: 1.45; color: var(--ink-3); }

/* ---------- work cards ---------- */
.svc-work { display: grid; gap: 20px; }
.svc-work.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svc-work.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc-work-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-xl); background: var(--bg-2); color: var(--ink); }
.pg-section.alt .svc-work-card { background: var(--bg); }
.svc-work .svc-work-card:hover { transform: translateY(-4px); box-shadow: 0 34px 70px -40px rgba(0, 0, 0, 0.35); }
.svc-work-card .svc-stretch::after { border-radius: var(--radius-xl); }
.svc-work-shot { padding: 26px 26px 0; background: linear-gradient(150deg, #dfeaff, #efe6ff 55%, #ffe4f4); }
.svc-work-card:nth-child(2) .svc-work-shot { background: linear-gradient(150deg, #efe6ff, #ffe4f4 60%, #ffeede); }
.svc-work-card:nth-child(3) .svc-work-shot { background: linear-gradient(150deg, #e2f6ea, #dfeaff 60%, #efe6ff); }
.svc-work-card:nth-child(4) .svc-work-shot { background: linear-gradient(150deg, #ffeede, #efe6ff 60%, #dfeaff); }
.svc-work-shot picture { display: block; }
.svc-work-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 12px 12px 0 0; box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.4); transition: transform 0.8s var(--ease); transform-origin: bottom center; }
.svc-work-card:hover .svc-work-shot img { transform: translateY(-4px); }
.svc-work-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 24px 28px 28px; }
.svc-work-body h3 { font-size: 24px; letter-spacing: -0.025em; }
.svc-work-body p:not(.svc-eyebrow) { color: var(--ink-3); line-height: 1.5; }
.svc-work-body .chev { margin-top: auto; padding-top: 10px; font-size: 15px; }

/* ---------- case study: devices ---------- */
.svc-showcase { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.svc-showcase-text { margin-top: 14px; font-size: 17px; line-height: 1.55; color: var(--ink-3); }
.svc-showcase-copy .pg-checks { margin-top: 20px; }
.svc-showcase-copy .chev { margin-top: 24px; }
.svc-devices::before { background: radial-gradient(closest-side, rgba(177, 140, 255, 0.5), transparent); }
.svc-devices .browser { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.5); }
.svc-devices .phone { box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.55); }
.svc-devices picture { display: block; }

/* ---------- case study: dark band with a phone ---------- */
.svc-case { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 48px; align-items: center; padding: clamp(32px, 6vw, 72px); border-radius: var(--radius-xl); background: #0b0b0f; color: var(--on-dark); }
.svc-case-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 60% at 85% 55%, rgba(177, 140, 255, 0.4), transparent 70%), radial-gradient(40% 50% at 10% 0%, rgba(41, 151, 255, 0.25), transparent 70%); }
.svc-case .svc-eyebrow { color: #c9bbff; }
.svc-case-text { margin-top: 14px; max-width: 48ch; font-size: 17px; line-height: 1.55; color: var(--on-dark-2); }
.svc-case .pg-checks { margin-top: 22px; }
.svc-case .chev { margin-top: 26px; color: #2997ff; }
.svc-case-phone { justify-self: center; width: min(230px, 100%); margin: 0; padding: 7px; border-radius: 38px; background: #000; border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9); }
.svc-case-phone picture { display: block; }
.svc-case-phone img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; border-radius: 31px; }

/* ---------- listing anatomy ---------- */
.svc-anatomy { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.svc-az { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; padding: 28px; border-radius: var(--radius-xl); background: var(--bg); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 40px 80px -48px rgba(0, 0, 0, 0.35); }
.svc-az-gallery { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; }
.svc-az-thumbs { display: grid; gap: 8px; }
.svc-az-thumbs i { aspect-ratio: 1; border-radius: 8px; background: #eeeef3; }
.svc-az-thumbs i:first-child { box-shadow: inset 0 0 0 2px #b9a8ff; background: #f1edff; }
.svc-az-main { position: relative; aspect-ratio: 1; border-radius: 16px; background: radial-gradient(circle at 50% 62%, #d9cfff, #f4f1ff 72%); }
.svc-az-product { position: absolute; left: 50%; bottom: 18%; width: 30%; height: 56%; transform: translateX(-50%); border-radius: 14px 14px 18px 18px; background: linear-gradient(160deg, #ffffff, #cfc2ff 70%, #a894ff); box-shadow: 0 18px 30px -16px rgba(60, 30, 160, 0.5); }
.svc-az-product::before { content: ""; position: absolute; left: 50%; top: -14%; width: 46%; height: 16%; transform: translateX(-50%); border-radius: 5px 5px 2px 2px; background: #6b56d8; }
.svc-az-info { position: relative; display: flex; flex-direction: column; gap: 9px; padding-top: 4px; }
.svc-az-line { display: block; height: 9px; border-radius: 5px; background: #e5e5ea; }
.svc-az-line.tall { height: 13px; background: #d2d2d7; }
.w-90 { width: 90%; } .w-70 { width: 70%; } .w-40 { width: 40%; }
.svc-az-stars { position: relative; display: flex; gap: 2px; margin: 2px 0; }
.svc-az-stars svg { width: 14px; height: 14px; fill: #ffcc4d; stroke: #f0b400; stroke-width: 1; }
.svc-az-bullets { position: relative; display: grid; gap: 8px; margin-top: 8px; }
.svc-az-bullets b { position: relative; display: block; height: 7px; margin-left: 12px; border-radius: 4px; background: #e5e5ea; }
.svc-az-bullets b::before { content: ""; position: absolute; left: -12px; top: 0; width: 7px; height: 7px; border-radius: 50%; background: #c7c7cc; }
.svc-az-bullets b:nth-of-type(2) { width: 84%; } .svc-az-bullets b:nth-of-type(3) { width: 92%; } .svc-az-bullets b:nth-of-type(4) { width: 66%; }
.svc-az-buy { display: block; height: 30px; margin-top: auto; border-radius: 99px; background: linear-gradient(90deg, #2997ff, #7a5cff); opacity: 0.85; }
.svc-az-aplus { position: relative; grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.svc-az-aplus i { height: clamp(56px, 8vw, 92px); border-radius: 10px; background: linear-gradient(150deg, #e6efff, #f1ecff); }
.svc-az-aplus i:first-of-type { background: linear-gradient(150deg, #efe6ff, #ffe4f4); }
.svc-az-search { position: relative; grid-column: 1 / -1; padding: 12px 16px; border: 1.5px dashed #c7c7cc; border-radius: 12px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.svc-pin { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; line-height: 1; box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.18); }
.svc-az .svc-pin { position: absolute; z-index: 1; }
.svc-pin-1 { left: -10px; top: -6px; }
.svc-pin-2 { left: 8px; top: 8px; }
.svc-pin-3 { left: -12px; top: -6px; }
.svc-pin-4 { left: -10px; top: 6px; }
.svc-pin-5 { right: 12px; top: 50%; transform: translateY(-50%); }
.svc-pin-6 { left: 84px; top: -6px; }
.svc-legend { list-style: none; margin: 0; padding: 0; }
.svc-legend li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.svc-legend li:first-child { padding-top: 0; }
.svc-legend li:last-child { border-bottom: 0; }
.svc-legend h3 { font-size: 18px; letter-spacing: -0.02em; line-height: 26px; }
.svc-legend p { margin-top: 2px; font-size: 15px; line-height: 1.5; color: var(--ink-3); }

/* ---------- hero visuals ---------- */
.pg-hero-media:has(.svc-hub, .svc-social, .svc-ready) { box-shadow: 0 40px 80px -48px rgba(40, 20, 120, 0.4); }

/* One catalog, four channels */
.svc-hub { position: relative; width: 100%; height: 100%; container-type: inline-size; background: radial-gradient(55% 65% at 50% 50%, #ffffff 0%, #f4f0ff 55%, #fde9f6 100%); }
.svc-hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.svc-hub-lines path { fill: none; stroke: #b3a1ff; stroke-width: 2; stroke-dasharray: 5 7; vector-effect: non-scaling-stroke; animation: svc-dash 1.6s linear infinite; }
@keyframes svc-dash { to { stroke-dashoffset: -24; } }
.svc-hub-core { position: absolute; left: 50%; top: 50%; z-index: 1; display: grid; justify-items: center; gap: 1.6cqw; width: 29cqw; padding: 2.8cqw 2.6cqw 2.6cqw; border-radius: 3.6cqw; background: #fff; box-shadow: 0 0 0 1px rgba(91, 63, 214, 0.1), 0 3cqw 6cqw -2.5cqw rgba(60, 30, 160, 0.35); transform: translate(-50%, -50%); text-align: center; }
.svc-hub-core small { font-size: 2cqw; font-weight: 600; color: #5b3fd6; }
.svc-hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3cqw; width: 100%; }
.svc-hub-grid i { aspect-ratio: 1; border-radius: 1.8cqw; background: linear-gradient(150deg, #e4ecff, #d9cfff); }
.svc-hub-grid i:nth-child(2) { background: linear-gradient(150deg, #ffe4f4, #ffd0e9); }
.svc-hub-grid i:nth-child(3) { background: linear-gradient(150deg, #fff0da, #ffe0c2); }
.svc-hub-grid i:nth-child(4) { background: linear-gradient(150deg, #dcf6e6, #c6eed8); }
.svc-hub-core strong { font-size: 2.5cqw; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
.svc-hub-sync { display: inline-flex; align-items: center; gap: 0.9cqw; padding: 0.6cqw 1.6cqw; border-radius: 99px; background: rgba(48, 209, 88, 0.12); font-size: 1.9cqw; font-weight: 600; color: #1a7f37; }
.svc-hub-sync b { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: var(--green); }
.svc-hub-node { position: absolute; z-index: 1; display: flex; align-items: center; gap: 1.6cqw; width: 27cqw; padding: 1.5cqw 1.8cqw 1.5cqw 1.5cqw; border-radius: 2.6cqw; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 2.5cqw 5cqw -2.5cqw rgba(0, 0, 0, 0.3); }
.svc-hub-node.n1 { left: 5%; top: 14%; }
.svc-hub-node.n2 { right: 5%; top: 14%; }
.svc-hub-node.n3 { left: 5%; bottom: 14%; }
.svc-hub-node.n4 { right: 5%; bottom: 14%; }
.svc-hub-ic { display: grid; place-items: center; flex: none; width: 6.2cqw; height: 6.2cqw; border-radius: 1.8cqw; background: linear-gradient(135deg, rgba(41, 151, 255, 0.16), rgba(255, 79, 216, 0.16)); }
.svc-hub-ic svg { width: 3.6cqw; height: 3.6cqw; fill: none; stroke: #5b3fd6; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc-hub-node strong { display: block; font-size: 2.5cqw; line-height: 1.15; letter-spacing: -0.015em; color: var(--ink); white-space: nowrap; }
.svc-hub-node small { display: block; margin-top: 0.3cqw; font-size: 2cqw; color: var(--ink-3); white-space: nowrap; }

/* A phone selling on LIVE */
.svc-social { position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; container-type: inline-size; background: radial-gradient(45% 60% at 22% 30%, rgba(142, 197, 255, 0.55), transparent 70%), radial-gradient(45% 60% at 80% 70%, rgba(255, 170, 222, 0.6), transparent 70%), linear-gradient(135deg, #f6f3ff, #fff0f8); }
.svc-social-tag { position: absolute; right: 3cqw; top: 3cqw; padding: 0.8cqw 1.8cqw; border-radius: 99px; background: rgba(255, 255, 255, 0.8); font-size: max(10px, 1.9cqw); font-weight: 600; color: var(--ink-3); }
.svc-social-phone { position: relative; display: block; height: 90%; aspect-ratio: 9 / 18.5; padding: 1cqw; border-radius: 5.4cqw; background: #0b0b0c; box-shadow: 0 5cqw 9cqw -4cqw rgba(40, 20, 90, 0.55); }
.svc-social-screen { position: relative; display: block; height: 100%; overflow: hidden; border-radius: 4.5cqw; background: radial-gradient(70% 45% at 50% 42%, #ffd6ec, transparent 70%), linear-gradient(170deg, #cdb8ff 0%, #9d7bff 45%, #3a2468 100%); }
.svc-social-top { position: absolute; left: 2.4cqw; right: 2.4cqw; top: 3.4cqw; display: flex; align-items: center; gap: 1.2cqw; font-size: 1.9cqw; font-weight: 600; color: #fff; }
.svc-social-top b { padding: 0.35cqw 1.1cqw; border-radius: 0.8cqw; background: #e11d48; font-size: 1.7cqw; letter-spacing: 0.04em; }
.svc-social-item { position: absolute; left: 50%; top: 24%; width: 30%; height: 40%; transform: translateX(-50%); border-radius: 3cqw 3cqw 3.6cqw 3.6cqw; background: linear-gradient(160deg, #ffffff, #ffd1ea 60%, #ff9fd2); box-shadow: 0 3cqw 5cqw -2cqw rgba(60, 20, 90, 0.5); }
.svc-social-item::before { content: ""; position: absolute; left: 50%; top: -12%; width: 50%; height: 13%; transform: translateX(-50%); border-radius: 1cqw 1cqw 0.4cqw 0.4cqw; background: #fff; }
.svc-social-rail { position: absolute; right: 1.8cqw; bottom: 26%; display: grid; gap: 1.6cqw; }
.svc-social-rail i { display: grid; place-items: center; width: 4.6cqw; height: 4.6cqw; border-radius: 50%; background: rgba(0, 0, 0, 0.28); }
.svc-social-rail svg { width: 2.6cqw; height: 2.6cqw; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc-social-card { position: absolute; left: 1.4cqw; right: 1.4cqw; bottom: 2cqw; display: flex; align-items: center; gap: 0.9cqw; padding: 1cqw; border-radius: 2.2cqw; background: #fff; }
.svc-social-card > span { min-width: 0; overflow: hidden; }
.svc-social-card > i { flex: none; width: 4.6cqw; height: 4.6cqw; border-radius: 1.2cqw; background: linear-gradient(150deg, #ffe4f4, #ffb8dd); }
.svc-social-card strong { display: block; font-size: 1.65cqw; line-height: 1.15; color: var(--ink); white-space: nowrap; }
.svc-social-card small { display: block; font-size: 1.5cqw; color: var(--ink-3); white-space: nowrap; }
.svc-social-card > b { flex: none; margin-left: auto; padding: 0.6cqw 1.1cqw; border-radius: 99px; background: #e11d48; font-size: 1.45cqw; color: #fff; }
.svc-social-chip { position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 1cqw; padding: 1.3cqw 2cqw 1.3cqw 1.5cqw; border-radius: 99px; background: #fff; box-shadow: 0 2.4cqw 5cqw -2cqw rgba(40, 20, 90, 0.35); font-size: max(11px, 2.2cqw); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.svc-social-chip svg { width: max(14px, 2.8cqw); height: max(14px, 2.8cqw); fill: none; stroke: #5b3fd6; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc-social-chip.c1 { left: 4cqw; top: 30%; }
.svc-social-chip.c2 { right: 5cqw; bottom: 24%; }
.svc-social-chip.c2 svg { stroke: #1a7f37; }

/* Application readiness card */
.svc-ready { display: grid; place-items: center; width: 100%; height: 100%; container-type: inline-size; background: radial-gradient(50% 60% at 25% 25%, rgba(142, 197, 255, 0.5), transparent 70%), radial-gradient(50% 60% at 80% 80%, rgba(201, 182, 255, 0.55), transparent 70%), linear-gradient(135deg, #f4f8ff, #f6f1ff); }
.svc-ready-card { display: block; width: 72cqw; padding: 3.4cqw 3.8cqw 2.4cqw; border-radius: 4cqw; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 5cqw 10cqw -5cqw rgba(40, 20, 120, 0.4); }
.svc-ready-head { display: flex; align-items: center; gap: 2cqw; margin-bottom: 1.4cqw; }
.svc-ready-head .svc-glyph { width: max(30px, 7cqw); height: max(30px, 7cqw); border-radius: 1.8cqw; }
.svc-ready-head .svc-glyph svg { width: 60%; height: 60%; }
.svc-ready-head strong { display: block; font-size: max(13px, 3.3cqw); letter-spacing: -0.02em; color: var(--ink); }
.svc-ready-head small { display: block; font-size: max(10px, 2cqw); color: var(--ink-3); }
.svc-ready-row { display: flex; align-items: center; gap: 1.8cqw; padding: 1.7cqw 0; border-top: 1px solid #ececf0; font-size: max(11px, 2.7cqw); font-weight: 500; color: var(--ink-2); }
.svc-ready-row i { display: grid; place-items: center; flex: none; width: max(16px, 3.2cqw); height: max(16px, 3.2cqw); border-radius: 50%; background: var(--blue); }
.svc-ready-row svg { width: 70%; height: 70%; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .svc-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-groups.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-fixes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-work.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-work.cols-3 .svc-work-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .svc-compare[style*="--cols:4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .svc-compare[style*="--cols:4"] .svc-compare-col { grid-row: auto; grid-template-rows: none; display: block; }
  .svc-journey { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 560px; margin-inline: auto; }
  .svc-journey li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; padding-bottom: 30px; text-align: left; }
  .svc-journey li > * { grid-column: 2; }
  .svc-journey-dot { grid-column: 1 !important; grid-row: 1 / span 3; margin-bottom: 0; }
  .svc-journey-label { align-self: end; padding-top: 4px; }
  .svc-journey li:not(:last-child)::after { top: 64px; bottom: 6px; left: 27px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, rgba(122, 92, 255, 0.5), rgba(255, 79, 216, 0.35)); }
}
@media (max-width: 900px) {
  .svc-tile.is-wide, .svc-tile.is-wide.is-flip { flex-direction: column; }
  .svc-tile.is-wide .svc-tile-media { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .svc-tile.is-wide .svc-tile-body { padding: 30px 32px 32px; }
  .svc-duo, .svc-grader, .svc-showcase, .svc-anatomy { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .svc-duo.reverse .svc-duo-copy { order: 0; }
  .svc-case { grid-template-columns: minmax(0, 1fr); }
  .svc-case-phone { width: min(220px, 70%); }
  .svc-spec { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 30px 0; }
  .svc-statements { gap: 0 40px; }
}
@media (max-width: 760px) {
  .svc-bento { grid-template-columns: minmax(0, 1fr); }
  .svc-channels.is-detailed { grid-template-columns: minmax(0, 1fr); }
  .svc-compare, .svc-compare[style*="--cols:4"] { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .svc-compare-col { grid-row: auto; grid-template-rows: none; display: block; }
  .svc-statements { grid-template-columns: minmax(0, 1fr); }
  .svc-work.cols-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .svc-channels, .svc-groups.cols-2, .svc-groups.cols-3, .svc-groups.cols-4, .svc-fixes, .svc-work.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .svc-work.cols-3 .svc-work-card:last-child:nth-child(odd) { grid-column: auto; }
  .svc-tile-body, .svc-tile.is-wide .svc-tile-body { padding: 26px 24px 28px; }
  .svc-channels:not(.is-detailed) { gap: 12px; }
  .svc-channels:not(.is-detailed) .svc-channel { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 2px; padding: 20px; }
  .svc-channels:not(.is-detailed) .svc-channel > * { grid-column: 2; }
  .svc-channels:not(.is-detailed) .svc-glyph { grid-column: 1; grid-row: 1 / span 4; margin-bottom: 0; }
  .svc-channels:not(.is-detailed) .chev { padding-top: 8px; }
  .svc-channels.is-detailed .svc-channel { padding: 28px 24px 26px; }
  .svc-channels.is-detailed h3 { font-size: 24px; }
  .svc-fix, .svc-group { padding: 24px; }
  .svc-space { margin-top: 40px; }
  .svc-az { padding: 18px; gap: 16px; }
  .svc-az-gallery { grid-template-columns: 24px minmax(0, 1fr); gap: 6px; }
  .svc-az-thumbs { gap: 5px; }
  .svc-az-thumbs i { border-radius: 5px; }
  .svc-pin { width: 22px; height: 22px; font-size: 12px; }
  .svc-pin-6 { left: 72px; }
  .svc-legend li { grid-template-columns: 22px minmax(0, 1fr); gap: 14px; }
  .svc-legend li .svc-pin { width: 22px; height: 22px; }
  .svc-grader-areas { padding: 4px 20px; }
  .svc-log ol { padding: 4px 16px; }
  .svc-log li { grid-template-columns: auto minmax(0, 1fr); row-gap: 8px; }
  .svc-log-to { grid-column: 2; justify-content: flex-start; }
  .svc-note { padding: 20px; gap: 12px; }
  .pg-hero-media:has(.svc-hub, .svc-social) { aspect-ratio: 4 / 3; }
  .svc-hub-node small { display: none; }
  .svc-hub-node { width: auto; padding: 1.8cqw 2.4cqw 1.8cqw 1.8cqw; }
  .svc-hub-node strong { font-size: 3cqw; }
  .svc-hub-ic { width: 7cqw; height: 7cqw; }
  .svc-hub-ic svg { width: 4.2cqw; height: 4.2cqw; }
  .svc-hub-core { width: 34cqw; gap: 2cqw; }
  .svc-hub-core small, .svc-hub-sync { font-size: 2.6cqw; }
  .svc-hub-core strong { font-size: 3.1cqw; }
  .svc-hub-node.n1, .svc-hub-node.n2 { top: 9%; }
  .svc-hub-node.n3, .svc-hub-node.n4 { bottom: 9%; }
  .svc-social-chip.c1 { left: 3cqw; top: 22%; }
  .svc-social-chip.c2 { right: 3cqw; bottom: 16%; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-hub-lines path { animation: none; }
  .svc-bento .svc-tile, .svc-work .svc-work-card, .svc-channels .svc-channel, .svc-tile-media img, .svc-work-shot img { transition: none; }
}
