/* shadcn-inspired tokens (zinc) */
:root {
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 240 10% 3.9%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --border: 240 5.9% 90%;
  --input: 240 5.9% 90%;
  --primary: 221 83% 53%;
  --primary-foreground: 0 0% 100%;
  --brand-muted: 221 100% 97%;
  --secondary: 240 4.8% 95.9%;
  --secondary-foreground: 240 5.9% 10%;
  --accent: 240 4.8% 95.9%;
  --accent-foreground: 240 5.9% 10%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --ring: 240 5.9% 10%;
  --radius: 0.75rem;
  --valid: 142 76% 36%;
  --warn: 38 92% 50%;
  --danger: 0 84% 60%;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --page-max: 72rem;
  --page-gutter: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--font);
  font-feature-settings: "rlig" 1, "calt" 1;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: clip;
}

.bg-grid {
  background-image:
    linear-gradient(to right, hsl(var(--border) / 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, hsl(var(--border) / 0.35) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
}

.wrap,
.wrap-wide {
  width: 100%;
  max-width: var(--page-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.92);
  backdrop-filter: blur(12px);
}
.site-header .wrap,
.site-header .wrap-wide {
  max-width: var(--page-max);
  position: relative;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
  gap: 1rem;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: hsl(var(--foreground));
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.025em;
}
.nav-brand .brand-tld {
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}
.logo {
  height: 2rem;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.nav-brand .brand-admin {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--background));
  padding: 0.5rem;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: hsl(var(--foreground));
  border-radius: 1px;
}
@media (max-width: 840px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: var(--page-gutter);
    right: var(--page-gutter);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 60;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 0.625rem 0.75rem; }
  .nav-links .btn { width: 100%; }
}
.nav-links a:not(.btn) {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: calc(var(--radius) - 2px);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:not(.btn):hover {
  color: hsl(var(--foreground));
  background: hsl(var(--accent));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
}
.btn:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}
.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.btn-primary:hover { opacity: 0.9; }
.btn-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}
.btn-secondary:hover { opacity: 0.85; }
.btn-outline {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  border-color: hsl(var(--input));
}
.btn-outline:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}
.btn-ghost {
  background: transparent;
  color: hsl(var(--foreground));
}
.btn-ghost:hover { background: hsl(var(--accent)); }
.btn-destructive {
  background: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}
.btn-lg { height: 2.75rem; padding: 0 1.25rem; font-size: 0.9375rem; }
.btn-sm { height: 2rem; padding: 0 0.75rem; font-size: 0.8125rem; }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn-block { width: 100%; }

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  background: hsl(var(--secondary));
}
.badge-outline {
  background: transparent;
  color: hsl(var(--muted-foreground));
}

/* Typography */
.eyebrow {
  display: inline-flex;
  margin-bottom: 1rem;
}
h1, h2, h3 {
  letter-spacing: -0.025em;
  font-weight: 600;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 1rem; }
.lead {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  line-height: 1.6;
}
.text-muted { color: hsl(var(--muted-foreground)); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

/* Card */
.card {
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-header {
  padding: 1.5rem 1.5rem 0;
}
.card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.card-description {
  margin: 0.375rem 0 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
.card-content { padding: 1.5rem; }
.card-footer {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  gap: 0.5rem;
}

.hero {
  padding: 4rem 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 2rem; }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.section { padding: 4rem 0; }
.section-title {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.section-title h2 { margin: 0 0 0.5rem; font-size: 1.875rem; }
.section-title p { margin: 0; color: hsl(var(--muted-foreground)); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 800px) { .grid-3 { grid-template-columns: 1fr; } }

.feature-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--muted));
  display: grid;
  place-items: center;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.price-card:hover {
  border-color: hsl(var(--foreground) / 0.15);
  box-shadow: var(--shadow);
}
.price-card.popular {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 1px hsl(var(--primary) / 0.2), var(--shadow);
}
.price-card .tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}
.price-card .vol {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.25rem;
}
.price-card .usd {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.price-card .per {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

.footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  text-align: center;
}

/* Form */
label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}
input, textarea, select {
  width: 100%;
  height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--input));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea {
  height: auto;
  min-height: 9rem;
  padding: 0.75rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  resize: vertical;
}
select { cursor: pointer; }
input::placeholder, textarea::placeholder {
  color: hsl(var(--muted-foreground));
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring) / 0.35);
}
.field { margin-bottom: 1rem; }

.separator {
  height: 1px;
  background: hsl(var(--border));
  margin: 1rem 0;
}

