/* Flow Creator public site. Light for reading, dark when the system is; the product window is always the app's own dark canvas. */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --sunk: #eef0f4;
  --ink: #141922;
  --muted: #566074;
  --faint: #7c8596;
  --line: #dfe3ea;
  --accent: #2f63e0;
  --accent-hover: #2552c4;
  --accent-ink: #ffffff;
  --accent-soft: #e6edfd;
  --ok: #17865a;
  --fail: #c23b3b;
  --dot: #d5dae3;
  --radius: 10px;
  --wrap: 1120px;
  --font: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171d;
    --surface: #1b1f27;
    --sunk: #181b22;
    --ink: #e4e7ed;
    --muted: #9aa3b2;
    --faint: #6f7889;
    --line: #2d3441;
    --accent: #5b8cff;
    --accent-hover: #7aa2ff;
    --accent-ink: #0d1220;
    --accent-soft: #1f2a44;
    --ok: #3ccb8f;
    --fail: #f06a6a;
    --dot: #262c37;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--sunk); border: 1px solid var(--line); border-radius: 5px; padding: 0.05em 0.35em; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 8px; border: 1px solid transparent;
  font: 500 15px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--faint); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
.link { color: var(--ink); text-decoration: none; font-weight: 500; }
.link:hover { color: var(--accent); }
.more { font-weight: 500; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.menu { display: flex; align-items: center; flex: 1; gap: 24px; }
.menu-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex: 1; }
.menu-links a { display: block; padding: 8px 12px; border-radius: 7px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.menu-links a:hover { color: var(--ink); background: var(--sunk); }
.menu-links a[aria-current="page"] { color: var(--ink); }
.menu-account { display: flex; align-items: center; gap: 16px; }
.menu-account .link[aria-current="page"] { color: var(--accent); }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, background-color .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 879px) {
  .js .menu-toggle { display: block; }
  .js .menu { display: none; }
  .js .menu.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 16px;
    position: absolute; left: 0; right: 0; top: 64px; padding: 12px 20px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .menu { flex-wrap: wrap; }
  .menu-links { flex-direction: column; }
  .menu-links a { padding: 12px; font-size: 16px; }
  .menu-account { justify-content: space-between; padding: 0 12px; }
  html:not(.js) .topbar-in { flex-wrap: wrap; padding: 10px 0; }
  html:not(.js) .menu-links { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 40px;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  background-position: -11px -11px;
  border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); max-width: 15ch; letter-spacing: -0.03em; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 62ch; margin: 20px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }

