:root {
  --bg:           #111827;
  --surface:      #1F2937;
  --surface-alt:  #2A3344;
  --border:       #374151;
  --text:         #E5E7EB;
  --muted:        #9CA3AF;
  --violet:       #4F86C6;
  --cyan:         #5FA8A6;
  --amber:        #D9A441;
  --rose:         #7C8290;

  --code-kw:      #4F86C6;
  --code-str:     #5FA8A6;
  --code-num:     #D9A441;
  --code-comment: #6B7280;
  --code-fn:      #82B6E0;
  --code-type:    #8FCFC2;

  --grad: linear-gradient(120deg, var(--violet), var(--cyan));
  --grad-warm: linear-gradient(120deg, var(--cyan), var(--amber));

  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,0.6),
               0 10px 30px -10px rgba(79,134,198,0.18);
  --shadow-md: 0 8px 20px -6px rgba(0,0,0,0.5);

  --radius:    12px;
  --radius-sm: 8px;

  --container:   72rem;
  --container-wide: 78rem;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji",
               "Segoe UI Emoji", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas,
               "Liberation Mono", monospace;
  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
}

[data-theme="light"] {
  --bg:           #fbfaf7;
  --surface:      #f3f1ea;
  --surface-alt:  #e9e6dd;
  --border:       #d6d1c4;
  --text:         #1a1d2b;
  --muted:        #4f5570;
  --violet:       #2a2e3e;
  --cyan:         #44495c;
  --amber:        #5e637a;
  --rose:         #6c7188;

  --code-kw:      #2a2e3e;
  --code-str:     #4a4f60;
  --code-num:     #5e637a;
  --code-comment: #888d9c;
  --code-fn:      #44495c;
  --code-type:    #383d50;

  --shadow-lg: 0 30px 60px -20px rgba(26,29,43,0.25),
               0 10px 30px -10px rgba(109,40,217,0.10);
  --shadow-md: 0 6px 16px -6px rgba(26,29,43,0.20);
}


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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image: linear-gradient(to bottom,
              #C8C8C8 0%,
              #6A6B6E 14%,
              #111827 55%);
  background-repeat: no-repeat;
  background-position: top;
  background-size: 100% 120px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--violet);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--cyan); text-decoration: underline; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.4em; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; margin-top: 1.6em; }

p { margin: 0 0 1em; }

code, pre {
  font-family: var(--font-mono);
  font-feature-settings: "calt" 0;
}

code {
  font-size: 0.92em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--surface);
  color: var(--code-kw);
  border: 1px solid var(--border);
}

pre code { background: none; border: none; padding: 0; color: var(--text); font-size: 0.88rem; }

hr {
  border: none;
  height: 8px;
  margin: 2.5rem 0;
  background: var(--grad);
  opacity: 0.55;
  mask-image: linear-gradient(to right, transparent, black 50%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 50%, transparent);
  filter: blur(2px);
}
@media (min-width: 768px) {
  hr { margin: 4rem 0; }
}

::selection { background: rgba(79,134,198,0.45); color: var(--text); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .container { padding: 0 1.25rem; }
}
@media (min-width: 1024px) {
  .container { padding: 0 1.5rem; }
}
.container-wide { max-width: var(--container-wide); }


