/* ============================================
   Drafted Landing Page — trydrafted.app
   Dark theme matching the app aesthetic
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0e1a;
  --bg-card: #111827;
  --bg-card-hover: #1a2236;
  --bg-surface: #0d1220;
  --border: rgba(255,255,255,0.08);
  --border-light: rgba(255,255,255,0.12);
  --text: #e2e8f0;
  --text-muted: #8b95a8;
  --text-dim: #5a6478;
  --accent: #4A9EF5;
  --accent-glow: rgba(74,158,245,0.15);
  --accent-hover: #3b8de0;
  --green: #34d399;
  --amber: #fbbf24;
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  background: linear-gradient(135deg, #4A9EF5, #3b7dd8);
  color: #fff;
  text-decoration: none;
}
.btn:hover { background: linear-gradient(135deg, #3b8de0, #2d6bc4); color: #fff; transform: translateY(-1px); }
.btn-sm { padding: 7px 18px; font-size: 14px; border-radius: 8px; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 12px; }
.btn-xl { padding: 16px 40px; font-size: 17px; border-radius: 14px; }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-light);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.nav-logo:hover { color: var(--text); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { color: #fff; }
.nav-links .btn:hover { color: #fff; }

/* --- Hero --- */
.hero {
  padding: 160px 0 80px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--accent-glow);
  border: 1px solid rgba(74,158,245,0.2);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, #4A9EF5, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 60px;
}
.hero-note {
  font-size: 13px;
  color: var(--text-dim);
}

/* Hero Visual — Gmail Mock */
.hero-visual {
  max-width: 640px;
  margin: 0 auto;
}
.mock-window {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
}
.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.mock-dot { width: 12px; height: 12px; border-radius: 50%; }
.mock-dot.red { background: #ff5f57; }
.mock-dot.yellow { background: #febc2e; }
.mock-dot.green { background: #28c840; }
.mock-title { margin-left: 12px; font-size: 13px; color: var(--text-dim); }
.mock-body { padding: 4px; }
.mock-email {
  padding: 20px;
  border-radius: 12px;
  transition: background 0.2s;
}
.mock-email:not(.dimmed):hover { background: rgba(255,255,255,0.02); }
.mock-email.dimmed { opacity: 0.4; padding: 16px 20px; }
.mock-email-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.mock-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4A9EF5, #3b7dd8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
}
.mock-from { font-weight: 600; font-size: 14px; }
.mock-subject { font-size: 13px; color: var(--text-muted); }
.mock-badge {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--accent-glow);
  border: 1px solid rgba(74,158,245,0.2);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mock-email-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 48px;
}

/* --- Trust Bar --- */
.trust-bar {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}
.trust-items {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}
.trust-item svg { color: var(--green); flex-shrink: 0; }

/* --- Features --- */
.features {
  padding: 100px 0;
}
.features h2, .how-it-works h2, .pricing h2, .download h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 480px;
  margin: 0 auto 48px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- How It Works --- */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps {
  max-width: 520px;
  margin: 0 auto;
}
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-glow);
  border: 1px solid rgba(74,158,245,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: var(--accent);
  flex-shrink: 0;
}
.step-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}
.step-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.step-line {
  width: 2px;
  height: 32px;
  background: var(--border-light);
  margin-left: 19px;
}

/* --- Pricing --- */
.pricing {
  padding: 100px 0;
}

/* Purchase Tier Cards (Step 1) */
.purchase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto 64px;
}
.purchase-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
}
.purchase-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow), 0 0 0 1px rgba(74,158,245,0.15);
}
.price-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.purchase-tier {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.purchase-amount {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 4px;
}
.purchase-dollar {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.purchase-cents {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-muted);
}
.purchase-desc {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.purchase-features {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}
.purchase-features li {
  padding: 7px 0;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.purchase-features li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(52,211,153,0.1);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 6l2.5 2.5 4.5-5' stroke='%2334d399' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}
.purchase-card .btn { width: 100%; justify-content: center; }

/* Provider Section (Step 2) */
.provider-section {
  max-width: 900px;
  margin: 0 auto;
}
.provider-section-header {
  text-align: center;
  margin-bottom: 36px;
}
.provider-step-label {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.provider-section-header h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}
.provider-section-header p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}
.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.provider-tier-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.provider-tier-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}
.provider-tier-card.recommended {
  border-color: var(--green);
  box-shadow: 0 0 40px rgba(52,211,153,0.1), 0 0 0 1px rgba(52,211,153,0.1);
}
.provider-tier-rec {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 14px;
  border-radius: 20px;
  background: var(--green);
  color: #0a0e1a;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.provider-tier-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  width: fit-content;
}
.provider-tier-badge.intern {
  background: rgba(251,191,36,0.1);
  color: var(--amber);
  border: 1px solid rgba(251,191,36,0.2);
}
.provider-tier-badge.associate {
  background: rgba(74,158,245,0.1);
  color: var(--accent);
  border: 1px solid rgba(74,158,245,0.2);
}
.provider-tier-badge.executive {
  background: rgba(52,211,153,0.1);
  color: var(--green);
  border: 1px solid rgba(52,211,153,0.2);
}
.provider-tier-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.provider-tier-cost {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.provider-tier-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  font-style: italic;
}
.provider-tier-features {
  list-style: none;
  margin-bottom: 20px;
  flex: 1;
}
.provider-tier-features li {
  padding: 5px 0;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.provider-tier-features li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(52,211,153,0.1);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 6l2.5 2.5 4.5-5' stroke='%2334d399' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}
.provider-tier-card .btn { width: 100%; justify-content: center; margin-top: auto; }
.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 40px;
}

/* --- Download CTA --- */
.download {
  padding: 100px 0;
  text-align: center;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}
.download-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.download-meta {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--text-dim);
}

/* --- Footer --- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links a:not(.btn) { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .purchase-grid { grid-template-columns: 1fr; max-width: 400px; }
  .provider-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .trust-items { gap: 20px; justify-content: flex-start; }
  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .mock-email-body { padding-left: 0; margin-top: 8px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .download-meta { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .feature-card { padding: 20px; }
  .purchase-card { padding: 24px; }
  .provider-tier-card { padding: 20px; }
}
