/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
/* ============================================================================
   webreadr design system
   Dark, technical, product-grade. Plain CSS (no framework) so the UI stays
   dependency-free. Tokens first, then primitives, then page-specific blocks.
   All historical class names are preserved; new marketing/docs primitives are
   additive.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #0a0c11;
  --bg-soft: #0d1017;
  --panel: #12151e;
  --panel-2: #181c28;
  --panel-3: #1e2333;
  --border: #262c3b;
  --border-soft: #1d2230;

  /* Text */
  --text: #e8ebf2;
  --text-soft: #c2c8d6;
  --muted: #8a92a6;
  --faint: #5d6478;

  /* Brand / accents */
  --accent: #5b8cff;
  --accent-hover: #6e9bff;
  --accent-2: #8a5bff;
  --accent-glow: rgba(91, 140, 255, 0.35);
  --danger: #ff5b6e;
  --warn: #ffb454;
  --ok: #3ddc97;

  /* Effects */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 24px 64px -16px rgba(0, 0, 0, 0.6);
  --ring: 0 0 0 3px var(--accent-glow);

  /* Typography */
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;

  /* Layout */
  --maxw: 1080px;
  --maxw-wide: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  padding: 0;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* A subtle aurora behind the whole app, fixed so it doesn't scroll-jank. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 75% -10%, rgba(138, 91, 255, 0.12), transparent 60%),
    radial-gradient(50rem 36rem at 10% 0%, rgba(91, 140, 255, 0.12), transparent 55%);
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

::selection {
  background: var(--accent-glow);
  color: #fff;
}

/* ---- Layout containers --------------------------------------------------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Typography ---------------------------------------------------------- */
h1 {
  font-size: clamp(28px, 4vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 28px 0 10px;
  font-weight: 700;
}
h2 {
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  font-weight: 650;
}
h3 {
  font-size: 16px;
  margin: 0 0 8px;
  font-weight: 650;
}
.subtitle {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 26px;
  max-width: 60ch;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.mono {
  font-family: var(--mono);
  font-size: 0.9em;
}
.center {
  text-align: center;
}

/* ---- Top navigation (app surface) --------------------------------------- */
.nav {
  border-bottom: 1px solid var(--border);
  background: rgba(13, 16, 23, 0.8);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 8px 22px;
  min-height: 60px;
  flex-wrap: wrap;
  padding: 10px 0;
}
.nav-brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-brand:hover {
  text-decoration: none;
  color: var(--text);
}
.nav-spacer {
  flex: 1 1;
}
.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

/* Brand logo mark (pure CSS, no asset needed). */
.logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px -2px var(--accent-glow);
  flex: none;
}

/* ---- Panels / cards ------------------------------------------------------ */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin: 22px 0;
  box-shadow: var(--shadow);
}

/* ---- Forms --------------------------------------------------------------- */
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  margin: 16px 0 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 11px 13px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder,
textarea::placeholder {
  color: var(--faint);
}
textarea {
  font-family: var(--mono);
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}

/* ---- Buttons ------------------------------------------------------------- */
button,
.btn {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
  text-decoration: none;
  line-height: 1.2;
}
button:hover,
.btn:hover {
  background: var(--accent-hover);
  text-decoration: none;
  color: #fff;
  box-shadow: 0 6px 20px -6px var(--accent-glow);
}
button:active,
.btn:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
button.secondary,
.btn.secondary {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
}
button.secondary:hover,
.btn.secondary:hover {
  background: var(--panel-3);
  border-color: var(--accent);
  box-shadow: none;
}
button.ghost,
.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-soft);
}
button.ghost:hover,
.btn.ghost:hover {
  background: var(--panel-2);
  border-color: var(--border);
  box-shadow: none;
  color: var(--text);
}
button.danger {
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 6px 12px;
  font-size: 13px;
}
button.danger:hover {
  background: rgba(255, 91, 110, 0.12);
  box-shadow: none;
}
.btn-lg {
  padding: 13px 26px;
  font-size: 15px;
}

/* ---- Rows / grids -------------------------------------------------------- */
.row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 16px;
  gap: 16px;
}

/* ---- Notices ------------------------------------------------------------- */
.error {
  background: rgba(255, 91, 110, 0.1);
  border: 1px solid var(--danger);
  color: #ffb3bd;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  margin: 14px 0;
  font-size: 14px;
}
.notice {
  background: rgba(61, 220, 151, 0.1);
  border: 1px solid var(--ok);
  color: #9af0cb;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  margin: 14px 0;
  font-size: 14px;
}

