/* Sendum marketing site — one shared stylesheet for every page.
   Fonts and the off-white background match senda-app (Fraunces × Inter, #F7F5F2). */

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

:root {
  --bg:          #F7F5F2;  /* senda-app background */
  --card:        #FDFCFA;  /* senda-app panel */
  --ink:         #1F2A22;  /* Charcoal */
  --ink-soft:    #3B463E;  /* softened charcoal for supporting text (≈10:1 on --bg) */
  --sage:        #8A9E8A;  /* Sage — buttons and accents (brand kit); charcoal text on it, never white */
  --sage-hover:  #9CAE9B;
  --sage-light:  #DCE4DD;  /* Sage Light — highlights and card fills */
  --accent-ink:  #2D4A2D;  /* italic accent words — same as the app greeting */
  --line:        rgba(31, 42, 34, 0.14);
  --line-soft:   rgba(31, 42, 34, 0.08);

  --font-display: 'Fraunces', serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius:    16px;
  --radius-sm: 10px;
  --gutter:    16px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

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

a { color: inherit; }

p { margin: 0; text-wrap: pretty; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 24, 'SOFT' 0, 'WONK' 0;  /* brand kit: text cut, quirks off */
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

/* Italic accent on key words — same treatment as the dashboard greeting */
h1 em, h2 em, h3 em, .accent {
  font-style: italic;
  color: var(--accent-ink);
}

:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow { max-width: 780px; }

/* ── Wordmark (brand kit: "Sendum" in Fraunces SemiBold Italic, no dot) ─── */
.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 24, 'SOFT' 0, 'WONK' 0;  /* brand kit: text cut, quirks off */
  font-weight: 600;
  font-style: italic;
  font-size: 24px;
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 8px;
  border-radius: 8px;
}
.nav-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .15s, border-color .15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--sage);
  color: var(--ink);            /* charcoal on sage: 5.2:1 (6.3:1 on hover), passes AA */
  border-color: #798F7A;
}
.btn-primary:hover { background: var(--sage-hover); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: rgba(31, 42, 34, 0.32);
}
.btn-secondary:hover { background: rgba(31, 42, 34, 0.05); }
.btn-sm {
  min-height: 42px;
  padding: 0 16px;
  font-size: 15px;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Pills (small labels above headings) ───────────────────────────────── */
.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sage-light);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 18px;
}
.pill::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  margin-right: 8px;
  vertical-align: 0.15em;
}

/* ── Sections ──────────────────────────────────────────────────────────── */
.section {
  padding: 48px 0;
  scroll-margin-top: 16px;
}
.section-head {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}
.section-head h2 { font-size: clamp(30px, 6vw, 44px); }
.section-head p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 17px;
}

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 {
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.card p { color: var(--ink-soft); }

.grid { display: grid; gap: 16px; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  padding: 48px 0 56px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(38px, 9vw, 68px);
  line-height: 1.04;
  max-width: 860px;
  margin: 0 auto;
}
.hero-lede {
  max-width: 640px;
  margin: 22px auto 0;
  font-size: 18px;
  color: var(--ink-soft);
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}
.hero-note {
  margin-top: 16px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ── Product preview (HTML/CSS, not an image) ─────────────────────────── */
.preview {
  margin: 48px auto 0;
  max-width: 1040px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(31, 42, 34, 0.04), 0 12px 32px -16px rgba(31, 42, 34, 0.16);
}
.preview-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: #F3F1EC;
}
.preview-dots { display: flex; gap: 6px; }
.preview-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(31, 42, 34, 0.16);
}
.preview-bar .wordmark { font-size: 16px; padding: 0; }
.preview-body {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: var(--bg);
}
.panel {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 18px;
}
.panel-title {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 24, 'SOFT' 0, 'WONK' 0;  /* brand kit: text cut, quirks off */
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
  margin: 0 0 14px;
}
.panel-input {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.5;
}
.panel-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.panel-tags span {
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sage-light);
  color: var(--accent-ink);
}
.found-list { list-style: none; margin: 0; padding: 0; }
.found-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
}
.found-list li:first-child { border-top: 0; padding-top: 0; }
.found-list strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.found-list small { display: block; font-size: 14px; color: var(--ink-soft); line-height: 1.4; }
.tick {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--sage-light);
  color: var(--accent-ink);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.tick svg { width: 14px; height: 14px; }
.email-meta { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.email-meta b { color: var(--ink); font-weight: 600; }
.email-snippet {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mock-actions { display: flex; gap: 8px; margin-top: 16px; }
.mock-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 0 16px;
  border-radius: 8px;
  font-size: 15px; font-weight: 600;
  border: 1px solid transparent;
}
.mock-btn.approve { background: var(--sage); color: var(--ink); border-color: #798F7A; }
.mock-btn.edit { border-color: rgba(31, 42, 34, 0.32); color: var(--ink); }

/* ── How it works ──────────────────────────────────────────────────────── */
.step-num {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--sage-light);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 24, 'SOFT' 0, 'WONK' 0;  /* brand kit: text cut, quirks off */
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 18px;
}

/* ── Your voice ────────────────────────────────────────────────────────── */
.voice {
  display: grid;
  gap: 32px;
  align-items: center;
}
.voice h2 { font-size: clamp(30px, 6vw, 44px); }
.voice-copy p {
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink-soft);
}
.email-card { padding: 0; overflow: hidden; }
.email-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line-soft);
}
.email-card-head .pill { margin: 0; }
.email-card-meta {
  padding: 16px 24px 0;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.email-card-meta b { color: var(--ink); font-weight: 600; }
.email-card-body {
  padding: 16px 24px 24px;
  font-size: 17px;
  line-height: 1.65;
}
.email-card-body p { color: var(--ink); }
.email-card-body p + p { margin-top: 14px; }

/* ── Control / icon cards ──────────────────────────────────────────────── */
.icon-badge {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--sage-light);
  color: var(--accent-ink);
  margin-bottom: 18px;
}
.icon-badge svg { width: 22px; height: 22px; }

