/* Indexability Guard — technical SEO monitoring CI (Mandavo / TCGaze pattern) */
:root {
  color-scheme: light;

  --bg: #f4f7f6;
  --surface: #ffffff;
  --surface-2: #eef3f2;
  --surface-3: #f8fbfb;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #cbd5e1;

  --accent: #0f766e;
  --accent-hover: #0d9488;
  --accent-soft: #ecfdf5;
  --accent-ink: #115e59;
  --on-accent: #ffffff;

  --ok: #15803d;
  --ok-soft: #ecfdf5;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;

  --traffic-green: #22c55e;
  --traffic-yellow: #eab308;
  --traffic-red: #ef4444;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgb(15 23 42 / 5%);
  --shadow: 0 1px 2px rgb(15 23 42 / 4%), 0 10px 28px -12px rgb(15 23 42 / 11%);
  --shadow-lg: 0 2px 4px rgb(15 23 42 / 4%), 0 16px 40px -16px rgb(15 23 42 / 14%);
  --shadow-nav: 0 1px 0 rgb(15 23 42 / 6%), 0 8px 24px -12px rgb(15 23 42 / 10%);
  --ring: 0 0 0 3px rgb(15 118 110 / 22%);

  --hero-stripe-tile: 5rem;
  --hero-stripe-band: 3rem;
  --hero-stripe-peak: color-mix(in srgb, var(--accent) 3.5%, var(--bg));
  --hero-stripe-image: repeating-linear-gradient(
    -42deg,
    transparent 0px,
    transparent calc(var(--hero-stripe-tile) / 2 - var(--hero-stripe-band) / 2 - 0.5px),
    var(--hero-stripe-peak) calc(var(--hero-stripe-tile) / 2 - var(--hero-stripe-band) / 2),
    var(--hero-stripe-peak) calc(var(--hero-stripe-tile) / 2 + var(--hero-stripe-band) / 2),
    transparent calc(var(--hero-stripe-tile) / 2 + var(--hero-stripe-band) / 2 + 0.5px),
    transparent var(--hero-stripe-tile)
  );

  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --page-gutter: 20px;
  --nav-h: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
html.nav-open, body.nav-open { overflow: hidden; }
body.nav-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgb(15 23 42 / 42%);
  backdrop-filter: blur(2px);
}
main { flex: 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -.02em;
  font-weight: 700;
  color: var(--ink);
}
h1 { font-size: clamp(1.85rem, 3.2vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code, pre, kbd { font-family: var(--mono); font-size: .88em; }
pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  overflow: auto;
  line-height: 1.55;
  font-size: .82rem;
}
code:not(pre code) {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  color: var(--ink-2);
}
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); }

.muted { color: var(--muted); }
.small { font-size: .9rem; }
.tiny { font-size: .8rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 64px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; gap: 12px; align-items: center; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: 8px; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cta-row.center { justify-content: center; }
.inline { display: inline; }
.hidden { display: none !important; }

.container { width: min(1120px, calc(100% - var(--page-gutter) * 2)); margin-inline: auto; }
.container.narrow, .narrow { width: min(720px, calc(100% - var(--page-gutter) * 2)); margin-inline: auto; }
.section { padding: 72px 0; }
.section-band { background: var(--surface-2); border-block: 1px solid var(--line); }
.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}
.lead { font-size: 1.08rem; color: var(--muted); max-width: 42rem; line-height: 1.65; }
.lead.center, .center .lead { margin-inline: auto; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.15em; flex: none; }

