/* ==========================================================================
   QuratedAI — marketing site
   Palette and type mirror the app (app.quratedai.com) so the signup handoff
   reads as one product. No external fonts or CDNs.

   The accent trio (pink / teal / orange) is taken from the logo mark rather
   than chosen independently, so the header lockup does not sit on a page that
   disagrees with it. Cyan stays as the INTERACTIVE colour — links, buttons,
   focus rings — because the three brand hues are used decoratively and a
   clickable thing must not be the same colour as a decorative thing.
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #070d1a;
  --surface: #0f1729;
  --surface-2: #0c1322;
  --panel: #0a1120;
  --border: #1e293b;
  --border-soft: #16233b;

  --text: #e2e8f0;
  --text-bright: #f1f5f9;
  --muted: #8fa3bd;
  --dim: #64748b;

  --cyan: #22d3ee;
  --cyan-light: #67e8f9;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --violet: #a78bfa;

  /* Brand hues, straight off the logo mark. Decorative only. */
  --brand-pink: #ee3c86;
  --brand-teal: #4ec3d9;
  --brand-orange: #f4802e;

  --ok: #34d399;
  --warn: #fbbf24;
  --err: #f87171;

  --grad: linear-gradient(90deg, var(--brand-teal), var(--blue-light), var(--brand-pink));
  --grad-btn: linear-gradient(90deg, #06b6d4, #3b82f6);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -22px rgba(0, 0, 0, 0.7);
  --container: 1120px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  line-height: 1.6;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Ambient glows — same signature as the app shell. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(600px 300px at 15% -5%, rgba(34, 211, 238, 0.14), transparent 60%),
    radial-gradient(700px 380px at 90% 0%, rgba(59, 130, 246, 0.12), transparent 60%);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(var(--container), 92%);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cyan);
  color: #04121e;
  padding: 10px 16px;
  font-weight: 700;
  z-index: 100;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 13, 26, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  font-weight: 800;
  /* The wordmark is lowercase and tightly set, following the logo. The old
     0.22em tracking belonged to an all-caps lockup and reads as a different
     brand under this one. */
  letter-spacing: -0.01em;
  font-size: 21px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  white-space: nowrap;
}

.brand-mark {
  flex: none;
  /* The mark is already three colours; no glow, no filter. */
  display: block;
}

/* "ai" is not a different colour from "qurated" in the logo — the wordmark is
   one solid weight. Keeping em as a no-op semantic hook rather than deleting
   it from 17 files, so the markup can carry the distinction if it is ever
   wanted again. */
.brand em {
  font-style: normal;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
}

.site-nav a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text-bright);
}

.site-nav a.active {
  color: var(--cyan-light);
}

.site-nav .btn {
  margin: 0;
  padding: 9px 16px;
  font-size: 13px;
  width: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 9px;
  border-radius: 9px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--cyan);
  display: block;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 11px;
  padding: 13px 22px;
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.12s, filter 0.15s, background 0.15s;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}

.btn-primary {
  background: var(--grad-btn);
  color: #04121e;
  box-shadow: 0 10px 26px -12px rgba(34, 211, 238, 0.55);
}

.btn-ghost {
  background: #1c2739;
  color: var(--text);
  border: 1px solid #2b3a52;
}

.btn-ghost:hover {
  background: #243146;
}

.btn-lg {
  padding: 15px 28px;
  font-size: 15px;
}

/* ---------- Typography ---------- */

h1,
h2,
h3,
h4 {
  color: var(--text-bright);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 14px;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--muted);
  line-height: 1.65;
}

.muted {
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cyan-light);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
}

.tag .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 7px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 56px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(15, 23, 41, 0) 0%, rgba(15, 23, 41, 0.6) 50%, rgba(15, 23, 41, 0) 100%);
}

.section-header {
  max-width: 680px;
  margin-bottom: 44px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--cyan-light);
  margin-bottom: 10px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 22px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  font-size: 12px;
  color: #9fb3cd;
  border: 1px solid #223148;
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(15, 23, 41, 0.6);
}

.badge b {
  color: var(--cyan-light);
  font-weight: 700;
}

/* ---------- Funnel visual ---------- */

.funnel {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.funnel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 700;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.funnel-head .live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ok);
}

.funnel-head .live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 2.4s infinite;
}

.stage {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
}

.stage-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.stage-track {
  height: 9px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  overflow: hidden;
}

.stage-fill {
  /* Must be blockified: it's a <span> in a plain block, and width/height
     are ignored on inline boxes. */
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--grad-btn);
  transform-origin: left;
  animation: grow 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes grow {
  from {
    transform: scaleX(0);
  }
}

.stage-val {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  min-width: 52px;
  text-align: right;
}