/* Dashboard */
.page-main { padding: 1.5rem 0 3rem; }
.auth-card { max-width: 420px; margin: 0 auto; }

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 900px) { .dashboard-layout { grid-template-columns: 1fr; } }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.5rem;
}
.sidebar-nav button {
  width: 100%;
  justify-content: flex-start;
  height: 2rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  text-align: left;
}
.sidebar-nav button:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}
.sidebar-nav button.active {
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
}
.quota-big {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.quota-sub { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }

.panel { display: none; }
.panel.active { display: block; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  padding: 0.75rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.35);
}
.stat .k {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: hsl(var(--muted-foreground));
}
.stat .v {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 0.25rem;
  font-variant-numeric: tabular-nums;
}
.stat.valid .v { color: hsl(var(--valid)); }
.stat.invalid .v { color: hsl(var(--warn)); }
.stat.risky .v { color: hsl(28 90% 48%); }
.stat.err .v { color: hsl(var(--danger)); }

.dl-list { display: flex; flex-direction: column; gap: 0.5rem; }
.dl-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}
.dl-list a:hover { background: hsl(var(--accent)); }
.dl-list .btn { align-self: flex-start; }

.alert {
  padding: 0.75rem 1rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  border: 1px solid hsl(var(--border));
}
.alert-warn {
  background: hsl(var(--warn) / 0.08);
  border-color: hsl(var(--warn) / 0.25);
}
.alert-ok {
  background: hsl(var(--valid) / 0.1);
  border-color: hsl(var(--valid) / 0.28);
}
.auth-switch {
  display: block;
  margin: 0.85rem 0 0;
  padding: 0;
  border: none;
  background: none;
  color: hsl(var(--primary));
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-switch:hover { color: hsl(var(--foreground)); }
.alert-key {
  background: hsl(var(--muted));
  font-family: var(--mono);
  font-size: 0.75rem;
  word-break: break-all;
}

code {
  font-family: var(--mono);
  font-size: 0.8125em;
  background: hsl(var(--muted));
  padding: 0.125rem 0.375rem;
  border-radius: calc(var(--radius) - 4px);
}
pre {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  padding: 1rem;
  margin: 0.75rem 0 0;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.4);
  overflow-x: auto;
}

/* Landing preview mock */
.preview-window {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: hsl(var(--card));
}
.preview-bar {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.5);
}
.preview-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: hsl(var(--border));
}
.preview-body {
  padding: 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}
.preview-body .ok { color: hsl(var(--valid)); }
.preview-body .bad { color: hsl(var(--danger)); }

.docs-stack .card + .card { margin-top: 1rem; }

/* ——— Marketing / competitor-grade landing ——— */
.hero-marketing {
  position: relative;
  padding: 4.5rem 0 3rem;
  overflow: hidden;
}
.hero-marketing::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -12rem;
  transform: translateX(-50%);
  width: min(100vw, 56rem);
  height: 28rem;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, hsl(var(--primary) / 0.12), transparent 70%);
  pointer-events: none;
}
.hero-marketing .hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  gap: 3rem;
  align-items: center;
}
.hero-marketing .hero-grid > * {
  min-width: 0;
}
@media (max-width: 960px) {
  .hero-marketing .hero-grid { grid-template-columns: 1fr; }
  .hero-marketing { padding-top: 2.5rem; }
  .hero-marketing .product-frame,
  .hero-marketing .try-card {
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
}
.hero-marketing h1 {
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  line-height: 1.08;
  max-width: 16ch;
}
.hero-marketing .lead { max-width: 38rem; font-size: 1.125rem; }
.hero-channels {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: hsl(var(--foreground));
}
.hero-checklist {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hero-checklist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
}
.hero-checklist svg { flex-shrink: 0; color: hsl(var(--primary)); }

.wrap-wide.metrics-bar,
.wrap.metrics-bar {
  margin-top: 3rem;
  margin-bottom: 3rem;
}
.metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: hsl(var(--border));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 768px) { .metrics-bar { grid-template-columns: repeat(2, 1fr); } }
.metric-cell {
  background: hsl(var(--card));
  padding: 1.25rem 1rem;
  text-align: center;
}
.metric-cell strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.metric-cell span {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 2.5rem;
  padding: 2rem 0;
  opacity: 0.55;
  filter: grayscale(1);
}
.logo-strip span {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: hsl(var(--muted-foreground));
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } }
.bento-item {
  grid-column: span 2;
  padding: 1.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  box-shadow: var(--shadow-sm);
}
.bento-item.span-4 { grid-column: span 4; }
.bento-item.span-3 { grid-column: span 3; }
@media (max-width: 900px) {
  .bento-item, .bento-item.span-4, .bento-item.span-3 { grid-column: span 1; }
}
.bento-item h3 { margin: 0.75rem 0 0.375rem; font-size: 1rem; font-weight: 600; }
.bento-item p { margin: 0; font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.55; }
.icon-wrap {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--brand-muted));
  color: hsl(var(--primary));
  display: grid;
  place-items: center;
}

.feat-head {
  max-width: 40rem;
  margin: 0 0 2.25rem;
}
.feat-head .eyebrow {
  margin: 0 0 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}
