/* ============================================
   Agent Accounts 2026 â€” page-level overrides
   --------------------------------------------------
   Loaded only on template-agent-accounts.php (see
   includes/functions/enqueue-styles.php). Scoped under
   `.aap` so nothing leaks to other pages.

   This stylesheet layers on top of `product-page-v2-tnt.css`,
   so the hero shell (`.pp-v2-hero`, `.pp-v2-btn`) and the
   typography/spacing primitives are shared with the Email,
   Calendar, Scheduler, and Notetaker product pages.

   Figma source: node 3702:30738 in
   https://www.figma.com/design/2ctarMd5mpIsNlI1qgeJ8V
   ============================================ */

   .aap {
    --aap-bg:          #ffffff;
    --aap-ink:         #000000;
    --aap-ink-muted:   #8e8e8e;
    --aap-rule-light:  #d8d8d8;
    --aap-rule-dark:   #404040;
    --aap-dark:        #000000;
    --aap-card-dark:   #212121;
    --aap-code-dark:   #151515;
    --aap-accent:      #0b9b8a;
    --aap-accent-bri:  #1ea482;
    --aap-pink:        #e01be0;
    --aap-text-on-dk:  #d8d8d8;

    --aap-rail:        1200px;
    --aap-rail-pad:    100px;
    --aap-side-strip:  146px;

    --aap-font-head:   'Manrope', 'Inter', system-ui, sans-serif;
    --aap-font-body:   'Inter', system-ui, sans-serif;
    --aap-font-mono:   'JetBrains Mono', 'Fira Code', 'Menlo', monospace;

    background: var(--aap-bg);
    color: var(--aap-ink);
    font-family: var(--aap-font-body);
    padding-bottom: 0!important;
}

/* Neutralise the site-wide `section { padding: 75px 0 !important }` rule. */
.aap section {
    box-sizing: border-box;
}

.aap *,
.aap *::before,
.aap *::after {
    box-sizing: border-box;
}

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

