/* Brand tokens, generated from site.config.json. */
:root {
  --paper: #ffffff;
  --surface: #f6f7f9;
  --ink: #0a0e17;
  --muted: #485263;
  --border: #e1e5ea;
  --primary: #1f48d1;
  --on-primary: #ffffff;
  --accent: #0a7461;
  --focus: #b45309;
  --deep: #0a0d13;
  --on-deep: #eef1f6;
  --on-deep-muted: #9aa5b4;
  --deep-line: #232a35;
  --deep-primary: #7f9fff;
  --deep-on-primary: #06101f;
  --deep-accent: #4fd1b0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0a0d13;
    --surface: #10141b;
    --ink: #eef1f6;
    --muted: #9aa5b4;
    --border: #232a35;
    --primary: #7f9fff;
    --on-primary: #06101f;
    --accent: #4fd1b0;
    --focus: #ffb547;
    --deep: #10141b;
    --on-deep: #eef1f6;
    --on-deep-muted: #9aa5b4;
    --deep-line: #232a35;
    --deep-primary: #7f9fff;
    --deep-on-primary: #06101f;
    --deep-accent: #4fd1b0;
  }
}
/* The public site. Colours come only from the brand tokens above; system fonts, no images, no
   web fonts. Mobile first: 16px gutters at phone width, no horizontal page scroll. */

:root {
  --primary-soft: color-mix(in srgb, var(--primary) 8%, var(--paper));
  --accent-soft: color-mix(in srgb, var(--accent) 10%, var(--paper));
  --warn-soft: color-mix(in srgb, var(--focus) 12%, var(--paper));
  --line: var(--border);
  --line-soft: color-mix(in srgb, var(--border) 55%, var(--paper));
  --line-strong: color-mix(in srgb, var(--ink) 28%, var(--paper));
  --ui-bg: var(--paper);
  --shadow: 0 1px 2px rgb(10 14 23 / 6%);
  --shadow-lg: 0 1px 1px rgb(10 14 23 / 5%), 0 10px 24px -6px rgb(10 14 23 / 10%), 0 40px 80px -24px rgb(10 14 23 / 22%);
  --radius: 10px;
  --radius-lg: 16px;
  --gutter: 16px;
  --max: 76rem;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 100%;
  line-height: 1.6;
  color-scheme: light dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); overflow-wrap: break-word; }
img, svg { max-width: 100%; }
a { color: var(--primary); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
code, pre { font-family: ui-monospace, "Cascadia Code", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 0.9em; }
:not(pre) > code { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 0.05em 0.35em; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; font-weight: 650; text-wrap: balance; }
h1 { font-size: clamp(2.375rem, 1.5rem + 4.4vw, 4.25rem); line-height: 1.03; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.75rem, 1.25rem + 2.2vw, 2.75rem); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: 1.0625rem; letter-spacing: -0.01em; font-weight: 600; }
p { margin: 0 0 1em; text-wrap: pretty; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 100; background: var(--paper); color: var(--primary); padding: 12px 16px; border-radius: 8px; box-shadow: var(--shadow-lg); }
.skip-link:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.icon { width: 24px; height: 24px; flex: none; }
.icon-inline { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 90%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.5) blur(10px); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; padding-top: 6px; padding-bottom: 0; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand-name { font-weight: 650; font-size: 1.25rem; letter-spacing: -0.035em; }
.logo-mark { width: 28px; height: 28px; flex: none; }
.logo-ring { stroke: var(--ink); }
.logo-dot { fill: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--muted); font-size: 0.9375rem; font-weight: 500; text-decoration: none; border-radius: 8px; }
.header-link:hover { color: var(--ink); }
.main-nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav ul { display: flex; gap: 0 2px; margin: 0 -8px; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--muted); font-size: 0.9rem; font-weight: 500; text-decoration: none; border-radius: 8px; white-space: nowrap; }
.main-nav a:hover { color: var(--ink); background: var(--surface); }
.main-nav a[aria-current="page"], .main-nav a.in-section { color: var(--ink); font-weight: 600; }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--primary); border-radius: 0; }
@media (min-width: 60rem) {
  .main-nav { order: 0; flex-basis: auto; overflow: visible; margin: 0 0 0 20px; padding: 0; }
  .main-nav ul { margin: 0; }
  .header-inner { flex-wrap: nowrap; padding-top: 10px; padding-bottom: 10px; }
}

