/* CodeOxi product pages — shared by every /products/<slug> page
   (rendered by functions/_product_render.js). Colours come from style.css
   tokens, so light and dark themes both work; each product sets --accent. */

.pd {
  --ink: var(--fg);
  --paper: var(--bg);
  --wash: var(--muted);
  --line: var(--border);
  --soft: var(--muted-fg);
  --wrap: 1200px;
  --wide: 1240px;
  --lab: #0b1020;
  --accent-lit: color-mix(in srgb, var(--accent) 45%, white);
  --accent-tint: color-mix(in srgb, var(--accent) 7%, transparent);
  --body: color-mix(in srgb, var(--fg) 74%, var(--bg));
  --radius-lg: 16px;
  font-family: 'Be Vietnam Pro', -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
/* style.css's dark --border equals the dark card colour, so outlines vanished on cards */
.dark .pd { --line: #334155; }
.pd main { overflow-x: clip; }
.pd h1, .pd h2, .pd h3 { font-family: inherit; color: var(--ink); }
.pd h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; margin: 0 0 .5rem; }
.pd h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 .4rem; }
.pd p { margin: 0; }
.pd code { font-size: .88em; background: var(--wash); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.pd main a:not(.pd-btn) { color: var(--accent); text-underline-offset: 3px; }
.pd :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.pd-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.pd-wide { max-width: var(--wide); }
.pd-sub { color: var(--soft); max-width: 62ch; margin-bottom: 2.2rem !important; font-size: 1.04rem; }
.pd-sr, .pd-sr-th .pd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pd-skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 50; }
.pd-skip:focus { left: 8px; }
.pd section { padding: 96px 0; }

/* buttons */
.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pd-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 1.5px solid transparent; transition: background-color .15s, border-color .15s, transform .15s; cursor: pointer; }
.pd-btn.is-primary { background: var(--accent); color: var(--accent-ink); }
.pd-btn.is-primary:hover { filter: brightness(1.08); }
.pd-btn.is-primary:active { transform: translateY(1px); }
.pd-btn.is-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.pd-btn.is-ghost:hover { border-color: var(--ink); }
.pd-btn.is-disabled { background: var(--wash); color: var(--soft); cursor: default; }

/* hero: a dark "device lab" band (same surface as the homepage cards, tinted by
   the product accent); the screenshot sits half in, half out of it. */
