/* DollarLead AI — shared design system. Premium, restrained, no heavy
   framework. Light + dark aware, RTL-aware (Arabic). */
:root {
  --bg: #0b0e14;
  --bg-alt: #11151d;
  --card: #161b26;
  --card-alt: #1d2330;
  --border: #263042;
  --text: #eef1f6;
  --muted: #93a0b4;
  --accent: #4f7dff;
  --accent-dark: #3a5fd9;
  --ok: #3ecf8e;
  --warn: #f2b84c;
  --danger: #ef5b5b;
  --radius: 12px;
  font-size: 16px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f8fb; --bg-alt: #ffffff; --card: #ffffff; --card-alt: #f1f3f8;
    --border: #e2e6ee; --text: #131722; --muted: #5b667a;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top nav ---------- */
.dl-nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11,14,20,0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .dl-nav { background: rgba(255,255,255,0.85); }
}
.dl-nav-inner { display: flex; align-items: center; gap: 24px; padding: 14px 24px; max-width: 1120px; margin: 0 auto; }
.dl-logo { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; flex-shrink: 0; }
.dl-logo span { color: var(--accent); }
.dl-nav-links { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.dl-nav-links a {
  color: var(--muted); font-size: 0.92rem; font-weight: 600; padding: 8px 12px; border-radius: 8px;
}
.dl-nav-links a:hover, .dl-nav-links a.active { color: var(--text); background: var(--card-alt); text-decoration: none; }
.dl-nav-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.dl-lang-switch { display: flex; gap: 2px; background: var(--card-alt); border-radius: 8px; padding: 2px; }
.dl-lang-switch button {
  background: none; border: none; color: var(--muted); font-size: 0.78rem; font-weight: 700;
  padding: 6px 9px; border-radius: 6px; cursor: pointer; min-height: auto;
}
.dl-lang-switch button.active { background: var(--accent); color: #fff; }

/* ---------- Buttons ---------- */
button, .btn {
  font-family: inherit; font-size: 0.95rem; font-weight: 700; border: none; border-radius: 10px;
  padding: 12px 20px; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; background: var(--accent); color: #fff; text-decoration: none;
}
button:hover, .btn:hover { background: var(--accent-dark); text-decoration: none; }
button:disabled { opacity: 0.5; cursor: default; }
.btn-secondary { background: var(--card-alt); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--card); }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 64px; text-align: center; }
.hero h1 { font-size: 2.6rem; line-height: 1.15; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero h1 .accent { color: var(--accent); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 0.82rem; color: var(--muted); }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.alt { background: var(--bg-alt); }
h2.section-title { font-size: 1.8rem; text-align: center; margin: 0 0 12px; letter-spacing: -0.01em; }
p.section-sub { text-align: center; color: var(--muted); max-width: 560px; margin: 0 auto 36px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.card .icon { font-size: 1.6rem; margin-bottom: 12px; display: block; }

.status-badge {
  display: inline-block; font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 3px 9px; border-radius: 20px; margin-left: 8px; vertical-align: middle;
}
[dir="rtl"] .status-badge { margin-left: 0; margin-right: 8px; }
.status-badge.live { background: rgba(62,207,142,0.15); color: var(--ok); }
.status-badge.dev { background: rgba(242,184,76,0.15); color: var(--warn); }
.status-badge.planned { background: rgba(147,160,180,0.15); color: var(--muted); }

/* ---------- Product page feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 48px 0; border-bottom: 1px solid var(--border); }
.feature-row:last-child { border-bottom: none; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
[dir="rtl"] .feature-row.reverse { direction: ltr; }
.feature-row h3 { font-size: 1.4rem; margin: 0 0 12px; }
.feature-row p { color: var(--muted); }
.feature-media {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; color: var(--muted);
  font-size: 0.85rem; flex-direction: column; gap: 8px;
}
@media (max-width: 720px) { .feature-row { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-card { max-width: 480px; margin: 0 auto; }
label { display: block; font-size: 0.85rem; color: var(--muted); margin: 14px 0 6px; font-weight: 600; }
input, select { width: 100%; padding: 11px 13px; border-radius: 9px; border: 1px solid var(--border); background: var(--card-alt); color: var(--text); font-size: 0.95rem; font-family: inherit; }
input:focus, select:focus, button:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-error { color: var(--danger); font-size: 0.85rem; margin-top: 10px; display: none; }
.form-success { color: var(--ok); font-size: 0.9rem; margin-top: 14px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: 0.85rem; }
footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

/* ---------- Pricing ---------- */
.price-card { text-align: center; }
.price-card .price { font-size: 2rem; font-weight: 800; margin: 10px 0; }
.price-card .price small { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 16px 0; text-align: left; }
[dir="rtl"] .price-card ul { text-align: right; }
.price-card li { padding: 6px 0; color: var(--muted); font-size: 0.88rem; }
.price-card li::before { content: "✓ "; color: var(--ok); font-weight: 800; }

/* ---------- Admin table ---------- */
table.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.admin-table th, table.admin-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); }
[dir="rtl"] table.admin-table th, [dir="rtl"] table.admin-table td { text-align: right; }
table.admin-table th { color: var(--muted); font-weight: 700; font-size: 0.76rem; text-transform: uppercase; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; background: var(--card-alt); border: 1px solid var(--border); }
.pill.ACTIVE, .pill.online { background: rgba(62,207,142,0.15); color: var(--ok); border-color: transparent; }
.pill.TRIAL { background: rgba(79,125,255,0.15); color: var(--accent); border-color: transparent; }
.pill.PAST_DUE { background: rgba(242,184,76,0.15); color: var(--warn); border-color: transparent; }
.pill.SUSPENDED, .pill.CANCELLED { background: rgba(239,91,91,0.15); color: var(--danger); border-color: transparent; }
.pill.offline { color: var(--muted); }