/* ---- Tables -------------------------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
th,
td {
  text-align: left;
  padding: 11px 10px;
  border-bottom: 1px solid var(--border-soft);
}
th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
tbody tr:hover {
  background: rgba(255, 255, 255, 0.015);
}

/* ---- Badges -------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
}
.badge.ok {
  color: var(--ok);
  border-color: rgba(61, 220, 151, 0.4);
  background: rgba(61, 220, 151, 0.08);
}
.badge.off {
  color: var(--danger);
  border-color: rgba(255, 91, 110, 0.4);
  background: rgba(255, 91, 110, 0.08);
}
.badge.accent {
  color: var(--accent);
  border-color: rgba(91, 140, 255, 0.4);
  background: rgba(91, 140, 255, 0.08);
}

/* ---- Stat cards ---------------------------------------------------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 14px;
  gap: 14px;
}
.stat {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.stat .label {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stat .value {
  font-size: 24px;
  font-weight: 700;
  margin-top: 6px;
  letter-spacing: -0.01em;
}

/* ---- Code ---------------------------------------------------------------- */
pre.code {
  background: #07090d;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  max-height: 480px;
  margin: 0;
}
code.inline {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--panel-2);
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--text-soft);
}

.secret-box {
  background: #07090d;
  border: 1px dashed var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: var(--mono);
  font-size: 13px;
  word-break: break-all;
  margin: 8px 0;
}

/* ---- Auth surface -------------------------------------------------------- */
.auth-wrap {
  max-width: 420px;
  margin: 72px auto;
}
.auth-wrap .panel {
  margin-top: 22px;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   MARKETING SITE
   ========================================================================== */

/* Public marketing header */
.site-header {
  border-bottom: 1px solid var(--border-soft);
  background: rgba(10, 12, 17, 0.7);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  padding: 10px 0;
  flex-wrap: wrap;
}
.site-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.site-nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}
.site-header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Marketing footer */
.site-footer {
  border-top: 1px solid var(--border-soft);
  margin-top: 80px;
  padding: 40px 0;
  color: var(--muted);
  font-size: 14px;
}
.site-footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer-col h4 {
  color: var(--text-soft);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 12px;
}
.site-footer-col a {
  display: block;
  color: var(--muted);
  margin: 7px 0;
  font-size: 14px;
}
.site-footer-col a:hover {
  color: var(--text);
  text-decoration: none;
}
.site-footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--faint);
}

/* Hero */
.hero {
  padding: 90px 0 64px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(36px, 6.5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 auto 20px;
  max-width: 16ch;
  font-weight: 750;
}
.hero h1 .grad {
  background: linear-gradient(110deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto 34px;
  line-height: 1.55;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 18px;
  color: var(--faint);
  font-size: 13px;
}

/* Section scaffolding */
.section {
  padding: 64px 0;
}
.section-head {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 44px;
}
.section-head .eyebrow-text {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(24px, 3.6vw, 32px);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-head p {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 18px;
  gap: 18px;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.feature-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.18), rgba(138, 91, 255, 0.18));
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
  line-height: 1.6;
}

/* Endpoint cards */
.endpoint-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 16px;
  gap: 16px;
}
.endpoint-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.endpoint-card .ep-method {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}
.endpoint-card h3 {
  margin: 10px 0 8px;
}
.endpoint-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* How-it-works: numbered step flow + framed level scale */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
  gap: 20px;
  max-width: var(--maxw);
  margin: 0 auto 56px;
}
.step {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}
.step h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
.step p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
}
/* Connector arrows between steps on wide viewports */
.step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -16px;
  top: 36px;
  color: var(--faint);
  font-size: 18px;
}
.how-ladder {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.how-ladder-head {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto 24px;
}
.how-ladder-head h3 {
  font-size: 19px;
  margin: 0 0 8px;
}
.how-ladder-head p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
}
/* Compact level scale (replaces the full per-level list on the landing page) */
.level-scale {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px auto 14px;
}
.level-pill {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
}
.level-pill.paid {
  color: var(--warn);
  border-color: var(--warn);
  border-style: dashed;
}
.level-arrow {
  color: var(--faint);
  font-size: 16px;
}
.level-scale-note {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  margin: 0;
}
.level-scale-note a {
  white-space: nowrap;
}

