/* Capable Notes — website styles. Plain CSS, no build step. */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f6fd;
  --surface: #ffffff;
  --surface-2: #f3f2fa;
  --ink: #14121f;
  --text-2: #464259;
  --text-3: #6b6782;
  --line: #e6e3f1;
  --line-strong: #d6d2e8;
  --brand: #5338e6;
  --brand-hover: #4329d4;
  --brand-ink: #3d24c7;
  --brand-soft: #efecff;
  --brand-softer: #f7f5ff;
  --on-brand: #ffffff;
  --green: #12805c;
  --green-soft: #e3f5ee;
  --amber: #a15c07;
  --amber-soft: #fdf1df;
  --red: #c4314b;
  --red-soft: #fde8ec;
  --shadow-sm: 0 1px 2px rgba(20, 18, 31, 0.06);
  --shadow-md: 0 8px 24px -8px rgba(36, 22, 110, 0.16), 0 2px 6px rgba(20, 18, 31, 0.05);
  --shadow-lg: 0 32px 64px -24px rgba(36, 22, 110, 0.28), 0 8px 20px -8px rgba(20, 18, 31, 0.1);
  --logo-light: block;
  --logo-dark: none;
  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --wrap: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0d16;
    --bg-soft: #13121e;
    --surface: #1a1828;
    --surface-2: #221f33;
    --ink: #f2f1fa;
    --text-2: #bdbad2;
    --text-3: #8f8ca9;
    --line: #2a2740;
    --line-strong: #39354f;
    --brand: #8b78ff;
    --brand-hover: #9d8dff;
    --brand-ink: #b3a6ff;
    --brand-soft: #241f47;
    --brand-softer: #1a1733;
    --on-brand: #12101f;
    --green: #4fd1a1;
    --green-soft: #133328;
    --amber: #f2b55c;
    --amber-soft: #382712;
    --red: #ff7d92;
    --red-soft: #3a1822;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 32px 64px -24px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(139, 120, 255, 0.08);
    --logo-light: none;
    --logo-dark: block;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0d16;
  --bg-soft: #13121e;
  --surface: #1a1828;
  --surface-2: #221f33;
  --ink: #f2f1fa;
  --text-2: #bdbad2;
  --text-3: #8f8ca9;
  --line: #2a2740;
  --line-strong: #39354f;
  --brand: #8b78ff;
  --brand-hover: #9d8dff;
  --brand-ink: #b3a6ff;
  --brand-soft: #241f47;
  --brand-softer: #1a1733;
  --on-brand: #12101f;
  --green: #4fd1a1;
  --green-soft: #133328;
  --amber: #f2b55c;
  --amber-soft: #382712;
  --red: #ff7d92;
  --red-soft: #3a1822;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 32px 64px -24px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(139, 120, 255, 0.08);
  --logo-light: none;
  --logo-dark: block;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand-ink);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.88em;
}
kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface);
  color: var(--text-2);
  line-height: 1.4;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 600px) {
  .wrap {
    padding: 0 16px;
  }
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--brand);
  color: var(--on-brand);
  padding: 8px 14px;
  border-radius: var(--r-md);
}
.skip:focus {
  left: 8px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: 600 15px/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--brand);
  color: var(--brand-ink);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn-primary {
  background: var(--brand);
  border-color: transparent;
  color: var(--on-brand);
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--brand) 70%, transparent);
}
.btn-primary:hover {
  background: var(--brand-hover);
  color: var(--on-brand);
  transform: translateY(-1px);
}
.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  flex: none;
}
.brand img {
  height: 34px;
  width: auto;
}
.brand .logo-light {
  display: var(--logo-light);
}
.brand .logo-dark {
  display: var(--logo-dark);
}
.nav-links {
  display: flex;
  gap: 4px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--ink);
  background: var(--surface-2);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav-links + .nav-actions {
  margin-left: 0;
}
.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
}
.icon-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}
.theme-toggle .moon {
  display: var(--logo-light);
}
.theme-toggle .sun {
  display: var(--logo-dark);
}

