@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jetbrains-mono-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jetbrains-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg-primary: #0a0e17;
  --bg-panel: #0f1522;
  --border: rgba(139, 148, 158, 0.22);
  --border-strong: rgba(121, 192, 255, 0.55);
  --text-primary: #e6edf3;
  --text-muted: #a8b3bd;
  --accent-blue: #79c0ff;
  --status-green: #7ee787;
  --error-red: #ff7b72;
  --bg: var(--bg-primary);
  --panel: var(--bg-panel);
  --ink: var(--text-primary);
  --muted: var(--text-muted);
  --blue: var(--accent-blue);
  --green: var(--status-green);
  --amber: #ffa657;
  --line: var(--border);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-padding-top: 5rem; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--muted);
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.7;
  background: var(--bg);
}

.field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(139, 148, 158, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 148, 158, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
}
.field canvas { display: block; width: 100%; height: 100%; }
body.doc .field {
  background-image:
    linear-gradient(rgba(139, 148, 158, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 148, 158, 0.035) 1px, transparent 1px);
}
body.doc .field canvas { opacity: 0.5; }

@media (prefers-reduced-motion: reduce) {
  main { animation: none; }
  .box, .wire, .ok, .caret::after { animation: none !important; }
  .box { opacity: 1; transform: none; }
  .wire { stroke-dashoffset: 0; }
  .pkt { display: none; }
  .btn, .chev, .ctr, .lift, .box .face { transition: none; }
}

main { animation: enter 0.2s ease; }
@keyframes enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 80;
  transform: translateY(-200%);
  background: var(--ink);
  color: #111;
  padding: 0.5rem 0.8rem;
}
.skip:focus { transform: none; }

.wrap {
  width: min(80rem, calc(100% - 3rem));
  margin-inline: auto;
}
.hero-grid > *, .process > *, .request > *, .svc-grid > *, .foot > *, .fields > * { min-width: 0; }
.sha, .stack, .ctr-name, .json, h1, h2, h3 { overflow-wrap: anywhere; }