.hero-kicker {
  display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); background: rgba(79,125,255,0.12); padding: 5px 12px; border-radius: 20px; margin-bottom: 16px;
}

/* ---------- Journey strip (AI Garson customer journey, section 4) ---------- */
.journey-strip { display: flex; align-items: flex-start; justify-content: center; flex-wrap: wrap; gap: 6px 2px; margin: 30px 0; }
.journey-step { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 700; color: var(--muted); width: 84px; text-align: center; }
.journey-step .j-icon { font-size: 1.5rem; }
.journey-arrow { color: var(--border); font-size: 1.1rem; padding: 12px 0; flex-shrink: 0; }
[dir="rtl"] .journey-arrow { transform: scaleX(-1); }

/* ---------- Avatar mockup slot (section 5) — real photo drops in later ---------- */
.avatar-mockup-wrap { display: flex; justify-content: center; margin: 8px 0 6px; }
.avatar-mockup {
  position: relative; width: 200px; height: 200px; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--accent); box-shadow: 0 0 0 8px rgba(79,125,255,0.1);
  background: linear-gradient(160deg, var(--card-alt), var(--bg)); display: flex; align-items: center; justify-content: center;
}
.avatar-mockup img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-mockup-fallback { display: none; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-size: 0.72rem; text-align: center; padding: 0 14px; }
.avatar-mockup-fallback .big { font-size: 2.6rem; }
.avatar-mockup.no-photo img { display: none; }
.avatar-mockup.no-photo .avatar-mockup-fallback { display: flex; }
.avatar-mockup-caption { text-align: center; color: var(--muted); font-size: 0.82rem; margin: 14px auto 0; max-width: 300px; }

/* ---------- Demo mock (section 6) — static UI mock, not a live system ---------- */
.demo-mock { max-width: 420px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.demo-bubble { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 0.9rem; margin-bottom: 8px; line-height: 1.35; }
.demo-bubble.customer { background: var(--accent); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.demo-bubble.assistant { background: var(--card-alt); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
[dir="rtl"] .demo-bubble.customer { margin-left: 0; margin-right: auto; }
.demo-order-summary { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); font-size: 0.9rem; }
.demo-order-summary .order-line { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); }
.demo-order-summary .total-row { display: flex; justify-content: space-between; font-weight: 800; padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--border); }

/* ---------- How it works (section 7) ---------- */
.steps-list { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.step-row { display: flex; align-items: center; gap: 16px; }
.step-num {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.95rem;
}
.step-row p { margin: 0; }

@media (max-width: 720px) {
  .hero h1 { font-size: 2rem; }
  .dl-nav-inner { flex-wrap: wrap; }
  .dl-nav-links {
    order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    gap: 4px; padding-bottom: 4px; scrollbar-width: none;
  }
  .dl-nav-links::-webkit-scrollbar { display: none; }
  .dl-nav-links a { white-space: nowrap; }
  .journey-step { width: 72px; }
  .avatar-mockup { width: 160px; height: 160px; }
}

/* ---- mobile navigation (hamburger) ---- */
.dl-burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border, rgba(255,255,255,.18)); background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 0; }
.dl-burger span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.dl-mobile-menu { display: none; }
html, body { max-width: 100%; overflow-x: hidden; }
@media (max-width: 900px) {
  .dl-nav-inner { flex-wrap: wrap; gap: 8px; padding: 10px 16px; }
  .dl-nav-links, .dl-nav-actions { display: none !important; }
  .dl-burger { display: flex; }
  .dl-mobile-menu.open { display: flex; flex-direction: column; gap: 4px; width: 100%; order: 5; padding: 8px 0 12px; }
  .dl-mobile-menu a { display: block; padding: 12px 10px; border-radius: 10px; color: var(--text); font-weight: 600; text-decoration: none; }
  .dl-mobile-menu a:hover { background: var(--card-alt); }
  .dl-mobile-menu a.dl-mm-cta { background: var(--accent); color: #fff; text-align: center; margin-top: 6px; }
  .dl-mobile-menu .dl-mm-langs { display: flex; gap: 8px; padding: 8px 10px; }
  .dl-mobile-menu .dl-mm-langs button { flex: 1; padding: 10px 0; border-radius: 10px; border: 1px solid var(--border, rgba(255,255,255,.18)); background: transparent; color: var(--text); font-weight: 700; cursor: pointer; }
  .dl-mobile-menu .dl-mm-langs button.active { background: var(--accent); color: #fff; }
}
/* ---------- Mobil ana ekran uygulaması (PWA) ---------- */
.pwa-banner { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 1000; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--accent); color: var(--text); font-weight: 600; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.pwa-banner[hidden] { display: none; }
.pwa-banner button { min-height: 40px; padding: 8px 16px; flex-shrink: 0; }
.dl-mobile-only { display: none; }
.sa-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.sa-toolbar input { flex: 1; }
@media (max-width: 900px) { .dl-mobile-only { display: block; } }
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  section { padding: 32px 0; }
  .card { padding: 16px; }
  .qr-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  table.responsive-cards, table.responsive-cards tbody { display: block; }
  table.responsive-cards thead { display: none; }
  table.responsive-cards tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); }
  table.responsive-cards td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: none; text-align: right; overflow-wrap: anywhere; }
  table.responsive-cards td::before { content: attr(data-label); color: var(--muted); font-size: 0.78rem; font-weight: 700; text-align: left; flex-shrink: 0; }
  table.responsive-cards td.m-hide { display: none; }
}