/* Code showcase (hero / landing) */
.code-window {
  background: #07090d;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  text-align: left;
  max-width: 760px;
  margin: 0 auto;
}
.code-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}
.code-window-bar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2a3142;
}
.code-window-bar .title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
}
.code-window pre {
  margin: 0;
  padding: 18px 20px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-soft);
}
.code-window .c-key {
  color: #7fb0ff;
}
.code-window .c-str {
  color: #8be8a0;
}
.code-window .c-com {
  color: var(--faint);
}
.code-window .c-fn {
  color: #c9a0ff;
}

/* Plan / pricing cards */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 18px;
  gap: 18px;
  align-items: start;
}
.plan-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.plan-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 50px -20px var(--accent-glow);
}
.plan-card .plan-name {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}
.plan-card .plan-price {
  font-size: 34px;
  font-weight: 750;
  margin: 12px 0 4px;
  letter-spacing: -0.02em;
}
.plan-card .plan-price small {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}
.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.plan-card li {
  padding: 7px 0;
  color: var(--text-soft);
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.plan-card li::before {
  content: "✓";
  color: var(--ok);
  font-weight: 700;
  flex: none;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.12), rgba(138, 91, 255, 0.12));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 52px 32px;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(24px, 3.6vw, 32px);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.cta-band p {
  color: var(--muted);
  font-size: 17px;
  max-width: 50ch;
  margin: 0 auto 28px;
}

/* ==========================================================================
   DOCS PAGE
   ========================================================================== */
.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-gap: 48px;
  gap: 48px;
  align-items: start;
  padding: 40px 0 80px;
}
.docs-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 84px;
  align-self: start;
}
.docs-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.docs-sidebar .group-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--faint);
  margin: 18px 0 6px;
  font-weight: 600;
}
.docs-sidebar a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  padding: 5px 10px;
  border-radius: 6px;
  border-left: 2px solid transparent;
}
.docs-sidebar a:hover {
  color: var(--text);
  background: var(--panel);
  text-decoration: none;
}
.docs-content {
  min-width: 0;
}
.docs-content h2 {
  font-size: 24px;
  margin: 48px 0 12px;
  padding-top: 12px;
  scroll-margin-top: 84px;
}
.docs-content h2:first-child {
  margin-top: 0;
}
.docs-content h3 {
  font-size: 17px;
  margin: 28px 0 10px;
  scroll-margin-top: 84px;
}
.docs-content p {
  color: var(--text-soft);
  margin: 0 0 14px;
}
.docs-content ul {
  color: var(--text-soft);
  padding-left: 22px;
  margin: 0 0 16px;
}
.docs-content li {
  margin: 6px 0;
}
.docs-content pre.code {
  margin: 0 0 18px;
}
.docs-content table {
  margin-bottom: 18px;
}
.method-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 6px;
  margin-right: 8px;
  background: rgba(91, 140, 255, 0.14);
  color: var(--accent);
  border: 1px solid rgba(91, 140, 255, 0.3);
}

/* ==========================================================================
   COMPARISON PAGE
   ========================================================================== */
.compare-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 640px;
}
.compare-table th,
.compare-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.compare-table thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.compare-table thead th.col-us {
  color: var(--accent);
}
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.compare-table td.feat {
  color: var(--text-soft);
  font-weight: 500;
  width: 38%;
}
.compare-table td.col-us {
  color: var(--text);
  background: rgba(91, 140, 255, 0.05);
}
.cmp-yes {
  color: #4ade80;
  font-weight: 600;
}
.cmp-no {
  color: var(--muted);
}
.cmp-partial {
  color: #fbbf24;
  font-weight: 600;
}
.compare-note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}

/* Win/lose two-column honesty block */
.verdict-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 18px;
  gap: 18px;
}
.verdict-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.verdict-card.win {
  border-color: rgba(74, 222, 128, 0.3);
}
.verdict-card h3 {
  font-size: 16px;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.verdict-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.verdict-card li {
  position: relative;
  padding-left: 22px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.verdict-card.win li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4ade80;
  font-weight: 700;
}
.verdict-card.fair li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--muted);
}
.verdict-card li strong {
  color: var(--text-soft);
  font-weight: 600;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.faq-item h3 {
  font-size: 15px;
  margin: 0 0 8px;
}
.faq-item p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 720px) {
  .verdict-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PLAYGROUND RESULT VIEW
   ========================================================================== */
.result-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.tab {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0;
}
.tab:hover {
  color: var(--text);
  background: transparent;
  box-shadow: none;
}
.tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.tab .count {
  color: var(--muted);
  font-weight: 400;
  margin-left: 4px;
}
.shot-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #07090d;
}
.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.kv {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr;
  grid-gap: 8px 16px;
  gap: 8px 16px;
  font-size: 13px;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
  word-break: break-word;
}
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 480px;
  overflow: auto;
}
.link-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
  word-break: break-all;
}
.empty {
  color: var(--muted);
  font-size: 13px;
  padding: 8px 0;
}

