/* ============================================================
   rekbot.css — design system
   Colors: dark bg + oklch accent (purple) + green CTA + amber
   Theme: data-theme="dark" (default) | data-theme="light"
   ============================================================ */

/* ── Dark theme (default) ── */
:root,
[data-theme="dark"] {
  --bg:           #0B0B0F;
  --surface:      #141418;
  --surf2:        #1C1C22;
  --surf3:        #222229;

  --accent:       oklch(0.62 0.22 258);
  --accent-bg:    rgba(98, 72, 255, 0.12);
  --accent-bd:    rgba(98, 72, 255, 0.22);
  --accent-text:  oklch(0.72 0.18 258);
  --accent-hover: oklch(0.67 0.22 258);

  --green:        oklch(0.68 0.18 145);
  --green-bg:     rgba(68, 200, 120, 0.10);
  --green-bd:     rgba(68, 200, 120, 0.20);

  --amber:        oklch(0.78 0.17 55);
  --amber-bg:     rgba(255, 195, 50, 0.10);
  --amber-bd:     rgba(255, 195, 50, 0.20);

  --red:          oklch(0.65 0.20 25);
  --red-bg:       rgba(220, 70, 50, 0.10);
  --red-bd:       rgba(220, 70, 50, 0.20);

  --text:         #F0F0F5;
  --muted:        rgba(240, 240, 245, 0.45);
  --muted2:       rgba(240, 240, 245, 0.22);

  --border:       rgba(255, 255, 255, 0.07);
  --border2:      rgba(255, 255, 255, 0.12);

  --input-bg:     #1C1C22;
  --input-bd:     rgba(255, 255, 255, 0.10);

  --scrollbar-thumb: rgba(255,255,255,0.10);
  --scrollbar-hover: rgba(255,255,255,0.18);

  color-scheme: dark;
}

/* ── Light theme ── */
[data-theme="light"] {
  --bg:           #F5F5FA;
  --surface:      #FFFFFF;
  --surf2:        #EFEFF5;
  --surf3:        #E8E8F0;

  --accent:       oklch(0.52 0.22 258);
  --accent-bg:    rgba(98, 72, 255, 0.08);
  --accent-bd:    rgba(98, 72, 255, 0.18);
  --accent-text:  oklch(0.45 0.22 258);
  --accent-hover: oklch(0.48 0.22 258);

  --green:        oklch(0.52 0.18 145);
  --green-bg:     rgba(40, 160, 90, 0.08);
  --green-bd:     rgba(40, 160, 90, 0.18);

  --amber:        oklch(0.60 0.17 55);
  --amber-bg:     rgba(200, 140, 0, 0.08);
  --amber-bd:     rgba(200, 140, 0, 0.18);

  --red:          oklch(0.50 0.20 25);
  --red-bg:       rgba(180, 50, 30, 0.07);
  --red-bd:       rgba(180, 50, 30, 0.15);

  --text:         #18181E;
  --muted:        rgba(24, 24, 30, 0.50);
  --muted2:       rgba(24, 24, 30, 0.32);

  --border:       rgba(0, 0, 0, 0.08);
  --border2:      rgba(0, 0, 0, 0.14);

  --input-bg:     #FFFFFF;
  --input-bd:     rgba(0, 0, 0, 0.12);

  --scrollbar-thumb: rgba(0,0,0,0.12);
  --scrollbar-hover: rgba(0,0,0,0.22);

  color-scheme: light;
}

:root {
  --r-sm:  8px;
  --r:     12px;
  --r-lg:  16px;
  --r-xl:  20px;

  --sidebar-w: 208px;
  --font: 'Golos Text', sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-hover); }

