/* ── marketing.css ─────────────────────────────────────────
   Landing page + auth page styles. Self-contained — no dependency
   on main.css. Uses same design tokens as the app. */

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

:root {
  --navy:        #0f172a;
  --navy-dark:   #080e1a;
  --navy-mid:    #1e2d45;
  --blue:        #2563eb;
  --blue-dark:   #1d4ed8;
  --blue-light:  #93c5fd;
  --blue-dim:    rgba(37,99,235,.1);
  --green:       #16a34a;
  --white:       #ffffff;
  --off-white:   #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-400:    #94a3b8;
  --gray-600:    #475569;
  --text-primary:   #0f172a;
  --text-secondary: #334155;
  --text-muted:     #64748b;
  --border:      #e2e8f0;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,.09);
  --shadow-lg:   0 20px 48px rgba(0,0,0,.14);
  --font-sans:   'Barlow', system-ui, sans-serif;
  --font-display:'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans); font-size: 16px;
  color: var(--text-primary); background: var(--white);
  line-height: 1.5; -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  border-radius: var(--radius-md); border: 2px solid transparent;
  padding: 10px 22px; cursor: pointer; transition: all .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.btn-outline { background: transparent; color: var(--text-primary); border-color: var(--border); }
.btn-outline:hover { background: var(--off-white); }
.btn-lg { font-size: 16px; padding: 13px 30px; }
.btn-full { width: 100%; justify-content: center; }
.btn-google {
  width: 100%; justify-content: center;
  background: var(--white); border: 1.5px solid var(--border);
  color: var(--text-primary); font-size: 14px; padding: 11px;
  border-radius: var(--radius-md);
}
.btn-google:hover { background: var(--off-white); }

/* ── Nav ────────────────────────────────────────────────── */
.mktg-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 32px; transition: background .25s, box-shadow .25s;
}
.mktg-nav.scrolled {
  background: rgba(15,23,42,.96); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.mktg-nav-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.mktg-logo { display: flex; align-items: center; gap: 10px; }
.mktg-logo-icon {
  width: 36px; height: 36px; background: var(--blue);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.mktg-logo-icon svg { width: 20px; height: 20px; }
.mktg-wordmark {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: #fff; letter-spacing: .02em;
}
.mktg-wordmark span { color: var(--blue-light); }
.mktg-nav-links { display: flex; align-items: center; gap: 6px; }
.mktg-nav-link {
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.72);
  padding: 7px 14px; border-radius: var(--radius-sm); transition: color .15s;
}
.mktg-nav-link:hover { color: #fff; }
.mktg-sep { width: 1px; height: 20px; background: rgba(255,255,255,.15); margin: 0 6px; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: var(--navy); padding: 152px 32px 72px;
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(37,99,235,.18) 0%, transparent 70%);
}
.hero-inner { max-width: 840px; margin: 0 auto; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(37,99,235,.18); color: var(--blue-light);
  border: 1px solid rgba(37,99,235,.4); border-radius: 99px;
  font-size: 13px; font-weight: 600; letter-spacing: .03em;
  padding: 6px 16px; margin-bottom: 28px;
}
.hero-badge::before { content: '●'; font-size: 7px; color: var(--blue-light); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(46px, 6.5vw, 76px);
  font-weight: 800; color: #fff; line-height: 1.04;
  letter-spacing: -.015em; margin-bottom: 22px;
}
.hero h1 em { color: var(--blue-light); font-style: normal; }
.hero-sub {
  font-size: clamp(16px, 2vw, 19px); color: rgba(255,255,255,.62);
  max-width: 600px; margin: 0 auto 38px; line-height: 1.65;
}
.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap; margin-bottom: 64px;
}
.hero-proof { font-size: 13px; color: rgba(255,255,255,.38); margin-top: 16px; }

