/* kogaio.com: the console's own measured tokens (web/src/styles/tokens.css),
   so the site and the product read as one brand. Dark and light, following
   the system unless the visitor picks one (theme.js). */
:root {
  color-scheme: light;
  --bg: #f5f6f8; --surface: #ffffff; --surface-2: #f8f9fb;
  --border: #e1e5eb; --border-strong: #7c8698;
  --text-1: #10151c; --text-2: #465062; --text-3: #5e687a;
  --accent: #3e63dd; --accent-hover: #3354c2; --accent-text: #3451c4; --on-accent: #ffffff;
  --accent-bg: #eef2ff; --shadow: 0 1px 2px rgb(16 21 28 / 6%), 0 8px 24px rgb(16 21 28 / 6%);
  --radius: 14px; --radius-sm: 8px;
  --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0d1117; --surface: #141921; --surface-2: #1a2029;
  --border: #262e3a; --border-strong: #667185;
  --text-1: #e9edf3; --text-2: #aeb8c6; --text-3: #9aa5b5;
  --accent: #3e63dd; --accent-hover: #3558cc; --accent-text: #9db1ff; --on-accent: #ffffff;
  --accent-bg: #1b2547; --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 30%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #0d1117; --surface: #141921; --surface-2: #1a2029;
    --border: #262e3a; --border-strong: #667185;
    --text-1: #e9edf3; --text-2: #aeb8c6; --text-3: #9aa5b5;
    --accent: #3e63dd; --accent-hover: #3558cc; --accent-text: #9db1ff; --on-accent: #ffffff;
    --accent-bg: #1b2547; --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 30%);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text-1);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "tnum" 1;
}
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-sm); z-index: 10; }

/* Top bar */
header.top { border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 5; }
header.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand:hover .mark { background: var(--accent-hover); }
.brand:hover { color: var(--accent-text); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text-1); text-decoration: none; letter-spacing: -0.01em; }
.mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; flex: none; }
.mark svg { width: 20px; height: 20px; }
nav.links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
nav.links a { color: var(--text-2); text-decoration: none; padding: 8px 10px; border-radius: var(--radius-sm); font-size: 15px; }
nav.links a:hover { color: var(--text-1); background: var(--surface-2); }
.theme-btn {
  height: 36px; width: 36px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-2); display: inline-grid; place-items: center; cursor: pointer;
}
.theme-btn:hover { color: var(--text-1); background: var(--surface-2); }
.theme-btn svg { width: 18px; height: 18px; }
@media (max-width: 720px) { nav.links a.opt { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent;
}
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.secondary { background: var(--surface); color: var(--text-1); border-color: var(--border-strong); }
.btn.secondary:hover { background: var(--surface-2); }

/* Hero */
.hero { padding: 72px 0 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--accent-text); background: var(--accent-bg); padding: 4px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.03em; margin: 20px 0 16px; max-width: 14ch; }
.hero p.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--text-2); max-width: 60ch; margin: 0 0 32px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { margin-top: 16px; font-size: 14px; color: var(--text-3); }

/* Product picture */
.shot { margin: 8px 0 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.shot img { display: block; width: 100%; height: auto; }
.shot .placeholder { aspect-ratio: 16 / 9; display: grid; place-items: center; color: var(--text-3); font-size: 15px; background: var(--surface-2); }
.shot figcaption { font-size: 13px; color: var(--text-3); padding: 10px 16px; border-top: 1px solid var(--border); }

/* Sections */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--border); }
h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
.section-lead { color: var(--text-2); font-size: 18px; max-width: 62ch; margin: 0 0 36px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
@media (min-width: 761px) and (max-width: 1100px) { .grid.four { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 18px; margin: 14px 0 6px; letter-spacing: -0.01em; }
.card p { color: var(--text-2); margin: 0; font-size: 15px; }
.card ul { color: var(--text-2); margin: 10px 0 0; padding-left: 18px; font-size: 15px; }
.card li { margin: 2px 0; }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-bg); color: var(--accent-text); display: grid; place-items: center; }
.icon svg { width: 22px; height: 22px; }

/* Steps */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step .n { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; }
.step h3 { margin: 14px 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--text-2); font-size: 15px; }

/* Platforms strip */
.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 500; }
.pill svg { width: 16px; height: 16px; color: var(--text-3); }

/* Story */
.story { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: center; }
.story blockquote { margin: 0; padding: 24px 28px; background: var(--accent-bg); border-radius: var(--radius); color: var(--text-1); font-size: 18px; }
.story blockquote cite { display: block; margin-top: 10px; font-style: normal; font-size: 14px; color: var(--text-2); }

/* Call to action */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--text-2); margin: 0 auto 28px; max-width: 56ch; font-size: 18px; }

footer.bottom { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--text-3); font-size: 14px; }
footer.bottom .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
