/* Detail pages share the homepage's scale, without changing account, admin or checkout. */
.lunaryx-detail { --detail-blue:#355fdb; --detail-violet:#7358bb; }
.lunaryx-detail .shell { width:min(1200px,calc(100% - 96px)); margin-inline:auto; }
.lunaryx-detail main { overflow:clip; }
.lunaryx-detail .generic-product-toolbar { display:flex; justify-content:space-between; align-items:center; gap:24px; padding-block:30px 0; }
.lunaryx-detail .generic-product-back { display:inline-flex; gap:9px; align-items:center; font-size:.8rem; font-weight:500; }
.detail-local-nav { display:flex; align-items:center; gap:30px; }
.detail-local-nav a { color:var(--muted); font-size:.78rem; text-decoration:none; padding-block:12px; }
.detail-local-nav a:first-child span { margin-left:12px; }
.lunaryx-detail a:focus-visible,.lunaryx-detail button:focus-visible,.lunaryx-detail summary:focus-visible { outline:3px solid var(--detail-blue); outline-offset:5px; }
.lunaryx-detail .generic-product-hero { grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:28px 70px; align-items:start; padding-block:64px 80px; }
.lunaryx-detail .generic-product-copy { grid-column:1; grid-row:1; }
.lunaryx-detail .generic-product-copy h1 { font-size:clamp(2.6rem,4.45vw,4.1rem); line-height:1.06; font-weight:660; letter-spacing:-.052em; max-width:19ch; margin:24px 0 20px; text-wrap:balance; overflow-wrap:anywhere; }
.lunaryx-detail[data-product-presentation="software"] .generic-product-copy h1 { max-width:18ch; font-size:clamp(2.8rem,4.6vw,4.6rem); }
.lunaryx-detail .generic-product-badges { gap:16px; }
.lunaryx-detail .generic-product-badges .section-kicker { color:var(--muted); font-size:.76rem; font-weight:500; letter-spacing:.035em; text-transform:none; }
.lunaryx-detail .status-pill { font-size:.7rem; font-weight:500; padding:5px 10px; }
.lunaryx-detail .generic-product-subtitle { font-size:.86rem; line-height:1.5; margin:0 0 18px; }
.lunaryx-detail .generic-product-copy .hero-copy { font-size:1.05rem; line-height:1.7; max-width:45ch; margin:0; text-wrap:pretty; }
.lunaryx-detail .generic-product-brand { margin:14px 0 0; font-size:.75rem; color:var(--muted); }
.lunaryx-detail [data-generic-product-rating] { margin-top:20px; font-size:.8rem; }
.lunaryx-detail .generic-product-links { margin-top:16px; }
.lunaryx-detail .generic-product-visual { grid-column:2; grid-row:1 / span 2; position:relative; isolation:isolate; align-self:stretch; min-height:630px; padding:48px 30px; overflow:hidden; border-radius:30px; background:linear-gradient(145deg,#f2f5fb,#f0f0f8 55%,#e9edf7); }
.lunaryx-detail .generic-product-visual::before { content:""; position:absolute; z-index:-1; width:470px; height:470px; border-radius:50%; background:radial-gradient(circle,#d4def399,transparent 68%); }
.lunaryx-detail .generic-product-visual::after { content:""; position:absolute; z-index:-1; width:440px; height:260px; border:1px solid #b4c1df4d; border-radius:50%; transform:rotate(-24deg); }
.lunaryx-detail .generic-product-visual img { width:240px; max-width:80%; height:auto; aspect-ratio:1; object-fit:contain; border-radius:24%; box-shadow:18px 26px 38px #24314b22,0 2px 8px #24314b10; transform:perspective(1200px) rotateY(-10deg) rotate(-5deg); transition:transform .65s; }
.lunaryx-detail[data-product-presentation="book"] .generic-product-visual { align-self:start; min-height:0; height:460px; padding:24px 32px 40px; overflow:visible; border-radius:0; background:none; perspective:1400px; }
.lunaryx-detail[data-product-presentation="book"] .generic-product-visual::before { inset:8% 0 0; width:auto; height:auto; background:radial-gradient(ellipse at 50% 45%,#dee7f480,#e7e3f33b 44%,transparent 70%); border-radius:0; }
.lunaryx-detail[data-product-presentation="book"] .generic-product-visual::after { bottom:8px; left:14%; width:72%; height:26px; background:#27375319; border:0; border-radius:50%; filter:blur(14px); transform:none; }
.lunaryx-detail[data-product-presentation="book"] .generic-product-visual-glow { display:none; }
.lunaryx-detail[data-product-presentation="book"] .generic-product-visual img { display:block; width:auto; max-width:88%; height:auto; max-height:396px; aspect-ratio:auto; object-fit:contain; border-radius:2px 5px 5px 2px; box-shadow:12px 16px 24px #24314b20,2px 2px 4px #24314b1a; transform:rotateY(-8deg) rotateZ(-1deg); transform-origin:50% 65%; animation:book-cover-arrive 1.3s cubic-bezier(.16,1,.3,1) both,book-cover-float 8s ease-in-out 1.3s infinite; animation-play-state:paused; }
.lunaryx-detail[data-product-presentation="book"] .generic-product-visual.is-book-moving img { animation-play-state:running; }
@keyframes book-cover-arrive { from { transform:translateY(20px) rotateY(-26deg) rotateZ(3deg); } to { transform:translateY(0) rotateY(-8deg) rotateZ(-1deg); } }
@keyframes book-cover-float { 0%,100% { transform:translateY(0) rotateY(-8deg) rotateZ(-1deg); } 50% { transform:translateY(-7px) rotateY(-3deg) rotateZ(.6deg); } }
.lunaryx-detail .generic-product-visual figcaption { display:none; }
.lunaryx-detail .generic-product-visual-glow { display:block; position:absolute; z-index:-1; width:450px; height:250px; background:linear-gradient(100deg,#eef4ff,#e4ddf4); filter:blur(45px); opacity:.4; animation:detail-light-arrive 2.8s ease-out both; }
@keyframes detail-light-arrive { from { opacity:0; transform:translateY(20px); } to { opacity:.4; transform:none; } }
.lunaryx-detail .generic-product-purchase { grid-column:1; grid-row:2; scroll-margin-top:100px; }
.lunaryx-detail .generic-product-purchase .product-buy-panel { padding:26px; border:1px solid var(--line); border-radius:22px; background:var(--surface); box-shadow:none; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:16px 20px; }
.lunaryx-detail .product-buy-panel > * { min-width:0; margin:0; }
.lunaryx-detail .product-buy-panel-head { grid-column:1 / -1; }
.lunaryx-detail .product-buy-panel-head h2 { font-size:1rem; line-height:1.4; font-weight:550; letter-spacing:-.015em; }
.lunaryx-detail .shop-purchase-top { grid-column:1 / -1; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 20px; padding:0; min-height:0; }
.lunaryx-detail .shop-price { font-size:1.95rem; letter-spacing:-.04em; line-height:1.2; margin:0; font-weight:620; }
.lunaryx-detail .shop-price-label { flex-basis:100%; margin:0; font-size:.76rem; color:var(--muted); }
.lunaryx-detail .shop-availability { font-size:.72rem; padding:5px 9px; }
.lunaryx-detail .shop-variant-select-field { grid-column:1 / -1; gap:6px; margin:0; }
.lunaryx-detail .shop-variant-select-field > span { font-size:.76rem; color:var(--muted); }
.lunaryx-detail .shop-variant-select-field select { min-height:48px; padding:12px 36px 12px 14px; font-size:.88rem; border-radius:12px; background:var(--surface); }
.lunaryx-detail .shop-variant-facts { display:none; }
.lunaryx-detail .shop-card-note { grid-column:1 / -1; font-size:.76rem; line-height:1.5; color:var(--muted); padding:0; border:0; background:none; }
.lunaryx-detail .shop-quantity-row { grid-column:1 / -1; display:flex; justify-content:space-between; align-items:center; gap:16px; padding:0; }
.lunaryx-detail .shop-quantity-row > span { font-size:.76rem; color:var(--muted); text-transform:none; letter-spacing:0; }
.lunaryx-detail .shop-quantity-control { gap:6px; }
.lunaryx-detail .shop-quantity-control input { width:46px; height:38px; min-height:38px; border-radius:10px; font-size:.85rem; }
.lunaryx-detail .shop-quantity-control .button { width:38px; height:38px; min-height:38px; padding:0; border-radius:50%; }
.lunaryx-detail .shop-actions { grid-column:1 / -1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:0; }
.lunaryx-detail .button { min-height:46px; padding:11px 20px; font-size:.86rem; gap:12px; border-radius:24px; box-shadow:none; transition:background-color .2s,box-shadow .2s; }
.lunaryx-detail .button.primary { background:#2d59b9; border-color:#2d59b9; }
.lunaryx-detail .button.primary:hover { background:#234793; border-color:#234793; }
.lunaryx-detail .shop-actions .button[data-cart-add] { grid-column:1 / -1; }
.lunaryx-detail .shop-actions .button.amazon { grid-column:auto; background:var(--surface); border-color:var(--line); color:var(--text); }
.lunaryx-detail .is-informational .product-buy-panel-head .fineprint { display:block; color:var(--muted); font-size:.88rem; line-height:1.65; margin:10px 0 0; }
.lunaryx-detail .is-informational .shop-price { font-size:1.25rem; font-weight:550; letter-spacing:-.025em; }
.lunaryx-detail .generic-product-purchase .product-buy-panel.is-informational .shop-purchase-top { display:flex; }
.lunaryx-detail [data-public-product-prices] { grid-column:1 / -1; }
.lunaryx-detail [data-public-product-prices] li { display:block; padding:8px 0; border:0; }
.lunaryx-detail .is-informational .shop-variant-select-field,.lunaryx-detail .is-informational .shop-quantity-row,.lunaryx-detail .is-informational .shop-card-note { display:none; }
.lunaryx-detail .generic-product-availability-note { font-size:.85rem; margin:0; }
.lunaryx-detail .detail-app-actions { grid-column:1 / -1; display:flex; flex-wrap:wrap; align-items:center; gap:12px 24px; }
.lunaryx-detail .detail-app-actions a { font-size:.86rem; text-decoration:none; }

.detail-sections { scroll-margin-top:100px; }
.lunaryx-detail .section.compact { padding-block:74px; min-height:0; margin-block:0; }
.lunaryx-detail .section-head { margin-bottom:36px; align-items:start; gap:32px; }
.lunaryx-detail .section-head h2,.lunaryx-detail .detail-editorial-intro h2 { font-size:clamp(2rem,3.3vw,3rem); line-height:1.12; letter-spacing:-.044em; margin:14px 0 0; max-width:22ch; }
.lunaryx-detail .section-head .section-lead { max-width:40ch; font-size:.95rem; }
.lunaryx-detail .generic-product-story,.lunaryx-detail .generic-product-highlights,.lunaryx-detail .generic-product-facts { border-top:1px solid var(--line); }
.lunaryx-detail .generic-product-description { font-size:1.05rem; line-height:1.85; max-width:76ch; }
.lunaryx-detail .generic-product-description p { margin:0 0 20px; }
.lunaryx-detail .generic-product-highlight-grid,.detail-feature-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.lunaryx-detail .generic-product-highlight,.detail-feature { display:block; min-width:0; padding:28px; border:1px solid var(--line); border-radius:22px; background:var(--bg-2); box-shadow:none; }
.lunaryx-detail .generic-product-highlight > span,.detail-feature > span { display:block; font-size:.72rem; font-weight:500; color:#64759c; letter-spacing:.035em; }
.lunaryx-detail .generic-product-highlight h3,.detail-feature h3 { font-size:1.15rem; letter-spacing:-.022em; line-height:1.35; margin:24px 0 12px; }
.lunaryx-detail .generic-product-highlight p,.detail-feature p { font-size:.9rem; line-height:1.7; color:var(--muted); margin:0; }
.lunaryx-detail .generic-product-fact-grid,.detail-fact-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px 38px; padding:0; margin:0; }
.lunaryx-detail .generic-product-fact-grid > div,.detail-fact-grid > div { padding:16px 0 0; border:0; border-top:1px solid var(--line); min-width:0; }
.lunaryx-detail .generic-product-fact-grid dt,.detail-fact-grid dt { color:var(--muted); font-size:.78rem; font-weight:400; text-transform:none; letter-spacing:0; }
.lunaryx-detail .generic-product-fact-grid dd,.detail-fact-grid dd { font-size:1rem; font-weight:500; margin:8px 0 0; line-height:1.6; overflow-wrap:anywhere; }
.detail-editorial-intro { display:grid; grid-template-columns:1fr 1fr; align-items:start; gap:70px; border-top:1px solid var(--line); }
.detail-editorial-intro > div:last-child { padding-top:36px; }
.detail-editorial-intro > div:last-child p { font-size:1.08rem; line-height:1.8; color:var(--muted); margin:0 0 18px; text-wrap:pretty; }
.detail-editorial-features,.detail-editorial-facts { border-top:1px solid var(--line); }
.detail-audience { color:var(--muted); font-size:1rem; line-height:1.8; max-width:65ch; margin:0 0 32px; }
.lunaryx-detail .studio-app-preview { display:grid; grid-template-columns:.8fr 1.2fr; gap:60px; align-items:center; border:0; padding-block:72px; }
.lunaryx-detail .studio-app-preview .section-head { display:block; margin:0; }
.lunaryx-detail .studio-app-preview .section-lead { margin-top:24px; }
.lunaryx-detail .studio-app-preview-grid { position:relative; isolation:isolate; padding:36px 30px; gap:28px; background:linear-gradient(130deg,#f2f5fb,#f0edf7); border-radius:30px; }
.lunaryx-detail .studio-app-preview-grid figure { max-width:185px; min-width:0; }
.lunaryx-detail .studio-app-preview-grid figure:first-child { transform:rotate(-4deg); }
.lunaryx-detail .studio-app-preview-grid figure+figure { transform:rotate(4deg); padding-top:32px; }
.lunaryx-detail .studio-app-preview-grid img { border:5px solid #24242a; border-radius:28px; box-shadow:10px 18px 28px #28334f1a; }
.lunaryx-detail .studio-app-preview-grid figcaption { font-size:.73rem; line-height:1.5; margin-top:16px; }
.lunaryx-detail .product-media-section { border-top:1px solid var(--line); }
.lunaryx-detail .detail-contact { display:grid; grid-template-columns:1fr auto; align-items:center; gap:60px; border-top:1px solid var(--line); padding-block:70px 86px; }
.lunaryx-detail .detail-contact h2 { font-size:clamp(2.4rem,4.2vw,3.8rem); letter-spacing:-.05em; line-height:1.1; margin:16px 0 20px; }
.lunaryx-detail .detail-contact .section-lead { max-width:48ch; font-size:1rem; margin:0; }
.lunaryx-detail .product-review-section { border-top:1px solid var(--line); }
.lunaryx-detail .review-layout { display:grid; grid-template-columns:1.3fr .7fr; gap:30px; align-items:start; }
.lunaryx-detail .review-summary-card { display:flex; flex-wrap:wrap; align-items:center; gap:12px 20px; padding:24px; border:0; border-radius:20px; background:var(--bg-2); box-shadow:none; }
.lunaryx-detail .review-summary-card .review-average { font-size:1.6rem; margin:0; line-height:1.3; }
.lunaryx-detail .review-summary-card > p { flex-basis:100%; margin:0; color:var(--muted); font-size:.8rem; }
.lunaryx-detail .review-card { padding:26px; border:1px solid var(--line); border-radius:22px; box-shadow:none; background:var(--surface); }
.lunaryx-detail .review-comment { font-size:.94rem; line-height:1.8; }
.lunaryx-detail .review-admin-response { margin-top:20px; padding:18px; border:0; border-radius:14px; background:var(--bg-2); }
.lunaryx-detail .review-empty { font-size:.95rem; color:var(--muted); padding:0; border:0; border-radius:0; background:none; }
.detail-review-action { padding:22px 24px; border:1px solid var(--line); border-radius:20px; background:var(--surface); }
.detail-review-action > summary { display:flex; gap:16px; justify-content:space-between; align-items:center; list-style:none; cursor:pointer; font-size:.94rem; font-weight:550; }
.detail-review-action > summary::-webkit-details-marker { display:none; }
.detail-review-action > summary::after { content:"+"; font-size:1.4rem; font-weight:400; color:var(--muted); }
.detail-review-action[open] > summary::after { content:"−"; }
.lunaryx-detail .detail-review-action .review-gate,.lunaryx-detail .detail-review-action .review-form { padding:24px 0 0; border:0; background:none; box-shadow:none; }
.lunaryx-detail .detail-review-action h3 { font-size:1.1rem; }
.lunaryx-detail .detail-review-action .actions { gap:10px; }

html[data-theme="dark"] .lunaryx-detail .generic-product-visual,html[data-theme="dark"] .lunaryx-detail .studio-app-preview-grid { background:linear-gradient(145deg,#202636,#262b3c); }
html[data-theme="dark"] .lunaryx-detail .generic-product-visual::before { opacity:.18; }
html[data-theme="dark"] .lunaryx-detail .generic-product-visual::after { border-color:#a3b9e62a; }
html[data-theme="dark"] .lunaryx-detail .generic-product-visual-glow { opacity:.08; animation:none; }
html[data-theme="dark"] .lunaryx-detail[data-product-presentation="book"] .generic-product-visual { background:none; }
html[data-theme="dark"] .lunaryx-detail[data-product-presentation="book"] .generic-product-visual::before { opacity:.65; background:radial-gradient(ellipse at 50% 45%,#314f8333,#46477429 44%,transparent 70%); }
html[data-theme="dark"] .lunaryx-detail[data-product-presentation="book"] .generic-product-visual::after { background:#0008; }
html[data-theme="dark"] .detail-feature > span,html[data-theme="dark"] .lunaryx-detail .generic-product-highlight > span { color:#a6b5d8; }

@media (hover:hover) and (prefers-reduced-motion:no-preference) {
 .lunaryx-detail .generic-product-visual:hover img { transform:perspective(1200px) rotateY(-6deg) rotate(-2deg) translateY(-4px); }
 .lunaryx-detail[data-product-presentation="book"] .generic-product-visual:hover img { animation-play-state:paused; }
}
@media (max-width:1024px) {
 .lunaryx-detail .shell { width:calc(100% - 64px); }
 .lunaryx-detail .generic-product-hero { column-gap:40px; }
 .lunaryx-detail .generic-product-visual { min-height:570px; padding:32px 22px; }
 .lunaryx-detail[data-product-presentation="book"] .generic-product-visual { height:430px; padding:20px 22px 36px; }
 .lunaryx-detail[data-product-presentation="book"] .generic-product-visual img { max-height:370px; }
 .detail-editorial-intro { gap:40px; }
 .lunaryx-detail .generic-product-highlight-grid,.detail-feature-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .lunaryx-detail .studio-app-preview { gap:36px; }
}
@media (max-width:740px) {
 .lunaryx-detail .shell { width:calc(100% - 40px); }
 .lunaryx-detail .generic-product-toolbar { padding-top:20px; flex-wrap:wrap; gap:0 20px; }
 .detail-local-nav { gap:24px; }
 .detail-local-nav a { font-size:.72rem; }
 .lunaryx-detail .generic-product-hero { grid-template-columns:1fr; padding-block:36px 52px; gap:30px; }
 .lunaryx-detail .generic-product-copy { grid-column:1; grid-row:1; }
 .lunaryx-detail .generic-product-copy h1,.lunaryx-detail[data-product-presentation="software"] .generic-product-copy h1 { font-size:clamp(2.35rem,8.4vw,3.4rem); max-width:20ch; margin-block:22px 18px; }
 .lunaryx-detail .generic-product-copy .hero-copy { font-size:1rem; }
 .lunaryx-detail .generic-product-visual { grid-column:1; grid-row:2; min-height:320px; padding:36px 28px; border-radius:24px; }
 .lunaryx-detail .generic-product-visual img { width:180px; max-width:72%; }
 .lunaryx-detail[data-product-presentation="book"] .generic-product-visual { height:380px; min-height:0; padding:14px 24px 34px; }
 .lunaryx-detail[data-product-presentation="book"] .generic-product-visual img { width:auto; max-width:82%; max-height:326px; }
 .lunaryx-detail .generic-product-purchase { grid-column:1; grid-row:3; }
 .lunaryx-detail .generic-product-purchase .product-buy-panel { padding:22px; }
 .lunaryx-detail .section.compact { padding-block:52px; }
 .lunaryx-detail .section-head { display:block; margin-bottom:28px; }
 .lunaryx-detail .section-head h2,.lunaryx-detail .detail-editorial-intro h2 { font-size:2rem; }
 .lunaryx-detail .section-head .section-lead { margin-top:20px; }
 .detail-editorial-intro { grid-template-columns:1fr; gap:20px; }
 .detail-editorial-intro > div:last-child { padding:0; }
 .detail-editorial-intro > div:last-child p { font-size:1rem; }
 .lunaryx-detail .generic-product-highlight-grid,.detail-feature-grid { grid-template-columns:1fr; gap:14px; }
 .lunaryx-detail .generic-product-highlight,.detail-feature { padding:24px; }
 .lunaryx-detail .generic-product-highlight h3,.detail-feature h3 { margin-top:18px; }
 .lunaryx-detail .generic-product-fact-grid,.detail-fact-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
 .lunaryx-detail .studio-app-preview { display:block; padding-block:52px; }
 .lunaryx-detail .studio-app-preview .section-head { margin-bottom:30px; }
 .lunaryx-detail .studio-app-preview-grid { padding:28px 22px; gap:24px; }
 .lunaryx-detail .studio-app-preview-grid img { border-width:4px; border-radius:22px; }
 .lunaryx-detail .detail-contact { grid-template-columns:1fr; gap:26px; padding-block:52px 62px; }
 .lunaryx-detail .detail-contact .button { justify-self:start; }
 .lunaryx-detail .review-layout { grid-template-columns:1fr; gap:24px; }
 .lunaryx-detail .review-card { padding:22px; }
}
@media (max-width:360px) {
 .lunaryx-detail .shell { width:calc(100% - 32px); }
 .lunaryx-detail .generic-product-purchase .product-buy-panel { padding:18px; }
 .lunaryx-detail .generic-product-fact-grid,.detail-fact-grid { grid-template-columns:1fr; }
 .lunaryx-detail .studio-app-preview-grid { padding:22px 15px; gap:18px; }
 .lunaryx-detail .studio-app-preview-grid img { border-radius:18px; }
 .lunaryx-detail .shop-actions { gap:8px; }
 .lunaryx-detail .shop-actions .button { padding-inline:12px; }
}
@media (prefers-reduced-motion:reduce) {
 .lunaryx-detail *, .lunaryx-detail *::before, .lunaryx-detail *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
 .lunaryx-detail .generic-product-visual img { transform:none; }
 .lunaryx-detail .studio-app-preview-grid figure { transform:none; }
}