.feat-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.625rem, 2.6vw, 2.125rem);
}
.feat-head p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 1.0625rem;
  line-height: 1.6;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: hsl(var(--border));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
}
.feat {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1.35rem 1.4rem;
  background: hsl(var(--card));
  min-width: 0;
}
.feat-wide { grid-column: span 3; }
.feat h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.feat p {
  margin: 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.55;
}
.feat-visual { margin-bottom: 0.25rem; }

.ui-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ui-pill {
  display: inline-flex;
  align-items: center;
  height: 1.5rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}
.ui-pill.ok {
  color: hsl(var(--valid));
  background: hsl(var(--valid) / 0.12);
  border-color: hsl(var(--valid) / 0.22);
}
.ui-pill.bad {
  color: hsl(var(--danger));
  background: hsl(var(--danger) / 0.1);
  border-color: hsl(var(--danger) / 0.22);
}
.ui-pill.mute {
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted));
  border-color: hsl(var(--border));
}

.ui-cost {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.35;
  padding: 0.7rem 0.8rem;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.45);
}
.ui-cost > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: hsl(var(--muted-foreground));
  padding: 0.15rem 0;
}
.ui-cost .free { color: hsl(var(--valid)); }
.ui-cost .sum {
  margin-top: 0.35rem;
  padding-top: 0.4rem;
  border-top: 1px dashed hsl(var(--border));
  color: hsl(var(--foreground));
  font-weight: 600;
}

.ui-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.ui-flags span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}
.ui-flags span:last-child {
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.25);
  background: hsl(var(--brand-muted));
}

.ui-code {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid hsl(var(--border));
  background: hsl(240 10% 4%);
  color: #e4e4e7;
}

.ui-files {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.ui-files span {
  font-family: var(--mono);
  font-size: 0.6875rem;
  padding: 0.28rem 0.45rem;
  border-radius: 0.3rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.start-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.78fr) minmax(0, 1.22fr);
  gap: 2.5rem 4rem;
  align-items: start;
}
.start-intro {
  margin: 0;
  max-width: 22rem;
  position: sticky;
  top: 5rem;
}
.start-intro .btn { margin-top: 1.35rem; }

.start-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.start-rail::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 0.55rem;
  bottom: 0.55rem;
  width: 1px;
  background: hsl(var(--border));
}
.start-rail li {
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr);
  gap: 1.15rem;
  padding-bottom: 2.15rem;
  position: relative;
}
.start-rail li:last-child { padding-bottom: 0; }
.start-n {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--primary) / 0.3);
  background: hsl(var(--background));
  color: hsl(var(--primary));
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  display: grid;
  place-items: center;
  z-index: 1;
  box-shadow: 0 0 0 4px hsl(var(--background));
}
.start-body h3 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.0625rem;
}
.start-body p {
  margin: 0 0 0.9rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.55;
}
.start-viz {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.8rem;
  border: 1px dashed hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--muted) / 0.4);
}
.start-key {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 0.35rem;
  padding: 0.28rem 0.5rem;
}
.start-file {
  font-family: var(--mono);
  font-size: 0.6875rem;
  padding: 0.28rem 0.5rem;
  border-radius: 0.3rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
}
.start-or {
  font-size: 0.6875rem;
  color: hsl(var(--muted-foreground));
}
.start-viz .ui-code { padding: 0.32rem 0.55rem; font-size: 0.6875rem; }

@media (max-width: 900px) {
  .feat-grid { grid-template-columns: 1fr; }
  .feat, .feat-wide { grid-column: span 1; }
  .start-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .start-intro {
    position: static;
    max-width: none;
  }
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; } }
.step-card {
  position: relative;
  padding: 1.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
}
.step-card::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.product-frame {
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  background: hsl(var(--card));
  box-shadow:
    0 0 0 1px hsl(var(--border) / 0.5),
    0 20px 50px -12px rgb(0 0 0 / 0.15);
  overflow: hidden;
}
.product-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.35);
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}
.product-ui {
  display: grid;
  grid-template-columns: minmax(0, 140px) minmax(0, 1fr);
  min-height: 320px;
}
@media (max-width: 520px) {
  .product-ui { grid-template-columns: 1fr; min-height: auto; }
  .product-sidebar {
    display: flex;
    gap: 0.375rem;
    border-right: none;
    border-bottom: 1px solid hsl(var(--border));
    padding-bottom: 0.5rem;
  }
  .product-nav-item { flex: 1; margin-bottom: 0; height: 24px; }
  .product-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.product-sidebar {
  border-right: 1px solid hsl(var(--border));
  padding: 0.75rem;
  background: hsl(var(--muted) / 0.25);
}
.product-nav-item {
  height: 28px;
  border-radius: 6px;
  margin-bottom: 4px;
  background: hsl(var(--border) / 0.5);
}
.product-nav-item.active { background: hsl(var(--primary) / 0.15); border: 1px solid hsl(var(--primary) / 0.25); }
.product-main { padding: 1rem; }
.product-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.product-stat {
  padding: 0.625rem;
  border-radius: 6px;
  border: 1px solid hsl(var(--border));
  font-size: 0.65rem;
  color: hsl(var(--muted-foreground));
}
.product-stat b { display: block; font-size: 1rem; color: hsl(var(--foreground)); margin-top: 2px; }
.product-stat.ok b { color: hsl(var(--valid)); }
.product-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100px;
  padding: 0.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: 6px;
  background: hsl(var(--muted) / 0.2);
}
.product-bars span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: hsl(var(--primary) / 0.35);
}
.product-bars span:nth-child(3) { background: hsl(var(--primary)); height: 85% !important; }
.product-bars span { height: 40%; }

