/* stockway.tech — landing page, documentation and legal pages.
   Light theme only, on purpose: the product illustrations show the app, and
   the app is light. Colours under "App" match app/app.css in the app repo. */

:root {
  --bg: #ffffff;
  --surface: #f6f8f7;
  --surface-2: #edf2ef;
  --ink: #0c1a16;
  --ink-2: #34433e;
  --muted: #64716c;
  --line: #e2e8e5;
  --line-strong: #cfd8d4;
  --brand: #008060;
  --brand-hover: #006e52;
  --brand-soft: #e6f4ee;
  --brand-text: #006e52;
  --brand-deep: #003b2f;
  --brand-deep-2: #005c46;
  /* App */
  --app-text: #1a1a2e;
  --app-muted: #6b7080;
  --app-line: #e3e3e8;
  --grade-a: #8b5cf6;
  --grade-b: #3b82f6;
  --grade-c: #f59e0b;
  --chart: #8b5cf6;
  --ok-bg: #e5f5ee;
  --ok-fg: #0f6d4b;
  --info-bg: #e8f0fe;
  --info-fg: #1e4ed8;
  --warn-bg: #fdf3dc;
  --warn-fg: #92600a;
  --crit-bg: #fdeaea;
  --crit-fg: #b42318;
  /* Depth */
  --shadow-sm: 0 1px 2px rgba(12, 26, 22, 0.06);
  --shadow: 0 1px 2px rgba(12, 26, 22, 0.04), 0 12px 32px -10px rgba(12, 26, 22, 0.18);
  --shadow-lg: 0 2px 6px rgba(12, 26, 22, 0.04), 0 32px 80px -24px rgba(12, 26, 22, 0.32);
  --radius: 14px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

/* ——— Base ——— */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--brand-text);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
p {
  margin: 0 0 1em;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 600px) {
  .wrap {
    padding: 0 18px;
  }
}
.muted {
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: 10px;
  left: -9999px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
}
.skip-link:focus {
  left: 10px;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn-primary {
  background: var(--brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(0, 59, 47, 0.3);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-hover);
}
.btn-secondary {
  border-color: var(--line-strong);
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}
.btn-secondary:hover {
  border-color: var(--muted);
}
.btn-light {
  background: #fff;
  color: var(--brand-deep);
}
.btn-light:hover {
  background: #e9f5f0;
}
.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.btn-outline-light:hover {
  border-color: #fff;
}
.btn-lg {
  padding: 14px 24px;
  font-size: 16.5px;
}
.btn-sm {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
}
.btn .arrow {
  transition: transform 0.15s;
}
.btn:hover .arrow,
.link-arrow:hover .arrow {
  transform: translateX(3px);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}
.arrow {
  display: inline-block;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  gap: 2px;
}
.site-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover {
  background: var(--surface);
  color: var(--ink);
}
.site-nav a[aria-current="page"] {
  color: var(--brand-text);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.header-link {
  padding: 8px 12px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.header-link:hover {
  color: var(--ink);
}
/* Phone menu: a <details>, so it works without scripts. */
.menu {
  display: none;
  position: relative;
}
.menu summary {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  list-style: none;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu summary svg {
  width: 20px;
  height: 20px;
}
.menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: min(300px, calc(100vw - 36px));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.menu-panel a {
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.menu-panel a:hover {
  background: var(--surface);
}
.menu-panel .btn {
  margin-top: 6px;
  color: #fff;
}
@media (max-width: 900px) {
  .site-nav,
  .header-link {
    display: none;
  }
  .menu {
    display: block;
  }
}
@media (max-width: 480px) {
  .header-actions .btn {
    display: none;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 88px;
  background: linear-gradient(180deg, #f1f9f5 0%, #ffffff 72%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 128, 96, 0.13) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 62%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 62%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
}
.pill-link b {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-text);
  font-size: 12px;
  white-space: nowrap;
}
.pill-link:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}
.hero h1 {
  margin: 24px 0 20px;
  font-size: clamp(40px, 6.4vw, 70px);
  font-weight: 750;
  line-height: 1.03;
  letter-spacing: -0.045em;
}
.hero h1 .accent {
  color: var(--brand);
}
.hero .lead {
  max-width: 700px;
  margin: 0 auto;
  color: var(--ink-2);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 22px;
}
.hero .actions {
  justify-content: center;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 14.5px;
  list-style: none;
}
.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust svg {
  width: 17px;
  height: 17px;
  color: var(--brand);
}

/* ——— Product illustrations ———
   Drawn in HTML so they stay sharp at any size. They show the app's real
   screens (Home, the purchase order planner, receiving) with sample data. */
.shot {
  position: relative;
  max-width: 1080px;
  margin: 64px auto 0;
}
.window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  color: var(--app-text);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--app-line);
  background: #f4f6f5;
}
.window-bar i {
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #dfe3e1;
}
.window-url {
  min-width: 0;
  max-width: 60%;
  margin: 0 auto;
  padding: 4px 14px;
  overflow: hidden;
  border: 1px solid var(--app-line);
  border-radius: 7px;
  background: #fff;
  color: var(--app-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-top {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 50px;
  padding: 0 18px;
  border-bottom: 1px solid var(--app-line);
  background: #fff;
}
.app-brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}
.app-brand img {
  width: 22px;
  height: 22px;
}
.app-nav {
  display: flex;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
  color: #3d4152;
}
.app-nav span {
  padding: 6px 9px;
  border-radius: 7px;
  font-weight: 500;
  white-space: nowrap;
}
.app-nav .on {
  background: #eef6f2;
  color: var(--brand);
}
.app-search {
  flex: none;
  width: 190px;
  margin-left: auto;
  padding: 6px 10px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  color: #9a9eab;
  font-size: 12.5px;
}
.app-body {
  padding: 20px 22px 24px;
  background: #fafbfb;
}
.app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.app-title {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.app-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.w {
  padding: 12px 14px 6px;
  border: 1px solid var(--app-line);
  border-radius: 10px;
  background: #fff;
}
.w-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 13.5px;
  font-weight: 600;
}
.w-head span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 500;
}
.mini {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12.5px;
}
.mini th {
  padding: 6px 0;
  border-bottom: 1px solid var(--app-line);
  color: var(--app-muted);
  font-size: 11.5px;
  font-weight: 500;
  text-align: left;
}
.mini td {
  padding: 7px 0;
  overflow: hidden;
  border-bottom: 1px solid #f0f0f3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini tr:last-child td {
  border-bottom: 0;
}
.mini .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.mini .gap {
  padding-left: 10px;
}
.c-xs {
  width: 34px;
}
.c-sm {
  width: 64px;
}
.c-md {
  width: 92px;
}
.grade {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.grade-a {
  background: var(--grade-a);
}
.grade-b {
  background: var(--grade-b);
}
.grade-c {
  background: var(--grade-c);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.tag svg {
  width: 13px;
  height: 13px;
}
.tag-ok {
  background: var(--ok-bg);
  color: var(--ok-fg);
}
.tag-info {
  background: var(--info-bg);
  color: var(--info-fg);
}
.tag-warn {
  background: var(--warn-bg);
  color: var(--warn-fg);
}
.tag-crit {
  background: var(--crit-bg);
  color: var(--crit-fg);
}
.float {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--app-text);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}
/* Both cards hang off the window's bottom edge, over padding kept empty for
   them, so they never cover the dashboard itself. */
.shot .app-body {
  padding-bottom: 64px;
}
.float-toast {
  bottom: -30px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 330px;
  padding: 12px 18px 12px 12px;
}
.float-toast b {
  display: block;
}
.float-toast small {
  color: var(--app-muted);
  font-size: 12.5px;
}
.ok-dot {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok-fg);
}
.ok-dot svg {
  width: 16px;
  height: 16px;
}
.float-plan {
  right: 48px;
  bottom: -30px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 12px 12px 18px;
}
.float-plan b {
  display: block;
}
.float-plan p {
  margin: 0;
  color: var(--app-muted);
  font-size: 12.5px;
  white-space: nowrap;
}
@media (max-width: 1060px) {
  .float-toast {
    display: none;
  }
}
@media (max-width: 900px) {
  .float {
    display: none;
  }
  .shot .app-body {
    padding-bottom: 24px;
  }
  .app-nav span:nth-child(n + 4),
  .app-search {
    display: none;
  }
}
@media (max-width: 640px) {
  .shot {
    margin-top: 44px;
  }
  .app-grid {
    grid-template-columns: 1fr;
  }
  .app-grid .w:nth-child(n + 3) {
    display: none;
  }
  .window-url {
    max-width: 75%;
  }
}

/* ——— Sections ——— */
.section {
  padding: 96px 0;
}
.section-alt {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-head h2,
.split-copy h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  letter-spacing: -0.035em;
}
.section-head p:not(.eyebrow) {
  margin: 0;
  color: var(--ink-2);
  font-size: 18.5px;
}
.section.flush-top {
  padding-top: 0;
}
@media (max-width: 720px) {
  .section {
    padding: 68px 0;
  }
  .section-head {
    margin-bottom: 40px;
  }
}

/* Highlights under the hero */
.highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 36px 0;
  list-style: none;
}
.highlights-band {
  border-bottom: 1px solid var(--line);
}
.highlights li {
  display: flex;
  gap: 14px;
}
.highlights b {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 15.5px;
}
.highlights p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}
@media (max-width: 960px) {
  .highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .highlights {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand-text);
}
.icon svg {
  width: 20px;
  height: 20px;
}

/* Feature rows: copy beside an illustration, alternating sides */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 72px;
  align-items: center;
}
.split + .split {
  margin-top: 112px;
}
.split.reverse {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
}
.split.reverse .split-copy {
  order: 2;
}
.split-copy .lead {
  color: var(--ink-2);
  font-size: 18px;
}
.split-copy .check-list {
  margin: 24px 0 26px;
}
@media (max-width: 960px) {
  .split,
  .split.reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .split.reverse .split-copy {
    order: 0;
  }
  .split + .split {
    margin-top: 80px;
  }
}
.visual {
  position: relative;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(120% 90% at 0% 0%, #e3f3ec 0%, transparent 55%),
    radial-gradient(90% 90% at 100% 100%, #ece9fb 0%, transparent 55%),
    #f7f9f8;
}
@media (max-width: 600px) {
  .visual {
    padding: 16px;
    border-radius: 16px;
  }
}
.panel {
  overflow: hidden;
  border: 1px solid var(--app-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--app-text);
  font-size: 13px;
  line-height: 1.45;
}
.panel + .panel {
  margin-top: 16px;
}
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--app-line);
}
.panel-top b {
  font-size: 14px;
}
.panel-top small {
  display: block;
  color: var(--app-muted);
  font-size: 12px;
}
.panel-pad {
  padding: 14px 18px;
}
.panel .mini {
  font-size: 13px;
}
.panel .mini th,
.panel .mini td {
  padding-right: 0;
}
.panel .mini th:first-child,
.panel .mini td:first-child {
  padding-left: 18px;
}
.panel .mini th:last-child,
.panel .mini td:last-child {
  padding-right: 18px;
}
.panel .mini .c-xs {
  width: 56px;
}
.panel .mini .c-sm {
  width: 70px;
}
.panel .mini .c-md {
  width: 96px;
}
@media (max-width: 600px) {
  .panel .mini .hide-sm {
    display: none;
  }
}
.cell-sub {
  display: block;
  color: var(--app-muted);
  font-size: 11.5px;
}