.aap__eyebrow {
    display: inline-block;
    font-family: var(--aap-font-body);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.aap__eyebrow--accent { color: var(--aap-accent); font-weight: 700; }
.aap__eyebrow--muted  { color: var(--aap-ink-muted); }

.aap__accent { color: var(--aap-accent); }

/* ============================================
   Section 1 â€” Hero
   --------------------------------------------------
   Uses the shared `.pp-v2-hero` shell from product-page-v2-tnt.css
   so spacing, type scale, button shapes, and breakpoints match
   the Email, Calendar, Scheduler, and Notetaker product pages.
   Only the title accent span, the trust line, and the right-side
   code panel are agentic-specific.
   ============================================ */

/* Title accent â€” design highlights "AI Agents" in teal. */
.pp-v2-hero--agentic .pp-v2-hero__title-accent {
    color: var(--aap-accent);
}

/* Trust strip â€” the agentic hero uses a single longer item instead of
   the three-chip variant used on Email. Let the text wrap on narrow
   viewports and inline-style the <code> token. */
.pp-v2-hero--agentic .pp-v2-hero__trust {
    flex-wrap: wrap;
    gap: 10px;
}
.pp-v2-hero--agentic .pp-v2-hero__trust code {
    font-family: var(--aap-font-mono);
    font-size: 13px;
    color: #444;
    background: #f3f3f3;
    padding: 0 4px;
    border-radius: 3px;
}

/* Right-side visual is a code panel rather than a flat image, so we
   override the default `.pp-v2-hero__visual img` constraints. */
.pp-v2-hero--agentic .pp-v2-hero__visual {
    overflow: visible;
}

.aap__code {
    width: 100%;
    max-width: 497px;
    background: #000;
    border-radius: 8px;
    border: 1px solid #1f2937;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.aap__code-head {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    background: #0c0c0c;
    border-bottom: 1px solid #1f2937;
}
.aap__code-dot {
    width: 11px; height: 11px;
    border-radius: 50%;
    background: #2a2a2a;
}
.aap__code-dot.is-r { background: #ff5f57; }
.aap__code-dot.is-y { background: #febc2e; }
.aap__code-dot.is-g { background: #28c840; }

.aap__code-body {
    margin: 0;
    padding: 18px 18px 22px;
    font-family: var(--aap-font-mono);
    font-size: 13px;
    line-height: 1.7;
    color: #e6e6e6;
    background: #000;
    white-space: pre;
    overflow-x: auto;
}

.aap__code-body .c-num { color: #5a6470; user-select: none; }
.aap__code-body .c-c   { color: #6cd388; }
.aap__code-body .c-m   { color: #ff7eb6; }
.aap__code-body .c-s   { color: #ffd28a; }

/* ============================================
   Dark sections â€” shared rail with side rules
   ============================================ */
.aap__owned,
.aap__features {
    background: var(--aap-dark);
    color: #fff;
    padding: 0 var(--aap-rail-pad) 60px;
}

.aap__dark-rail {
    max-width: var(--aap-rail);
    margin: 0 auto;
    padding: 40px 0 0;
    border-left: 1px solid var(--aap-rule-dark);
    border-right: 1px solid var(--aap-rule-dark);
}

.aap__dark-rail--bordered {
    border-top: 1px solid var(--aap-rule-dark);
}

/* ============================================
   Section 2 â€” Owned identity
   ============================================ */
.aap__owned-header {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px 60px 54px;
}
.aap__owned-title {
    margin: 0;
    font-family: var(--aap-font-head);
    font-weight: 600;
    font-size: 35px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #fff;
}
.aap__owned-desc {
    margin: 0;
    font-family: var(--aap-font-head);
    font-size: 16px;
    line-height: 1.55;
    color: #fff;
    max-width: 796px;
}

.aap__owned-body {
    display: grid;
    grid-template-columns: minmax(0, 515px) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
}

.aap__owned-list {
    list-style: none;
    margin: 0;
    padding: 24px -10px 24px 50px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    border-left: 1px solid var(--aap-rule-dark);
}

.aap__owned-item {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 16px;
    align-items: start;
}

.aap__owned-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    color: var(--aap-accent-bri);
}
.aap__owned-check svg { width: 18px; height: 18px; }

.aap__owned-text { display: flex; flex-direction: column; gap: 4px; }

.aap__owned-item-title {
    margin: 0;
    font-family: var(--aap-font-body);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.4;
    color: var(--aap-text-on-dk);
}
.aap__owned-item-desc {
    margin: 0;
    font-family: var(--aap-font-body);
    font-size: 14px;
    line-height: 1.5;
    color: var(--aap-ink-muted);
}

.aap__owned-visual {
    /* padding: 24px 50px 24px 24px; */
    display: flex;
    align-items: center;
    justify-content: center;
}
.aap__owned-visual img {
    width: 100%;
    max-width: 579px;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* ============================================
   Section 3 â€” Feature cards (dark 3x3)
   ============================================ */
.aap__features {
    /* Tighter dark-on-dark transition between sections 2 & 3. */
    padding-top: 0;
}

.aap__features .aap__dark-rail {
    padding-top: 60px;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
    border-bottom: 1px solid var(--aap-rule-dark);
}

.aap__features-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
    padding: 60px 24px 30px;
    border-top: 1px solid var(--aap-rule-dark);
}
.aap__features-title {
    margin: 0;
    font-family: var(--aap-font-head);
    font-weight: 600;
    font-size: 35px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #fff;
    max-width: 950px;
}
.aap__features-desc {
    margin: 0;
    font-family: var(--aap-font-head);
    font-size: 18px;
    line-height: 1.55;
    color: var(--aap-text-on-dk);
    max-width: 639px;
}

.aap__features-grid {
    list-style: none;
    margin: 0;
    padding: 0 32px 72px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.aap__feature-card {
    background: var(--aap-card-dark);
    border: 1px solid var(--aap-rule-dark);
    border-radius: 6px;
    padding: 24px;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aap__feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 32px;
    border-radius: 4px;
    background: rgba(142,142,142,0.18);
    border: 1px solid #8e8e8e;
    color: #d6d6d6;
}
.aap__feature-icon svg { width: 18px; height: 18px; }

.aap__feature-title {
    margin: 8px 0 0;
    font-family: var(--aap-font-head);
    font-weight: 600;
    font-size: 20px;
    line-height: 1.3;
    color: #fff;
    letter-spacing: -0.01em;
}

.aap__feature-desc {
    margin: 0;
    font-family: var(--aap-font-body);
    font-size: 14px;
    line-height: 1.55;
    color: var(--aap-text-on-dk);
}

/* ============================================
   Section 4 â€” Use cases + runbook (light)
   ============================================ */
.aap__use-cases {
    background: #fff;
    color: #000;
    border-bottom: 1px solid var(--aap-rule-light);
}

.aap__light-rail {
    max-width: var(--aap-rail);
    margin: 0 auto;
    padding: 60px 0 80px;
    border-left: 1px solid var(--aap-rule-light);
    border-right: 1px solid var(--aap-rule-light);
}

.aap__uc-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-bottom: 56px;
}
.aap__uc-title {
    margin: 0;
    font-family: var(--aap-font-head);
    font-weight: 500;
    font-size: 40px;
    line-height: 1.15;
    letter-spacing: -0.04em;
    color: #000;
    max-width: 792px;
}
.aap__uc-title .aap__accent {
    color: var(--aap-accent-bri);
    font-weight: 600;
}
.aap__uc-desc {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    color: #000;
    max-width: 708px;
}

/* â”€â”€ Use-case switchback â€” accordion list (left) + cross-fading stage (right).
      Modelled on Calendly's `accordion-switchback`: the active item drives a
      progress bar that auto-advances, the desktop stage cross-fades between
      runbooks, and on mobile each item expands its runbook inline. â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.aap__uc-body {
    display: flex;
    gap: 72px;
    padding: 20px 20px 40px;
    align-items: flex-start;
    justify-content: center;
}

/* Left: accordion list */
.aap__uc-list {
    flex: 0 1 430px;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.aap__uc-item {
    position: relative;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--aap-rule-light);
}

.aap__uc-tab {
    appearance: none;
    width: 100%;
    background: transparent;
    border: 0;
    padding: 24px;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #000;
    opacity: 0.55;
    transition: opacity .25s ease;
    position: relative;
    font-family: var(--aap-font-body);
}

.aap__uc-tab:hover { opacity: 0.85; }
.aap__uc-item.is-active .aap__uc-tab { opacity: 1; }

.aap__uc-tab:focus-visible {
    outline: 2px solid var(--aap-accent);
    outline-offset: -2px;
    opacity: 1;
}

.aap__uc-tab-eyebrow {
    font-family: var(--aap-font-head);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #000;
}
.aap__uc-item.is-active .aap__uc-tab-eyebrow { font-weight: 700; }

.aap__uc-tab-title {
    font-family: var(--aap-font-head);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    color: #000;
}

.aap__uc-tab-desc {
    font-size: 14px;
    line-height: 1.45;
    color: #000;
}

/* Progress bar â€” overlays the item's bottom rule and fills on the active
   item. Its `animationend` is what advances the accordion (see template JS). */
.aap__uc-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    overflow: hidden;
    pointer-events: none;
}
.aap__uc-progress::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--aap-pink);
}
.aap__uc-item.is-active .aap__uc-progress::after {
    animation: aap-uc-fill var(--uc-duration, 6500ms) linear forwards;
}
/* Pause auto-advance on hover, keyboard focus, or when scrolled off-screen. */
.aap__uc-body:hover  .aap__uc-item.is-active .aap__uc-progress::after,
.aap__uc-body:focus-within .aap__uc-item.is-active .aap__uc-progress::after,
.aap__uc-body.is-paused .aap__uc-item.is-active .aap__uc-progress::after {
    animation-play-state: paused;
}
@keyframes aap-uc-fill {
    from { width: 0; }
    to   { width: 100%; }
}

/* Inline runbook â€” collapsed accordion body, shown on mobile only. */
.aap__uc-collapse {
    display: none;
    overflow: hidden;
    max-height: 0;
    transition: max-height .4s ease;
}
.aap__uc-collapse-inner { padding-bottom: 24px; }

/* Right: cross-fading stage. Panels stack in a single grid cell so the stage
   auto-sizes to the tallest runbook and swaps with no layout shift. */
.aap__uc-stage {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    max-width: 630px;
}
.aap__uc-panel {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s;
}
.aap__uc-panel.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .45s ease, transform .45s ease;
}

@media (prefers-reduced-motion: reduce) {
    .aap__uc-panel,
    .aap__uc-panel.is-active,
    .aap__uc-collapse { transition: none; }
    .aap__uc-item.is-active .aap__uc-progress::after {
        animation: none;
        width: 100%;
    }
}

/* Mobile â€” single-column accordion: tap an item to expand its runbook inline
   beneath it; the desktop stage is hidden. */
@media (max-width: 900px) {
    .aap__uc-body {
        flex-direction: column;
        gap: 0;
        padding: 8px;
    }
    .aap__uc-list {
        flex: 1 1 auto;
        width: 100%;
    }
    .aap__uc-stage { display: none; }
    .aap__uc-collapse { display: block; }
    .aap__uc-tab { padding: 22px 8px; }
}

.aap__runbook {
    background: var(--aap-code-dark);
    border-radius: 6px;
    padding: 36px 32px 40px;
    color: #fff;
    font-family: var(--aap-font-body);
}

.aap__runbook-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 28px;
}
.aap__runbook-tag {
    font-family: var(--aap-font-mono);
    font-size: 13px;
    color: #00d258;
    letter-spacing: 0.02em;
}
.aap__runbook-title {
    margin: 0;
    font-family: var(--aap-font-head);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    color: #fff;
}

.aap__runbook-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.aap__runbook-step {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 14px;
    border-left:1px solid #00D258;
    position: relative;
}

.aap__runbook-step:last-child {
    border-left: none;
}

.aap__runbook-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1px solid #00D258;
    background: var(--aap-code-dark);
    color: #fff;
    font-family: var(--aap-font-body);
    font-size: 12px;
    line-height: 1;
    position: relative;
    z-index: 1;
    left: -13px;
}

.aap__runbook-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.aap__runbook-label {
    margin: 0;
    font-family: var(--aap-font-head);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    color: #fff;
}

.aap__runbook-desc {
    margin: 0;
    font-family: var(--aap-font-body);
    font-size: 13px;
    line-height: 1.55;
    color: #d9d9d9;
}

.aap__runbook-events {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.aap__runbook-event {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--aap-font-body);
    font-size: 13px;
    line-height: 1.45;
    color: #d9d9d9;
}

.aap__runbook-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6cd388;
    flex: 0 0 6px;
    margin-left: 2px;
}