.stage.final .stage-fill {
  background: linear-gradient(90deg, var(--ok), #22d3ee);
}

.stage.final .stage-val {
  color: var(--ok);
  font-weight: 700;
}

.funnel-foot {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  font-size: 12px;
  color: var(--dim);
  line-height: 1.55;
}

/* ---------- Stat strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.stat {
  background: var(--surface-2);
  padding: 24px 20px;
  text-align: center;
}

.stat b {
  display: block;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.stat span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.18s, transform 0.18s;
}

.card:hover {
  border-color: #2b3a52;
  transform: translateY(-2px);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(59, 130, 246, 0.16));
  border: 1px solid rgba(34, 211, 238, 0.3);
  margin-bottom: 16px;
  font-size: 18px;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: step;
}

.step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  position: relative;
}

.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(59, 130, 246, 0.2));
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--cyan-light);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.step p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ---------- Pipeline (how it works) ---------- */

.pipeline {
  display: grid;
  gap: 14px;
}

.pipe-stage {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  position: relative;
}

.pipe-stage .n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(59, 130, 246, 0.14));
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--cyan-light);
  font-weight: 800;
  font-size: 15px;
}

.pipe-stage h3 {
  margin-bottom: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.pipe-stage p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}


/* ---------- Telegram mock ---------- */

.tg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.phone {
  background: linear-gradient(180deg, #17212b, #0e1621);
  border: 1px solid #23303d;
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow);
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.phone-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 4px 14px;
  border-bottom: 1px solid #23303d;
  margin-bottom: 14px;
}

.phone-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex: none;
}

.phone-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.phone-sub {
  font-size: 11.5px;
  color: #6d7f8f;
}

.bubble {
  background: #212d3b;
  border-radius: 14px 14px 14px 4px;
  padding: 13px 15px;
  font-size: 13px;
  line-height: 1.65;
  color: #e7eef5;
  margin-bottom: 10px;
  word-break: break-word;
}

.bubble strong {
  color: #fff;
}

.bubble .b-score {
  color: var(--cyan-light);
  font-weight: 700;
}

.bubble .b-ok {
  color: var(--ok);
}

.bubble .b-warn {
  color: var(--warn);
}

.bubble .b-link {
  color: #6ab3f3;
  text-decoration: underline;
}

.bubble .b-src {
  color: #6d7f8f;
  font-style: italic;
  font-size: 11.5px;
}

.bubble .b-time {
  display: block;
  text-align: right;
  font-size: 10.5px;
  color: #6d7f8f;
  margin-top: 4px;
}

.bubble-summary {
  background: #1c2b38;
}

/* ---------- Compare table ---------- */

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare th,
.compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}

.compare thead th {
  background: var(--surface);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 700;
  white-space: nowrap;
}

.compare thead th:last-child {
  color: var(--cyan-light);
}

.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare td:first-child {
  color: var(--text-bright);
  font-weight: 600;
  white-space: nowrap;
}

.compare td:nth-child(2) {
  color: var(--dim);
}

.compare td:last-child {
  color: var(--text);
}

.compare tbody tr:hover {
  background: rgba(15, 23, 41, 0.5);
}

/* ---------- Lists ---------- */

.list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 13px;
}

.list li {
  padding-left: 28px;
  position: relative;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 15px;
  height: 9px;
  border-left: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(-45deg);
}

.list li b {
  color: var(--text-bright);
  font-weight: 600;
}

/* ---------- Source pills ---------- */

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.pill {
  background: var(--panel);
  border: 1px solid #2b3a52;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  color: #bfdbfe;
}

/* ---------- Split ---------- */

.split {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

/* ---------- Notice ---------- */

.notice {
  background: var(--panel);
  border: 1px solid #223148;
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}

.notice b {
  color: var(--text-bright);
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  transition: border-color 0.18s;
}

details[open] {
  border-color: #2b3a52;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-bright);
  padding: 18px 20px;
  font-size: 14.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--cyan);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  flex: none;
  transition: transform 0.18s;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details .answer {
  padding: 0 20px 18px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}

details .answer p:last-child {
  margin-bottom: 0;
}

details .answer code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 12px;
  color: var(--cyan-light);
}

/* ---------- CTA ---------- */

.cta {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.09), rgba(59, 130, 246, 0.09), rgba(167, 139, 250, 0.07));
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 24px;
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
}

.cta h2 {
  margin-bottom: 12px;
}