/* Wordmark */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark-brand {
  font-weight: 600;
  color: var(--muted);
}
.wordmark-product {
  font-weight: 800;
  color: var(--ink);
}
@media (max-width: 640px) {
  .wordmark { font-size: .84rem; gap: .35em; }
  .nav .wordmark-brand { display: none; }
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: var(--safe-top);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-nav);
}
.nav .container {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--nav-h);
  padding-block: 10px;
}
.logo-plate { text-decoration: none; flex-shrink: 0; }
.logo-plate:hover { text-decoration: none; }
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a:not(.btn) {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .92rem;
  text-decoration: none;
}
.nav-links a:not(.btn):hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.nav-links a:not(.btn).active { color: var(--accent-ink); background: var(--accent-soft); }
.nav-toggle {
  display: none;
  margin-left: auto;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--ink);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle .icon { width: 18px; height: 18px; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: calc(var(--safe-top) + var(--nav-h));
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    margin: 0;
    padding: 16px var(--page-gutter) 32px;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-top: 1px solid var(--line);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; font-size: 1rem; }
  .nav-links .btn { width: 100%; text-align: center; margin-top: 8px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-2);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .92rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background .12s, border-color .12s, box-shadow .12s, opacity .12s;
}
.btn:hover { text-decoration: none; border-color: var(--line-2); }
.btn:not(.btn-primary):not(.btn-danger):not(.btn-ghost):hover { background: var(--surface-2); }
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--on-accent);
  opacity: 1;
}
a.btn, a.btn:hover { text-decoration: none; }
a.btn-primary, a.btn-primary:hover { color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: #fecaca; }
.btn-danger:hover { background: #fee2e2; }
.btn-sm { padding: 6px 12px; font-size: .84rem; }
.input-sm { padding: 6px 8px; font-size: .84rem; max-width: 10rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.confirm-form { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
@media (max-width: 640px) {
  .confirm-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 10rem;
  }
  .confirm-form .input-sm { max-width: none; width: 100%; }
  .confirm-form .btn-sm { width: 100%; justify-content: center; }
}
.onboarding-steps { margin: 0 0 1rem 1.25rem; }
.btn-lg { padding: 13px 22px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn .icon { width: 15px; height: 15px; }

/* Cards and grids */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 8px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); text-decoration: none; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

/* Badges and alerts */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  vertical-align: middle;
  margin-left: 6px;
}
.badge-accent { background: var(--accent-soft); color: var(--accent-ink); border-color: #99f6e4; }
.badge-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge-ok { background: var(--ok-soft); color: var(--ok); border-color: #bbf7d0; }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: #fecaca; }
.badge-warn { background: var(--warn-soft); color: var(--warn); border-color: #fde68a; }
.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert-ok { background: var(--ok-soft); border-color: #bbf7d0; color: #065f46; }
.alert-danger { background: var(--danger-soft); border-color: #fecaca; color: #991b1b; }
.alert-info { background: var(--accent-soft); border-color: #99f6e4; color: var(--accent-ink); }
.alert-warn { background: var(--warn-soft); border-color: #fde68a; color: #78350f; }

/* Forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
.input, textarea.input, select.input {
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  transition: border-color .12s, box-shadow .12s;
}
.input:focus, textarea.input:focus, select.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}
.input-narrow { max-width: 280px; }
.help { display: block; margin-top: 4px; font-size: .84rem; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin-bottom: 12px; }
.check input { margin-top: 3px; }

/* Tables */
.table-wrap { overflow-x: auto; }
.data-table, .table {
  width: 100%;
  border-collapse: collapse;
  font-size: .925rem;
}
.data-table th, .data-table td, .table th, .table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
}
.data-table th, .table th {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  font-weight: 600;
}
.data-table tr.muted-row td { color: var(--muted); }
.data-table .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 220px;
}
.data-table .actions form { margin: 0; }

/* Status pills */
.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.status-green { background: var(--ok-soft); color: var(--ok); }
.status-yellow { background: var(--warn-soft); color: var(--warn); }
.status-red { background: var(--danger-soft); color: var(--danger); }
.status-excluded { background: var(--surface-2); color: var(--muted); }

/* Subnav */
.subnav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.subnav-primary { display: flex; gap: 6px; flex-wrap: wrap; }
.subnav a,
.subnav-more-toggle {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 500;
  font-size: .9rem;
  text-decoration: none;
}
.subnav a:hover { background: var(--surface-2); color: var(--ink); }
.subnav a.active { background: var(--accent-soft); color: var(--accent-ink); }
.subnav-more { position: relative; }
.subnav-more-toggle {
  display: none;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
}
.subnav-more-toggle:hover { background: var(--surface-2); color: var(--ink); }
.subnav-more-toggle[aria-expanded="true"] {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-color: color-mix(in srgb, var(--accent) 25%, var(--line));
}
.subnav-chevron { width: 14px; height: 14px; transition: transform .15s ease; }
.subnav-more-toggle[aria-expanded="true"] .subnav-chevron { transform: rotate(180deg); }
.subnav-more-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 220px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 20;
}
.subnav-more-menu.open { display: grid; gap: 2px; }
.subnav-more-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-weight: 500;
  font-size: .88rem;
  text-decoration: none;
}
.subnav-more-menu a:hover { background: var(--surface-2); color: var(--ink); }
@media (min-width: 769px) {
  .subnav-more { display: contents; }
  .subnav-more-menu {
    display: flex;
    position: static;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    gap: 6px;
  }
}
@media (max-width: 768px) {
  .subnav { flex-wrap: nowrap; }
  .subnav-more-toggle { display: inline-flex; margin-left: auto; }
}

/* Landing hero */
.hero {
  padding: 56px 0 72px;
  background:
    var(--hero-stripe-image),
    radial-gradient(ellipse 80% 60% at 50% -10%, rgb(15 118 110 / 12%), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero-copy .lead { margin-bottom: 28px; max-width: 34rem; }
.hero-hook {
  text-transform: none;
  letter-spacing: normal;
  font-size: .92rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.hero-alert-demo {
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.hero-alert-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--danger);
  margin-bottom: 8px;
}
.hero-alert-text {
  margin: 0;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--ink);
}
.hero-price-note {
  font-size: .92rem;
  color: var(--ink-2);
  margin: -12px 0 20px;
  max-width: 36rem;
}
.hero-trust { margin: 14px 0 0; max-width: 36rem; }
.hero-sample { margin: 10px 0 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-3);
}
.hero-preview-title { font-size: .88rem; font-weight: 700; color: var(--ink); }
.hero-preview-date { font-size: .78rem; color: var(--muted); }
.hero-preview-body { padding: 12px 14px 16px; }
.preview-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  font-size: .84rem;
}
.preview-row:last-child { border-bottom: 0; }
.preview-name { font-weight: 600; color: var(--ink); }
.preview-meta { color: var(--muted); font-size: .78rem; }
.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}
.preview-dot.green { background: var(--traffic-green); }
.preview-dot.yellow { background: var(--traffic-yellow); }
.preview-dot.red { background: var(--traffic-red); }
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}
.feature-icon .icon { width: 20px; height: 20px; }
.section-band .feature-icon {
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--line);
}

.traffic-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  font-size: .88rem;
  color: var(--ink-2);
}
.traffic-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-preview { max-width: 520px; margin-inline: auto; width: 100%; }
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plan { position: relative; display: flex; flex-direction: column; }
.plan ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  flex: 1;
}
.plan li {
  padding: 7px 0 7px 22px;
  position: relative;
  font-size: .92rem;
  color: var(--ink-2);
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}
.plan.featured {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: var(--shadow);
}
.plan .ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
}
.price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 12px 0 4px;
  font-family: var(--font-display);
}
.price small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.price-note { font-size: .84rem; color: var(--muted); margin-bottom: 16px; }
.price-note.price-note-yearly { font-weight: 600; color: var(--ink-2); }
.plan .cta { margin-top: auto; }
.toggle {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.toggle button {
  border: 1px solid transparent;
  background: transparent;
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: .88rem;
  cursor: pointer;
  color: var(--muted);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.toggle button.on {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}
.table.compare td, .table.compare th { text-align: center; }
.table.compare td:first-child, .table.compare th:first-child { text-align: left; }

@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}

.plans-compact .plan-compact ul { margin-bottom: 0; }
.plans-compact .price { font-size: 1.65rem; margin-top: 8px; }
.landing-cta-band .lead { margin-inline: auto; }

/* Auth */
.auth-layout {
  display: grid;
  grid-template-columns: min(420px, calc(100% - 32px)) 1fr;
  gap: 48px;
  align-items: start;
  width: min(960px, calc(100% - 32px));
  margin: 56px auto;
}
.auth { width: min(420px, calc(100% - 32px)); margin: 56px auto; }
.auth-layout .auth { width: 100%; margin: 0; }
.auth-wide { width: min(560px, calc(100% - 32px)); }
.auth-preview { display: none; padding-top: 12px; }
.auth-preview .hero-preview { box-shadow: var(--shadow-lg); }
@media (min-width: 900px) {
  .auth-preview { display: block; }
}
@media (max-width: 899px) {
  .auth-layout {
    grid-template-columns: 1fr;
    width: min(420px, calc(100% - 32px));
  }
}
.auth .card { padding: 32px; }
.auth h1 { font-size: 1.5rem; margin-bottom: 6px; }
.auth .lead { color: var(--muted); font-size: .94rem; margin-bottom: 22px; }
.oauth { display: grid; gap: 10px; margin-bottom: 4px; }
.oauth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: .84rem;
  margin: 18px 0;
}
.oauth-divider::before, .oauth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.btn-oauth {
  background: var(--surface);
  border-color: var(--line-2);
  font-weight: 600;
}
.oauth-icon { width: 18px; height: 18px; flex: none; }

