/* ==========================================================================
   GEO console — design system
   Sober, dense analytics console. Familiar Search-Console layout language,
   own identity. Grounded in Cally tokens (Inter / Geist / accent blue).
   ========================================================================== */

@font-face {
  font-family: "Geist Sans";
  src: url("fonts/GeistVF.woff") format("woff-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMonoVF.woff") format("woff-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* Surfaces */
  --bg:           #f3f5f8;
  --surface:      #ffffff;
  --surface-2:    #f7f9fb;
  --surface-3:    #eef2f6;

  /* Borders */
  --border:       #e4e8ee;
  --border-strong:#d3d9e2;

  /* Ink */
  --ink:          #1f2329;
  --ink-2:        #5b6470;
  --ink-3:        #8a93a0;
  --ink-4:        #aab2bd;

  /* Brand / accents */
  --blue:         #3B82F6;
  --blue-dark:    #2563EB;
  --blue-soft:    #e8f0fe;
  --indigo:       #6366F1;
  --green:        #16a34a;
  --green-soft:   #e7f5ec;
  --amber:        #d98a04;
  --red:          #dc2626;
  --red-soft:     #fde8e8;

  /* LLM brand colors (data-viz only) */
  --llm-chatgpt:   #10A37F;
  --llm-claude:    #D97757;
  --llm-gemini:    #4285F4;
  --llm-perplexity:#20B8CD;
  --llm-copilot:   #8E63CE;
  --llm-grok:      #4b5563;
  --llm-meta:      #0866FF;

  /* Type */
  --font-heading: "Inter", system-ui, sans-serif;
  --font-sans:    "Geist Sans", "Inter", system-ui, sans-serif;
  --font-mono:    "Geist Mono", ui-monospace, monospace;

  /* Layout */
  --topbar-h: 64px;
  --sidebar-w: 280px;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;

  --shadow-card: 0 1px 2px rgba(31,35,41,.04), 0 1px 3px rgba(31,35,41,.06);
  --shadow-pop:  0 8px 24px rgba(31,35,41,.12), 0 2px 6px rgba(31,35,41,.08);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 14px;
  line-height: 1.5;
}

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

/* ===== Topbar ============================================================ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 60;
}
.topbar__burger {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--ink-2);
  border: 0; background: transparent; flex: none;
}
.topbar__burger:hover { background: var(--surface-3); }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name {
  font-family: var(--font-heading); font-weight: 600; font-size: 19px;
  letter-spacing: -0.02em; color: #3c4150; white-space: nowrap;
}
.brand__name b { color: var(--blue-dark); font-weight: 700; }

.topbar__search {
  flex: 1; max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 18px;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 28px; color: var(--ink-3);
  cursor: text; transition: background .15s, border-color .15s, box-shadow .15s;
}
.topbar__search:hover { background: #fff; border-color: var(--border); box-shadow: var(--shadow-card); }
.topbar__search svg { flex: none; color: var(--ink-3); }
.topbar__search span { font-size: 14px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__search span b { color: var(--ink-2); font-weight: 500; }

.topbar__actions { display: flex; align-items: center; gap: 4px; flex: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent;
  display: grid; place-items: center; cursor: pointer; color: var(--ink-2); position: relative;
}
.icon-btn:hover { background: var(--surface-3); }
.icon-btn .badge {
  position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--red); color: #fff; border-radius: 9px; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--surface);
}
.lang-toggle {
  display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 20px;
  overflow: hidden; height: 32px; margin-right: 6px; flex: none;
}
.lang-toggle button {
  border: 0; background: transparent; padding: 0 12px; height: 100%; cursor: pointer;
  font-family: var(--font-sans); font-size: 12px; font-weight: 600; color: var(--ink-3);
}
.lang-toggle button.active { background: var(--blue); color: #fff; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none; margin-left: 4px;
  background: linear-gradient(135deg, #3B82F6, #6366F1); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 13px; cursor: pointer;
}

/* ===== Sidebar =========================================================== */
.sidebar {
  position: fixed; top: var(--topbar-h); left: 0; bottom: 0; width: var(--sidebar-w);
  background: var(--surface); border-right: 1px solid var(--border);
  overflow-y: auto; z-index: 50; padding: 16px 12px 40px;
}
.property {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 12px;
  border: 1px solid var(--border-strong); border-radius: var(--radius); cursor: pointer;
  margin: 4px 4px 16px; background: var(--surface);
}
.property:hover { background: var(--surface-2); }
.property__icon {
  width: 24px; height: 24px; border-radius: 6px; flex: none; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue-dark);
}
.property__url { flex: 1; font-size: 13px; color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.property__chev { color: var(--ink-3); flex: none; }

.nav-group { margin-top: 6px; }
.nav-group__label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); padding: 14px 16px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 16px;
  border-radius: 0 22px 22px 0; color: var(--ink-2); cursor: pointer; font-size: 14px;
  margin-right: 4px; position: relative;
}
.nav-item:hover { background: var(--surface-3); text-decoration: none; color: var(--ink); }
.nav-item svg { flex: none; color: var(--ink-3); }
.nav-item.active { background: var(--blue-soft); color: var(--blue-dark); font-weight: 600; }
.nav-item.active svg { color: var(--blue-dark); }
.nav-item .tag {
  margin-left: auto; font-size: 10px; font-weight: 700; background: var(--green-soft);
  color: var(--green); padding: 2px 7px; border-radius: 10px; letter-spacing: .02em;
}
.nav-divider { height: 1px; background: var(--border); margin: 10px 16px; }

