/* The product page (/, /site/product, /site/zh/product, /site/ja/product), 2026-11-10.
   Jason: "this is the SEO page everyone joins from … it looks like a scam, not pro".
   This is the first page a stranger sees, so it has to earn trust in one screen: real games made on Gamentic next to
   the headline, the live demo framed as the product it is, plain readable type, and nothing shouting.
   Loaded after site.css and scoped to body.pd, so the other static pages keep their look. The hero keeps the brand
   film and its measured text shield (test/unit/heroLegibility.test.ts): only the layout around them changes. */

.pd {
  --pd-font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pd-surface: #111317;
  --pd-surface-2: #171a1f;
  --pd-line: rgba(255, 255, 255, .08);
  --pd-line-2: rgba(255, 255, 255, .16);
  --pd-head: #f3f4f6;
  --pd-text: #c9cdd4;
  --pd-muted: #9aa0a8;
  --pd-accent: #3f96f0;
  --pd-accent-2: #7cbcff;
  --pd-tint: rgba(24, 119, 242, .14);
  --pd-r: 14px;
}
html[lang^="zh"] .pd { --pd-font: 'Inter', 'Noto Sans TC', var(--cjk); }
html[lang="ja"] .pd { --pd-font: 'Inter', 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif; }

.pd main, .pd .mko { font-family: var(--pd-font); letter-spacing: 0; }
.pd main { color: var(--pd-text); font-size: 16.5px; line-height: 1.7; }
.pd main h1, .pd main h2, .pd main h3, .pd .mko h2 { font-family: var(--pd-font); color: var(--pd-head); letter-spacing: -.02em; }
html[lang^="zh"] .pd main h1, html[lang^="zh"] .pd main h2, html[lang^="zh"] .pd main h3,
html[lang="ja"] .pd main h1, html[lang="ja"] .pd main h2, html[lang="ja"] .pd main h3 { letter-spacing: .01em; }

/* buttons: the site's own .btn (cut corners, the same as the header's), a size up for the page's larger text */
.pd main .btn, .pd .pd-play { font-family: var(--body), var(--cjk); }
html[lang^="zh"] .pd main .btn, html[lang^="zh"] .pd .pd-play { font-family: var(--cjk); }
.pd main .btn { font-size: 14px; padding: 13px 24px; }
.pd main .btn.sm { font-size: 12.6px; padding: 9px 17px; }