.mono, .kicker, .sha, .boot, .ctr-top, .mod header, .term-bar, .json, .fact strong, .stack, .core, .status-panel li, input, select, textarea, .err, .ms, .fine {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 4.4rem;
  padding-inline: max(1.5rem, calc((100% - 80rem) / 2));
  background: rgba(10, 14, 23, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand { justify-self: start; }
.brand img { height: 48px; width: auto; }

.desk {
  display: flex;
  gap: 1.5rem;
  color: #c5ced6;
  font-size: 1rem;
  font-weight: 500;
}
.desk a[aria-current="page"] { color: var(--blue); }
.desk a[aria-current="page"]::before,
.panel a[aria-current="page"]::before { content: "> "; }
.desk a:hover { color: var(--ink); }

.bar-end { justify-self: end; display: flex; align-items: center; gap: 0.85rem; }

.lang {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.lang button {
  border: 0;
  background: none;
  padding: 0.2rem;
  color: var(--muted);
  cursor: pointer;
}
.lang button[aria-pressed="true"] { color: var(--ink); }
.lang button[aria-pressed="false"] { color: #7d8894; }
.lang span { color: rgba(168, 179, 189, 0.45); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 0.95rem;
  border: 1px solid rgba(121, 192, 255, 0.55);
  border-radius: 6px;
  background: rgba(121, 192, 255, 0.1);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
  cursor: pointer;
}
.bar .btn {
  border-color: rgba(121, 192, 255, 0.75);
  background: rgba(121, 192, 255, 0.1);
  color: var(--ink);
  font-size: 0.84rem;
}
.chev { display: inline-block; margin-right: 0.35rem; color: var(--blue); transition: transform 0.2s ease; }
.btn:hover {
  background: rgba(121, 192, 255, 0.18);
  border-color: var(--blue);
}
.btn:hover .chev { transform: translateX(4px); }
.btn.ghost {
  color: var(--ink);
  background: transparent;
  border-color: rgba(168, 179, 189, 0.45);
}
.btn.ghost:hover {
  background: transparent;
  border-color: var(--blue);
  color: var(--ink);
}
.btn.wide { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.menu {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  min-height: 2.3rem;
  padding: 0 0.75rem;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  cursor: pointer;
}

.panel {
  position: sticky;
  top: 4.4rem;
  z-index: 30;
  background: #0d121c;
  border-bottom: 1px solid var(--line);
}
.panel nav { display: grid; }
.panel a { padding: 0.9rem 1.25rem; border-top: 1px solid var(--line); }
.panel a:hover { color: var(--blue); }
.hidden { display: none; }

.hero { padding: 5.5rem 0 2.5rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.boot {
  min-height: 1.4rem;
  margin: 0 0 1rem;
  color: var(--green);
  font-size: 0.82rem;
}
.caret::after {
  content: "▌";
  margin-left: 0.2rem;
  color: var(--green);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -0.03em; }
h1 {
  margin: 0;
  min-height: 2.5em;
  font-size: clamp(2rem, 3.5vw, 3.15rem);
  line-height: 1.12;
}
h2 { margin: 0; font-size: clamp(1.45rem, 2vw, 1.9rem); line-height: 1.25; }

p { color: #b1bac4; }
.lede { margin: 1.25rem 0 0; max-width: 38rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.8rem; }

.schema-svg { width: 100%; height: auto; display: block; overflow: visible; }
.schema-svg .face {
  stroke: rgba(121, 192, 255, 0.55);
  stroke-width: 1.2;
  transition: fill 0.25s ease, stroke 0.25s ease;
}
.lift { transition: transform 0.28s ease; }
.box { cursor: pointer; }
.box:hover .lift { transform: translateY(-12px); }
.box:hover .face { stroke: rgba(186, 220, 255, 0.95); }
.box:hover .top { fill: #2e4a70; }
.box:hover .front { fill: #1e3250; }
.box:hover .right { fill: #3a5a82; }
.schema-svg .top { fill: #22324c; }
.schema-svg .front { fill: #172033; }
.schema-svg .right { fill: #243e60; }
.schema-svg text { font-family: "JetBrains Mono", ui-monospace, monospace; }
.schema-svg .name { font-size: 15px; fill: var(--ink); font-weight: 500; }
.schema-svg .meta { font-size: 12px; fill: var(--muted); }
.schema-svg .ok { font-size: 12px; fill: var(--green); animation: blink 1.3s steps(2, end) infinite; }
.wire {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.6;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 0.55s ease forwards;
}
.w1 { animation-delay: 0.95s; }
.w2 { animation-delay: 1.15s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.box {
  opacity: 0.82;
  transform: translateY(-12px);
  animation: land 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.b0 { animation-delay: 0.12s; }
.b1 { animation-delay: 0.38s; }
.b2 { animation-delay: 0.64s; }
@keyframes land { to { opacity: 1; transform: none; } }

.section, .page, .contact {
  padding: 7.5rem 0 8rem;
  background: radial-gradient(ellipse at 50% 20%, rgba(10, 14, 23, 0.5), rgba(10, 14, 23, 0.18) 68%);
}
.section { padding-top: 2.75rem; }
.diagram-note { max-width: 26rem; margin: 0.85rem 0 0; font-size: 0.92rem; }
.principles { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 1.4rem 0 0; padding: 0; }
.principles li {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  color: var(--ink);
  font-size: 0.88rem;
}
.kicker {
  margin: 0 0 0.7rem;
  color: var(--blue);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cards, .svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.mod, .spec, .ctr, .request, .fact {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.mod { padding: 1.15rem 1.15rem 1.25rem; }
.mod header, .ctr-top, .payload header, .term-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.mod header { margin-bottom: 1rem; color: var(--blue); }
.mod h3, .ctr h2, .commit h3 { margin: 0; font-size: 1.02rem; font-weight: 600; }
.mod p, .ctr p, .commit p, .spec p { margin: 0.4rem 0 0; }

.page { padding: 7.5rem 0 8rem; }
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.2rem;
}
.spec { padding: 1.25rem 1.3rem 1.4rem; }
.spec h2 { font-size: 1.2rem; }
.stage { margin-top: 5.5rem; }

.gitwrap { position: relative; margin-top: 2.2rem; }
.git-svg {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4.5rem;
  height: 100%;
  overflow: visible;
}
.git-svg .track { fill: none; stroke: rgba(139, 148, 158, 0.28); stroke-width: 1.5; }
.git-svg .ink {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.8;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--p, 0));
}
.git-svg .ink.branch {
  stroke: var(--green);
  stroke-dashoffset: calc(1 - clamp(0, (var(--p, 0) - 0.18) / 0.42, 1));
}
.commits { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.35rem; }
.commit {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.4rem;
  align-items: start;
}
.node {
  width: 12px;
  height: 12px;
  margin: 0.35rem auto 0;
  border: 2px solid var(--muted);
  border-radius: 50%;
  background: var(--bg);
  position: relative;
  z-index: 1;
}
.commit.on .node { background: var(--green); border-color: var(--green); }
.sha { margin: 0 0 0.2rem; color: var(--blue); font-size: 0.75rem; }
.sha .br { color: var(--amber); }

.ctr { display: flex; flex-direction: column; min-height: 100%; overflow: hidden; }
.ctr-top {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--line);
  background: #0c121d;
}
.ctr-name { color: var(--ink); }
.ctr-state { color: var(--muted); }
.ctr-state.on { color: var(--green); }
.ctr-body { padding: 1rem 0.95rem 1.1rem; flex: 1; }
.deploy { height: 3px; background: rgba(139, 148, 158, 0.16); }
.deploy-bar { display: block; height: 100%; width: 0; background: var(--green); }

.contact { padding: 7.5rem 0 8rem; }
.process {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  align-items: start;
  margin-top: 2rem;
}
.status-panel { padding: 1rem 1rem 1.1rem; align-self: stretch; display: flex; flex-direction: column; }
.status-panel ol { flex: 1; }
.status-panel h2 { font-size: 1.05rem; margin-bottom: 0.8rem; }
.status-panel ol { list-style: none; margin: 0; padding: 0; }
.status-panel li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
}
.st-ok { color: var(--green); }
.st-run { color: var(--blue); }
.st-wait { color: var(--muted); }
.narrow { max-width: 40rem; }
.copy { display: grid; gap: 1.35rem; margin-top: 2.2rem; }
.copy h2 { font-size: 1.15rem; }
.copy p { margin: 0.4rem 0 0; }
.page.doc h1 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); min-height: 0; line-height: 1.28; }
.updated { margin: 1.1rem 0 0; color: var(--muted); }
.notice p { margin: 0.65rem 0 0; }
.notice ul { margin: 0.45rem 0 0; padding-left: 1.2rem; }
.notice li { margin: 0.3rem 0; }
.notice strong { color: var(--ink); font-weight: 600; }
.study { margin-top: 1.6rem; padding: 1rem 1rem 1.15rem; }
.study p { margin: 0.35rem 0 0; }
.core { color: var(--blue); font-size: 0.68rem; letter-spacing: 0.14em; }
.stack { margin: 0.75rem 0 0; font-size: 0.75rem; }
.more { display: inline-flex; align-items: center; margin-top: 0.9rem; color: var(--blue); font-size: 0.88rem; }
.ctr { transition: border-color 0.2s ease; }
.ctr:hover { border-color: var(--border-strong); }
.ctr.core-card { border-color: rgba(121, 192, 255, 0.38); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin-top: 1.6rem; }
.fact { display: flex; gap: 0.8rem; align-items: center; padding: 0.8rem 0.9rem; }
.fact strong { display: block; color: var(--blue); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.fact a:hover { color: var(--blue); }

.request {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  margin-top: 2rem;
  overflow: hidden;
}
form { padding: 1.15rem 1.15rem 1.3rem; display: grid; gap: 0.85rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
label { display: grid; gap: 0.35rem; font-size: 0.78rem; color: var(--muted); }
input, select, textarea {
  width: 100%;
  min-height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #070b12;
  color: var(--ink);
  padding: 0.65rem 0.7rem;
  font-size: 0.84rem;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(121, 192, 255, 0.12);
}
.bad { border-color: var(--error-red) !important; }
.err { color: var(--error-red); font-size: 0.75rem; }
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
form { position: relative; }
.fine { margin: 0.2rem 0 0; font-size: 0.78rem; }
.fine a { color: var(--blue); }
.err[hidden] { display: none; }
#form-status { color: var(--muted); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.78rem; }
.direct { display: grid; gap: 0.45rem; margin-top: 0.35rem; }
.direct .kicker { margin: 0; font-size: 0.72rem; letter-spacing: 0.12em; }
.fallback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin: 0;
  color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  line-height: 1;
}
.mail-copy {
  display: inline-flex;
  align-items: center;
  height: 33px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: #c5d4e0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  cursor: pointer;
}
.mail-copy::before {
  content: "⧉";
  margin-right: 0.45rem;
  font-size: 12px;
}
.mail-copy:hover {
  background: rgba(121, 192, 255, 0.08);
  border-color: rgba(121, 192, 255, 0.45);
  color: var(--ink);
}
.mail-copy[data-ui="Kopyalandı"],
.mail-copy[data-ui="Kopyalandı"]:hover {
  color: var(--green);
  border-color: rgba(126, 231, 135, 0.45);
  background: transparent;
}
.mail-copy[data-ui="Kopyalandı"]::before { content: "✓"; }

.payload {
  border-left: 1px solid var(--line);
  background: #070b12;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.payload header {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.json {
  margin: 0;
  padding: 0.95rem 1rem 1.1rem;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
  flex: 1;
}
.json .k { color: var(--blue); }
.json .v { color: #9fb0c3; }
.json .draft { color: #8ea4bc; }
.json .opened { color: var(--green); }
.json .s { color: var(--green); }
.json .bad { color: var(--error-red); }
.json .p { color: var(--muted); }
.compile {
  margin: 0;
  padding: 0 1rem 0.9rem;
  color: var(--green);
  font-size: 0.78rem;
}

footer { border-top: 1px solid var(--line); }
.foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  padding: 2.4rem 0 0.4rem;
  align-items: start;
}
.foot-id {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
}
.foot img { height: 36px; width: auto; }
.foot p { max-width: 26rem; margin: 0.45rem 0 0; }
.foot nav { display: grid; gap: 0.35rem; justify-items: end; text-align: right; }
.foot .kicker { margin: 0 0 0.55rem; }
.foot a:hover { color: var(--blue); }
.legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.legal a:hover { color: var(--blue); }

@media (max-width: 1100px) {
  .hero-grid, .process, .request, .foot { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .payload { border-left: 0; border-top: 1px solid var(--line); }
  .foot nav { justify-items: start; text-align: left; }
}
@media (max-width: 960px) {
  .desk, .bar .btn { display: none; }
  .bar-end { grid-column: 3; }
  .menu { display: inline-flex; align-items: center; }
  .page, .contact { padding: 4.5rem 0 5rem; }
  .section { padding: 2.25rem 0 4rem; }
  h1 { min-height: 0; }
  .brand img { height: 40px; }
}
@media (max-width: 700px) {
  .cards, .pair, .svc-grid, .fields, .facts { grid-template-columns: 1fr; }
  .gitwrap { overflow: hidden; }
  .json { overflow-x: hidden; }
}
.page.doc { padding-top: calc(7.5rem - 24px); padding-bottom: calc(8rem - 24px); }
@media (max-width: 960px) {
  .page.doc { padding-top: calc(4.5rem - 22px); padding-bottom: calc(5rem - 22px); }
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.legal-page { width: min(70rem, calc(100% - 3rem)); }
.legal-hero { max-width: 42rem; }
.legal-hero h1 {
  min-height: 0;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.18;
}
.h1-line { display: block; }
.legal-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  column-gap: 3.5rem;
  justify-content: start;
  align-items: start;
  margin-top: 3rem;
}
.toc { position: sticky; top: 5.6rem; align-self: start; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; }
.toc a {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  padding: 0.42rem 0;
  color: var(--muted);
  line-height: 1.35;
}
.toc a span {
  color: var(--blue);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  flex: none;
}
.toc a[aria-current="true"] { color: var(--ink); }
.toc-toggle {
  display: none;
  width: 100%;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.legal-body section {
  border-top: 1px solid var(--line);
  margin-top: 3.4rem;
  padding-top: 1.15rem;
  scroll-margin-top: 6.25rem;
}
.legal-body h2 {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  margin: 0 0 0.85rem;
  font-size: 1.28rem;
}
.sec-no {
  color: var(--blue);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  font-weight: 500;
}
.legal-body h3 { margin: 1.55rem 0 0.35rem; font-size: 1.02rem; }
.legal-label {
  margin: 1rem 0 0;
  color: var(--blue);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.legal-body p, .legal-body li { max-width: 68ch; line-height: 1.75; }
.legal-body ul { margin: 0.55rem 0 0; padding-left: 1.15rem; }
.legal-body li { margin: 0.3rem 0; }
.legal-card {
  margin-top: 3.5rem;
  max-width: 28rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}
.legal-card p { margin: 0.45rem 0 0; }
.legal-note { font-size: 0.72rem; }
#form-status { margin: 0.55rem 0 0; font-size: 0.85rem; }
#form-status.draft { color: #8ea4bc; }
#form-status.bad { color: var(--error-red); }
#form-status.opened { color: var(--green); }

@media (max-width: 1040px) {
  .legal-grid { grid-template-columns: 1fr; row-gap: 1.25rem; margin-top: 2rem; }
  .toc {
    position: static;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.2rem 0.9rem 0.45rem;
  }
  .toc-label { display: none; }
  .toc-toggle { display: flex; align-items: center; }
  .toc ol { display: none; }
  .toc.open ol { display: grid; }
  .toc a { min-height: 2.75rem; align-items: center; }
}