.price-card .btn {
  width: 100%;
  max-width: 100%;
  margin-top: auto;
  flex-shrink: 0;
}
.price-card ul {
  margin: 0.75rem 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  flex: 1;
}
.price-card li {
  padding: 0.25rem 0;
  padding-left: 1.25rem;
  position: relative;
}
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: hsl(var(--primary));
  font-weight: 600;
}

.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid hsl(var(--border));
}
.faq-item summary {
  cursor: pointer;
  padding: 1.125rem 0;
  font-weight: 500;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  margin: 0 0 1.125rem;
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

.wrap-wide.cta-banner {
  margin-top: 4rem;
  margin-bottom: 2rem;
}
.cta-banner {
  padding: 3rem 2rem;
  text-align: center;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid hsl(var(--border));
  background: linear-gradient(180deg, hsl(var(--brand-muted)), hsl(var(--card)));
}
.cta-banner h2 { margin: 0 0 0.5rem; font-size: 1.75rem; }
.cta-banner p { margin: 0 0 1.5rem; color: hsl(var(--muted-foreground)); }

.site-footer {
  border-top: 1px solid hsl(var(--border));
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { margin: 0 0 0.75rem; font-size: 0.875rem; font-weight: 600; }
.site-footer a {
  display: block;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.25rem 0;
}
.site-footer a:hover { color: hsl(var(--foreground)); }
.footer-copy {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
}

/* Dashboard polish */
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.app-topbar h1 { margin: 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.025em; }
.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  font-size: 0.875rem;
  font-weight: 500;
}
.balance-pill strong { color: hsl(var(--primary)); font-variant-numeric: tabular-nums; }
.progress-track {
  height: 6px;
  border-radius: 9999px;
  background: hsl(var(--muted));
  overflow: hidden;
  margin-bottom: 1rem;
}
.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 9999px;
  background: hsl(var(--primary));
  transition: width 0.35s ease;
}

.try-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 24px 60px -24px rgb(37 99 235 / 0.25), var(--shadow);
  padding: 1.25rem;
  min-width: 0;
}
.try-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.35rem;
}
.try-card-lead {
  margin: 0 0 0.9rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
}
.try-row {
  display: flex;
  gap: 0.5rem;
}
.try-row input {
  flex: 1;
  min-width: 0;
  height: 2.75rem;
}
.try-row .btn { height: 2.75rem; flex-shrink: 0; }
@media (max-width: 520px) {
  .try-row { flex-wrap: wrap; }
  .try-row .btn { width: 100%; }
}

.verdict {
  margin-top: 1rem;
  padding: 1rem 1.125rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.4);
}
.verdict-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.verdict-email {
  font-weight: 600;
  margin-top: 0.2rem;
  word-break: break-all;
}
.verdict-hint, .verdict-meta {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}
.verdict-valid { background: hsl(var(--valid) / 0.1); border-color: hsl(var(--valid) / 0.3); }
.verdict-valid .verdict-kicker { color: hsl(var(--valid)); }
.verdict-invalid, .verdict-error { background: hsl(var(--danger) / 0.08); border-color: hsl(var(--danger) / 0.25); }
.verdict-invalid .verdict-kicker, .verdict-error .verdict-kicker { color: hsl(var(--danger)); }
.verdict-risky { background: hsl(var(--warn) / 0.1); border-color: hsl(var(--warn) / 0.3); }
.verdict-risky .verdict-kicker { color: hsl(32 90% 40%); }
.verdict-unknown, .verdict-unsupported { background: hsl(var(--muted)); }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 7.5rem;
  padding: 1.25rem;
  border: 1.5px dashed hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--muted) / 0.35);
  cursor: pointer;
  text-align: center;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone.drag {
  border-color: hsl(var(--primary));
  background: hsl(var(--brand-muted));
  color: hsl(var(--foreground));
}
.dropzone strong { color: hsl(var(--foreground)); font-weight: 600; }
.dropzone-wrap { margin-bottom: 0.75rem; }
.dropzone-wrap .dropzone { margin-bottom: 0.5rem; }
.dropzone.has-file {
  border-style: solid;
  border-color: hsl(var(--primary) / 0.45);
  background: hsl(var(--brand-muted));
}
.dropzone.is-busy {
  pointer-events: none;
  opacity: 0.6;
  cursor: not-allowed;
}
.line-count {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  margin: 0.5rem 0 0;
}