/* ---- buttons ---- */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.75rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: 9px; border: 1px solid var(--primary); font: inherit; font-size: 0.9375rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.button-primary { background: var(--primary); color: var(--on-primary); box-shadow: inset 0 1px 0 rgb(255 255 255 / 16%), 0 1px 2px rgb(10 14 23 / 18%); }
.button-primary:hover { background: color-mix(in srgb, var(--primary) 86%, var(--ink)); border-color: color-mix(in srgb, var(--primary) 86%, var(--ink)); }
.button-secondary { background: var(--paper); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow); }
.button-secondary:hover { background: var(--surface); }
.button:disabled { opacity: 0.6; cursor: not-allowed; }
.header-cta { padding: 8px 14px; min-height: 40px; }

/* ---- breadcrumbs ---- */
.breadcrumbs { padding-top: 14px; font-size: 0.8125rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); display: inline-block; padding: 6px 0; }
.breadcrumbs a[aria-current="page"] { color: var(--ink); text-decoration: none; }

/* ---- hero ---- */
.hero { position: relative; isolation: isolate; padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 11%, transparent) 1px, transparent 0);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%); mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.hero-compact { padding: clamp(1.5rem, 5vw, 3rem) 0 clamp(1rem, 3vw, 2rem); }
.hero-compact h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.9rem); letter-spacing: -0.035em; }
.hero-compact::before { display: none; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.01em; margin-bottom: 1rem; }
.hero .eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.lead { font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem); line-height: 1.5; color: var(--muted); max-width: 40rem; letter-spacing: -0.01em; }
.hero h1 { max-width: 17ch; }
.hero-compact h1 { max-width: none; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 64rem) { .hero-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4rem; } }
.hero-stage .hero-copy { max-width: 52rem; }
.hero-stage .hero-copy h1 { max-width: 15ch; }
.hero-stage .visual { margin-top: clamp(2.5rem, 6vw, 4rem); }
.hero-note { margin-top: 1rem; color: var(--muted); font-size: 0.9375rem; }
.hero-compact + .section, .hero-compact + .section-prose { padding-top: clamp(0.5rem, 2vw, 1.5rem); }

