/* hsam product page — colours follow the app (Digital Agency Design System tokens) */
:root {
  --bg: #F7F7F8;
  --surface: #FFFFFF;
  --ink: #1A1A1A;
  --ink2: #4D4D4D;
  --muted: #6B6B6B;
  --line: #DADADA;
  --accent: #0017C1;
  --accent-soft: #EEF1FF;
  --c1: #E0532A;
  --c2: #1E9E6A;
  --code-bg: #15161A;
  --code-ink: #E6E8EB;
  --shadow: 0 24px 60px rgba(20, 30, 60, .14), 0 0 0 1px rgba(0, 0, 0, .06);
  --radius: 16px;
  --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121316;
    --surface: #1C1D21;
    --ink: #F2F2F2;
    --ink2: #C9CBCF;
    --muted: #9A9DA3;
    --line: #34363C;
    --accent: #8FA8FF;
    --accent-soft: #1E2440;
    --c1: #FF8A65;
    --c2: #5CD3A0;
    --code-bg: #0B0C0E;
    --shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121316; --surface: #1C1D21; --ink: #F2F2F2; --ink2: #C9CBCF; --muted: #9A9DA3; --line: #34363C;
  --accent: #8FA8FF; --accent-soft: #1E2440; --c1: #FF8A65; --c2: #5CD3A0; --code-bg: #0B0C0E;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.8 var(--font); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.35; margin: 0; letter-spacing: .01em; }
/* Japanese: break between phrases (文節), not in the middle of a word */
h1, h2, h3, .eyebrow, .insight .big, .cues b, .stats dt { word-break: auto-phrase; text-wrap: balance; }
h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; }
h3 { font-size: clamp(20px, 2.1vw, 26px); font-weight: 700; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .92em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }
section { padding: 96px 0; }
@media (max-width: 720px) { .wrap { padding: 0 16px; } section { padding: 64px 0; } body { font-size: 16px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #1A1A1A; outline-offset: 2px; box-shadow: 0 0 0 6px #FFD43D; border-radius: 4px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.mark { width: 26px; height: 26px; flex: none; }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { color: var(--ink2); text-decoration: none; }
.top nav a:hover { color: var(--accent); }
.top nav { align-items: center; }
.top nav a.nav-contact { color: #fff; background: var(--accent); padding: 6px 14px; border-radius: 8px; font-weight: 700; }
.top nav a.nav-contact:hover { color: #fff; filter: brightness(1.08); }
:root[data-theme="dark"] .top nav a.nav-contact, :root[data-theme="dark"] .top nav a.nav-contact:hover { color: #0B0C0E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .top nav a.nav-contact, :root:not([data-theme="light"]) .top nav a.nav-contact:hover { color: #0B0C0E; } }
@media (max-width: 640px) { .top nav { gap: 12px; font-size: 14px; } .top nav a:nth-child(2), .top nav a:nth-child(3), .top nav a:nth-child(5) { display: none; } .top nav a.nav-contact { padding: 5px 12px; } }

/* ---------- hero ---------- */
.hero { padding: 88px 0 72px; text-align: center; background:
  radial-gradient(60% 50% at 18% 12%, color-mix(in srgb, #F08A3E 14%, transparent), transparent 70%),
  radial-gradient(50% 45% at 85% 8%, color-mix(in srgb, #43BDE6 16%, transparent), transparent 70%),
  radial-gradient(55% 40% at 70% 60%, color-mix(in srgb, #8A4FB5 10%, transparent), transparent 70%); }
.eyebrow { color: var(--ink2); font-size: 15px; font-weight: 500; letter-spacing: .04em; }
.hero h1 { font-size: clamp(40px, 7vw, 84px); font-weight: 800; letter-spacing: -.01em; margin: 14px 0 22px; }
.lead { max-width: 760px; margin: 0 auto; font-size: clamp(16px, 1.6vw, 19px); color: var(--ink2); }
.lead strong { color: var(--ink); }
.cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 10px; border: 1.5px solid var(--ink); color: var(--ink); background: var(--surface); text-decoration: none; font-weight: 700; font-size: 16px; }
.btn svg { width: 20px; height: 20px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
:root[data-theme="dark"] .btn.primary { color: #0B0C0E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #0B0C0E; } }
.btn:hover { filter: brightness(1.06); }
.platforms { margin-top: 18px; color: var(--muted); font-size: 14px; letter-spacing: .08em; }


/* ---------- screenshots ---------- */
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.shot img { width: 100%; }
.hero .hero-shot { margin: 56px auto 0; max-width: 1080px; }
@media (max-width: 720px) { .hero .hero-shot { margin-top: 36px; } }
.shot.bare { box-shadow: none; background: transparent; border-radius: 0; overflow: visible; }
.shot.bare img { border-radius: 12px; }

/* ---------- problem ---------- */
.problem h2 { text-align: center; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.cards3 article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.cards3 h3 { font-size: 19px; margin-bottom: 10px; }
.cards3 p { color: var(--ink2); font-size: 16px; }
@media (max-width: 860px) { .cards3 { grid-template-columns: 1fr; } }
.insight { margin-top: 56px; text-align: center; }
.insight .big { font-size: clamp(24px, 3.2vw, 38px); font-weight: 800; line-height: 1.45; }
.insight em { font-style: normal; }
.insight .c1 { color: var(--c1); }
.insight .c2 { color: var(--c2); }
.cues { list-style: none; padding: 0; margin: 32px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 980px; text-align: left; }
.cues li { background: var(--accent-soft); border-radius: 12px; padding: 18px 20px; font-size: 15px; color: var(--ink2); }
.cues b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
@media (max-width: 860px) { .cues { grid-template-columns: 1fr; } }
.insight .note { max-width: 760px; margin: 28px auto 0; color: var(--muted); font-size: 14px; }

/* ---------- video ---------- */
.video { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.video h2 { text-align: center; margin-bottom: 36px; }
.player { max-width: 1080px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; }

/* ---------- features ---------- */
.features h2 { margin-bottom: 24px; }
.feat { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.feat:first-of-type { border-top: 0; }
.feat.rev { grid-template-columns: 7fr 5fr; }
.feat.rev .txt { order: 2; }
.feat.wide { grid-template-columns: 1fr; gap: 28px; }
.feat.wide .txt { max-width: 760px; }
.kicker { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .06em; margin-bottom: 8px; }
.feat h3 { margin-bottom: 14px; }
.feat .txt p:not(.kicker):not(.fine) { color: var(--ink2); }
.shot-pair { display: grid; gap: 16px; }
@media (max-width: 920px) {
  .feat, .feat.rev { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
  .feat.rev .txt { order: 0; }
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 10px; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stats dt { font-size: 13px; color: var(--muted); line-height: 1.5; }
.stats dd { margin: 4px 0 0; font-size: 26px; font-weight: 800; color: var(--accent); white-space: nowrap; }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }
.fine { font-size: 13px; color: var(--muted); line-height: 1.7; }
.code { margin: 18px 0 0; background: var(--code-bg); color: var(--code-ink); border-radius: 10px; padding: 14px 18px; overflow-x: auto; font-size: 15px; line-height: 1.75; }
.code code { font-size: inherit; white-space: pre; }
.code .c { color: #8E949C; }
.code.block { margin-top: 32px; }

/* ---------- how ---------- */
.how { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.glossary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0 0; }
.glossary div { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: var(--bg); }
.glossary dt { font-weight: 800; font-size: 19px; }
.glossary dd { margin: 4px 0 0; color: var(--ink2); font-size: 15px; }
@media (max-width: 860px) { .glossary { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .glossary { grid-template-columns: 1fr; } }
.sub { margin-top: 56px; }
.principles { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; }
.principles li { padding-left: 20px; position: relative; color: var(--ink2); font-size: 15px; }
.principles li::before { content: ""; position: absolute; left: 0; top: .72em; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); }
.principles b { display: block; color: var(--ink); font-size: 17px; }
@media (max-width: 720px) { .principles { grid-template-columns: 1fr; } }

/* ---------- start ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.platform-grid article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.platform-grid h3 { font-size: 20px; }
.platform-grid .os { color: var(--accent); font-weight: 700; font-size: 14px; margin: 4px 0 10px; }
.platform-grid p:last-child { color: var(--ink2); font-size: 15px; }
@media (max-width: 860px) { .platform-grid { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq h2 { margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; position: relative; padding-right: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 24px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--ink2); font-size: 16px; }

/* ---------- contact ---------- */
.contact { text-align: center; background: var(--accent-soft); border-top: 1px solid var(--line); }
.contact h2 { margin-bottom: 14px; }
.contact p { color: var(--ink2); }
.contact .btn { margin-top: 26px; }
.contact .fine { margin-top: 12px; }

/* ---------- footer ---------- */
.foot { padding: 48px 0 56px; border-top: 1px solid var(--line); }
.foot-in { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--ink2); font-size: 15px; }
.foot .copy { margin-left: auto; color: var(--muted); font-size: 13px; }
.notice { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; line-height: 1.85; }
.notice section { padding: 0; }
.foot { padding-bottom: 40px; }
.notice h2 { font-size: 15px; font-weight: 700; color: var(--ink2); margin-bottom: 8px; }
.notice p + p { margin-top: 8px; }
.notice ul { margin: 0; padding-left: 1.2em; }
.notice li + li { margin-top: 4px; }
@media (max-width: 860px) { .notice { grid-template-columns: 1fr; gap: 24px; } }