.app-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: hsl(var(--muted));
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}
.app-tabs button {
  border: none;
  background: transparent;
  padding: 0.5rem 1rem;
  border-radius: calc(var(--radius) - 4px);
  font: inherit;
  font-weight: 500;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
}
.app-tabs button.active {
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  box-shadow: var(--shadow-sm);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  padding: 0.25rem;
  background: hsl(var(--muted));
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.auth-tabs button {
  border: none;
  background: transparent;
  height: 2.25rem;
  border-radius: calc(var(--radius) - 4px);
  font: inherit;
  font-weight: 500;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
}
.auth-tabs button.active {
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  box-shadow: var(--shadow-sm);
}

.pack-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.625rem;
  margin-bottom: 1rem;
}
@media (max-width: 640px) { .pack-picker { grid-template-columns: 1fr 1fr; } }
.pack-opt {
  text-align: left;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.pack-opt:hover { border-color: hsl(var(--primary) / 0.4); }
.pack-opt.selected {
  border-color: hsl(var(--primary));
  background: hsl(var(--brand-muted));
  box-shadow: 0 0 0 1px hsl(var(--primary) / 0.25);
}
.pack-opt .vol { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.pack-opt .usd { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.03em; }

.pay-card {
  margin-top: 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
}
.pay-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid hsl(var(--border));
  font-size: 0.875rem;
}
.pay-row:last-child { border-bottom: none; }
.pay-row span { color: hsl(var(--muted-foreground)); }
.pay-row code {
  background: transparent;
  padding: 0;
  word-break: break-all;
  font-size: 0.8125rem;
}
.pay-status {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  background: hsl(var(--muted) / 0.5);
  color: hsl(var(--muted-foreground));
}

.key-box {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.key-box code {
  flex: 1;
  word-break: break-all;
  padding: 0.625rem 0.75rem;
}

.dashboard-layout { display: block; }

.job-list { display: flex; flex-direction: column; gap: 0.75rem; }
.history-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.history-filters {
  display: flex;
  gap: 0.25rem;
  padding: 0.2rem;
  background: hsl(var(--muted));
  border-radius: var(--radius);
}
.history-filters button {
  border: none;
  background: transparent;
  padding: 0.35rem 0.75rem;
  border-radius: calc(var(--radius) - 4px);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
}
.history-filters button.active {
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  box-shadow: var(--shadow-sm);
}
.history-day {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  overflow: hidden;
}
.history-day-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border: none;
  background: hsl(var(--muted) / 0.55);
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.history-day-head:hover { background: hsl(var(--muted) / 0.85); }
.history-day-title { font-weight: 600; font-size: 0.875rem; }
.history-day-meta { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.history-day-body { display: none; }
.history-day.open .history-day-body { display: flex; flex-direction: column; }
.history-day-body .job-row {
  border: none;
  border-top: 1px solid hsl(var(--border));
  border-radius: 0;
}
.job-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
}
.job-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
}
.job-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}
.job-time { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.job-status {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}
.job-status.done { background: hsl(var(--valid) / 0.14); color: hsl(var(--valid)); }
.job-status.stopped, .job-status.interrupted { background: hsl(var(--warn) / 0.14); color: hsl(28 80% 36%); }
.job-status.running { background: hsl(var(--primary) / 0.12); color: hsl(var(--primary)); }
.job-row strong { font-size: 0.875rem; }
.job-row .cost-card { margin-top: 0.25rem; }
.job-meta { font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin-top: 0.2rem; }
.job-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.job-details summary {
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  list-style: none;
}
.job-details summary::-webkit-details-marker { display: none; }
.job-details[open] summary { margin-bottom: 0.5rem; }
@media (max-width: 720px) {
  .job-head { grid-template-columns: 1fr; }
}

.addon-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.875rem;
  align-items: center;
  margin: 1rem 0 0;
  padding: 1rem 1.125rem;
  border: 1px solid hsl(var(--primary) / 0.35);
  border-radius: var(--radius);
  background: hsl(var(--brand-muted));
  cursor: pointer;
}
.addon-card input { width: 1.1rem; height: 1.1rem; accent-color: hsl(var(--primary)); }
.addon-card strong { display: block; font-size: 0.9375rem; }
.addon-card p { margin: 0.2rem 0 0; font-size: 0.8125rem; color: hsl(var(--muted-foreground)); line-height: 1.45; }
.addon-price {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.cost-card {
  margin-top: 1rem;
  padding: 1rem 1.125rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--muted) / 0.4);
}
.cost-card h4 { margin: 0 0 0.5rem; font-size: 0.875rem; }
.cost-lines { margin: 0; padding: 0; list-style: none; font-size: 0.875rem; }
.cost-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0;
  color: hsl(var(--muted-foreground));
}
.cost-lines .total {
  margin-top: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  font-weight: 600;
}
.geo-card {
  margin-top: 1rem;
  padding: 1rem 1.125rem 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
}
.geo-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.geo-head h4 { margin: 0; font-size: 0.875rem; }
.geo-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1rem;
  align-items: stretch;
}
.geo-map-wrap {
  position: relative;
  background: linear-gradient(180deg, #e8eef6 0%, #f5f7fb 100%);
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  min-height: 220px;
}
.geo-map { width: 100%; }
.geo-map svg {
  display: block;
  width: 100%;
  height: auto;
}
.geo-map path {
  fill: #d5deea;
  stroke: #f8fafc;
  stroke-width: 0.45;
}
.geo-map path.is-on {
  stroke: #fff;
  stroke-width: 0.7;
}
.geo-pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.geo-pin {
  position: absolute;
  transform: translate(-50%, -115%);
  z-index: 2;
}
.geo-pin-chip {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.12rem 0.4rem 0.12rem 0.18rem;
  background: #fff;
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  box-shadow: var(--shadow);
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.geo-list { min-width: 0; }
.geo-row {
  display: grid;
  grid-template-columns: 1.25rem 20px minmax(0, 1fr) 2.4rem;
  gap: 0.5rem;
  align-items: center;
  padding: 0.42rem 0;
  border-bottom: 1px solid hsl(var(--border));
}
.geo-row:last-child { border-bottom: 0; }
.geo-rank {
  font-size: 0.7rem;
  color: hsl(var(--muted-foreground));
  font-variant-numeric: tabular-nums;
}
.geo-row-main { min-width: 0; }
.geo-row-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8125rem;
}
.geo-row-top strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.geo-n { font-variant-numeric: tabular-nums; color: hsl(var(--foreground)); }
.geo-row-bar {
  height: 6px;
  margin-top: 0.28rem;
  border-radius: 9999px;
  background: hsl(var(--muted));
}
.geo-row-bar > span {
  display: block;
  height: 100%;
  border-radius: 9999px;
}
.geo-share {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.geo-attr {
  margin: 0.5rem 0 0;
  font-size: 0.65rem;
  color: hsl(var(--muted-foreground));
}
.flag-img {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px hsl(var(--border));
  flex-shrink: 0;
}
.flag-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 15px;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: hsl(var(--muted));
  border-radius: 2px;
}
.verdict-meta .flag-img { margin-right: 0.35rem; vertical-align: -2px; }
@media (max-width: 800px) {
  .geo-layout { grid-template-columns: 1fr; }
}

.pay-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
}
.pay-qr {
  width: 180px;
  height: 180px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.5rem;
  background: #fff;
  object-fit: contain;
}
.pay-timer {
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: hsl(var(--foreground));
}
.pay-timer.is-low { color: #b45309; }
.pay-timer.is-over { color: hsl(var(--muted-foreground)); }

.order-history {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid hsl(var(--border));
}
.order-history h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}
.order-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid hsl(var(--border));
}
.order-row:last-child { border-bottom: none; }
.order-meta {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}
.order-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}
.order-state {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}
.order-row[data-state="waiting"] .order-state {
  background: hsl(37 92% 92%);
  color: #92400e;
}
.order-row[data-state="paid"] .order-state {
  background: hsl(152 60% 92%);
  color: #047857;
}
.order-row[data-state="expired"] .order-state,
.order-row[data-state="cancelled"] .order-state,
.order-row[data-state="failed"] .order-state {
  background: hsl(var(--muted));
}
.order-actions { display: flex; gap: 0.25rem; }
.pay-actions {
  padding: 0.75rem 1rem;
  border-top: 1px solid hsl(var(--border));
}