.mobile-menu {
  display: none;
  position: relative;
}
.mobile-menu summary {
  list-style: none;
}
.mobile-menu summary::-webkit-details-marker {
  display: none;
}
.mobile-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(280px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
}
.mobile-menu-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--r-md);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.mobile-menu-panel a:hover {
  background: var(--surface-2);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .mobile-menu {
    display: block;
  }
  .nav-actions {
    margin-left: auto !important;
  }
}
@media (max-width: 480px) {
  .nav-actions .btn {
    display: none;
  }
  .brand img {
    height: 30px;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 72px 0 40px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 720px;
  background:
    radial-gradient(40% 50% at 20% 30%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    radial-gradient(35% 45% at 85% 20%, color-mix(in srgb, #00b4d8 10%, transparent), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(60% 50% at 50% 20%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 50% at 50% 20%, #000 10%, transparent 75%);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}
.hero-copy {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.eyebrow .pill {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.hero h1 {
  margin-top: 22px;
  font-size: clamp(38px, 6.4vw, 72px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--brand) 10%, #8b5cf6 55%, #22a6e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  margin: 22px auto 0;
  max-width: 640px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-2);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.hero-ctas .btn {
  height: 50px;
  padding: 0 26px;
  font-size: 16px;
}
.hero-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-3);
}

/* ---------- App window mock ---------- */

.showcase {
  position: relative;
  margin: 56px auto 0;
  max-width: 1080px;
}
.window {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
  font-size: 13px;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text-3);
  font-size: 12px;
}
.window-bar .title {
  margin: 0 auto;
  font-weight: 500;
}
.window-bar .ctrls {
  display: flex;
  gap: 14px;
  color: var(--text-3);
}
.window-bar .ctrls span {
  width: 10px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  opacity: 0.6;
}
.window-bar .ctrls span:first-child {
  border: 0;
  border-bottom: 1.5px solid currentColor;
  border-radius: 0;
  height: 6px;
}
.window-body {
  display: grid;
  grid-template-columns: 236px 1fr;
  min-height: 500px;
}
.mock-side {
  border-right: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--text-2);
}
.mock-vault {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 10px;
  font-weight: 600;
  color: var(--ink);
}
.mock-vault .av {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--brand);
  color: var(--on-brand);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.mock-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-3);
}
.mock-search kbd {
  font-size: 10px;
  padding: 0 4px;
}
.mock-label {
  padding: 10px 8px 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.mock-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
}
.mock-item.indent {
  padding-left: 26px;
}
.mock-item.indent2 {
  padding-left: 44px;
}
.mock-item.active {
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-weight: 500;
}
.mock-item .ic {
  width: 14px;
  text-align: center;
  opacity: 0.75;
  flex: none;
}
.mock-tag {
  display: inline-block;
  margin: 2px 2px 0 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 11px;
}
.mock-sync {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-3);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
  flex: none;
}

.mock-main {
  position: relative;
  padding: 18px 40px 32px;
  color: var(--text-2);
}
.mock-crumbs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
}
.mock-crumbs .tools {
  display: flex;
  gap: 12px;
}
.mock-page {
  max-width: 600px;
  margin: 28px auto 0;
}
.mock-emoji {
  font-size: 34px;
  line-height: 1;
}
.mock-title {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.mock-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 18px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  background: var(--surface-2);
  color: var(--text-2);
}
.chip.violet {
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.chip.green {
  background: var(--green-soft);
  color: var(--green);
}
.mock-p {
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 12px;
}
.mock-p a {
  color: var(--brand-ink);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
}
.mock-h {
  margin: 18px 0 8px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.todo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 0;
  font-size: 14px;
}
.box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--line-strong);
  flex: none;
  display: grid;
  place-items: center;
}
.todo.done .box {
  background: var(--brand);
  border-color: var(--brand);
}
.todo.done .box::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--on-brand);
  border-bottom: 2px solid var(--on-brand);
  transform: rotate(-45deg) translate(1px, -1px);
}
.todo.done span {
  color: var(--text-3);
  text-decoration: line-through;
}
.mock-callout {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--brand-softer);
  border: 1px solid var(--brand-soft);
  font-size: 13.5px;
}
.mock-cursor {
  display: inline-block;
  width: 2px;
  height: 17px;
  background: var(--brand);
  vertical-align: -3px;
  margin-left: 1px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mock-cursor {
    animation: none;
  }
}
.slash-wrap {
  position: relative;
  padding-bottom: 196px;
}
.slash-menu {
  position: absolute;
  left: 0;
  top: calc(100% - 192px);
  width: 248px;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 6px;
  font-size: 13px;
}
.slash-menu .hd {
  padding: 4px 8px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.slash-menu .row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--ink);
}
.slash-menu .row.sel {
  background: var(--brand-soft);
}
.slash-menu .glyph {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  flex: none;
}
.slash-menu .row.sel .glyph {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}
.slash-menu small {
  display: block;
  color: var(--text-3);
  font-size: 11.5px;
  line-height: 1.3;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  font-size: 13px;
  color: var(--ink);
  z-index: 2;
}
.float-card .fi {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-ink);
  flex: none;
}
.float-card .fi svg {
  width: 18px;
  height: 18px;
}
.float-card small {
  display: block;
  color: var(--text-3);
  font-size: 12px;
}
.float-card strong {
  font-weight: 600;
}
.fc-ai {
  right: -28px;
  top: 96px;
}
.fc-sync {
  right: -28px;
  bottom: 120px;
}
.fc-sync .fi {
  background: var(--green-soft);
  color: var(--green);
}