/* Purchase order document */
.doc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
}
.doc-kicker {
  display: block;
  color: var(--app-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.doc-no {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.doc-parties {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 20px 16px;
}
.doc-parties span {
  display: block;
  color: var(--app-muted);
  font-size: 11.5px;
}
.doc-parties b {
  display: block;
  font-size: 13.5px;
}
.doc-parties small {
  color: var(--app-muted);
  font-size: 12px;
}
.doc-totals {
  display: grid;
  gap: 4px;
  margin-left: auto;
  padding: 12px 20px 16px;
  max-width: 260px;
  font-variant-numeric: tabular-nums;
}
.doc-totals div {
  display: flex;
  justify-content: space-between;
  color: var(--app-muted);
}
.doc-totals .grand {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--app-line);
  color: var(--app-text);
  font-size: 14px;
  font-weight: 700;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--app-line);
  background: #fafbfb;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
}
.chip svg {
  width: 14px;
  height: 14px;
  color: var(--app-muted);
}

/* Planner */
.plan-summary {
  padding: 10px 18px;
  border-bottom: 1px solid var(--app-line);
  background: #fafbfb;
  color: var(--app-muted);
  font-size: 12.5px;
}
.qty {
  display: inline-block;
  min-width: 46px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  font-weight: 600;
  text-align: right;
}
.below-min {
  color: var(--crit-fg);
  font-weight: 600;
}

/* Receiving */
.recv-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px 96px;
  gap: 14px;
  align-items: center;
  padding: 11px 18px;
  border-bottom: 1px solid #f0f0f3;
}
.recv-row:last-of-type {
  border-bottom: 0;
}
.recv-row .count {
  color: var(--app-muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.meter {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #eceff3;
}
.meter b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}
.m-100 {
  width: 100%;
}
.m-50 {
  width: 50%;
}
.m-25 {
  width: 25%;
}
.m-0 {
  width: 0;
}
.panel-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--app-line);
  background: #fafbfb;
}
.route {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.route svg {
  width: 16px;
  height: 16px;
  color: var(--app-muted);
}

/* Reports */
.chart {
  width: 100%;
  height: 150px;
}
.chart .grid {
  stroke: #eceff3;
  stroke-width: 1;
}
.chart .area {
  fill: rgba(139, 92, 246, 0.12);
}
.chart .line {
  fill: none;
  stroke: var(--chart);
  stroke-width: 2.25;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--app-line);
}
.stat-row div {
  padding: 12px 18px;
}
.stat-row div + div {
  border-left: 1px solid var(--app-line);
}
.stat-row span {
  display: block;
  color: var(--app-muted);
  font-size: 12px;
}
.stat-row b {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

/* Check lists */
.check-list {
  display: grid;
  gap: 12px;
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-2);
}
.check-list li::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--brand-soft);
}
.check-list li::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 7px;
  width: 5px;
  height: 9px;
  border: solid var(--brand);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check-list b {
  color: var(--ink);
  font-weight: 600;
}