.code-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: hsl(var(--muted));
  border-radius: var(--radius);
  width: fit-content;
  margin: 0 0 0.75rem;
}
.code-tabs button {
  border: none;
  background: transparent;
  padding: 0.35rem 0.75rem;
  border-radius: calc(var(--radius) - 4px);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
}
.code-tabs button.active {
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  box-shadow: var(--shadow-sm);
}
.legal-prose {
  max-width: 42rem;
  margin: 0 auto;
}
.legal-prose h1 { font-size: 1.75rem; }
.legal-prose h2 { font-size: 1.125rem; margin: 2rem 0 0.5rem; }
.legal-prose p, .legal-prose li {
  color: hsl(var(--muted-foreground));
  font-size: 0.9375rem;
  line-height: 1.7;
}
.pre-wrap { position: relative; }
.copy-pre,
.pre-copy {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  border-radius: calc(var(--radius) - 4px);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
}
.pre-copy:hover, .copy-pre:hover { color: hsl(var(--foreground)); }
.pre-wrap pre { margin-top: 0; padding-right: 4.25rem; }

.landing-preview-body {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.landing-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}
.landing-stats .product-stat b {
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
}
.landing-preview .cost-card { margin-top: 0; padding: 0.75rem 0.9rem; }
.landing-preview .geo-map-wrap { min-height: 168px; }
.landing-preview .geo-row { padding: 0.28rem 0; }
.chrome-dots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.chrome-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d0d5dd;
}
.chrome-dots i:nth-child(1) { background: #ff5f57; }
.chrome-dots i:nth-child(2) { background: #febc2e; }
.chrome-dots i:nth-child(3) { background: #28c840; }
.chrome-status { font-weight: 600; color: hsl(var(--valid)); }

.live-try {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem);
  gap: 1.25rem 1.75rem;
  align-items: center;
  padding: 1.5rem 1.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  background: hsl(var(--card));
  box-shadow: var(--shadow);
}
.live-try h2 { margin: 0 0 0.35rem; font-size: 1.25rem; }
.live-try p { margin: 0; color: hsl(var(--muted-foreground)); font-size: 0.9375rem; }
.live-try #demo-result { grid-column: 1 / -1; }
@media (max-width: 800px) {
  .live-try { grid-template-columns: 1fr; }
}

.code-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: center;
}
.code-split h2 { margin: 0.75rem 0 0.5rem; font-size: 1.75rem; }
.code-window {
  padding: 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
@media (max-width: 860px) {
  .code-split { grid-template-columns: 1fr; }
}

.docs-layout {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.docs-side {
  position: sticky;
  top: 4.5rem;
}
.docs-side-label {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
.docs-side a {
  display: block;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  padding: 0.32rem 0;
}
.docs-side a:hover { color: hsl(var(--foreground)); }
.docs-body .card + .card { margin-top: 1rem; }
.docs-body .card { scroll-margin-top: 4.75rem; }
.docs-body .card-title { font-size: 1.05rem; }
.schema-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-top: 0.75rem;
}
.schema-table th, .schema-table td {
  text-align: left;
  padding: 0.5rem 0.55rem;
  border-bottom: 1px solid hsl(var(--border));
  vertical-align: top;
}
.schema-table th { font-size: 0.75rem; color: hsl(var(--muted-foreground)); font-weight: 500; }
.schema-table code { font-size: 0.8em; }
@media (max-width: 860px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-side {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid hsl(var(--border));
  }
  .docs-side-label { width: 100%; }
}

.payg {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
}
.payg-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
.payg-presets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 1.25rem;
}
.payg-preset {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.95rem 0.9rem 0.85rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  border-radius: var(--radius);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.payg-preset:hover { border-color: hsl(var(--foreground) / 0.18); }
.payg-preset.selected {
  background: hsl(var(--brand-muted));
  border-color: hsl(var(--primary));
}
.payg-preset b {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
.payg-preset.selected b { color: hsl(var(--primary)); }
.payg-preset-usd {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.payg-preset-rate {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}
.payg-pop {
  position: absolute;
  top: 0.45rem;
  right: 0.5rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}
.payg-board {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  border-top: 1px solid hsl(var(--border));
}
.payg-select,
.payg-quote { padding: 1.5rem 1.5rem 1.6rem; }
.payg-quote { border-left: 1px solid hsl(var(--border)); }
.payg-amount-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid hsl(var(--border));
}
.payg-amount-wrap span {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
.payg-amount {
  flex: 1;
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  text-align: left;
  box-shadow: none;
}
.payg-amount:focus { outline: none; }
.payg-slider-wrap { margin: 1.15rem 0 0; }
.payg-slider {
  width: 100%;
  height: 1.25rem;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.payg-slider::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 9999px;
  background: hsl(var(--border));
}
.payg-slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -7px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: hsl(var(--primary));
  box-shadow: 0 0 0 1px hsl(var(--primary) / 0.35);
}
.payg-slider::-moz-range-track {
  height: 2px;
  border-radius: 9999px;
  background: hsl(var(--border));
}
.payg-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: hsl(var(--primary));
}
.payg-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}
.payg-price {
  font-size: 2.35rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.payg-meta, .payg-save {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.45;
}
.payg-cta { margin-top: 1.15rem; }
.pricing-fine {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.35rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}
.pricing-fine strong {
  color: hsl(var(--foreground));
  font-weight: 600;
  margin-right: 0.25rem;
}
.card .payg {
  max-width: none;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.card .payg-presets { padding: 0 0 1rem; }
.card .payg-select,
.card .payg-quote { padding: 1.1rem 0 0; }
.card .payg-quote { padding-left: 1.15rem; }
.card .payg-amount { font-size: 1.5rem; }
@media (max-width: 900px) {
  .payg-presets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .payg-board { grid-template-columns: 1fr; }
  .payg-quote { border-left: 0; border-top: 1px solid hsl(var(--border)); }
}
@media (max-width: 560px) {
  .payg-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 1rem; }
  .payg-amount { font-size: 1.5rem; }
  .payg-price { font-size: 1.85rem; }
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 900px) { .admin-kpis { grid-template-columns: repeat(2, 1fr); } }
.admin-kpi {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  background: hsl(var(--card));
}
.admin-kpi b { display: block; font-size: 1.35rem; letter-spacing: -0.03em; }
.admin-kpi span { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.admin-table th, .admin-table td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid hsl(var(--border));
  vertical-align: top;
}
.admin-table th { color: hsl(var(--muted-foreground)); font-weight: 500; }
.admin-table tr { cursor: pointer; }
.admin-table tr:hover td { background: hsl(var(--muted) / 0.45); }
.admin-toolbar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0 0 0.75rem; align-items: end; }
.admin-toolbar .field { margin: 0; flex: 1; min-width: 10rem; }
.admin-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; }
@media (max-width: 1000px) { .admin-split { grid-template-columns: 1fr; } }
.admin-note { font-family: var(--mono); font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.pill-off { color: hsl(var(--danger)); font-weight: 600; }

/* Home: one layout language for every block */
.page-home {
  --home-y: 4.5rem;
}
.page-home .eyebrow {
  margin: 0 0 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}
.page-home .hero-marketing { padding: 4rem 0 2.25rem; }
.page-home .hero-marketing h1 { max-width: 18ch; }
.page-home .product-frame {
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -24px rgb(15 23 42 / 0.35);
}
.page-home .section { padding: var(--home-y) 0; }
.page-home .wrap-wide.metrics-bar {
  margin-top: 0;
  margin-bottom: 0;
}
.page-home .metrics-bar,
.page-home .feat-grid {
  border-radius: var(--radius);
}
.page-home .metric-cell {
  text-align: center;
  padding: 1.15rem 1.25rem;
}
.page-home .metric-cell strong {
  font-size: 1.25rem;
  font-weight: 600;
}
.page-home .home-panel {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  box-shadow: none;
}
.page-home .feat-head { margin: 0 0 1.75rem; }
.page-home .start-intro { margin: 0; }
.page-home .start-intro .btn { margin-top: 1.25rem; }
.page-home .start-rail.home-panel {
  padding: 1.5rem 1.4rem 1.25rem 1.1rem;
}
.page-home .start-n { box-shadow: 0 0 0 4px hsl(var(--card)); }
.page-home .try-panel { padding: 1.1rem; }
.page-home .try-panel .verdict { margin-top: 0.85rem; }
.page-home .hero-marketing .try-card {
  padding: 1.35rem 1.35rem 1.2rem;
}
.page-home .hero-marketing .try-card .verdict { margin-top: 0.9rem; }
.page-home .product-report {
  margin: 0 0 1.75rem;
}
.page-home .product-report .landing-preview {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
.page-home .code-window {
  box-shadow: none;
  border-radius: var(--radius);
}
.page-home .faq-list { max-width: none; margin: 0; }
.page-home .cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: 1.75rem;
}
.page-home .cta-bar .feat-head { margin: 0; max-width: 34rem; }
.page-home .cta-bar h2 { margin: 0 0 0.4rem; }
.page-home .site-footer { margin-top: 0; }
@media (max-width: 900px) {
  .page-home .cta-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

.topic-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: hsl(var(--border));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
}
.topic-cards a {
  display: block;
  padding: 1.2rem 1.15rem 1.25rem;
  background: hsl(var(--card));
  color: inherit;
  text-decoration: none;
}
.topic-cards a:hover { background: hsl(var(--muted) / 0.45); }
.topic-cards strong {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
}
.topic-cards span {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
}
@media (max-width: 900px) {
  .topic-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .topic-cards { grid-template-columns: 1fr; }
}

.page-topic .topic-hero {
  padding: 3rem 0 1.5rem;
}
.page-topic .topic-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  max-width: 18ch;
}
.page-topic .topic-hero .lead {
  max-width: 40rem;
  font-size: 1.125rem;
}
.page-topic .topic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem);
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 3rem;
}
.page-topic .topic-body h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.25rem;
}
.page-topic .topic-body h2:first-child { margin-top: 0; }
.page-topic .topic-body p,
.page-topic .topic-body li {
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
  line-height: 1.65;
}
.page-topic .topic-body ul { padding-left: 1.15rem; }
.page-topic .topic-aside {
  position: sticky;
  top: 5.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.15rem;
  background: hsl(var(--card));
}
.page-topic .topic-aside h2 {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
.page-topic .topic-aside a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}
.page-topic .topic-aside a[aria-current="page"] { font-weight: 600; }
@media (max-width: 800px) {
  .page-topic .topic-layout { grid-template-columns: 1fr; }
  .page-topic .topic-aside { position: static; }
}



