/* Reporting SaaS — shared styles, brand-matched to dynodigitalmarketing.com */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #0a0a0b;
  --bg-raised: #141416;
  --bg-card: #18181b;
  --border: #2a2a2e;
  --text: #f5f5f4;
  --text-muted: #a1a1a6;
  --text-dim: #6b6b70;
  --accent: #ff3131;
  --accent-hover: #ff5252;
  --success: #2ecc71;
  --radius: 10px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

h1 { font-size: 44px; }
h2 { font-size: 30px; }
h3 { font-size: 20px; }

p { line-height: 1.6; color: var(--text-muted); margin: 0 0 16px; }

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Nav ---- */
header.site-header {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: sticky;
  top: 0;
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(8px);
  z-index: 50;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
}

.brand img { height: 28px; display: block; }

.brand .product-tag {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--text-dim);
  border-left: 1px solid var(--border);
  padding-left: 10px;
  margin-left: 2px;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

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

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

.btn-primary { background: var(--accent); color: #0a0a0b; }
.btn-primary:hover { background: var(--accent-hover); color: #0a0a0b; }

.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--text); color: var(--text); }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---- Layout helpers ---- */
main { min-height: 60vh; }

.hero {
  padding: 90px 0 60px;
  text-align: center;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.hero h1 { max-width: 760px; margin: 0 auto 20px; }
.hero p.lead { max-width: 560px; margin: 0 auto 32px; font-size: 17px; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Cards / sections ---- */
.section { padding: 60px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

/* ---- Auth forms ---- */
.auth-shell {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
}

.auth-card h1 { font-size: 26px; text-align: center; }
.auth-card p.sub { text-align: center; font-size: 14px; margin-bottom: 28px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text-muted);
}

.field input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
}

.field small.hint { display: block; color: var(--text-dim); font-size: 12px; margin-top: 6px; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--text-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid var(--border);
}
.btn-google:hover { background: #f1f1f1; color: #1f1f1f; }

.auth-foot { text-align: center; font-size: 14px; color: var(--text-muted); margin-top: 22px; }

.alert {
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 18px;
  display: none;
}
.alert.show { display: block; }
.alert-error { background: rgba(255, 49, 49, 0.1); border: 1px solid rgba(255, 49, 49, 0.35); color: #ff8080; }
.alert-success { background: rgba(46, 204, 113, 0.1); border: 1px solid rgba(46, 204, 113, 0.35); color: #6fe3a0; }

/* ---- Pricing ---- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.plan-card.featured { border-color: var(--accent); position: relative; }
.plan-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--accent);
  color: #0a0a0b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 4px;
}

.plan-card h3 { font-size: 18px; margin-bottom: 4px; }
.plan-card .plan-desc { font-size: 13px; color: var(--text-dim); margin-bottom: 0; }
.plan-card .plan-price { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 34px; color: var(--text); }
.plan-card .plan-price span { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14px; color: var(--text-dim); }
.plan-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-muted); }
.plan-card ul li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* ---- Dashboard ---- */
.dash-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}

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

.stat-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.stat {
  flex: 1;
  min-width: 140px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.stat .stat-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.stat .stat-value { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 24px; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-active { background: rgba(46, 204, 113, 0.15); color: #6fe3a0; }
.badge-trialing { background: rgba(255, 193, 7, 0.15); color: #ffd166; }
.badge-none { background: rgba(161, 161, 166, 0.15); color: var(--text-muted); }

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.account-row:last-child { border-bottom: none; }
.account-row .acc-name { font-weight: 600; font-size: 14px; }
.account-row .acc-key { font-size: 12px; color: var(--text-dim); }

.empty-state {
  text-align: center;
  padding: 30px 10px;
  color: var(--text-dim);
  font-size: 14px;
}

.token-box {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 12.5px;
  word-break: break-all;
  color: var(--accent);
  margin: 10px 0;
}

.sidebar-card { margin-bottom: 20px; }
.sidebar-card h3 { font-size: 15px; margin-bottom: 10px; }
.sidebar-card p { font-size: 13px; margin-bottom: 14px; }

.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }

/* ---- Footer ---- */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  margin-top: 60px;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 13px; color: var(--text-dim); }

/* ---- Legal pages ---- */
.legal-body { max-width: 760px; margin: 0 auto; padding: 60px 0; }
.legal-body h2 { margin-top: 36px; font-size: 20px; }
.legal-body p, .legal-body li { color: var(--text-muted); font-size: 14.5px; }
.legal-body .updated { color: var(--text-dim); font-size: 13px; margin-bottom: 36px; }

@media (max-width: 640px) {
  h1 { font-size: 32px; }
  .hero { padding: 60px 0 40px; }
  nav.main-nav { display: none; }
}