/* More features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
.feature {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.feature:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.feature .icon {
  margin-bottom: 16px;
}
.feature h3 {
  margin-bottom: 6px;
  font-size: 17px;
  letter-spacing: -0.015em;
}
.feature p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.steps li::before {
  content: counter(step);
  counter-increment: step;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}
.steps h3 {
  font-size: 18px;
}
.steps p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Dark band: moving from Stocky */
.band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  overflow: hidden;
  padding: 56px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-deep-2) 100%);
  color: #fff;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  pointer-events: none;
}
.band > * {
  position: relative;
}
.band h2 {
  color: #fff;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.035em;
}
.band p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17.5px;
}
.band .eyebrow {
  color: #8fe3c2;
}
.band .actions {
  margin: 28px 0 0;
}
.band .fine {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}
@media (max-width: 900px) {
  .band {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 28px;
  }
}
.import-card {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}
.file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--app-text);
  font-size: 13.5px;
}
.file + .file {
  margin-top: 10px;
}
.file svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--brand);
}
.file b {
  display: block;
}
.file small {
  color: var(--app-muted);
  font-size: 12px;
}
.file .tag {
  margin-left: auto;
}
.import-arrow {
  display: flex;
  justify-content: center;
  padding: 10px 0;
  color: #8fe3c2;
}
.import-arrow svg {
  width: 22px;
  height: 22px;
}
.import-card .fine {
  margin-top: 16px;
}

