:root {
  --bg: #f8fafc; --surface: #ffffff; --border: #e2e8f0; --border-subtle: #f1f5f9;
  --text: #0f172a; --text-muted: #64748b; --green: #16a34a; --green-dark: #15803d;
  --green-bg: #dcfce7; --green-border: #86efac; --teal: #0d9488; --amber-bg: #fef3c7;
  --amber-text: #92400e; --red: #dc2626; --red-bg: #fee2e2; --primary: #0f172a; --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }
.landing-body { background: #ffffff; }
.landing-nav { border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 30; }
.landing-nav-inner { max-width: 1160px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-wordmark { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--text-muted); }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn-primary { color: #ffffff; }
.nav-links a.btn-secondary { color: var(--text); }
.hero { padding: 72px 24px 64px; background: radial-gradient(circle at top, #f0fdf4 0%, #ffffff 62%); text-align: center; }
.hero-inner { max-width: 920px; margin: 0 auto; }
.hero-pill { display: inline-block; background: var(--green-bg); color: var(--green-dark); border: 1px solid var(--green-border); font-size: 12.5px; font-weight: 700; padding: 5px 14px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 18px; }
.hero h1 span { color: var(--green); }
.hero-sub { max-width: 680px; margin: 0 auto 28px; font-size: 18px; color: #475569; }
.hero-cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.btn-lg { padding: 13px 24px !important; font-size: 15px !important; text-decoration: none; display: inline-flex; align-items: center; }
.gmail-mockup { background: #ffffff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 20px 50px rgba(15,23,42,0.08); overflow: hidden; text-align: left; }
.mockup-bar { background: #f8fafc; border-bottom: 1px solid var(--border); padding: 10px 16px; display: flex; align-items: center; gap: 7px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #fca5a5; } .dot.yellow { background: #fcd34d; } .dot.green { background: #86efac; }
.mockup-title { margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.mockup-row { display: grid; grid-template-columns: 180px 1fr 115px; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--border-subtle); font-size: 13.5px; }
@media (max-width: 720px) { .mockup-row { grid-template-columns: 1fr; gap: 4px; } .nav-links a:not(.btn-primary):not(.btn-secondary) { display: none; } }
.mockup-recip { font-weight: 600; color: var(--text); }
.mockup-subj { display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mockup-snippet { color: var(--text-muted); }
.mockup-time { text-align: right; font-size: 12px; color: var(--green-dark); font-weight: 600; }
.features-section, .pricing-section { padding: 72px 24px; }
.features-section { background: #f8fafc; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-inner h2 { text-align: center; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.section-sub { text-align: center; max-width: 620px; margin: 0 auto 40px; color: var(--text-muted); font-size: 16px; }
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 38px; }
@media (max-width: 860px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card { background: #ffffff; border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 12px; border-radius: 9px; background: var(--green-bg); color: var(--green-dark); font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 24px; }
@media (max-width: 760px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card { background: #ffffff; border: 1px solid var(--border); border-radius: 16px; padding: 32px 28px; position: relative; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--green); box-shadow: 0 16px 40px rgba(22,163,74,0.1); }
.popular-ribbon { position: absolute; top: -12px; left: 24px; background: var(--green); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 11px; border-radius: 999px; }
.price-tier { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.price-amount { font-size: 40px; font-weight: 800; line-height: 1.1; }
.price-amount span { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.price-note { font-size: 13px; color: var(--text-muted); margin-top: 4px; margin-bottom: 20px; }
.price-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; flex: 1; font-size: 14px; color: #334155; }
.price-card a { text-align: center; text-decoration: none; }
.landing-footer { border-top: 1px solid var(--border); padding: 28px 24px; background: #f8fafc; font-size: 13.5px; color: var(--text-muted); }
.footer-inner { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.legal-container { max-width: 780px; margin: 0 auto; padding: 48px 24px 80px; }
.legal-container h1 { font-size: 32px; margin-bottom: 8px; }
.legal-container h2 { font-size: 20px; margin-top: 28px; margin-bottom: 10px; }
.legal-container p, .legal-container li { color: #334155; font-size: 15px; margin-bottom: 12px; }
.legal-container ul { padding-left: 22px; }
.auth-overlay { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 34px 30px; max-width: 430px; width: 100%; box-shadow: 0 10px 30px rgba(15,23,42,0.06); text-align: center; }
.brand-badge-link { text-decoration: none; }
.auth-card h1 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.auth-card p { color: var(--text-muted); font-size: 13.5px; margin-bottom: 18px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f1f5f9; padding: 4px; border-radius: 9px; margin-bottom: 16px; }
.auth-tab { border: none; background: transparent; padding: 8px 10px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.auth-tab.active { background: #ffffff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.auth-card input { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; margin-bottom: 10px; outline: none; }
.auth-card input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,163,74,0.14); }
.auth-error { color: var(--red); font-size: 13px; margin-bottom: 10px; }
.auth-footer-note { margin-top: 14px; font-size: 12px; color: var(--text-muted); }
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--green-bg); color: var(--green); font-weight: 800; font-size: 16px; letter-spacing: -2px; display: flex; align-items: center; justify-content: center; }
.app-title { font-size: 17px; font-weight: 700; line-height: 1.2; }
.app-subtitle { font-size: 12px; color: var(--text-muted); }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.plan-pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #eef2ff; color: #4338ca; }
.plan-pill.pro, .plan-pill.lifetime { background: var(--green-bg); color: var(--green-dark); }
.plan-pill.free { background: var(--amber-bg); color: var(--amber-text); }
.trial-banner { background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%); color: #f8fafc; padding: 10px 28px; }
.trial-banner-inner { max-width: 1220px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.trial-banner-actions { display: flex; gap: 8px; }
.btn-upgrade { background: var(--green); color: #ffffff; border: none; border-radius: 7px; padding: 7px 13px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.btn-upgrade-outline { background: rgba(255,255,255,0.12); color: #ffffff; border: 1px solid rgba(255,255,255,0.28); border-radius: 7px; padding: 7px 13px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.billing-alert { background: var(--green-bg); border: 1px solid var(--green-border); color: var(--green-dark); padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 13.5px; font-weight: 600; }
.sync-pill { font-size: 12px; font-weight: 600; color: var(--green); background: var(--green-bg); padding: 4px 10px; border-radius: 999px; }
.btn-primary { background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 10px 16px; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-primary:hover { opacity: 0.92; }
.full-width { width: 100%; }
.btn-secondary { background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 7px 13px; font-size: 13px; font-weight: 500; cursor: pointer; }
.btn-secondary:hover { background: #f1f5f9; }
.btn-ghost { background: transparent; border: none; color: var(--text-muted); padding: 7px 10px; font-size: 13px; cursor: pointer; }
.btn-ghost:hover { color: var(--text); }
.container { max-width: 1220px; margin: 0 auto; padding: 24px 28px 60px; }
.accounts-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.account-pill { background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: all 0.15s ease; }
.account-pill.active { background: var(--primary); border-color: var(--primary); color: #ffffff; }
.account-pill .pill-count { font-size: 11px; background: rgba(148,163,184,0.2); padding: 1px 7px; border-radius: 999px; }
.account-pill.active .pill-count { background: rgba(255,255,255,0.2); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
@media (max-width: 840px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.stat-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 6px; }
.stat-value-row { display: flex; align-items: baseline; justify-content: space-between; }
.stat-value { font-size: 28px; font-weight: 700; line-height: 1.15; }
.text-green { color: var(--green); } .text-red { color: var(--red); }
.stat-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.filter-tabs { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 2px; }
.filter-tab { border: none; background: transparent; color: var(--text-muted); font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 7px; cursor: pointer; }
.filter-tab.active { background: var(--primary); color: #fff; }
.search-box input { width: 300px; max-width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 8px 13px; font-size: 13px; outline: none; }
.table-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table-responsive { overflow-x: auto; }
.emails-table { width: 100%; border-collapse: collapse; text-align: left; }
.emails-table th { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); background: #f8fafc; padding: 11px 16px; border-bottom: 1px solid var(--border); }
.emails-table td { padding: 13px 16px; border-bottom: 1px solid var(--border-subtle); font-size: 13.5px; vertical-align: middle; }
.email-row { cursor: pointer; transition: background 0.12s ease; }
.email-row:hover { background: #f8fafc; }
.tracker-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-weight: 700; font-size: 13px; user-select: none; }
.tracker-badge.delivered { background: #f1f5f9; color: #475569; }
.tracker-badge.delivered .chk-1 { color: var(--teal); }
.tracker-badge.delivered .chk-2 { color: #cbd5e1; margin-left: -4px; }
.tracker-badge.opened { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.tracker-badge.opened .chk-1 { color: var(--green); }
.tracker-badge.opened .chk-2 { color: var(--green); margin-left: -4px; }
.tracker-badge .open-num { font-size: 12px; font-weight: 800; margin-left: 2px; }
.tracker-badge.bounced { background: var(--red-bg); color: var(--red); font-size: 12px; }
.recipient-line { font-weight: 600; color: var(--text); margin-bottom: 2px; }
.subject-line { color: var(--text-muted); font-size: 13px; }
.sender-tag { display: inline-block; font-size: 12px; color: #334155; background: #f1f5f9; padding: 3px 9px; border-radius: 6px; max-width: 205px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.time-cell { font-size: 12.5px; color: var(--text-muted); }
.time-cell strong { display: block; color: var(--text); font-weight: 600; }
.delete-btn { background: transparent; border: none; color: #94a3b8; font-size: 15px; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.delete-btn:hover { color: var(--red); background: var(--red-bg); }
.details-row td { background: #f8fafc; padding: 12px 22px 16px 161px; }
.opens-timeline { display: flex; flex-direction: column; gap: 6px; }
.opens-timeline-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 4px; }
.open-event-item { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: #334155; }
.open-event-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.empty-state { text-align: center; padding: 44px 20px !important; color: var(--text-muted); }