.pd-hero { position: relative; isolation: isolate; padding: 88px 0 0 !important; }
.pd-hero::before, .pd-cap-group:last-child:nth-child(2) { background:
    radial-gradient(70% 90% at 88% 0%, color-mix(in srgb, var(--accent) 50%, transparent), transparent 62%),
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--lab); }
.pd-hero::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto 0; height: calc(100% - min(30vw, 400px)); }
.pd-hero h1 { color: #fff; }
.pd-hero .pd-name, .pd-hero .pd-lead, .pd-hero .pd-note, .pd-hero .pd-facts { color: rgba(255,255,255,.72); }
.pd-hero .pd-facts li::before { background: var(--accent-lit); }
.pd-hero .pd-note a { color: var(--accent-lit) !important; }
.pd-hero .pd-btn.is-ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.pd-hero .pd-btn.is-ghost:hover { border-color: #fff; }
.pd-hero .pd-btn.is-disabled { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }
.pd-hero .pd-zoom img { border-color: rgba(255,255,255,.14); box-shadow: 0 40px 90px -30px color-mix(in srgb, var(--accent) 55%, rgba(0,0,0,.6)), 0 2px 6px rgba(0,0,0,.2); }
.pd-name { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--soft); margin-bottom: 22px !important; }
.pd-name img { border-radius: 8px; }
.pd-hero-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.pd-hero-top .pd-name { margin-bottom: 0 !important; }
.pd-langs { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); font-size: .88rem; }
.pd-langs > * { padding: 6px 14px; border-radius: 999px; line-height: 1.2; }
.pd-langs a { color: rgba(255,255,255,.78); text-decoration: none; }
.pd-langs a:hover { color: #fff; background: rgba(255,255,255,.1); }
.pd-langs a:focus-visible { outline: 2px solid var(--accent-lit, #fff); outline-offset: 2px; }
.pd-langs [aria-current] { background: #fff; color: var(--lab, #17192b); font-weight: 600; }
.pd-summary { margin-top: 28px; max-width: 62ch; padding: 14px 18px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: rgba(255,255,255,.82); font-size: .95rem; }
.pd-summary strong { color: #fff; margin-right: 4px; }
.pd-hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.03; letter-spacing: -0.035em; font-weight: 700; max-width: 17ch; margin: 0 0 22px; text-wrap: balance; }
.pd-lead { font-size: clamp(1.08rem, 1.5vw, 1.24rem); color: var(--soft); max-width: 58ch; margin-bottom: 32px !important; }
.pd-note { margin-top: 14px !important; color: var(--soft); font-size: .92rem; }
.pd-facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--soft); font-size: .95rem; }
.pd-facts li { display: flex; align-items: center; gap: 9px; }
.pd-facts li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.pd-showcase { margin-top: 56px; }

/* screenshots: big, crisp, zoomable */
.pd-shot { margin: 0; }
.pd-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; border-radius: var(--radius-lg); }
.pd-zoom img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--card); box-shadow: 0 30px 70px -40px rgba(23, 25, 43, .45), 0 2px 6px rgba(23, 25, 43, .06); }
.pd-zoom::after { content: ""; position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 10px; background: rgba(23, 25, 43, .72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center/18px no-repeat; opacity: 0; transition: opacity .15s; }
.pd-zoom:hover::after, .pd-zoom:focus-visible::after { opacity: 1; }
.pd-shot.is-portrait { max-width: 520px; margin-inline: auto; }
.pd-shot figcaption { color: var(--soft); font-size: .9rem; margin-top: 10px; }

/* the one load moment: the product settles into place */
@media (prefers-reduced-motion: no-preference) {
  .pd-showcase .pd-shot { animation: pd-settle .9s cubic-bezier(.2, .75, .25, 1) .1s both; }
  .pd-hero-text > * { animation: pd-fade .5s ease-out both; }
  @keyframes pd-settle { from { opacity: 0; transform: translateY(36px) scale(.985); } to { opacity: 1; transform: none; } }
  @keyframes pd-fade { from { opacity: 0; } to { opacity: 1; } }
}

/* tour */
.pd-tour { background: var(--wash); }
.pd-tour-grid { display: grid; grid-template-columns: minmax(280px, 340px) 1fr; gap: 56px; align-items: start; }
.pd-steps { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.pd-step { position: relative; }
.pd-step::before { content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .35s ease; }
.pd-step.is-active::before { transform: scaleY(1); }
.pd-step > button { display: flex; gap: 14px; align-items: baseline; width: 100%; text-align: left; background: none; border: 0; padding: 16px 0 6px 22px; cursor: pointer; color: var(--soft); font: inherit; }
.pd-step.is-active > button { color: var(--ink); }
.pd-step-n { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--soft); min-width: 1.2em; }
.pd-step.is-active .pd-step-n { color: var(--accent); }
.pd-step-t { font-weight: 600; font-size: 1.08rem; line-height: 1.35; }
.pd-step-body { padding: 0 0 16px 56px; color: var(--soft); font-size: .97rem; }
.pd-step-body ul { margin: 10px 0 0; padding-left: 18px; }
.pd-step-body li { margin: 4px 0; }
.pd-step-shot { display: none; }
.pd-tour-stage { position: sticky; top: 92px; }
.pd-stage-shot { transition: opacity .28s ease; }
.pd-stage-shot.is-swapping { opacity: 0; }
@media (min-width: 961px) {
  .pd-step:not(.is-active) .pd-step-body { display: none; }
}

/* video */
.pd-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); margin-top: 24px; }
.pd-frame iframe, .pd-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pd-frame video { background: #0f2847; object-fit: contain; }

/* capabilities: two panels; with two groups the second (what a key adds) is the dark lab surface */
.pd-cap-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.pd-cap-group { padding: 30px 32px 14px; border-radius: 20px; background: var(--wash); border: 1px solid var(--line); }
.pd-cap-group h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: 10px; }
.pd-cap-group dl { margin: 0; }
.pd-cap-group dl > div { padding: 16px 0 16px 30px; border-top: 1px solid var(--line); position: relative; }
.pd-cap-group dl > div::before { content: ""; position: absolute; left: 2px; top: 23px; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.pd-cap-group dt { font-weight: 600; margin-bottom: 4px; }
.pd-cap-group dd { margin: 0; color: var(--soft); font-size: .97rem; }
.pd-cap-group:last-child:nth-child(2) { border-color: transparent; color: #fff; }
.pd-cap-group:last-child:nth-child(2) h3 { color: var(--accent-lit); }
.pd-cap-group:last-child:nth-child(2) dt { color: #fff; }
.pd-cap-group:last-child:nth-child(2) dd { color: rgba(255,255,255,.68); }
.pd-cap-group:last-child:nth-child(2) dl > div { border-top-color: rgba(255,255,255,.1); }
.pd-cap-group:last-child:nth-child(2) dl > div::before { border-color: var(--accent-lit); }

/* audience: heading on the left, the four kinds of buyer on the right */
.pd-audience { background: var(--wash); }
.pd-aud-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 56px; align-items: start; }
.pd-aud-head .pd-sub { margin-bottom: 0 !important; }
.pd-aud { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pd-aud li { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 4px 12px 12px 4px; padding: 22px 24px; }
.dark .pd-aud li { background: var(--paper); }
.pd-aud strong { display: block; margin-bottom: 6px; font-size: 1.08rem; color: var(--ink); }
.pd-aud span { display: block; color: var(--body); font-size: .97rem; }

/* plans: comparison table; the recommended column is the one loud thing */
.pd-table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); }
.pd-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .96rem; }
.pd-table th, .pd-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.pd-table tbody tr:last-child th, .pd-table tbody tr:last-child td { border-bottom: 0; }
.pd-table tbody th { font-weight: 500; color: var(--ink); width: 34%; }
.pd-table tbody td { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.pd-table tbody tr:hover > th, .pd-table tbody tr:hover > td:not([data-rec]) { background-color: color-mix(in srgb, var(--fg) 3%, transparent); }
.pd-table thead th { vertical-align: top; padding: 26px 20px 24px; font-weight: 400; border-bottom: 2px solid var(--line); }
.pd-table thead th .pd-btn { margin-top: 18px; width: 100%; min-height: 44px; }
.pd-table td[data-rec] { background: var(--accent-tint); box-shadow: inset 2px 0 0 var(--accent), inset -2px 0 0 var(--accent); }
.pd-table tbody tr:last-child td[data-rec] { box-shadow: inset 2px 0 0 var(--accent), inset -2px 0 0 var(--accent), inset 0 -2px 0 var(--accent); }
.pd-table thead th.is-rec { background: var(--accent); border-bottom-color: var(--accent); color: var(--accent-ink); }
.pd-rec { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.is-rec .pd-rec { color: var(--accent-ink); background: color-mix(in srgb, var(--accent-ink) 18%, transparent); padding: 3px 10px; border-radius: 999px; }
.pd-plan-name { display: block; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.pd-plan-who { display: block; color: var(--soft); font-size: .9rem; margin-bottom: 14px; }
.pd-price { display: block; font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pd-price small { white-space: nowrap; font-size: .85rem; font-weight: 500; color: var(--soft); letter-spacing: 0; }
.pd-price-sub { display: block; color: var(--soft); font-size: .86rem; }
.is-rec .pd-plan-name, .is-rec .pd-price { color: var(--accent-ink); }
.is-rec .pd-price { font-size: 2.1rem; }
.is-rec .pd-plan-who, .is-rec .pd-price small, .is-rec .pd-price-sub { color: color-mix(in srgb, var(--accent-ink) 78%, transparent); }
.pd-table .is-rec .pd-btn.is-primary { background: var(--accent-ink); color: var(--accent); }
.pd-table td.is-yes > span[aria-hidden] { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, #16a34a 14%, transparent); color: #15803d; font-size: .8rem; font-weight: 700; }
.dark .pd-table td.is-yes > span[aria-hidden] { color: #4ade80; background: color-mix(in srgb, #4ade80 16%, transparent); }
.pd-table td.is-no { color: var(--soft); }
.pd-table td.is-no > span[aria-hidden] { display: inline-block; width: 12px; height: 2px; border-radius: 2px; background: currentColor; font-size: 0; vertical-align: middle; margin-left: 6px; }
.pd-fine { color: var(--soft); font-size: .92rem; margin-top: 18px !important; }

/* plans as cards: used when the plans differ in only a row or two */
.pd-plan-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.pd-plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pd-plan-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); overflow: hidden; }
.pd-plan-card.is-rec { border: 2px solid var(--accent); }
.pd-plan-top { padding: 26px 24px 22px; }
.pd-plan-card.is-rec .pd-plan-top { background: var(--accent); }
.pd-plan-body { flex: 1; display: flex; flex-direction: column; gap: 20px; padding: 20px 24px 24px; }
.pd-plan-body .pd-btn { width: 100%; margin-top: auto; }
.pd-plan-facts { list-style: none; margin: 0; padding: 0; }
.pd-plan-facts li { color: var(--body); font-size: 1rem; }
.pd-plan-facts b { color: var(--ink); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.pd-plan-common { background: var(--wash); border-radius: var(--radius-lg); padding: 26px 24px; }
.pd-plan-common h3 { font-size: 1rem; margin-bottom: 12px; }
.pd-plan-common ul { list-style: none; margin: 0; padding: 0; }
.pd-plan-common li { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--ink); font-size: .96rem; }
.pd-yes { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, #16a34a 14%, transparent); color: #15803d; font-size: .75rem; font-weight: 700; }
.dark .pd-yes { color: #4ade80; background: color-mix(in srgb, #4ade80 16%, transparent); }

/* install: a real sequence */
.pd-install { background: var(--wash); }
.pd-install-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.pd-install-steps li { counter-increment: s; position: relative; padding-top: 44px; }
.pd-install-steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); font-weight: 700; font-size: .9rem; display: flex; align-items: center; justify-content: center; }
.pd-install-steps strong { display: block; margin-bottom: 4px; }
.pd-install-steps p { color: var(--soft); font-size: .97rem; }
.pd-callout { margin-top: 40px; padding: 18px 22px; border-left: 3px solid var(--accent); background: var(--paper); border-radius: 0 10px 10px 0; font-size: .96rem; }

/* faq */
.pd-faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.pd-faq details { border-top: 1px solid var(--line); }
.pd-faq summary { cursor: pointer; font-weight: 600; font-size: 1.02rem; letter-spacing: -0.005em; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 0; transition: color .15s; }
.pd-faq summary:hover, .pd-faq details[open] summary { color: var(--accent); }
.pd-faq summary::-webkit-details-marker { display: none; }
.pd-faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--accent);
  background: linear-gradient(currentColor, currentColor) center / 11px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 11px no-repeat;
  transition: transform .2s, background-color .2s, border-color .2s, color .2s; }
.pd-faq summary:hover::after { border-color: var(--accent); }
.pd-faq details[open] summary::after { transform: rotate(45deg); background-color: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pd-faq details > div { color: var(--body); font-size: .98rem; line-height: 1.7; max-width: 62ch; padding: 0 46px 22px 0; margin-top: -4px; }
@media (prefers-reduced-motion: reduce) { .pd-faq summary, .pd-faq summary::after { transition: none; } }

/* more: each card carries the other product's own colour and icon */
.pd-more { padding-top: 0 !important; }
.pd-more ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pd-more li a { --oc: var(--accent); display: flex; gap: 16px; align-items: flex-start; height: 100%; padding: 20px; border: 1px solid var(--line); border-top: 3px solid var(--oc); border-radius: 4px 4px 14px 14px; background: var(--card); text-decoration: none; color: var(--ink) !important; transition: border-color .15s, background-color .15s; }
.pd-more li a:hover { border-color: var(--oc); background: color-mix(in srgb, var(--oc) 5%, var(--card)); }
.pd-more-mark { flex: none; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; overflow: hidden; background: var(--oc); color: #fff; font-weight: 700; font-size: 1.2rem; }
.pd-more-mark img { width: 100%; height: 100%; object-fit: cover; }
.pd-more-text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.pd-more strong { display: block; margin-bottom: 4px; font-size: 1.05rem; }
.pd-more li a:hover strong { color: var(--oc); }
.pd-more-text > span { color: var(--body); font-size: .93rem; line-height: 1.55; }
.pd-more em { margin-top: 10px; font-style: normal; font-size: .76rem; font-weight: 600; color: #15803d; background: color-mix(in srgb, #16a34a 12%, transparent); padding: 2px 9px; border-radius: 999px; }
.dark .pd-more em { color: #4ade80; }
.dark .pd-more li a:hover strong { color: color-mix(in srgb, var(--oc) 55%, white); }

/* final band */
.pd-final { background: var(--lab); color: #fff; padding: 72px 0 !important; }
.pd-final h2 { color: #fff; }
.pd-final p { color: rgba(255,255,255,.72); }
.pd-final-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.pd-final .pd-btn.is-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.pd-final .pd-btn.is-ghost:hover { border-color: #fff; }
.pd-legal { text-align: center; color: var(--soft); font-size: .82rem; padding: 26px 24px 30px; }

/* lightbox */
.pd-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 13, 22, .92); }
.pd-lightbox::backdrop { background: transparent; }
.pd-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.pd-lightbox img { max-width: min(96vw, 100%); max-height: 92vh; width: auto; height: auto; border-radius: 10px; cursor: zoom-in; }
.pd-lightbox.is-full { overflow: auto; align-items: flex-start; justify-content: flex-start; }
.pd-lightbox.is-full img { max-width: none; max-height: none; cursor: zoom-out; margin: auto; }
.pd-lightbox button { position: fixed; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 48px; height: 48px; border-radius: 12px; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.pd-lightbox button:hover { background: rgba(255, 255, 255, .22); }
.pd-lb-close { top: 18px; right: 18px; }
.pd-lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.pd-lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (prefers-reduced-motion: no-preference) {
  .pd-lightbox[open] img { animation: pd-zoom-in .22s ease-out; }
  @keyframes pd-zoom-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
}

/* small screens */
@media (max-width: 960px) {
  .pd section { padding: 64px 0; }
  .pd-tour-grid { grid-template-columns: 1fr; gap: 0; }
  .pd-tour-stage { display: none; }
  .pd-step-shot { display: block; margin-top: 16px; }
  .pd-step-body { padding-left: 22px; }
  .pd-install-steps { grid-template-columns: 1fr 1fr; }
  .pd-faq-list { grid-template-columns: 1fr; }
  .pd-aud-grid { grid-template-columns: 1fr; gap: 28px; }
  .pd-plan-layout { grid-template-columns: 1fr; }
  .pd-more ul { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pd { font-size: 16px; }
  .pd-wrap { padding: 0 16px; }
  .pd-hero { padding-top: 44px !important; }
  .pd-showcase { margin-top: 36px; }
  .pd-zoom img { border-radius: 10px; }
  .pd-actions .pd-btn { width: 100%; }
  .pd-install-steps { grid-template-columns: 1fr; }
  .pd-aud { grid-template-columns: 1fr; }
  .pd-table tbody th, .pd-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--card); }
  .pd-table { min-width: 0; font-size: .9rem; }
  .pd-table th, .pd-table td { padding: 12px 10px; }
  .pd-table thead th { padding: 18px 12px; min-width: 150px; }
  .pd-table thead th:first-child, .pd-table tbody th { width: 172px; min-width: 172px; font-size: .88rem; }
  .pd-table thead th .pd-btn { padding: 0 10px; white-space: nowrap; }
  .is-rec .pd-price { font-size: 1.75rem; }
  .pd-final-inner { flex-direction: column; align-items: stretch; }
}
