@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --bg: #060D1A;
  --bg-soft: #081426;
  --surface: #0D1A2E;
  --surface-2: #13233C;
  --ink: #F5F8FE;
  --muted: #A7B4C9;
  --line: #1E304A;
  --line-strong: #6E86A6;
  --accent: #58A6FF;
  --accent-hover: #82BCFF;
  --accent-ink: #051122;
  --accent-soft: #102543;
  --gold: #F0C130;
  --ok: #8EE3A8;
  --ok-soft: #0E2818;
  --warn: #F2C879;
  --warn-soft: #2A2112;
  --focus: #A8D0FF;
  --header-bg: rgba(6, 13, 26, 0.8);
  --inverse-bg: #030914;
  --inverse-ink: #F5F8FE;
  --inverse-muted: #AAB7C9;
  --inverse-line: #22344F;
  --inverse-btn-bg: #58A6FF;
  --inverse-btn-ink: #051122;
  --code-bg: #040A12;
  --code-ink: #F2F6FC;
  --code-line: #1E304A;
  --code-muted: #B7C4D6;
  --code-ok: #9FE0AB;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --glow: rgba(80, 166, 255, 0.22);
  --button-glow: 0 10px 30px rgba(68, 140, 239, 0.25);
  --gutter: clamp(16px, 4vw, 34px);
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
}
[data-theme='light'] {
  color-scheme: light;
  --bg: #EEF4FB;
  --bg-soft: #E2EBF6;
  --surface: #F8FBFF;
  --surface-2: #DDE8F5;
  --ink: #071426;
  --muted: #45556B;
  --line: #C8D5E5;
  --line-strong: #6E829C;
  --accent: #0B5BD3;
  --accent-hover: #0848A7;
  --accent-ink: #FFFFFF;
  --accent-soft: #D6E6FB;
  --gold: #8A5A00;
  --ok: #1F6B45;
  --ok-soft: #DCEFE4;
  --warn: #7A4A12;
  --warn-soft: #F4E5CF;
  --focus: #0848A7;
  --header-bg: rgba(238, 244, 251, 0.88);
  --inverse-bg: #D6E6FB;
  --inverse-ink: #071426;
  --inverse-muted: #334A66;
  --inverse-line: #5C82B4;
  --inverse-btn-bg: #0B5BD3;
  --inverse-btn-ink: #FFFFFF;
  --code-bg: #F8FBFF;
  --code-ink: #071426;
  --code-line: #C8D5E5;
  --code-muted: #45556B;
  --code-ok: #1F6B45;
  --shadow: 0 24px 60px rgba(13, 38, 70, 0.12);
  --glow: rgba(11, 91, 211, 0.13);
  --button-glow: 0 10px 30px rgba(11, 91, 211, 0.18);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
}

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

