/* FlowForge API Tester Studio — standalone static site styles. */
:root {
  --bg: #0d1117; --bg-alt: #131a24; --card: #1a2330; --line: #2a3546;
  --text: #e8edf4; --muted: #9aa7b8; --accent: #38bdf8; --accent-strong: #0ea5e9;
  --ok: #34d399; --warn: #fbbf24; --err: #f87171; --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 5px; padding: .1rem .35rem; font-size: .85em; }
.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.container.narrow { width: min(680px, 100% - 2.5rem); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
h3 { font-size: 1.1rem; }
h4 { font-size: .95rem; color: var(--muted); }
.btn { display: inline-block; border-radius: 8px; padding: .55rem 1rem; font-weight: 600; cursor: pointer; font-size: .9rem; border: 1px solid transparent; font-family: inherit; }
.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: #0284c7; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); text-decoration: none; }
.small { font-size: .82rem; color: var(--muted); }
.fineprint { font-size: .78rem; color: var(--muted); margin: .6rem 0 0; }
.form-status { min-height: 1.3em; font-size: .85rem; color: var(--ok); margin: .4rem 0 0; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(13,17,23,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.brand { font-weight: 700; color: var(--text); font-size: 1.05rem; }
.brand span { color: var(--accent); margin-left: .35rem; font-weight: 500; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: .4rem .8rem; font: inherit; cursor: pointer; }
.site-nav { display: flex; gap: 1.1rem; align-items: center; }
.site-nav a { color: var(--muted); font-size: .92rem; }
.site-nav .nav-cta { color: var(--accent); font-weight: 600; }
@media (max-width: 719px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem 1.25rem; border-top: 1px solid var(--line); }
}
.hero { padding: clamp(3rem, 8vw, 5rem) 0; background: radial-gradient(60% 90% at 12% 0%, rgba(56,189,248,.16), transparent 62%), radial-gradient(50% 80% at 95% 25%, rgba(52,211,153,.08), transparent 60%); border-bottom: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--accent); margin: 0 0 .75rem; }
.lede { color: var(--muted); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-sub { color: var(--muted); max-width: 70ch; margin-bottom: 1.5rem; }
.steps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.steps p { color: var(--muted); font-size: .9rem; margin: 0; }

.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.studio-grid .full { grid-column: 1 / -1; }
@media (max-width: 899px) { .studio-grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.card h3 { display: flex; align-items: center; gap: .6rem; }
.step-n { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent); color: #06121e; font-size: .85rem; font-weight: 700; }
label { display: block; margin: .7rem 0 .3rem; font-size: .88rem; }
label.check { display: inline-flex; align-items: center; gap: .4rem; margin: 0; }
textarea, input[type=text], select { width: 100%; background: #0f1623; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: .55rem .65rem; font: inherit; font-size: .88rem; }
textarea { min-height: 7rem; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
textarea.short { min-height: 4.5rem; }
textarea:focus, input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-top: .7rem; }
.row.two-col { align-items: end; }
.row.two-col > div { flex: 1 1 140px; }
.row .grow { flex: 3 1 260px; }
select { width: auto; min-width: 9rem; }
.output { background: #0f1623; color: #d6e0ee; border: 1px solid var(--line); padding: .85rem; border-radius: 8px; overflow: auto; max-height: 24rem; font-size: .8rem; line-height: 1.5; margin: .5rem 0 0; white-space: pre-wrap; word-break: break-word; }
.output-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 899px) { .output-grid { grid-template-columns: 1fr; } }
.mini { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 5px; font-size: .72rem; padding: .1rem .45rem; cursor: pointer; float: right; }
.mini:hover { color: var(--accent); border-color: var(--accent); }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 5px; font-size: .82rem; font-weight: 700; }
.badge.pending { background: #3b4250; color: #fff; }
.badge.success { background: #166534; color: #dcfce7; }
.badge.redirect { background: #854d0e; color: #fef9c3; }
.badge.client-error, .badge.server-error, .badge.fail { background: #991b1b; color: #fee2e2; }
.tabs { display: flex; gap: .25rem; margin-top: .8rem; border-bottom: 1px solid var(--line); }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: .45rem .8rem; cursor: pointer; font: inherit; font-size: .85rem; }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.view { margin-top: .8rem; }
.summary-grid { display: flex; gap: .6rem; flex-wrap: wrap; }
.tile { background: #0f1623; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .8rem; min-width: 110px; }
.tile span { display: block; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.tile strong { font-size: 1rem; }
.field-table { margin-top: .8rem; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .83rem; }
th, td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
td.path { color: var(--accent); font-family: ui-monospace, Menlo, Consolas, monospace; white-space: nowrap; }
.type { font-size: .7rem; padding: .1rem .35rem; border-radius: 4px; background: rgba(56,189,248,.12); color: var(--accent); }
.type-number { background: rgba(52,211,153,.12); color: var(--ok); }
.type-boolean { background: rgba(251,191,36,.12); color: var(--warn); }
.type-null { background: rgba(248,113,113,.12); color: var(--err); }
.site-footer { border-top: 1px solid var(--line); padding: 1.5rem 0; color: var(--muted); font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 1rem; }
[hidden] { display: none !important; }
