/* MailCue Landing — Charter palette */
:root {
  --bg: #f4f1ea;
  --panel: #fffdf7;
  --ink: #2a2620;
  --muted: #6e655a;
  --line: #e6dfd2;
  --accent: #1f6b3a;
  --amber: #c9a064;
  --amber-ink: #6b4d12;
  --amber-bg: #fcf6e6;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(42,38,32,0.09);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, system-ui, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

/* Layout */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo img { width: 28px; height: 28px; border-radius: 6px; }
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* Hero */
.hero {
  text-align: center;
  padding: 80px 24px 64px;
}
.hero-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 620px;
  margin: 0 auto 16px;
}
.hero .subhead {
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.5;
}
.cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  text-decoration: none;
}
.btn:hover { opacity: 0.88; text-decoration: none; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.hero-note {
  font-size: 13px;
  color: var(--muted);
}

/* How it works */
.section {
  padding: 64px 24px;
  border-top: 1px solid var(--line);
}
.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}
.section h2 {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.section-intro {
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 40px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.step-num {
  width: 32px;
  height: 32px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.step p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.45;
}

/* Why different */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.why-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.why-icon {
  font-size: 24px;
  margin-bottom: 12px;
}
.why-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.why-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

/* Screenshots */
.screenshots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.screenshot-card {
  flex: 0 0 auto;
  width: 280px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.screenshot-card img {
  width: 100%;
  display: block;
}
.screenshot-caption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* Install */
.install-steps {
  counter-reset: install;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
}
.install-steps li {
  counter-increment: install;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.install-steps li::before {
  content: counter(install);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}
.install-steps li p {
  font-size: 16px;
  line-height: 1.45;
}
.install-steps li p strong { color: var(--ink); }
.install-steps li code {
  background: var(--line);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: "SF Mono", "Menlo", monospace;
}

/* Beta access */
.beta-box {
  background: var(--amber-bg);
  border: 1.5px solid var(--amber);
  border-radius: var(--radius);
  padding: 28px 32px;
  max-width: 560px;
}
.beta-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--amber-ink);
}
.beta-box p {
  font-size: 15px;
  color: var(--amber-ink);
  margin-bottom: 16px;
  line-height: 1.5;
}
.beta-box .btn-amber {
  background: var(--amber-ink);
  color: var(--bg);
  padding: 12px 22px;
  font-size: 14px;
  border-radius: 8px;
  display: inline-flex;
  text-decoration: none;
  font-weight: 600;
}
.beta-box .btn-amber:hover { opacity: 0.85; text-decoration: none; }

/* Pouchy figure */
.pouchy-figure {
  text-align: center;
  padding: 32px 0 0;
}
.pouchy-figure img {
  width: 120px;
  opacity: 0.85;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  font-size: 13px;
  color: var(--muted);
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); text-decoration: none; }
.footer-spacer { flex: 1; min-width: 40px; }
.footer-right { font-size: 12px; color: var(--muted); }

/* Divider */
hr.subtle {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

/* Prose pages (privacy, install) */
.prose {
  max-width: 660px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.prose h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.prose .meta { font-size: 13px; color: var(--muted); margin-bottom: 36px; }
.prose h2 { font-size: 19px; font-weight: 700; margin: 32px 0 10px; }
.prose h3 { font-size: 16px; font-weight: 600; margin: 24px 0 8px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol {
  margin: 0 0 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prose li { font-size: 16px; line-height: 1.5; }
.prose code {
  background: var(--line);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: "SF Mono", "Menlo", monospace;
}
.prose .callout {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 15px;
}
.prose .warning {
  background: var(--amber-bg);
  border: 1px solid var(--amber);
  border-radius: 6px;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 15px;
  color: var(--amber-ink);
}

/* Responsive */
@media (max-width: 600px) {
  .hero { padding: 48px 16px 40px; }
  .hero h1 { font-size: 26px; }
  .hero .subhead { font-size: 16px; }
  .section { padding: 48px 16px; }
  .steps { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .screenshots { gap: 12px; }
  .screenshot-card { width: 240px; }
  .footer { flex-direction: column; align-items: flex-start; }
}