/* ==========================================================================
   PLAYGROUND (request / response workbench)
   ========================================================================== */
.pg {
  padding-bottom: 60px;
}
.pg-head {
  margin-bottom: 8px;
}

/* Endpoint selector: card-style segmented tabs with method + blurb. */
.pg-endpoints {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 10px;
  gap: 10px;
  margin: 8px 0 22px;
}
.pg-ep {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease,
    transform 0.05s ease;
}
.pg-ep:hover {
  border-color: var(--accent);
  background: var(--panel-2);
  box-shadow: none;
  color: var(--text);
}
.pg-ep.active {
  border-color: var(--accent);
  background: linear-gradient(
    180deg,
    rgba(91, 140, 255, 0.12),
    rgba(91, 140, 255, 0.04)
  );
  box-shadow: 0 0 0 1px var(--accent);
}
.pg-ep-label {
  font-weight: 650;
  font-size: 15px;
}
.pg-ep-blurb {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}

/* Two-pane layout: request form (sticky) | response. */
.pg-grid {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  grid-gap: 20px;
  gap: 20px;
  align-items: start;
}
.pg-request {
  margin: 0;
  position: -webkit-sticky;
  position: sticky;
  top: 80px;
}
.pg-method-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.pg-ep-desc {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.pg-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 16px 0 6px;
}
.pg-key {
  margin-top: 4px;
}

/* Input with a trailing button (show/hide key). */
.input-affix {
  position: relative;
}
.input-affix input {
  padding-right: 64px;
}
.affix-btn {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  background: var(--panel-3);
  border: 1px solid var(--border);
  color: var(--text-soft);
  border-radius: 6px;
}
.affix-btn:hover {
  background: var(--border);
  color: var(--text);
  box-shadow: none;
}

.linkish {
  background: none;
  border: none;
  color: var(--accent);
  padding: 0;
  font-weight: 500;
  cursor: pointer;
}
.linkish:hover {
  background: none;
  color: var(--accent-hover);
  box-shadow: none;
  text-decoration: underline;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-soft);
  cursor: pointer;
  margin-top: 16px;
}
.check-row input {
  width: auto;
}

/* Segmented control (engine level). */
.seg {
  display: flex;
  gap: 2px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.seg-item {
  flex: 1 1;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 4px;
  border-radius: 6px;
  cursor: pointer;
}
.seg-item:hover {
  color: var(--text);
  background: transparent;
  box-shadow: none;
}
.seg-item.active {
  color: #fff;
  background: var(--accent);
}

/* Format chips. */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chip {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  font-family: var(--mono);
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}
.chip:hover {
  color: var(--text);
  border-color: var(--faint);
  background: var(--panel-2);
  box-shadow: none;
}
.chip.active {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(91, 140, 255, 0.1);
}
.chip-check {
  font-weight: 700;
  font-size: 12px;
  color: var(--faint);
  width: 10px;
  text-align: center;
}
.chip.active .chip-check {
  color: var(--accent);
}

.pg-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.pg-actions button[type="submit"] {
  flex: 1 1;
}

/* cURL preview. */
.curl {
  margin-top: 16px;
  border-top: 1px solid var(--border-soft);
  padding-top: 14px;
}
.curl-toggle {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.curl-toggle:hover {
  background: none;
  color: var(--text);
  box-shadow: none;
}
.curl .caret {
  display: inline-block;
  transition: transform 0.15s ease;
  color: var(--faint);
  font-size: 11px;
}
.curl .caret.open {
  transform: rotate(90deg);
}
.curl-body {
  margin-top: 12px;
}

/* Response pane. */
.pg-response {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.pg-response-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
}
.pg-response-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pg-response-body {
  padding: 18px 20px 22px;
  flex: 1 1;
}

/* Copy button (used by CodePane / response head). */
.copy-btn {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 6px;
  cursor: pointer;
}
.copy-btn:hover {
  background: var(--panel-3);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: none;
}

/* Code pane with a floating copy button. */
.code-pane {
  position: relative;
}
.code-pane .code-pane-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.12s ease;
}
.code-pane:hover .code-pane-copy,
.code-pane:focus-within .code-pane-copy {
  opacity: 1;
}
.code-pane pre.code code {
  font-family: inherit;
}

/* JSON syntax highlight tokens. */
.j-key {
  color: #7fb0ff;
}
.j-str {
  color: #8be8a0;
}
.j-num {
  color: #ffb454;
}
.j-bool {
  color: #c9a0ff;
}
.j-null {
  color: var(--faint);
}

/* List toolbar (filter + copy) for links. */
.list-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.list-filter {
  flex: 1 1;
  padding: 7px 11px !important;
  font-size: 13px !important;
}

/* Progress bar (crawl). */
.progress {
  height: 8px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 0.4s ease;
}
.progress-bar.indeterminate {
  animation: pg-pulse 1.4s ease-in-out infinite;
}
@keyframes pg-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}
.dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-left: 2px;
  animation: pg-pulse 1s ease-in-out infinite;
}

