@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/syne/v22/8vIH7w-6y57pUHQDzUOA.woff2") format("woff2");
}

:root {
  --ink: #14241f;
  --ink-soft: #3a534b;
  --mist: #e7f1ec;
  --paper: #eef3f0;
  --panel: #f8fbf9;
  --panel-solid: #ffffff;
  --glass: color-mix(in srgb, var(--mist) 52%, #ffffff);
  --line: #c5d4cc;
  --accent: #c45c26;
  --accent-2: #1f6b4a;
  --hero-overlay: rgba(12, 28, 24, 0.42);
  --on-dark: #f4f1ea;
  --on-dark-muted: rgba(244, 241, 234, 0.78);
  --shadow: 0 12px 32px rgba(20, 36, 31, 0.06);
  --shadow-sm: 0 6px 18px rgba(20, 36, 31, 0.045);
  --radius: 4px;
  --radius-md: 8px;
  --space-section: clamp(3.5rem, 6vw, 5.25rem);
  --space-section-sm: clamp(2.25rem, 4vw, 3.35rem);
  --type-display: clamp(2.35rem, 5.5vw, 3.65rem);
  --type-title: clamp(1.75rem, 3.6vw, 2.6rem);
  --gradient-hero:
    linear-gradient(135deg, rgba(215, 238, 227, 0.72) 0%, transparent 52%),
    linear-gradient(320deg, rgba(239, 228, 212, 0.58) 0%, transparent 46%);
  --font-display: "Syne", "Trebuchet MS", sans-serif;
  --font-body: "Figtree", "Gill Sans", sans-serif;
  --focus: 0 0 0 3px rgba(31, 107, 74, 0.22);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 8% -8%, #d7eee3 0%, transparent 55%),
    radial-gradient(900px 480px at 100% 0%, #efe4d4 0%, transparent 48%),
    var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
.wrap { width: min(1120px, calc(100% - 2.5rem)); margin: 0 auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 1rem 0;
}
.site-header.overlay {
  position: absolute;
  left: 0; right: 0; top: 0;
  z-index: 3;
  color: #f6f3ec;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.35rem;
  text-decoration: none;
}
.nav { display: flex; gap: 22px; align-items: center; font-size: 0.95rem; }
.nav a { text-decoration: none; opacity: 0.9; transition: opacity 0.15s ease; }
.nav a:hover { opacity: 1; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  padding: 0.72rem 1.2rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  font-family: inherit;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn.ghost { background: transparent; border: 1px solid currentColor; color: inherit; box-shadow: none; }
.btn.ghost:hover { background: rgba(255,255,255,0.08); }
.btn.ink { background: var(--ink); color: #fff; }
.btn.sm { padding: 0.4rem 0.75rem; font-size: 0.88rem; }
.btn:disabled { opacity: 0.65; cursor: wait; transform: none; box-shadow: none; }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: #f7f4ee;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 28, 24, 0.82) 0%, rgba(12, 28, 24, 0.55) 42%, rgba(12, 28, 24, 0.35) 100%),
    linear-gradient(var(--hero-overlay), rgba(12, 28, 24, 0.68)),
    url("/static/img/hero-workflow.jpg") center/cover no-repeat;
  transform: scale(1.03);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(0, -1.5%, 0); }
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 18vh 0 12vh;
  animation: rise 0.9s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  max-width: 14ch;
}
.hero p.lead { font-size: 1.2rem; max-width: 36ch; opacity: 0.92; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-canvas {
  position: absolute;
  right: 5%;
  bottom: 14%;
  width: min(44vw, 440px);
  height: 300px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.97;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
}
.hc-wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.hc-wires path {
  fill: none;
  stroke: rgba(215, 238, 227, 0.55);
  stroke-width: 1.6;
  stroke-dasharray: 4 6;
  animation: hc-flow 8s linear infinite;
}
@keyframes hc-flow {
  to { stroke-dashoffset: -40; }
}
.hc-node {
  position: absolute;
  box-sizing: border-box;
  height: 12%;
  display: flex;
  align-items: center;
  background: color-mix(in srgb, #14241f 78%, transparent);
  border: 1px solid rgba(215, 238, 227, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f4f1ea;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  padding: 0 0.75rem;
  border-radius: 4px;
  animation: rise 1s ease both;
  white-space: nowrap;
}
.hc-node::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.45rem;
  vertical-align: 0.05rem;
}
.hc-a { left: 0; top: 16%; width: 27%; animation-delay: 0.1s; }
.hc-b { left: 36%; top: 36%; width: 27%; animation-delay: 0.22s; }
.hc-b::before { background: #7ec8a3; }
.hc-c { left: 73%; top: 56%; width: 27%; animation-delay: 0.34s; }
.hc-c::before { background: #7ec8a3; }
.hc-d { left: 20%; top: 82%; width: 27%; animation-delay: 0.46s; }
.hc-d::before { background: var(--accent-2); }

@media (max-width: 820px) {
  .hero-canvas {
    right: 4%;
    bottom: 8%;
    width: min(70vw, 280px);
    height: 200px;
    opacity: 0.75;
  }
  .hc-node { font-size: 0.7rem; padding: 0 0.5rem; }
}

.trust-bar {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.trust-bar p { margin: 0; }

.pillars { display: grid; gap: 0; margin-top: 1.5rem; }
.pillar {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}
.pillar h3 { margin: 0 0 0.35rem; font-family: var(--font-display); font-size: 1.35rem; }
.pillar p { margin: 0; }

.industry-list { display: grid; gap: 2rem; margin-top: 1.4rem; }
.industry { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: start; }
.industry-items { display: grid; gap: 0.85rem; }
.case-link { display: block; text-decoration: none; border-top: 1px solid var(--line); padding-top: 0.75rem; }
.case-link h3 { margin: 0 0 0.25rem; font-family: var(--font-display); }
.case-link p { margin: 0; color: var(--ink-soft); }

.docs-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; align-items: start; }
.docs-layout-3col {
  grid-template-columns: 220px minmax(0, 1fr) 180px;
  grid-template-areas: "nav main toc";
  gap: 40px 48px;
}
.docs-toolbar { display: none; }
.docs-nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
}
.docs-nav-toggle-icon {
  width: 1rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}
.docs-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(10, 18, 15, 0.45);
}
.docs-nav { display: grid; gap: 0.85rem; position: sticky; top: 1.2rem; align-self: start; grid-area: nav; }
.docs-nav-group { display: grid; gap: 0.3rem; }
.docs-nav-group-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.docs-nav a { text-decoration: none; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.35; }
.docs-nav a.is-active { color: var(--accent); font-weight: 700; }
.docs-page-toc {
  position: sticky;
  top: 1.2rem;
  align-self: start;
  font-size: 0.88rem;
  grid-area: toc;
}
.docs-body { grid-area: main; min-width: 0; }
.docs-toc-mobile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  padding: 0.65rem 0.85rem;
}
.docs-toc-mobile summary {
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  list-style: none;
}
.docs-toc-mobile summary::-webkit-details-marker { display: none; }
.docs-toc-mobile[open] .docs-toc-inner-wrap { margin-top: 0.55rem; }
.docs-toc-label {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.docs-toc-inner { display: grid; gap: 0.3rem; }
.docs-toc-inner a,
.docs-page-toc a {
  color: var(--ink-soft);
  text-decoration: none;
  line-height: 1.35;
  border-left: 2px solid transparent;
  padding-left: 0.55rem;
  margin-left: -0.55rem;
}
.docs-toc-inner a:hover,
.docs-page-toc a:hover { color: var(--ink); }
.docs-body h1 { font-family: var(--font-display); letter-spacing: -0.03em; margin: 0 0 0.5rem; }
.docs-body h2 { font-family: var(--font-display); font-size: 1.25rem; margin: 1.6rem 0 0.4rem; }
.docs-body h3 { font-size: 1rem; margin: 1.1rem 0 0.3rem; }
.docs-body pre { margin: 0.6rem 0 1rem; overflow-x: auto; }
.docs-toc { display: grid; gap: 0.25rem; margin: 1rem 0 1.6rem; }
.docs-toc a { color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; }
.docs-toc a:hover { color: var(--ink); }

/* —— Introduction & shared doc blocks —— */
.ddoc-quick-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0 1.75rem;
}
.ddoc-quick-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  background: var(--glass);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.ddoc-quick-card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  transform: translateY(-1px);
}
.ddoc-quick-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.ddoc-quick-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

.ddoc-compare-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
}
.ddoc-compare-table th,
.ddoc-compare-table td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.ddoc-compare-table th {
  background: var(--glass);
  font-weight: 700;
}
.ddoc-compare-table td:first-child { font-weight: 600; }

.ddoc-endpoint {
  margin: 1.25rem 0 1.75rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}
.ddoc-endpoint h3 { margin-top: 0; }

.ddoc-resources-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 0;
}
.ddoc-resource-card {
  display: block;
  text-decoration: none;
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}
.ddoc-resource-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-family: var(--font-display);
}
.ddoc-resource-card p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

.docs-recipes-page .guides-path-list,
.docs-recipes-page .guides-scenario-grid,
.docs-recipes-page .guides-tips-grid,
.docs-recipes-page .guides-ref-list { margin-top: 1rem; }

@media (max-width: 1024px) {
  .docs-layout-3col {
    grid-template-columns: 1fr;
    grid-template-areas:
      "toolbar"
      "toc"
      "main";
    gap: 1rem;
  }
  .docs-toolbar { display: block; grid-area: toolbar; }
  .docs-nav-toggle { display: inline-flex; }
  .docs-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: min(280px, 86vw);
    height: 100vh;
    max-height: 100vh;
    z-index: 40;
    padding: 1.1rem 1rem 1.5rem;
    background: var(--bg);
    border-right: 1px solid var(--line);
    box-shadow: 0 12px 40px rgba(10, 18, 15, 0.18);
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    align-self: auto;
  }
  .docs-nav.is-open { transform: none; }
  body.docs-nav-open .docs-nav-backdrop { display: block; }
  .docs-page-toc {
    position: static;
    grid-area: toc;
  }
  .docs-toc-mobile .docs-toc-label { display: none; }
  .ddoc-quick-cards,
  .ddoc-resources-grid { grid-template-columns: 1fr; }
}

@media (min-width: 1025px) {
  .docs-toc-mobile {
    border: none;
    background: transparent;
    padding: 0;
  }
  .docs-toc-mobile summary { display: none; }
  .docs-toc-mobile .docs-toc-inner-wrap { margin-top: 0; }
}
.docs-hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.5rem; }
.docs-hub-grid a { text-decoration: none; border-top: 1px solid var(--line); padding-top: 0.9rem; }
.docs-hub-grid h2 { margin: 0 0 0.35rem; font-size: 1.2rem; }
.docs-hub-grid p { margin: 0; color: var(--ink-soft); }

/* —— Docs hub —— */
.docs-hub { max-width: 46rem; }
.docs-hub-hero {
  margin: -0.25rem -0.5rem 1.25rem;
  padding: 0.5rem 0.5rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(125deg, rgba(215, 238, 227, 0.5) 0%, transparent 55%);
  border-radius: var(--radius);
}
.docs-hub-hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1.05;
  max-width: 10ch;
  animation: rise 0.7s ease both;
}
.docs-hub-lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin: 0.45rem 0 0.75rem;
  animation: rise 0.8s ease both;
}
.docs-hub-who { color: var(--ink-soft); font-size: 0.95rem; }
.docs-hub-hero .cta-row { margin-top: 0.85rem; animation: rise 0.95s ease both; }

.docs-hub-flow {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0.85rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.3rem;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  counter-reset: dhf;
}
.docs-hub-flow li {
  counter-increment: dhf;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.docs-hub-flow li::before {
  content: counter(dhf, decimal-leading-zero);
  font-size: 0.72rem;
  color: var(--accent-2);
}
.docs-hub-flow li:not(:last-child)::after {
  content: "→";
  margin-left: 0.4rem;
  color: var(--line);
  font-weight: 500;
}
.docs-hub-picture {
  margin: 0 0 1.75rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.docs-hub-section { margin: 0 0 2.25rem; }
.docs-hub-section > h2 {
  margin-top: 0.2rem;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
}

.docs-hub-path {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.docs-hub-path a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem 1rem;
  align-items: start;
  text-decoration: none;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  transition: transform 0.15s ease, background 0.15s ease;
}
.docs-hub-path li:last-child a { border-bottom: 1px solid var(--line); }
.docs-hub-path a:hover {
  transform: translateX(3px);
  background: var(--glass);
}
.docs-hub-n {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent-2);
  font-size: 1.2rem;
  line-height: 1.15;
}
.docs-hub-path strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}
.docs-hub-path a span span { color: var(--ink-soft); font-size: 0.92rem; }
.docs-hub-go { color: var(--accent); font-weight: 700; padding-top: 0.15rem; }