/* App mockup */
.hero-mockup {
  max-width: 960px; margin: 0 auto;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 48px 96px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.07);
  background: #141f35; text-align: left;
}
.mock-chrome {
  background: #0e1929; padding: 11px 16px;
  display: flex; align-items: center; gap: 8px;
}
.mock-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.mock-dot.r { background: #ff5f57; }
.mock-dot.y { background: #febc2e; }
.mock-dot.g { background: #28c840; }
.mock-url-bar {
  flex: 1; max-width: 280px; margin-left: 12px;
  background: rgba(255,255,255,.06); border-radius: 5px;
  padding: 4px 12px; font-family: var(--font-mono); font-size: 11px;
  color: rgba(255,255,255,.3);
}
.mock-app-nav {
  height: 52px; background: var(--navy-mid);
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; padding: 0 20px; gap: 20px;
}
.mock-logo-block { display: flex; align-items: center; gap: 8px; }
.mock-logo-sq { width: 28px; height: 28px; background: var(--blue); border-radius: 6px; }
.mock-logo-text { width: 96px; height: 12px; background: rgba(255,255,255,.2); border-radius: 3px; }
.mock-link { height: 9px; border-radius: 3px; background: rgba(255,255,255,.12); }
.mock-link.active { background: var(--blue); }
.mock-spacer { flex: 1; }
.mock-avatar { width: 30px; height: 30px; background: var(--blue); border-radius: 50%; }
.mock-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.mock-ph { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.mock-ph-title { width: 140px; height: 16px; background: rgba(255,255,255,.18); border-radius: 4px; }
.mock-ph-btn { width: 100px; height: 30px; background: var(--blue); border-radius: 7px; opacity: .85; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-stat {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px; padding: 13px;
}
.mock-stat-label { width: 70%; height: 7px; background: rgba(255,255,255,.12); border-radius: 3px; margin-bottom: 10px; }
.mock-stat-val { width: 50%; height: 20px; background: rgba(37,99,235,.5); border-radius: 4px; }
.mock-table-wrap {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px; overflow: hidden;
}
.mock-thead { background: rgba(255,255,255,.06); padding: 9px 14px; display: flex; gap: 0; }
.mock-th { height: 7px; background: rgba(255,255,255,.15); border-radius: 3px; flex: 1; margin-right: 12px; }
.mock-th:last-child { margin-right: 0; flex: 0 0 60px; }
.mock-tr {
  padding: 11px 14px; display: flex; align-items: center; gap: 0;
  border-top: 1px solid rgba(255,255,255,.05);
}
.mock-td { height: 9px; background: rgba(255,255,255,.09); border-radius: 3px; flex: 1; margin-right: 12px; }
.mock-td:last-child { margin-right: 0; flex: 0 0 60px; background: rgba(37,99,235,.35); }
.mock-td.g { background: rgba(22,163,74,.35); }
.mock-td.w { flex: 2; }

/* ── Section scaffold ───────────────────────────────────── */
.section-wrap { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.section-eyebrow {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--blue); margin-bottom: 12px;
}
.section-h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800; color: var(--navy); line-height: 1.08;
  letter-spacing: -.015em; margin-bottom: 14px;
}
.section-lead {
  font-size: 17px; color: var(--text-muted); max-width: 540px;
  line-height: 1.65; margin-bottom: 52px;
}

/* ── Features ───────────────────────────────────────────── */
.features-section { padding: 96px 0; background: var(--white); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.feat-card {
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 30px;
  transition: box-shadow .2s, transform .2s;
}
.feat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feat-icon {
  width: 46px; height: 46px; background: var(--blue-dim);
  border-radius: var(--radius-md); margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
}
.feat-icon svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feat-card h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: var(--navy); margin-bottom: 8px;
}
.feat-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.65; }

/* ── Pricing ────────────────────────────────────────────── */
.pricing-section { padding: 96px 0; background: var(--off-white); }
.billing-toggle {
  display: inline-flex; background: var(--white);
  border: 1.5px solid var(--border); border-radius: 99px;
  padding: 4px; margin-bottom: 48px;
}
.toggle-opt {
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  padding: 9px 24px; border-radius: 99px; border: none;
  background: transparent; color: var(--text-muted);
  cursor: pointer; transition: all .2s;
  display: flex; align-items: center; gap: 8px;
}
.toggle-opt.active { background: var(--navy); color: #fff; }
.save-pill {
  background: var(--green); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  padding: 2px 8px; border-radius: 99px;
}
.pricing-access-note {
  font-size: 15px; font-weight: 600; color: var(--blue);
  margin-bottom: 36px;
}
.pricing-cards {
  display: flex; gap: 28px; justify-content: center; align-items: flex-start; flex-wrap: wrap;
}
.pricing-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 44px;
  flex: 1; max-width: 440px; min-width: 280px;
  box-shadow: var(--shadow-sm); position: relative;
}
.pricing-card--featured {
  border: 2px solid var(--blue);
  box-shadow: 0 8px 40px rgba(37,99,235,.15), var(--shadow-lg);
}
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 18px; border-radius: 99px; white-space: nowrap;
}
.plan-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--blue); margin-bottom: 20px;
}
.plan-price { display: flex; align-items: flex-end; gap: 2px; margin-bottom: 4px; }
.price-dollar { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--gray-400); padding-bottom: 12px; }
.price-amount { font-family: var(--font-display); font-size: 62px; font-weight: 800; color: var(--navy); line-height: 1; }
.price-mo { font-size: 17px; color: var(--text-muted); padding-bottom: 10px; }
.price-note { font-size: 13px; color: var(--text-muted); margin-bottom: 30px; min-height: 20px; }
.plan-cta { margin-bottom: 10px; }
.no-cc { font-size: 12px; color: var(--text-muted); text-align: center; margin-bottom: 28px; }
.plan-divider { height: 1px; background: var(--border); margin-bottom: 26px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text-secondary); }
.chk {
  width: 20px; height: 20px; flex-shrink: 0; background: #dcfce7;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.chk svg { width: 11px; height: 11px; stroke: var(--green); fill: none; stroke-width: 2.5; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-section { padding: 80px 0; background: var(--white); }
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  font-family: var(--font-sans); font-size: 16px; font-weight: 600;
  color: var(--navy); padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; gap: 16px;
}
.faq-q svg { flex-shrink: 0; transition: transform .2s; color: var(--text-muted); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  font-size: 14.5px; color: var(--text-muted); line-height: 1.7;
  padding-bottom: 20px; display: none;
}
.faq-item.open .faq-a { display: block; }

