/* =====================================================================
   theme-main: premium layer for the 37 hand-written main pages.
   Loaded after theme.css. Everything is scoped to pages that carry the
   marker <span class="pm-scope" hidden></span> as the first child of <main>,
   so generated industry/use-case pages (theme-gen.css) are not affected.
   ===================================================================== */

main:has(> .pm-scope) {
  --pm-r: 18px;
  --pm-glass: linear-gradient(180deg, rgba(30, 41, 66, .55), rgba(15, 23, 42, .55));
  --pm-glass-2: linear-gradient(180deg, rgba(36, 50, 80, .6), rgba(17, 25, 45, .6));
  --pm-ring: inset 0 1px 0 rgba(255, 255, 255, .05);
  --pm-hair: linear-gradient(90deg, transparent, rgba(96, 165, 250, .45) 30%, rgba(167, 139, 250, .45) 70%, transparent);

  /* ---------- rhythm ---------- */
  & > .band { position: relative; padding-block: 88px; }
  & > .band--tight { padding-block: 56px; }
  /* raised bands: deeper surface plus a glowing hairline instead of a flat box */
  & > .band--tint, & > .band--soft {
    background:
      radial-gradient(700px 260px at 50% 0%, rgba(59, 130, 246, .07), transparent 70%),
      linear-gradient(180deg, #0A1022, #080D1B);
    border-block: 0;
  }
  & > .band--tint::before, & > .band--soft::before, & > .band--line::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--pm-hair); opacity: .7; pointer-events: none;
  }
  & > .band--line { border-top: 0; }
  & > .band--dark {
    background:
      radial-gradient(800px 420px at 85% 10%, rgba(99, 102, 241, .28), transparent 62%),
      radial-gradient(700px 380px at 0% 100%, rgba(34, 211, 238, .14), transparent 62%),
      #0A0F22;
    border-block: 0; overflow: hidden;
  }
  & > .band--dark::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45;
    background-image: linear-gradient(rgba(148, 163, 184, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .06) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 70% 40%, #000 20%, transparent 75%);
  }
  & > .band--dark::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--pm-hair); }
  & > .band--dark > .wrap { position: relative; }
  /* two plain bands in a row: a faint divider so the page does not read as one endless slab */
  & > .band:not([class*="band--"]) + .band:not([class*="band--"]):not([aria-labelledby="cta-title"])::before {
    content: ""; position: absolute; top: 0; left: 50%; width: min(1152px, calc(100% - 48px)); transform: translateX(-50%); height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, .16), transparent);
  }
  & > .band:not([class*="band--"]) + .band:not([class*="band--"]) { padding-top: 88px; }
  & > section[aria-labelledby="cta-title"] { padding-top: 40px; }

  /* ---------- type ---------- */
  & h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -0.032em; }
  & .h2-sm { font-size: 22px; }
  & .co-legal h2 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; }
  & .section-head { gap: 14px; }
  & .section-head > h2::before {
    content: ""; display: block; width: 44px; height: 3px; border-radius: 3px; margin-bottom: 20px;
    background: linear-gradient(90deg, var(--m-blue), var(--m-cyan));
    box-shadow: 0 0 16px rgba(34, 211, 238, .45);
  }
  & .section-head--center > h2::before { margin-inline: auto; }
  & .section-head:has(> .eyebrow) > h2::before { display: none; }
  & .card h3.title a:not(.btn):not(.tag) { color: var(--m-strong); }
  & .card h3.title a:not(.btn):not(.tag):hover { color: #fff; }
  & .section-head .lead { color: var(--m-text-2); font-size: 18px; }
  & .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; }
  & .eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
  & .grad, & h1 .grad {
    background: var(--m-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  }

  /* ---------- hero ---------- */
  & > .hero { border-bottom: 0; }
  & > .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--pm-hair); opacity: .6; }
  & > .hero .wrap { padding-block: 48px 80px; }
  & > .hero--home .wrap { padding-block: 72px 88px; }
  & .hero .lead { font-size: 19px; color: #C3CEDD; max-width: 600px; }
  & .hero-media { position: relative; }
  & .hero-media::before {
    content: ""; position: absolute; inset: 8% 6%; z-index: -1; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(59, 130, 246, .38), rgba(139, 92, 246, .18) 55%, transparent);
    filter: blur(30px);
  }
  & .hero .split > div:last-child { position: relative; z-index: 0; }
  & .hero .ticks { gap: 8px 22px; font-size: 15px; }
  & .answer { border-radius: 16px; padding: 20px 24px 20px 26px; background: rgba(12, 19, 37, .78); }
  & .updated { font-size: 13px; }

  /* ---------- cards ---------- */
  & .card, & .steps li, & .flow > .node, & .figure, & .lang-grid a {
    border-radius: var(--pm-r); background: var(--pm-glass); border: 1px solid rgba(148, 163, 184, .13); box-shadow: var(--pm-ring);
  }
  & .card { padding: 24px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease; }
  & a.card:hover, & .card:has(h3.title a:hover) {
    transform: translateY(-3px); border-color: rgba(96, 165, 250, .45);
    box-shadow: var(--pm-ring), 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(96, 165, 250, .12), 0 0 40px rgba(59, 130, 246, .12);
  }
  & .card .title { font-size: 18.5px; letter-spacing: -0.01em; }
  & .card.ch {
    background:
      radial-gradient(280px 160px at 100% 0%, color-mix(in srgb, var(--accent, var(--m-blue)) 16%, transparent), transparent 70%),
      var(--pm-glass);
  }
  & .card.ch::before { height: 1px; left: 24px; right: 24px; opacity: .9; }
  & .card.ch:hover { border-color: color-mix(in srgb, var(--accent, var(--m-blue)) 55%, transparent); }
  & .card--dark {
    background: radial-gradient(420px 260px at 100% 0%, rgba(167, 139, 250, .28), transparent 70%), radial-gradient(300px 200px at 0% 100%, rgba(34, 211, 238, .12), transparent 70%), #121A33;
    border-color: rgba(167, 139, 250, .35);
  }
  & .card--highlight { background: linear-gradient(180deg, rgba(59, 130, 246, .14), rgba(59, 130, 246, .05)); border-color: rgba(96, 165, 250, .5); }
  & .card--tint, & .card--quiet { background: rgba(59, 130, 246, .06); border-color: rgba(96, 165, 250, .16); }
  & .tile { border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
  & .card .kicker { letter-spacing: .08em; font-size: 11.5px; }
  & .sublinks a { min-height: 32px; font-size: 13px; font-weight: 500; }

  /* ---------- stats (trust strip) ---------- */
  & .stats { gap: 0; border-radius: 20px; border: 1px solid rgba(148, 163, 184, .14); background: var(--pm-glass); box-shadow: var(--pm-ring); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
  & .stat { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 28px 20px; position: relative; }
  & .stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: rgba(148, 163, 184, .16); }
  & .stat strong { font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -0.03em; }
  & .stat span { color: var(--m-text-2); font-size: 14px; }

  /* ---------- key facts ---------- */
  & .facts {
    border: 1px solid rgba(148, 163, 184, .14); border-radius: var(--pm-r); background: var(--pm-glass); box-shadow: var(--pm-ring);
    padding: 6px 24px; gap: 0 36px; overflow: hidden;
  }
  & .facts > div { padding: 14px 0; border-bottom: 1px dashed rgba(148, 163, 184, .14); align-items: baseline; }
  & .facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #8EA0BA; }
  & .facts dd { color: #E2E8F0; font-size: 15px; }

  /* ---------- steps ---------- */
  & .steps { counter-reset: none; }
  & .steps li { padding: 26px; position: relative; }
  & .steps .n { width: 40px; height: 40px; font-size: 15px; box-shadow: 0 0 0 6px rgba(99, 102, 241, .12), 0 0 24px rgba(99, 102, 241, .45); }
  & .steps:not(.steps--rows) li::after {
    content: ""; position: absolute; top: 46px; left: 74px; right: 18px; height: 1px;
    background: linear-gradient(90deg, rgba(96, 165, 250, .5), transparent);
  }
  & .steps--rows li { padding: 18px 20px; }
  & .steps--rows li::after { display: none; }

  /* ---------- flow ---------- */
  & .flow > .node { padding: 20px; }
  & .flow > .node--hl { background: linear-gradient(180deg, rgba(59, 130, 246, .16), rgba(59, 130, 246, .05)); border-color: rgba(96, 165, 250, .5); box-shadow: 0 0 30px rgba(59, 130, 246, .15); }

  /* ---------- tables ---------- */
  & .table-wrap {
    border-radius: var(--pm-r); border: 1px solid rgba(148, 163, 184, .15); box-shadow: var(--pm-ring), 0 24px 60px rgba(0, 0, 0, .25);
    background:
      linear-gradient(90deg, #0E1529 30%, rgba(14, 21, 41, 0)) left / 40px 100% no-repeat local,
      linear-gradient(270deg, #0E1529 30%, rgba(14, 21, 41, 0)) right / 40px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .6), transparent) left / 14px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .6), transparent) right / 14px 100% no-repeat scroll,
      #0E1529;
  }
  & thead th { background: rgba(30, 41, 66, .7); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: #A9B8CE; font-weight: 600; padding-block: 14px; }
  & tbody tr { transition: background .15s; }
  & tbody tr:hover { background: rgba(59, 130, 246, .05); }
  & tbody th { font-weight: 600; }
  & td, & th { padding: 15px 18px; }

  /* ---------- media frames (light product scenes on dark) ---------- */
  & figure.media:not(.media--bare) {
    position: relative; padding: clamp(16px, 3vw, 32px); border-radius: 24px; isolation: isolate;
    background:
      radial-gradient(70% 60% at 50% 40%, rgba(59, 130, 246, .20), transparent 70%),
      linear-gradient(180deg, rgba(36, 50, 80, .55), rgba(15, 23, 42, .5));
    border: 1px solid rgba(148, 163, 184, .16); box-shadow: var(--pm-ring), 0 30px 80px rgba(0, 0, 0, .35);
  }
  & figure.media:not(.media--bare)::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: .5;
    background-image: radial-gradient(rgba(148, 163, 184, .18) 1px, transparent 1px); background-size: 18px 18px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  }
  & figure.media img { filter: drop-shadow(0 20px 40px rgba(2, 6, 23, .55)); }
  & figure.media figcaption { color: var(--m-text-2); text-align: center; font-size: 13.5px; }
  & .hero-media img { filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55)); }

  /* ---------- code ---------- */
  & .code-card { border-radius: var(--pm-r); background: #060A18; box-shadow: var(--pm-ring), 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(59, 130, 246, .06); }
  & .code-card .tabs { background: rgba(148, 163, 184, .04); }
  & .tab[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--m-cyan); }

  /* ---------- FAQ: heading left, questions as cards right ---------- */
  & > section[aria-labelledby="faq-title"] .faq { border-top: 0; display: grid; gap: 10px; }
  & > section[aria-labelledby="faq-title"] .faq details {
    border: 1px solid rgba(148, 163, 184, .13); border-radius: 14px; padding: 6px 20px; background: var(--pm-glass); transition: border-color .2s, background .2s;
  }
  & > section[aria-labelledby="faq-title"] .faq details[open] { border-color: rgba(96, 165, 250, .4); background: linear-gradient(180deg, rgba(59, 130, 246, .10), rgba(15, 23, 42, .55)); }
  & .faq summary { font-size: 16.5px; font-weight: 600; }
  & .faq summary::after {
    content: ""; width: 10px; height: 10px; border-right: 2px solid var(--m-cyan); border-bottom: 2px solid var(--m-cyan);
    transform: rotate(45deg) translateY(-3px); transition: transform .2s; margin-right: 4px;
  }
  & .faq details[open] summary::after { content: ""; transform: rotate(-135deg) translateY(-2px); }
  & .faq details p { color: #B8C4D6; padding-bottom: 12px; }

  /* ---------- related products ---------- */
  & > section[aria-labelledby="rel-title"] .card .text { font-size: 14px; }

  /* ---------- CTA ---------- */
  & .cta-panel { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(32px, 5vw, 64px); isolation: isolate;
    background: radial-gradient(600px 320px at 100% 0%, rgba(167, 139, 250, .55), transparent 60%), radial-gradient(520px 320px at 0% 100%, rgba(34, 211, 238, .30), transparent 60%), linear-gradient(135deg, #1D4ED8, #3730A3);
  }
  & .cta-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
    background-image: linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 40px 40px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
  & .cta-panel h2 { font-size: clamp(28px, 3.4vw, 42px); color: #fff; }
  & .cta-panel h2::before { display: none; }
  & .cta-panel .lead { color: #E0E7FF; }

  /* ---------- legal + forms leftovers ---------- */
  & .form-card { border-radius: 22px; }
  & .tags .tag { border: 1px solid rgba(148, 163, 184, .14); }
}

/* FAQ two-column on wide screens */
@media (min-width: 1000px) {
  main:has(> .pm-scope) > section[aria-labelledby="faq-title"] > .wrap {
    display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: 56px; align-items: start;
  }
  main:has(> .pm-scope) > section[aria-labelledby="faq-title"] .section-head { position: sticky; top: 96px; }
  main:has(> .pm-scope) > section[aria-labelledby="faq-title"] .narrow { max-width: none; }
}

/* ---------- mobile ---------- */
@media (max-width: 700px) {
  main:has(> .pm-scope) > .band { padding-block: 60px; }
  main:has(> .pm-scope) > .band--tight { padding-block: 44px; }
  main:has(> .pm-scope) > .band:not([class*="band--"]) + .band:not([class*="band--"]) { padding-top: 60px; }
  main:has(> .pm-scope) > .hero .wrap { padding-block: 28px 56px; }
  main:has(> .pm-scope) > .hero--home .wrap { padding-block: 36px 56px; }
  main:has(> .pm-scope) h1 { font-size: clamp(34px, 9.6vw, 42px); }
  main:has(> .pm-scope) .hero .lead { font-size: 17px; }
  main:has(> .pm-scope) .hero .btn-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
  main:has(> .pm-scope) .hero .btn-row .btn { width: 100%; justify-content: center; min-height: 50px; }
  main:has(> .pm-scope) .section-head > h2::before { margin-bottom: 16px; }
  main:has(> .pm-scope) .stats { grid-template-columns: 1fr 1fr; }
  main:has(> .pm-scope) .stat { padding: 22px 12px; }
  main:has(> .pm-scope) .stat:nth-child(odd)::before { display: none; }
  main:has(> .pm-scope) .stat:nth-child(n+3) { border-top: 1px solid rgba(148, 163, 184, .14); }
  main:has(> .pm-scope) .facts { padding: 4px 18px; }
  main:has(> .pm-scope) .facts > div { grid-template-columns: 1fr; gap: 2px; }
  main:has(> .pm-scope) figure.media:not(.media--bare) { padding: 12px; border-radius: 18px; }
  main:has(> .pm-scope) .steps:not(.steps--rows) li::after { display: none; }
  main:has(> .pm-scope) .cta-panel .btn-row { width: 100%; display: grid; grid-template-columns: 1fr; }
  main:has(> .pm-scope) .cta-panel .btn { justify-content: center; min-height: 50px; }
  main:has(> .pm-scope) table { font-size: 14px; min-width: 620px; }
  main:has(> .pm-scope) .table-wrap td, main:has(> .pm-scope) .table-wrap th { padding: 12px 14px; min-width: 110px; }
  main:has(> .pm-scope) .table-wrap { margin-inline: -4px; }
  main:has(> .pm-scope) table:has(thead th:nth-child(4)) { min-width: 780px; }
  main:has(> .pm-scope) .card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  main:has(> .pm-scope) .card, main:has(> .pm-scope) a.card:hover { transition: none; transform: none; }
}

/* =====================================================================
   Shared helpers used by the hand-written pages
   ===================================================================== */
main:has(> .pm-scope) {
  & .btn--lg { min-height: 52px; padding-inline: 26px; font-size: 16px; }
  & .pm-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
  & .pm-head-row > .btn { flex: none; }
  & .pm-head-row .btn .ico { width: 18px; height: 18px; }
  & .float-chip { border: 1px solid rgba(148, 163, 184, .25); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
  & .float-chip strong { color: #0B1120; }
  & .float-chip span span, & .float-chip > span:not(.tile) > span { color: #475569; }
  & .float-chip .tile { background: #EEF4FF; color: #2563EB; border: 0; }
}

/* =====================================================================
   Homepage
   ===================================================================== */
main:has(> .pm-scope) {
  & .pm-home-hero { gap: 40px 64px; }
  & .pm-home-hero > :first-child { flex: 1 1 460px; }
  & .pm-home-hero > :last-child { flex: 1 1 520px; }
  & .hero--home h1 { font-size: clamp(38px, 4.8vw, 60px); letter-spacing: -0.04em; }
  & .hero--home h1 .grad { display: inline; }
  & .pm-hero-ticks { font-size: 14.5px; color: var(--m-text-2); }

  /* trust strip */
  & .pm-trust { padding-block: 56px 72px; }
  & .pm-glance { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px 32px; align-items: start; }
  & .pm-glance h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--m-cyan); font-weight: 700; padding-top: 16px; }
  & .pm-glance .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; padding: 4px 22px; }
  & .pm-glance .facts > div { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; border-bottom: 0; }
  & .pm-glance .facts dd { font-size: 14px; color: #CBD5E1; }

  /* products */
  & .pm-products { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  & .pm-products .card { gap: 10px; }
  & .pm-products > .card:nth-last-child(-n+2) { grid-column: span 2; }
  & .pm-products .card-head { display: flex; align-items: center; gap: 10px; }
  & .pm-products .card-head .kicker { margin-left: auto; }
  & .pm-products .tile { width: 46px; height: 46px; box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 30%, transparent), inset 0 1px 0 rgba(255,255,255,.08); }
  & .pm-products .card .text { font-size: 14.5px; }
  & .pm-best { font-size: 13.5px; color: #B8C4D6; margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(148, 163, 184, .06); border: 1px solid rgba(148, 163, 184, .10); }
  & .pm-best b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: color-mix(in srgb, var(--accent) 70%, white); margin-bottom: 2px; }
  & .pm-feature {
    grid-column: span 2; padding: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 28px;
    grid-template-areas: "head call" "title call" "text call" "best call" "links call"; grid-template-rows: auto auto auto auto 1fr; align-items: start;
    background:
      radial-gradient(520px 320px at 100% 0%, rgba(167, 139, 250, .35), transparent 65%),
      radial-gradient(420px 300px at 0% 100%, rgba(34, 211, 238, .22), transparent 65%),
      linear-gradient(180deg, #141D3A, #0E1530);
    border-color: rgba(167, 139, 250, .4);
    box-shadow: var(--pm-ring), 0 0 60px rgba(99, 102, 241, .18);
  }
  & .pm-feature > .card-head { grid-area: head; } & .pm-feature > .title { grid-area: title; } & .pm-feature > .text { grid-area: text; }
  & .pm-feature > .pm-best { grid-area: best; } & .pm-feature > .sublinks { grid-area: links; align-self: end; } & .pm-feature > .pm-call { grid-area: call; align-self: center; margin: 0; }
  & .pm-feature .title { font-size: 30px; letter-spacing: -0.03em; }
  & .pm-feature .text { font-size: 16px; color: #CBD5E1; }
  & .pm-feature .tile { width: 54px; height: 54px; }
  & .pm-call { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; background: rgba(7, 11, 22, .6); border: 1px solid rgba(34, 211, 238, .22); margin-top: 6px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
  & .pm-call__top { display: flex; align-items: center; gap: 10px; }
  & .pm-call__dot { width: 9px; height: 9px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .18), 0 0 12px #34D399; }
  & .pm-call__who { font-size: 12.5px; font-weight: 600; color: #A5F3FC; letter-spacing: .02em; flex: 1; }
  & .pm-call .wave { display: inline-flex; align-items: center; gap: 3px; height: 22px; }
  & .pm-call .wave i { width: 3px; border-radius: 2px; background: linear-gradient(180deg, #22D3EE, #A78BFA); height: 40%; animation: pmwave 1.2s ease-in-out infinite; }
  & .pm-call .wave i:nth-child(2) { animation-delay: .1s; } & .pm-call .wave i:nth-child(3) { animation-delay: .25s; } & .pm-call .wave i:nth-child(4) { animation-delay: .4s; }
  & .pm-call .wave i:nth-child(5) { animation-delay: .15s; } & .pm-call .wave i:nth-child(6) { animation-delay: .3s; } & .pm-call .wave i:nth-child(7) { animation-delay: .05s; }
  & .pm-call__b { margin: 0; max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; }
  & .pm-call__b--ai { background: rgba(148, 163, 184, .12); color: #F1F5F9; border-top-left-radius: 4px; }
  & .pm-call__b--me { align-self: flex-end; background: linear-gradient(135deg, #3B82F6, #6366F1); color: #fff; border-top-right-radius: 4px; }
  & .pm-call__res { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
  & .pm-call__res span { font-size: 12px; font-weight: 600; color: #6EE7B7; padding: 4px 10px; border-radius: 999px; background: rgba(52, 211, 153, .10); border: 1px solid rgba(52, 211, 153, .28); }

  /* industries */
  & .pm-ind { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  & .pm-ind__card {
    display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 16px; text-decoration: none; color: var(--m-text);
    background: var(--pm-glass); border: 1px solid rgba(148, 163, 184, .13); box-shadow: var(--pm-ring); transition: transform .2s, border-color .2s, box-shadow .2s;
  }
  & .pm-ind__card:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, .45); box-shadow: var(--pm-ring), 0 20px 50px rgba(0, 0, 0, .4), 0 0 30px rgba(34, 211, 238, .10); color: var(--m-text); }
  & .pm-ind__card .tile { width: 40px; height: 40px; background: rgba(34, 211, 238, .10); color: #67E8F9; border-color: rgba(34, 211, 238, .25); margin-bottom: 4px; }
  & .pm-ind__name { font-weight: 700; color: var(--m-strong); font-size: 16.5px; display: flex; justify-content: space-between; gap: 8px; }
  & .pm-ind__name::after { content: "→"; color: var(--m-cyan); transition: transform .2s; }
  & .pm-ind__card:hover .pm-ind__name::after { transform: translateX(3px); }
  & .pm-ind__what { font-size: 14px; color: var(--m-text-2); flex: 1; }
  & .pm-ind__ch { font-size: 12px; font-weight: 600; color: #93C5FD; letter-spacing: .02em; padding-top: 10px; border-top: 1px solid rgba(148, 163, 184, .12); }
  & .pm-more { font-size: 15px; }

  /* AI spotlight */
  & .pm-ai-links { color: var(--m-text-2); }
  & .pm-ai-links a { color: #E0E7FF; }
  & .pm-callwrap { position: relative; padding: 28px 0 48px; }
  & .pm-callwrap .callcard { max-width: 480px; }
  & .pm-callwrap .float-chip--tl { left: -24px; top: auto; bottom: 4px; }
  & .pm-callwrap .float-chip--br { right: -20px; top: -14px; bottom: auto; }

  /* API */
  & .pm-events { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
  & .pm-events code { display: inline-block; font-size: 12.5px; padding: 5px 10px; border-radius: 8px; background: rgba(34, 211, 238, .08) !important; border: 1px solid rgba(34, 211, 238, .22) !important; color: #A5F3FC !important; }

  /* bento */
  & .pm-bento .card h3 { font-size: 18.5px; color: var(--m-strong); }
  & .pm-bento .is-large { min-height: 250px; }
  & .pm-routes { display: grid; gap: 8px; margin-top: auto; padding-top: 8px; }
  & .pm-routes span { display: block; height: 8px; border-radius: 8px; background: rgba(148, 163, 184, .10); overflow: hidden; }
  & .pm-routes i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #3B82F6, #22D3EE); box-shadow: 0 0 12px rgba(34, 211, 238, .5); }
  & .pm-checks { list-style: none; margin: auto 0 0; padding: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
  & .pm-checks li { font-size: 12.5px; font-weight: 600; color: #DDD6FE; padding: 5px 10px 5px 26px; border-radius: 999px; background: rgba(167, 139, 250, .12); border: 1px solid rgba(167, 139, 250, .3); position: relative; }
  & .pm-checks li::before { content: ""; position: absolute; left: 10px; top: 50%; width: 8px; height: 4px; border-left: 2px solid #A78BFA; border-bottom: 2px solid #A78BFA; transform: translateY(-70%) rotate(-45deg); }
}
@keyframes pmwave { 0%, 100% { height: 30%; } 50% { height: 100%; } }

@media (max-width: 1100px) {
  main:has(> .pm-scope) .pm-products, main:has(> .pm-scope) .pm-ind { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  main:has(> .pm-scope) .pm-products > .card:nth-last-child(-n+2) { grid-column: auto; }
  main:has(> .pm-scope) .pm-glance { grid-template-columns: 1fr; }
  main:has(> .pm-scope) .pm-glance h2 { padding-top: 0; }
}
@media (max-width: 700px) {
  main:has(> .pm-scope) .pm-products, main:has(> .pm-scope) .pm-ind { grid-template-columns: 1fr; }
  main:has(> .pm-scope) .pm-feature { grid-column: auto; padding: 24px; grid-template-columns: 1fr; grid-template-areas: "head" "title" "text" "best" "call" "links"; grid-template-rows: none; }
  main:has(> .pm-scope) .pm-feature .title { font-size: 25px; }
  main:has(> .pm-scope) .pm-glance .facts { grid-template-columns: 1fr; }
  main:has(> .pm-scope) .pm-glance .facts > div { padding: 10px 0; border-bottom: 1px dashed rgba(148,163,184,.14); }
  main:has(> .pm-scope) .pm-head-row > .btn { width: 100%; justify-content: center; }
  main:has(> .pm-scope) .pm-ind__card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { main:has(> .pm-scope) .pm-call .wave i { animation: none; height: 60%; } }

/* =====================================================================
   Page-level fixes
   ===================================================================== */
main:has(> .pm-scope) {
  & .pm-warn { border-color: rgba(251, 146, 60, .4); background: linear-gradient(180deg, rgba(251, 146, 60, .08), rgba(15, 23, 42, .55)); }
  & .pm-warn .kicker { color: #FDBA74; }
  & .timeline li.is-late .when { color: #FDBA74; }
  & .timeline li.is-late::after { border-color: #FDBA74; }
  & .timeline .when { color: var(--m-cyan); }
}