.docs-hub-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.35rem;
  margin-top: 1rem;
}
.docs-hub-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.docs-hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  padding: 1rem 0 0.85rem;
  border-top: 2px solid var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.docs-hub-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.docs-hub-tag {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.docs-hub-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.docs-hub-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; flex: 1; }
.docs-hub-read {
  margin-top: 0.35rem;
  font-weight: 650;
  color: var(--accent);
  font-size: 0.92rem;
}

.docs-hub-tips {
  padding: 1rem 0 0.25rem;
  background: linear-gradient(180deg, rgba(31, 107, 74, 0.06) 0%, transparent 80%);
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: var(--radius);
}
.docs-hub-tips-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  margin-top: 0.85rem;
}
.docs-hub-tips-grid h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}
.docs-hub-tips-grid p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

.docs-hub-more {
  display: grid;
  gap: 0;
  margin-top: 0.75rem;
}
.docs-hub-more a {
  display: block;
  text-decoration: none;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  transition: transform 0.15s ease;
}
.docs-hub-more a:last-child { border-bottom: 1px solid var(--line); }
.docs-hub-more a:hover { transform: translateX(3px); }
.docs-hub-more h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.docs-hub-more p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

@media (max-width: 720px) {
  .docs-hub-cards,
  .docs-hub-cards-3,
  .docs-hub-tips-grid { grid-template-columns: 1fr; }
  .docs-hub-hero h1 { max-width: none; }
}
.docs-steps { padding-left: 1.1rem; }
.docs-steps li { margin: 0 0 1rem; }
.docs-steps p { margin: 0.3rem 0 0; color: var(--ink-soft); }

/* —— Getting started doc —— */
.gs-doc { max-width: 44rem; }
.gs-hero {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(215, 238, 227, 0.45) 0%, transparent 55%);
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.25rem;
  border-radius: var(--radius);
}
.gs-hero h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.05;
  max-width: 14ch;
  animation: rise 0.7s ease both;
}
.gs-lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin: 0.5rem 0 0.75rem;
  animation: rise 0.8s ease both;
}
.gs-who { color: var(--ink-soft); font-size: 0.95rem; }
.gs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1rem 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--accent-2);
  animation: rise 0.9s ease both;
}
.gs-meta span {
  padding-left: 0.7rem;
  border-left: 3px solid var(--accent-2);
}
.gs-cta { margin-top: 0.5rem; animation: rise 1s ease both; }

.gs-flow {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0.9rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.35rem;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  counter-reset: gsf;
}
.gs-flow li {
  counter-increment: gsf;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.gs-flow li::before {
  content: counter(gsf, decimal-leading-zero);
  font-size: 0.72rem;
  color: var(--accent-2);
  opacity: 0.85;
}
.gs-flow li:not(:last-child)::after {
  content: "→";
  margin-left: 0.45rem;
  color: var(--line);
  font-weight: 500;
}

.gs-toc { margin: 0 0 1.75rem; }
.gs-toc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
}
.gs-toc-row a {
  font-weight: 650;
  color: var(--accent-2);
  text-decoration: none;
  font-size: 0.9rem;
}
.gs-toc-row a:hover { color: var(--ink); }

.gs-section { margin: 0 0 2rem; }
.gs-check {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.gs-check li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}
.gs-check li:last-child { border-bottom: 1px solid var(--line); }
.gs-check-n {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent-2);
  font-size: 1.05rem;
  line-height: 1.2;
}

.gs-words {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1.25rem;
  margin-top: 0.85rem;
}
.gs-word {
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}
.gs-word p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.gs-steps {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.35rem;
}
.gs-step {
  padding: 1.1rem 0 0.2rem;
  border-top: 2px solid var(--ink);
  animation: rise 0.7s ease both;
  animation-delay: calc(var(--i, 0) * 0.05s);
}
.gs-step-head {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.45rem;
}
.gs-step-n {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent);
  font-size: 1.15rem;
}
.gs-step h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.gs-step > p { color: var(--ink-soft); }
.gs-callouts {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.gs-see,
.gs-tip {
  margin: 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.gs-see {
  background: rgba(31, 107, 74, 0.07);
  border-left: 3px solid var(--accent-2);
}
.gs-tip {
  background: rgba(196, 92, 38, 0.07);
  border-left: 3px solid var(--accent);
}
.gs-see em,
.gs-tip em {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
  margin-right: 0.25rem;
}

.gs-faq { margin-top: 0.5rem; }
.gs-faq-item {
  border-top: 1px solid var(--line);
  padding: 0.8rem 0;
}
.gs-faq-item:last-child { border-bottom: 1px solid var(--line); }
.gs-faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
}
.gs-faq-item summary::-webkit-details-marker { display: none; }
.gs-faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 650;
}
.gs-faq-item[open] summary::after { content: "–"; }
.gs-faq-item p {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
}

.gs-next-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
  margin-top: 0.85rem;
}
.gs-next-item {
  display: grid;
  gap: 0.3rem;
  text-decoration: none;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  transition: transform 0.15s ease;
}
.gs-next-item:hover { transform: translateX(3px); }
.gs-next-item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.gs-next-item p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.gs-next-item span { color: var(--accent); font-weight: 700; }

@media (max-width: 720px) {
  .gs-words,
  .gs-next-grid { grid-template-columns: 1fr; }
  .gs-hero h1 { max-width: none; }
}

/* Shared docs-article extras (concepts / API / guides) */
.ddoc-groups { display: grid; gap: 1.75rem; margin: 1.25rem 0 0; }
.ddoc-group-label {
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 0.35rem;
}
.ddoc-term {
  padding: 1rem 0 0.35rem;
  border-top: 1px solid var(--line);
}
.ddoc-term h2 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}
.ddoc-term .ddoc-ex {
  margin: 0.55rem 0 0;
  padding: 0.55rem 0.75rem;
  background: rgba(31, 107, 74, 0.07);
  border-left: 3px solid var(--accent-2);
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.ddoc-term .ddoc-ex em {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
  margin-right: 0.25rem;
}
.ddoc-path {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.ddoc-api-block {
  margin: 0 0 1.75rem;
  padding-top: 0.35rem;
}
.ddoc-api-block h2 {
  margin-top: 0.35rem;
}
.ddoc-api-block h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 1.35rem 0 0.4rem;
  font-size: 1.05rem;
}
.ddoc-api-block > p,
.ddoc-api-block > .muted {
  max-width: 42rem;
}
.docs-body pre,
.ddoc-api-block pre,
.gs-doc pre {
  margin: 0.55rem 0 1rem;
  overflow-x: auto;
  background: #14241f;
  color: #e8f2ec;
  border: 1px solid #243830;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 0.9rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  line-height: 1.55;
  font-family: "SFMono-Regular", ui-monospace, "Cascadia Code", "Menlo", Consolas, monospace;
  tab-size: 2;
  -webkit-overflow-scrolling: touch;
}
.docs-body pre::selection,
.ddoc-api-block pre::selection,
.gs-doc pre::selection,
.docs-body pre *::selection,
.ddoc-api-block pre *::selection,
.gs-doc pre *::selection {
  background: rgba(196, 92, 38, 0.45);
  color: #fff;
}
.docs-body pre::-webkit-scrollbar,
.ddoc-api-block pre::-webkit-scrollbar,
.gs-doc pre::-webkit-scrollbar {
  height: 8px;
}
.docs-body pre::-webkit-scrollbar-thumb,
.ddoc-api-block pre::-webkit-scrollbar-thumb,
.gs-doc pre::-webkit-scrollbar-thumb {
  background: #3a534b;
  border-radius: 4px;
}
.ddoc-api-block pre + pre {
  margin-top: -0.35rem;
  border-top: 1px dashed #2f4a3f;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.ddoc-api-block pre:has(+ pre) {
  margin-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.docs-body code,
.gs-doc code {
  font-family: "SFMono-Regular", ui-monospace, "Cascadia Code", "Menlo", Consolas, monospace;
  font-size: 0.86em;
  background: rgba(20, 36, 31, 0.08);
  color: #1a3d32;
  padding: 0.12em 0.35em;
  border-radius: 3px;
  border: 1px solid rgba(20, 36, 31, 0.08);
}
.docs-body pre code,
.gs-doc pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border: 0;
  font-size: inherit;
}
.docs-api-page .ddoc-api-block + .ddoc-api-block {
  border-top: 1px solid rgba(201, 216, 208, 0.55);
  padding-top: 1.25rem;
  margin-top: 0.5rem;
}
.docs-api-page .gs-toc-row a[href^="#"] {
  font-variant-numeric: tabular-nums;
}
.ddoc-steps-cards {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}
.ddoc-step-card {
  padding: 1rem 0 0.35rem;
  border-top: 2px solid var(--ink);
}
.ddoc-step-card h2,
.ddoc-step-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
}
.ddoc-step-card .ddoc-n {
  color: var(--accent);
  font-weight: 800;
}
.ddoc-step-card > p { color: var(--ink-soft); }
.ddoc-foot {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.article-prose { max-width: 46rem; }
.docs-body .docs-steps p { margin: 0.35rem 0 0; }
.docs-body .docs-steps em { font-style: normal; font-weight: 600; color: var(--ink-soft); font-size: 0.9em; }
.docs-body section ul { margin: 0.4rem 0 1rem; padding-left: 1.2rem; }
.docs-body section li { margin: 0.25rem 0; }
.flow-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  align-items: center;
  font-weight: 650;
  margin: 0.8rem 0 1.2rem;
}
.field-sample { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.field-sample th, .field-sample td { text-align: left; border-bottom: 1px solid var(--line); padding: 0.45rem 0.5rem 0.45rem 0; }

.guide-list { display: grid; gap: 0; }
.guide-item { display: block; text-decoration: none; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.guide-item h2 { margin: 0 0 0.3rem; font-family: var(--font-display); font-size: 1.35rem; }
.guide-item p { margin: 0 0 0.4rem; color: var(--ink-soft); }

/* —— Guides hub —— */
.guides-page { overflow: clip; }
.guides-hero {
  padding-top: 2.5rem;
  padding-bottom: 1rem;
  background: var(--gradient-hero);
}
.guides-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 2.5rem;
  align-items: end;
}
.guides-title {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 12ch;
  animation: rise 0.75s ease both;
}
.guides-lead {
  max-width: 38rem;
  font-size: 1.08rem;
  animation: rise 0.85s ease both;
}
.guides-hero-copy .cta-row { animation: rise 0.95s ease both; }
.guides-hero-aside {
  animation: rise 1s ease both;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(6px);
}
.guides-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  counter-reset: gf;
}
.guides-flow li {
  counter-increment: gf;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.guides-flow li::before {
  content: counter(gf, decimal-leading-zero);
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--accent-2);
  opacity: 0.85;
  min-width: 1.6rem;
}
.guides-flow li + li {
  border-top: 1px dashed var(--line);
  padding-top: 0.65rem;
}