.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 60px;
  position: relative;
}
@media (min-width: 800px) {
  .topbar-inner { gap: 1.25rem; }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  min-width: 0;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .brand { gap: 0.6rem; font-size: 1.05rem; }
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand-mascot {
  display: inline-block;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--grad);
  -webkit-mask-image: url(../img/marten_profile_nobg.svg);
  mask-image: url(../img/marten_profile_nobg.svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 150% auto;
  mask-size: 150% auto;
  -webkit-mask-position: 71% 50%;
  mask-position: 71% 50%;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--violet) 35%, transparent));
}
.brand-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--muted);
  border: 1px solid var(--border);
  white-space: nowrap;
}
@media (max-width: 479px) {
  .brand-tag { display: none; }
}
.nav-links {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  padding: 0.5rem 0.85rem;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
}
.nav-links a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.nav-links a.is-active { color: var(--text); background: var(--surface); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.menu-toggle:hover { background: var(--surface-alt); }
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (min-width: 800px) {
  .menu-toggle { display: none; }
}

@media (max-width: 799px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
    margin: 0;
    padding: 0.6rem 0.75rem 0.85rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 0.7rem 0.85rem;
    font-size: 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}


.hero {
  position: relative;
  padding: 2.5rem 0 2rem;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero { padding: 4rem 0 3rem; }
}
.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(60rem, 130vw);
  height: 30rem;
  background: radial-gradient(closest-side, rgba(79,134,198,0.30), transparent 70%),
              radial-gradient(closest-side, rgba(95,168,166,0.22), transparent 70%);
  background-position: 30% 50%, 70% 50%;
  background-repeat: no-repeat;
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
[data-theme="light"] .hero::before { opacity: 0.55; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
  z-index: 1;
}
@media (min-width: 768px) {
  .hero-grid { gap: 2.5rem; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.hero h1 { margin: 1rem 0 0.7rem; }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gradient-text-warm {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-familiarity {
  font-size: 0.92rem;
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0.2rem 0 0.9rem;
}
@media (min-width: 640px) {
  .hero-familiarity { font-size: 1rem; }
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 1.25rem;
}
@media (min-width: 640px) {
  .hero-sub { font-size: 1.1rem; margin: 0 0 1.5rem; }
}

.cta-row {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  min-height: 44px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s, background .15s, color .15s, border-color .15s;
}
@media (min-width: 640px) {
  .btn { padding: 0.75rem 1.2rem; font-size: 0.95rem; }
}
@media (max-width: 419px) {
  .cta-row .btn { flex: 1 1 100%; }
}
.btn-primary {
  background: var(--amber);
  color: var(--bg);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--bg);
  background: color-mix(in srgb, var(--amber) 90%, white);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--surface-alt); text-decoration: none; color: var(--text); }
.btn svg { width: 16px; height: 16px; }

.hero-meta {
  display: flex; gap: 0.6rem 1rem; align-items: center;
  font-size: 0.82rem; color: var(--muted);
  margin-top: 1rem; flex-wrap: wrap;
}
.hero-meta strong { color: var(--text); font-weight: 700; }
.hero-meta .pipe { opacity: 0.5; }
@media (max-width: 479px) {
  .hero-meta .pipe { display: none; }
}


.code-window {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-width: 0;
}
.code-header {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  min-width: 0;
}
@media (min-width: 640px) {
  .code-header { gap: 0.75rem; padding: 0.65rem 0.9rem; }
}
.code-dots { display: flex; gap: 0.4rem; }
.code-dot { width: 11px; height: 11px; border-radius: 999px; background: var(--border); }
.code-dot:nth-child(1) { background: #fb7185; }
.code-dot:nth-child(2) { background: #fbbf24; }
.code-dot:nth-child(3) { background: #86efac; }

.code-tabs {
  display: flex; gap: 0.15rem; margin-left: 0.25rem; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  min-width: 0;
  flex: 1;
}
@media (min-width: 640px) {
  .code-tabs { margin-left: 0.5rem; }
}
.code-tab {
  font: inherit;
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  min-height: 32px;
}
@media (min-width: 640px) {
  .code-tab { padding: 0.3rem 0.7rem; font-size: 0.78rem; }
}
.code-tab:hover { color: var(--text); background: var(--surface); }
.code-tab.is-active { color: var(--text); background: var(--surface); }

.code-body pre {
  margin: 0;
  padding: 0.85rem 0.95rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  line-height: 1.55;
  font-size: 0.76rem;
}
@media (min-width: 640px) {
  .code-body pre { padding: 1.1rem 1.2rem; font-size: 0.85rem; }
}

.code-pane { display: none; }
.code-pane.is-active { display: block; }

.tok-kw     { color: var(--code-kw);     font-weight: 600; }
.tok-fn     { color: var(--code-fn); }
.tok-type   { color: var(--code-type); }
.tok-str    { color: var(--code-str); }
.tok-num    { color: var(--code-num); }
.tok-co     { color: var(--code-comment); font-style: italic; }
.tok-op     { color: var(--violet); }
.tok-ident  { color: var(--text); }
.tok-attr   { color: var(--rose); }


.section { padding: 2.5rem 0; }
@media (min-width: 768px) {
  .section { padding: 4rem 0; }
}
.section h2 { margin-top: 0; }
.section-lead {
  font-size: 1rem;
  color: var(--muted);
  max-width: 40rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .section-lead { font-size: 1.1rem; margin-bottom: 2rem; }
}

.section-identity {
  text-align: center;
}
.section-identity h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}
.identity-lead {
  font-size: 1rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 auto 1.5rem;
}
@media (min-width: 640px) {
  .identity-lead { font-size: 1.1rem; }
}
.identity-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem auto 2rem;
  max-width: 36rem;
}
.identity-tags span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}
.identity-cta {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.section-start { position: relative; overflow: hidden; padding-bottom: 1rem; }
.section-start h2 { margin-bottom: 1rem; }
.section-start .section-lead { margin-bottom: 2.5rem; max-width: 32rem; }
@media (min-width: 768px) {
  .section-start h2 { margin-bottom: 1.25rem; }
  .section-start .section-lead { margin-bottom: 3rem; }
}

.feature-time {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--cyan) 30%, var(--border));
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.start-mascot-wrap {
  position: relative;
  margin-top: 3rem;
  min-height: 180px;
  pointer-events: none;
}
.start-mascot {
  position: absolute;
  right: -2rem;
  bottom: -3rem;
  width: clamp(180px, 32vw, 360px);
  height: auto;
  display: block;
  z-index: 1;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.35));
}
.start-mascot-caption {
  position: relative;
  z-index: 2;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 22rem;
  margin: 0;
  padding-top: 1.5rem;
}
@media (min-width: 700px) {
  .start-mascot-wrap { min-height: 220px; }
  .start-mascot { right: -3rem; bottom: -4rem; }
  .start-mascot-caption { padding-top: 3rem; }
}
@media (min-width: 1024px) {
  .start-mascot-wrap { min-height: 260px; }
  .start-mascot { right: -4rem; bottom: -5rem; }
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px)  { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .feature-grid.four { grid-template-columns: repeat(4, 1fr); } }

