/* PJPC-SOFTWARE · /web · v2.0 · 2026-08-20 */
:root {
  color-scheme: light dark;
  --font-scale: 1;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eaf1f8;
  --text: #142033;
  --muted: #526174;
  --line: #c9d5e3;
  --brand: #0076a8;
  --brand-strong: #005d85;
  --accent: #f0a500;
  --focus: #ffb000;
  --shadow: 0 12px 32px rgba(14,36,61,.12);
  --radius: 18px;
  --max: 1180px;
}
html[data-theme="dark"] {
  --bg:#08111d; --surface:#111d2b; --surface-2:#172638; --text:#f3f7fb;
  --muted:#b7c5d6; --line:#34485e; --brand:#58c8ff; --brand-strong:#8edbff;
  --accent:#ffc44d; --focus:#ffd166; --shadow:0 14px 36px rgba(0,0,0,.34);
}
html[data-contrast="high"] {
  --bg:#000; --surface:#000; --surface-2:#111; --text:#fff; --muted:#fff;
  --line:#fff; --brand:#00e5ff; --brand-strong:#fff; --accent:#ff0; --focus:#ff0; --shadow:none;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:calc(100% * var(--font-scale)); }
body { margin:0; min-height:100vh; font-family:Arial,"Segoe UI",sans-serif; background:var(--bg); color:var(--text); line-height:1.62; }
a { color:var(--brand); text-underline-offset:.18em; }
a:hover { color:var(--brand-strong); }
img { max-width:100%; height:auto; }
button,select,input { font:inherit; }
button,.button { min-height:44px; }
:focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
[hidden] { display:none !important; }
.container { width:min(calc(100% - 2rem),var(--max)); margin-inline:auto; }
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.skip-link { position:fixed; left:1rem; top:-6rem; z-index:1000; padding:.75rem 1rem; background:var(--focus); color:#111; border-radius:0 0 .6rem .6rem; font-weight:800; }
.skip-link:focus { top:0; }
.site-header { position:sticky; top:0; z-index:80; background:var(--surface); border-bottom:1px solid var(--line); }
.header-inner { min-height:78px; display:flex; align-items:center; gap:1rem; }
.brand { display:inline-flex; align-items:center; text-decoration:none; flex:0 1 260px; min-width:170px; }
.brand img { width:236px; max-height:58px; object-fit:contain; background:#fff; border-radius:10px; padding:.18rem .45rem; }
.nav-toggle { display:none; margin-left:auto; border:1px solid var(--line); border-radius:12px; background:var(--surface); color:var(--text); padding:.55rem .8rem; font-weight:800; cursor:pointer; }
.primary-nav { margin-left:auto; }
.primary-nav ul { display:flex; align-items:center; gap:.25rem; list-style:none; padding:0; margin:0; }
.primary-nav a { display:block; padding:.65rem .75rem; border-radius:10px; text-decoration:none; color:var(--text); font-weight:700; }
.primary-nav a:hover,.primary-nav a[aria-current="page"] { background:var(--surface-2); color:var(--brand-strong); }
.access-toolbar { border-bottom:1px solid var(--line); background:var(--surface-2); }
.access-inner { min-height:48px; display:flex; gap:.35rem; align-items:center; justify-content:flex-end; flex-wrap:wrap; padding-block:.35rem; }
.tool-btn,.tool-select { border:1px solid var(--line); background:var(--surface); color:var(--text); border-radius:9px; padding:.4rem .6rem; cursor:pointer; min-height:38px; font-weight:700; }
.tool-btn:hover { border-color:var(--brand); }
.tool-btn[aria-pressed="true"] { background:var(--brand); color:#fff; border-color:var(--brand); }
.hero { padding:clamp(2.2rem,6vw,5rem) 0; background:linear-gradient(135deg,var(--surface) 0%,var(--surface-2) 100%); border-bottom:1px solid var(--line); }
.hero-grid { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(280px,.92fr); align-items:center; gap:clamp(2rem,5vw,4.5rem); }
.eyebrow { display:inline-flex; margin:0 0 .6rem; color:var(--brand-strong); font-weight:850; letter-spacing:.06em; text-transform:uppercase; font-size:.82rem; }
h1,h2,h3 { line-height:1.15; }
h1 { font-size:clamp(2.1rem,5vw,4rem); margin:0 0 1rem; letter-spacing:-.03em; }
h2 { font-size:clamp(1.5rem,3vw,2.3rem); margin-top:0; }
h3 { font-size:1.2rem; }
.lead { font-size:clamp(1.03rem,1.7vw,1.25rem); color:var(--muted); max-width:68ch; }
.hero-actions,.card-actions { display:flex; flex-wrap:wrap; gap:.7rem; margin-top:1.35rem; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:.45rem; padding:.72rem 1rem; border-radius:11px; border:1px solid var(--brand); background:var(--brand); color:#fff; text-decoration:none; font-weight:850; cursor:pointer; }
.button:hover { filter:brightness(.94); color:#fff; }
.button.secondary { background:transparent; color:var(--brand-strong); }
.button.secondary:hover { background:var(--surface-2); color:var(--brand-strong); }
.hero-mark { padding:1rem; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); box-shadow:var(--shadow); }
.hero-mark img { width:100%; border-radius:12px; display:block; }
.section { padding:clamp(2.5rem,6vw,5rem) 0; }
.section.alt { background:var(--surface-2); border-block:1px solid var(--line); }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:1rem; margin-bottom:1.6rem; }
.section-heading p { margin:0; color:var(--muted); max-width:58ch; }
.app-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.25rem; }
.app-card { display:flex; flex-direction:column; min-width:0; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:var(--surface); box-shadow:var(--shadow); }
.app-card img { width:100%; aspect-ratio:999/351; object-fit:cover; border-bottom:1px solid var(--line); }
.app-card-body { padding:1.25rem; display:flex; flex-direction:column; flex:1; }
.app-card h3 { margin:0 0 .55rem; font-size:1.45rem; }
.app-card p { color:var(--muted); }
.app-card .card-actions { margin-top:auto; }
.badge-row { display:flex; flex-wrap:wrap; gap:.4rem; margin:.85rem 0; }
.badge { display:inline-flex; border:1px solid var(--line); border-radius:99px; padding:.2rem .55rem; background:var(--surface-2); font-weight:750; font-size:.82rem; }
.feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; }
.feature { padding:1.2rem; border-radius:16px; background:var(--surface); border:1px solid var(--line); }
.feature strong { display:block; margin-bottom:.35rem; font-size:1.04rem; }
.muted { color:var(--muted); }
.breadcrumbs { padding:1rem 0 0; font-size:.93rem; color:var(--muted); }
.breadcrumbs ol { list-style:none; display:flex; flex-wrap:wrap; gap:.45rem; padding:0; margin:0; }
.breadcrumbs li:not(:last-child)::after { content:"/"; margin-left:.45rem; color:var(--muted); }
.app-hero { padding:1.5rem 0 2.7rem; }
.app-banner { overflow:hidden; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); box-shadow:var(--shadow); }
.app-banner img { width:100%; display:block; aspect-ratio:999/351; object-fit:cover; }
.app-summary { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:1.5rem; align-items:center; padding:1.35rem; }
.app-summary h1 { font-size:clamp(2rem,4vw,3.3rem); margin-bottom:.45rem; }
.app-summary p { margin:0; color:var(--muted); }
.download-panel { text-align:center; min-width:220px; }
.download-panel small { display:block; margin-top:.5rem; color:var(--muted); }
.tabs { margin-top:1.5rem; }
.tab-list { display:flex; gap:.45rem; flex-wrap:wrap; border-bottom:1px solid var(--line); }
.tab-button { border:1px solid var(--line); border-bottom:0; border-radius:10px 10px 0 0; padding:.75rem 1rem; background:var(--surface-2); color:var(--text); font-weight:850; cursor:pointer; }
.tab-button[aria-selected="true"] { background:var(--surface); color:var(--brand-strong); position:relative; top:1px; }
.tab-panel { border:1px solid var(--line); border-radius:0 0 14px 14px; padding:clamp(1.2rem,4vw,2rem); background:var(--surface); margin-bottom:1rem; }
.js .tabs-enhanced .tab-panel { margin-bottom:0; border-top:0; }
.spec-list { display:grid; grid-template-columns:minmax(130px,.35fr) minmax(0,1fr); gap:.65rem 1rem; }
.spec-list dt { font-weight:850; }
.spec-list dd { margin:0; color:var(--muted); }
.notice { border-left:5px solid var(--accent); padding:.9rem 1rem; background:var(--surface-2); border-radius:0 12px 12px 0; }
.legal { max-width:900px; }
.legal h2 { margin-top:2.2rem; }
.legal h3 { margin-top:1.6rem; }
.legal ul,.legal ol { padding-left:1.4rem; }
.status-card { padding:1rem; border:1px solid var(--line); border-radius:14px; background:var(--surface-2); }
kbd { border:1px solid var(--line); border-bottom-width:2px; border-radius:6px; padding:.1rem .38rem; background:var(--surface-2); font:700 .9em ui-monospace,SFMono-Regular,Menlo,monospace; }
.site-footer { margin-top:2rem; border-top:1px solid var(--line); background:var(--surface); }
.footer-grid { display:grid; grid-template-columns:1.1fr .9fr .9fr; gap:2rem; padding:2.2rem 0; }
.footer-grid h2 { font-size:1rem; margin-bottom:.7rem; }
.footer-grid ul { list-style:none; padding:0; margin:0; }
.footer-grid li { margin:.35rem 0; }
.footer-bottom { padding:1rem 0; border-top:1px solid var(--line); color:var(--muted); font-size:.92rem; display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.dialog-backdrop { position:fixed; inset:0; z-index:140; background:rgba(0,0,0,.62); display:grid; place-items:center; padding:1rem; }
.dialog { width:min(680px,100%); max-height:90vh; overflow:auto; background:var(--surface); color:var(--text); border:1px solid var(--line); border-radius:18px; box-shadow:0 24px 70px rgba(0,0,0,.32); padding:1.2rem; }
.dialog-header { display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; border-bottom:1px solid var(--line); padding-bottom:.8rem; margin-bottom:1rem; }
.dialog-header h2 { margin:0 0 .3rem; font-size:1.45rem; }
.dialog-header p { margin:0; }
.dialog-close { border:1px solid var(--line); background:var(--surface-2); color:var(--text); border-radius:9px; width:44px; height:44px; cursor:pointer; font-size:1.5rem; }
.dialog-actions { display:flex; gap:.6rem; flex-wrap:wrap; margin-top:1rem; }
.translate-grid { display:grid; grid-template-columns:1fr auto; gap:.7rem; align-items:end; }
.translate-grid label { grid-column:1 / -1; font-weight:800; }
.translate-grid select { min-height:44px; padding:.55rem .65rem; border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--text); }
.center { text-align:center; }
@media (max-width:900px) {
  .hero-grid,.app-summary { grid-template-columns:1fr; }
  .app-grid,.feature-grid,.footer-grid { grid-template-columns:1fr 1fr; }
  .download-panel { text-align:left; min-width:0; }
}
@media (max-width:720px) {
  .header-inner { flex-wrap:wrap; padding-block:.55rem; }
  .js .nav-toggle { display:inline-flex; }
  .js .primary-nav { display:none; width:100%; margin-left:0; }
  .js .primary-nav.is-open { display:block; }
  .primary-nav { width:100%; margin-left:0; }
  .primary-nav ul { flex-direction:column; align-items:stretch; }
  .app-grid,.feature-grid,.footer-grid { grid-template-columns:1fr; }
  .section-heading { align-items:flex-start; flex-direction:column; }
  .access-inner { justify-content:flex-start; }
  .label-wide { display:none; }
  .spec-list { grid-template-columns:1fr; }
  .spec-list dd { margin-bottom:.45rem; }
  .translate-grid { grid-template-columns:1fr; }
  .translate-grid label { grid-column:auto; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; }
}
@media print {
  .site-header,.access-toolbar,.site-footer,.skip-link,.dialog-backdrop { display:none!important; }
  body { background:#fff; color:#000; }
  a { color:#000; }
  .section { padding:1rem 0; }
}