/* ── CTA band ───────────────────────────────────────────── */
.cta-band { padding: 96px 32px; background: var(--navy); text-align: center; }
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 800; color: #fff; letter-spacing: -.01em; margin-bottom: 14px;
}
.cta-band p { font-size: 18px; color: rgba(255,255,255,.6); margin-bottom: 36px; }
.cta-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────── */
.mktg-footer {
  background: var(--navy-dark); padding: 36px 40px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-wordmark { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: rgba(255,255,255,.6); }
.footer-wordmark span { color: var(--blue-light); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.38); transition: color .15s; }
.footer-links a:hover { color: rgba(255,255,255,.75); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.28); }

/* ── Auth pages (login / signup) ────────────────────────── */
.auth-body {
  background: var(--navy); min-height: 100vh;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.auth-wrap { width: 100%; max-width: 460px; }
.auth-brand {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-bottom: 32px;
}
.auth-logo {
  width: 40px; height: 40px; background: var(--blue); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.auth-logo svg { width: 22px; height: 22px; fill: white; }
.auth-wordmark { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: #fff; letter-spacing: .02em; }
.auth-wordmark span { color: var(--blue-light); }
.auth-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.auth-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.auth-trial-note {
  background: var(--blue-dim); border: 1px solid rgba(37,99,235,.2);
  border-radius: var(--radius-md); padding: 11px 16px;
  font-size: 13px; color: var(--blue); margin-bottom: 22px;
  display: flex; align-items: center; gap: 8px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); font-family: var(--font-sans); font-size: 14.5px;
  color: var(--text-primary); background: var(--white); transition: border-color .15s;
}
.form-input:focus { outline: none; border-color: var(--blue); }
.form-input.is-error { border-color: #dc2626; }
.form-hint { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 20px 0;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 12px; color: var(--text-muted); }
.auth-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #dc2626;
  border-radius: var(--radius-md); padding: 10px 14px;
  font-size: 13px; margin-bottom: 16px; display: none;
}
.auth-error.show { display: block; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 13.5px; color: var(--text-muted); }
.auth-footer a { color: var(--blue); font-weight: 600; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 128px 20px 56px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .mktg-nav { padding: 0 20px; }
  .mktg-nav-links .mktg-nav-link:not(.keep) { display: none; }
  .section-wrap { padding: 0 20px; }
  .features-section, .pricing-section, .faq-section { padding: 64px 20px; }
  .pricing-card { padding: 28px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .mktg-footer { flex-direction: column; padding: 28px 20px; }
}