.guides-path-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.guides-path-item a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.25rem;
  align-items: start;
  text-decoration: none;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
  transition: background 0.2s ease, transform 0.2s ease;
  animation: rise 0.7s ease both;
  animation-delay: calc(var(--i, 0) * 0.06s);
}
.guides-path-item:last-child a { border-bottom: 1px solid var(--line); }
.guides-path-item a:hover {
  background: var(--glass);
  transform: translateX(4px);
}
.guides-path-n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--accent-2);
  letter-spacing: -0.03em;
  line-height: 1;
  padding-top: 0.15rem;
}
.guides-path-body {
  display: grid;
  gap: 0.25rem;
}
.guides-path-body strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.guides-path-body span { color: var(--ink-soft); }
.guides-path-go {
  color: var(--accent);
  font-weight: 700;
  padding-top: 0.2rem;
  opacity: 0.7;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.guides-path-item a:hover .guides-path-go {
  opacity: 1;
  transform: translateX(3px);
}

.guides-scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.guides-scenario {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-decoration: none;
  padding: 1.25rem 0 1.1rem;
  border-top: 2px solid var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease;
  animation: rise 0.75s ease both;
  animation-delay: calc(var(--i, 0) * 0.08s);
}
.guides-scenario:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.guides-scenario-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.guides-tag {
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.guides-scenario h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.guides-scenario > p { margin: 0; color: var(--ink-soft); }
.guides-who {
  font-size: 0.9rem;
  color: var(--ink-soft);
  opacity: 0.9;
}
.guides-read {
  margin-top: auto;
  padding-top: 0.6rem;
  font-weight: 650;
  color: var(--accent);
}

.guides-tips {
  background:
    linear-gradient(180deg, rgba(31, 107, 74, 0.06) 0%, transparent 70%);
}
.guides-tips-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}
.guides-tip {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  animation: rise 0.7s ease both;
  animation-delay: calc(var(--i, 0) * 0.07s);
}
.guides-tip h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.guides-tip p { margin: 0; color: var(--ink-soft); }

.guides-ref-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
  margin-top: 1.25rem;
}
.guides-ref-item {
  display: block;
  text-decoration: none;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  transition: transform 0.15s ease;
}
.guides-ref-item:hover { transform: translateX(3px); }
.guides-ref-item h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.guides-ref-item p { margin: 0 0 0.45rem; color: var(--ink-soft); }
.guides-ref-item span { font-weight: 650; color: var(--accent); }

.guides-band .cta-row { margin-top: 1rem; }

.guide-detail .guide-intro { font-size: 1.05rem; }
.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 1.5rem 0 2rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.guide-toc a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--accent-2);
  opacity: 0.9;
}
.guide-toc a:hover { opacity: 1; }
.guide-sec { margin: 0 0 1.75rem; }
.guide-sec h2 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
}
.guide-tip {
  margin: 0.65rem 0 0;
  padding: 0.65rem 0.85rem;
  border-left: 3px solid var(--accent-2);
  background: rgba(31, 107, 74, 0.06);
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.guide-next { margin-top: 2.5rem; }
.guide-next h2 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
}

@media (max-width: 900px) {
  .guides-hero-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .guides-scenario-grid,
  .guides-tips-grid { grid-template-columns: 1fr; }
  .guides-ref-list { grid-template-columns: 1fr; gap: 0; }
  .guides-title { max-width: none; }
}

.plan-bullets { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--ink-soft); }
.plan-bullets li { margin: 0.15rem 0; }
.compare-wrap { overflow-x: auto; margin-top: 1.2rem; }
.compare-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.92rem; }
.compare-table th, .compare-table td { text-align: left; padding: 0.55rem 0.7rem 0.55rem 0; border-bottom: 1px solid var(--line); }
.compare-table thead th { font-weight: 700; }
.tpl-list { display: grid; gap: 0; margin-top: 1.2rem; }
.tpl-item { display: block; text-decoration: none; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.tpl-item h2, .tpl-item h3 { margin: 0 0 0.3rem; font-family: var(--font-display); }
.tpl-item p { margin: 0; color: var(--ink-soft); }

/* —— Use cases hub —— */
.uc-page { overflow: clip; }
.uc-hero {
  padding-top: 2.5rem;
  padding-bottom: 1rem;
  background: var(--gradient-hero);
}
.uc-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 2.25rem;
  align-items: end;
}
.uc-title {
  font-size: clamp(2.35rem, 5.5vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  animation: rise 0.7s ease both;
}
.uc-lead {
  max-width: 38rem;
  font-size: 1.06rem;
  animation: rise 0.85s ease both;
}
.uc-hero .cta-row { animation: rise 0.95s ease both; }
.uc-hero-aside {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(6px);
  animation: rise 1s ease both;
}
.uc-flow {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  counter-reset: ucf;
}
.uc-flow li {
  counter-increment: ucf;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.uc-flow li::before {
  content: counter(ucf, decimal-leading-zero);
  font-size: 0.75rem;
  color: var(--accent-2);
  min-width: 1.5rem;
}
.uc-flow li + li {
  border-top: 1px dashed var(--line);
  padding-top: 0.55rem;
}

.uc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.4rem;
}
.uc-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  padding: 1.15rem 0 1rem;
  border-top: 2px solid var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease;
  animation: rise 0.75s ease both;
  animation-delay: calc(var(--i, 0) * 0.07s);
}
.uc-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.uc-card-meta,
.uc-detail-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.uc-tag {
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.uc-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.uc-card > p { margin: 0; color: var(--ink-soft); }
.uc-who { font-size: 0.9rem; color: var(--ink-soft); }
.uc-out {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 0.5rem 0.65rem;
  background: rgba(31, 107, 74, 0.07);
  border-left: 3px solid var(--accent-2);
}
.uc-out em,
.uc-out-banner em {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
  margin-right: 0.2rem;
}
.uc-read {
  margin-top: auto;
  padding-top: 0.45rem;
  font-weight: 650;
  color: var(--accent);
}

.uc-tips {
  background: linear-gradient(180deg, rgba(31, 107, 74, 0.06) 0%, transparent 75%);
}
.uc-tips-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.uc-tip {
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}
.uc-tip h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.uc-tip p { margin: 0; color: var(--ink-soft); }

.uc-more {
  display: grid;
  gap: 0;
  margin-top: 0.85rem;
}
.uc-more a {
  display: block;
  text-decoration: none;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  transition: transform 0.15s ease;
}
.uc-more a:last-child { border-bottom: 1px solid var(--line); }
.uc-more a:hover { transform: translateX(3px); }
.uc-more h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.uc-more p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* Features page */
.feat-hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
  align-items: end;
}
.feat-title { max-width: 14ch; }
.feat-lead { max-width: 40rem; }
.feat-jump { margin: 0.85rem 0 0; }
.feat-jump a { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; }
.feat-jump a:hover { color: var(--accent); }
.feat-hero-aside {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feat-flow {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  counter-reset: featf;
}
.feat-flow li {
  counter-increment: featf;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.feat-flow li::before {
  content: counter(featf, decimal-leading-zero);
  font-size: 0.75rem;
  color: var(--accent-2);
  min-width: 1.5rem;
}
.feat-flow li + li {
  border-top: 1px dashed var(--line);
  padding-top: 0.55rem;
}
.feat-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}
.feat-cap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  background: var(--panel);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.35rem;
  align-content: start;
}
.feat-cap:nth-child(4),
.feat-cap:nth-child(5) {
  grid-column: span 1;
}
.feat-cap h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.feat-cap p { margin: 0; color: var(--ink-soft); line-height: 1.5; }
.feat-cap-cta { margin-top: 0.35rem !important; }
.feat-cap-cta a { text-decoration: none; font-weight: 650; color: var(--accent-2); }
.feat-loop-grid,
.feat-extra-grid,
.feat-nodes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.35rem;
}
.feat-loop-item,
.feat-extra-item,
.feat-node {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.feat-loop-n {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.feat-loop-item h3,
.feat-extra-item h3,
.feat-node h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.feat-loop-item p,
.feat-extra-item p,
.feat-node p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}
.feat-nodes-cta { margin-top: 1rem; }
.feat-nodes-cta a { text-decoration: none; font-weight: 650; }
.feat-tpl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.feat-tpl {
  display: grid;
  gap: 0.4rem;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.feat-tpl:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.feat-tpl h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.feat-tpl p { margin: 0; color: var(--ink-soft); line-height: 1.5; }
.feat-tpl span {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--accent-2);
}
.feat-more {
  display: grid;
  gap: 0;
  margin-top: 0.85rem;
}
.feat-more a {
  display: block;
  text-decoration: none;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  transition: transform 0.15s ease;
}
.feat-more a:last-child { border-bottom: 1px solid var(--line); }
.feat-more a:hover { transform: translateX(3px); }
.feat-more h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.feat-more p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
@media (max-width: 960px) {
  .feat-hero-inner,
  .feat-cap-grid,
  .feat-loop-grid,
  .feat-extra-grid,
  .feat-nodes,
  .feat-tpl-grid { grid-template-columns: 1fr 1fr; }
  .feat-title { max-width: none; }
}
@media (max-width: 640px) {
  .feat-hero-inner,
  .feat-cap-grid,
  .feat-loop-grid,
  .feat-extra-grid,
  .feat-nodes,
  .feat-tpl-grid { grid-template-columns: 1fr; }
}

.uc-detail .uc-out-banner {
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.85rem;
  background: rgba(31, 107, 74, 0.07);
  border-left: 3px solid var(--accent-2);
  color: var(--ink-soft);
}
.uc-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1.4rem 0 1.75rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.uc-toc a {
  text-decoration: none;
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--accent-2);
}
.uc-sec { margin: 0 0 1.75rem; }
.uc-sec h2 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}
.uc-steps {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.uc-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
.uc-steps li:last-child { border-bottom: 1px solid var(--line); }
.uc-step-n {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent);
}
.uc-setup {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.65rem;
}
.uc-setup > div {
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.25rem;
}
.uc-setup span {
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 650;
}
.uc-setup strong { font-family: var(--font-display); }
.uc-guide-link { margin: 0.5rem 0 0; }
.uc-others { margin-top: 2.25rem; }

@media (max-width: 900px) {
  .uc-hero-inner,
  .uc-grid,
  .uc-tips-grid,
  .uc-setup { grid-template-columns: 1fr; }
  .uc-title { max-width: none; }
}

.section { padding: var(--space-section) 0; }
.section--flush-top { padding-top: 0; }
.section--tight { padding: var(--space-section-sm) 0; }
.section h2 {
  font-family: var(--font-display);
  font-size: var(--type-title);
  letter-spacing: -0.03em;
  margin: 0 0 0.55rem;
  line-height: 1.12;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
  line-height: 1.15;
}
.page-sub {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 42rem;
}
.muted { color: var(--ink-soft); }

/* Marketing shared polish */
.mkt-hero {
  padding-top: var(--space-section-sm);
  padding-bottom: var(--space-section-sm);
  background: var(--gradient-hero);
}
.mkt-hero .page-title {
  font-size: var(--type-display);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 14ch;
}
.mkt-hero .page-sub { font-size: 1.08rem; }
.mkt-hero .cta-row { margin-top: 1.35rem; }

/* Hub heroes share the same display scale */
.guides-hero .page-title,
.faq-hero .page-title,
.uc-hero .page-title {
  font-size: var(--type-display);
  line-height: 0.98;
}
.section-jump {
  margin: 0.85rem 0 0;
}
.section-jump a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 650;
}
.section-jump a:hover { color: var(--accent); }

.mkt-aside,
.guides-hero-aside,
.uc-hero-aside,
.faq-hero-aside,
.feat-hero-aside,
.svc-hero-aside,
.legal-toc,
.contact-aside,
.about-reach-aside {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: none;
}