@media (max-width: 1160px) {
  .fc-ai {
    right: 12px;
  }
  .fc-sync {
    right: 12px;
  }
}
@media (max-width: 900px) {
  .window-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .mock-side {
    display: none;
  }
  .mock-main {
    padding: 16px 20px 24px;
  }
  .slash-menu {
    display: none;
  }
  .slash-wrap {
    padding-bottom: 0;
  }
  .float-card {
    position: static;
    box-shadow: var(--shadow-sm);
  }
  .float-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
  }
}
@media (max-width: 600px) {
  .hero {
    padding-top: 44px;
  }
  .mock-crumbs .tools {
    display: none;
  }
  .mock-title {
    font-size: 24px;
  }
}

/* ---------- Proof strip ---------- */

.proof {
  padding: 32px 0 8px;
}
.proof ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
}
.proof li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.proof svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

/* ---------- Sections ---------- */

.section {
  padding: 104px 0;
}
.section.soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head.left {
  margin-left: 0;
  text-align: left;
}
.kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
.section h2 {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.section-head p {
  margin-top: 18px;
  font-size: 18px;
  color: var(--text-2);
}
@media (max-width: 600px) {
  .section {
    padding: 72px 0;
  }
  .section-head {
    margin-bottom: 40px;
  }
}

/* ---------- Feature bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  box-shadow: var(--shadow-md);
}
.card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.card p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 15.5px;
}
.card .icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.card .icon svg {
  width: 22px;
  height: 22px;
}
.span-2 {
  grid-column: span 2;
}
.span-3 {
  grid-column: span 3;
}
.span-4 {
  grid-column: span 4;
}
@media (max-width: 980px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .span-2,
  .span-3 {
    grid-column: span 1;
  }
  .span-4 {
    grid-column: span 2;
  }
}
@media (max-width: 640px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .span-4 {
    grid-column: span 1;
  }
  .card {
    padding: 22px;
  }
}

.card-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
@media (max-width: 760px) {
  .card-split {
    grid-template-columns: 1fr;
  }
}
.shortcut-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--text-2);
}
.shortcut-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
}
.shortcut-list kbd + kbd {
  margin-left: 4px;
}

.search-demo {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  overflow: hidden;
  font-size: 13.5px;
}
.search-demo .q {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
}
.search-demo .q .tok {
  color: var(--brand-ink);
}
.search-demo .r {
  padding: 8px 12px;
  color: var(--text-2);
  border-bottom: 1px solid var(--line);
}
.search-demo .r:last-child {
  border-bottom: 0;
}
.search-demo .r b {
  color: var(--ink);
  font-weight: 600;
}
.search-demo mark {
  background: color-mix(in srgb, var(--brand) 22%, transparent);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}

.history-demo {
  margin-top: 20px;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
}
.history-demo .v {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text-2);
}
.history-demo .v .who {
  margin-left: auto;
  font-size: 12px;
}
.history-demo .v.cur {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  background: var(--brand-softer);
}

.import-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

/* ---------- AI section ---------- */

.ai-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 920px) {
  .ai-grid {
    grid-template-columns: 1fr;
  }
}
.engine-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.engine {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
}
.engine.primary {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  background: var(--brand-softer);
}
.engine .badge {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--brand-ink);
}
.engine .badge svg {
  width: 20px;
  height: 20px;
}
.engine h4 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.engine p {
  margin-top: 4px;
  font-size: 14.5px;
  color: var(--text-2);
}

.ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.ai-actions .chip {
  padding: 6px 12px;
  font-size: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.perm {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 20px;
  padding: 5px;
  border-radius: 12px;
  background: var(--surface-2);
}
.perm span {
  padding: 8px 6px;
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
}
.perm span.on {
  background: var(--surface);
  color: var(--brand-ink);
  box-shadow: var(--shadow-sm);
}

.review {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  font-size: 13.5px;
}
.review-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.review-hd .who {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #d97757;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  flex: none;
}
.review-hd small {
  display: block;
  color: var(--text-3);
  font-size: 12px;
}
.diff {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  padding: 8px 0;
}
.diff div {
  padding: 0 14px;
  white-space: pre-wrap;
  color: var(--text-2);
}
.diff .add {
  background: var(--green-soft);
  color: var(--green);
}
.diff .del {
  background: var(--red-soft);
  color: var(--red);
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--red) 50%, transparent);
}
.review-ft {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}
.review-ft .btn {
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
}
.mcp-clients {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-3);
}

/* ---------- Storage section ---------- */

.storage {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 920px) {
  .storage {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
.checks {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.checks li {
  display: flex;
  gap: 14px;
  color: var(--text-2);
}
.checks li strong {
  color: var(--ink);
  font-weight: 600;
}
.checks .ck {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-ink);
  margin-top: 1px;
}
.checks .ck svg {
  width: 14px;
  height: 14px;
}

.hub {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(60% 50% at 50% 50%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-md);
}
.hub-center {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 16px 32px -14px color-mix(in srgb, var(--brand) 70%, transparent);
}
.hub-center .fi {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--on-brand) 18%, transparent);
  flex: none;
}
.hub-center .fi svg {
  width: 26px;
  height: 26px;
}
.hub-center strong {
  display: block;
  font-family: var(--font-head);
  font-size: 18px;
}
.hub-center span {
  font-size: 14px;
  opacity: 0.9;
}
.hub-link {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 500;
}
.hub-link::before,
.hub-link::after {
  content: "";
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}
.target {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.target .logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  flex: none;
}
.target .logo svg {
  width: 22px;
  height: 22px;
}
.target strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
}
.target small {
  color: var(--text-3);
  font-size: 12.5px;
}
.hub-extras {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hub-extras .chip {
  padding: 6px 12px;
  font-size: 12.5px;
}
@media (max-width: 480px) {
  .hub {
    grid-template-columns: 1fr;
    padding: 18px;
  }
}

/* ---------- Google Drive callout ---------- */

.gdrive {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
}
.gdrive .gd-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.gdrive .gd-icon svg {
  width: 34px;
  height: 34px;
}
.gdrive h3 {
  font-size: 24px;
  font-weight: 700;
}
.gdrive > div > p {
  margin-top: 10px;
  color: var(--text-2);
}
.gd-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.gd-points li {
  padding-left: 28px;
  position: relative;
  color: var(--text-2);
  font-size: 15px;
}
.gd-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green-soft);
  box-shadow: inset 0 0 0 5px var(--green-soft), inset 0 0 0 16px var(--green);
}
.gd-points li strong {
  color: var(--ink);
}
.gdrive .fine {
  margin-top: 22px;
  font-size: 14px;
  color: var(--text-3);
}
@media (max-width: 760px) {
  .gdrive {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .gd-points {
    grid-template-columns: 1fr;
  }
}

/* ---------- Ownership ---------- */

.own-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 920px) {
  .own-grid {
    grid-template-columns: 1fr;
  }
}
.file-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.file-card .fh {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-3);
}
.file-card pre {
  margin: 0;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
  overflow-x: auto;
}
.file-card .k {
  color: var(--brand-ink);
}
.file-card .m {
  color: var(--text-3);
}
.file-card .h {
  color: var(--ink);
  font-weight: 700;
}
.tree {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-2);
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  white-space: pre;
  overflow-x: auto;
}