.aap__runbook-num-inline {
    font-family: var(--aap-font-mono);
    color: #fff;
    margin-right: 4px;
}

.aap__runbook-highlight {
    font-family: var(--aap-font-body);
    font-weight: 500;
    margin-left: 2px;
}
.aap__runbook-highlight--blue   { color: #89c7eb; }
.aap__runbook-highlight--purple { color: #da90ff; }
.aap__runbook-highlight--pink   { color: #ff66e0; }

.aap__runbook-event-text {
    flex-basis: 95%;
}

.aap__badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--aap-font-body);
    font-weight: 600;
    font-size: 11px;
    line-height: 16px;
    letter-spacing: 0.02em;
    border: 0.6px solid transparent;
}
.aap__badge--blue {
    background: rgba(54,113,255,0.2);
    border-color: #3671ff;
    color: #89c7eb;
}
.aap__badge--purple {
    background: rgba(200,91,255,0.2);
    border-color: #c85bff;
    color: #da90ff;
}
.aap__badge--pink {
    background: rgba(255,120,255,0.2);
    border-color: #ff2fff;
    color: #ff66e0;
}

.aap__uc-footer {
    text-align: center;
    margin-top: 24px;
}

/* ============================================
   Section 5 â€” Built for Autonomous Scale (dark)
   ============================================ */
.aap__scale {
    background: var(--aap-dark);
    color: #fff;
    padding: 0 var(--aap-rail-pad);
    border-top: 1px solid var(--aap-rule-dark);
}

.aap__scale .aap__dark-rail {
    padding: 60px 0 0;
}

.aap__scale-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
    padding: 0 24px 40px;
}
.aap__scale-title {
    margin: 0;
    font-family: var(--aap-font-head);
    font-weight: 600;
    font-size: 40px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
}
.aap__scale-desc {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    color: #fff;
    max-width: 505px;
}