.mkt-card,
.feat-cap, .feat-loop-item, .feat-extra-item, .feat-node, .feat-tpl,
.pricing-how-item, .pricing-pick-item,
.about-pos, .about-why-item, .about-how-item, .about-stack-item, .about-who-item,
.sec-pillar, .sec-card,
.contact-topic,
.svc-path, .svc-need-item, .svc-how-item, .svc-deliv-item, .svc-job,
.plan {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.acc-item,
.faq-item,
.pricing-faq-item,
.sec-faq-item,
.contact-faq-item,
.svc-faq-item,
.gs-faq-item {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}
.acc-item:last-child,
.faq-item:last-child,
.pricing-faq-item:last-child,
.sec-faq-item:last-child,
.contact-faq-item:last-child,
.svc-faq-item:last-child,
.gs-faq-item:last-child {
  border-bottom: 1px solid var(--line);
}
.acc-item summary,
.faq-item summary,
.pricing-faq-item summary,
.sec-faq-item summary,
.contact-faq-item summary,
.svc-faq-item summary,
.gs-faq-item summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.acc-item summary::-webkit-details-marker,
.faq-item summary::-webkit-details-marker,
.pricing-faq-item summary::-webkit-details-marker,
.sec-faq-item summary::-webkit-details-marker,
.contact-faq-item summary::-webkit-details-marker,
.svc-faq-item summary::-webkit-details-marker,
.gs-faq-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after,
.faq-item summary::after,
.pricing-faq-item summary::after,
.sec-faq-item summary::after,
.contact-faq-item summary::after,
.svc-faq-item summary::after,
.gs-faq-item summary::after {
  content: "+";
  color: var(--accent-2);
  font-weight: 500;
  flex: 0 0 auto;
}
.acc-item[open] summary::after,
.faq-item[open] summary::after,
.pricing-faq-item[open] summary::after,
.sec-faq-item[open] summary::after,
.contact-faq-item[open] summary::after,
.svc-faq-item[open] summary::after,
.gs-faq-item[open] summary::after { content: "–"; }
.acc-item p,
.faq-item p,
.pricing-faq-item p,
.sec-faq-item p,
.contact-faq-item p,
.svc-faq-item p,
.gs-faq-item p {
  margin: 0.55rem 0 0.15rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.modes article {
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.modes h3 { font-family: var(--font-display); font-size: 1.6rem; margin: 0 0 0.4rem; }

.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  animation: rise 0.7s ease both;
}
.step:nth-child(2) { animation-delay: 0.08s; }
.step:nth-child(3) { animation-delay: 0.16s; }
.step:nth-child(4) { animation-delay: 0.24s; }
.who { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.section .who + h2 { margin-top: 0.15rem; }

.grid-3, .grid-2 { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }
.case { padding-top: 1rem; border-top: 1px solid var(--line); }
.case h3 { margin: 0 0 0.35rem; font-family: var(--font-display); }

.band {
  background: var(--ink);
  color: var(--on-dark);
  padding: var(--space-section-sm) 0;
}
.band h2 {
  color: var(--on-dark);
  margin-bottom: 0.45rem;
}
.band p { color: var(--on-dark-muted); max-width: 42rem; }
.band .btn.ghost {
  border-color: color-mix(in srgb, var(--on-dark) 55%, transparent);
  color: var(--on-dark);
}
.band .btn.ghost:hover { background: rgba(255,255,255,0.08); }
.faq details { border-top: 1px solid var(--line); padding: 0.9rem 0; }
.faq summary { cursor: pointer; font-weight: 600; }

/* —— FAQ hub —— */
.faq-page { overflow: clip; }
.faq-hero {
  padding-top: 2.5rem;
  padding-bottom: 1rem;
  background: var(--gradient-hero);
}
.faq-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 2.5rem;
  align-items: end;
}
.faq-title {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 10ch;
  animation: rise 0.75s ease both;
}
.faq-lead {
  max-width: 36rem;
  font-size: 1.08rem;
  animation: rise 0.85s ease both;
}
.faq-hero-copy .cta-row { animation: rise 0.95s ease both; }
.faq-hero-aside {
  animation: rise 1s ease both;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(6px);
}
.faq-aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.faq-aside-list li {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  padding-left: 0.85rem;
  border-left: 3px solid var(--accent-2);
}
.faq-aside-list li + li {
  border-top: 1px dashed var(--line);
  padding-top: 0.7rem;
}

.faq-jump { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.faq-jump-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin-top: 0.4rem;
}
.faq-jump-row a {
  text-decoration: none;
  font-weight: 650;
  color: var(--accent-2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.faq-jump-row a:hover {
  border-bottom-color: var(--accent-2);
  transform: translateY(-1px);
}

.faq-group { padding-top: 1.5rem; }
.faq-group-inner { max-width: 46rem; }
.faq-group-head {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin-bottom: 0.35rem;
}
.faq-group-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
}
.faq-acc { margin-top: 0.5rem; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 0.95rem 0;
  animation: rise 0.65s ease both;
  animation-delay: calc(var(--i, 0) * 0.04s);
}
.faq-group .faq-acc > .faq-item:last-child {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
  line-height: 1.35;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-weight: 650;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  content: "–";
}
.faq-item p {
  margin: 0.7rem 0 0.15rem;
  color: var(--ink-soft);
  max-width: 42rem;
}

.faq-still {
  background: linear-gradient(180deg, rgba(196, 92, 38, 0.06) 0%, transparent 70%);
}
.faq-still-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: end;
}
.faq-still-links {
  display: grid;
  gap: 0.55rem;
}
.faq-still-links a {
  text-decoration: none;
  font-weight: 650;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  border-top: 1px solid var(--line);
  padding-top: 0.55rem;
  transition: transform 0.15s ease, color 0.15s ease;
}
.faq-still-links a:hover {
  transform: translateX(4px);
  color: var(--accent);
}
.faq-band .cta-row { margin-top: 1rem; }

@media (max-width: 900px) {
  .faq-hero-inner,
  .faq-still-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .faq-title { max-width: none; }
}

.site-footer {
  padding: 3.25rem 0 4.25rem;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--mist) 40%, transparent);
}
.site-footer .who { margin-bottom: 0.55rem; }
.site-footer a:hover { color: var(--accent-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.site-footer a { text-decoration: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }

.price-toggle {
  display: inline-flex;
  gap: 4px;
  margin: 1.4rem 0 2rem;
  padding: 4px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.price-toggle button {
  background: transparent;
  border: 0;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font: inherit;
  border-radius: 2px;
}
.price-toggle button.on { background: var(--ink); color: #fff; }
.plan-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan {
  border: 1px solid var(--line);
  padding: 1.4rem;
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.35rem;
  align-content: start;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.plan.on { border-color: var(--accent-2); box-shadow: inset 0 0 0 1px var(--accent-2), var(--shadow); }
.plan h3 { margin: 0; font-family: var(--font-display); font-size: 1.25rem; }
.plan .amt { font-family: var(--font-display); font-size: 2.1rem; margin: 0.4rem 0 0.6rem; letter-spacing: -0.03em; }
.plan .amt .yr { display: none; }
.plan .btn { margin-top: 0.6rem; width: 100%; }
body.show-year .plan .amt .mo { display: none; }
body.show-year .plan .amt .yr { display: inline; }
.plan .amt small { font-size: 0.45em; font-weight: 500; letter-spacing: 0; margin-left: 0.2rem; color: var(--ink-soft); }
.plan-quota { margin: 0; font-size: 0.92rem; color: var(--accent); font-weight: 600; }
.plan-bill { margin: 0 0 0.4rem; font-size: 0.82rem; }
.plan .yr-only { display: none; }
body.show-year .plan .mo-only { display: none; }
body.show-year .plan .yr-only { display: block; }
.plan-popular {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), var(--shadow);
  position: relative;
}
.plan-badge {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.price-toggle .price-save {
  margin-left: 0.35rem;
  font-size: 0.75rem;
  opacity: 0.85;
}
.price-toggle button.on .price-save { opacity: 1; }
.pricing-hero .pricing-title { max-width: 14ch; }
.pricing-hero .pricing-lead { max-width: 42rem; }
.pricing-jump { margin: -0.6rem 0 0; }
.pricing-jump a { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; }
.pricing-jump a:hover { color: var(--accent); }
.pricing-how-grid,
.pricing-pick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 1.4rem;
}
.pricing-how-item,
.pricing-pick-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.pricing-how-item h3,
.pricing-pick-item h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.pricing-how-item p,
.pricing-pick-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}
.pricing-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pricing-split-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.pricing-split-item h2 { margin-top: 0; }
.pricing-faq-inner { max-width: 720px; }
.pricing-faq-acc { margin-top: 1rem; }
.pricing-faq-item {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}
.pricing-faq-item:last-child { border-bottom: 1px solid var(--line); }
.pricing-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.pricing-faq-item summary::-webkit-details-marker { display: none; }
.pricing-faq-item summary::after { content: "+"; color: var(--ink-soft); font-weight: 500; }
.pricing-faq-item[open] summary::after { content: "–"; }
.pricing-faq-item p {
  margin: 0.55rem 0 0.2rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.compare-wrap { overflow-x: auto; margin-top: 1rem; }
.pricing-page .compare-table thead th:not(:first-child),
.pricing-page .compare-table td { text-align: center; }
@media (max-width: 960px) {
  .pricing-how-grid,
  .pricing-pick-grid,
  .pricing-split { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pricing-how-grid,
  .pricing-pick-grid,
  .pricing-split { grid-template-columns: 1fr; }
}

.about-hero .about-title { max-width: 12ch; }
.about-hero .about-lead { max-width: 40rem; }
.about-jump { margin: 0.85rem 0 0; }
.about-jump a { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; }
.about-jump a:hover { color: var(--accent); }
.about-pos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}
.about-pos {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.about-pos-muted {
  background: color-mix(in srgb, var(--glass) 80%, transparent);
}
.about-pos h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
}
.about-pos p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}
.about-why-grid,
.about-how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.35rem;
}
.about-stack-grid,
.about-who-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.35rem;
}
.about-why-item,
.about-how-item,
.about-stack-item,
.about-who-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.about-how-n {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.about-why-item h3,
.about-how-item h3,
.about-stack-item h3,
.about-who-item h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.about-why-item p,
.about-how-item p,
.about-stack-item p,
.about-who-item p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
  font-size: 0.95rem;
}
.about-stack-cta { margin-top: 1rem; }
.about-stack-cta a { text-decoration: none; font-weight: 650; }
.about-reach {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}
.about-reach-aside {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  background: var(--glass);
  box-shadow: none;
  backdrop-filter: blur(8px);
  display: grid;
  gap: 1.1rem;
}
.about-reach-aside a {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.about-more {
  display: grid;
  gap: 0;
  margin-top: 0.85rem;
}
.about-more a {
  display: block;
  text-decoration: none;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  transition: transform 0.15s ease;
}
.about-more a:last-child { border-bottom: 1px solid var(--line); }
.about-more a:hover { transform: translateX(3px); }
.about-more h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.about-more p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
@media (max-width: 960px) {
  .about-pos-grid,
  .about-why-grid,
  .about-how-grid,
  .about-stack-grid,
  .about-who-grid,
  .about-reach { grid-template-columns: 1fr 1fr; }
  .about-title { max-width: none; }
}
@media (max-width: 640px) {
  .about-pos-grid,
  .about-why-grid,
  .about-how-grid,
  .about-stack-grid,
  .about-who-grid,
  .about-reach { grid-template-columns: 1fr; }
}

.sec-hero .sec-title { max-width: 12ch; }
.sec-hero .sec-lead { max-width: 40rem; }
.sec-jump { margin: 0.85rem 0 0; }
.sec-jump a { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; }
.sec-jump a:hover { color: var(--accent); }
.sec-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.35rem;
}
.sec-pillar,
.sec-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.sec-pillar h3,
.sec-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.sec-pillar p,
.sec-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
  font-size: 0.95rem;
}
.sec-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.35rem;
}
.sec-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.35rem;
}
.sec-enterprise-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.sec-faq-inner { max-width: 720px; }
.sec-faq-acc { margin-top: 1rem; }
.sec-faq-item {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}
.sec-faq-item:last-child { border-bottom: 1px solid var(--line); }
.sec-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.sec-faq-item summary::-webkit-details-marker { display: none; }
.sec-faq-item summary::after { content: "+"; color: var(--ink-soft); font-weight: 500; }
.sec-faq-item[open] summary::after { content: "–"; }
.sec-faq-item p {
  margin: 0.55rem 0 0.2rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.sec-more {
  display: grid;
  gap: 0;
  margin-top: 0.85rem;
}
.sec-more a {
  display: block;
  text-decoration: none;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  transition: transform 0.15s ease;
}
.sec-more a:last-child { border-bottom: 1px solid var(--line); }
.sec-more a:hover { transform: translateX(3px); }
.sec-more h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.sec-more p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
@media (max-width: 960px) {
  .sec-pillars,
  .sec-grid-4,
  .sec-grid-3 { grid-template-columns: 1fr 1fr; }
  .sec-title { max-width: none; }
}
@media (max-width: 640px) {
  .sec-pillars,
  .sec-grid-4,
  .sec-grid-3 { grid-template-columns: 1fr; }
}

.contact-hero .contact-title { max-width: 10ch; }
.contact-hero .contact-lead { max-width: 40rem; }
.contact-jump { margin: 0.85rem 0 0; }
.contact-jump a { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; }
.contact-jump a:hover { color: var(--accent); }
.contact-topics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.35rem;
}
.contact-topic {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.contact-topic h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.contact-topic p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
  font-size: 0.95rem;
}
.contact-brief {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}
.contact-aside {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  background: var(--glass);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.contact-aside h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
}
.contact-mails {
  display: grid;
  gap: 0.95rem;
  margin-bottom: 1rem;
}
.contact-mails a {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
}
.contact-notes {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}
.contact-notes li { margin: 0.35rem 0; }
.contact-faq-inner { max-width: 720px; }
.contact-faq-acc { margin-top: 1rem; }
.contact-faq-item {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}
.contact-faq-item:last-child { border-bottom: 1px solid var(--line); }
.contact-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.contact-faq-item summary::-webkit-details-marker { display: none; }
.contact-faq-item summary::after { content: "+"; color: var(--ink-soft); font-weight: 500; }
.contact-faq-item[open] summary::after { content: "–"; }
.contact-faq-item p {
  margin: 0.55rem 0 0.2rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.contact-more {
  display: grid;
  gap: 0;
  margin-top: 0.85rem;
}
.contact-more a {
  display: block;
  text-decoration: none;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  transition: transform 0.15s ease;
}
.contact-more a:last-child { border-bottom: 1px solid var(--line); }
.contact-more a:hover { transform: translateX(3px); }
.contact-more h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.contact-more p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

.legal-hero .legal-title { max-width: 12ch; }
.legal-hero .legal-lead { max-width: 42rem; }
.legal-jump { margin: 0.85rem 0 0; }
.legal-jump a { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; }
.legal-jump a:hover { color: var(--accent); }
.legal-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: 2rem;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--line) 80%, var(--accent-2));
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  background: var(--glass);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.legal-toc ol {
  margin: 0.65rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
}
.legal-toc a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.35;
}
.legal-toc a:hover { color: var(--accent); }
.legal-toc-links {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.legal-toc-links a { font-weight: 650; color: var(--accent-2); }
.legal-sec {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}
.legal-sec:first-child { border-top: 0; padding-top: 0; }
.legal-sec h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.legal-sec p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}
.legal-more {
  display: grid;
  gap: 0;
  margin-top: 0.85rem;
}
.legal-more a {
  display: block;
  text-decoration: none;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  transition: transform 0.15s ease;
}
.legal-more a:last-child { border-bottom: 1px solid var(--line); }
.legal-more a:hover { transform: translateX(3px); }
.legal-more h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.legal-more p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
@media (max-width: 960px) {
  .contact-topics,
  .contact-brief,
  .legal-layout { grid-template-columns: 1fr 1fr; }
  .contact-title,
  .legal-title { max-width: none; }
  .legal-toc { position: static; }
}
@media (max-width: 640px) {
  .contact-topics,
  .contact-brief,
  .legal-layout { grid-template-columns: 1fr; }
}