/* ===== App shell ========================================================= */
.app-main {
  margin-left: var(--sidebar-w); padding-top: var(--topbar-h); min-height: 100vh;
}
.page { max-width: 1120px; margin: 0 auto; padding: 26px 40px 80px; }
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 22px; flex-wrap: wrap;
}
.page-title {
  font-family: var(--font-heading); font-weight: 400; font-size: 28px; letter-spacing: -0.01em;
  color: #3c4043; margin: 0; line-height: 1.2;
}
.page-sub { color: var(--ink-3); font-size: 13px; margin: 6px 0 0; }
.page-actions { display: flex; align-items: center; gap: 10px; }

/* ===== Buttons / pills =================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px;
  border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface);
  font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--ink-2);
  cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--text { border-color: transparent; background: transparent; color: var(--blue-dark); padding: 0 8px; }
.btn--text:hover { background: var(--blue-soft); }
.btn svg { flex: none; }

.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.chip:hover { background: var(--surface-2); }
.chip.active { background: var(--blue-soft); border-color: #bcd5fb; color: var(--blue-dark); font-weight: 600; }
.chip svg { flex: none; color: var(--ink-3); }
.chip.active svg { color: var(--blue-dark); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ===== Cards ============================================================= */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.card__title { font-family: var(--font-heading); font-weight: 500; font-size: 18px; color: #3c4043; margin: 0; letter-spacing: -.01em; }
.card__title-sm { display:flex; align-items:center; gap:10px; }
.card__body { padding: 22px 24px; }
.card-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--blue-dark); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Info banner (like GSC insight) */
.banner {
  display: flex; align-items: center; gap: 16px; padding: 18px 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); margin-bottom: 20px;
}
.banner__icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #fff7e0; color: var(--amber); }
.banner__text { flex: 1; font-size: 14px; color: var(--ink); }
.banner__text b { font-weight: 600; }

