:root {
  --bg: #ffffff; --bg-2: #f6f6f9; --text: #1b1a24; --muted: #646273; --border: #e4e3ea;
  --brand: #3C3489; --brand-text: #fff; --link: #3C3489;
  --chat: #ffffff; --chat-border: #dedde5; --code-bg: #f1f0f5; --react: #eceaf7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15141b; --bg-2: #1c1b24; --text: #ecebf2; --muted: #a09eb0; --border: #2e2d39;
    --brand: #8f86e8; --brand-text: #14131b; --link: #a9a2f0;
    --chat: #1f1e28; --chat-border: #34333f; --code-bg: #2a2934; --react: #2d2a45;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Segoe UI", system-ui, sans-serif; }
a { color: var(--link); }
h1, h2, h3, p { margin: 0; }
code { font: .88em ui-monospace, Menlo, monospace; background: var(--code-bg); border-radius: 4px; padding: 1px 5px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
[hidden] { display: none !important; }
header .wrap { display: flex; align-items: center; gap: 10px; height: 64px; }
.mark { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; color: var(--text); }
.mark img { width: 28px; height: 28px; border-radius: 7px; }
header .spacer { flex: 1; }
.lang { font-size: 14px; color: var(--muted); }
.lang a { color: var(--muted); text-decoration: none; }
.lang a.on { color: var(--text); font-weight: 600; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; row-gap: 36px; align-items: start; padding-top: 40px; padding-bottom: 72px; }
.hero h1 { grid-column: 1 / -1; font-size: 40px; line-height: 1.3; letter-spacing: -.015em; display: grid; gap: 4px; }
html[lang=ja] .hero h1 { font-size: 34px; letter-spacing: 0; }
.hero h1 em { font-style: normal; color: var(--brand); white-space: nowrap; }
html[lang=ja] h1, html[lang=ja] h2, html[lang=ja] strong { word-break: auto-phrase; }
.lead { font-weight: 600; }
.ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 1px solid var(--border); color: var(--text); }
.note { margin-top: 14px; font-size: 13px; color: var(--muted); max-width: 36em; }
.meta { margin-top: 18px; font-size: 14px; color: var(--muted); }
/* Slack-like thread (a simple drawing, not a copy of Slack's UI) */
.thread { background: var(--chat); border: 1px solid var(--chat-border); border-radius: 12px; padding: 20px; box-shadow: 0 12px 40px rgba(30,20,80,.08); font-size: 15px; }
.msg { display: grid; grid-template-columns: 36px 1fr; gap: 10px; }
.msg + .msg { margin-top: 16px; }
.av { width: 36px; height: 36px; border-radius: 8px; }
.av.person { background: linear-gradient(135deg, #f0b38a, #d97a7a); }
.who { font-weight: 700; font-size: 14px; }
.who span { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 6px; }
.reaction { display: inline-block; margin-top: 4px; font-size: 12px; background: var(--react); border-radius: 10px; padding: 0 8px; }
.threads { display: grid; gap: 16px; }
.channel { font-weight: 700; font-size: 13px; color: var(--muted); margin: -4px 0 12px; }
.av.hana { background: linear-gradient(135deg, #9ad3a8, #5aa7c7); }
.replies { margin: 16px 0 0 46px; padding-left: 14px; border-left: 2px solid var(--chat-border); }
section.band { background: var(--bg-2); }
section .wrap.pad { padding-top: 72px; padding-bottom: 72px; }
h2 { font-size: 28px; letter-spacing: -.01em; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps > li { counter-increment: s; border-top: 2px solid var(--brand); padding-top: 14px; }
.steps > li::before { content: counter(s); font-weight: 700; color: var(--brand); display: block; margin-bottom: 4px; }
.steps > li > strong { display: block; }
.steps > li > span { color: var(--muted); font-size: 15px; }
h3.behave-h { margin: 36px 0 0; font-size: 17px; }
.behave { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); font-size: 15px; }
.final { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 12px; }
.open-intro { margin-top: 14px; max-width: 40em; color: var(--muted); }
.open-steps { margin: 18px 0 0; padding-left: 22px; display: grid; gap: 8px; max-width: 40em; }
.open-safe { margin-top: 18px; max-width: 40em; font-size: 14px; color: var(--muted); }
.install { display: flex; align-items: center; gap: 4px; max-width: 100%; background: var(--code-bg); border: 1px solid var(--border); border-radius: 8px; padding: 4px 4px 4px 14px; }
.install code { background: none; padding: 0; font-size: 14px; overflow-x: auto; white-space: nowrap; min-width: 0; flex: 1; }
.install code { scrollbar-width: none; }
.install code::-webkit-scrollbar { display: none; }
.install .copy { font: inherit; font-size: 13px; font-weight: 600; border: 0; border-radius: 6px; padding: 7px 12px; background: var(--brand); color: var(--brand-text); cursor: pointer; flex: none; }
/* Why SockDock: three pillars */
.why-lead { max-width: 46em; }
.pillars { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pillars li { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; }
.pillars b { display: block; font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.pillars span { display: block; color: var(--muted); font-size: 15px; }
.after { margin-top: 16px; max-width: 46em; color: var(--muted); font-size: 15px; }
.pillars + .after { margin-top: 24px; }
/* The app's real screens, in a drawn window frame */
.sub { margin-top: 10px; color: var(--muted); }
.win { border: 1px solid var(--chat-border); border-radius: 10px; overflow: hidden; background: var(--chat); box-shadow: 0 12px 40px rgba(30,20,80,.10); }
.win .bar { position: relative; height: 28px; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-bottom: 1px solid var(--chat-border); font-size: 12px; font-weight: 600; color: var(--muted); }
.win .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.win .bar span { position: absolute; left: 0; right: 0; text-align: center; }
.win img { display: block; width: 100%; height: auto; }
footer { border-top: 1px solid var(--border); }
footer .wrap { padding-top: 28px; padding-bottom: 40px; font-size: 13px; color: var(--muted); display: grid; gap: 8px; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
footer nav a { color: var(--muted); }
@media (max-width: 820px) {
  .wrap { padding: 0 16px; }
.hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 24px; padding-bottom: 48px; }
.hero h1 { font-size: 28px; }
html[lang=ja] .hero h1 { font-size: 24px; }
.install { width: 100%; }
.steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.pillars { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.steps { gap: 20px; }
section .wrap.pad { padding-top: 48px; padding-bottom: 48px; }
}

/* Mock B */
.hero.b .wrap { align-items: start; }
.hero.b h1 { grid-column: auto; font-size: 44px; }
.b-lead { margin-top: 20px; color: var(--muted); font-size: 17px; font-weight: 400; max-width: 30em; }
.swap { margin: 28px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: start; gap: 10px; }
.swap .arrow { align-self: center; }
.code { margin: 0; padding: 12px 14px; background: var(--chat); border: 1px solid var(--chat-border); border-radius: 10px; font: 12.5px/1.6 ui-monospace, Menlo, monospace; white-space: pre; overflow-x: auto; }
.code .c { color: var(--muted); }
.spec { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.spec b { display: block; font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.spec p { color: var(--muted); font-size: 15px; }
.ask { margin-top: 12px; background: #1b1a24; color: #ecebf2; border: 1px solid var(--chat-border); border-radius: 10px; padding: 0 0 12px; font: 13px/1.6 ui-monospace, Menlo, monospace; overflow: hidden; }
.ask-bar { padding: 6px 12px; font-size: 11px; color: #a09eb0; border-bottom: 1px solid #2e2d39; margin-bottom: 10px; }
.ask p { margin: 0; padding: 2px 14px; color: #ecebf2; font-size: 13px; }
.ask-q::before { content: "❯ "; color: #8f86e8; }
.ask-a { color: #c9c7d6 !important; margin-top: 6px !important; }
.ask-a::before { content: "✓ "; color: #6fcf97; }
.spec .code { margin-top: 10px; background: var(--code-bg); border: 0; }
.swap .cap { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.swap .arrow { font-size: 24px; color: var(--brand); text-align: center; }
.pillars.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cases { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
.case { margin: 0; display: grid; gap: 14px; }
.case figcaption strong { display: block; font-size: 17px; margin-bottom: 4px; }
.case figcaption span { display: block; color: var(--muted); font-size: 15px; min-height: 4.8em; }
.swap .win { margin: 0; }
@media (max-width: 820px) {
  .hero.b h1 { font-size: 30px; }
.swap { grid-template-columns: minmax(0, 1fr); }
.spec { grid-template-columns: minmax(0, 1fr); }
.cases { grid-template-columns: minmax(0, 1fr); }
.case figcaption span { min-height: 0; }
.pillars.two { grid-template-columns: minmax(0, 1fr); }
.swap .arrow { transform: rotate(90deg); }