.intake {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.svc-hero .page-title { max-width: 16ch; }
.svc-hero .page-sub { max-width: 42rem; }
.svc-hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
  align-items: end;
}
.svc-position {
  max-width: 42rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
  line-height: 1.55;
}
.svc-jump { margin: 0.85rem 0 0; }
.svc-jump a { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; }
.svc-jump a:hover { color: var(--accent); }
.svc-hero-aside {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.svc-flow {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  counter-reset: svcf;
}
.svc-flow li {
  counter-increment: svcf;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.svc-flow li::before {
  content: counter(svcf, decimal-leading-zero);
  font-size: 0.75rem;
  color: var(--accent-2);
  min-width: 1.5rem;
}
.svc-flow li + li {
  border-top: 1px dashed var(--line);
  padding-top: 0.55rem;
}
.svc-path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.35rem;
}
.svc-path {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  background: var(--panel);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.4rem;
  align-content: start;
}
.svc-path-accent {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), var(--shadow);
}
.svc-path h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.svc-path p { margin: 0; color: var(--ink-soft); line-height: 1.5; }
.svc-path-cta a { text-decoration: none; font-weight: 650; color: var(--accent-2); }
.svc-need-grid,
.svc-how-grid,
.svc-deliv-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.35rem;
}
.svc-need-item,
.svc-how-item,
.svc-deliv-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.svc-need-n {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.svc-need-item p,
.svc-how-item p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
  font-size: 0.95rem;
}
.svc-how-item .who { margin-bottom: 0.35rem; }
.svc-deliv-item h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.svc-deliv-item p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
  font-size: 0.95rem;
}
.svc-jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.35rem;
}
.svc-job {
  display: grid;
  gap: 0.4rem;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
  align-content: start;
}
.svc-job:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.svc-job h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.svc-job p { margin: 0; color: var(--ink-soft); line-height: 1.5; font-size: 0.94rem; }
.svc-job-flow { font-size: 0.88rem !important; }
.svc-job span {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--accent-2);
}
.svc-brief-aside .svc-aside-links {
  display: grid;
  gap: 0.4rem;
  margin-top: 1rem;
}
.svc-aside-links a { text-decoration: none; font-weight: 650; }
.svc-faq-inner { max-width: 720px; }
.svc-faq-acc { margin-top: 1rem; }
.svc-faq-item {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}
.svc-faq-item:last-child { border-bottom: 1px solid var(--line); }
.svc-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.svc-faq-item summary::-webkit-details-marker { display: none; }
.svc-faq-item summary::after { content: "+"; color: var(--ink-soft); font-weight: 500; }
.svc-faq-item[open] summary::after { content: "–"; }
.svc-faq-item p {
  margin: 0.55rem 0 0.2rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.svc-more {
  display: grid;
  gap: 0;
  margin-top: 0.85rem;
}
.svc-more a {
  display: block;
  text-decoration: none;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  transition: transform 0.15s ease;
}
.svc-more a:last-child { border-bottom: 1px solid var(--line); }
.svc-more a:hover { transform: translateX(3px); }
.svc-more h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.svc-more p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
@media (max-width: 960px) {
  .svc-hero-inner,
  .svc-path-grid,
  .svc-need-grid,
  .svc-how-grid,
  .svc-deliv-grid,
  .svc-jobs-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .svc-hero-inner,
  .svc-path-grid,
  .svc-need-grid,
  .svc-how-grid,
  .svc-deliv-grid,
  .svc-jobs-grid { grid-template-columns: 1fr; }
}
.svc-brief {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}
.svc-notes { margin: 0.6rem 0 1.2rem; padding-left: 1.1rem; color: var(--ink-soft); }
.svc-notes li { margin: 0.4rem 0; }
html { scroll-behavior: smooth; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.legal-body {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
}
form.stack { display: grid; gap: 14px; }
label { font-weight: 600; font-size: 0.92rem; display: grid; gap: 0.4rem; }
input, textarea, select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  font: inherit;
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: var(--focus);
}
textarea { min-height: 110px; resize: vertical; }
.flash { color: #9b2c2c; margin: 0; }
.flash-banner {
  margin: 0 0 1.1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  border-radius: var(--radius);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.flash-banner.ok { border-color: #8fbfa4; background: #eef8f2; color: #1f6b4a; }
.flash-banner.err { border-color: #e2a8a8; background: #fff1f1; color: #9b2c2c; }
.flash-banner.info { border-color: #c5d7ce; background: #f4faf6; }
.flash-banner.is-gone { opacity: 0; transform: translateY(-6px); pointer-events: none; }

.nav-toggle {
  display: none;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  font: inherit;
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.wizard-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0.4rem 0 1.2rem;
}
.wizard-head .wiz-step {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: #fff;
}
.wizard-head .wiz-step.on { color: var(--ink); border-color: #a8c4b6; }
.wizard-head .wiz-step.current {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}
.wizard-head .wiz-num {
  width: 1.2rem; height: 1.2rem;
  border-radius: 50%;
  display: inline-grid; place-items: center;
  font-size: 0.72rem;
  background: rgba(0,0,0,0.08);
}
.wizard-head .wiz-step.current .wiz-num { background: rgba(255,255,255,0.2); }
.wizard-dots { display: none; }
.wizard-panel { display: grid; gap: 14px; }
.wizard-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.gen-page { max-width: 44rem; }
.gen-page-head { border: 0; padding: 0; margin-bottom: 0.75rem; }
.gen-head-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

/* Full-bleed AI chat inside app shell */
html:has(body.gen-chat),
body.gen-chat {
  height: 100%;
  overflow: hidden;
}
body.gen-chat .main {
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
body.gen-chat .main > .flash-banner {
  position: absolute;
  top: 0.65rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  margin: 0;
  max-width: min(36rem, calc(100% - 2rem));
}

.gen-chat-page {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background:
    radial-gradient(1200px 480px at 12% -10%, rgba(143, 191, 164, 0.18), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(20, 36, 31, 0.04), transparent 55%),
    #f3f6f4;
}
.gen-chat-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.35rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}
.gen-chat-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.2;
}
.gen-chat-sub {
  margin: 0.15rem 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.gen-chat-shell {
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.gen-chat-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  width: 100%;
}
.gen-chat-shell:has([data-graph-card]:not([hidden])) .gen-chat-body {
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
}
.gen-chat-main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}
.gen-chat-shell .gen-chat-log {
  height: auto;
  max-height: none;
  min-height: 0;
  overflow: auto;
  margin: 0;
  padding: 1.25rem clamp(1rem, 3vw, 2.5rem) 1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  scroll-behavior: smooth;
}
.gen-chat-dock {
  display: grid;
  gap: 0.65rem;
  padding: 0.75rem clamp(1rem, 3vw, 2.5rem) 1rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}
.gen-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  align-items: end;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(20, 36, 31, 0.06);
}
.gen-composer textarea {
  width: 100%;
  min-height: 2.8rem;
  max-height: 9rem;
  padding: 0.7rem 0.85rem;
  border: 0;
  border-radius: 12px;
  font: inherit;
  resize: none;
  background: transparent;
}
.gen-composer textarea:focus { outline: none; }
.gen-composer .btn {
  align-self: end;
  margin: 0.2rem 0.2rem 0.2rem 0;
  min-width: 5.5rem;
}
.gen-composer-hint {
  margin: 0;
  min-height: 1.1em;
  font-size: 0.85rem;
  padding-left: 0.25rem;
}
.gen-inline {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7fbf8;
  max-height: min(40vh, 22rem);
  overflow: auto;
}
.gen-inline-modes { margin-bottom: 0.15rem; }
.gen-inline-choices { margin: 0; }
.gen-inline .gen-fields { max-height: none; }
.gen-chat-side {
  min-height: 0;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.85rem;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 0.55rem;
}
.gen-chat-side .gen-graph-card {
  border: 0;
  background: transparent;
  padding: 0;
  height: 100%;
  align-content: start;
}
.gen-flow-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  justify-content: space-between;
}
.gen-flow-empty { margin: 0; font-size: 0.88rem; }
.gen-drawflow {
  position: relative;
  min-height: 12rem;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 1px 1px, rgba(20, 36, 31, 0.07) 1px, transparent 0) 0 0 / 18px 18px,
    #fbfcfb;
  overflow: hidden;
}
.gen-drawflow .drawflow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}
.gen-drawflow .drawflow-node {
  background: #fff;
  border: 1px solid rgba(20, 36, 31, 0.16);
  border-radius: 10px;
  min-width: 7.5rem;
  color: #14241f;
  padding: 0;
}
.gen-drawflow .title-box {
  background: #14241f;
  color: #f4faf6;
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 10px 10px 0 0;
}
.gen-drawflow .box {
  padding: 0.35rem 0.55rem 0.45rem;
  font-size: 0.78rem;
}
.gen-drawflow .connection .main-path { stroke: #14241f; }
.gen-flow-actions { display: flex; gap: 0.5rem; }
.gen-chat-status {
  align-self: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding: 0.15rem 0.4rem;
}
.gen-error {
  margin: 0.65rem clamp(1rem, 3vw, 2.5rem) 0;
}
@media (max-width: 960px) {
  .gen-chat-body {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(14rem, 38vh);
  }
  .gen-chat-shell:has([data-graph-card]:not([hidden])) .gen-chat-body {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(14rem, 38vh);
  }
  .gen-chat-side {
    border-left: 0;
    border-top: 1px solid var(--line);
    max-height: none;
  }
}
@media (max-width: 640px) {
  .gen-chat-top { padding: 0.75rem 0.9rem; }
  .gen-chat-title { font-size: 1.1rem; }
  .gen-composer { grid-template-columns: 1fr; }
  .gen-composer .btn { width: 100%; margin: 0; }
}
.gen-wizard {
  display: grid;
  gap: 0;
  max-width: none;
  padding: 1.25rem 1.35rem 1.5rem;
}
.gen-wizard .wizard-panel { gap: 1rem; }
.gen-panel-head h2 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.gen-panel-head .muted { margin: 0; }
.gen-label {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.92rem;
}
.gen-wizard input[type="text"],
.gen-wizard input[type="url"],
.gen-wizard input[type="email"],
.gen-wizard textarea {
  width: 100%;
  min-height: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
}
.gen-wizard textarea { min-height: 4.5rem; resize: vertical; }
.gen-wizard input:focus,
.gen-wizard textarea:focus {
  outline: 2px solid rgba(47, 107, 78, 0.25);
  border-color: var(--accent-2);
}
.gen-section { display: grid; gap: 0.55rem; }
.gen-section-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}
.gen-section-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  justify-content: space-between;
}
.gen-tip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  padding: 0.65rem 0.8rem;
  border: 1px solid #c5d7ce;
  border-radius: var(--radius);
  background: #f4faf6;
  font-size: 0.9rem;
}
.gen-analyzed {
  margin: 0;
  font-size: 0.85rem;
  word-break: break-all;
}
.gen-questions { display: grid; gap: 1rem; margin: 0.8rem 0; }
.gen-q-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.4rem; }
.gen-fields {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  max-height: 18rem;
  overflow: auto;
  padding: 0.15rem;
}
.gen-field {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.gen-field:hover { border-color: #a8c4b6; }
.gen-field.on {
  border-color: var(--accent-2);
  background: #f4faf6;
}
.gen-field input { margin-top: 0.2rem; }
.gen-field-text { display: grid; gap: 0.15rem; min-width: 0; }
.gen-field-label { font-weight: 550; }
.gen-field code {
  color: var(--ink-soft);
  font-size: 0.82em;
  word-break: break-all;
}
.gen-fields-empty { margin: 0.25rem 0 0; }
.gen-sample-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  background: rgba(0,0,0,0.015);
}
.gen-sample-box summary {
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.gen-sample {
  max-height: 12rem;
  overflow: auto;
  font-size: 0.82rem;
  margin: 0.5rem 0 0;
}
.gen-nodes {
  margin: 0.4rem 0 0.85rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}
.gen-nodes li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  align-items: center;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9rem;
  background: #fff;
}
.gen-node-type {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #eef8f2;
  color: #1f6b4a;
  font-size: 0.78rem;
  font-weight: 600;
}
.gen-steps { margin-bottom: 1rem; }
.gen-banner {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.gen-banner.is-busy {
  border: 1px solid #c5d7ce;
  background: #f4faf6;
  color: #1f6b4a;
}
.gen-error { margin: 0 0 0.75rem; }
.gen-field-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0; }
.gen-actions { margin-top: 0.35rem; padding-top: 0.35rem; }

/* Homepage quick analyze — matches .section / .split editorial style */
.home-analyze-form {
  margin-top: 0.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}
.home-analyze-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9rem, 14rem) auto;
  gap: 14px;
  align-items: end;
}
.home-analyze-field,
.home-analyze-action {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}
.home-analyze-action-label {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.55;
  visibility: hidden;
  user-select: none;
}
.home-analyze-submit {
  white-space: nowrap;
  width: 100%;
  min-height: calc(0.75rem * 2 + 1.55em + 2px);
  box-sizing: border-box;
}
.home-analyze-status {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
}
.home-analyze-status[hidden] {
  display: none !important;
}
.home-analyze-form.is-analyzing .home-analyze-submit {
  opacity: 0.92;
  cursor: wait;
}
.home-analyze-form.is-analyzing input:disabled {
  opacity: 0.72;
  cursor: wait;
}
.home-analyze-status::before {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin-right: 0.45em;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 0.05em;
  animation: home-analyze-pulse 1s ease-in-out infinite;
}
@keyframes home-analyze-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}
.home-analyze-error {
  margin: 0.85rem 0 0;
}
.home-analyze-result {
  margin-top: 1.6rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}
