/* Product pages (/studio/, /office/ and their /eng/, /chn/ copies), loaded after nexus.css */
:root {
    --pd-navy: #1B365D;
    --pd-crimson: #8C252B;
    --ph: #D6336C;
    --pdf: #C4312B;
    --ly: #6F42C1;
    --fm: #E8590C;
    --ve: #0C8599;
}
.app-ph { --app: var(--ph); }
.app-pdf { --app: var(--pdf); }
.app-ly { --app: var(--ly); }
.app-fm { --app: var(--fm); }
.app-ve { --app: var(--ve); }

/* ---------- hero ---------- */
.pd-hero {
    background:
        radial-gradient(900px 520px at 88% 12%, rgba(140,37,43,.38), transparent 60%),
        radial-gradient(900px 600px at 4% 100%, rgba(37,99,235,.24), transparent 55%),
        linear-gradient(160deg, #0A1B33 0%, #1B365D 62%, #0A1B33 100%);
    color: #fff; padding: 150px 0 96px; position: relative; overflow: hidden;
}
.pd-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(700px 520px at 30% 40%, #000, transparent); }
.pd-hero-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 52px; align-items: center; position: relative; }
.pd-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.pd-brand img { width: 54px; height: 54px; border-radius: 14px; box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.pd-brand b { display: block; font-size: 1.05rem; letter-spacing: .14em; font-weight: 600; }
.pd-brand span { font-size: .85rem; color: rgba(255,255,255,.65); }
.pd-hero h1 { font-size: clamp(2rem, 4.1vw, 3.1rem); font-weight: 700; line-height: 1.22; margin-bottom: 18px; }
.pd-hero h1 em { font-style: normal; background: linear-gradient(90deg, #FF8C94, #F3DFA0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pd-lead { font-size: 1.08rem; font-weight: 300; color: rgba(255,255,255,.82); max-width: 560px; }
.pd-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 24px; }
.btn-crimson { background: linear-gradient(120deg, #8C252B, #C8464E); color: #fff; box-shadow: 0 8px 26px rgba(140,37,43,.45); }
.btn-crimson:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(140,37,43,.55); }
.pd-soon { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 500; color: #FFD6D9; background: rgba(140,37,43,.28); border: 1px solid rgba(255,140,148,.35); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.pd-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: rgba(255,255,255,.85); }
.pd-trust li::before { content: "✓"; color: var(--sky); font-weight: 700; margin-right: 8px; }

.pd-video { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16/9; background: #000; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.pd-video video { width: 100%; height: 100%; display: block; object-fit: cover; }
.pd-sound { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(10,27,51,.72); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .82rem; cursor: pointer; backdrop-filter: blur(6px); }
.pd-sound:hover { background: rgba(10,27,51,.9); }
.pd-sound:focus-visible, .pd-compare input:focus-visible + .pd-divider span { outline: 3px solid var(--sky); outline-offset: 2px; }
.pd-cap { font-size: .82rem; color: rgba(255,255,255,.62); margin-top: 12px; text-align: center; }

/* ---------- the five apps ---------- */
.pd-soft { background: var(--bg); }
.pd-apps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.pd-app { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--app); border-radius: 18px; padding: 24px 20px 20px; color: inherit; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pd-app:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.pd-app img { width: 56px; height: 56px; margin-bottom: 14px; }
.pd-app h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy-900); margin-bottom: 6px; }
.pd-app p { font-size: .88rem; color: var(--muted); font-weight: 300; margin-bottom: 14px; }
.pd-app .more { margin-top: auto; font-size: .85rem; font-weight: 600; color: var(--app); }
.pd-launch { max-width: 980px; margin: 48px auto 0; }
.pd-launch .pd-media { background: #fff; }
.pd-launch .pd-figcap { text-align: center; }

/* ---------- one block per app ---------- */
.pd-row { display: grid; grid-template-columns: 1.15fr .85fr; gap: 52px; align-items: center; margin-bottom: 84px; scroll-margin-top: 96px; }
.pd-row:last-child { margin-bottom: 0; }
.pd-row.rev > :first-child { order: 2; }
.pd-media { border-radius: 16px; overflow: hidden; aspect-ratio: 16/10; background: #1E1E1E; box-shadow: var(--shadow-2); border: 1px solid var(--line); }
.pd-media.wide { aspect-ratio: 16/9; }
.pd-media img, .pd-media video { width: 100%; height: 100%; display: block; object-fit: cover; }
.pd-tag { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pd-tag img { width: 40px; height: 40px; }
.pd-tag span { font-size: .75rem; font-weight: 700; letter-spacing: .08em; color: var(--app); text-transform: uppercase; }
.pd-row h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 700; color: var(--navy-900); line-height: 1.35; margin-bottom: 12px; }
.pd-row p { color: var(--muted); font-weight: 300; margin-bottom: 14px; }
.pd-feats { list-style: none; display: grid; gap: 8px; }
.pd-feats li { position: relative; padding-left: 26px; font-size: .95rem; }
.pd-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--app); font-weight: 700; }
.pd-figcap { font-size: .8rem; color: #8A9AB0; margin-top: 10px; }
.nw { white-space: nowrap; }

/* before / after */
.pd-compare-wrap { max-width: 980px; margin: -24px auto 84px; }
.pd-compare-wrap h4 { text-align: center; font-size: 1.05rem; font-weight: 600; color: var(--navy-900); margin-bottom: 14px; }
.pd-compare { --pos: 50%; position: relative; aspect-ratio: 16/10; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-2); user-select: none; }
.pd-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pd-compare .before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.pd-compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.pd-divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); z-index: 2; pointer-events: none; box-shadow: 0 0 12px rgba(0,0,0,.35); }
.pd-divider span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; color: var(--navy-900); display: grid; place-items: center; font-size: .9rem; font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.pd-lbl { position: absolute; top: 14px; z-index: 2; font-size: .78rem; font-weight: 600; color: #fff; background: rgba(10,27,51,.7); padding: 5px 12px; border-radius: 999px; pointer-events: none; }
.pd-lbl.l { left: 14px; }
.pd-lbl.r { right: 14px; }

/* exported SVG proof under Vector Studio */
.pd-proof { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 14px 16px; border: 1px dashed #C7D3E3; border-radius: 14px; background: var(--bg); }
.pd-proof img { width: 76px; height: 76px; flex: none; }
.pd-proof p { margin: 0; font-size: .88rem; }

/* ---------- why ---------- */
.pd-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pd-why > div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; }
.pd-why .ic { font-size: 1.6rem; margin-bottom: 10px; }
.pd-why h3 { font-size: 1.02rem; font-weight: 700; color: var(--navy-900); margin-bottom: 6px; }
.pd-why p { font-size: .9rem; color: var(--muted); font-weight: 300; }

/* ---------- trial & buying ---------- */
.pd-buy { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.pd-steps { list-style: none; counter-reset: s; display: grid; gap: 14px; }
.pd-steps li { counter-increment: s; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px 18px 70px; }
.pd-steps li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(120deg, #8C252B, #C8464E); color: #fff; font-weight: 700; display: grid; place-items: center; }
.pd-steps b { display: block; color: var(--navy-900); margin-bottom: 2px; }
.pd-steps span { font-size: .9rem; color: var(--muted); font-weight: 300; }
.pd-info { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; box-shadow: var(--shadow-1); }
.pd-info h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy-900); margin-bottom: 10px; }
.pd-info p { font-size: .92rem; color: var(--muted); font-weight: 300; margin-bottom: 14px; }
.pd-info dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: .9rem; margin: 6px 0 20px; }
.pd-info dt { color: var(--muted); }
.pd-info dd { font-weight: 500; }
.pd-info .btn { width: 100%; justify-content: center; }
.pd-credit { margin-top: 10px; font-size: .78rem; opacity: .7; }

/* ---------- Nexus Office ---------- */
.app-docs { --app: #2B6CD9; }
.app-sheets { --app: #1E8E4E; }
.app-slides { --app: #D24E26; }
.app-mail { --app: #0F6CBD; }
.app-plan { --app: #0E7C6B; }
.app-diagram { --app: #7B4FC9; }
.app-analyst { --app: #B45309; }
.app-ophoto { --app: #00838F; }
.app-webslides { --app: #C2417A; }
.app-ai { --app: #B8860B; }
.pd-hero.office {
    background:
        radial-gradient(900px 520px at 88% 12%, rgba(217,178,74,.22), transparent 60%),
        radial-gradient(900px 600px at 4% 100%, rgba(37,99,235,.26), transparent 55%),
        linear-gradient(160deg, #0A1B33 0%, #1B365D 62%, #0A1B33 100%);
}
.pd-hero.office h1 em { background: linear-gradient(90deg, #F3DFA0, #D9B24A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pd-logo { display: block; height: 60px; width: auto; margin-bottom: 18px; }
.pd-sub { font-size: .9rem; color: rgba(255,255,255,.65); margin-bottom: 18px; letter-spacing: .02em; }
.pd-replay { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; background: rgba(10,27,51,.78); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 8px 18px; font: inherit; font-size: .85rem; cursor: pointer; backdrop-filter: blur(6px); }
.pd-replay[hidden] { display: none; }
.pd-replay:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.pd-outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pd-outcomes > div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; box-shadow: var(--shadow-1); }
.pd-outcomes b { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; color: var(--navy-900); margin-bottom: 8px; }
.pd-outcomes b::before { content: "✓"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #FFF4D6; color: #A87900; font-size: .9rem; }
.pd-outcomes p { font-size: .92rem; color: var(--muted); font-weight: 300; }

.pd-figs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.pd-figs.three { grid-template-columns: repeat(3, 1fr); }
.pd-fig { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pd-fig:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.pd-fig .shot { display: block; aspect-ratio: 16/10; overflow: hidden; background: #EEF2F7; border-bottom: 1px solid var(--line); }
.pd-fig .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-fig .txt { padding: 18px 20px 20px; }
.pd-fig h4 { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 700; color: var(--navy-900); margin-bottom: 4px; }
.pd-fig h4 img { width: 30px; height: 30px; }
.pd-fig p { font-size: .88rem; color: var(--muted); font-weight: 300; }
.pd-figs-note { text-align: center; font-size: .82rem; color: #8A9AB0; margin-top: 16px; }

.pd-applist { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-bottom: 48px; }
.pd-applist > div { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--app); border-radius: 14px; padding: 14px; }
.pd-applist img { width: 40px; height: 40px; flex: none; }
.pd-applist b { display: block; font-size: .95rem; color: var(--navy-900); }
.pd-applist span { display: block; font-size: .83rem; line-height: 1.45; color: var(--muted); font-weight: 300; }

.pd-formats-box { text-align: center; margin-top: 56px; }
.pd-formats-box h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy-900); }
.pd-formats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px 0 14px; }
.pd-formats span { font-family: ui-monospace, Consolas, monospace; font-weight: 600; font-size: .95rem; padding: 8px 16px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--navy-900); box-shadow: var(--shadow-1); }
.pd-note { max-width: 720px; margin: 0 auto; font-size: .92rem; color: var(--muted); font-weight: 300; }
.pd-proof .thumb { width: 132px; height: auto; border-radius: 8px; border: 1px solid var(--line); flex: none; }

/* ---------- alternatives + FAQ (the words people search for) ---------- */
.pd-alts { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.pd-alt { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--app); border-radius: 16px; padding: 20px 20px 18px; }
.pd-alt .who { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy-900); margin-bottom: 6px; }
.pd-alt .who img { width: 32px; height: 32px; }
.pd-alt .vs { display: block; font-size: .85rem; font-weight: 600; color: var(--app); margin-bottom: 6px; }
.pd-alt p { font-size: .9rem; color: var(--muted); font-weight: 300; }
.pd-faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.pd-faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.pd-faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; color: var(--navy-900); position: relative; }
.pd-faq summary::-webkit-details-marker { display: none; }
.pd-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--blue); transition: transform .25s var(--ease); }
.pd-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.pd-faq summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 8px; }
.pd-faq details p { color: var(--muted); font-weight: 300; padding: 0 0 18px; }
.pd-tm { margin-top: 10px; font-size: .74rem; opacity: .55; max-width: 900px; margin-left: auto; margin-right: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
    .pd-apps { grid-template-columns: repeat(3, 1fr); }
    .pd-why { grid-template-columns: repeat(2, 1fr); }
    .pd-figs.three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
    .pd-hero { padding: 128px 0 72px; }
    .pd-hero-grid, .pd-row, .pd-buy { grid-template-columns: 1fr; gap: 30px; }
    .pd-row.rev > :first-child { order: 0; }
    .pd-row { margin-bottom: 64px; }
    .pd-compare-wrap { margin: -12px auto 64px; }
    .pd-outcomes, .pd-figs { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .pd-apps { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .pd-app { padding: 18px 14px 16px; }
    .pd-why { grid-template-columns: 1fr; }
    .pd-ctas .btn { width: 100%; justify-content: center; }
    .pd-steps li { padding-left: 64px; }
    .pd-figs.three { grid-template-columns: 1fr; }
    .pd-proof { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
    .pd-apps { grid-template-columns: 1fr; }
}