.cta .lead {
  max-width: 560px;
  margin: 0 auto 28px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cta-note {
  margin: 22px 0 0;
  font-size: 12.5px;
  color: var(--dim);
}

/* ---------- Page hero (subpages) ---------- */

.page-hero {
  padding: 60px 0 8px;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.page-hero .lead {
  max-width: 660px;
}

/* ---------- Forms ---------- */

.form-card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

form {
  display: grid;
  gap: 6px;
}

label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin: 14px 0 5px;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid #2b3a52;
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

textarea {
  resize: vertical;
  min-height: 110px;
}

input::placeholder,
textarea::placeholder {
  color: #475569;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

form .btn {
  margin-top: 22px;
  width: 100%;
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 760px;
}

.legal h2 {
  font-size: 1.25rem;
  margin: 40px 0 12px;
  padding-top: 8px;
}

.legal h2:first-of-type {
  margin-top: 8px;
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.legal ul {
  padding-left: 22px;
  margin: 0 0 14px;
}

.legal li {
  margin-bottom: 8px;
}

.legal b,
.legal strong {
  color: var(--text-bright);
}

.legal a {
  color: var(--cyan-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.updated {
  font-size: 12.5px;
  color: var(--dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
  display: inline-block;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  background: rgba(10, 17, 32, 0.6);
  padding: 56px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
}

.footer-grid h4 {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dim);
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.7;
  margin: 14px 0 0;
  max-width: 280px;
}

.footer-links {
  display: grid;
  gap: 9px;
  font-size: 13.5px;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--cyan-light);
}

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  margin-top: 40px;
  padding-top: 22px;
  font-size: 12.5px;
  color: var(--dim);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .tg-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-nav {
    position: absolute;
    right: 4%;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    background: var(--surface);
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    display: none;
    min-width: 200px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 60px 0;
  }
}

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

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .pipe-stage {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .stage {
    grid-template-columns: 74px 1fr auto;
  }
}

/* ==========================================================================
   Theme toggle + light theme (light is the default; dark via data-theme="dark")
   The Telegram phone mock stays dark on purpose — it mimics the real app.
   ========================================================================== */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.theme-toggle:hover {
  border-color: var(--cyan);
}
/* Mobile-first: the toggle absorbs the free space to its left, so it + the
   hamburger sit tight on the right ([brand] … [🌙][☰]). */
.theme-toggle {
  margin-left: auto;
}
/* Desktop: send the toggle to the FAR right, after the nav, and let the nav
   take the auto margin so the whole group is right-aligned
   ([brand] … [links · Sign up][🌙]). */
@media (min-width: 901px) {
  .theme-toggle {
    margin-left: 14px;
    order: 3;
  }
  .site-nav {
    margin-left: auto;
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f7fafe;
  --panel: #ffffff;
  --border: #dbe4f0;
  --border-soft: #e6edf6;
  --text: #0f172a;
  --text-bright: #0b1220;
  --muted: #45566d;
  --dim: #64748b;
  --cyan-light: #0e7490; /* readable teal for text/accents on white */
  --shadow: 0 18px 50px -26px rgba(15, 23, 42, 0.25);
}

/* Header / footer translucent bars flip to light. */
:root[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.82);
}
:root[data-theme="light"] .site-footer {
  background: rgba(241, 246, 252, 0.7);
}
/* The alt-section band is a dark wash by default — make it a faint light wash. */
:root[data-theme="light"] .section-alt {
  background: linear-gradient(180deg, rgba(226, 232, 240, 0) 0%, rgba(226, 232, 240, 0.55) 50%, rgba(226, 232, 240, 0) 100%);
}
/* Ghost button, badges, pills, inputs: swap hardcoded dark surfaces. */
:root[data-theme="light"] .btn-ghost {
  background: #eef2f8;
  color: var(--text);
  border-color: #cdd8e6;
}
:root[data-theme="light"] .btn-ghost:hover {
  background: #e2e9f3;
}
:root[data-theme="light"] .badge {
  color: #45566d;
  border-color: #dbe4f0;
  background: #ffffff;
}
:root[data-theme="light"] .pill {
  border-color: #cdd8e6;
  color: #1d4ed8;
}
:root[data-theme="light"] .notice {
  border-color: #d7e2f0;
}
:root[data-theme="light"] .card:hover {
  border-color: #cbd5e1;
}
:root[data-theme="light"] details[open] {
  border-color: #cbd5e1;
}
:root[data-theme="light"] .compare tbody tr:hover {
  background: rgba(15, 23, 41, 0.04);
}
:root[data-theme="light"] input,
:root[data-theme="light"] textarea {
  border-color: #cdd8e6;
}
:root[data-theme="light"] input::placeholder,
:root[data-theme="light"] textarea::placeholder {
  color: #94a3b8;
}
:root[data-theme="light"] label {
  color: #64748b;
}
/* The dark Telegram mock keeps its bright accent even in light mode. */
:root[data-theme="light"] .bubble .b-score {
  color: #67e8f9;
}