/* ===== KPI tiles (performance selector) ================================== */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.kpi {
  padding: 18px 22px; border-right: 1px solid var(--border); cursor: pointer; position: relative;
  transition: background .15s; min-width: 0;
}
.kpi:last-child { border-right: 0; }
.kpi:hover { background: var(--surface-2); }
.kpi__top { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.kpi__dot { width: 11px; height: 11px; border-radius: 3px; flex: none; border: 1.5px solid var(--ink-4); }
.kpi__val { font-family: var(--font-heading); font-weight: 400; font-size: 30px; letter-spacing: -.02em; color: #3c4043; line-height: 1; }
.kpi__delta { font-size: 12px; font-weight: 600; margin-top: 8px; display: inline-flex; align-items: center; gap: 3px; }
.kpi__delta.up { color: var(--green); }
.kpi__delta.down { color: var(--red); }
.kpi.is-on { color: #fff; }
.kpi.is-on .kpi__top, .kpi.is-on .kpi__val { color: #fff; }
.kpi.kpi--blue.is-on { background: var(--blue); }
.kpi.kpi--indigo.is-on { background: var(--indigo); }
.kpi.kpi--teal.is-on { background: #0f766e; }
.kpi.kpi--slate.is-on { background: #475569; }
.kpi.is-on .kpi__dot { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.85); }
.kpi.is-on .kpi__delta { color: rgba(255,255,255,.92) !important; }

/* ===== Stat cards (overview hero strip) ================================= */
.stats4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.statcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 18px 20px; }
.statcard__label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.statcard__label .ico { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.statcard__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 14px; }
.statcard__val { font-family: var(--font-heading); font-weight: 400; font-size: 30px; letter-spacing: -.02em; color: #3c4043; line-height: 1; white-space: nowrap; }
.statcard__spark { width: 120px; height: 36px; flex: none; }
.statcard__foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--ink-3); }
@media (max-width: 1080px){ .stats4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .stats4 { grid-template-columns: 1fr 1fr; gap: 12px; } .statcard__spark{ display:none; } }

/* presence list rows */
.prow { display: grid; grid-template-columns: 1.5fr 64px 56px 90px 56px; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.prow:last-child { border-bottom: 0; }
.prow__name { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); font-weight: 500; }
.prow__name .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
@media (max-width: 560px){ .prow { grid-template-columns: 1.3fr 50px 48px; } .prow__spark, .prow__delta { display:none; } }

/* prompt list */
.qrow { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.qrow:last-child { border-bottom: 0; }
.qrow__q { flex: 1; font-size: 14px; color: var(--ink); }
.qrow__q .sub { display: block; margin-top: 3px; }
.qrow__n { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; }

/* ===== Tables ============================================================ */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); padding: 0 8px; overflow-x: auto; }
.tab {
  padding: 16px 18px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer;
  border-bottom: 3px solid transparent; white-space: nowrap; letter-spacing: .01em;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--blue-dark); border-bottom-color: var(--blue); }

table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase;
  letter-spacing: .04em; padding: 14px 20px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
thead th.num, td.num { text-align: right; }
tbody td { padding: 15px 20px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--ink); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }
td .mono { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); }
.num-strong { font-variant-numeric: tabular-nums; font-weight: 600; }
.sub { color: var(--ink-3); font-size: 12px; }

/* sortable header marker */
th .sorted { color: var(--blue-dark); }

/* mini bar inside cells (share of voice) */
.cell-bar { display: flex; align-items: center; gap: 10px; }
.cell-bar__track { flex: 1; height: 8px; border-radius: 5px; background: var(--surface-3); overflow: hidden; min-width: 80px; }
.cell-bar__fill { height: 100%; border-radius: 5px; display: block; }