/* ── Light theme: inputs need explicit bg/text ── */
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
  background-color: var(--input-bg);
  color: var(--text);
  border-color: var(--input-bd);
}
[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder { color: var(--muted2); }

input, textarea, button, select { font-family: inherit; }
input::placeholder, textarea::placeholder { color: var(--muted2); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── App shell ── */
.shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 12px 16px;
  border-right: 1px solid var(--border);
  overflow-y: auto;
}

.logo {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.5px;
  padding: 0 6px;
  margin-bottom: 28px;
  cursor: pointer;
}
.logo span { color: var(--accent); }

/* Nav items */
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  width: 100%;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
  text-decoration: none;
}
.nav-item:hover  { background: rgba(255,255,255,0.03); color: var(--text); }
.nav-item.active { background: rgba(255,255,255,0.06); color: var(--text); font-weight: 600; }

/* Light theme nav-item overrides */
[data-theme="light"] .nav-item:hover  { background: rgba(0,0,0,0.04); }
[data-theme="light"] .nav-item.active { background: var(--accent-bg); }

/* Theme toggle button — matches nav-item style exactly */
.theme-toggle-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 8px;
  font-size: 13px; color: var(--muted);
  transition: all .15s;
}
.theme-toggle-btn:hover { background: rgba(255,255,255,0.04); color: var(--text); }
[data-theme="light"] .theme-toggle-btn:hover { background: rgba(0,0,0,0.04); }

.nav-icon { font-size: 14px; opacity: 0.5; width: 16px; text-align: center; flex-shrink: 0; }
.nav-item.active .nav-icon { opacity: 0.9; }

.nav-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 20px;
}
.nav-badge.beta { color: var(--amber); background: var(--amber-bg); border: 1px solid var(--amber-bd); }
.nav-badge.soon { color: var(--amber); background: var(--amber-bg); border: 1px solid var(--amber-bd); }

/* Sidebar bottom section */
.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
}

/* User block */
.user-block {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: oklch(0.42 0.18 258);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}

.user-name   { font-size: 12px; font-weight: 600; line-height: 1.2; }
.user-plan   { font-size: 10px; color: var(--amber); font-weight: 600; margin-top: 1px; }

.btn-upgrade {
  display: block;
  width: 100%;
  background: var(--accent-bg);
  border: 1px solid var(--accent-bd);
  color: var(--accent-text);
  padding: 8px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
  text-decoration: none;
}
.btn-upgrade:hover { background: rgba(98,72,255,0.20); }

/* ── Main content area ── */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.content-scroll {
  flex: 1;
  overflow-y: auto;
}

.content-inner {
  padding: 32px 36px;
}

/* ── Step bar ── */
.stepbar {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 36px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
  gap: 0;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 4px;
  background: none;
  border: none;
  cursor: default;
  font-family: inherit;
}

.step-item.done   { cursor: pointer; }

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255,255,255,0.07);
  color: var(--muted2);
}

.step-item.active .step-num { background: var(--accent); color: #fff; }
.step-item.done   .step-num { background: var(--green);  color: #fff; }

.step-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted2);
  white-space: nowrap;
}
.step-item.active .step-label { font-weight: 600; color: var(--text); }
.step-item.done   .step-label { color: rgba(240,240,245,0.60); }

.step-sep {
  flex: 1;
  height: 1px;
  min-width: 16px;
  max-width: 48px;
  background: rgba(255,255,255,0.07);
  margin: 0 4px;
  transition: background 0.4s;
}
.step-sep.done { background: var(--green); }

/* ── Plain top bar (non-flow pages) ── */
.topbar {
  border-bottom: 1px solid var(--border);
  padding: 0 36px;
  height: 50px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.topbar-label { font-size: 12px; color: var(--muted); }

/* ── Flash messages ── */
.messages { padding: 16px 36px 0; display: flex; flex-direction: column; gap: 8px; }

.msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r);
  font-size: 13.5px;
  line-height: 1.5;
}
.msg-icon { flex-shrink: 0; font-size: 15px; }