a[href],
button:not(:disabled),
summary,
[role='button'] {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.closing :focus-visible {
  outline-color: var(--inverse-ink);
}

.code-card :focus-visible {
  outline-color: var(--code-ink);
}

.container {
  width: min(1220px, calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.copy-area {
  position: fixed;
  top: -1000px;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: var(--gutter);
  z-index: 100;
  transform: translateY(-120%);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
}

.skip-link:focus {
  transform: translateY(0);
}

html:not(.js) #theme-toggle {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.wordmark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.wordmark-dot {
  color: var(--accent);
}

.primary-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.primary-nav a:hover {
  background: var(--surface);
  color: var(--ink);
}

.primary-nav a[aria-current='page'] {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.nav-contact {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.header-actions .menu-toggle {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  min-height: 44px;
  padding: 9px 14px;
  font-size: 0.84rem;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--button-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--ink);
}

.btn-quiet {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}

.btn-quiet:hover,
.btn-quiet[aria-expanded='true'] {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.header-actions .btn-sm.theme-toggle {
  width: 44px;
  padding-inline: 0;
  gap: 0;
}

.theme-toggle .theme-icon {
  display: none;
  width: 18px;
  height: 18px;
}

[data-theme='dark'] .theme-toggle .theme-icon-sun,
[data-theme='light'] .theme-toggle .theme-icon-moon {
  display: block;
}

.btn-row,
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: var(--accent-hover);
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.hero-brand > img,
.all-hub-static,
.all-hub > img {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #F2F8FF;
  object-fit: cover;
}

.all-hub-static {
  display: none;
}

.all-hub {
  position: relative;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #F2F8FF;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.all-hub:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.all-hub[aria-expanded='true'] {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.all-hub > img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 13px;
}

.all-hub-badge {
  position: absolute;
  right: -6px;
  bottom: -6px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  transition: transform 0.2s ease, background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.all-hub[aria-expanded='true'] .all-hub-badge {
  transform: rotate(45deg);
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

html:not(.js) .all-hub {
  display: none;
}

html:not(.js) .all-hub-static {
  display: block;
}

.hero-brand-copy {
  display: grid;
  align-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

.hero-brand-copy > * {
  grid-area: 1 / 1;
}

.hero-brand .eyebrow {
  margin-bottom: 0;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.hero-brand.is-open .eyebrow {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.service-orbit {
  display: flex;
  justify-self: start;
  align-items: stretch;
  justify-content: flex-start;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.2s ease, visibility 0.2s;
}

.hero-brand.is-open .service-orbit {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.orbit-item {
  display: flex;
  flex: 0 0 76px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 48px;
  padding: 5px 2px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.orbit-item img {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #F2F8FF;
  object-fit: cover;
}

.orbit-item span {
  white-space: nowrap;
}

.orbit-item:hover,
.orbit-item:focus-visible {
  background: var(--surface-2);
  border-color: var(--line-strong);
  color: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-brand.is-open .orbit-item {
    animation: orbit-in 0.36s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero-brand.is-open .orbit-item:nth-child(1) {
    animation-delay: 0.03s;
  }

  .hero-brand.is-open .orbit-item:nth-child(2) {
    animation-delay: 0.09s;
  }

  .hero-brand.is-open .orbit-item:nth-child(3) {
    animation-delay: 0.15s;
  }

  .hero-brand.is-open .orbit-item:nth-child(4) {
    animation-delay: 0.21s;
  }
}

@keyframes orbit-in {
  from {
    opacity: 0;
    transform: translate(-18px, 8px) scale(0.72);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 560px) {
  .service-orbit {
    width: 100%;
  }

  .orbit-item {
    flex: 1 1 0;
  }
}

@media (max-width: 380px) {
  .hero-brand {
    gap: 10px;
  }

  .hero-brand > img,
  .all-hub-static,
  .all-hub {
    width: 60px;
    height: 60px;
  }

  .orbit-item {
    font-size: 0.58rem;
  }

  .orbit-item img {
    width: 30px;
    height: 30px;
  }
}

.tag-gold {
  border-color: var(--gold);
  color: var(--gold);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding-block: clamp(64px, 8vw, 116px) clamp(48px, 7vw, 88px);
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: 0;
  width: min(760px, 70vw);
  height: min(760px, 70vw);
  background: radial-gradient(circle, var(--glow), transparent 62%);
  filter: blur(24px);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1,
.page-hero h1,
.error-page h1 {
  max-width: 17ch;
  font-size: clamp(3rem, 6.2vw, 5.35rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  word-spacing: 0.05em;
}

.page-hero h1 {
  max-width: 16ch;
  font-size: clamp(2.5rem, 5.2vw, 4.4rem);
  line-height: 0.98;
}

.lead {
  max-width: 56ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.35vw, 1.2rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(34px, 4vw, 50px);
  border-top: 1px solid var(--line);
}

.facts > div {
  padding: 16px 14px 0 0;
  min-width: 0;
}

.facts dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
}

.facts dd {
  margin-top: 5px;
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.map-panel {
  padding: 18px 20px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 72%);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}

.panel-head h2 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.map-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: background-color 0.16s ease;
}

.map-row:hover {
  background: var(--surface-2);
}

.map-body {
  min-width: 0;
}

.map-body strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.map-body small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.map-open {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.map-row:hover .map-open {
  color: var(--accent);
}

.panel-foot {
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.55;
}

.marker {
  display: inline-block;
  width: 32px;
  height: 0;
  border-top-width: 2px;
  border-top-style: solid;
  color: var(--ink);
}

.marker-pay {
  color: var(--accent);
}

.marker-panel {
  border-top-style: dashed;
}

.marker-api {
  border-top-style: dotted;
  border-top-width: 3px;
}

.marker-script {
  border-top-style: double;
  border-top-width: 3px;
  color: var(--gold);
}

.section {
  padding-block: clamp(62px, 8vw, 108px);
}

.section-tint {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 72ch;
  margin-bottom: clamp(26px, 3.4vw, 44px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.section-head p,
.section-lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1rem;
}

.section-head-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: none;
}

.section-head-split > div {
  max-width: 62ch;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.brand-chip {
  display: inline-flex;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: #F2F8FF;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.brand-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-chip-lg {
  width: 72px;
  height: 72px;
  border-radius: 17px;
}

.brand-chip-sm {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: clamp(22px, 2.8vw, 30px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.service-card:focus-within {
  border-color: var(--accent);
}

.service-card .brand-chip {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover .brand-chip {
  transform: translateY(-2px) rotate(-2deg);
  border-color: var(--accent);
  box-shadow: 0 10px 24px var(--glow);
}

.service-card:nth-child(even):hover .brand-chip {
  transform: translateY(-2px) rotate(2deg);
}

.service-panel {
  background: linear-gradient(160deg, var(--surface-2), var(--surface) 74%);
  border-color: var(--line-strong);
}

.service-panel .service-index {
  color: var(--accent);
}

.service-script {
  background: linear-gradient(160deg, var(--surface-2), var(--surface) 74%);
}

.service-script .service-index {
  color: var(--gold);
}

.service-card h3 {
  font-size: clamp(1.22rem, 1.7vw, 1.42rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.service-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.service-index {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
}

.service-card .text-link {
  margin-top: auto;
}

.plain-list li {
  position: relative;
  padding-left: 20px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.89rem;
}

.plain-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 11px;
  border-top: 1px solid currentColor;
}

.mini-flow {
  list-style: decimal;
  padding-left: 18px;
  border-top: 1px solid var(--line);
}

.mini-flow li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.mini-flow li::marker {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.repo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.repo-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.repo-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.repo-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.repo-head h2 {
  font-size: 1.22rem;
  letter-spacing: -0.03em;
}

.repo-platform {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.repo-card > p {
  color: var(--muted);
  font-size: 0.9rem;
}

.repo-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.repo-facts dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.repo-facts dd {
  margin-top: 3px;
  font-size: 0.82rem;
  font-weight: 600;
}

.repo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.brand-story {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.brand-story figure {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: #E8F4FF;
  box-shadow: var(--shadow);
}

.brand-story img {
  width: 100%;
  height: auto;
}

.brand-story-copy h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.brand-story-copy > p {
  margin-top: 14px;
  color: var(--muted);
}

.logo-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin-top: 24px;
}

.logo-index li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.logo-index span {
  font-size: 0.84rem;
  font-weight: 600;
}

.flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}

.flow-intro h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.flow-intro p {
  max-width: 42ch;
  margin-top: 16px;
  color: var(--muted);
}

.flow-intro .text-link {
  margin-top: 16px;
}

.flow-list {
  border-top: 1px solid var(--line-strong);
}

.flow-list li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.flow-num {
  padding-top: 3px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
}

.flow-list h3 {
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.flow-list p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.code-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--code-line);
  border-radius: 14px;
  background: var(--code-bg);
  color: var(--code-ink);
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.code-head h3 {
  color: var(--code-ink);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0;
}

.code-card pre {
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.77rem;
  line-height: 1.7;
}

.code-card code {
  font-family: var(--font-mono);
}

.code-note {
  color: var(--code-muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.code-note code {
  padding: 1px 4px;
  border: 1px solid var(--code-line);
  border-radius: 3px;
}

.copy-btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--code-ink);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.copy-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.copy-btn[data-copied='true'] {
  border-color: var(--code-ok);
  color: var(--code-ok);
}

p code,
li code {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.faq {
  border-top: 1px solid var(--line-strong);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 16px 0;
  font-size: 1rem;
  font-weight: 600;
  list-style: none;
  transition: color 0.16s ease;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: 0 0 auto;
  width: 28px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 400;
  text-align: center;
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq summary:hover,
.faq summary:hover::after {
  color: var(--accent);
}

.faq details p {
  max-width: 72ch;
  padding: 0 0 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.closing {
  padding-block: clamp(56px, 8vw, 100px);
  border-top: 1px solid var(--inverse-line);
  background: var(--inverse-bg);
  color: var(--inverse-ink);
}

.closing-inner h2 {
  max-width: 20ch;
  font-size: clamp(2rem, 4.4vw, 3.55rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.closing-inner > p {
  max-width: 56ch;
  margin-top: 14px;
  color: var(--inverse-muted);
}

.closing-inner .btn-primary {
  background: var(--inverse-btn-bg);
  border-color: var(--inverse-btn-bg);
  color: var(--inverse-btn-ink);
  box-shadow: none;
}

.closing-inner .btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.closing-inner .btn-secondary {
  border-color: var(--inverse-line);
  color: var(--inverse-ink);
}

.closing-inner .btn-secondary:hover {
  background: transparent;
  border-color: var(--inverse-ink);
}

.closing-inner .hero-actions {
  margin-top: 28px;
}

.closing-inner-left {
  max-width: 760px;
}

.closing-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--inverse-line);
}

.closing-links a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 94px;
  padding: 16px 18px 16px 0;
  border-bottom: 1px solid var(--inverse-line);
  text-decoration: none;
  transition: color 0.16s ease;
}

.closing-links a:hover span {
  color: var(--accent-hover);
}

.closing-links span {
  font-size: 1.02rem;
  font-weight: 600;
}

.closing-links small {
  color: var(--inverse-muted);
  font-size: 0.78rem;
}

.site-footer {
  padding-top: clamp(40px, 5vw, 60px);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-brand {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.footer-brand p {
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-brand .footer-note {
  max-width: 34ch;
  font-size: 0.76rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
}

.footer-col h2 {
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-block: 20px 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
  padding-block: clamp(56px, 7vw, 96px) clamp(36px, 5vw, 56px);
}

.side-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}

.side-facts > div {
  min-width: 0;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.side-facts > div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.side-facts > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.side-facts dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
}

.side-facts dd {
  margin-top: 5px;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
}

.notice {
  margin-top: 8px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 7px;
  font-size: 0.82rem;
  line-height: 1.55;
}

.notice-ok {
  border-left-color: var(--ok);
  background: var(--ok-soft);
  color: var(--ok);
}

.notice-warn {
  border-left-color: var(--warn);
  background: var(--warn-soft);
  color: var(--warn);
}

.series-block {
  margin-top: 38px;
}

.series-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
}

.series-head h3 {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.series-head span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 14px;
}

.product {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.product:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--surface-2);
}

.product-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.product h4 {
  font-size: 1rem;
  letter-spacing: -0.015em;
}

.product-price {
  font-size: 1.06rem;
  font-weight: 700;
  white-space: nowrap;
}

.product-price span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 400;
}

.product-desc {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.specs dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
}

.specs dd {
  margin: 2px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
}

.product-benefit {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.product .btn {
  margin-top: auto;
  width: 100%;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.feature {
  padding: 24px 22px 26px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.feature:nth-child(4n + 2),
.feature:nth-child(4n + 3),
.feature:nth-child(4n + 4) {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.feature h3 {
  font-size: 1rem;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.feature p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.split-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.split-copy p {
  margin-top: 12px;
  color: var(--muted);
}

.split-copy .button-row {
  margin-top: 20px;
}

.step-list {
  border-top: 1px solid var(--line-strong);
}

.step-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.step-num {
  padding-top: 2px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
}

.step-list p {
  font-size: 0.92rem;
}

.code-card-tall {
  height: 100%;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.plan:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}

.plan h3 {
  font-size: 1rem;
}

.plan-price {
  color: var(--accent);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.plan-price span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0;
}

.plan-for {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
}

.plan > p:not(.plan-price):not(.plan-for) {
  color: var(--muted);
  font-size: 0.84rem;
}

.plan .btn {
  margin-top: auto;
  width: 100%;
}

.check-list {
  border-top: 1px solid var(--line-strong);
}

.check-list li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 1.36em;
  width: 13px;
  border-top: 2px solid var(--accent);
}

.check-list-wide {
  max-width: 78ch;
}

.tier-row {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.tier-row > p:first-child {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.tier-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tier-list li {
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
}

.tier-note {
  max-width: 70ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

.tier-list-large {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.tier-list-large li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 0.98rem;
}

.tier-list-large li span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.auth-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.auth-card h3 {
  margin-top: 12px;
  font-size: 1.06rem;
}

.auth-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.88rem;
}

.filter-box {
  width: min(320px, 100%);
}

.filter-box label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.filter-box input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
}

.filter-box input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.filter-box input:hover {
  border-color: var(--ink);
}

.filter-count {
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.category {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.category:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.category h3 {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.category p {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.endpoint-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.endpoint-row code {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.5;
}

.endpoint-row .copy-btn {
  border-color: var(--line-strong);
  color: var(--ink);
}

.endpoint-row .copy-btn:hover {
  background: var(--surface);
  border-color: var(--ink);
}

.endpoint-row .copy-btn[data-copied='true'] {
  border-color: var(--ok);
  color: var(--ok);
}

.category-muted {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem !important;
}

.empty-state {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.price-table {
  border-top: 1px solid var(--line-strong);
}

.price-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.35fr) 0.55fr 0.6fr 0.65fr 0.8fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.16s ease;
}

.price-row:hover {
  background: var(--surface);
}

.price-row-head {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
}

.price-name strong {
  display: block;
  font-size: 0.9rem;
}

.price-name small {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.4;
}

.price-row > span {
  font-size: 0.85rem;
}

.price-value {
  font-weight: 700;
}

.cell-label {
  display: none;
}

.source-note {
  margin-top: 22px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.doc-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.doc-block {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}

.doc-head {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.doc-head h2 {
  font-size: 1.18rem;
}

.doc-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
}

.doc-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 24px;
  padding: 24px;
}

.doc-body h3 {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
}

.doc-body h3 + p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.84rem;
}

.link-list li {
  border-top: 1px solid var(--line);
}

.link-list a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: 0.86rem;
}

.link-list a:hover {
  color: var(--accent);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.contact-card:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}

.contact-card h2 {
  font-size: 1.06rem;
}

.contact-card p {
  color: var(--muted);
  font-size: 0.84rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: auto;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.boundary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.boundary-list > div {
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
}

.boundary-list h3 {
  margin-bottom: 8px;
  font-size: 0.94rem;
}

.legal-list {
  border-top: 1px solid var(--line-strong);
}

.legal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.legal-item h2 {
  font-size: 1.1rem;
}

.legal-item p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.86rem;
}

.legal-note {
  max-width: 72ch;
  margin-top: 32px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.legal-note h2 {
  font-size: 1.02rem;
}

.legal-note p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.legal-note .text-link,
.legal-note .btn {
  margin-top: 12px;
}

.legal-note-tight {
  margin-top: 0;
}

.error-page {
  min-height: 52vh;
  padding-block: clamp(60px, 9vw, 120px);
}

.error-page .lead {
  max-width: 52ch;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 30px;
}

.error-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.error-links a:hover {
  color: var(--accent);
}

#category-list [hidden] {
  display: none;
}

html.reveal-init :is(.service-card, .feature, .plan, .product, .auth-card, .category, .repo-card, .contact-card, .doc-block, .legal-item) {
  opacity: 0;
}

.is-reveal-ready {
  opacity: 0;
}

.is-reveal-ready.is-visible {
  animation: reveal-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

.service-grid .service-card:nth-child(2),
.feature-grid > :nth-child(2),
.plan-grid > :nth-child(2),
.product-grid > :nth-child(2),
.auth-grid > :nth-child(2),
.category-grid > :nth-child(2),
.repo-grid > :nth-child(2),
.contact-grid > :nth-child(2),
.legal-list > :nth-child(2) {
  --reveal-delay: 70ms;
}

.service-grid .service-card:nth-child(3),
.feature-grid > :nth-child(3),
.plan-grid > :nth-child(3),
.product-grid > :nth-child(3),
.auth-grid > :nth-child(3),
.category-grid > :nth-child(3),
.repo-grid > :nth-child(3),
.contact-grid > :nth-child(3),
.legal-list > :nth-child(3) {
  --reveal-delay: 140ms;
}

.service-grid .service-card:nth-child(4),
.feature-grid > :nth-child(4),
.plan-grid > :nth-child(4),
.product-grid > :nth-child(4),
.auth-grid > :nth-child(4),
.category-grid > :nth-child(4),
.repo-grid > :nth-child(4),
.contact-grid > :nth-child(4),
.legal-list > :nth-child(4) {
  --reveal-delay: 210ms;
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .page-hero-copy > *,
  .page-hero .side-facts,
  .error-page > *,
  .map-panel {
    animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero-copy > :nth-child(2),
  .page-hero-copy > :nth-child(2),
  .error-page > :nth-child(2) {
    animation-delay: 0.04s;
  }

  .hero-copy > :nth-child(3),
  .page-hero-copy > :nth-child(3),
  .error-page > :nth-child(3) {
    animation-delay: 0.08s;
  }

  .hero-copy > :nth-child(4),
  .page-hero-copy > :nth-child(4),
  .error-page > :nth-child(4) {
    animation-delay: 0.12s;
  }

  .hero-copy > :nth-child(5) {
    animation-delay: 0.16s;
  }

  .map-panel,
  .page-hero .side-facts {
    animation-delay: 0.1s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .header-cta {
    display: none;
  }

  .primary-nav a {
    padding: 0 8px;
    font-size: 0.84rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  html.js .menu-toggle {
    display: inline-flex;
  }

  html.js .primary-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 50;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  html.js .primary-nav.is-open {
    display: flex;
  }

  html.js .primary-nav a {
    justify-content: flex-start;
    min-height: 46px;
    padding: 0 12px;
    font-size: 0.92rem;
  }

  html.js .primary-nav .nav-contact {
    display: inline-flex;
  }

  .hero,
  .page-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero h1 {
    max-width: 16ch;
  }

  .map-panel {
    max-width: 640px;
  }

  .footer-brand {
    flex-direction: column;
    gap: 8px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .repo-grid,
  .brand-story {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand-story figure {
    max-width: 560px;
  }

  .code-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature:nth-child(n) {
    padding: 22px 18px;
    border-left: 0;
  }

  .feature:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .flow-layout,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow-intro {
    max-width: 62ch;
  }

  .price-row {
    grid-template-columns: minmax(150px, 1.2fr) 0.5fr 0.55fr 0.6fr 0.75fr auto;
  }

  .doc-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc-head {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .doc-head .btn {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 6px;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 40px;
  }

  .hero h1,
  .page-hero h1 {
    max-width: 18ch;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts > div:nth-child(-n + 2) {
    padding-bottom: 14px;
  }

  .service-grid,
  .plan-grid,
  .code-grid,
  .contact-grid,
  .auth-grid,
  .repo-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .closing-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .closing-links a {
    padding: 14px 0;
    border-right: 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-row-head {
    display: none;
  }

  .price-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    padding: 16px 0;
  }

  .price-row .price-name {
    grid-column: 1 / -1;
  }

  .price-row > span {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
  }

  .price-row > span:last-child {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .cell-label {
    display: inline;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 400;
  }

  .price-row .btn {
    width: 100%;
  }

  .tier-list-large {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .legal-item .btn {
    width: 100%;
  }

  .boundary-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc-head {
    padding: 16px;
  }

  .code-card pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 560px) {
  .header-inner {
    min-height: 66px;
  }

  .header-actions {
    gap: 2px;
  }

  .header-actions .btn-sm {
    padding-inline: 10px;
    font-size: 0.76rem;
  }

  .wordmark {
    font-size: 1.04rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .product-grid,
  .category-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
  }

  .step-list li {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .flow-list li {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
  }

  .doc-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc-head .marker {
    display: none;
  }

  .legal-note {
    padding: 16px;
  }

  .notice {
    padding: 10px 12px;
  }

  .closing-inner .btn,
  .legal-note .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .btn:active,
  .service-card:hover,
  .product:hover {
    transform: none;
  }
}