/* ===== LLM legend chips ================================================== */
.legend { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.legend__item { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: default; }
.legend__sw { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.llm-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 10px;
  border-radius: 16px; border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap;
}
.llm-pill .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

/* ===== Stat / delta inline ============================================== */
.delta { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.delta.up { color: var(--green); }
.delta.down { color: var(--red); }
.delta.flat { color: var(--ink-3); }

/* ===== Donut + sparkline wrappers ======================================= */
.chart-wrap { position: relative; width: 100%; }
.axis-label { font-family: var(--font-sans); font-size: 11px; fill: var(--ink-3); }
.grid-line { stroke: var(--border); stroke-width: 1; }

/* Presence / position pills */
.pos-pill {
  display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 8px;
  border-radius: 6px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.pos-good { background: var(--green-soft); color: var(--green); }
.pos-mid  { background: #fff3df; color: var(--amber); }
.pos-bad  { background: var(--red-soft); color: var(--red); }
.pos-none { background: var(--surface-3); color: var(--ink-3); }

.sentiment { display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:500; }
.sentiment .d { width:8px; height:8px; border-radius:50%; }
.sentiment.pos .d { background: var(--green); }
.sentiment.neu .d { background: var(--ink-4); }
.sentiment.neg .d { background: var(--red); }

/* status dot live */
.live-dot { position: relative; display: inline-flex; width: 9px; height: 9px; }
.live-dot::before { content:""; position:absolute; inset:0; border-radius:50%; background: var(--green); opacity:.55; animation: pulsering 2s cubic-bezier(.4,0,.6,1) infinite; }
.live-dot::after { content:""; position:relative; width:9px; height:9px; border-radius:50%; background: var(--green); }
@keyframes pulsering { 0%{ transform:scale(1); opacity:.55; } 100%{ transform:scale(2.4); opacity:0; } }

/* sources favicon block */
.src-fav { width: 30px; height: 30px; border-radius: 7px; display:grid; place-items:center; flex:none; font-weight:700; font-size:13px; color:#fff; font-family: var(--font-heading); }

/* mobile drawer backdrop */
.scrim { position: fixed; inset: 0; background: rgba(20,24,31,.45); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.show { opacity: 1; pointer-events: auto; }

/* utility */
.flex { display: flex; } .items-center { align-items: center; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.muted { color: var(--ink-3); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; }
.hide-mobile { }

/* ===== Responsive ======================================================== */
@media (max-width: 1080px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .page { padding: 22px 24px 70px; }
}
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  .sidebar {
    width: 290px; transform: translateX(-100%); transition: transform .24s var(--font-sans);
    box-shadow: var(--shadow-pop); transition: transform .24s ease;
  }
  body.nav-open .sidebar { transform: translateX(0); }
  .app-main { margin-left: 0; }
  .topbar__search span .full { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(2) { border-right: 0; }
  .kpi:nth-child(1), .kpi:nth-child(2) { border-bottom: 1px solid var(--border); }
  .lang-toggle { display: none; }
}
@media (max-width: 560px) {
  .page { padding: 18px 14px 60px; }
  .topbar { padding: 0 10px; gap: 8px; }
  .topbar .brand__name { display: none; }
  .topbar__search { height: 42px; }
  .icon-btn.opt { display: none; }
  .page-title { font-size: 23px; }
  .card__body { padding: 16px; }
  .kpis { grid-template-columns: 1fr 1fr; }
}

/* ======================================================================== */
/* Public site: header / footer / auth modal / account menu / marketing     */
/* ======================================================================== */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-header__in { max-width: 1120px; margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 24px; padding: 0 24px; }
.site-nav { display: flex; gap: 22px; flex: 1; }
.site-nav a { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.site-nav a:hover, .site-nav a.active { color: var(--blue-dark); text-decoration: none; }
.acct-area { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.acct { position: relative; }
.acct__btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer; }
.acct__btn svg { color: var(--ink-3); }
.acct__plan { background: var(--blue-soft); color: var(--blue-dark); font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: .03em; padding: 2px 7px; border-radius: 6px; }
.acct__menu { position: absolute; right: 0; top: 42px; min-width: 180px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-pop); padding: 6px; display: flex; flex-direction: column; z-index: 70; }
.acct__menu a { padding: 9px 11px; border-radius: 6px; color: var(--ink); font-size: 13px; }
.acct__menu a:hover { background: var(--surface-3); text-decoration: none; }
@media (max-width: 760px) { .site-nav { display: none; } }

.auth-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; }
.auth-modal[hidden] { display: none; }
.auth-modal__backdrop { position: absolute; inset: 0; background: rgba(20,24,31,.5); }
.auth-modal__card { position: relative; width: 360px; max-width: 92vw; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-pop); padding: 26px; }
.auth-modal__close { position: absolute; top: 8px; right: 12px; border: 0; background: transparent; font-size: 24px; color: var(--ink-3); cursor: pointer; line-height: 1; }
.auth-modal__brand { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.auth-modal__brand .brand__mark { width: 26px; height: 26px; }
.auth-modal__card h3 { font-family: var(--font-heading); font-weight: 600; font-size: 20px; margin: 0 0 16px; color: #2b2f36; }
.auth-modal__card input { width: 100%; height: 42px; padding: 0 14px; margin-bottom: 10px; border: 1px solid var(--border-strong); border-radius: 8px; font-family: var(--font-sans); font-size: 14px; box-sizing: border-box; }
.auth-modal__err { font-size: 13px; margin-top: 6px; min-height: 18px; color: var(--ink-3); }
.auth-modal__switch { font-size: 13px; color: var(--ink-3); margin-top: 14px; text-align: center; }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 40px; }
.site-footer__in { max-width: 1120px; margin: 0 auto; padding: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-3); font-size: 13px; }
.site-footer__links a { margin-left: 16px; color: var(--ink-2); }

.mk { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.mk-hero { text-align: center; padding: 64px 0 36px; }
.mk-hero h1 { font-family: var(--font-heading); font-weight: 700; font-size: 44px; letter-spacing: -.02em; color: #262b33; margin: 0 0 16px; line-height: 1.12; }
.mk-hero p.lead { font-size: 18px; color: var(--ink-2); max-width: 660px; margin: 0 auto 28px; line-height: 1.5; }
.mk-checkbar { display: flex; gap: 10px; max-width: 560px; margin: 0 auto; }
.mk-checkbar input { flex: 1; height: 50px; padding: 0 18px; border: 1px solid var(--border-strong); border-radius: 10px; font-size: 16px; font-family: var(--font-sans); }
.mk-checkbar .btn { height: 50px; font-size: 15px; }
.mk-engines { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; color: var(--ink-3); font-size: 13px; }
.mk-section { padding: 50px 0; }
.mk-section h2 { font-family: var(--font-heading); font-weight: 600; font-size: 30px; text-align: center; color: #2b2f36; margin: 0 0 8px; }
.mk-section .sub { text-align: center; color: var(--ink-3); max-width: 580px; margin: 0 auto 34px; font-size: 15px; }
.mk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mk-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-card); }
.mk-card .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-dark); margin-bottom: 14px; }
.mk-card h3 { font-family: var(--font-heading); font-weight: 600; font-size: 17px; margin: 0 0 6px; color: #2b2f36; }
.mk-card p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.mk-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mk-step { text-align: center; }
.mk-step .n { width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-family: var(--font-heading); font-weight: 700; margin: 0 auto 12px; }
.mk-step h3 { font-size: 16px; margin: 0 0 6px; color: #2b2f36; }
.mk-step p { font-size: 14px; color: var(--ink-2); margin: 0; }
.mk-cta { background: linear-gradient(135deg, #3B82F6, #6366F1); border-radius: 20px; text-align: center; padding: 48px 24px; color: #fff; margin: 30px 0 10px; }
.mk-cta h2 { font-family: var(--font-heading); font-weight: 600; font-size: 28px; margin: 0 0 10px; color: #fff; }
.mk-cta p { margin: 0 0 22px; opacity: .92; }
.mk-cta .btn { background: #fff; color: var(--blue-dark); border: 0; height: 48px; font-size: 15px; }
.mk-locked { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.mk-locked .locked { position: relative; overflow: hidden; }
.mk-locked .locked .inner { filter: blur(5px); opacity: .5; }
.mk-locked .locked .lock { position: absolute; inset: 0; display: grid; place-items: center; }
.mk-locked .locked .lock span { background: var(--ink); color: #fff; border-radius: 20px; padding: 6px 14px; font-size: 12px; font-weight: 600; }
@media (max-width: 860px) { .mk-grid, .mk-steps, .mk-locked { grid-template-columns: 1fr; } .mk-hero h1 { font-size: 34px; } .mk-checkbar { flex-direction: column; } }
@media (max-width: 560px) { .topbar__actions .btn--text { display: none; } .topbar__search { flex: 0 1 auto; min-width: 0; } .acct__btn { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