/* ---- sections ---- */
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section + .section:not(.tone-surface):not(.tone-ink):not(.cta-band) { border-top: 1px solid var(--line-soft); }
.hero + .section { border-top: 0; }
.tone-surface { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 { margin-bottom: 0.4em; }
.intro { color: var(--muted); font-size: 1.125rem; line-height: 1.55; max-width: 44rem; }
.section-head .intro { margin: 0; }

.tone-ink {
  --paper: var(--deep); --surface: color-mix(in srgb, var(--deep) 92%, var(--on-deep)); --ink: var(--on-deep); --muted: var(--on-deep-muted); --border: var(--deep-line);
  --primary: var(--deep-primary); --on-primary: var(--deep-on-primary); --accent: var(--deep-accent); --ui-bg: color-mix(in srgb, var(--deep) 90%, var(--on-deep));
  --shadow-lg: 0 0 0 1px rgb(255 255 255 / 4%), 0 40px 80px -24px rgb(0 0 0 / 60%);
  --primary-soft: color-mix(in srgb, var(--primary) 14%, var(--paper)); --accent-soft: color-mix(in srgb, var(--accent) 14%, var(--paper)); --warn-soft: color-mix(in srgb, var(--focus) 16%, var(--paper));
  --line: var(--border); --line-soft: color-mix(in srgb, var(--border) 55%, var(--paper)); --line-strong: color-mix(in srgb, var(--ink) 28%, var(--paper));
  background: var(--deep); color: var(--on-deep);
}
.tone-ink a { color: var(--primary); }

/* feature lists: ruled columns, not boxed cards */
.features { display: grid; gap: 0 clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.features-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); }
.feature { position: relative; border-top: 1px solid var(--line); padding: 1.25rem 0 2rem; }
.feature h3 { margin: 0.9rem 0 0.4rem; display: flex; align-items: center; gap: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.icon-feature { width: 22px; height: 22px; color: var(--primary); }
.icon-go { width: 16px; height: 16px; color: var(--muted); transition: transform 0.15s ease, color 0.15s ease; }
.feature-link h3 a { color: var(--ink); text-decoration: none; }
.feature-link h3 a::after { content: ""; position: absolute; inset: 0; }
.feature-link:hover .icon-go { transform: translate(2px, -2px); color: var(--primary); }
.feature-link:hover { border-top-color: var(--primary); }
.feature-link:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.feature-link h3 a:focus-visible { outline: none; }
.features-rows .feature { align-content: start; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; }
.features-rows .feature h3 { margin-top: 0; }
.features-rows .icon-feature { margin-top: 2px; }
.features-rows .feature p { grid-column: 2; }

/* facts band */
.facts-band { border-block: 1px solid var(--line); background: var(--surface); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts li { padding: 1.25rem 0 1.25rem 1.25rem; border-left: 1px solid var(--line); display: grid; gap: 2px; }
.facts li:nth-child(odd) { border-left: 0; padding-left: 0; }
.facts b { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.facts span { color: var(--muted); font-size: 0.875rem; }
@media (min-width: 48rem) {
  .facts { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  .facts li:nth-child(odd) { border-left: 1px solid var(--line); padding-left: 1.5rem; }
  .facts li:first-child { border-left: 0; padding-left: 0; }
}

/* channels */
.channel-grid { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); }
.channel-grid li { margin: 0 -1px -1px 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.channel-grid a { display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 1.25rem; text-decoration: none; color: var(--ink); }
.channel-grid a:hover { background: var(--surface); }
.channel-grid strong { display: block; font-weight: 600; letter-spacing: -0.01em; }
.channel-grid span span { display: block; color: var(--muted); font-size: 0.875rem; line-height: 1.45; }
.icon-channel { width: 24px; height: 24px; color: var(--primary); margin-top: 1px; }
@media (min-width: 36rem) { .channel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 52rem) { .channel-grid { grid-template-columns: repeat(3, 1fr); } }
.channel-cards { display: grid; gap: 0 clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.channel-card { border-top: 1px solid var(--line); padding: 1.25rem 0 2rem; }
.channel-title { display: flex; align-items: center; gap: 10px; margin-bottom: 0.5rem; }
.channel-title h3 { margin: 0; font-size: 1.125rem; }
.channel-facts { margin: 0; display: grid; gap: 2px; }
.channel-facts dt { font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-top: 12px; }
.channel-facts dd { margin: 0; color: var(--ink); font-size: 0.9375rem; }

/* steps */
.steps { display: grid; gap: 0 clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.steps li { border-top: 1px solid var(--line); padding: 1.25rem 0 2rem; }
.step-no { display: block; font: 500 0.8125rem ui-monospace, "Cascadia Code", SFMono-Regular, Menlo, Consolas, monospace; color: var(--primary); margin-bottom: 1.5rem; letter-spacing: 0.04em; }
.steps h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.steps p { color: var(--muted); margin: 0; }

/* showcase: copy beside a product visual */
.showcase-grid { display: grid; gap: 2.5rem; align-items: center; }
.showcase-copy .eyebrow { margin-bottom: 0.9rem; }
.showcase-copy p { color: var(--muted); font-size: 1.0625rem; }
.points { display: grid; gap: 14px; margin-top: 1.75rem; }
.points li { display: flex; gap: 12px; align-items: flex-start; }
.points .icon-feature { margin-top: 3px; }
.points strong { color: var(--ink); font-weight: 600; }
.points span { color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }
@media (min-width: 64rem) {
  .showcase-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 4.5rem; }
  .showcase-flip .showcase-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .showcase-flip .visual { order: -1; }
}

.split { display: grid; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; } }
.checklist { display: grid; gap: 12px; align-content: start; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.icon-check { width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.split p { color: var(--muted); font-size: 1.0625rem; }

/* faq */
.faq-layout { display: grid; gap: 2rem; }
.faq { max-width: 52rem; border-bottom: 1px solid var(--line); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item summary { cursor: pointer; padding: 1.1rem 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; min-height: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--muted); flex: none; font-weight: 400; }
.faq-item[open] summary::after { content: "\2212"; color: var(--primary); }
.faq-item summary:hover h3 { color: var(--primary); }
.faq-item summary h3 { margin: 0; font-size: 1.0625rem; }
.faq-answer { padding: 0 2.5rem 0.5rem 0; color: var(--muted); }
@media (min-width: 64rem) {
  .faq-layout { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 4rem; }
  .faq-head { position: sticky; top: 6rem; align-self: start; }
}

/* call to action */
.cta-band { background: var(--deep); color: var(--on-deep); border-top: 1px solid var(--deep-line); }
.cta-band h2 { color: var(--on-deep); max-width: 22ch; margin-bottom: 0.4em; }
.cta-band p { color: var(--on-deep-muted); margin: 0; font-size: 1.125rem; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-band .actions { margin-top: 0; }
.cta-band .button-primary { background: var(--on-deep); color: var(--deep); border-color: var(--on-deep); box-shadow: none; }
.cta-band .button-primary:hover { background: color-mix(in srgb, var(--on-deep) 88%, var(--deep)); }
.cta-band .button-secondary { background: transparent; color: var(--on-deep); border-color: var(--deep-line); box-shadow: none; }
.cta-band .button-secondary:hover { background: color-mix(in srgb, var(--on-deep) 8%, transparent); }
.cta-band a:focus-visible { outline-color: var(--on-deep); }

.prose { max-width: 48rem; }
.prose p, .prose-list { color: var(--ink); }
.prose-sub { margin-top: 1.75rem; }
.prose-list { padding-left: 1.25rem; }
.prose-list li { margin-bottom: 0.5em; }
.section-prose + .section-prose { padding-top: 0; border-top: 0; }

.notice { border: 1px solid color-mix(in srgb, var(--focus) 40%, var(--paper)); border-left: 4px solid var(--focus); background: var(--warn-soft); padding: 12px 16px; border-radius: 8px; max-width: 46rem; }

/* ---- pricing ---- */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); margin: 1.5rem 0 3rem; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 4px; padding: 24px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); }
.plan-featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow); }
.plan-badge { align-self: flex-start; background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: 0.75rem; padding: 2px 10px; border-radius: 999px; margin-bottom: 6px; }
.plan-summary { color: var(--muted); font-size: 0.9375rem; }
.price { margin: 4px 0 12px; }
.price-amount { font-size: 2.25rem; font-weight: 650; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.price-text { font-size: 1.5rem; }
.price-unit { color: var(--muted); font-size: 0.9375rem; }
.plan-base { font-weight: 600; margin-bottom: 8px; }
.plan .checklist { margin-bottom: 20px; flex: 1; gap: 8px; font-size: 0.9375rem; }
.plan .button { width: 100%; }
.plans-mini { display: grid; gap: 0 clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); margin-top: 2rem; }
.plan-mini { border-top: 1px solid var(--line); padding: 1.25rem 0 1.5rem; }
.plan-mini.is-featured { border-top: 2px solid var(--primary); margin-top: -1px; }
.plan-mini h3 { margin-bottom: 0.25rem; }
.plan-mini .price { margin: 0 0 0.5rem; }
.plan-mini .plan-summary { margin: 0; }
.contact-split .checklist { margin-bottom: 1.25rem; }
.trial-box { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--line); border-radius: 10px; }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--surface); font-size: 0.8125rem; color: var(--muted); font-weight: 600; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody th { font-weight: 600; }
.fields .field-name { white-space: nowrap; }
.fields .depth-1 { padding-left: 28px; }
.fields .depth-2 { padding-left: 44px; }
.fields .depth-3 { padding-left: 60px; }
.fields .depth-4 { padding-left: 76px; }
.note { display: inline-block; color: var(--muted); font-size: 0.88rem; }
.note + .note::before { content: "\00b7 "; }

