/* =============================================
   EmailPreview — Main Stylesheet
   Theme: Educational Light / Scholarly Modern
   ============================================= */

:root {
  --ink: #1a1a2e;
  --ink-soft: #3d3d5c;
  --ink-muted: #7a7a9a;
  --surface: #ffffff;
  --surface-alt: #f8f7ff;
  --surface-card: #ffffff;
  --border: #e8e6f0;
  --accent: #2d6cdf;
  --accent-deep: #1a4fa3;
  --accent-light: #dbeafe;
  --accent-soft: #eef4ff;
  --gold: #f5a623;
  --gold-light: #fff8eb;
  --green: #16a34a;
  --green-light: #dcfce7;
  --red: #dc2626;
  --red-light: #fee2e2;
  --teal: #0d9488;
  --teal-light: #ccfbf1;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 4px rgba(26,26,46,0.06);
  --shadow: 0 4px 20px rgba(26,26,46,0.09);
  --shadow-lg: 0 12px 48px rgba(26,26,46,0.14);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', monospace;
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

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

img { max-width: 100%; display: block; }

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

/* =====================
   TYPOGRAPHY
   ===================== */
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.section-label.light { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.15); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.section {
  padding: 96px 0;
}

/* =====================
   BUTTONS
   ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(45,108,223,0.35); }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-outline {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--border);
  font-size: 0.88rem;
  padding: 9px 18px;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-white {
  background: #fff;
  color: var(--accent-deep);
  border-color: #fff;
}
.btn-white:hover { background: var(--accent-soft); transform: translateY(-1px); }
.btn-ghost-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost-white:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-full { width: 100%; justify-content: center; }

/* =====================
   HEADER
   ===================== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
#site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 32px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.header-logo:hover { text-decoration: none; color: var(--accent); }
.logo-icon {
  width: 34px; height: 34px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.header-nav a {
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all var(--transition);
}
.header-nav a:hover { color: var(--accent); background: var(--accent-soft); text-decoration: none; }

.header-cta { display: flex; align-items: center; gap: 10px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: all var(--transition);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition);
}
.mobile-nav a:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }

/* =====================
   HERO
   ===================== */
.hero {
  position: relative;
  padding: 80px 0 0;
  overflow: hidden;
  background: linear-gradient(160deg, #f0f5ff 0%, #faf9ff 50%, #fff8f0 100%);
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(45,108,223,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,108,223,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.35;
}
.blob-1 { width: 500px; height: 500px; background: radial-gradient(circle, #c7d8ff, #e8f0ff); top: -150px; right: -100px; }
.blob-2 { width: 320px; height: 320px; background: radial-gradient(circle, #fde8c8, #fff3e0); bottom: 80px; left: -60px; }
.blob-3 { width: 200px; height: 200px; background: radial-gradient(circle, #d1fae5, #e6fff5); top: 40%; left: 40%; }

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding-bottom: 60px;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-mockup-wrap { display: none; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(45,108,223,0.2);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 700;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.stat-label { font-size: 0.78rem; color: var(--ink-muted); font-weight: 500; margin-top: 2px; display: block; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* Hero Mockup */
.hero-mockup-wrap {
  position: relative;
  z-index: 2;
  animation: floatUp 0.8s ease both;
}
@keyframes floatUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.email-inbox-mockup {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
  overflow: hidden;
  max-width: 440px;
}
.mockup-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #f7f7f9;
  border-bottom: 1px solid var(--border);
}
.mockup-dot { width: 11px; height: 11px; border-radius: 50%; }
.mockup-dot.r { background: #ff5f57; }
.mockup-dot.y { background: #febc2e; }
.mockup-dot.g { background: #28c840; }
.mockup-title { margin-left: 8px; font-size: 0.78rem; color: var(--ink-muted); font-weight: 500; }
.mockup-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
}
.mockup-row:last-child { border-bottom: none; }
.mockup-row:hover, .mockup-row.active { background: var(--accent-soft); }
.mockup-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
}
.mockup-content { flex: 1; min-width: 0; }
.mockup-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mockup-line.sender { font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.mockup-line.subject { font-size: 0.88rem; color: var(--ink); margin: 2px 0; font-weight: 500; }
.mockup-line.preview { font-size: 0.8rem; color: var(--ink-muted); }
.mockup-meta { flex-shrink: 0; }
.mockup-time { font-size: 0.72rem; color: var(--ink-muted); }

/* =====================
   PREVIEW TOOL SECTION
   ===================== */
.preview-tool-section { background: var(--surface-alt); }
.tool-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 28px;
  align-items: flex-start;
}
@media (max-width: 1000px) { .tool-layout { grid-template-columns: 1fr; } }

.tool-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}
.tab-btn {
  flex: 1;
  padding: 12px 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.tab-btn:hover { color: var(--accent); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); background: #fff; }

.tab-content { display: none; padding: 20px; }
.tab-content.active { display: block; }

.input-group { margin-bottom: 16px; }
.input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.text-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  background: #fff;
  transition: border-color var(--transition);
  outline: none;
}
.text-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45,108,223,0.1); }
textarea.text-input { resize: vertical; min-height: 80px; }

.code-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink);
  background: #fafafa;
  resize: vertical;
  min-height: 200px;
  outline: none;
  line-height: 1.6;
  transition: border-color var(--transition);
}
.code-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45,108,223,0.1); }

.char-counter {
  font-size: 0.73rem;
  color: var(--ink-muted);
  margin-top: 4px;
  text-align: right;
}
.char-counter.warn { color: var(--gold); }
.char-counter.over { color: var(--red); }

.compose-toolbar {
  display: flex;
  gap: 4px;
  padding: 8px 10px;
  background: #f8f7ff;
  border: 1.5px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.fmt-btn {
  padding: 5px 10px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 5px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-family: var(--font-body);
  transition: all var(--transition);
}
.fmt-btn:hover { background: #eee; color: var(--ink); }
.rich-editor {
  min-height: 160px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
  line-height: 1.7;
}
.rich-editor:focus { border-color: var(--accent); }

.pt-bar-wrap {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.pt-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
  width: 73%;
}

.device-toggle {
  display: flex;
  gap: 8px;
}
.device-btn {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  font-family: var(--font-body);
  transition: all var(--transition);
}
.device-btn.active, .device-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* Preview Panel */
.tool-preview-panel { min-height: 500px; display: flex; flex-direction: column; }
.preview-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}
.preview-panel-title { font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.04em; text-transform: uppercase; }
.preview-controls { display: flex; gap: 6px; }
.view-btn {
  padding: 5px 10px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.view-btn:hover, .view-btn.active { border-color: var(--accent); background: var(--accent-soft); }

.preview-frame-wrap {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  background: #edf0f7;
  min-height: 400px;
  overflow: auto;
}
.preview-device-frame {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.preview-device-frame.desktop { width: 100%; max-width: 600px; }
.preview-device-frame.tablet { width: 480px; }
.preview-device-frame.mobile {
  width: 375px;
  border: 8px solid #222;
  border-radius: 28px;
  box-shadow: var(--shadow-lg), 0 0 0 1px #555;
}

#email-preview-frame {
  width: 100%;
  min-height: 400px;
  border: none;
  display: block;
}

.preview-inbox-wrap { padding: 24px; display: none; }
.inbox-preview-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--accent-soft);
  border-radius: 10px;
  border: 1.5px solid rgba(45,108,223,0.2);
}
.ipc-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.ipc-body { flex: 1; min-width: 0; }
.ipc-sender { font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.ipc-subject { font-size: 0.9rem; color: var(--ink); font-weight: 600; margin: 2px 0; }
.ipc-preview { font-size: 0.82rem; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ipc-time { font-size: 0.72rem; color: var(--ink-muted); flex-shrink: 0; }

.preview-actions {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: #fafafa;
}

/* =====================
   HOW IT WORKS
   ===================== */
.how-section { background: #fff; }
.steps-grid {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  gap: 24px;
}
.step-card {
  flex: 1;
  min-width: 220px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: all var(--transition);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.step-num {
  position: absolute;
  top: -14px; left: 24px;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.12;
  line-height: 1;
  pointer-events: none;
}
.step-icon { font-size: 2rem; margin-bottom: 16px; }
.step-card h3 { font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.step-card p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.7; }
.step-connector { font-size: 1.4rem; color: var(--accent); opacity: 0.3; flex-shrink: 0; }
@media (max-width: 700px) { .step-connector { transform: rotate(90deg); } }

/* =====================
   FEATURES
   ===================== */
.features-section { background: var(--surface-alt); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.feature-card-lg { grid-column: span 2; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 900px) { .feature-card-lg { grid-column: span 1; } }
.feature-card-accent { background: linear-gradient(135deg, #eef4ff 0%, #f0f9ff 100%); border-color: rgba(45,108,223,0.2); }

.feature-icon { font-size: 1.7rem; margin-bottom: 14px; }
.feature-icon-lg { font-size: 2.4rem; }
.feature-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.65; }
.feature-list { margin-top: 14px; padding-left: 16px; display: flex; flex-direction: column; gap: 6px; }
.feature-list li { font-size: 0.87rem; color: var(--ink-soft); }
.feature-list li::marker { color: var(--accent); }

/* =====================
   BEST PRACTICES
   ===================== */
.bestpractices-section { background: #fff; }
.bp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
@media (max-width: 700px) { .bp-grid { grid-template-columns: 1fr; } }

.bp-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.bp-do { border-top: 4px solid var(--green); }
.bp-dont { border-top: 4px solid var(--red); }
.bp-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.do-badge { background: var(--green-light); color: var(--green); }
.dont-badge { background: var(--red-light); color: var(--red); }
.bp-card ul { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.bp-card ul li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.bp-do li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.bp-dont li::before { content: "×"; position: absolute; left: 0; color: var(--red); font-weight: 700; }

.bp-tip-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--gold-light);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 40px;
}
.tip-icon { font-size: 1.5rem; flex-shrink: 0; }
.tip-content { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.65; }
.tip-content strong { color: var(--ink); }

.bp-examples h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.examples-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.examples-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.examples-table th {
  padding: 12px 16px;
  background: var(--surface-alt);
  text-align: left;
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.examples-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
  line-height: 1.5;
  vertical-align: top;
}
.examples-table tr:last-child td { border-bottom: none; }
.examples-table tr:hover td { background: var(--accent-soft); }
.examples-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* =====================
   SUBJECT LINE PREVIEW
   ===================== */
.subjectline-section { background: var(--surface-alt); }
.sl-tool { }
.sl-input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
@media (max-width: 700px) { .sl-input-row { grid-template-columns: 1fr; } }
.sl-subject-input, .sl-preheader-input { }

.sl-clients-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 28px; }
@media (max-width: 700px) { .sl-clients-grid { grid-template-columns: 1fr; } }

.sl-client-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition);
}
.sl-client-card:hover { box-shadow: var(--shadow); }
.sl-client-logo {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 900; color: #fff; margin-bottom: 8px;
}
.gmail-logo { background: #EA4335; }
.outlook-logo { background: #0078D4; font-size: 0.9rem; }
.apple-logo { background: #1C1C1E; }
.mobile-logo { background: transparent; font-size: 1.4rem; }

.sl-client-name { font-size: 0.78rem; font-weight: 700; color: var(--ink-muted); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 12px; }
.sl-client-preview {
  background: #f8f7f9;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}
.sl-inbox-row { display: flex; align-items: flex-start; gap: 10px; }
.sl-avatar { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; }
.sl-row-content { flex: 1; min-width: 0; }
.sl-sender-name { font-size: 0.75rem; font-weight: 700; color: var(--ink); display: block; }
.sl-subject-text { font-size: 0.82rem; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline; }
.sl-preview-text { font-size: 0.82rem; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline; }
.sl-time { font-size: 0.7rem; color: var(--ink-muted); flex-shrink: 0; white-space: nowrap; }
.small-time { font-size: 0.7rem; color: var(--ink-muted); }

.outlook-style .sl-row-content { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.apple-style .sl-preview-text { display: block; }
.mobile-style .sl-subject-text, .mobile-style .sl-preview-text { display: block; }
.mobile-preview { background: #f0f0f5; border-radius: 12px; }

.sl-limit-note { font-size: 0.72rem; color: var(--ink-muted); }

/* =====================
   KNOWLEDGE / GUIDE
   ===================== */
.knowledge-section { background: #fff; }
.knowledge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 800px) { .knowledge-grid { grid-template-columns: 1fr; } }

.knowledge-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
}
.knowledge-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.kc-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.knowledge-card h3 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.knowledge-card p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.72; margin-bottom: 10px; }
.knowledge-card p:last-child { margin-bottom: 0; }
code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 2px 6px;
  border-radius: 4px;
}
.code-snippet {
  background: #1a1a2e;
  color: #cdd9ff;
  padding: 14px 16px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  overflow-x: auto;
  margin: 12px 0;
}
.code-snippet code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

/* =====================
   FAQ
   ===================== */
.faq-section { background: var(--surface-alt); }
.faq-container { max-width: 780px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: all var(--transition);
  gap: 12px;
}
.faq-q:hover { background: var(--accent-soft); color: var(--accent); }
.faq-q.open { color: var(--accent); background: var(--accent-soft); }
.faq-arrow { font-size: 1rem; flex-shrink: 0; transition: transform var(--transition); }
.faq-q.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), padding 0.2s;
  padding: 0 22px;
}
.faq-a.open {
  max-height: 400px;
  padding: 0 22px 18px;
}
.faq-a p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.72; }
.faq-a code {
  font-family: var(--font-mono);
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.82em;
}

/* =====================
   CTA
   ===================== */
.cta-section {
  background: linear-gradient(135deg, #1a3a8f 0%, #2d6cdf 50%, #1a6aba 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-blob {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent);
  border-radius: 50%;
  top: -200px; right: -150px;
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}
.cta-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.cta-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.cta-note { font-size: 0.82rem; color: rgba(255,255,255,0.55); letter-spacing: 0.02em; }

/* =====================
   FOOTER
   ===================== */
#site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
}
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; gap: 28px; } }

.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-bottom: 14px;
}
.footer-logo:hover { text-decoration: none; color: var(--accent-light); }
.footer-desc { font-size: 0.88rem; line-height: 1.7; max-width: 260px; }
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: rgba(255,255,255,0.45); transition: color var(--transition); }
.footer-bottom-links a:hover { color: #fff; text-decoration: none; }

/* =====================
   TOAST NOTIFICATION
   ===================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.3s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }

/* =====================
   SCROLL ANIMATIONS
   ===================== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* =====================
   RESPONSIVE ADJUSTMENTS
   ===================== */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .header-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .hero { min-height: auto; padding: 60px 0 40px; }
  .section-subtitle { margin-bottom: 32px; }
  .preview-actions { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .tool-preview-panel { min-height: 300px; }
  .hero-stats { gap: 14px; }
  .stat-num { font-size: 1.3rem; }
}

/* =====================
   UTILITY
   ===================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