/* Account */
.account-page {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding-block: 40px;
  align-items: start;
}
.account-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}
.account-aside-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 4px; }
.account-aside-email { font-weight: 600; margin: 0 0 6px; word-break: break-word; }
.account-aside-meta { font-size: .88rem; color: var(--muted); margin: 0 0 16px; }
.account-menu { display: grid; gap: 4px; margin-bottom: 16px; }
.account-menu-link {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}
.account-menu-link:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.account-menu-link.active { background: var(--accent-soft); color: var(--accent-ink); }
.account-block { margin-bottom: 0; }
.account-block-title { font-size: 1.05rem; margin-bottom: 4px; }
.account-block-lead { margin-bottom: 16px; }
.account-sheet { padding: 0; overflow: hidden; }
.account-sheet > .account-block { padding: 24px; }
.account-split { margin: 0; border: 0; border-top: 1px solid var(--line); }
.account-block-danger { border-color: #fecaca; background: #fffbfb; }
.account-split-col { padding: 24px; }
.account-sheet-split { display: grid; grid-template-columns: 1fr 1fr; }
.quota .bar {
  height: 8px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}
.quota .bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}
.key {
  font-family: var(--mono);
  font-size: .82rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  word-break: break-all;
}

.account-plan-summary { padding: 20px 24px; }
.account-plan-summary-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 16px;
}
.account-plan-summary-status {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.45;
}
.account-plan-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .86rem;
  color: var(--ink-2);
  line-height: 1.45;
}
.account-plan-feature-list li {
  position: relative;
  padding-left: 14px;
}
.account-plan-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.account-upgrade-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.account-upgrade-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.account-upgrade-card.featured {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 35%, var(--surface));
}
.account-upgrade-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.account-upgrade-card-head strong { font-size: .95rem; }
.account-upgrade-price {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.account-upgrade-price small {
  font-size: .78rem;
  font-weight: 400;
  color: var(--muted);
}
.account-upgrade-note { margin: 0; }
.account-upgrade-points {
  margin: 0;
  padding: 0 0 0 16px;
  font-size: .82rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.account-upgrade-points li { margin-bottom: 2px; }
.account-upgrade-consent { margin: 0; line-height: 1.45; }
.account-upgrade-card .btn { margin-top: auto; }
details.disclosure > summary {
  list-style: none;
  cursor: pointer;
}
details.disclosure > summary::-webkit-details-marker { display: none; }

.app-page { padding-block: 40px 56px; }
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}
.filter-bar .input { max-width: min(100%, 320px); }
.pricing-intro {
  max-width: 640px;
  margin: 0 auto 22px;
}
.toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

@media (max-width: 860px) {
  .account-page { grid-template-columns: 1fr; }
  .account-aside { position: static; }
  .account-sheet-split { grid-template-columns: 1fr; }
  .account-plan-feature-list { grid-template-columns: 1fr; }
  .account-upgrade-grid { grid-template-columns: 1fr; }
}

/* Prose / legal */
.prose {
  max-width: 720px;
  margin-inline: auto;
  padding: 48px var(--page-gutter) 64px;
}
.prose h1 { font-size: 2rem; margin-bottom: 16px; }
.prose h2 { font-size: 1.35rem; margin-top: 32px; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose p { margin-bottom: 1em; }
.prose .meta { color: var(--muted); font-size: .92rem; }
.prose .box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
}
.kv { display: grid; gap: 8px; }
.kv dt { font-weight: 600; }
.kv dd { margin: 0 0 8px; color: var(--muted); }
.summary-box { background: var(--surface-2); border-radius: var(--radius-sm); padding: 16px; }
.receipt { white-space: pre-wrap; }

/* FAQ and checklist */
.checklist { list-style: none; padding: 0; max-width: 520px; margin: 0 auto; }
.checklist li { padding: 10px 0 10px 28px; position: relative; color: var(--ink-2); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
  background: var(--surface);
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.site-footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  padding-block: 48px;
}
.site-footer-logo { display: inline-block; text-decoration: none; margin-bottom: 4px; }
.site-footer-logo:hover { text-decoration: none; }
.site-footer-tagline { color: var(--muted); font-size: .92rem; margin: 10px 0 0; max-width: 280px; }
.site-footer-heading {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin: 0 0 10px;
  font-weight: 700;
}
.site-footer-list { list-style: none; margin: 0; padding: 0; }
.site-footer-list li { margin-bottom: 8px; }
.site-footer-list a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.site-footer-list a:hover { color: var(--ink); text-decoration: underline; }
.site-footer-bar {
  border-top: 1px solid var(--line);
  padding-block: 20px;
}
.site-footer-copy { margin: 4px 0; font-size: .88rem; color: var(--muted); }

@media (max-width: 900px) {
  .site-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .site-footer-inner { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .hero { padding: 40px 0 56px; }
  .nav-links a .badge { display: none; }
}

/* Toasts */
.toasts {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 60;
  display: grid;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
}
.toast {
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: .9rem;
  animation: toast-in .2s ease;
}
.toast.ok { background: var(--ok); }
.toast.danger { background: var(--danger); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Indexability Guard components */
.hero-panel {
  padding: 1.25rem;
  display: grid;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
}
.panel-note { margin: 4px 0 0; }
.card-accent {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: var(--shadow);
}
.pricing-preview { text-align: center; }
.pricing-preview .lead { margin-inline: auto; }
.pricing-preview .plan-cards { margin: 28px 0 8px; text-align: left; }
.plan-cards {
  display: grid;
  gap: 20px;
  align-items: stretch;
}
.plan-cards .card {
  display: flex;
  flex-direction: column;
}
.plan-cards .card ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  flex: 1;
}
.plan-cards .card li {
  padding: 7px 0 7px 22px;
  position: relative;
  font-size: .92rem;
  color: var(--ink-2);
}
.plan-cards .card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}
.plan-cards .card .btn,
.plan-cards .card .muted.small { margin-top: auto; }
.notice {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 1px solid #99f6e4;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.notice-error {
  border-color: #fecaca;
  background: var(--danger-soft);
  color: #991b1b;
}
.form-card { display: grid; gap: 16px; }
.form-card .field { margin-bottom: 0; }
.form-card .input { max-width: none; }
.result-card { margin-top: 20px; }
.card.status-critical { border-left: 4px solid var(--danger); }
.card.status-changed { border-left: 4px solid var(--warn); }
.card.status-ok { border-left: 4px solid var(--ok); }
.status-row { display: grid; gap: 0.35rem; padding: 0.75rem; border-radius: var(--radius-sm); background: var(--surface-2); }
.status-row code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.82rem; word-break: break-word; }
.status-critical { border-left: 4px solid var(--danger); }
.status-changed { border-left: 4px solid var(--warn); }
.status-ok { border-left: 4px solid var(--ok); }
.feature-grid, .stat-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .plan-cards { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .plan-cards { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}
.tool-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tool-links-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .tool-links-grid { grid-template-columns: repeat(2, 1fr); } }
.chip { display: inline-flex; padding: 0.45rem 0.8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.page-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.section h2 { margin: 0 0 1rem; font-size: 1.35rem; }
.stat-grid + h2,
.table-wrap + h2,
.change-list + h2 { margin-top: 2rem; }
.stat-label { color: var(--muted); font-size: 0.85rem; }
.stat-value { font-size: 1.6rem; font-weight: 700; }
.badge-critical { background: var(--danger-soft); color: var(--danger); }
.badge-changed { background: var(--warn-soft); color: var(--warn); }
.badge-ok, .badge-critical, .badge-changed { border-radius: 999px; padding: 0.15rem 0.55rem; font-size: 0.78rem; }
.change-list { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.change-item { padding: 0.75rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.result-grid { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .result-grid { grid-template-columns: repeat(2, 1fr); } }
.result-grid strong { display: block; word-break: break-word; }
.cta-band { margin-top: 1rem; padding: 1.25rem; }
.snapshot-card pre { white-space: pre-wrap; word-break: break-word; font-size: 0.78rem; }
.narrow { max-width: 42rem; }
.faq-list { display: grid; gap: 0.75rem; margin-top: 1rem; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 1.15rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 500;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 1.15rem 1rem; color: var(--ink-2); }
.tool-card { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tool-card:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: var(--shadow); transform: translateY(-1px); text-decoration: none; }
.tool-card h2 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb-sep { opacity: 0.5; user-select: none; }
.breadcrumb-current { color: var(--ink-2); }
.tool-content-block { margin-top: 2rem; }
.tool-content-block h2 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.tool-content-block > p { color: var(--ink-2); margin: 0; }