/* ── Who it's for ──────────────────────────────────────────────────────── */
.audience-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
.audience-card.featured {
  background: var(--sage-light);
  border-color: rgba(45, 74, 45, 0.22);
}
.audience-card.featured p { color: var(--ink); margin-bottom: 18px; }
.badge {
  align-self: flex-start;
  margin-top: auto;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid rgba(45, 74, 45, 0.22);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 600;
}

/* ── Founder note ──────────────────────────────────────────────────────── */
.letter {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 24px;
}
.letter h2 { font-size: clamp(30px, 6vw, 42px); }
.letter-body {
  margin-top: 22px;
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink);
}
.signoff {
  margin-top: 26px;
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 24, 'SOFT' 0, 'WONK' 0;  /* brand kit: text cut, quirks off */
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  color: var(--accent-ink);
}

/* ── Closing CTA ───────────────────────────────────────────────────────── */
.cta-card {
  background: var(--sage-light);
  border: 1px solid rgba(45, 74, 45, 0.18);
  border-radius: 20px;
  padding: 40px 24px;
  text-align: center;
}
.cta-card h2 {
  font-size: clamp(28px, 5.5vw, 42px);
  max-width: 760px;
  margin: 0 auto;
}
.cta-card p {
  max-width: 560px;
  margin: 18px auto 28px;
  font-size: 17px;
  color: var(--ink);
}
.cta-card .btn-primary { border-color: var(--accent-ink); }

/* ── Book page ─────────────────────────────────────────────────────────── */
.page-head {
  padding: 48px 0 40px;
  text-align: center;
}
.page-head h1 { font-size: clamp(38px, 8vw, 60px); }
.page-head .lede {
  max-width: 580px;
  margin: 18px auto 0;
  font-size: 18px;
  color: var(--ink-soft);
}
.page-head .btn { margin-top: 30px; }
.call-card h2 {
  font-size: 26px;
  margin-bottom: 18px;
}
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 17px;
  color: var(--ink);
}
.check-list li:first-child { border-top: 0; padding-top: 0; }
.check-list .tick { margin-top: 1px; }
.check-list .tick.muted { background: #ECE9E4; color: var(--ink-soft); }

/* ── Privacy page ──────────────────────────────────────────────────────── */
.updated { margin-top: 14px; font-size: 15px; color: var(--ink-soft); }
.policy { padding: 28px 22px; }
.policy .intro { font-size: 18px; color: var(--ink); }
.policy h2 {
  font-size: 24px;
  margin: 36px 0 10px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}
.policy p { font-size: 17px; line-height: 1.7; color: var(--ink); }
.policy a { color: var(--accent-ink); text-underline-offset: 3px; }

/* ── Security page: lists and tables inside .policy ─────────────────────── */
.policy p + p,
.policy ul + p,
.policy .table-scroll + p { margin-top: 14px; }
.policy ul { margin: 14px 0 0; padding-left: 22px; }
.policy li { font-size: 17px; line-height: 1.7; color: var(--ink); }
.policy li + li { margin-top: 8px; }
/* The table scrolls inside its own box on narrow screens, never the page. */
.table-scroll { margin-top: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.55; color: var(--ink); }
.data-table th,
.data-table td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); }
.data-table th:last-child,
.data-table td:last-child { padding-right: 0; }
.data-table th { font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.data-table-wide { min-width: 560px; }

/* ── 404 ───────────────────────────────────────────────────────────────── */
.not-found { padding: 72px 0 96px; text-align: center; }
.not-found h1 { font-size: clamp(38px, 8vw, 60px); }
.not-found p { margin: 18px auto 30px; max-width: 480px; font-size: 18px; color: var(--ink-soft); }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 28px 0 36px;
  margin-top: 32px;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  color: var(--ink-soft);
}
.footer-links li { display: inline-flex; align-items: center; }
.footer-links li + li::before {
  content: none;
  padding: 0 10px;
  color: var(--ink-soft);
}
.footer-links a {
  color: var(--ink);
  text-underline-offset: 3px;
  padding: 6px 0;
}

/* ── Tablet ────────────────────────────────────────────────────────────── */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  body { font-size: 17px; }
  .hero-actions { flex-direction: row; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .preview-body { grid-template-columns: 1fr 1fr; padding: 18px; gap: 18px; }
  .preview-body .panel-email { grid-column: 1 / -1; }
  .card { padding: 28px; }
  .letter { padding: 56px 48px; }
  .cta-card { padding: 56px 40px; }
  .policy { padding: 40px 44px; }
  .footer-links { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 0; }
  .footer-links li + li::before { content: "·"; }
}

/* ── Desktop ───────────────────────────────────────────────────────────── */
@media (min-width: 960px) {
  :root { --gutter: 32px; }
  .section { padding: 64px 0; }
  .hero { padding: 80px 0 72px; }
  .hero-lede { font-size: 20px; }
  .grid { gap: 20px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .preview-body { grid-template-columns: 1fr 1fr 1.15fr; }
  .preview-body .panel-email { grid-column: auto; }
  .voice { grid-template-columns: 1fr 1.1fr; gap: 64px; }
  .letter-body { font-size: 20px; }
  .page-head { padding: 80px 0 56px; }
  .policy { padding: 48px 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

.plain-list { list-style: none; margin: 0; padding: 0; }
.section.section-cta { padding-top: 0; }
