/*
  claude-mobile.css — deep mobile pass for claude-merged.html.
  Loads LAST (after claude-polish.css). Everything here is scoped to
  ≤767px (mobile) or 768–1023px (tablet); desktop is untouched by design.

  ONE mobile token layer (§0). Every section rule below consumes these
  tokens — no ad-hoc per-section mobile values.
*/

/* ============ 0. Mobile token layer ============ */

@media (max-width: 767px) {
  :root {
    /* type scale */
    --m-display: clamp(32px, 9vw, 42px);       /* H1 / display */
    --m-h2: clamp(26px, 7.4vw, 34px);          /* section titles */
    --m-h3: clamp(19px, 5.4vw, 23px);          /* card titles */
    --m-body: 16px;                            /* body floor */
    --m-body-s: 14px;                          /* secondary body */
    --m-label: 12px;                           /* micro-caps floor */
    --m-track: .12em;                          /* micro-caps tracking */

    /* spacing rhythm */
    --m-sec-pad: clamp(52px, 8svh, 72px);      /* section block padding */
    --m-block-gap: 28px;                       /* between stacked blocks */
    --m-edge: 16px;                            /* content side padding */

    /* shape + touch */
    --m-radius: 16px;                          /* card radius */
    --m-touch: 44px;                           /* minimum hit target */

    /* panel system (claude-polish.css §6 sets 22px at ≤700; the mobile
       range is 767 — one value across the whole range) */
    --panel-radius: 22px;
  }
}

/* ============ 1. Global baseline (≤767) ============ */

@media (max-width: 767px) {
  /* micro-caps floor: every mono label reads at ≥12px */
  .pb-kicker,
  .pd-kicker,
  .pb-keeper,
  .pb-stage-label,
  .pb-component-label,
  .pb-node-label,
  .pb-logo-label,
  .pb-entry-tag,
  .pd-baseline,
  .report-close__eyebrow,
  .report-close__output-tag,
  .report-close__closing-lead,
  .control-note {
    font-size: var(--m-label);
    line-height: 1.45;
    letter-spacing: var(--m-track);
    white-space: normal;
  }

  .pb-logo-name {
    font-size: var(--m-label);
  }

  .browser-address {
    font-size: 11px;
  }

  /* keepers are single statements; let them wrap with breathing room */
  .pb-keeper {
    max-width: 30ch;
    margin-inline: auto;
    text-align: center;
  }

  /* body floors */
  .pd-sub,
  .pb-sub,
  .report-close__lede {
    font-size: var(--m-body);
    line-height: 1.55;
  }

  .pb-card-line,
  .pb-entry-line,
  .pb-stage-copy,
  .pb-component-copy,
  .pb-context-copy,
  .state-card > p:last-child,
  .solution-inner > p:last-child,
  .report-close__closing-copy {
    font-size: var(--m-body-s);
    line-height: 1.5;
  }

  /* section titles onto the mobile scale */
  .pd-header h2,
  .pb-title,
  .pb-zone-playbooks .pb-head-copy .pb-title,
  .pb-integration-head .pb-title {
    font-size: var(--m-h2);
    line-height: 1.04;
  }

  /* longer headline: one size down so it holds at ≤3 lines */
  .pb-zone-timeline .pb-title {
    font-size: clamp(23px, 6.6vw, 34px);
    line-height: 1.06;
  }

  .state-card h3 {
    font-size: var(--m-h3);
  }

  /* touch floor for the small interactive strays */
  .founder-link {
    min-height: var(--m-touch);
  }

  .motion-toggle {
    min-height: var(--m-touch);
    min-width: var(--m-touch);
  }

  /* safe-area: keep the page clear of the home indicator */
  main {
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
}

/* ============ 2. Mobile navbar: hamburger + sheet ============ */

/* Toggle button: hidden wherever the inline nav shows (>760 keeps desktop nav) */
.claude-nav-toggle {
  display: none;
}

@media (max-width: 760px) {
  .nav-glass {
    grid-template-columns: auto 1fr auto auto;
  }

  .claude-nav-toggle {
    position: relative;
    z-index: 1;
    grid-column: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--m-touch);
    height: var(--m-touch);
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--nav-text, #14161c);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .claude-nav-toggle:focus-visible {
    outline: 2px solid var(--nav-text, #14161c);
    outline-offset: 2px;
  }

  .claude-nav-toggle i,
  .claude-nav-toggle i::before,
  .claude-nav-toggle i::after {
    display: block;
    width: 17px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .28s var(--mo-ease, ease), opacity .2s ease;
  }

  .claude-nav-toggle i {
    position: relative;
  }

  .claude-nav-toggle i::before,
  .claude-nav-toggle i::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .claude-nav-toggle i::before { top: -5.5px; }
  .claude-nav-toggle i::after { top: 5.5px; }

  .claude-nav-toggle[aria-expanded="true"] i { background: transparent; }
  .claude-nav-toggle[aria-expanded="true"] i::before { transform: translateY(5.5px) rotate(45deg); }
  .claude-nav-toggle[aria-expanded="true"] i::after { transform: translateY(-5.5px) rotate(-45deg); }

  .nav-cta {
    grid-column: 4;
  }
}

/* The sheet itself: dark glass, big touch links. Exists at every width but
   only ever opened on mobile (JS closes it past 760px). */
.claude-nav-sheet {
  position: fixed;
  z-index: 79;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: calc(var(--header-h, 72px) + max(10px, env(safe-area-inset-top)) + 8px) max(16px, env(safe-area-inset-left)) max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse 130% 60% at 50% 0%, rgba(16, 19, 27, .86), rgba(10, 12, 17, .94) 70%),
    rgba(10, 12, 17, .82);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  backdrop-filter: blur(22px) saturate(130%);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}