.aap__scale-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--aap-rule-dark);
    border-bottom: 1px solid var(--aap-rule-dark);
}

.aap__scale-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px 20px;
    text-align: center;
    border-right: 1px solid var(--aap-rule-dark);
}
.aap__scale-stat:last-child { border-right: 0; }

.aap__scale-stat-value {
    font-family: var(--aap-font-head);
    font-weight: 800;
    font-size: 35px;
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--aap-accent-bri);
}

.aap__scale-stat-label {
    font-family: var(--aap-font-head);
    font-weight: 600;
    font-size: 18px;
    line-height: 1.3;
    color: var(--aap-ink-muted);
}

.aap__scale-logos {
    list-style: none;
    margin: 0;
    padding: 32px 60px 56px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 24px;
}

.aap__scale-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}
.aap__scale-logo img {
    max-height: 100px;
    max-width: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
    /* The certification webps in product-page-v2/certifications/ are
       already white-on-black silhouettes (see template-email-product-
       page-v2-final-TNT.php for the existing usage), so they drop onto
       this dark section as-is. */
}

/* ============================================
   Section 6 â€” Connectivity / partner logos
   ============================================ */
.aap__tools {
    background: #fff;
    color: #000;
}

.aap__tools .aap__light-rail {
    padding-top: 60px;
    padding-bottom: 64px;
}

.aap__tools-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-bottom: 32px;
    padding: 0 16px;
}
.aap__tools-title {
    margin: 0;
    font-family: var(--aap-font-head);
    font-weight: 600;
    font-size: 40px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #000;
}
.aap__tools-desc {
    margin: 0;
    font-size: 20px;
    line-height: 1.4;
    color: #000;
    max-width: 919px;
}