/* Crawl page list. */
.page-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 480px;
  overflow: auto;
}
.page-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-soft);
}
.page-url {
  font-size: 13px;
  word-break: break-all;
  min-width: 0;
}
.page-tags {
  display: flex;
  gap: 6px;
  flex: none;
}

/* Extract result cards. */
.extract-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.extract-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: var(--bg-soft);
}
.extract-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.extract-url {
  font-size: 13px;
  word-break: break-all;
  min-width: 0;
}
.extract-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.extract-err {
  color: #ffb3bd;
  font-size: 13px;
  margin: 0;
}

/* Empty + loading states. */
.pg-empty-state {
  text-align: center;
  padding: 48px 16px;
}
.pg-empty-orb {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(91, 140, 255, 0.25),
    rgba(138, 91, 255, 0.25)
  );
  border: 1px solid var(--border);
  box-shadow: 0 0 30px -6px var(--accent-glow);
}
.pg-empty-title {
  font-weight: 650;
  margin: 0 0 6px;
  color: var(--text);
}
.pg-empty-sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0 auto;
  max-width: 42ch;
}
.skeleton-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0;
}
.skeleton {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    var(--panel-2) 25%,
    var(--panel-3) 37%,
    var(--panel-2) 63%
  );
  background-size: 400% 100%;
  animation: pg-shimmer 1.3s ease infinite;
}
@keyframes pg-shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

/* Spinner inside the Run button. */
.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: pg-spin 0.7s linear infinite;
}
@keyframes pg-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .feature-grid,
  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Playground collapses to a single column; request form stops sticking. */
  .pg-grid {
    grid-template-columns: 1fr;
  }
  .pg-request {
    position: static;
  }
  .pg-endpoints {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Steps stack into a single column on tablet+; drop the connector arrows. */
  .steps {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
  .step:not(:last-child)::after {
    display: none;
  }
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .docs-sidebar {
    position: static;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 12px;
  }
  .docs-sidebar nav {
    flex-flow: row wrap;
    gap: 6px;
  }
  .docs-sidebar nav > div {
    display: flex;
    flex-flow: row wrap;
    gap: 6px;
    width: 100%;
  }
  .docs-sidebar a {
    display: inline-block;
  }
  .docs-sidebar .group-label {
    width: 100%;
    margin: 8px 0 2px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }
  .container,
  .container-wide {
    padding: 0 16px;
  }
  .panel {
    padding: 18px;
  }
  .section {
    padding: 48px 0;
  }
  .hero {
    padding: 56px 0 40px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .feature-grid,
  .endpoint-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .pg-endpoints {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .pg-ep-blurb {
    display: none;
  }
  .how-ladder {
    padding: 18px;
  }
  /* Rows of buttons/inputs stack vertically and go full-width on phones.
     Opt out per-instance by NOT adding .stack-sm. */
  .row.stack-sm {
    flex-direction: column;
    align-items: stretch;
  }
  .row.stack-sm > a,
  .row.stack-sm > a > button,
  .row.stack-sm > button,
  .row.stack-sm > .btn {
    width: 100%;
  }
  /* App nav: brand on its own line, controls wrap. */
  .nav-inner {
    gap: 10px 16px;
  }
  .nav-brand {
    flex-basis: 100%;
  }
  .nav-spacer {
    display: none;
  }
  /* Marketing header collapses cleanly. */
  .site-header-inner {
    gap: 12px 16px;
  }
  .site-nav-links {
    gap: 16px;
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
  }
  .cta-band {
    padding: 36px 20px;
  }
  .auth-wrap {
    margin: 40px auto;
  }
  .kv {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }
  .kv dt {
    margin-top: 8px;
  }
}

@media (max-width: 440px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

