/* ==========================================================================
   Mendly Landing — shared styles
   Tokens mirror DESIGN_SYSTEM.md exactly.
   ========================================================================== */

:root {
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --surface-muted: #EFF2F6;
  --text-primary: #1F2933;
  --text-secondary: #5C6773;
  --text-tertiary: #8C95A1;
  --brand-blue: #2F80ED;
  --brand-mint: #42CBA5;
  --brand-blue-soft: #E6F0FE;
  --brand-mint-soft: #E6F8F1;
  --severity-medium: #F2B84B;
  --severity-medium-bg: #FDF2DD;
  --severity-medium-text: #A6741B;
  --severity-low-bg: #E6F8F1;
  --severity-low-text: #1F6B53;
  --border: #E5E7EB;
  --divider: #EEF0F3;
  --shadow-card: 0 2px 8px rgba(31, 41, 51, 0.04);
  --shadow-action: 0 4px 16px rgba(47, 128, 237, 0.18);
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-pill: 999px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ===== Container ===== */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  padding: 24px 0;
  position: sticky;
  top: 0;
  background: rgba(247, 248, 250, 0.8);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--divider);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--r-md);
}
.nav a:hover {
  background: var(--surface-muted);
  text-decoration: none;
  color: var(--text-primary);
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 100px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-mint) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
}
.hero .tagline {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-blue);
  margin-bottom: 16px;
}

/* App Store badge */
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px 14px 22px;
  background: #1F2933;
  color: white;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.12s ease, background 0.12s ease;
}
.app-store-btn:hover {
  background: #000;
  transform: translateY(-1px);
  text-decoration: none;
}
.app-store-btn .as-icon { width: 28px; height: 28px; }
.app-store-btn .as-text { display: flex; flex-direction: column; line-height: 1; }
.app-store-btn .as-text small { font-size: 11px; font-weight: 400; opacity: 0.85; margin-bottom: 3px; }

/* Hero phone mock (right column) */
.hero-mock {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-mock-frame {
  width: 320px;
  background: white;
  border-radius: 38px;
  padding: 14px;
  box-shadow: 0 20px 60px rgba(31, 41, 51, 0.12), 0 0 0 8px #1F2933, 0 0 0 9px #2A3441;
  position: relative;
}
.hero-mock-screen {
  background: var(--bg);
  border-radius: 26px;
  padding: 28px 16px 16px;
  height: 580px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}
.section-narrow {
  padding: 60px 0;
}
.section-muted {
  background: var(--surface);
}
.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-blue);
  text-align: center;
  margin-bottom: 12px;
}
.section h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.6px;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.section .section-lead {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
  line-height: 1.55;
}

/* ===== Feature cards ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  padding: 32px 28px;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon.blue { background: var(--brand-blue-soft); color: var(--brand-blue); }
.feature-icon.mint { background: var(--brand-mint-soft); color: var(--brand-mint); }
.feature-icon.amber { background: var(--severity-medium-bg); color: var(--severity-medium-text); }
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ===== How it works steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}
.step {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  text-align: center;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: white;
  font-weight: 700;
  margin-bottom: 14px;
  font-size: 16px;
}
.step h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.step p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ===== Sample report card ===== */
.sample-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.sample-text h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.4px;
}
.sample-text p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
}
.sample-text .bullets {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sample-text .bullets li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  color: var(--text-primary);
}
.sample-text .bullets li svg {
  width: 20px;
  height: 20px;
  color: var(--brand-mint);
  flex-shrink: 0;
}
.sample-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: 0 12px 40px rgba(31, 41, 51, 0.08);
}
.sample-card .label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}
.sample-card .problem {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.3;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  background: var(--severity-low-bg);
  color: var(--severity-low-text);
  margin-bottom: 16px;
}
.badge svg { width: 12px; height: 12px; }
.divider { height: 1px; background: var(--divider); margin: 16px 0; }
.metric-row { display: flex; gap: 16px; }
.metric { flex: 1; background: var(--surface-muted); border-radius: var(--r-md); padding: 12px; }
.metric .ml { font-size: 11px; font-weight: 500; color: var(--text-tertiary); margin-bottom: 4px; }
.metric .mv { font-size: 16px; font-weight: 600; }

/* ===== Trust band ===== */
.trust {
  background: var(--surface);
  padding: 32px 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.trust-item svg { width: 24px; height: 24px; color: var(--brand-blue); }

/* ===== CTA band ===== */
.cta-band {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-mint) 100%);
  text-align: center;
  color: white;
}
.cta-band h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
  color: white;
}
.cta-band p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
}
.cta-band .app-store-btn {
  background: white;
  color: var(--text-primary);
}
.cta-band .app-store-btn:hover {
  background: var(--bg);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--surface);
  padding: 56px 0 32px;
  border-top: 1px solid var(--divider);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-brand img { width: 36px; height: 36px; border-radius: 8px; }
.footer-brand .name { font-size: 18px; font-weight: 700; }
.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 280px;
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--text-secondary);
  font-size: 14px;
}
.footer-col a:hover { color: var(--text-primary); text-decoration: none; }
.footer-meta {
  border-top: 1px solid var(--divider);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ==========================================================================
   Document pages (privacy, terms, affiliate-disclosure)
   ========================================================================== */
.doc {
  padding: 56px 0 80px;
}
.doc h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 8px;
}
.doc .updated {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 32px;
}
.doc h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin: 32px 0 12px;
  color: var(--text-primary);
}
.doc h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 8px;
}
.doc p, .doc ul, .doc ol {
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 14px;
}
.doc ul, .doc ol { padding-left: 24px; }
.doc li { margin-bottom: 6px; }
.doc strong { font-weight: 600; }
.doc a { color: var(--brand-blue); }
.doc-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  margin-bottom: 32px;
}
.doc-toc h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}
.doc-toc ol {
  list-style: decimal;
  padding-left: 20px;
  margin: 0;
}
.doc-toc li {
  margin-bottom: 4px;
  font-size: 14px;
}
.callout {
  background: var(--brand-blue-soft);
  border-left: 4px solid var(--brand-blue);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin: 20px 0;
}
.callout p { margin-bottom: 0; font-size: 15px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero h1 { font-size: 40px; letter-spacing: -0.8px; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-mock-frame { transform: scale(0.9); }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .sample-wrap { grid-template-columns: 1fr; gap: 32px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-meta { flex-direction: column; gap: 8px; align-items: flex-start; }
  .section h2, .cta-band h2 { font-size: 30px; }
  .section { padding: 56px 0; }
  .nav a { font-size: 14px; padding: 8px 10px; }
}

@media (max-width: 480px) {
  .nav { display: none; }
  .hero h1 { font-size: 34px; }
  .hero .lead { font-size: 17px; }
  .doc h1 { font-size: 30px; }
}