/* ---------- Roadmap ---------- */

.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 980px) {
  .roadmap {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .roadmap {
    grid-template-columns: 1fr;
  }
}
.phase {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.phase .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-3);
}
.phase .status.now {
  background: var(--green-soft);
  color: var(--green);
}
.phase .status.next {
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.phase h3 {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 700;
}
.phase ul {
  margin: 12px 0 0;
  padding: 0 0 0 18px;
  color: var(--text-2);
  font-size: 14.5px;
}
.phase li + li {
  margin-top: 4px;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 0 22px;
  transition: border-color 0.2s;
}
.faq details[open] {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.2s;
  flex: none;
}
.faq details[open] summary::after {
  transform: rotate(225deg) translate(-3px, -3px);
}
.faq details p {
  padding: 0 0 20px;
  color: var(--text-2);
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  padding: 64px 40px;
  border-radius: 32px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(60% 80% at 15% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    radial-gradient(50% 80% at 100% 100%, rgba(34, 166, 224, 0.35), transparent 60%),
    linear-gradient(135deg, #4a2fe0, #6d3ff0 55%, #5338e6);
  overflow: hidden;
}
.cta h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
}
.cta p {
  margin: 16px auto 0;
  max-width: 560px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.88);
}
.cta .hero-ctas .btn {
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
}
.cta .hero-ctas .btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.cta .hero-ctas .btn-white {
  background: #fff;
  color: #3d24c7;
  border-color: #fff;
}
.cta .hero-ctas .btn-white:hover {
  background: #f1eeff;
  color: #3d24c7;
}
.cta small {
  display: block;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}
.cta small.smartscreen {
  margin: 8px auto 0;
  max-width: 520px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 600px) {
  .cta {
    padding: 44px 20px;
    border-radius: 24px;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 14.5px;
  color: var(--text-3);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 820px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-grid > :first-child {
    grid-column: 1 / -1;
  }
}
.foot-grid h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 14px;
}
.foot-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.foot-grid a {
  color: var(--text-2);
  text-decoration: none;
}
.foot-grid a:hover {
  color: var(--brand-ink);
  text-decoration: underline;
}
.foot-brand img {
  height: 32px;
  width: auto;
}
.foot-brand .logo-light {
  display: var(--logo-light);
}
.foot-brand .logo-dark {
  display: var(--logo-dark);
}
.foot-brand p {
  margin-top: 14px;
  max-width: 340px;
}
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}

/* ---------- Legal pages ---------- */

.legal {
  padding: 64px 0 96px;
}
.legal .wrap {
  max-width: 820px;
}
.legal h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
}
.legal .updated {
  margin-top: 12px;
  color: var(--text-3);
}
.legal .summary {
  margin: 32px 0 8px;
  padding: 22px 24px;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line));
  border-radius: var(--r-lg);
  background: var(--brand-softer);
}
.legal .summary h2 {
  margin: 0 0 10px;
  font-size: 18px;
}
.legal .summary ul {
  margin: 0;
  padding-left: 20px;
}
.legal h2 {
  margin: 44px 0 12px;
  font-size: 24px;
  font-weight: 700;
}
.legal h3 {
  margin: 28px 0 8px;
  font-size: 18px;
  font-weight: 700;
}
.legal p,
.legal li {
  color: var(--text-2);
}
.legal p + p {
  margin-top: 12px;
}
.legal ul {
  padding-left: 22px;
}
.legal li + li {
  margin-top: 6px;
}
.legal strong {
  color: var(--ink);
}
.legal table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  font-size: 14.5px;
}
.legal th,
.legal td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--text-2);
}
.legal th {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 600;
}
.table-scroll {
  overflow-x: auto;
}
.legal .toc {
  margin-top: 28px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.legal .toc ol {
  margin: 8px 0 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
  font-size: 15px;
}
@media (max-width: 600px) {
  .legal .toc ol {
    columns: 1;
  }
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