.home-analyze-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  align-items: baseline;
  margin-bottom: 1.35rem;
  font-size: 0.92rem;
}
.home-analyze-meta p { margin: 0; }
.home-analyze-mode {
  font-weight: 600;
}
.home-analyze-body {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.home-analyze-col { min-width: 0; }
.home-analyze-h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
}
.home-analyze-field-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 15rem;
  overflow: auto;
}
.home-analyze-field-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.home-analyze-field-list li:first-child { border-top: 0; padding-top: 0; }
.home-analyze-field-list .field-type { flex: 0 0 auto; }
.home-analyze-field-name {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.86rem;
  word-break: break-all;
}
.home-analyze-sample-wrap {
  overflow: auto;
  max-height: 15rem;
}
.home-analyze-sample {
  margin: 0;
  width: 100%;
  font-size: 0.88rem;
}
.home-analyze-sample th,
.home-analyze-sample td {
  padding: 0.5rem 0.65rem 0.5rem 0;
  white-space: nowrap;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-analyze-sample th .field-type {
  display: inline-flex;
  vertical-align: middle;
  margin-right: 0.3rem;
}
.home-analyze-sample th .field-type-svg {
  width: 12px;
  height: 12px;
}
.home-analyze-foot {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
@media (max-width: 820px) {
  .home-analyze-row {
    grid-template-columns: 1fr;
  }
  .home-analyze-action-label {
    display: none;
  }
  .home-analyze-submit {
    width: 100%;
  }
  .home-analyze-body {
    grid-template-columns: 1fr;
  }
}

/* Homepage section rhythm */
.home-page {
  --home-y: clamp(3rem, 5.5vw, 4.5rem);
}
.home-page > .hero {
  min-height: min(92vh, 880px);
  min-height: min(92dvh, 880px);
}
.home-page > .hero .hero-copy {
  padding-top: 16vh;
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
}
.home-page > .section,
.home-page > .home-analyze {
  padding-top: var(--home-y);
  padding-bottom: var(--home-y);
}
.home-page > .hero + .home-analyze {
  padding-top: clamp(2rem, 3.5vw, 2.75rem);
}
.home-page > .section + .section {
  padding-top: 0;
  border-top: 1px solid var(--line);
}
.home-page > .home-analyze + .section {
  padding-top: var(--home-y);
  border-top: 0;
}
.home-page > .section + .band {
  margin-top: 0;
  border-top: 0;
}
.home-page > .band + .section {
  border-top: 0;
}
.home-page > .section.faq {
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
.home-page > .home-bottom-cta {
  padding-bottom: clamp(4rem, 7vw, 5.5rem);
}
.home-page > .home-bottom-cta .wrap {
  max-width: 40rem;
}
.home-page .section h2,
.home-page .home-analyze h2 {
  margin-bottom: 0.45rem;
}
.home-page .section h2 + .muted {
  margin: 0 0 1.75rem;
  max-width: 52ch;
}
.home-page .page-sub {
  margin-bottom: 0;
}
.home-page .home-trust-line {
  margin: 0.35rem 0 0.65rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 1.05rem;
}
.home-page .home-section-lead {
  margin: 0 0 1.75rem;
  max-width: 52ch;
  color: var(--ink-soft);
}
.home-page .home-modes .split {
  margin-top: 0.25rem;
}
.home-page .pillars { margin-top: 1.1rem; }
.home-page .steps { margin-top: 0.35rem; }
.home-page .industry-list { margin-top: 0.85rem; }
.home-page .tpl-list { margin-top: 0.5rem; }
.home-page .band h2 {
  margin-bottom: 0.65rem;
}
.home-page .band p {
  max-width: 46ch;
  margin: 0 0 1.25rem;
  opacity: 0.92;
}

/* Homepage — product mock */
.home-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.home-product-copy .page-sub { margin-bottom: 0; }
.home-product-frame { min-width: 0; }
.home-mock {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.home-mock-toolbar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--line);
  background: rgba(20, 36, 31, 0.03);
}
.home-mock-toolbar span:first-child,
.home-mock-toolbar span:nth-child(2),
.home-mock-toolbar span:nth-child(3) {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(20, 36, 31, 0.14);
}
.home-mock-title {
  margin-left: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.home-mock-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  min-height: 220px;
}
.home-mock-canvas {
  position: relative;
  padding: 1.25rem 1rem;
  background:
    radial-gradient(circle at 1px 1px, rgba(20, 36, 31, 0.07) 1px, transparent 0) 0 0 / 18px 18px,
    #fafcfb;
  border-right: 1px solid var(--line);
}
.home-mock-node {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(20, 36, 31, 0.18);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 650;
  box-shadow: 0 4px 14px rgba(20, 36, 31, 0.06);
}
.home-mock-node.is-a { margin-top: 2.5rem; }
.home-mock-node.is-b { margin-left: 5.5rem; margin-top: 1.5rem; }
.home-mock-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.home-mock-wires path {
  fill: none;
  stroke: rgba(196, 92, 38, 0.55);
  stroke-width: 2;
}
.home-mock-chat {
  padding: 0.85rem 0.75rem;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  background: #fff;
}
.home-mock-chat-head {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.home-mock-bubble {
  max-width: 95%;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.4;
}
.home-mock-bubble.user {
  justify-self: end;
  background: #14241f;
  color: #fff;
}
.home-mock-bubble.bot {
  justify-self: start;
  background: #f3f5f4;
  color: var(--ink);
}

/* Homepage — AI section */
.home-ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.home-ai-list {
  margin: 1.25rem 0 1.5rem;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}
.home-ai-list li { margin: 0.35rem 0; }
.home-ai-steps .step { padding: 1rem 0; }

/* Homepage — analyze examples */
.home-analyze-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.85rem;
}
.home-analyze-examples-label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-right: 0.15rem;
}
.home-analyze-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.home-analyze-chip:hover {
  border-color: #a8c4b6;
  color: var(--ink);
  background: #f4faf6;
}
.home-analyze-trust {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
}

/* Homepage — pricing strip */
.home-plan-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 1.25rem;
}
.home-plan-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
  background: #fff;
}
.home-plan-card.is-free {
  border-color: rgba(31, 107, 74, 0.35);
  background: rgba(31, 107, 74, 0.04);
}
.home-plan-card h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.home-plan-quota {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.home-plan-price {
  margin: 0.55rem 0 0.35rem;
  font-weight: 700;
  font-size: 1.1rem;
}
.home-plan-per {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.home-plan-feats {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
}
.home-pricing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  margin: 1.35rem 0 0;
}
.home-services-teaser a {
  color: var(--accent-2);
  font-weight: 600;
  text-decoration: none;
}
.home-services-teaser a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .home-product-grid,
  .home-ai-grid,
  .home-mock-body {
    grid-template-columns: 1fr;
  }
  .home-mock-canvas { border-right: 0; border-bottom: 1px solid var(--line); }
  .home-plan-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .home-plan-strip { grid-template-columns: 1fr; }
}