.claude-nav-sheet.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s ease;
}

@media (prefers-reduced-transparency: reduce) {
  .claude-nav-sheet {
    background: #0b0d12;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.claude-nav-sheet nav {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
}

.claude-nav-sheet .claude-sheet-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 0 6px;
  border-bottom: 1px solid rgba(220, 232, 255, .1);
  color: #eef1f6;
  font-family: var(--display, var(--sans));
  font-weight: 800;
  font-size: clamp(22px, 6vw, 27px);
  letter-spacing: -.02em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
}

.claude-nav-sheet .claude-sheet-link:first-child {
  border-top: 1px solid rgba(220, 232, 255, .1);
}

.claude-nav-sheet .claude-sheet-link span:last-child {
  color: var(--lime-on-dark, #e5f00b);
  font-size: 18px;
}

.claude-nav-sheet.is-open .claude-sheet-link {
  opacity: 1;
  transform: none;
  transition: opacity .34s ease, transform .38s var(--mo-ease, ease);
}

.claude-nav-sheet.is-open .claude-sheet-link:nth-child(1) { transition-delay: .05s; }
.claude-nav-sheet.is-open .claude-sheet-link:nth-child(2) { transition-delay: .1s; }
.claude-nav-sheet.is-open .claude-sheet-link:nth-child(3) { transition-delay: .15s; }

.claude-nav-sheet .claude-sheet-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 54px;
  margin-top: 28px;
  border-radius: 14px;
  background: var(--lime-on-dark, #e5f00b);
  color: #14161c;
  font-family: var(--sans);
  font-weight: 780;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 0 42px rgba(229, 240, 11, .18), 0 10px 30px rgba(2, 4, 10, .4);
}

.claude-nav-sheet .claude-sheet-note {
  margin-top: auto;
  padding-top: 24px;
  color: rgba(238, 241, 246, .55);
  font-family: var(--mono);
  font-size: var(--m-label, 12px);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
}

/* body lock while the sheet is open */
body.claude-menu-open {
  overflow: hidden;
}

/* nav floats over the dark sheet: force the dark-mode nav palette while open
   (mirrors .site-header[data-nav-mode="dark"], claude-merged.css §6) */
body.claude-menu-open .site-header {
  --nav-fill: rgba(14, 17, 24, .58);
  --nav-fill-compact: rgba(14, 17, 24, .78);
  --nav-hairline: rgba(220, 232, 255, .12);
  --nav-topline: rgba(230, 240, 255, .13);
  --nav-text: #eef1f6;
  --nav-text-mid: rgba(238, 241, 246, .72);
  --nav-shadow: 0 16px 40px rgba(2, 4, 10, .4);
}

body.claude-menu-open .brand .brand-logo-light { opacity: 0; }
body.claude-menu-open .brand .brand-logo-dark { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .claude-nav-sheet,
  .claude-nav-sheet.is-open .claude-sheet-link,
  .claude-nav-toggle i,
  .claude-nav-toggle i::before,
  .claude-nav-toggle i::after {
    transition: none;
  }
}

/* ============ 3. Hero (≤767) ============ */

@media (max-width: 767px) {
  .hero {
    /* svh: stable under the iOS address-bar collapse */
    min-height: 100svh;
    padding-bottom: 40px;
  }

  .hero-copy h1 {
    font-size: var(--m-display);
  }

  .hero-copy > p {
    font-size: var(--m-body);
  }

  /* form pieces to full touch height */
  .scan-form input,
  .scan-form .button {
    min-height: 52px;
  }

  .control-note {
    letter-spacing: .02em; /* prose-like note, not a caps label */
    text-transform: none;
  }

  /* --- the flow visual: tighter, and the delivery lanes become rows --- */
  .hero-visual {
    min-height: 0;
  }

  .flow-line {
    min-height: 0;
    padding: 56px 18px 30px;
    gap: 12px;
  }

  .capability-window {
    height: 216px;
    flex: 0 0 216px;
  }

  .capability-list li {
    font-size: clamp(16px, 4.9vw, 21px);
  }

  /* one lane per row: [category] over [arrow → profile card] */
  .delivery-lanes {
    max-width: 400px;
    width: 100%;
    flex-direction: column;
    gap: 12px;
    padding-block: 14px 4px;
  }

  .delivery-lane {
    width: 100%;
    grid-template-columns: 16px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 6px;
    justify-items: start;
    padding-block: 0;
  }

  .delivery-lane > .endpoint-category {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    font-size: var(--m-label);
    letter-spacing: .1em;
  }

  .endpoint-arrow {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    width: 14px;
    height: 34px;
  }

  .end-node {
    grid-column: 2;
    grid-row: 2;
    height: 64px;
  }

  .end-badge {
    width: 44px;
  }

  .end-labels strong {
    font-size: 12px;
    letter-spacing: .02em;
  }

  .profile-domain {
    font-size: 11px !important;
  }

  .profile-source {
    font-size: 11px !important;
  }

  .node-label strong,
  .end-labels > span:not(.endpoint-category) {
    font-size: 11px;
  }

  .motion-toggle {
    top: 12px;
    right: 12px;
  }
}

/* ============ 4. Statement chapter (≤767) ============ */

@media (max-width: 767px) {
  /* breathing room: the three lines must not touch the panel edges */
  .decision-rail[data-motion-style="scroll-highlight"] .decision-rail-title {
    font-size: clamp(1.6rem, 7.2vw, 2.5rem);
  }

  /* the middle line keeps a desktop stagger offset that pushes it off the
     right edge on phones; all three slots centre on mobile */
  .decision-rail[data-motion-style="scroll-highlight"] .decision-title-slot,
  .decision-rail[data-motion-style="scroll-highlight"].is-enhanced .decision-statement[data-statement-state] .decision-title-slot-one,
  .decision-rail[data-motion-style="scroll-highlight"].is-enhanced .decision-statement[data-statement-state] .decision-title-slot-two,
  .decision-rail[data-motion-style="scroll-highlight"].is-enhanced .decision-statement[data-statement-state] .decision-title-slot-three,
  .decision-rail[data-motion-style="scroll-highlight"].is-enhanced .decision-statement[data-statement-state] .decision-title-slot-four {
    transform: none;
  }

  .decision-statement-content {
    padding-inline: var(--m-edge);
  }

  .decision-rail-subheading {
    font-size: var(--m-body);
  }

  /* the focus moment is one tight screen, not a full empty viewport */
  .decision-statement-stage {
    min-height: min(560px, 86svh);
    padding-block: var(--m-sec-pad);
  }
}

/* ============ 5. Before/after windows (≤767) ============ */

@media (max-width: 767px) {
  .window-stage.decision-network {
    padding: 56px 12px 72px;
  }

  .handover {
    min-height: 0;
    padding: 34px 2px 28px;
  }

  .handover-message {
    font-size: clamp(1.45rem, 6.4vw, 2rem);
  }

  .state-card {
    padding: 18px 16px 20px;
  }
}

/* ============ 6. Pryor difference: interleaved vertical rebuild (≤767) ============ */

@media (max-width: 767px) {
  .pryor-difference {
    min-height: 0;
    padding: var(--m-sec-pad) var(--m-edge);
  }

  .pd-header {
    margin-bottom: var(--m-block-gap);
  }

  /* stage dissolves; circles become ordinary flow items between their copy */
  .pd-composition {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--m-block-gap);
  }

  .pd-stage {
    display: contents;
  }

  .pryor-difference .pd-circle,
  .pryor-difference.is-in .pd-circle {
    position: relative;
    left: auto;
    top: auto;
    width: min(78vw, 320px);
    height: min(78vw, 320px);
    margin-inline: auto;
    transform: none;
  }

  /* reveal keeps only the fade */
  .pd-circle {
    transition: opacity .6s var(--spring) var(--pd-delay);
  }

  /* reading order: code visual → its copy → radar → its copy */
  .pd-circle-ink { order: 1; }
  .pd-note-agents { order: 2; }
  .pd-circle-glass { order: 3; }
  .pd-note-signals { order: 4; }

  .pd-note {
    position: static;
    width: min(340px, 100%);
    text-align: center;
    transform: none;
  }

  .pd-note-title {
    font-size: var(--m-h3);
  }

  .pd-note-lines p {
    font-size: var(--m-body-s);
  }

  /* the mock sits fully inside its circle; console peeks behind it */
  .pd-mock-group {
    width: 152px;
    height: 178px;
  }

  .pd-console {
    inset: 18px 14px -18px -14px;
  }

  .pd-cursor-ai { left: -14px; top: 104px; }

  .pd-ring-chip {
    font-size: 11px;
    padding: 3px 8px;
    max-width: 46%;
    text-align: center;
  }

  /* chips pulled fully inside the contained circle */
  .pd-ring-chip-competitors { left: 60%; top: 20%; }
  .pd-ring-chip-profiling { left: 33%; top: 34%; }
  .pd-ring-chip-pov { left: 62%; top: 68%; }

  /* core label lives inside a ~50px disc; keep the artwork's native size */
  .pd-core-text {
    font-size: 8px;
  }

  .pd-baseline {
    margin-top: var(--m-block-gap);
  }
}