/* Security */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 960px) {
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}
.trust-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.trust-card .icon {
  margin-bottom: 16px;
}
.trust-card h3 {
  margin-bottom: 6px;
  font-size: 17px;
}
.trust-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}
.center-link {
  margin: 36px 0 0;
  text-align: center;
}

/* Pricing */
.billing-wrap {
  margin: -16px 0 40px;
  text-align: center;
}
.billing {
  display: inline-flex;
  gap: 2px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  min-inline-size: auto;
}
.billing input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.billing label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}
.billing label small {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-text);
  font-size: 12px;
  font-weight: 700;
}
.billing input:checked + label {
  background: #fff;
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--line);
  color: var(--ink);
}
.billing input:focus-visible + label {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
.yearly-only {
  display: none;
}
.pricing:has(#billing-yearly:checked) .monthly-only {
  display: none;
}
.pricing:has(#billing-yearly:checked) span.yearly-only {
  display: inline;
}
.pricing:has(#billing-yearly:checked) p.yearly-only {
  display: block;
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 960px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.plan-featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow);
}
.plan h3 {
  margin-bottom: 4px;
  font-size: 20px;
}
.plan .fit {
  min-height: 48px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 4px;
}
.price strong {
  font-size: 48px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.04em;
}
.price .per {
  color: var(--muted);
  font-size: 15px;
}
.price-note {
  min-height: 22px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}
