/* Product storytelling from the second homepage section onward. */
.pma-content, .pma-download-section, .pma-footer {
  --color-ink: #1d1d1f;
  --color-ink-2: #424245;
  --color-muted: #626267;
  --color-rule: #d9d9df;
  --color-paper: #fff;
  --color-paper-2: #f5f5f7;
  --color-paper-3: #e8e8ed;
}
.pma-content { --pma-content-gap: clamp(80px, 8vw, 128px); background: #fff; }
.pma-content .container { max-width: 1280px; }
.pma-content > .pma-section { position: relative; isolation: isolate; padding-block: var(--pma-content-gap); background: var(--pma-section-surface, #fff); }
.pma-software, .pma-security, .pma-news { --pma-section-surface: #f5f5f7; }
.pma-capabilities, .pma-camera-section { --pma-section-surface: #fff; }
.pma-section-heading { display: grid; justify-items: center; gap: 24px; margin: 0 auto 64px; text-align: center; }
.pma-section-label { margin-bottom: 18px; color: var(--color-ink); font-size: 17px; font-weight: 600; line-height: 1.5; }
.pma-content h2 { max-width: 24ch; margin-inline: auto; font-size: clamp(42px, 5.1vw, 72px); font-weight: 700; letter-spacing: -.055em; line-height: 1.12; }
.pma-section-heading h2 > span { display: block; }
.pma-section-heading h2 > span + span { color: var(--color-muted); }
.pma-section-intro { display: grid; justify-items: center; gap: 16px; max-width: 44ch; color: var(--color-muted); font-size: 20px; font-weight: 500; line-height: 1.65; }
.pma-content .pma-text-link { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; width: fit-content; color: var(--color-primary); font-size: 17px; text-decoration: none; }
.pma-content .pma-text-link:hover { text-decoration: underline; }
.pma-content .pma-text-link .pma-arrow { width: 17px; height: 17px; }
.pma-home .pma-architecture-image { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Each chapter owns one authentic capture; desktop enhances it into a sticky stage. */
.pma-app-capture { display: block; width: 100%; height: auto; aspect-ratio: 390 / 720; object-fit: contain; border-radius: 20px; background: #fff; }
.pma-feature-phone { width: min(100%, 300px); }
.pma-showcase { scroll-margin-top: 0; }
.pma-showcase-track { display: grid; gap: 64px; min-width: 0; }
.pma-showcase-story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: center; min-width: 0; scroll-margin-top: 0; }
.pma-showcase-copy { grid-column: 2; grid-row: 1; min-width: 0; }
.pma-showcase-heading { margin-bottom: 32px; }
.pma-showcase-heading .pma-section-label { margin-bottom: 16px; color: var(--color-primary); font-size: 14px; }
.pma-showcase-heading h3 { max-width: 20ch; font-size: clamp(32px, 3.3vw, 48px); font-weight: 600; letter-spacing: -.045em; line-height: 1.2; text-wrap: balance; }
.pma-showcase-description { max-width: 40ch; margin-top: 24px; color: var(--color-muted); font-size: 18px; line-height: 1.7; }
.pma-showcase-copy dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
.pma-showcase-copy dl > div { position: relative; min-width: 0; padding-left: 44px; }
.pma-showcase-copy dl > div:only-child { grid-column: 1 / -1; }
.pma-showcase-copy dt .pma-icon { position: absolute; top: 0; left: 0; width: 32px; height: 32px; object-fit: contain; }
.pma-showcase-copy dt { margin-bottom: 8px; color: var(--color-ink); font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: -.02em; }
.pma-showcase-copy dd { max-width: 38ch; color: var(--color-muted); font-size: 14px; line-height: 1.75; }
.pma-showcase-copy dl > div:only-child dd { font-size: 18px; }
.pma-showcase-visual { grid-column: 1; grid-row: 1; display: grid; justify-items: center; align-content: center; gap: 24px; min-width: 0; padding: 40px; border-radius: 36px; background: #e8eaef; }
.pma-showcase-device { width: min(100%, 380px); }
.pma-showcase-device .pma-phone { box-shadow: 0 32px 48px -28px rgb(29 29 31 / .4), 0 2px 5px rgb(29 29 31 / .12); }
.pma-showcase-visual figcaption { max-width: 34ch; color: var(--color-muted); text-align: center; font-size: 11px; line-height: 1.6; }
.pma-showcase.is-enhanced { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(48px, 5vw, 80px); align-items: start; }
.pma-showcase-stage { grid-column: 1; grid-row: 1; position: sticky; top: calc(var(--pma-header-height) + 24px); display: grid; align-items: center; justify-items: center; align-self: start; height: calc(100svh - var(--pma-header-height) - 48px); height: calc(100dvh - var(--pma-header-height) - 48px); padding: 24px; border-radius: 40px; background: #e8eaef; }
.pma-showcase.is-enhanced .pma-showcase-track { grid-column: 2; grid-row: 1; gap: 0; }
.pma-showcase.is-enhanced .pma-showcase-story { display: flex; align-items: center; min-height: max(640px, calc(100svh - var(--pma-header-height) - 48px)); padding-block: 80px; border-bottom: 1px solid var(--color-rule); }
.pma-showcase.is-enhanced .pma-showcase-story:last-child { border-bottom: 0; }
.pma-showcase.is-enhanced .pma-showcase-heading h3 { color: var(--color-muted); transition: color 240ms ease; }
.pma-showcase.is-enhanced .pma-showcase-story.is-current h3 { color: var(--color-ink); }
.pma-showcase-stage .pma-showcase-visual { width: 100%; padding: 0; background: none; }
.pma-showcase-stage .pma-showcase-device { width: min(100%, 460px, calc((100dvh - var(--pma-header-height) - 120px) * .49)); }
.pma-showcase-stage figcaption { max-width: none; }

/* Large, quiet product panels connect hardware to the same software. */
.pma-hardware-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pma-hardware-story { display: block; min-width: 0; overflow: hidden; border-radius: 28px; background: #fff; color: inherit; text-decoration: none; }
.pma-hardware-story figure { height: 100%; display: flex; flex-direction: column; }
.pma-hardware-story figcaption { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 16px; padding: 40px 36px 32px; }
.pma-hardware-story h3 { max-width: 17ch; font-size: clamp(26px, 2.7vw, 36px); font-weight: 600; letter-spacing: -.04em; line-height: 1.25; }
.pma-hardware-story .pma-arrow { width: 24px; height: 24px; margin-top: 4px; color: var(--color-primary); }
.pma-hardware-story p { grid-column: 1 / -1; max-width: 38ch; color: var(--color-muted); font-size: 17px; line-height: 1.65; }
.pma-hardware-image { margin-top: auto; overflow: hidden; }
.pma-hardware-story .pma-architecture-image { height: auto; aspect-ratio: 3 / 2; }
.pma-hardware-image img { transform-origin: center; }
.pma-hardware-story:hover h3 { color: var(--color-primary); }
.pma-hardware-details { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 32px; margin-top: 32px; }
.pma-hardware-details .pma-note { flex-basis: 100%; text-align: center; color: var(--color-muted); font-size: 12px; }

/* Keep the existing synchronized camera and activity interaction. */
.pma-security-monitor { padding: 40px; border: 1px solid #e5e5e9; border-radius: 32px; background: #f5f5f7; }
.pma-cctv-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 22px; }
.pma-cctv-bar h3 { font-size: 16px; font-weight: 500; }
.pma-monitor-demo { font-size: 12px; color: var(--color-muted); }
.pma-cctv-clock { margin-left: auto; color: var(--color-muted); font-size: 12px; }
.pma-home .pma-cctv-bar .btn-quiet { border-radius: 4px; font-size: 12px; }
.pma-security-monitor-body { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, .8fr); gap: 40px; align-items: start; }
.pma-camera-player { min-width: 0; }
.pma-cctv-wall { position: relative; }
.pma-feed { position: relative; aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden; background: var(--color-paper-3); }
.pma-home .pma-camera-image { position: absolute; width: 200%; height: 200%; max-width: none; left: calc(var(--camera-column) * -100%); top: calc(var(--camera-row) * -100%); object-fit: fill; }
.pma-feed figcaption, .pma-camera-number { position: absolute; padding: 6px 9px; font-size: 11px; line-height: 1.4; background: rgb(250 249 246 / 0.94); color: var(--color-ink); }
.pma-feed figcaption { left: 12px; bottom: 12px; }
.pma-camera-number { right: 12px; top: 12px; font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.pma-detection { --tracking-color: var(--color-primary); position: absolute; border: 1.5px solid var(--tracking-color); border-radius: 3px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.3); }
.pma-detection > span { position: absolute; right: -1px; bottom: calc(100% + 6px); padding: 5px 7px; border-left: 2px solid var(--tracking-color); background: rgb(250 249 246 / 0.97); color: var(--color-ink); white-space: nowrap; font-size: 11px; line-height: 1.3; }
.pma-feed[data-state="verified"] .pma-detection { --tracking-color: var(--color-found-fill); }
.pma-feed[data-state="unknown"] .pma-detection { --tracking-color: var(--color-alert-fill); }
.pma-feed[data-state="scanning"] .pma-detection::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: var(--tracking-color); animation: pma-camera-scan 1.4s ease-in-out infinite; }
.pma-security-monitor[data-playing="false"] .pma-detection::after { animation-play-state: paused; }
@keyframes pma-camera-scan { 0%, 100% { top: 5%; } 50% { top: 95%; } }
.pma-camera-result { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 14px 0; border-bottom: 1px solid var(--color-rule); }
.pma-camera-result > div { display: grid; gap: 4px; }
.pma-camera-result strong { font-size: 14px; font-weight: 500; }
.pma-camera-result [data-current-status] { font-size: 12px; color: var(--color-muted); }
.pma-camera-result-symbol { margin-left: auto; color: var(--color-found-fill); }
.pma-camera-result-symbol .pma-glyph { width: 22px; height: 22px; }
.pma-camera-result-symbol .pma-glyph:last-child { display: none; }
.pma-camera-result-symbol[data-unknown="true"] { color: var(--color-alert-fill); }
.pma-camera-result-symbol[data-unknown="true"] .pma-glyph:first-child { display: none; }
.pma-camera-result-symbol[data-unknown="true"] .pma-glyph:last-child { display: block; }
.pma-camera-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.pma-camera-choices button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 10px 4px; font-size: 13px; border: 0; border-bottom: 2px solid transparent; color: var(--color-muted); background: transparent; text-align: left; cursor: pointer; }
.pma-camera-choices button[aria-pressed="true"] { color: var(--color-ink); border-bottom-color: var(--color-primary); }
.pma-camera-choices button:hover { color: var(--color-ink); }
.pma-log { width: 100%; border-collapse: collapse; font-size: 12px; }
.pma-log caption { padding: 0 0 16px; text-align: left; color: var(--color-ink); font-size: 14px; font-weight: 500; }
.pma-log th, .pma-log td { padding: 12px 0; border-bottom: 1px solid var(--color-rule); text-align: left; vertical-align: top; }
.pma-log thead th { padding-top: 0; font-size: 11px; font-weight: 400; color: var(--color-muted); }
.pma-log td.num { width: 76px; padding-right: 10px; color: var(--color-muted); font-size: 11px; }
.pma-log th:last-child, .pma-log td:last-child { display: none; }
.pma-log-who { display: block; font-size: 12px; }
.pma-log-event { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.pma-log-event:hover .pma-log-who { color: var(--color-primary); }
.pma-log-avatar { display: block; width: 32px; height: 40px; flex-shrink: 0; border-radius: 3px; background-repeat: no-repeat; background-color: var(--color-paper-3); }
.pma-log .pma-log-where { display: block; margin-top: 5px; color: var(--color-muted); font-size: 10px; font-weight: 400; }
.pma-log tr.is-found th { color: var(--color-alert); }
.pma-security-monitor .pma-note { max-width: 92ch; margin-top: 18px; font-size: 11px; line-height: 1.6; }


/* Real journal articles reuse the public post-list component. */
.pma-news .pma-section-heading { margin-bottom: 48px; }
.pma-news h2 { font-size: clamp(36px, 4vw, 56px); }
.pma-news .pma-post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pma-news .pma-post-list > li { min-width: 0; overflow: hidden; border-radius: 24px; background: #fff; }
.pma-news .pma-post-list article { height: 100%; display: flex; flex-direction: column; align-items: start; padding: 28px; }
.pma-news .pma-post-image { display: block; align-self: stretch; margin: -28px -28px 24px; overflow: hidden; }
.pma-news .pma-post-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pma-news .pma-post-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--color-muted); font-size: 11px; }
.pma-news .pma-post-meta > span { display: none; }
.pma-news .pma-post-list h3 { margin-top: 12px; font-size: 22px; font-weight: 600; letter-spacing: -.035em; line-height: 1.45; }
.pma-news .pma-post-list h3 a { display: flex; align-items: start; gap: 16px; min-height: 44px; color: var(--color-ink); text-decoration: none; }
.pma-news .pma-post-list h3 a:hover { color: var(--color-primary); }
.pma-news .pma-post-list .pma-arrow { width: 17px; height: 17px; margin-top: 6px; }
.pma-news .pma-post-list article > p { margin-top: 16px; color: var(--color-muted); font-size: 13px; line-height: 1.75; }

/* A distinct, always-visible destination for every header download link. */
.pma-download-section { padding-block: 64px; background: #fff; scroll-margin-top: 0; }
.pma-download-section > .container { max-width: 1280px; }
.pma-download-inner { display: grid; grid-template-columns: minmax(0, 1fr) 232px; align-items: center; gap: 64px; padding: 48px 80px; border-radius: 32px; background: #f5f5f7; }
.pma-download-copy { min-width: 0; }
.pma-download-copy h2 { max-width: 14ch; font-size: clamp(36px, 4vw, 56px); font-weight: 600; line-height: 1.08; letter-spacing: -.045em; }
.pma-download-copy > p { max-width: 34ch; margin-top: 24px; font-size: 18px; line-height: 1.65; color: var(--color-ink-2); }
.pma-download-copy .pma-download-app { margin-top: 28px; }
.pma-download-phone { width: 232px; justify-self: center; }

/* Shared footer keeps contact, product and legal destinations. */
.pma-footer { padding-block: 56px 24px; border-top: 1px solid var(--color-rule); background: #f5f5f7; }
.pma-footer .container { max-width: 1280px; }
.pma-footer-main { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .75fr) minmax(0, .85fr) minmax(0, 1.1fr); gap: 40px; padding-bottom: 40px; }
.pma-footer .pma-brand { display: inline-flex; }
.pma-footer .pma-brand img { width: 160px; height: auto; }
.pma-footer-contact { max-width: 34ch; margin-top: 22px; color: var(--color-ink-2); font-style: normal; font-size: 12px; line-height: 1.9; }
.pma-footer-contact dl > div { margin-top: 6px; }
.pma-footer-contact dt, .pma-footer-contact dd { display: inline; }
.pma-footer-contact dt { font-weight: 500; }
.pma-footer-contact dt::after { content: ': '; }
.pma-footer-contact a { display: inline-flex; align-items: center; min-height: 44px; }
.pma-footer a { color: var(--color-ink-2); text-decoration: none; transition: color var(--dur-short); }
.pma-footer a:hover { color: var(--color-primary); text-decoration: underline; }
.pma-footer a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; }
.pma-footer-group { padding-top: 8px; }
.pma-footer h2 { margin-bottom: 16px; color: var(--color-ink); font-size: 13px; font-weight: 600; line-height: 1.5; letter-spacing: -.01em; }
.pma-footer-group a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; font-size: 12px; line-height: 1.6; }
.pma-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid var(--color-rule); }
.pma-footer-bottom p { font-size: 11px; color: var(--color-muted); line-height: 1.8; }
.pma-footer-bottom > a { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; font-size: 12px; }

@media (max-width: 75rem) {
  .pma-showcase-copy dl { grid-template-columns: minmax(0, 1fr); }
  .pma-showcase-story { gap: 40px; }
  .pma-security-monitor { padding: 32px; }
  .pma-security-monitor-body { gap: 28px; }
}
@media (max-width: 60rem) {
  .pma-showcase-story { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pma-showcase-copy { display: contents; }
  .pma-showcase-heading { grid-row: 1; margin-bottom: 0; }
  .pma-showcase-visual { grid-row: 2; grid-column: 1; padding: 32px; }
  .pma-showcase-copy dl { grid-row: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pma-showcase-heading h3 { max-width: 24ch; font-size: 38px; }
  .pma-content { --pma-content-gap: 80px; }
  .pma-section-intro { font-size: 18px; }
  .pma-section-heading { margin-bottom: 48px; }
  .pma-hardware-story figcaption { padding: 28px 24px; }
  .pma-hardware-story p { font-size: 15px; }
  .pma-security-monitor-body { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pma-log td.num { width: 100px; }
  .pma-news .pma-post-list { gap: 16px; }
  .pma-news .pma-post-list article { padding: 20px; }
  .pma-news .pma-post-image { margin: -20px -20px 20px; }
  .pma-news .pma-post-list h3 { font-size: 18px; }
  .pma-download-inner { padding: 40px; gap: 40px; }
  .pma-footer-main { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
  .pma-footer-identity { grid-column: 1 / -1; }
  .pma-footer-contact { max-width: 48ch; }
}
@media (max-width: 40rem) {
  .pma-showcase-track { gap: 72px; }
  .pma-showcase-story { gap: 28px; }
  .pma-showcase-heading h3 { font-size: 32px; }
  .pma-showcase-description { margin-top: 20px; font-size: 16px; }
  .pma-showcase-visual { padding: 28px 24px; border-radius: 28px; }
  .pma-showcase-device { width: min(100%, 310px); }
  .pma-showcase-copy dl { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pma-content { --pma-content-gap: 64px; }
  .pma-content h2 { max-width: 22ch; font-size: clamp(32px, 8.8vw, 46px); letter-spacing: -.045em; }
  .pma-section-label { margin-bottom: 16px; font-size: 14px; }
  .pma-section-heading { gap: 20px; margin-bottom: 40px; }
  .pma-section-intro { max-width: 36ch; font-size: 16px; font-weight: 400; line-height: 1.7; }
  .pma-content .pma-text-link { font-size: 15px; }
  .pma-hardware-gallery { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pma-hardware-story { border-radius: 24px; }
  .pma-hardware-story h3 { font-size: 28px; }
  .pma-hardware-story figcaption { padding: 28px 24px; }
  .pma-hardware-details { gap: 8px 20px; margin-top: 24px; }
  .pma-hardware-details .pma-note { font-size: 11px; }
  .pma-cctv-bar { gap: 8px 12px; margin-bottom: 18px; }
  .pma-cctv-bar h3 { width: calc(100% - 90px); font-size: 14px; }
  .pma-monitor-demo { flex: 1; font-size: 11px; order: 2; }
  .pma-cctv-bar .btn-quiet { order: 3; }
  .pma-feed figcaption { left: 8px; bottom: 8px; }
  .pma-camera-number { right: 8px; top: 8px; }
  .pma-feed figcaption, .pma-camera-number { font-size: 10px; padding: 4px 6px; }
  .pma-detection > span { font-size: 10px; padding: 4px 6px; }
  .pma-camera-choices { gap: 4px; margin-top: 8px; }
  .pma-camera-choices button { font-size: 11px; padding-inline: 2px; }
  .pma-security-monitor { padding: 16px; border-radius: 24px; }
  .pma-security-monitor-body { gap: 28px; }
  .pma-log td.num { width: 84px; }
  .pma-security-monitor .pma-note { font-size: 10px; }
  .pma-news .pma-post-list { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pma-news .pma-post-list article { padding: 28px; }
  .pma-news .pma-post-image { margin: -28px -28px 24px; }
  .pma-news .pma-post-list h3 { font-size: 23px; }
  .pma-footer { padding-block: 40px 24px; }
  .pma-footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-bottom: 28px; }
  .pma-footer-group { padding-top: 0; }
  .pma-footer-group:last-child { grid-column: 1 / -1; }
  .pma-footer-group:last-child ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .pma-footer h2 { margin-bottom: 12px; }
  .pma-download-section { padding-block: 40px; }
  .pma-download-inner { grid-template-columns: minmax(0, 1fr); padding: 32px 24px; gap: 32px; border-radius: 24px; }
  .pma-download-copy h2 { font-size: 36px; }
  .pma-download-copy > p { margin-top: 20px; font-size: 16px; }
  .pma-download-phone { width: min(216px, 100%); }
  .pma-footer-bottom { align-items: start; flex-direction: column; gap: 8px; }
}
@media (max-height: 540px) and (orientation: landscape) {
  .pma-download-section { padding-block: 16px; }
  .pma-download-inner { grid-template-columns: minmax(0, 1fr) 120px; padding: 24px; gap: 32px; }
  .pma-download-copy h2 { max-width: none; font-size: 32px; }
  .pma-download-copy > p { margin-top: 12px; font-size: 16px; }
  .pma-download-copy .pma-download-app { margin-top: 16px; }
  .pma-download-phone { width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .pma-feed .pma-detection::after { animation: none; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .pma-hardware-image img, .pma-news .pma-post-image img { transition: transform 700ms var(--ease-out); }
  .pma-hardware-story:hover .pma-hardware-image img, .pma-news .pma-post-image:hover img { transform: scale(1.035); }
}