.feature {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1.25rem;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
@media (min-width: 640px) {
  .feature { padding: 1.25rem 1.25rem 1.4rem; }
}
.feature:hover {
  border-color: color-mix(in srgb, var(--violet) 50%, var(--border));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
a.feature:hover, a.feature:hover * { text-decoration: none; }
.feature h3 {
  font-size: 1.05rem;
  margin: 0.5rem 0 0.35rem;
}
.feature p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(140deg,
              color-mix(in srgb, var(--violet) 30%, transparent),
              color-mix(in srgb, var(--cyan) 30%, transparent));
  color: var(--text);
}
.feature-icon svg { width: 20px; height: 20px; }


.shape-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px)  { .shape-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .shape-grid { grid-template-columns: repeat(4, 1fr); } }

.shape {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.shape-kw {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.shape-kw code {
  font-size: 0.95rem;
  padding: 0.15rem 0.45rem;
  color: var(--violet);
  background: color-mix(in srgb, var(--violet) 12%, transparent);
  border-color: color-mix(in srgb, var(--violet) 28%, var(--border));
}
.shape h3 { font-size: 1.05rem; margin: 0; }
.shape p  { color: var(--muted); font-size: 0.92rem; margin: 0; }


.proof-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.proof-row {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 0.9rem 1.25rem;
  padding: 0 0 2.25rem 0;
}
.proof-row:last-child { padding-bottom: 0; }

.proof-marker {
  position: relative;
  display: flex;
  justify-content: center;
}
.proof-marker .proof-num {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--cyan) 35%, var(--border));
  padding: 0.3rem 0.45rem;
  border-radius: 999px;
  line-height: 1;
  font-weight: 700;
}
.proof-row:not(:last-child) .proof-marker::after {
  content: "";
  position: absolute;
  top: 1.85rem;
  bottom: -2.25rem;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom,
              color-mix(in srgb, var(--cyan) 35%, var(--border)),
              var(--border));
  transform: translateX(-50%);
}

.proof-text { min-width: 0; }
.proof-text h3 {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}
.proof-text p {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0;
  max-width: 36rem;
}