/* ---- form ---- */
.lead-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 4vw, 32px); box-shadow: var(--shadow-lg); }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: 8px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--focus); border-width: 2px; }
.help { color: var(--muted); font-size: 0.875rem; margin: 6px 0 0; }
.field-error { color: var(--ink); font-weight: 600; font-size: 0.92rem; margin: 6px 0 0; padding-left: 10px; border-left: 4px solid var(--focus); }
.req { color: var(--muted); margin-left: 2px; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; min-height: 44px; padding-top: 8px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--primary); }
.check-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.field-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--muted); font-size: 0.875rem; }
.form-errors { border: 2px solid var(--focus); border-radius: 8px; padding: 12px 16px; margin-bottom: 18px; }
.form-errors p { font-weight: 700; margin-bottom: 6px; }
.form-errors ul { margin: 0; padding-left: 1.2rem; }
.form-status { margin: 14px 0 0; font-weight: 600; min-height: 1.6em; }

/* ---- developer docs ---- */
.docs-layout { display: grid; gap: 0 40px; padding-top: 0; }
.docs-content { min-width: 0; }
.docs-content .wrap { padding: 0; max-width: none; }
.docs-content .hero::before { display: none; }
.docs-jump { margin: 16px 0 0; }
.docs-nav { border-top: 1px solid var(--line); padding: 24px 0 40px; }
.docs-nav-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 16px 0 6px; }
.docs-nav a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 0.9375rem; }
.docs-nav a:hover { background: var(--surface); }
.docs-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
@media (min-width: 60rem) {
  .docs-layout { grid-template-columns: 15rem minmax(0, 1fr); }
  .docs-nav { grid-column: 1; grid-row: 1; border-top: 0; position: sticky; top: 72px; align-self: start; max-height: calc(100vh - 88px); overflow-y: auto; padding-top: 24px; }
  .docs-content { grid-column: 2; grid-row: 1; }
  .docs-jump { display: none; }
}
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 2rem; background: var(--surface); }
.toc-title { font-size: 1rem; margin-bottom: 8px; }
.toc a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; text-decoration: none; overflow-wrap: anywhere; }
.op { border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 2rem; }
.op h2 { font-size: 1.3rem; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; letter-spacing: -0.02em; }
.op-path { font-size: 1rem; overflow-wrap: anywhere; }
.op-meta { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 1rem; }
.op-meta dt { font-weight: 600; }
.op-meta dd { margin: 0; }
.method { display: inline-block; min-width: 4.2em; text-align: center; font: 700 0.78rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 1px 8px; border-radius: 6px; border: 1px solid currentColor; color: var(--ink); background: var(--surface); }
.method-get { color: var(--accent); }
.method-post, .method-put, .method-patch { color: var(--primary); }
.code { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; overflow-x: auto; line-height: 1.5; font-size: 0.88rem; }
.code code { font-size: inherit; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem; font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 2rem 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 60rem) { .footer-grid { grid-template-columns: 1.7fr repeat(4, minmax(0, 1fr)); } .footer-brand { grid-column: auto; padding-right: 2rem; } }
.footer-brand p { color: var(--muted); max-width: 22rem; font-size: 0.9375rem; }
.footer-brand p a { color: var(--ink); text-decoration: none; }
.footer-brand p a:hover { text-decoration: underline; }
.footer-heading { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.footer-col a { display: inline-block; padding: 5px 0; color: var(--ink); text-decoration: none; }
.footer-col a:hover { color: var(--primary); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8125rem; }
.footer-base p { margin: 0; }

/* ---- product visuals (decorative sketches of the console) ---- */
.visual { margin: 0; min-width: 0; container-type: inline-size; }
.visual > figcaption { margin-top: 12px; color: var(--muted); font-size: 0.75rem; }
.ui { background: var(--ui-bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; font-size: 0.8125rem; line-height: 1.4; color: var(--ink); text-align: left; }
.ui .icon { width: 16px; height: 16px; }
.ui-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.ui-bar-title { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.ui-bar-title .icon { color: var(--muted); }
.ui-bar-end { display: flex; gap: 6px; flex: none; }
.ui-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.6875rem; font-weight: 600; color: var(--muted); background: var(--ui-bg); white-space: nowrap; }
.ui-chip.is-soft { background: var(--surface); }
.ui-chip.is-live { color: var(--accent); }
.ui-chip.is-ok { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.ui-chip.is-warn { color: var(--focus); background: var(--warn-soft); border-color: transparent; }
.ui-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
.ui-label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.6875rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ui-label .icon { width: 13px; height: 13px; }
.ui-ch { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); flex: none; background: var(--ui-bg); }
.ui-time { font: 600 0.6875rem ui-monospace, "Cascadia Code", SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); white-space: nowrap; }
.hide-sm, .ui-thread.hide-sm { display: none; }
.ui-cols { display: grid; grid-template-columns: minmax(0, 1fr); }
.ui-tabs { display: flex; gap: 14px; padding: 0 14px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-weight: 600; }
.ui-tabs span { padding: 9px 0; }
.ui-tabs .is-on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--primary); }
.ui-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.ui-row.is-active { background: var(--primary-soft); }
.ui-row.is-call .ui-ch { color: var(--accent); border-color: var(--accent); }
.ui-row-main { display: grid; min-width: 0; flex: 1; }
.ui-row-main b { font-weight: 600; }
.ui-row-main span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-thread { display: flex; flex-direction: column; border-left: 1px solid var(--line); min-width: 0; }
.ui-thread-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.ui-msgs { padding: 14px; flex: 1; }
.ui-msg { max-width: 82%; width: fit-content; margin: 0 0 8px; padding: 8px 12px; border-radius: 12px; background: var(--surface); }
.ui-msg small { display: block; margin-top: 2px; font-size: 0.6875rem; opacity: 0.7; }
.ui-msg.is-out { margin-left: auto; background: var(--primary); color: var(--on-primary); }
.ui-msg.is-ai { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.ui-msg.is-ai .ui-label { display: flex; color: var(--accent); margin-bottom: 4px; }
.ui-suggest { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 10px 12px; margin-top: 12px; }
.ui-suggest .ui-label { color: var(--accent); }
.ui-suggest p { margin: 6px 0 8px; }
.ui-actions { display: flex; gap: 6px; }
.ui-btn-sm { padding: 3px 12px; border-radius: 7px; border: 1px solid var(--line-strong); font-weight: 600; font-size: 0.75rem; }
.ui-btn-sm.is-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.ui-composer { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--line-soft); color: var(--muted); }
.ui-side { background: var(--surface); border-left: 1px solid var(--line); padding: 4px 0; }
.ui-card { background: var(--ui-bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 12px; }
.ui-card-head { display: flex; align-items: center; justify-content: space-between; }
.ui-name { display: block; margin: 4px 0 8px; font-size: 0.9375rem; }
.ui-kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.ui-kv dt { color: var(--muted); }
.ui-kv dd { margin: 0; }
.ui-timer { font: 600 0.8125rem ui-monospace, "Cascadia Code", SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
.ui-call-who { display: grid; margin: 8px 0 0; }
.ui-call-who span { color: var(--muted); }
.ui-wave { display: flex; align-items: center; gap: 3px; height: 34px; margin: 8px 0; }
.ui-wave i { flex: 1; border-radius: 2px; background: var(--accent); height: 8px; opacity: 0.85; }
.ui-wave i:nth-child(3n+1) { height: 14px; }
.ui-wave i:nth-child(3n+2) { height: 26px; }
.ui-wave i:nth-child(3n) { height: 18px; }
.ui-wave i:nth-child(5n) { height: 32px; }
.ui-wave i:nth-child(7n) { height: 6px; }
.ui-controls { display: flex; gap: 8px; }
.ui-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); display: inline-grid; place-items: center; }
.ui-btn-end { background: var(--ink); color: var(--paper); border-color: var(--ink); margin-left: auto; }
.ui-big { font-size: 1.75rem; font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.ui-big small { display: block; font-size: 0.75rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.ui-spark { display: block; width: 100%; height: 32px; margin-top: 8px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ui-spark path { vector-effect: non-scaling-stroke; }
.ui-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.ui-stats > div { padding: 12px 14px; border-right: 1px solid var(--line); }
.ui-stats > div:last-child { border-right: 0; }
.ui-stats b { display: block; font-size: 1.625rem; letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ui-gov { padding: 14px; border-bottom: 1px solid var(--line); }
.ui-gov-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.ui-gov-head small { color: var(--muted); }
.ui-gov p { margin: 8px 0 0; color: var(--muted); }
.ui-track { display: block; height: 8px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.ui-fill { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.w-40 { width: 40%; }
.ui-leads { padding: 14px; }
.ui-leads ul { margin-top: 8px; }
.ui-leads li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.ui-ai .ui-msgs, .ui-api .ui-code { padding: 16px; }
.ui-handoff { display: flex; align-items: center; gap: 8px; margin: 14px 0 10px; color: var(--muted); font-weight: 600; }
.ui-handoff::before, .ui-handoff::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.ui-handoff::before { order: -1; }
.ui-note { border: 1px solid var(--line); border-left: 3px solid var(--focus); background: var(--warn-soft); border-radius: 8px; padding: 8px 12px; margin: 0; }
.ui-note .ui-label { display: block; margin-bottom: 2px; }
.ui-chart { padding: 14px; border-bottom: 1px solid var(--line); }
.ui-bars { display: flex; align-items: flex-end; gap: 6px; height: 88px; margin-top: 10px; }
.ui-bars i { flex: 1; border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--primary) 70%, var(--paper)); height: 40%; }
.ui-bars i:nth-child(1) { height: 30%; } .ui-bars i:nth-child(2) { height: 38%; } .ui-bars i:nth-child(3) { height: 52%; } .ui-bars i:nth-child(4) { height: 64%; }
.ui-bars i:nth-child(5) { height: 82%; } .ui-bars i:nth-child(6) { height: 70%; } .ui-bars i:nth-child(7) { height: 58%; } .ui-bars i:nth-child(8) { height: 74%; }
.ui-bars i:nth-child(9) { height: 90%; } .ui-bars i:nth-child(10) { height: 66%; } .ui-bars i:nth-child(11) { height: 48%; } .ui-bars i:nth-child(12) { height: 36%; }
.ui-states { padding: 14px; }
.ui-stack { display: flex; height: 10px; margin: 10px 0; border-radius: 99px; overflow: hidden; gap: 2px; }
.ui-stack i, .ui-legend i { display: inline-block; }
.ui-stack i { height: 100%; }
.seg-a { background: var(--accent); }
.seg-b { background: var(--primary); }
.seg-c { background: color-mix(in srgb, var(--primary) 40%, var(--paper)); }
.seg-d { background: var(--line-strong); }
.ui-stack .seg-a { width: 38%; } .ui-stack .seg-b { width: 34%; } .ui-stack .seg-c { width: 16%; } .ui-stack .seg-d { width: 12%; }
.ui-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); }
.ui-legend i { width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.ui-chrome { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.ui-chrome span { background: var(--ui-bg); border: 1px solid var(--line); border-radius: 7px; padding: 2px 12px; flex: 1; font: 500 0.75rem ui-monospace, "Cascadia Code", SFMono-Regular, Menlo, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-wl-body { padding: 14px; }
.ui-wl-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ui-wl-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 1rem; letter-spacing: -0.02em; }
.ui-wl-brand i { width: 16px; height: 16px; border-radius: 50%; border: 4px solid var(--primary); display: inline-block; }
.ui-tr { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.ui-tr.is-head { border-top: 0; color: var(--muted); font-size: 0.6875rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; }
.ui-foot { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); }
.ui-sched .ui-foot { margin: 0; padding: 12px 14px; }
.ui-checks { padding: 6px 16px; }
.ui-checks li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.ui-checks .icon { color: var(--accent); }
.ui-result { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 16px; font-weight: 600; }
.ui-result.is-ok { background: var(--accent-soft); color: var(--accent); }
.ui-blocked { padding: 12px 16px; border-top: 1px solid var(--line); }
.ui-blocked p { margin: 4px 0 0; color: var(--muted); }
.ui-grid { display: grid; grid-template-columns: 4.5rem repeat(5, minmax(0, 1fr)); align-items: center; padding: 8px 14px 14px; row-gap: 6px; }
.ui-hour { color: var(--muted); font-size: 0.6875rem; padding-bottom: 4px; border-left: 1px solid var(--line-soft); padding-left: 4px; font-variant-numeric: tabular-nums; }
.ui-who { color: var(--muted); font-weight: 500; }
.ui-lane { grid-column: 2 / 7; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: 22px; align-items: center; }
.shift { display: block; height: 16px; border-radius: 5px; background: color-mix(in srgb, var(--primary) 22%, var(--paper)); border: 1px solid color-mix(in srgb, var(--primary) 55%, var(--paper)); }
.c1-4 { grid-column: 1 / 4; } .c2-5 { grid-column: 2 / 5; } .c1-3 { grid-column: 1 / 3; } .c3-6 { grid-column: 3 / 6; }
.ui-code { padding: 16px; font: 0.78rem/1.6 ui-monospace, "Cascadia Code", SFMono-Regular, Menlo, Consolas, monospace; overflow: hidden; }
.ui-code span { display: block; white-space: pre; min-height: 1.6em; }
.ui-code b { font-weight: 500; }
.ui-code .k { color: var(--primary); }
.ui-code .s { color: var(--accent); }
.ui-code .c { color: var(--muted); }

@container (min-width: 34rem) {
  .hide-sm { display: block; }
  .ui-thread.hide-sm { display: flex; }
  .ui-cols { grid-template-columns: 17rem minmax(0, 1fr); }
  .hide-md { display: none; }
}
@container (min-width: 52rem) {
  .ui-cols { grid-template-columns: 17rem minmax(0, 1fr) 15.5rem; }
  .hide-md { display: block; }
}
.ui-inbox .ui-list { min-width: 0; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .ui-wave i { animation: wave 1.3s ease-in-out infinite alternate; transform-origin: center; }
  .ui-wave i:nth-child(2n) { animation-delay: -0.4s; }
  .ui-wave i:nth-child(3n) { animation-delay: -0.8s; }
  @keyframes wave { from { transform: scaleY(0.55); } to { transform: scaleY(1); } }
}
@media print {
  .site-header, .site-footer, .docs-nav, .skip-link, .actions, .visual { display: none; }
}
.showcase-copy p.eyebrow { color: var(--primary); font-size: 0.8125rem; }