/* ============ 7. Playbooks: native snap carousel (≤767) ============ */

@media (max-width: 767px) {
  .pb-zone {
    padding-block: var(--m-sec-pad);
  }

  .pb-gallery {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--m-edge);
    cursor: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pb-loop {
    padding-inline: var(--m-edge);
    gap: 14px;
  }

  .pb-card {
    flex-basis: min(78vw, 300px);
    width: min(78vw, 300px);
    min-height: 408px;
    scroll-snap-align: center;
  }

  .pb-card-title {
    font-size: var(--m-h3);
    margin-inline: 16px;
  }

  .pb-card-line {
    margin: 0 16px 18px;
    min-height: 0;
  }

  .pb-card-tag {
    top: 14px;
    left: 14px;
  }

  /* colored shadows kept, lighter (brief) */
  .pb-final-glass .pb-card {
    box-shadow:
      0 22px 44px -22px rgba(var(--pb-c), .3),
      0 10px 22px -12px rgba(0, 0, 0, .45),
      0 1px 0 rgba(255, 255, 255, .04) inset;
  }
}

/* ============ 8. Integrations: vertical flow with connectors (≤767) ============ */

/* connector elements (markup: <i class="claude-conn">) exist only on mobile */
.claude-conn {
  display: none;
}

@media (max-width: 767px) {
  #night-chapter .pb-schema-v3-signal-spine .pb-architecture {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  /* runtime flattens into the flow so each context rail can sit directly
     against its related node: website → context → Pryor → outputs → agents */
  #night-chapter .pb-schema-v3-signal-spine .pb-runtime {
    display: contents;
  }

  #night-chapter .pb-schema-v3-signal-spine .pb-context-input,
  #night-chapter .pb-schema-v3-signal-spine .pb-context-output {
    width: 100%;
  }

  #night-chapter .pb-schema-v3-signal-spine .pb-website-stage { order: 1; }
  #night-chapter .pb-schema-v3-signal-spine .pb-architecture > .claude-conn:first-of-type { order: 2; }
  #night-chapter .pb-schema-v3-signal-spine .pb-context-input { order: 3; }
  #night-chapter .pb-schema-v3-signal-spine .pb-runtime > .claude-conn:first-of-type { order: 4; }
  #night-chapter .pb-schema-v3-signal-spine .pb-pryor-stage { order: 5; }
  #night-chapter .pb-schema-v3-signal-spine .pb-runtime > .claude-conn:last-of-type { order: 6; }
  #night-chapter .pb-schema-v3-signal-spine .pb-output-stage { order: 7; }
  #night-chapter .pb-schema-v3-signal-spine .pb-architecture > .claude-conn:last-of-type { order: 8; }
  #night-chapter .pb-schema-v3-signal-spine .pb-context-output { order: 9; }

  #night-chapter .pb-schema-v3-signal-spine .pb-pryor-stage,
  #night-chapter .pb-schema-v3-signal-spine .pb-output-stage {
    display: block;
    width: 100%;
  }

  #night-chapter .pb-schema-v3-signal-spine .pb-components,
  #night-chapter .pb-schema-v3-signal-spine .pb-outputs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 14px;
  }

  /* Pryor box: claude-polish's dark glass card styling re-applies via
     display:block; the label returns to a plain lime caps line */
  #night-chapter .pb-schema-v3-signal-spine .pb-pryor-stage {
    padding: 18px 16px;
    border-radius: var(--m-radius);
  }

  #night-chapter .pb-schema-v3-signal-spine .pb-pryor-stage > .pb-stage-label {
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  #night-chapter .pb-schema-v3-signal-spine .pb-website-stage {
    width: 100%;
    padding: 18px 16px;
    border-radius: var(--m-radius);
    transform: none;
  }

  #night-chapter .pb-schema-v3-signal-spine .pb-output-stage {
    padding: 0;
  }

  #night-chapter .pb-schema-v3-signal-spine .pb-output-stage > .pb-stage-label {
    margin: 0;
    text-align: center;
  }

  /* interleave-era micro connectors off; .claude-conn carries the flow */
  #night-chapter .pb-schema-v3-signal-spine .pb-website-stage::after,
  #night-chapter .pb-schema-v3-signal-spine .pb-component::after,
  #night-chapter .pb-schema-v3-signal-spine .pb-output:first-child::after,
  #night-chapter .pb-schema-v3-signal-spine .pb-runtime::before,
  #night-chapter .pb-schema-v3-signal-spine .pb-output-stage::before,
  #night-chapter .pb-schema-v3-signal-spine .pb-output-stage::after,
  #night-chapter .pb-schema-v3-signal-spine .pb-outputs::before,
  #night-chapter .pb-schema-v3-signal-spine .pb-outputs::after {
    display: none;
  }

  /* straight vertical connector: line + arrowhead, perfectly centered */
  .claude-conn {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 2px;
    height: 34px;
    margin: 6px auto;
    background: linear-gradient(180deg, rgba(20, 22, 28, .12), rgba(93, 106, 8, .7) 55%, rgba(20, 22, 28, .4));
  }

  .claude-conn::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid rgba(93, 106, 8, .8);
    border-bottom: 1.5px solid rgba(93, 106, 8, .8);
    transform: translateX(-50%) rotate(45deg);
  }

  /* rails as compact rows */
  #night-chapter .pb-schema-v3-signal-spine .pb-context-input,
  #night-chapter .pb-schema-v3-signal-spine .pb-context-output {
    padding: 16px;
    border: 1px solid var(--c-hairline);
    border-radius: var(--m-radius);
    background: var(--c-surface);
  }

  .pb-integration-head .pb-title {
    max-width: none;
  }

  .pb-logo-horizon {
    gap: 16px 6px;
  }

  .pb-logo-mark {
    width: 48px;
    height: 48px;
  }

}