.gen-pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border: 1px dashed #a8c4b6;
  border-radius: var(--radius);
  background: #f7fbf8;
}
.gen-pipe-node {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.gen-pipe-arrow { color: var(--ink-soft); font-weight: 600; }
.gen-pipeline-note { margin: 0; font-size: 0.88rem; }
.gen-advanced {
  margin-top: 1.35rem;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafcfb;
  display: grid;
  gap: 0.75rem;
}
.gen-advanced-head h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.gen-advanced-head .muted { margin: 0; font-size: 0.88rem; }
.gen-llm-hint {
  margin: 0;
  padding: 0.5rem 0.65rem;
  border-left: 3px solid #c5d7ce;
  font-size: 0.86rem;
}
.gen-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.gen-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--ink-soft);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gen-chip:hover {
  border-color: #a8c4b6;
  color: var(--ink);
  background: #f4faf6;
}
.gen-chat-empty { margin: 0; font-size: 0.88rem; }
.gen-chat-msg {
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  max-width: min(42rem, 92%);
  box-shadow: 0 1px 0 rgba(20, 36, 31, 0.04);
}
.gen-chat-msg.user {
  align-self: flex-end;
  background: #14241f;
  color: #f4faf6;
  border-bottom-right-radius: 4px;
}
.gen-chat-msg.assistant {
  align-self: flex-start;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(20, 36, 31, 0.08);
  border-bottom-left-radius: 4px;
}
.gen-chat-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: end;
  margin: 0;
}
.gen-graph-card {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid #c5d7ce;
  border-radius: var(--radius);
  background: #fff;
}
.gen-graph-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  justify-content: space-between;
}
.gen-graph-card-head .muted { font-size: 0.85rem; }
.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-card {
  border: 1px solid var(--line);
  padding: 1rem;
  cursor: pointer;
  background: var(--panel-solid);
  text-align: left;
  font: inherit;
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mode-card:hover { border-color: #a8c4b6; }
.mode-card.on { border-color: var(--accent-2); box-shadow: inset 0 0 0 1px var(--accent-2); }
.mode-card strong { display: block; font-family: var(--font-display); margin-bottom: 0.25rem; }
@media (max-width: 640px) {
  .gen-chat-compose { grid-template-columns: 1fr; }
  .gen-wizard { padding: 1rem; }
}
.badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  background: #fff;
}
.badge.active, .badge.completed, .badge.ok { border-color: #8fbfa4; color: #1f6b4a; background: #eef8f2; }
.badge.failed, .badge.error { border-color: #e2a8a8; color: #9b2c2c; background: #fff1f1; }
.badge.paused, .badge.running { color: var(--ink-soft); }
.detail-head {
  display: flex; flex-wrap: wrap; gap: 12px 20px;
  align-items: flex-start; justify-content: space-between;
  margin-bottom: 1.4rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.empty-state {
  padding: 1.4rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  background: var(--glass);
}
.payload-box { position: relative; }
.payload-box .btn.copy {
  position: absolute; top: 8px; right: 8px;
  padding: 0.35rem 0.7rem; font-size: 0.85rem;
  z-index: 1;
}
.key-once {
  border: 1px solid #c45c26;
  background: #fff8f3;
  padding: 1rem 1.1rem;
  margin-bottom: 1.2rem;
  border-radius: var(--radius);
}
.pending-card {
  border: 1px solid #d4b483;
  background: #fff9ef;
  padding: 1rem 1.15rem;
  margin: 1rem 0 1.5rem;
  border-radius: var(--radius);
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background: var(--paper);
}
html:has(body .app-shell),
body:has(.app-shell) {
  height: 100%;
  overflow: hidden;
}
.side-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(12, 28, 24, 0.35);
  z-index: 20;
}
.side {
  background: #10201b;
  color: #e9f2ed;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-right: 1px solid rgba(255,255,255,0.04);
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  position: sticky;
  top: 0;
  align-self: start;
  flex-shrink: 0;
}
.side .brand { margin-bottom: 0.35rem; }
.side .side-email {
  font-size: 0.82rem;
  opacity: 0.65;
  margin: 0 0 1rem;
  word-break: break-all;
}
.side nav { display: grid; gap: 0.15rem; }
.side a {
  display: block;
  padding: 0.55rem 0.7rem;
  text-decoration: none;
  opacity: 0.82;
  border-radius: var(--radius);
  transition: background 0.15s ease, opacity 0.15s ease;
}
.side a:hover { opacity: 1; background: rgba(255,255,255,0.06); }
.side a.active {
  opacity: 1;
  background: rgba(255,255,255,0.1);
  font-weight: 600;
}
.side .side-foot { margin-top: auto; padding-top: 1.2rem; }
.main {
  padding: 2rem 2.2rem 3rem;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  height: 100vh;
  max-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.app-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  flex: 0 0 auto;
}

/* Workflow editor: fill viewport beside the sidebar */
html:has(body.wf-editor),
body.wf-editor {
  height: 100%;
  overflow: hidden;
}
body.wf-editor .app-shell {
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  /* side is display:none — only .main remains, so use a single column */
  grid-template-columns: minmax(0, 1fr);
}
body.wf-editor .side {
  display: none;
}
body.wf-editor .main {
  max-width: none !important;
  width: 100%;
  padding: 0 !important;
  height: 100%;
  max-height: 100vh;
  overflow: hidden;
  position: relative;
  min-width: 0;
}
body.wf-editor .main > .flash-banner {
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  margin: 0;
  max-width: min(520px, 90%);
}
body.wf-editor .app-topbar {
  display: none;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 1.5rem;
}

/* Datasets */
.ds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.ds-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.05rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ds-card:hover {
  border-color: #c45c26;
  box-shadow: 0 16px 36px rgba(20, 36, 31, 0.1);
}
.ds-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.ds-card-top h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.3;
}
.ds-id {
  font-size: 0.75rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.ds-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ds-card-stats .k {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c45c26;
  font-weight: 700;
}
.ds-card-stats .v {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}
.ds-card-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ds-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.72rem;
  color: var(--ink-soft);
  background: rgba(20, 36, 31, 0.03);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ds-chip.muted { opacity: 0.7; }
.ds-card-empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.ds-card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: auto;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(20, 36, 31, 0.08);
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.ds-meta {
  margin-bottom: 1.25rem;
}
.ds-meta > h2,
.ds-data > .ds-data-head h2 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  color: var(--ink);
}
.ds-meta-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 0.65rem;
}
.ds-schema-title {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  color: rgba(20, 36, 31, 0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}
.ds-schema-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(20, 36, 31, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}
.ds-schema-chip {
  font-size: 0.78rem;
  padding: 0.18rem 0.45rem;
  line-height: 1.35;
}
.ds-schema-chip .field-type {
  width: 1rem;
  height: 1rem;
  margin-right: 0.15rem;
}
.ds-schema-chip .field-type-svg {
  width: 11px;
  height: 11px;
}
.ds-schema-wrap {
  margin-bottom: 0.5rem;
}
.ds-data {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.ds-data-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0.75rem;
}
.ds-data-scroll {
  overflow: auto;
  max-width: 100%;
  max-height: min(62vh, 640px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.ds-data-table {
  margin: 0;
  width: max-content;
  min-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.ds-data-table th,
.ds-data-table td {
  padding: 0.65rem 0.55rem;
  vertical-align: middle;
}
.ds-data-table th:not(.sticky-col),
.ds-data-table td:not(.sticky-col) {
  width: 180px;
  max-width: 180px;
}
.ds-data-table .sticky-col {
  width: 64px;
  max-width: 64px;
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
}
.ds-data-table .ds-cell {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ds-data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  box-shadow: inset 0 -1px 0 var(--line);
}
.ds-data-table thead .sticky-col { z-index: 3; }
.ds-pager {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0.85rem;
}
.ds-inline-form {
  display: inline;
  margin: 0;
}
.ds-btn-danger {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.35);
}
.ds-btn-danger:hover {
  background: rgba(180, 35, 24, 0.08);
}
.ds-actions-col {
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
}
.ds-actions-col .ds-inline-form {
  display: block;
}
@media (max-width: 900px) {
  .ds-meta-stats { grid-template-columns: 1fr 1fr; }
}

/* Reusable nodes */
.node-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.node-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem 1.05rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.node-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}
.node-card-top h2 {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  line-height: 1.3;
}
.node-card-top h2 a { text-decoration: none; color: var(--ink); }
.node-card-top h2 a:hover { color: #c45c26; }
.node-type {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #c45c26;
}
.node-summary {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.node-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(20, 36, 31, 0.08);
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.node-card-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.node-card-actions form { margin: 0; }

.node-new-form { margin-top: 0.5rem; }
.node-editor-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
}
.node-editor-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
}
.node-editor-panel > h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.node-panel-sub {
  margin: -0.35rem 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.node-name-input {
  font: inherit;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  border: 0;
  border-bottom: 1px dashed transparent;
  background: transparent;
  padding: 0;
  width: min(100%, 520px);
}
.node-name-input:hover,
.node-name-input:focus {
  border-bottom-color: var(--line);
  outline: none;
}
.node-fetch-actions {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.node-fetch-actions .btn { width: 100%; max-width: 280px; }
.node-fetch-status { min-height: 1.2rem; font-size: 0.85rem; margin: 0.25rem 0 0; }
.node-editor-panel .who {
  margin: 0.5rem 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #c45c26;
}
.node-field-picker {
  margin-top: 0.85rem;
  min-width: 0;
}
.node-fields-empty {
  padding: 0.85rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--glass);
}
.node-fields-empty p { margin: 0; font-size: 0.88rem; }
.node-fields-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.node-fields-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--line);
  background: #f4f7f5;
  font-size: 0.85rem;
}
.node-fields-head span {
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.node-field-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: min(36vh, 280px);
  overflow: auto;
}
.node-field-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.55rem !important;
  margin: 0;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(20, 36, 31, 0.08);
  font-weight: 500 !important;
  font-size: 0.88rem !important;
  cursor: pointer;
}
.node-field-item:last-child { border-bottom: 0; }
.node-field-item:hover { background: rgba(196, 92, 38, 0.05); }
.node-field-item input[type="checkbox"] {
  width: auto !important;
  min-width: 1rem;
  height: auto;
  margin: 0.2rem 0 0;
  padding: 0 !important;
  border: 0;
  box-shadow: none;
  accent-color: #c45c26;
  flex: 0 0 auto;
}
.node-field-text {
  display: block;
  line-height: 1.35;
  word-break: break-word;
}
.node-field-text em {
  font-style: normal;
  color: var(--ink-soft);
  font-weight: 400;
  font-size: 0.82rem;
}
.node-sample-wrap {
  border-top: 1px solid var(--line);
  background: #14241f;
}
.node-sample-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 0.65rem;
  color: rgba(231, 240, 234, 0.7);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.node-sample-head span:first-child { color: #c45c26; font-weight: 700; }
.node-sample-scroll {
  overflow: auto;
  max-height: 180px;
}
.node-sample-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  color: #e7f0ea;
}
.node-sample-table th,
.node-sample-table td {
  padding: 0.35rem 0.55rem;
  border-bottom: 1px solid rgba(196, 92, 38, 0.28);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.node-sample-table th {
  position: sticky;
  top: 0;
  background: #14241f;
  color: #c45c26;
  font-weight: 700;
}
.node-json-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
}
.node-test-result {
  margin-top: 0.65rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: var(--glass);
  min-height: 120px;
}
.node-test-result.empty {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.node-out-body { padding: 0.75rem; }
.wf-out-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}
.wf-out-stat {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(20, 36, 31, 0.12);
  border-radius: 6px;
  background: rgba(20, 36, 31, 0.03);
  min-width: 4.5rem;
}
.wf-out-stat .k {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(20, 36, 31, 0.5);
}
.wf-out-stat .v {
  font-size: 0.88rem;
  font-weight: 700;
  color: #14241f;
  font-variant-numeric: tabular-nums;
}
.wf-out-table-wrap {
  overflow: auto;
  max-height: min(42vh, 420px);
  border: 1px solid rgba(20, 36, 31, 0.12);
  border-radius: 6px;
  margin-bottom: 0.45rem;
}
.wf-out-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.wf-out-table th,
.wf-out-table td {
  text-align: left;
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid rgba(20, 36, 31, 0.08);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wf-out-table th {
  position: sticky;
  top: 0;
  background: #f4f7f5;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(20, 36, 31, 0.55);
  font-weight: 700;
}
.wf-out-more {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: rgba(20, 36, 31, 0.55);
}
.wf-out-err {
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  background: rgba(196, 92, 38, 0.1);
  color: #c45c26;
  font-size: 0.8rem;
  line-height: 1.4;
  word-break: break-word;
}
.wf-out-empty { margin: 0; font-size: 0.82rem; color: rgba(20, 36, 31, 0.45); }
.wf-out-raw {
  margin-top: 0.15rem;
  border: 1px solid rgba(20, 36, 31, 0.1);
  border-radius: 6px;
  overflow: hidden;
}
.wf-out-raw summary {
  cursor: pointer;
  padding: 0.4rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(20, 36, 31, 0.55);
  background: rgba(20, 36, 31, 0.03);
  list-style: none;
}
.wf-out-raw summary::-webkit-details-marker { display: none; }
.wf-out-raw pre {
  margin: 0;
  padding: 0.55rem 0.65rem;
  max-height: min(32vh, 320px);
  overflow: auto;
  font-size: 0.72rem;
  background: #14241f;
  color: #e7f0ea;
  white-space: pre-wrap;
  word-break: break-word;
}
@media (max-width: 900px) {
  .node-editor-split { grid-template-columns: 1fr; }
}

.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.stat .label { font-size: 0.8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.stat .value { font-family: var(--font-display); font-size: 1.6rem; margin-top: 0.2rem; letter-spacing: -0.02em; }

/* Overview dashboard */
.ov-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.35rem;
  background:
    linear-gradient(135deg, rgba(20, 36, 31, 0.94), rgba(20, 36, 31, 0.82)),
    radial-gradient(ellipse at 90% 10%, rgba(196, 92, 38, 0.35), transparent 55%);
  color: #f3f7f4;
  border-radius: var(--radius);
}
.ov-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #c45c26;
}
.ov-hero .page-title { color: #fff; }
.ov-hero .page-sub { color: rgba(243, 247, 244, 0.72); }
.ov-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 1.5rem;
}
.ov-stat .ov-slash { opacity: 0.45; font-weight: 500; }
.ov-stat .ov-plan {
  font-size: 1.15rem;
  padding-top: 0.35rem;
  line-height: 1.25;
}
.ov-bar {
  height: 6px;
  margin-top: 0.65rem;
  border-radius: 999px;
  background: rgba(20, 36, 31, 0.08);
  overflow: hidden;
}
.ov-bar > span {
  display: block;
  height: 100%;
  background: #c45c26;
  border-radius: inherit;
}
.ov-hint {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.ov-hint a { color: #c45c26; text-decoration: none; font-weight: 600; }
.ov-hint a:hover { text-decoration: underline; }
.ov-actions { margin-bottom: 1.5rem; }
.ov-actions > h2,
.ov-panel-head h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--ink);
}
.ov-action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.ov-action {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ov-action:hover {
  border-color: #c45c26;
  box-shadow: 0 14px 32px rgba(20, 36, 31, 0.1);
}
.ov-action-label {
  font-weight: 700;
  color: var(--ink);
}
.ov-action-desc {
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.ov-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  align-items: start;
}
.ov-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.05rem 0.85rem;
  min-width: 0;
}
.ov-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0.35rem;
}
.ov-panel-head a {
  font-size: 0.82rem;
  font-weight: 600;
  color: #c45c26;
  text-decoration: none;
}
.ov-panel-head a:hover { text-decoration: underline; }
.ov-wf-list {
  display: flex;
  flex-direction: column;
}
.ov-wf-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0.7rem 0.15rem;
  border-bottom: 1px solid rgba(20, 36, 31, 0.08);
  text-decoration: none;
  color: inherit;
}
.ov-wf-item:last-child { border-bottom: 0; }
.ov-wf-item:hover strong { color: #c45c26; }
.ov-wf-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.ov-wf-main strong {
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ov-err {
  font-size: 0.75rem;
  color: #c45c26;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .ov-stats,
  .ov-action-grid,
  .ov-split { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .ov-stats,
  .ov-action-grid,
  .ov-split { grid-template-columns: 1fr; }
}

/* API keys */
.keys-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.25rem;
  background:
    linear-gradient(135deg, rgba(20, 36, 31, 0.94), rgba(20, 36, 31, 0.84)),
    radial-gradient(ellipse at 85% 15%, rgba(196, 92, 38, 0.28), transparent 55%);
  color: #f3f7f4;
  border-radius: var(--radius);
}
.keys-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #c45c26;
}
.keys-hero .page-title { color: #fff; }
.keys-hero .page-sub { color: rgba(243, 247, 244, 0.72); }
.keys-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}
.keys-hero-stat .k {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 247, 244, 0.65);
}
.keys-hero-stat .v {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}
.keys-once {
  margin-bottom: 1.1rem;
  padding: 1rem 1.05rem;
  border: 1px solid #c45c26;
  border-radius: var(--radius);
  background: #fff8f3;
}
.keys-once-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.65rem;
}
.keys-once-head strong { color: var(--ink); }
.keys-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 14px;
  align-items: start;
}
.keys-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.keys-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.05rem;
}
.keys-panel > h2,
.keys-panel-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--ink);
}
.keys-panel-sub {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.keys-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0.55rem;
}
.keys-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.keys-card {
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(20, 36, 31, 0.12);
  border-radius: 6px;
  background: rgba(20, 36, 31, 0.02);
}
.keys-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}
.keys-prefix {
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: #14241f;
  color: #c45c26;
  font-size: 0.78rem;
}
.keys-name {
  font-weight: 600;
  color: var(--ink);
}
.keys-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.keys-guide .keys-code-block {
  margin-bottom: 0.75rem;
}
.keys-code-label {
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: #c45c26;
}
.keys-guide pre {
  margin: 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.72rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-all;
  border-radius: 4px;
  background: #14241f;
  color: #e7f0ea;
}
.keys-docs-link {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
}
.keys-docs-link a {
  color: #c45c26;
  text-decoration: none;
}
.keys-docs-link a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .keys-split { grid-template-columns: 1fr; }
}