.aap__tools-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--aap-rule-light);
}

.aap__tools-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 120px;
    padding: 16px 12px;
    border-right: 1px solid var(--aap-rule-light);
    border-bottom: 1px solid var(--aap-rule-light);
    font-family: var(--aap-font-head);
    font-weight: 600;
    color: #1a1a1a;
}
.aap__tools-cell:nth-child(4n) { border-right: 0; }

/* Per-logo width/height come from inline styles (Figma design sizes).
   Keep only an overflow guard so wordmarks never exceed their cell. */
.aap__tools-logo {
    display: block;
    max-width: 100%;
    object-fit: contain;
}

.aap__tools-footer {
    display: flex;
    justify-content: center;
    margin-top: 70px;
}

/* ============================================
   Responsive â€” 1280 / 1024 / 768 / 480
   --------------------------------------------------
   The hero relies on `.pp-v2-hero` breakpoints from
   product-page-v2-tnt.css; we only override agentic-specific
   bits (code panel sizing, button stacking).
   ============================================ */
@media (max-width: 1280px) {
    .aap__owned,
    .aap__features,
    .aap__scale {
        padding-left: 40px;
        padding-right: 40px;
    }
    .aap__light-rail {
        padding-left: 80px;
        padding-right: 80px;
    }
}

@media (max-width: 1024px) {
    /* pp-v2-hero stacks its content + visual at this breakpoint via its
       own CSS; we just normalise the code panel width. */
    .pp-v2-hero--agentic .aap__code { max-width: 100%; }

    .aap__owned-body {
        grid-template-columns: 1fr;
    }
    .aap__owned-list {
        border-left: 0;
        padding: 8px 0 24px;
    }
    .aap__owned-visual { padding: 0; }

    .aap__features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aap__uc-body {
        gap: 48px;
    }

    .aap__scale-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .aap__scale-stat:nth-child(2n) { border-right: 0; }
    .aap__scale-stat:nth-child(-n+2) { border-bottom: 1px solid var(--aap-rule-dark); }

    .aap__scale-logos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .aap__tools-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .aap__tools-cell { border-right: 1px solid var(--aap-rule-light); }
    .aap__tools-cell:nth-child(4n) { border-right: 1px solid var(--aap-rule-light); }
    .aap__tools-cell:nth-child(3n) { border-right: 0; }

    .aap__light-rail {
        padding-left: 48px;
        padding-right: 48px;
    }
}

@media (max-width: 768px) {
    /* `.pp-v2-hero` already handles padding + title scaling at this
       breakpoint in product-page-v2-tnt.css. */

    .aap__owned,
    .aap__features,
    .aap__scale {
        padding-left: 24px;
        padding-right: 24px;
    }
    .aap__owned-header {
        padding: 16px 16px 20px;
    }
    .aap__owned-title { font-size: 28px; }

    .aap__features-grid {
        grid-template-columns: 1fr;
        padding: 0 16px 24px;
    }
    .aap__features-title { font-size: 28px; }

    .aap__light-rail {
        padding: 40px 24px 48px;
    }

    .aap__uc-title { font-size: 32px; }
    .aap__uc-body { padding: 8px; }
    .aap__runbook { padding: 24px 18px 28px; }
    .aap__runbook-event { font-size: 12px; }

    .aap__scale-title,
    .aap__tools-title { font-size: 30px; }
    .aap__scale-stat-value { font-size: 28px; }
    .aap__scale-stat-label { font-size: 16px; }
    .aap__scale-logos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 24px 16px 40px;
    }

    .aap__tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .aap__tools-cell:nth-child(3n) { border-right: 1px solid var(--aap-rule-light); }
    .aap__tools-cell:nth-child(2n) { border-right: 0; }
}

@media (max-width: 480px) {
    /* Stack hero buttons. `.pp-v2-hero__buttons` is the shared shell. */
    .pp-v2-hero--agentic .pp-v2-hero__buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .pp-v2-hero--agentic .pp-v2-hero__buttons .pp-v2-btn { width: 100%; }

    .aap__scale-stats {
        grid-template-columns: 1fr;
    }
    .aap__scale-stat { border-right: 0; border-bottom: 1px solid var(--aap-rule-dark); }
    .aap__scale-stat:last-child { border-bottom: 0; }
    .aap__scale-logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aap__tools-grid {
        grid-template-columns: 1fr;
    }
    .aap__tools-cell { border-right: 0 !important; }
}
