/* Deshaira Studio — shared stylesheet */
:root {
  --pink: #e91e63;
  --pink-dark: #c2185b;
  --pink-soft: #fce7f3;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --bg-dark: #111827;
  --green: #16a34a;
  --amber: #d97706;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(17, 24, 39, .08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  max-width: 1100px; margin: 0 auto; padding: 12px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--pink); }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand-name span { color: var(--pink); }
.main-nav { margin-left: auto; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.main-nav a {
  color: var(--ink); font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 8px;
}
.main-nav a:hover { background: var(--bg-soft); text-decoration: none; }
.main-nav a.active { color: var(--pink); }
.btn {
  display: inline-block; background: var(--pink); color: #fff;
  font-weight: 700; padding: 11px 22px; border-radius: 999px;
  border: none; cursor: pointer; font-size: .98rem;
}
.btn:hover { background: var(--pink-dark); text-decoration: none; }
.btn-ghost {
  display: inline-block; background: #fff; color: var(--ink);
  font-weight: 700; padding: 11px 22px; border-radius: 999px;
  border: 1.5px solid var(--line); cursor: pointer; font-size: .98rem;
}
.btn-ghost:hover { border-color: var(--ink); text-decoration: none; }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.nav-cta { margin-left: 8px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; text-align: center; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.12;
  letter-spacing: -.03em; font-weight: 800; max-width: 800px; margin: 0 auto 18px;
}
.hero h1 span { color: var(--pink); }
.hero p.lead {
  font-size: 1.15rem; color: var(--muted); max-width: 640px;
  margin: 0 auto 28px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: .9rem; color: var(--muted); }
.hero-stats {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-top: 48px;
}
.stat-card {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 26px; min-width: 150px;
}
.stat-card strong { display: block; font-size: 1.6rem; font-weight: 800; }
.stat-card span { color: var(--muted); font-size: .9rem; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section h2 {
  font-size: 1.9rem; letter-spacing: -.02em; font-weight: 800;
  margin-bottom: 8px; text-align: center;
}
section .section-sub {
  text-align: center; color: var(--muted); max-width: 640px;
  margin: 0 auto 36px;
}
.section-alt { background: var(--bg-soft); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .97rem; }
.card .icon { font-size: 1.7rem; margin-bottom: 12px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; max-width: 760px; margin: 0 auto; }
.step {
  display: flex; gap: 18px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
}
.step-num {
  flex: 0 0 44px; height: 44px; border-radius: 50%;
  background: var(--pink); color: #fff; font-weight: 800; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin-bottom: 4px; }
.step p { color: var(--muted); font-size: .97rem; }
.step code {
  background: var(--pink-soft); color: var(--pink-dark);
  padding: 1px 7px; border-radius: 6px; font-size: .88em;
}

/* ---------- Dashboard preview ---------- */
.dash-preview {
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow); max-width: 900px; margin: 0 auto;
}
.dash-preview-bar {
  background: var(--bg-dark); color: #fff; padding: 10px 16px;
  display: flex; gap: 8px; align-items: center; font-size: .85rem;
}
.dash-preview-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #374151; }
.dash-preview-bar .dot:first-child { background: #f87171; }
.dash-preview-bar .dot:nth-child(2) { background: #fbbf24; }
.dash-preview-bar .dot:nth-child(3) { background: #34d399; }
.dash-preview-body { padding: 22px; background: var(--bg-soft); }
.mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.mini-stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.mini-stat strong { display: block; font-size: 1.25rem; }
.mini-stat span { color: var(--muted); font-size: .85rem; }
.mini-table { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mini-table table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.mini-table th, .mini-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.mini-table th { background: var(--bg-soft); color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.mini-table tr:last-child td { border-bottom: none; }
.pill {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: .8rem; font-weight: 700;
}
.pill-green { background: #dcfce7; color: var(--green); }
.pill-amber { background: #fef3c7; color: var(--amber); }
.pill-pink { background: var(--pink-soft); color: var(--pink-dark); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 22px; margin-bottom: 12px;
}
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { color: var(--muted); margin-top: 8px; font-size: .97rem; }

/* ---------- CTA + footer ---------- */
.cta-band {
  background: var(--bg-dark); color: #fff; text-align: center;
  border-radius: 20px; padding: 48px 24px; margin: 24px 0 56px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d1d5db; margin-bottom: 24px; }
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: .92rem; }
.footer-inner { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--pink); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 20px 64px; }
.legal h1 { font-size: 2rem; letter-spacing: -.02em; margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: .92rem; margin-bottom: 28px; }
.legal h2 { font-size: 1.3rem; margin: 32px 0 8px; text-align: left; }
.legal p, .legal li { color: #374151; margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
.legal .back { display: inline-block; margin-bottom: 20px; font-weight: 600; }

/* ---------- Dashboard app ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; flex: 0 0 240px; background: var(--bg-dark); color: #e5e7eb;
  padding: 20px 14px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { color: #fff; margin-bottom: 20px; padding: 0 8px; }
.sidebar .brand img { border-color: var(--pink); }
.side-link {
  display: flex; gap: 10px; align-items: center; padding: 10px 12px;
  border-radius: 10px; color: #d1d5db; font-weight: 600; font-size: .95rem; cursor: pointer;
}
.side-link:hover { background: #1f2937; text-decoration: none; color: #fff; }
.side-link.active { background: var(--pink); color: #fff; }
.side-link .demo-tag { margin-left: auto; font-size: .7rem; background: #374151; padding: 2px 8px; border-radius: 999px; }
.app-main { flex: 1; background: var(--bg-soft); padding: 24px; min-width: 0; }
.app-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.app-top h1 { font-size: 1.5rem; letter-spacing: -.02em; }
.demo-banner {
  background: #fef3c7; border: 1px solid #fcd34d; color: #92400e;
  border-radius: 10px; padding: 10px 14px; font-size: .9rem; margin-bottom: 20px;
}
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }
.app-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
}
.app-card h2 { font-size: 1.05rem; text-align: left; margin-bottom: 12px; }
.app-card .big { font-size: 1.7rem; font-weight: 800; }
.app-card .sub { color: var(--muted); font-size: .88rem; }
.app-card table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.app-card th, .app-card td { padding: 9px 6px; text-align: left; border-bottom: 1px solid var(--line); }
.app-card th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.app-card tr:last-child td { border-bottom: none; }
.bar-chart { display: flex; gap: 8px; align-items: flex-end; height: 140px; padding-top: 8px; }
.bar { flex: 1; background: var(--pink); border-radius: 6px 6px 0 0; min-height: 6px; position: relative; }
.bar span {
  position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  font-size: .72rem; color: var(--muted); white-space: nowrap;
}
.chart-wrap { padding-bottom: 22px; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-weight: 600; cursor: pointer; font-size: .92rem;
}
.tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(17, 24, 39, .55);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff; border-radius: 18px; max-width: 480px; width: 100%;
  padding: 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}
.modal h3 { margin-bottom: 8px; }
.modal p { color: var(--muted); font-size: .95rem; margin-bottom: 12px; }
.modal .tiktok-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; background: #000; color: #fff; font-weight: 700;
  padding: 13px; border-radius: 12px; border: none; cursor: pointer; font-size: 1rem;
}
.modal .tiktok-btn:hover { background: #1f2937; }
.modal a.tiktok-btn { text-decoration: none; }

@media (max-width: 760px) {
  .main-nav { display: none; }
  .sidebar { display: none; }
  .app-main { padding: 16px; }
  section { padding: 40px 0; }
}

/* Connected TikTok account chip (real data, replaces the connect button) */
.account-chip{display:inline-flex;align-items:center;gap:8px;background:var(--hatch-widget-surface,#f1f5f9);border:1px solid var(--hatch-widget-border,#e2e8f0);border-radius:999px;padding:4px 6px 4px 4px;font-size:14px;font-weight:600}
.account-chip img{width:28px;height:28px;border-radius:50%;object-fit:cover}
.account-chip button{border:0;background:transparent;cursor:pointer;font-size:14px;line-height:1;padding:4px 6px;border-radius:50%}
.account-chip button:hover{background:#e2e8f0}
