/* base: reset, typography, layout primitives, buttons, utilities */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Apple SD Gothic Neo', 'PingFang SC', 'PingFang TC', 'Microsoft YaHei', 'Noto Sans', 'Noto Sans Thai', 'Noto Sans Devanagari', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 4vw, 46px); font-weight: 700; }
h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
code, .mono, kbd { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
ul { margin: 0; padding: 0; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary { list-style: none; cursor: pointer; }
::selection { background: var(--accent-tint); }
input, select, button, textarea { font: inherit; color: inherit; }

/* focus (carried from the design system) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}

.wrap { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(36px, 6vw, 60px); }
.section-tight { padding-block: 36px 12px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; font-family: 'IBM Plex Mono', monospace; }
.strong { font-weight: 600; }
.strike { text-decoration: line-through; color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); }
.kicker { font-family: 'IBM Plex Mono', monospace; font-size: 12px; text-transform: uppercase;
  letter-spacing: .09em; color: var(--accent); margin: 0 0 10px; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 200; background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1; padding: 11px 18px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-fg); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 11px; }
.btn.is-disabled { opacity: .55; pointer-events: none; }

/* logo tile (mono initials, reskinned per product via --accent-h) */
.logo-tile { display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; font-family: 'IBM Plex Mono', monospace;
  font-weight: 600; font-size: 16px;
  background: oklch(0.62 0.15 var(--accent-h) / .14); color: oklch(0.6 0.16 var(--accent-h)); }
:root[data-theme="dark"] .logo-tile,
.logo-lg { }
.logo-lg { width: 60px; height: 60px; border-radius: 15px; font-size: 22px; }
.logo-xs { width: 26px; height: 26px; border-radius: 8px; font-size: 11px; vertical-align: middle; }
