:root {
  --ink: #1d2320; --muted: #5d6762; --line: #e2e4df; --bg: #f6f5f1; --card: #fff;
  --accent: #2f6b4f; --accent-ink: #fff; --warm: #b7793f;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.45; }
a { color: var(--accent); }
.concept { background: #1d2320; color: #e9ece8; font-size: 13px; text-align: center; padding: 7px 12px; }
.concept b { color: #fff; }
header.top { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line); background: var(--card); }
header.top .mark { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, var(--warm), #7b4a22); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; }
header.top .name { font-weight: 700; letter-spacing: .2px; }
header.top .name small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
header.top nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
header.top nav a { text-decoration: none; color: var(--ink); padding: 6px 11px; border-radius: 999px; font-size: 14px; }
header.top nav a.on, header.top nav a:hover { background: #ebeee9; }

/* demo page */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0; height: calc(100vh - 96px); min-height: 480px; }
.stage { position: relative; min-height: 0; background: radial-gradient(ellipse at 50% 30%, #fbfbf8, #e6e8e2); }
model-viewer { width: 100%; height: 100%; min-height: 0; --poster-color: transparent; }
.panel { background: var(--card); border-left: 1px solid var(--line); padding: 22px; overflow: auto; }
.panel h1 { font-size: 22px; margin: 0 0 4px; }
.panel .lead { color: var(--muted); margin: 0 0 18px; font-size: 14.5px; }
.opt { margin-bottom: 16px; }
.opt h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
.chip .sw { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: #eaf2ed; box-shadow: inset 0 0 0 1px var(--accent); }
.note { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; min-height: 2.6em; }
table.facts { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0 16px; }
table.facts td { padding: 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.facts td:first-child { color: var(--muted); width: 42%; padding-right: 8px; }
.arbtn { display: none; width: 100%; border: 0; border-radius: 12px; padding: 14px; font: inherit; font-weight: 600; font-size: 16px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.has-ar .arbtn { display: block; }
.arfloat { display: none; position: absolute; right: 14px; bottom: 14px; border: 0; border-radius: 999px; padding: 11px 18px; font: inherit; font-weight: 600; font-size: 15px; background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.25); cursor: pointer; }
.has-ar .arfloat { display: block; }
.qrcard { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fbfbf9; }
.qrcard canvas { width: 116px; height: 116px; image-rendering: pixelated; flex: none; border-radius: 4px; }
.qrcard p { margin: 0; font-size: 13.5px; color: var(--muted); }
.qrcard b { color: var(--ink); display: block; margin-bottom: 3px; font-size: 14.5px; }
.has-ar .qrcard { display: none; }
.small { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.toggle { position: absolute; left: 14px; top: 14px; display: flex; gap: 6px; }
.toggle button { border: 1px solid var(--line); background: rgba(255,255,255,.92); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.scale-tag { position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; color: var(--muted); }
.progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform .2s; }

/* hotspots */
.hotspot { display: block; border: 0; background: none; padding: 0; cursor: default; --dot: var(--accent); }
.hotspot .dot { display: block; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--dot); box-shadow: 0 1px 4px rgba(0,0,0,.35); transform: translate(-50%, -50%); position: absolute; }
.hotspot .lbl { position: absolute; left: 10px; top: -10px; white-space: nowrap; background: rgba(29,35,32,.88); color: #fff; font-size: 12.5px; padding: 3px 8px; border-radius: 6px; transform: translateY(-50%); pointer-events: none; }
.hotspot.left .lbl { left: auto; right: 10px; }
.hotspot:not([data-visible]) { opacity: .0; }
.nolabels .hotspot { display: none; }

/* index */
.hero { padding: 46px 22px 26px; max-width: 1080px; margin: 0 auto; }
.hero h1 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 10px; line-height: 1.1; }
.hero p { font-size: 17px; color: var(--muted); max-width: 720px; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; max-width: 1080px; margin: 0 auto; padding: 0 22px 30px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.08); }
.card model-viewer { height: 240px; min-height: 0; background: radial-gradient(ellipse at 50% 30%, #fbfbf8, #e6e8e2); pointer-events: none; }
.card .body { padding: 16px 18px 18px; }
.card h2 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0 0 10px; color: var(--muted); font-size: 14.5px; }
.card .go { font-weight: 600; color: var(--accent); font-size: 14.5px; }
.why { max-width: 1080px; margin: 0 auto; padding: 8px 22px 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.why div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.why h3 { margin: 0 0 6px; font-size: 15.5px; }
.why p { margin: 0; font-size: 14px; color: var(--muted); }
footer { text-align: center; font-size: 12.5px; color: var(--muted); padding: 20px; border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .demo { grid-template-columns: 1fr; height: auto; }
  .stage { height: 62vh; min-height: 380px; }
  model-viewer { min-height: 0; }
  .panel { border-left: 0; border-top: 1px solid var(--line); }
  header.top { padding: 10px 14px; }
  header.top nav { display: none; }
  .hotspot { cursor: pointer; }
  .hotspot .dot { width: 16px; height: 16px; }
  .hotspot .lbl { display: none; }
  .hotspot.open .lbl { display: block; z-index: 2; }
  .tap-hint { display: inline !important; }
}
.tap-hint { display: none; }