/* App page tabs (workflows / nodes) */
.app-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
  padding: 0.25rem;
  background: rgba(20, 36, 31, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: fit-content;
  max-width: 100%;
}
.app-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: calc(var(--radius) - 2px);
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.app-tab:hover { color: var(--ink); background: rgba(255,255,255,0.65); }
.app-tab.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 36, 31, 0.08);
}

.table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.4rem 1rem 0.2rem;
  box-shadow: var(--shadow);
  overflow: auto;
}

/* Workflow list */
.wf-list-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 1.25rem;
}
.wf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.wf-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.wf-card:hover {
  border-color: #c45c26;
  box-shadow: 0 16px 36px rgba(20, 36, 31, 0.1);
}
.wf-card.is-error {
  border-color: rgba(155, 44, 44, 0.35);
}
.wf-card-link {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.05rem 0.85rem;
  text-decoration: none;
  color: inherit;
  flex: 1;
}
.wf-card-link:hover h2 { color: #c45c26; }
.wf-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.wf-card-top h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.3;
}
.wf-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
}
.wf-card-stats .k {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c45c26;
  font-weight: 700;
}
.wf-card-stats .v {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.wf-card-stats .v.wf-card-sched {
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
}
.wf-card-nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wf-card-err {
  margin: 0;
  padding: 0.4rem 0.55rem;
  font-size: 0.78rem;
  color: #9b2c2c;
  background: #fff1f1;
  border: 1px solid #e2a8a8;
  border-radius: 4px;
  line-height: 1.35;
}
.wf-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0.65rem 1.05rem 0.9rem;
  border-top: 1px solid rgba(20, 36, 31, 0.08);
  background: rgba(20, 36, 31, 0.02);
}
.wf-card-actions form { display: inline; margin: 0; }
@media (max-width: 900px) {
  .wf-list-stats { grid-template-columns: 1fr 1fr; }
}
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  text-align: left;
  padding: 0.75rem 0.35rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.table th { color: var(--ink-soft); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.table tr:last-child td { border-bottom: 0; }
.table a { text-decoration: none; font-weight: 600; }
.table a:hover { color: var(--accent-2); }
.log-err td { color: #9b2c2c; }
pre {
  background: #12201b;
  color: #e7f0ea;
  padding: 1rem;
  overflow: auto;
  font-size: 0.82rem;
  border-radius: var(--radius);
  margin: 0;
}

@media (max-width: 900px) {
  .split, .grid-3, .grid-2, .plan-row, .intake, .svc-brief, .app-shell, .foot-grid, .mode-cards, .stat-row, .docs-layout, .docs-hub-grid, .industry, .pillar { grid-template-columns: 1fr; }
  .hero-canvas { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    background: #13221d;
    color: #f6f3ec;
    z-index: 30;
  }
  .site-header { position: relative; flex-wrap: wrap; }
  .site-header.overlay { color: #f6f3ec; }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .nav .btn { margin-top: 0.6rem; text-align: center; }
  .hero { min-height: 88vh; }
  .app-topbar { display: flex; }
  body:has(.app-shell):not(.wf-editor) {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
  }
  body:has(.app-shell):not(.wf-editor) .app-shell {
    flex: 1;
    min-height: 0;
    height: auto;
    max-height: none;
  }
  .app-shell {
    grid-template-columns: 1fr;
    height: calc(100vh - 52px);
    max-height: calc(100vh - 52px);
  }
  .side {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(280px, 86vw);
    height: 100vh;
    max-height: 100vh;
    z-index: 30;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
  }
  .side.is-open { transform: none; }
  body.side-open .side-backdrop { display: block; }
  .main {
    padding: 1.2rem;
    max-width: none;
    height: 100%;
    max-height: 100%;
  }
  body.wf-editor .app-topbar { display: none; }
  body.wf-editor .app-shell {
    height: 100vh;
    max-height: 100vh;
    grid-template-columns: 1fr;
  }
}

.badge.pending, .badge.new { border-color: #d4b483; color: #8a5a12; background: #fff9ef; }
.badge.paid { border-color: #8fbfa4; color: #1f6b4a; background: #eef8f2; }

/* Field type icons */
.field-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 4px;
  color: #2f4a40;
  background: rgba(20, 36, 31, 0.06);
  vertical-align: middle;
}
.field-type-svg { display: block; }
.field-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.45rem 0.15rem 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  vertical-align: middle;
  white-space: nowrap;
}
.field-type-badge .field-type-svg { flex: 0 0 auto; }
.field-type-label { line-height: 1; }
.field-type.is-url,
.field-type-badge.is-url { color: #1a5f8a; background: rgba(26, 95, 138, 0.1); border-color: rgba(26, 95, 138, 0.22); }
.field-type.is-text,
.field-type-badge.is-text { color: #2f4a40; background: rgba(20, 36, 31, 0.06); }
.field-type.is-image,
.field-type-badge.is-image { color: #8a4a1a; background: rgba(196, 92, 38, 0.12); border-color: rgba(196, 92, 38, 0.28); }
.field-type.is-date,
.field-type-badge.is-date { color: #1f6b4a; background: rgba(47, 107, 79, 0.12); border-color: rgba(47, 107, 79, 0.25); }
.field-type.is-number,
.field-type-badge.is-number { color: #5a3d8a; background: rgba(90, 61, 138, 0.1); border-color: rgba(90, 61, 138, 0.22); }
.field-type.is-bool,
.field-type-badge.is-bool { color: #2f6b4f; background: rgba(47, 107, 79, 0.1); }
.field-type.is-json,
.field-type-badge.is-json { color: #6b4a2f; background: rgba(107, 74, 47, 0.1); }
.field-type.is-unknown,
.field-type-badge.is-unknown { color: var(--ink-soft); }
.ds-chip .field-type { width: 1.1rem; height: 1.1rem; }
.ds-chip .field-type-svg { width: 12px; height: 12px; }
.ds-th-type {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.wf-out-table th .field-type,
.wf-sample-table th .field-type,
.node-sample-table th .field-type {
  width: 1.1rem;
  height: 1.1rem;
  margin-right: 0.2rem;
}
.wf-out-table th .field-type-svg,
.wf-sample-table th .field-type-svg,
.node-sample-table th .field-type-svg {
  width: 12px;
  height: 12px;
}
.node-field-item .field-type { margin-top: 0.05rem; }
.wf-field-list label .field-type { flex: 0 0 auto; margin-top: 0.1rem; }


/* Admin console */
.adm-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1a2e28 0%, #243d35 55%, #2f4a40 100%);
  box-shadow: var(--shadow);
}
.adm-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(243, 247, 244, 0.55);
  font-weight: 600;
}
.adm-hero .page-title { color: #fff; }
.adm-hero .page-sub { color: rgba(243, 247, 244, 0.72); }
.adm-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 1.5rem;
}
.adm-stat .adm-hint {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.adm-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 1.25rem;
  align-items: start;
}
.adm-main, .adm-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.adm-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}
.adm-panel > h2,
.adm-panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.adm-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0.85rem;
}
.adm-panel-sub {
  margin: 0.35rem 0 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.adm-pay-list, .adm-lead-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.adm-pay-card, .adm-lead-card {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  padding: 0.85rem 1rem;
  background: var(--glass);
}
.adm-pay-card.is-pending {
  border-color: #d4b483;
  background: #fff9ef;
}
.adm-pay-top, .adm-lead-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}
.adm-pay-top strong, .adm-lead-top strong { font-family: var(--font-display); }
.adm-pay-top > div, .adm-lead-top > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.adm-pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  font-size: 0.88rem;
}
.adm-pay-grid .k, .adm-lead-meta .k {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 0.15rem;
}
.adm-pay-grid .v { font-weight: 600; }
.adm-pay-action { margin-top: 0.75rem; }
.adm-lead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}
.adm-lead-req {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.adm-lead-urls {
  margin-top: 0.35rem;
  font-size: 0.85rem;
}
.adm-lead-urls summary {
  cursor: pointer;
  color: #c45c26;
  font-weight: 600;
}
.adm-lead-urls pre {
  margin: 0.5rem 0 0;
  padding: 0.65rem 0.75rem;
  background: #f4f7f5;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.78rem;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 160px;
  overflow: auto;
}
.adm-user-cell {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.adm-user-email { font-weight: 600; }
.adm-user-table td { vertical-align: middle; }
.adm-quota { font-variant-numeric: tabular-nums; white-space: nowrap; }
.adm-assign select { width: 100%; }
@media (max-width: 960px) {
  .adm-stats { grid-template-columns: 1fr 1fr; }
  .adm-split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .adm-stats { grid-template-columns: 1fr; }
  .adm-pay-grid { grid-template-columns: 1fr; }
}