.msg.success { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-bd); }
.msg.error   { background: var(--red-bg);   color: var(--red);   border: 1px solid var(--red-bd); }
.msg.info    { background: var(--accent-bg); color: var(--accent-text); border: 1px solid var(--accent-bd); }
.msg.warning { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-bd); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 20px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  letter-spacing: -0.2px;
  transition: opacity 0.15s var(--ease), transform 0.1s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover  { opacity: 0.88; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.38; cursor: not-allowed; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-green   { background: var(--green);  color: #0B0B0F; }
.btn-surf    { background: var(--surf2);  color: var(--text); border: 1px solid var(--border2); }
.btn-ghost   { background: transparent;   color: var(--muted); border: 1px solid var(--border2); }

.btn-sm { padding: 8px 14px; font-size: 12.5px; border-radius: var(--r-sm); }
.btn-lg { padding: 16px 36px; font-size: 17px;   border-radius: var(--r-lg); letter-spacing: -0.3px; }

/* ── Inputs ── */
.input {
  width: 100%;
  padding: 12px 14px;
  background: var(--input-bg, var(--surf2));
  border: 1px solid var(--input-bd, var(--border2));
  border-radius: var(--r);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.textarea    { resize: vertical; min-height: 80px; }

.form-group  { margin-bottom: 18px; }

.label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}

/* ── Page header ── */
.page-header   { margin-bottom: 28px; }
.page-title    { font-size: 24px; font-weight: 800; letter-spacing: -0.6px; margin-bottom: 6px; }
.page-subtitle { font-size: 14px; color: var(--muted); }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.badge-accent  { background: var(--accent-bg); color: var(--accent-text); border: 1px solid var(--accent-bd); }
.badge-green   { background: var(--green-bg);  color: var(--green);       border: 1px solid var(--green-bd); }
.badge-amber   { background: var(--amber-bg);  color: var(--amber);       border: 1px solid var(--amber-bd); }
.badge-red     { background: var(--red-bg);    color: var(--red);         border: 1px solid var(--red-bd); }
.badge-surf    { background: var(--surf2);     color: var(--muted);       border: 1px solid var(--border2); }

/* ── Divider ── */
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ── Grid helpers ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

/* ── Utility ── */
.flex     { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-auto { margin-top: auto; }
.w-full  { width: 100%; }
.text-center { text-align: center; }

/* ── Landing page specific ── */
.landing {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.l-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(11,11,15,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
}

.l-logo { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }
.l-logo span { color: var(--accent); }

.l-nav-links { display: flex; gap: 28px; align-items: center; }
.l-nav-link  { font-size: 14px; color: var(--muted); transition: color 0.15s; }
.l-nav-link:hover { color: var(--text); }

.l-section {
  padding: 80px 48px;
  max-width: 1160px;
  margin: 0 auto;
}

.l-divider { border-top: 1px solid var(--border); }

.l-section-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
  line-height: 1.1;
}
.l-section-sub { font-size: 18px; color: var(--muted); }

/* Hero */
.l-hero { padding: 96px 48px 72px; max-width: 1160px; margin: 0 auto; }
.l-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

.l-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-bg);
  color: var(--accent-text);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
  border: 1px solid var(--accent-bd);
}

.l-h1 {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin-bottom: 22px;
}
.l-h1 span { color: var(--accent); }

.l-hero-sub  { font-size: 19px; color: var(--muted); line-height: 1.65; margin-bottom: 16px; }
.l-hero-body { font-size: 16px; color: var(--muted2); line-height: 1.65; margin-bottom: 36px; }

.l-hero-ctas { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.l-cta-note  { font-size: 13px; color: var(--muted2); }

.l-stats { margin-top: 40px; display: flex; gap: 32px; }
.l-stat-n { font-size: 24px; font-weight: 800; letter-spacing: -1px; }
.l-stat-l { font-size: 13px; color: var(--muted2); margin-top: 2px; }

/* Browser mockup */
.l-mockup {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.55);
}
.l-mockup-bar {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.l-mockup-dots { display: flex; gap: 5px; }
.l-mockup-dot  { width: 9px; height: 9px; border-radius: 50%; }
.l-mockup-title { flex: 1; text-align: center; font-size: 11px; color: var(--muted2); }
.l-mockup-grid { padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.l-mockup-footer { padding: 0 12px 12px; }
.l-mockup-cta {
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 10px;
  border-radius: var(--r-sm);
  text-align: center;
}

/* Mini banner */
.l-banner {
  border-radius: 9px;
  padding: 13px;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.l-banner-tag {
  font-size: 8px;
  color: rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.25);
  padding: 2px 5px;
  border-radius: 3px;
  align-self: flex-start;
}
.l-banner-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  font-weight: 700;
}
.l-banner-title { font-size: 11px; font-weight: 700; color: #fff; line-height: 1.25; margin-bottom: 4px; }
.l-banner-sub   { font-size: 9px;  color: rgba(255,255,255,0.55); margin-bottom: 7px; }
.l-banner-btn   { background: rgba(255,255,255,0.18); color: #fff; font-size: 9px; font-weight: 700; padding: 4px 8px; border-radius: 5px; display: inline-block; }

/* How-it-works cards */
.l-how-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.l-how-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
}
.l-how-n    { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 16px; letter-spacing: 0.5px; }
.l-how-h    { font-size: 20px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.4px; line-height: 1.3; }
.l-how-p    { color: var(--muted); font-size: 15px; line-height: 1.65; margin-bottom: 16px; }
.l-how-tag  { font-size: 12px; font-weight: 600; color: var(--green); display: flex; align-items: center; gap: 6px; }
.l-how-dot  { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* Output section */
.l-output-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.l-output-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.l-output-label { font-size: 12px; font-weight: 700; color: var(--muted2); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.l-banner-grid6 { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }

/* CSV preview */
.l-csv-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.l-csv-label { font-size: 13px; color: var(--muted); }
.l-csv-val   { font-size: 13px; font-weight: 600; }
.l-csv-dl {
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 12px;
  border-radius: var(--r);
  text-align: center;
  margin-top: 16px;
  cursor: pointer;
}

/* Value / comparison */
.l-value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.l-value-h    { font-size: 40px; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 16px; }
.l-value-p    { color: var(--muted); font-size: 18px; line-height: 1.65; margin-bottom: 32px; }
.l-perks      { display: flex; flex-direction: column; gap: 14px; }
.l-perk       { display: flex; gap: 14px; align-items: flex-start; }
.l-perk-icon  { font-size: 20px; flex-shrink: 0; line-height: 1.4; }
.l-perk-text  { font-size: 16px; color: var(--muted); line-height: 1.55; }

.l-compare         { display: flex; flex-direction: column; gap: 10px; }
.l-compare-header  { display: grid; grid-template-columns: 130px 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.l-compare-hl      { font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; letter-spacing: 0.5px; text-transform: uppercase; }
.l-compare-hl.us   { color: var(--green); }
.l-compare-row     { display: grid; grid-template-columns: 130px 1fr 1fr; gap: 10px; align-items: center; }
.l-compare-name    { font-size: 13px; color: var(--muted2); }
.l-compare-them    { background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 11px 14px; font-size: 13px; color: var(--muted); text-align: center; }
.l-compare-us      { background: rgba(68,200,120,0.1); border: 1px solid rgba(68,200,120,0.2); border-radius: 9px; padding: 11px 14px; font-size: 13px; font-weight: 600; color: var(--green); text-align: center; }

/* Pricing */
.l-pricing-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.l-plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
}
.l-plan.highlight {
  background: linear-gradient(180deg, rgba(98,72,255,0.07) 0%, var(--surface) 60%);
  border: 2px solid var(--accent);
  box-shadow: 0 0 40px rgba(98,72,255,0.12);
}
.l-plan-badge    { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; margin-bottom: 16px; }
.l-plan-badge-ph { height: 28px; margin-bottom: 4px; }
.l-plan-name     { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 8px; }
.l-plan-pos      { font-size: 14px; color: var(--muted); margin-bottom: 20px; line-height: 1.5; min-height: 42px; }
.l-plan-price    { margin-bottom: 4px; }
.l-plan-price-n  { font-size: 34px; font-weight: 900; letter-spacing: -1.5px; }
.l-plan-price-u  { font-size: 15px; color: var(--muted); margin-left: 4px; }
.l-plan-after    { font-size: 12px; color: var(--muted2); margin-bottom: 20px; }
.l-plan.highlight .l-plan-after { color: var(--green); font-weight: 600; }
.l-plan-after-ph { margin-bottom: 20px; }
.l-plan-cta {
  width: 100%;
  padding: 13px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 20px;
  transition: opacity 0.15s;
  border: none;
  text-decoration: none;
  display: block;
  text-align: center;
  color: #fff;
  background: var(--surf2);
}
.l-plan-cta:hover { opacity: 0.88; }
.l-plan.highlight .l-plan-cta { background: var(--accent); }
.l-plan-features { display: flex; flex-direction: column; gap: 9px; padding-top: 4px; border-top: 1px solid rgba(255,255,255,0.05); }
.l-plan-feat     { display: flex; gap: 9px; align-items: flex-start; }
.l-plan-check    { color: var(--green); font-size: 13px; line-height: 20px; flex-shrink: 0; }
.l-plan.highlight .l-plan-check { color: var(--accent); }
.l-plan-feat-text { font-size: 13px; color: var(--muted); line-height: 1.5; }

.l-bundle-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.l-bundle-n   { font-size: 13px; color: var(--muted); }
.l-bundle-p   { font-size: 14px; font-weight: 700; }

/* Upgrade ladder */
.l-ladder {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  background: var(--surf2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 20px;
}
.l-ladder-item { font-size: 13px; color: var(--muted); }
.l-ladder-item.accent { color: var(--accent); font-weight: 700; }
.l-ladder-arrow { font-size: 13px; color: var(--muted2); }

/* AI steps */
.l-ai-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.l-ai-item { position: relative; }
.l-ai-arrow {
  position: absolute;
  top: 28px;
  right: -10px;
  width: 20px;
  color: var(--muted2);
  font-size: 16px;
  z-index: 1;
  text-align: center;
}
.l-ai-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
}
.l-ai-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-bd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--accent-text);
  margin-bottom: 16px;
}
.l-ai-n  { font-size: 10px; font-weight: 700; color: var(--accent); letter-spacing: 0.5px; margin-bottom: 10px; }
.l-ai-h  { font-size: 16px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.3px; }
.l-ai-p  { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* Final CTA */
.l-cta-section { text-align: center; }
.l-cta-badge   {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-bg); color: var(--green);
  padding: 6px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
  border: 1px solid var(--green-bd);
}
.l-cta-h    { font-size: 52px; font-weight: 900; letter-spacing: -2px; margin-bottom: 18px; }
.l-cta-p    { color: var(--muted); font-size: 19px; margin-bottom: 40px; max-width: 500px; margin-left: auto; margin-right: auto; }
.l-cta-btns { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* Footer */
.l-footer {
  border-top: 1px solid var(--border);
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.l-footer-copy { font-size: 13px; color: var(--muted2); }

/* ============================================================
   Auth pages
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 400px 1fr;
  background: var(--bg);
  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
.auth-brand {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
}
.auth-brand-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-brand-h {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.auth-brand-p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 28px;
}
.auth-perks { display: flex; flex-direction: column; gap: 12px; }
.auth-perk  { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.auth-perk-chk { color: var(--green); font-weight: 700; flex-shrink: 0; }

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}
.auth-card { width: 100%; max-width: 400px; }
.auth-logo { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 36px; display: block; }
.auth-logo span { color: var(--accent); }
.auth-title    { font-size: 26px; font-weight: 800; letter-spacing: -0.8px; margin-bottom: 8px; }
.auth-subtitle { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.auth-subtitle a { color: var(--accent-text); }
.auth-subtitle a:hover { text-decoration: underline; }
.auth-err {
  background: var(--red-bg); border: 1px solid var(--red-bd); color: var(--red);
  padding: 12px 16px; border-radius: var(--r); font-size: 13.5px; margin-bottom: 18px;
}
.auth-foot { font-size: 13px; color: var(--muted2); text-align: center; margin-top: 20px; }
.auth-foot a { color: var(--accent-text); }
.trial-note {
  background: var(--green-bg); border: 1px solid var(--green-bd); color: var(--green);
  padding: 12px 16px; border-radius: var(--r); font-size: 13px; font-weight: 600;
  text-align: center; margin-bottom: 20px;
}

/* ── Field errors ── */
.field-error { font-size: 12px; color: var(--red); margin-top: 5px; }

/* ── Choice / radio group ── */
.choice-group { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; background: var(--surf2); border: 1px solid var(--border2);
  border-radius: var(--r-sm); cursor: pointer; font-size: 13.5px;
  transition: border-color 0.12s, background 0.12s; user-select: none;
}
.choice-item:has(input:checked) {
  border-color: var(--accent); background: var(--accent-bg); color: var(--text);
}
.choice-item input[type=radio] { display: none; }

/* ============================================================
   Dashboard
   ============================================================ */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 16px; }
.project-card { padding: 24px; display: flex; flex-direction: column; gap: 6px; min-height: 168px; }
.project-card-type { font-size: 11px; font-weight: 700; color: var(--accent-text); text-transform: uppercase; letter-spacing: 0.5px; }
.project-card-name { font-size: 18px; font-weight: 700; letter-spacing: -0.4px; line-height: 1.3; }
.project-card-url  { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-card-date { font-size: 11px; color: var(--muted2); margin-top: auto; padding-top: 8px; }
.project-card-actions { display: flex; gap: 8px; margin-top: 4px; }

/* ── Empty state ── */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 80px 40px;
}
.empty-icon { font-size: 48px; color: var(--muted2); margin-bottom: 20px; line-height: 1; }
.empty-state h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.empty-state p  { font-size: 15px; color: var(--muted); max-width: 420px; margin-bottom: 28px; line-height: 1.65; }

/* ============================================================
   Flow screens — shared
   ============================================================ */

/* ── Hypothesis cards ── */
.hyp-list { display: flex; flex-direction: column; gap: 12px; }
.hyp-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px 22px; transition: border-color 0.15s;
}
.hyp-card.is-selected { border-color: var(--green); }
.hyp-card.is-rejected { opacity: 0.45; }
.hyp-card-top { display: flex; align-items: flex-start; gap: 12px; }
.hyp-cb { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; margin-top: 3px; }
.hyp-headline { font-size: 16px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.35; flex: 1; }
.hyp-offer  { font-size: 14px; color: var(--muted); margin: 8px 0 0 29px; line-height: 1.5; }
.hyp-tags   { display: flex; gap: 7px; flex-wrap: wrap; margin: 10px 0 0 29px; }
.hyp-why    { font-size: 13px; color: var(--muted2); margin: 6px 0 0 29px; font-style: italic; line-height: 1.5; }

/* ── Generate panel ── */
.gen-panel {
  background: var(--accent-bg); border: 1px solid var(--accent-bd); border-radius: var(--r-lg);
  padding: 22px 24px; margin-bottom: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.gen-panel-text h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.gen-panel-text p  { font-size: 13px; color: var(--muted); }

/* ── Asset upload ── */
.upload-area {
  border: 2px dashed var(--border2); border-radius: var(--r-lg);
  padding: 36px 24px; text-align: center; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.upload-area:hover { border-color: var(--accent); background: var(--accent-bg); }
.upload-icon  { font-size: 32px; margin-bottom: 10px; color: var(--muted2); }
.upload-label { font-size: 14px; color: var(--muted); font-weight: 600; }
.upload-hint  { font-size: 12px; color: var(--muted2); margin-top: 5px; }

.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.asset-card { background: var(--surf2); border: 1px solid var(--border2); border-radius: var(--r); overflow: hidden; }
.asset-thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: var(--surf3); }
.asset-no-thumb {
  width: 100%; aspect-ratio: 4/3; background: var(--surf3);
  display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--muted2);
}
.asset-info { padding: 9px 11px; }
.asset-name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ── Template cards ── */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tpl-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  cursor: pointer; transition: border-color 0.15s;
}
.tpl-card.is-checked { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tpl-preview {
  width: 100%; aspect-ratio: 16/9; background: var(--surf2);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: var(--muted2); overflow: hidden;
}
.tpl-preview img { width: 100%; height: 100%; object-fit: cover; }
.tpl-card-body { padding: 14px 16px; }
.tpl-card-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.tpl-card-desc { font-size: 13px; color: var(--muted); line-height: 1.4; }
.tpl-check-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.tpl-cb { accent-color: var(--accent); cursor: pointer; }

/* ── Banner grid ── */
.banner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.banner-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; transition: border-color 0.15s;
}
.banner-card.is-checked { border-color: var(--accent); }
.banner-thumb {
  width: 100%; aspect-ratio: 1; background: var(--surf2);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: var(--muted2); overflow: hidden;
}
.banner-thumb img { width: 100%; height: 100%; object-fit: cover; }
.banner-body { padding: 12px 14px; }
.banner-headline { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.banner-meta     { font-size: 12px; color: var(--muted); }
.banner-check-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.banner-cb { accent-color: var(--accent); cursor: pointer; }

/* ============================================================
   Project overview — step cards & stats
   ============================================================ */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px 22px; }
.stat-n { font-size: 32px; font-weight: 900; letter-spacing: -1.5px; margin-bottom: 4px; }
.stat-l { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }

.step-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px 20px;
  display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.step-card:hover { border-color: var(--border2); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.step-card.is-done   { border-color: var(--green-bd); }
.step-card.is-active { border-color: var(--accent-bd); box-shadow: 0 0 0 1px var(--accent-bd); }
.step-card-n   { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.step-card-ico { font-size: 22px; margin: 6px 0; line-height: 1; }
.step-card-title { font-size: 16px; font-weight: 700; }
.step-card-sub   { font-size: 13px; color: var(--muted); line-height: 1.5; flex: 1; }
.step-card-cta   { margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--accent-text); }
.step-card.is-done   .step-card-cta { color: var(--green); }
.step-card.is-locked { opacity: 0.45; pointer-events: none; }

/* ============================================================
   Integration cards
   ============================================================ */
.integration-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.integration-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px;
  display: flex; gap: 16px; align-items: flex-start;
}
.integration-logo {
  width: 48px; height: 48px; border-radius: var(--r);
  background: var(--surf2); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.integration-body { flex: 1; min-width: 0; }
.integration-name { font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.integration-desc { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 14px; }

/* ============================================================
   Analytics page
   ============================================================ */
.analytics-coming {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 48px 24px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.analytics-coming-icon { font-size: 56px; margin-bottom: 20px; line-height: 1; }
.analytics-coming h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.analytics-coming p  { font-size: 15px; color: var(--muted); max-width: 420px; line-height: 1.65; }

/* ============================================================
   Business setup — tabs, chips, offer enhance
   ============================================================ */

/* Tabs */
.setup-tabs {
  display: flex; gap: 2px;
  background: var(--surf2); border: 1px solid var(--border2);
  border-radius: var(--r); padding: 3px;
  width: fit-content;
}
.setup-tab {
  padding: 7px 18px; border-radius: calc(var(--r) - 2px);
  font-size: 13px; font-weight: 500; color: var(--muted);
  background: none; border: none; cursor: pointer;
  transition: background 0.12s, color 0.12s;
  font-family: inherit;
}
.setup-tab:hover { color: var(--text); }
.setup-tab.is-active {
  background: rgba(255,255,255,0.07);
  color: var(--text); font-weight: 600;
}

/* Chips */
.chip-group { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
.chip {
  padding: 7px 13px; border-radius: 8px;
  font-size: 13px; font-weight: 400; color: var(--muted);
  background: var(--surf2); border: 1px solid var(--border2);
  cursor: pointer; transition: background 0.12s, color 0.12s, border-color 0.12s;
  font-family: inherit; line-height: 1;
}
.chip:hover { color: var(--text); border-color: var(--border2); background: rgba(255,255,255,0.06); }
.chip.is-active {
  background: var(--accent); border-color: var(--accent);
  color: #fff; font-weight: 600;
}

/* Offer enhance */
.offer-counter {
  font-size: 11px; color: var(--muted); font-weight: 500;
}
.field-hint {
  margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.5;
}