.proof-code {
  grid-column: 2;
  margin-top: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.proof-code pre {
  margin: 0;
  padding: 0.95rem 1.1rem;
  background: var(--surface);
  font-size: 0.82rem;
  line-height: 1.55;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 900px) {
  .proof-row {
    grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 1.25rem 2rem;
    padding: 0 0 3rem 0;
    align-items: start;
  }
  .proof-code {
    grid-column: auto;
    margin-top: 0;
  }
  .proof-row--flip .proof-text { grid-column: 3; grid-row: 1; }
  .proof-row--flip .proof-code { grid-column: 2; grid-row: 1; }

  .proof-row:not(:last-child) .proof-marker::after {
    top: 2.2rem;
    bottom: -3rem;
  }
}

.pillars { display: grid; gap: 1rem; }
@media (min-width: 800px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.pillar-from {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.pillar h3 { font-size: 1rem; margin: 0 0 0.25rem; }
.pillar p  { font-size: 0.9rem; color: var(--muted); margin: 0; }
.pillar em { color: var(--muted); font-style: normal; font-size: 0.78rem; opacity: 0.8; }


.compare-wrap { overflow-x: auto; }
table.compare {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
table.compare th, table.compare td {
  padding: 0.55rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
@media (min-width: 640px) {
  table.compare th, table.compare td { padding: 0.65rem 0.9rem; }
}
table.compare th { background: var(--surface-alt); font-weight: 600; }
table.compare td:first-child { color: var(--muted); }
table.compare tr:last-child td { border-bottom: none; }
.ok { color: var(--cyan); font-weight: 700; }
.partial { color: var(--amber); font-weight: 700; }
.no { color: var(--rose); font-weight: 700; }
.yoru-col { background: color-mix(in srgb, var(--violet) 10%, transparent); }


.footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 2.5rem;
}
@media (min-width: 768px) {
  .footer { padding: 3rem 0 4rem; margin-top: 4rem; }
}
.footer-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin: 0 0 0.6rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.3rem; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1rem;
  justify-content: space-between;
  font-size: 0.8rem;
}
@media (min-width: 768px) {
  .footer-bottom { margin-top: 2.5rem; }
}
@media (max-width: 539px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}


.docs-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0 2.5rem;
}
@media (min-width: 768px) {
  .docs-shell { gap: 2rem; padding: 2rem 0 3rem; }
}
@media (min-width: 960px) {
  .docs-shell { grid-template-columns: 220px minmax(0, 1fr) 200px; gap: 2.75rem; padding: 2.25rem 0 4rem; }
}

.docs-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  width: 100%;
  min-height: 44px;
  transition: background .15s, border-color .15s;
}
.docs-menu-toggle:hover { background: var(--surface-alt); }
.docs-menu-toggle svg { width: 18px; height: 18px; transition: transform .15s; }
.docs-menu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (min-width: 960px) {
  .docs-menu-toggle { display: none; }
}

.toc-sidebar {
  display: none;
  font-size: 0.92rem;
  padding: 0.5rem 0.85rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.toc-sidebar.is-open { display: block; }
@media (min-width: 960px) {
  .toc-sidebar {
    display: block;
    position: sticky;
    top: 76px;
    align-self: start;
    font-size: 0.88rem;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    padding: 0 0.25rem 0 0;
    background: transparent;
    border: none;
    border-radius: 0;
  }
}
.toc-sidebar h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 1rem 0 0.4rem;
}
.toc-sidebar ul { list-style: none; padding: 0; margin: 0 0 0.5rem; display: grid; gap: 0.1rem; }
.toc-sidebar a {
  display: block;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 500;
}
.toc-sidebar a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.toc-sidebar a.is-active { color: var(--text); background: var(--surface-alt); border-left: 2px solid var(--violet); }

.toc-right { display: none; }
@media (min-width: 960px) {
  .toc-right {
    display: block;
    position: sticky;
    top: 76px;
    align-self: start;
    font-size: 0.82rem;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    padding-left: 0.5rem;
    border-left: 1px solid var(--border);
  }
}
.toc-right h4 {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin: 0 0 0.6rem;
}
.toc-right ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.25rem; }
.toc-right a { color: var(--muted); }
.toc-right a:hover { color: var(--text); }

.docs-content { min-width: 0; }
.docs-content h1:first-of-type { margin-top: 0; }
.docs-content h2 {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.docs-content h2:first-of-type { border-top: none; padding-top: 0; }

.docs-content .lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.docs-content pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.95rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 0.76rem;
  line-height: 1.55;
}
@media (min-width: 640px) {
  .docs-content pre { padding: 1rem 1.15rem; font-size: 0.85rem; }
}

.docs-content blockquote {
  margin: 1.25rem 0;
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border-left: 3px solid var(--violet);
  border-radius: 4px;
  color: var(--muted);
}
.docs-content blockquote p:last-child { margin-bottom: 0; }

.docs-content .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0 1.5rem;
}
.docs-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 1rem 0 1.5rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 768px) {
  .docs-content table { display: table; font-size: 0.9rem; }
}
.docs-content th, .docs-content td {
  text-align: left;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 640px) {
  .docs-content th, .docs-content td { padding: 0.55rem 0.7rem; }
}
.docs-content th { background: var(--surface); font-weight: 600; }

.callout {
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  background: var(--surface);
  margin: 1.5rem 0;
}
.callout-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.callout.is-warn  { border-left: 3px solid var(--amber); }
.callout.is-warn  .callout-title { color: var(--amber); }
.callout.is-info  { border-left: 3px solid var(--cyan); }
.callout.is-info  .callout-title { color: var(--cyan); }
.callout.is-note  { border-left: 3px solid var(--violet); }
.callout.is-note  .callout-title { color: var(--violet); }


.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