/* ---------- Product window (the app, dark) ---------- */
.demo { margin: 56px 0 0; }
.demo-window {
  --c-canvas: #14171d; --c-panel: #1b1f27; --c-raised: #232833; --c-line: #2d3441;
  --c-ink: #e4e7ed; --c-muted: #8a93a3; --c-faint: #5d6676; --c-accent: #5b8cff; --c-live: #f2b84b; --c-ok: #3ccb8f; --c-fail: #f06a6a;
  background: var(--c-canvas); color: var(--c-ink);
  border: 1px solid #0c0e12; border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 60px -30px rgba(10, 20, 45, .45);
}
.demo-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--c-panel); border-bottom: 1px solid var(--c-line); font-size: 13px; }
.demo-project { font-weight: 500; }
.demo-sep { color: var(--c-faint); margin: 0 4px; }
.demo-env { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid var(--c-line); border-radius: 6px; color: var(--c-muted); }
.demo-env .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-ok); }
.demo-run { margin-left: auto; padding: 5px 12px; border-radius: 6px; background: var(--c-accent); color: #0d1220; font-weight: 500; transition: transform .15s, box-shadow .15s; }
.demo-run.pressed { transform: scale(.95); box-shadow: 0 0 0 4px rgba(91,140,255,.3); }
.demo-describe { padding: 14px 16px; border-bottom: 1px solid var(--c-line); background: var(--c-panel); }
.demo-label { display: block; font-size: 12px; color: var(--c-muted); margin-bottom: 6px; }
.demo-text { margin: 0; font-size: 14.5px; line-height: 1.55; min-height: 3.1em; max-width: 110ch; }
.caret { display: none; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -0.18em; background: var(--c-accent); }
.demo.typing .caret { display: inline-block; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-canvas {
  padding: 16px; overflow-x: auto;
  background-image: radial-gradient(#2b313c 1.2px, transparent 1.2px); background-size: 22px 22px;
}
.demo-svg { width: 100%; min-width: 760px; height: auto; font-family: var(--font); }
.lane rect { fill: rgba(27,31,39,.72); stroke: var(--c-line); }
.lane-system rect { fill: rgba(20,23,29,.6); stroke-dasharray: 4 4; }
.lane-name { fill: var(--c-ink); font-size: 14px; font-weight: 600; }
.lane-sub { fill: var(--c-muted); font-size: 11.5px; font-family: var(--mono); }
.dn-card { fill: var(--c-panel); stroke: var(--c-line); stroke-width: 1.2; transition: stroke .25s, fill .25s; }
.dn-kind { fill: var(--c-muted); font-size: 11.5px; }
.dn-label { fill: var(--c-ink); font-size: 15px; font-weight: 600; }
.dn-call, .dn-detail { fill: var(--c-muted); font-size: 11.5px; font-family: var(--mono); }
.dn-status { font-size: 12px; font-family: var(--mono); font-weight: 500; }
.dn.running .dn-card { stroke: var(--c-live); stroke-width: 2; }
.dn.running .dn-status { fill: var(--c-live); }
.dn.passed .dn-card { stroke: var(--c-ok); }
.dn.passed .dn-status { fill: var(--c-ok); }
.dn-data.touched .dn-card { stroke: var(--c-accent); }
.de { fill: none; stroke: #4a5466; stroke-width: 1.6; }
.de-data { stroke: #343c4a; stroke-dasharray: 3 5; }
.de.active { stroke: var(--c-live); stroke-width: 2.2; }
.de.done { stroke: #3a7a62; }
.packet { fill: var(--c-live); opacity: 0; }
.packet.on { opacity: 1; }
.m-GET { fill: #3ccb8f; color: #3ccb8f; }
.m-POST { fill: #f2b84b; color: #f2b84b; }
.m-PUT { fill: #5b8cff; color: #5b8cff; }
.m-PATCH { fill: #9a7bff; color: #9a7bff; }
.m-DELETE { fill: #f06a6a; color: #f06a6a; }
.demo-console { list-style: none; margin: 0; padding: 10px 16px 12px; border-top: 1px solid var(--c-line); background: var(--c-panel); font: 12.5px/1.9 var(--mono); height: calc(5 * 1.9em + 22px); overflow: hidden; }
.demo-console li { display: flex; gap: 14px; align-items: baseline; white-space: nowrap; }
.demo-console .c-actor { color: var(--c-muted); width: 13ch; flex: none; overflow: hidden; text-overflow: ellipsis; }
.demo-console .call { background: none; border: 0; padding: 0; font-size: inherit; color: var(--c-ink); overflow: hidden; text-overflow: ellipsis; }
.demo-console .c-status { margin-left: auto; color: var(--c-ok); }
.demo figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Animated: everything starts hidden and is revealed by site.js. Without it, the finished flow shows. */
.demo.anim .dn, .demo.anim .de, .demo.anim .lane { opacity: 0; transition: opacity .35s ease, transform .35s ease; }
.demo.anim .dn { transform-box: fill-box; }
.demo.anim .lane.on, .demo.anim .de.on { opacity: 1; }
.demo.anim .dn.on { opacity: 1; }
.demo.anim .demo-console li { display: none; }
.demo.anim .demo-console li.on { display: flex; animation: line-in .25s ease; }
@keyframes line-in { from { opacity: 0; transform: translateY(4px); } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -0.02em; margin-bottom: 20px; }
.section p { color: var(--muted); max-width: 62ch; }
.features { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.features article { padding: 28px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.features h3 { font-size: 20px; }
.features p { margin: 0; }
@media (min-width: 800px) {
  .features { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .features article { padding: 32px 0; }
}
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }
.stack-list { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.stack-list div { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
@media (min-width: 560px) { .stack-list div { grid-template-columns: 110px 1fr; gap: 16px; } }
.stack-list dt { font-weight: 600; }
.stack-list dd { margin: 0; color: var(--muted); }
.trio { display: grid; gap: 40px; margin-top: 40px; }
@media (min-width: 860px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.trio article { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 2px solid var(--ink); }
.trio h3 { font-size: 20px; }
.trio p { margin: 0; flex: 1; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}

/* ---------- Call-to-action band ---------- */
.cta-band { background: #14171d; color: #e4e7ed; padding: 72px 0; }
.cta-in { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .cta-in { grid-template-columns: 1fr auto; } }
.cta-band h2 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -0.02em; }
.cta-band p { color: #9aa3b2; margin: 12px 0 0; max-width: 56ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-primary { background: #5b8cff; color: #0d1220; }
.cta-band .btn-primary:hover { background: #7aa2ff; }
.cta-band .btn-ghost { background: transparent; color: #e4e7ed; border-color: #3b4454; }
.cta-band .btn-ghost:hover { border-color: #8a93a3; }

/* ---------- Subpages ---------- */
.page-head { padding: 64px 0 48px; border-bottom: 1px solid var(--line); background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.page-head h1 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -0.025em; max-width: 20ch; }
.kicker { color: var(--accent); font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.doc { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 88px; }
@media (min-width: 960px) { .doc { grid-template-columns: 220px 1fr; gap: 64px; } }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.toc a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: 14.5px; border: 1px solid var(--line); }
@media (min-width: 960px) {
  .toc { position: sticky; top: 96px; align-self: start; }
  .toc ul { flex-direction: column; gap: 2px; }
  .toc a { border: 0; padding: 6px 10px; }
}
.toc a:hover, .toc a.here { color: var(--ink); background: var(--sunk); }
.doc-body { min-width: 0; max-width: 72ch; }
.doc-body section { padding: 8px 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.doc-body section:last-child { border-bottom: 0; margin-bottom: 0; }
.doc-body h2 { font-size: 26px; margin-bottom: 16px; }
.doc-body p, .doc-body li { color: var(--muted); }
.doc-body strong { color: var(--ink); font-weight: 600; }
.doc-body ul { padding-left: 20px; margin: 0 0 1em; }
.doc-body li { margin-bottom: 8px; }
.example { margin: 24px 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.example-quote { color: var(--ink) !important; font-size: 16px; margin-bottom: 16px; }
.example-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.example-steps li { counter-increment: s; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0; font-size: 15px; }
.example-steps li::before { content: counter(s); font: 500 12px/20px var(--mono); width: 22px; height: 22px; border-radius: 50%; text-align: center; background: var(--sunk); color: var(--muted); flex: none; border: 1px solid var(--line); }
.example-steps li > span { color: var(--ink); min-width: 13ch; }
.call { white-space: nowrap; }
@media (prefers-color-scheme: light) {
  .example .m-GET, .doc-body .m-GET, .steps .m-GET { color: #11845a; }
  .example .m-POST, .doc-body .m-POST, .steps .m-POST { color: #a86a00; }
  .example .m-PATCH, .doc-body .m-PATCH, .steps .m-PATCH { color: #6a4be0; }
  .example .m-PUT, .doc-body .m-PUT, .steps .m-PUT { color: #2f63e0; }
  .example .m-DELETE, .doc-body .m-DELETE, .steps .m-DELETE { color: #c23b3b; }
}

.table-wrap { overflow-x: auto; margin: 20px 0 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { font-weight: 600; color: var(--ink); background: var(--sunk); }
td { color: var(--muted); }

/* How it works: a real sequence, so it is numbered. */
.steps { list-style: none; margin: 0; padding: 56px 0 88px; counter-reset: step; max-width: 76ch; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 48px 64px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font: 600 16px/1 var(--font); color: var(--accent); background: var(--accent-soft);
}
.steps > li::after { content: ""; position: absolute; left: 19px; top: 46px; bottom: 6px; width: 2px; background: var(--line); }
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps h2 { font-size: 22px; margin-bottom: 10px; }
.steps p { color: var(--muted); }

/* Security */
.facts { display: grid; gap: 0; padding: 32px 0 88px; }
@media (min-width: 900px) { .facts { grid-template-columns: 1fr 1fr; column-gap: 64px; } }
.facts section { padding: 32px 0; border-bottom: 1px solid var(--line); }
.facts h2 { font-size: 22px; margin-bottom: 16px; }
.facts ul { margin: 0; padding-left: 20px; color: var(--muted); }
.facts li { margin-bottom: 8px; }

/* Pricing */
.plans { display: grid; gap: 16px; padding-top: 48px; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(var(--plans, 3), 1fr); } }
.plan { display: flex; flex-direction: column; gap: 16px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.plan-mid { border: 2px solid var(--accent); }
.plan h2 { font-size: 20px; }
.plan-price { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; color: var(--muted); font-size: 15px; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.plans-note { color: var(--muted); font-size: 15px; margin: 20px 0 0; }
.compare-title { margin-top: 72px; }
.compare td { white-space: nowrap; }
.compare tbody th { font-weight: 500; color: var(--ink); }
.faq { padding: 56px 0 88px; max-width: 76ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 20px; }

/* ---------- Log in, sign up ---------- */
.auth { padding: 64px 0 96px; min-height: calc(100vh - 64px - 260px); background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.auth-in { display: grid; gap: 40px; justify-content: center; }
@media (min-width: 900px) { .auth-in { grid-template-columns: minmax(0, 440px) minmax(0, 340px); gap: 72px; align-items: start; } }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 32px 28px; }
@media (min-width: 560px) { .auth-card { padding: 40px; } }
.auth-card h1 { font-size: 28px; margin-bottom: 8px; }
.auth-intro { color: var(--muted); margin-bottom: 24px; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; font-size: 14.5px; font-weight: 500; }
.field input {
  width: 100%; min-height: 46px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font: 400 16px var(--font);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--fail); }
.form-error { margin: 0; padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--fail) 12%, transparent); color: var(--fail); font-size: 14.5px; }
.form-fine { color: var(--faint); font-size: 13.5px; margin: 0; }
.form-done h2 { font-size: 20px; margin-bottom: 8px; }
.form-done p { color: var(--muted); }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin: 24px 0 0; font-size: 14.5px; color: var(--muted); }
.auth-aside { padding-top: 8px; max-width: 340px; }
.auth-aside h2 { font-size: 18px; margin-bottom: 16px; }
.auth-aside ol { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 12px; }
.auth-aside strong { color: var(--ink); font-weight: 600; }
.auth-aside .checklist { color: var(--muted); }
.auth-aside .form-fine { margin-top: 20px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--surface); padding: 56px 0 0; font-size: 15px; }
.footer-in { display: grid; gap: 40px; }
@media (min-width: 860px) { .footer-in { grid-template-columns: 1.2fr 2fr; gap: 64px; } }
.footer-brand p { color: var(--muted); margin: 14px 0 0; max-width: 36ch; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px; }
.footer-cols h2 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-cols a { color: var(--muted); text-decoration: none; }
.footer-cols a:hover { color: var(--ink); }
.footer-base { margin-top: 48px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.footer-base p { margin: 0; }

.notfound { min-height: 50vh; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