/* ---- hero: what it is on the left, real games on the right ------------------------------------------------- */
.pd .hero { --copy-w: min(600px, 100%); padding: 84px 0 92px; }
.pd .hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: center; }
.pd .pd-copy { min-width: 0; }
.pd .hero h1 { font-size: clamp(34px, 4.7vw, 58px); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; margin: 0 0 20px; }
html[lang^="zh"] .pd .hero h1, html[lang="ja"] .pd .hero h1 { font-size: clamp(32px, 4.3vw, 52px); font-weight: 700; line-height: 1.26; letter-spacing: .01em; }
.pd .hero h1 .h1-kw { margin: 0 0 22px; padding: 6px 15px; font-family: var(--pd-font); font-size: 12.5px; line-height: 1.5; color: #b5d7ff; background: rgba(24, 119, 242, .2); border-color: rgba(63, 150, 240, .5); }
.pd .hero .sub { font-size: clamp(16.5px, 1.6vw, 18.5px); line-height: 1.6; margin: 0 0 28px; text-wrap: pretty; }
.pd .mk { margin: 0 0 14px; }
.pd .mk-l { font-size: 13.5px; letter-spacing: 0; margin-bottom: 8px; }
.pd .mk-box { align-items: flex-end; gap: 10px; padding: 10px; background: rgba(14, 17, 22, .94); border-color: rgba(63, 150, 240, .55); }
.pd .mk-box:focus-within { border-color: var(--pd-accent-2); }
.pd .mk textarea { font-family: var(--pd-font); font-size: 16.5px; line-height: 1.5; min-height: 60px; padding: 8px 10px; resize: none; }
.pd .mk-go { padding: 14px 24px; }
.pd .mk-eg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 13.5px; color: #a6abb5; }
.pd .mk-eg button { padding: 6px 13px; border: 1px solid var(--pd-line-2); background: rgba(14, 17, 22, .86); color: #d7dbe2; font: inherit; cursor: pointer; text-align: left; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); transition: background 160ms var(--mech), color 160ms var(--mech); }
.pd .mk-eg button:hover { background: rgba(24, 119, 242, .28); color: #fff; }
.pd .hero .cta-row { margin-top: 18px; }
.pd .hero .note { font-size: 13.5px; letter-spacing: 0; margin-top: 18px; }

.pd .pd-show { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-width: 0; }
.pd .pd-shot { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--pd-line-2); background: #0d1016; box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .9); color: #fff; transition: border-color 200ms var(--mech), transform 200ms var(--mech); }
.pd .pd-shot:hover { border-color: rgba(124, 188, 255, .7); transform: translateY(-2px); }
.pd .pd-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.pd .pd-shot-main { grid-column: 1 / -1; border-radius: 16px; }
.pd .pd-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #171a1f; border-bottom: 1px solid var(--pd-line); }
.pd .pd-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3d44; }
.pd .pd-bar b { margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: #0d0f12; color: #80868f; font-size: 11.5px; font-weight: 500; }
.pd .pd-play { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; background: #1877f2; color: #fff; font-size: 12.6px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); }
html[lang^="zh"] .pd .pd-play, html[lang="ja"] .pd .pd-play { letter-spacing: .08em; text-transform: none; font-size: 13px; }
.pd .pd-play::before { content: ""; width: 0; height: 0; border-left: 9px solid #fff; border-block: 6px solid transparent; }
.pd .pd-show-note { grid-column: 1 / -1; margin: 4px 0 0; color: #c8ccd3; font-size: 13px; text-align: center; text-shadow: 0 1px 8px rgba(10, 11, 13, .9); }

@media (min-width: 1060px) {
  .pd .hero { --copy-w: min(560px, 100%); }
  .pd .hero .wrap { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 60px; }
}

/* ---- sections -------------------------------------------------------------------------------------------- */
.pd section { padding: 96px 0; }
.pd section.alt { background: #0d0f12; border-block: 1px solid var(--pd-line); }
.pd .head { margin-bottom: 44px; }
.pd .head h2, .pd .cta h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.2; font-weight: 800; margin: 0 0 12px; max-width: 26ch; }
html[lang^="zh"] .pd .head h2, html[lang="ja"] .pd .head h2, html[lang^="zh"] .pd .cta h2, html[lang="ja"] .pd .cta h2 { font-weight: 700; line-height: 1.36; max-width: 22em; }
.pd .head.mid h2 { margin-inline: auto; }
.pd .head p { color: var(--pd-muted); font-size: 17px; }
.pd .kicker { margin-bottom: 12px; }

/* three steps: it is a sequence, so the numbers stay */
.pd .steps { gap: 20px; background: none; }
.pd .step { padding: 28px 26px 30px; border-radius: var(--pd-r); border: 1px solid var(--pd-line); background: var(--pd-surface); }
.pd .step + .step::before { display: none; }
.pd .step-n { width: 36px; height: 36px; margin-bottom: 18px; clip-path: none; border-radius: 50%; background: var(--pd-tint); color: var(--pd-accent-2); font-family: var(--pd-font); font-size: 15px; font-weight: 700; }
.pd .step h3, .pd .tile h3, .pd .qa h3 { font-size: 18px; line-height: 1.4; font-weight: 700; margin: 0 0 8px; }
.pd .step p, .pd .tile p, .pd .qa p { color: var(--pd-muted); font-size: 15.5px; line-height: 1.68; }

/* the live demo, framed as the product window it is */
.pd .demo { gap: 0; background: var(--pd-surface); border: 1px solid var(--pd-line-2); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 90px -50px rgba(24, 119, 242, .65); }
.pd .demo::before { content: ""; grid-column: 1 / -1; height: 36px; border-bottom: 1px solid var(--pd-line); background:
  radial-gradient(circle at 20px 50%, #3a3d44 4.5px, transparent 5px), radial-gradient(circle at 36px 50%, #3a3d44 4.5px, transparent 5px),
  radial-gradient(circle at 52px 50%, #3a3d44 4.5px, transparent 5px), #171a1f; }
.pd .demo-stage { display: flex; align-items: center; background: #0d1016; }
.pd .demo-stage canvas { flex: 1; min-width: 0; }
.pd .demo-badge { top: auto; bottom: 14px; left: 14px; clip-path: none; border-radius: 999px; padding: 5px 12px; font-size: 12px; letter-spacing: 0; text-transform: none; }
.pd .demo-badge::before { border-radius: 50%; }
.pd .demo-panel { padding: 20px; background: #14171c; border-left: 1px solid var(--pd-line); }
.pd .dp-h { font-family: var(--pd-font); font-size: 13px; letter-spacing: 0; text-transform: none; color: #fff; }
.pd .fld-l { font-size: 13.5px; letter-spacing: 0; }
.pd .fld-l output { font-size: 12.5px; }
.pd input[type="range"] { height: 4px; border-radius: 4px; }
.pd input[type="range"]::-webkit-slider-thumb { width: 16px; height: 16px; clip-path: none; border-radius: 50%; border: 2px solid #fff; }
.pd input[type="range"]::-moz-range-thumb { width: 13px; height: 13px; clip-path: none; border-radius: 50%; border: 2px solid #fff; }
.pd .sw button { clip-path: none; border-radius: 50%; width: 26px; height: 26px; }
.pd .demo-foot { font-size: 13px; color: var(--pd-muted); }

/* why it matters */
.pd .split .say { font-family: var(--pd-font); font-size: clamp(24px, 3vw, 34px); line-height: 1.26; font-weight: 800; letter-spacing: -.02em; max-width: 18ch; }
html[lang^="zh"] .pd .split .say, html[lang="ja"] .pd .split .say { font-weight: 700; line-height: 1.45; letter-spacing: .01em; max-width: 14em; }
.pd .split p { font-size: 17px; line-height: 1.7; }

/* games made on Gamentic */
.pd .gal { gap: 20px; background: none; }
.pd .gcard { border-radius: var(--pd-r); border: 1px solid var(--pd-line); background: var(--pd-surface); transition: border-color 200ms var(--mech); }
.pd .gcard:hover { background: var(--pd-surface); border-color: var(--pd-line-2); }
.pd .gcard:hover img { opacity: 1; }
.pd .gc-b { padding: 14px 16px 16px; }
.pd .gc-t { font-size: 15px; }
.pd .gc-m { font-size: 12.5px; color: var(--pd-muted); }

/* what the AI can make / two ways to start */
.pd .tiles { gap: 20px; background: none; }
.pd .tile { padding: 26px 26px 28px; border-radius: var(--pd-r); border: 1px solid var(--pd-line); background: var(--pd-surface); }
.pd .tile:hover { background: var(--pd-surface); border-color: var(--pd-line-2); border-left-color: var(--pd-line-2); }
.pd .tile .ic { width: 22px; height: 22px; padding: 10px; box-sizing: content-box; margin-bottom: 18px; border-radius: 12px; background: var(--pd-tint); color: var(--pd-accent-2); }
.pd pre { border-radius: 10px; padding: 14px 16px; font-size: 13.5px; }

/* what you can count on */
.pd .proof { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pd .pf { align-items: flex-start; gap: 12px; padding: 18px 20px; border-radius: 12px; border: 1px solid var(--pd-line); background: var(--pd-surface); font-size: 15.5px; line-height: 1.6; color: var(--pd-muted); }
.pd .pf::before { width: 20px; height: 20px; margin-top: 2px; clip-path: none; border-radius: 50%; background: var(--pd-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%237cbcff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 10.4 3 3 6-6.6'/%3E%3C/svg%3E") center / 20px no-repeat; }

/* questions */
.pd .faq { gap: 16px; background: none; }
.pd .faq .qa { padding: 26px 28px; border-radius: var(--pd-r); border: 1px solid var(--pd-line); background: var(--pd-surface); }
.pd .qa a, .pd .tile a:not(.btn), .pd .split a { color: var(--pd-accent-2); text-decoration: underline; text-decoration-color: rgba(124, 188, 255, .4); text-underline-offset: 3px; }

/* the last ask: the lattice the site is drawn on, lit from one corner */
.pd .cta { padding: 72px 32px; border-radius: 20px; border: 1px solid rgba(63, 150, 240, .3); background:
  linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 32px 32px,
  linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 32px 32px,
  radial-gradient(80% 120% at 50% 0%, rgba(24, 119, 242, .26), transparent 62%), var(--pd-surface); }
.pd .cta::before { display: none; }
.pd .cta h2 { margin: 0 auto 26px; }
.pd .cta .note { font-size: 13.5px; letter-spacing: 0; color: var(--pd-muted); }

/* the card after "start making" keeps the site's own look (cut corners, the same buttons) */

.pd main a:focus-visible, .pd main button:focus-visible, .pd main textarea:focus-visible { outline: 2px solid var(--pd-accent-2); outline-offset: 2px; }
.pd .mk textarea:focus-visible { outline: 0; }

@media (max-width: 1000px) {
  .pd .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pd .demo-panel { border-left: 0; border-top: 1px solid var(--pd-line); }
}
@media (max-width: 720px) {
  .pd section { padding: 64px 0; }
  .pd .hero { padding: 48px 0 56px; }
  .pd .hero .wrap { gap: 34px; }
  .pd .mk-box { flex-direction: column; align-items: stretch; }
  .pd .mk-go { width: 100%; }
  .pd .hero .cta-row .btn { width: 100%; }
  .pd .head { margin-bottom: 30px; }
  .pd .steps, .pd .tiles, .pd .gal, .pd .faq { gap: 14px; }
  .pd .proof { grid-template-columns: minmax(0, 1fr); }
  .pd .faq .qa, .pd .tile, .pd .step { padding: 22px 20px; }
  .pd .cta { padding: 48px 20px; }
  .pd .cta .cta-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pd .pd-shot:hover { transform: none; }
}

/* from the blog: shown by blog-latest.js only when there are published posts */
.pd .pd-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pd .pd-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pd .pd-post { display: flex; flex-direction: column; min-width: 0; border-radius: var(--pd-r); border: 1px solid var(--pd-line); background: var(--pd-surface); overflow: hidden; color: inherit; transition: border-color 200ms var(--mech); }
.pd .pd-post:hover { border-color: var(--pd-line-2); }
.pd .pd-post:hover .pd-post-t { color: var(--pd-accent-2); }
.pd .pd-post-img { display: block; aspect-ratio: 1200 / 630; background: var(--pd-surface-2); border-bottom: 1px solid var(--pd-line); overflow: hidden; }
.pd .pd-post-img img { width: 100%; height: 100%; object-fit: cover; }
.pd .pd-post-b { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.pd .pd-post-k { color: var(--pd-muted); font-size: 13px; }
.pd .pd-post-t { color: #fff; font-size: 18px; line-height: 1.4; font-weight: 700; transition: color 200ms var(--mech); }
.pd .pd-post-d { color: var(--pd-muted); font-size: 14.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1000px) { .pd .pd-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .pd .pd-posts { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