.plan .check-list {
  flex: 1;
  gap: 11px;
  margin-bottom: 28px;
  font-size: 15px;
}
.plan .btn {
  width: 100%;
}
.included {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.included h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.included p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}
.included .check-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 0;
  font-size: 15px;
}
@media (max-width: 960px) {
  .included {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .included .check-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .included .check-list {
    grid-template-columns: 1fr;
  }
}
.pricing-notes {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  text-align: center;
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  gap: 64px;
}
.faq-layout h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  letter-spacing: -0.035em;
}
.faq-layout .side p:not(.eyebrow) {
  color: var(--ink-2);
}
@media (max-width: 900px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-child {
  border-top: 1px solid var(--line);
}
.faq summary {
  position: relative;
  padding: 20px 44px 20px 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  position: absolute;
  top: 26px;
  right: 8px;
  width: 9px;
  height: 9px;
  border: solid var(--muted);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 0.15s;
}
.faq details[open] summary::after {
  top: 30px;
  transform: rotate(-135deg);
}
.faq details p {
  margin: -4px 0 20px;
  color: var(--ink-2);
}

/* Closing call to action */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 72px 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-deep-2) 100%);
  color: #fff;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 90% at 50% 0%, #000, transparent);
  mask-image: radial-gradient(70% 90% at 50% 0%, #000, transparent);
  pointer-events: none;
}
.cta-band > * {
  position: relative;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(30px, 3.8vw, 44px);
  letter-spacing: -0.035em;
}
.cta-band p {
  max-width: 560px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
}
.cta-band .actions {
  justify-content: center;
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .cta-band {
    padding: 52px 22px;
    border-radius: 18px;
  }
}

/* ——— Footer ——— */
.site-footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer-brand p {
  max-width: 300px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.footer-h {
  margin: 4px 0 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.site-footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer ul a {
  color: var(--ink-2);
  font-size: 15px;
  text-decoration: none;
}
.site-footer ul a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  color: var(--muted);
  font-size: 13.5px;
}
/* The rule spans the content width, not the .wrap padding around it. */
.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  border-top: 1px solid var(--line);
}
@media (max-width: 600px) {
  .footer-bottom::before {
    right: 18px;
    left: 18px;
  }
}
.footer-bottom p {
  margin: 0;
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ——— Page header (docs home, legal, errors) ——— */
.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f1f9f5 0%, #ffffff 100%);
}
.page-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 4.6vw, 52px);
  letter-spacing: -0.04em;
}
.page-hero .lead {
  max-width: 680px;
  margin: 0;
  color: var(--ink-2);
  font-size: 19px;
}
.page-hero .meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* ——— Long-form text ——— */
.prose {
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.75;
}
.prose h1 {
  margin-bottom: 14px;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.035em;
}
.prose h2 {
  margin: 2.2em 0 0.6em;
  font-size: 25px;
  letter-spacing: -0.025em;
}
.prose h3 {
  margin: 1.8em 0 0.5em;
  font-size: 19px;
  letter-spacing: -0.015em;
}
.prose > :first-child {
  margin-top: 0;
}
.prose .lead {
  color: var(--ink-2);
  font-size: 19.5px;
  line-height: 1.6;
}
.prose ul,
.prose ol {
  margin: 0 0 1.25em;
  padding-left: 1.4em;
}
.prose li {
  margin: 0.4em 0;
}
.prose li::marker {
  color: var(--muted);
}
.prose ol > li::marker {
  color: var(--brand-text);
  font-weight: 700;
}
.prose li > ul,
.prose li > ol {
  margin: 0.4em 0;
}
.prose strong {
  color: var(--ink);
  font-weight: 600;
}
.prose a {
  font-weight: 500;
}
.prose code,
.prose kbd {
  padding: 0.12em 0.42em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 0.86em;
}
.prose kbd {
  border-bottom-width: 2px;
}
.table-wrap {
  margin: 0 0 1.5em;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
}
.prose th,
.prose td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose thead th {
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.prose tbody tr:last-child td {
  border-bottom: 0;
}
.note,
.warning {
  position: relative;
  margin: 0 0 1.5em;
  padding: 16px 20px 16px 48px;
  border: 1px solid;
  border-radius: 12px;
  font-size: 15.5px;
  line-height: 1.65;
}
.note::before,
.warning::before {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}
.note {
  border-color: #bfe3d3;
  background: #f0f9f5;
}
.note::before {
  content: "i";
  background: var(--brand);
  font-family: Georgia, serif;
  font-style: italic;
}
.warning {
  border-color: #f0d29a;
  background: #fff8ea;
}
.warning::before {
  content: "!";
  background: #c27c0e;
}
.note > :last-child,
.warning > :last-child {
  margin-bottom: 0;
}

/* ——— Docs ——— */
.docs-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr) 216px;
  gap: 56px;
  padding-top: 44px;
  padding-bottom: 96px;
}
.docs-sidebar,
.toc-rail {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.docs-nav-heading {
  margin: 24px 0 6px 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.docs-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.docs-nav a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.4;
  text-decoration: none;
}
.docs-nav a:hover {
  background: var(--surface);
  color: var(--ink);
}
.docs-nav a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand-text);
  font-weight: 600;
}
.docs-nav-home {
  margin: 0;
}
.docs-menu {
  display: none;
}
.docs-article {
  min-width: 0;
  max-width: 760px;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}