/* dark-chapter connectors (timeline zone context) keep contrast on the canvas */
@media (max-width: 767px) {
  .m-dark .claude-conn {
    background: linear-gradient(180deg, rgba(238, 241, 246, .1), rgba(229, 240, 11, .55) 55%, rgba(238, 241, 246, .3));
  }

  .m-dark .claude-conn::after {
    border-color: rgba(229, 240, 11, .7);
  }
}

/* ============ 9. Timeline: numbered vertical stepper (≤767) ============ */

@media (max-width: 767px) {
  .pb-gantt {
    counter-reset: claude-step;
    gap: 36px;
    margin-top: 34px;
    padding-block: 8px 20px;
  }

  .pb-gantt::before {
    display: none;
  }

  .pb-entry {
    display: grid;
    grid-template-columns: 34px 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    counter-increment: claude-step;
  }

  /* number chip at the top of the left rail */
  .pb-entry::before {
    content: counter(claude-step, decimal-leading-zero);
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(220, 232, 255, .22);
    border-radius: 10px;
    color: var(--c-text-hi, #eef1f6);
    font-family: var(--mono);
    font-size: var(--m-label);
    font-weight: 700;
    letter-spacing: .04em;
  }

  .pb-entry-copy {
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
  }

  .pb-entry-line {
    grid-column: 2;
    grid-row: 2;
    margin-left: 0;
    margin-top: 8px;
  }

  /* the gantt bar drops below the number chip in the same rail */
  .pb-bar {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    width: 8px;
    margin: 6px 0 0;
  }

  .pb-entry-1 .pb-bar { height: 38px; }
  .pb-entry-2 .pb-bar { height: 82px; }
  .pb-entry-3 .pb-bar { height: calc(100% + 70px); }

  .pb-entry-label {
    font-size: var(--m-h3);
  }
}

/* ============ 10. Bottom CTA (≤767) ============ */

@media (max-width: 767px) {
  .report-close {
    padding: var(--m-sec-pad) var(--m-edge) calc(var(--m-sec-pad) + env(safe-area-inset-bottom));
  }

  .report-close__title {
    font-size: var(--m-display);
    line-height: 1;
  }

  /* order: form first, then the two source groups, then connector + roadmap */
  .report-close--merged .report-close__form { order: 1; }
  .report-close--merged .report-close__stream-mobile-groups { order: 2; }
  .report-close--merged .report-close__output-flow { order: 3; }
  .report-close--merged .report-close__output-tag { order: 4; }

  /* the two groups as proper chips */
  .report-close--merged .report-close__stream-mobile-groups {
    margin: 18px 0 0;
    gap: 10px;
  }

  .report-close--merged .report-close__stream-mobile-groups span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 14px;
    border: 1px solid rgba(220, 232, 255, .18);
    border-radius: 999px;
    background: rgba(214, 226, 255, .05);
    color: var(--c-text-mid);
    font-size: var(--m-label);
    letter-spacing: var(--m-track);
  }

  .report-close--merged .report-close__output-flow {
    height: 56px;
  }

  .report-close__submit {
    min-height: 52px;
  }

  .report-close__input {
    min-height: 52px;
  }

  .report-close__closing-strip {
    margin-top: 40px;
    padding-top: 28px;
  }

  .report-close__closing-lead {
    max-width: 32ch;
  }

}

/* ============ 11. Tablet 768–1023: sensible in-between ============ */

@media (min-width: 768px) and (max-width: 1023px) {
  /* difference: circles column already engages ≤1080; keep chips readable
     and fully inside the radar circle */
  .pd-ring-chip {
    font-size: 11px;
  }

  .pd-ring-chip-profiling { left: 30%; }
  .pd-ring-chip-pov { left: 72%; }

  .pb-logo-name,
  .pb-kicker,
  .pb-keeper,
  .pd-kicker,
  .pd-baseline,
  .report-close__eyebrow {
    font-size: 11px;
  }
}