.crumbs a {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--ink);
}
.toc-rail p {
  margin: 4px 0 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.toc-rail ul {
  margin: 0;
  padding: 0 0 0 1px;
  border-left: 1px solid var(--line);
  list-style: none;
}
.toc-rail a {
  display: block;
  margin-left: -1px;
  padding: 5px 0 5px 14px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}
.toc-rail a:hover {
  border-left-color: var(--brand);
  color: var(--ink);
}
.help-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 56px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.help-box p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
}
.help-box b {
  color: var(--ink);
}
@media (max-width: 1200px) {
  .docs-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 48px;
  }
  .toc-rail {
    display: none;
  }
}
@media (max-width: 920px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 20px;
  }
  .docs-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .docs-sidebar > .docs-nav {
    display: none;
  }
  .docs-menu {
    display: block;
    padding: 2px 14px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
  }
  .docs-menu summary {
    padding: 10px 0 4px;
    cursor: pointer;
    font-weight: 600;
  }
}
.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.pager a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
.pager a:hover {
  border-color: var(--brand);
}
.pager span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.pager-next {
  grid-column: 2;
  text-align: right;
}
@media (max-width: 560px) {
  .pager {
    grid-template-columns: 1fr;
  }
  .pager-next {
    grid-column: auto;
  }
}

/* Docs home */
.docs-home {
  padding-top: 48px;
  padding-bottom: 96px;
}
.docs-home .help-box {
  margin-top: 40px;
}
.start-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin: 0 0 56px;
  padding: 24px 28px;
  border: 1px solid #bfe3d3;
  border-radius: 16px;
  background: #f0f9f5;
  color: var(--ink);
  text-decoration: none;
}
.start-card:hover {
  border-color: var(--brand);
}
.start-card .icon {
  width: 48px;
  height: 48px;
  background: var(--brand);
  color: #fff;
}
.start-card b {
  display: block;
  font-size: 18px;
}
.start-card span {
  color: var(--ink-2);
  font-size: 15px;
}
@media (max-width: 600px) {
  .start-card {
    grid-template-columns: 1fr;
  }
}
.doc-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 860px) {
  .doc-sections {
    grid-template-columns: 1fr;
  }
}
.doc-section {
  padding: 26px 26px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.doc-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.doc-section-head h2 {
  margin: 0;
  font-size: 19px;
}
.doc-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.doc-section li + li {
  border-top: 1px solid var(--line);
}
.doc-section a {
  display: block;
  padding: 12px 0;
  color: var(--ink);
  text-decoration: none;
}
.doc-section a b {
  display: block;
  font-weight: 600;
}
.doc-section a span {
  display: block;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}
.doc-section a:hover b {
  color: var(--brand-text);
}

/* ——— Legal ——— */
.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
  padding-top: 48px;
  padding-bottom: 96px;
}
.legal-aside {
  position: sticky;
  top: 96px;
  align-self: start;
}
.legal-article {
  max-width: 760px;
}
@media (max-width: 920px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .legal-aside {
    position: static;
  }
}
.toc-box {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.toc-box p {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.toc-box ol {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
  font-size: 14.5px;
}
.toc-box li {
  margin: 5px 0;
}
.toc-box a {
  color: var(--ink-2);
  text-decoration: none;
}
.toc-box a:hover {
  color: var(--brand-text);
  text-decoration: underline;
}

/* ——— 404 ——— */
.notfound {
  padding: 120px 0 130px;
  text-align: center;
}
.notfound .code {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.notfound h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  letter-spacing: -0.04em;
}
.notfound p {
  color: var(--muted);
  font-size: 18px;
}
.notfound .actions {
  justify-content: center;
}

@media print {
  .site-header,
  .site-footer,
  .docs-sidebar,
  .toc-rail,
  .pager,
  .help-box,
  .skip-link {
    display: none;
  }
  .docs-layout,
  .legal-layout {
    display: block;
  }
}
