/* Sendpitch marketing site: shared tokens and parts. Same Ember palette and Geist type as app.sendpitch.ai (ADR-084). */
:root {
  --canvas: #fcfbf8;
  --paper: #ffffff;
  --ink: #1c1917;
  --ink-2: #44403c;
  --subtle: #78716c;
  --line: #e8e4dc;
  --line-soft: #f1eee8;
  --brand: #c84412;
  --brand-hover: #b43a0c;
  --brand-soft: #fdede2;
  --brand-text: #b43a0c;
  --night: #121016;
  --night-2: #1d1a22;
  --night-line: rgba(255, 255, 255, 0.1);
  --night-text: #f5f3ef;
  --night-subtle: #a8a29e;
  --good: #15803d;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow-1: 0 1px 2px rgba(28, 25, 23, 0.06), 0 1px 1px rgba(28, 25, 23, 0.04);
  --shadow-2: 0 12px 32px -12px rgba(28, 25, 23, 0.22), 0 2px 6px rgba(28, 25, 23, 0.06);
  --shadow-3: 0 40px 80px -30px rgba(28, 25, 23, 0.35), 0 8px 24px -8px rgba(28, 25, 23, 0.12);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
main { overflow-x: clip; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.eyebrow { font: 500 13px/1.2 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-text); }
.h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; margin: 0; text-wrap: balance; }
.h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; margin: 0; text-wrap: balance; }
.h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; margin: 0; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); margin: 0; max-width: 58ch; text-wrap: pretty; }
.muted { color: var(--subtle); }
.small { font-size: 14px; line-height: 1.45; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 500 16px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 6px 16px -6px rgba(200, 68, 18, 0.55); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper); border-color: #d6d0c5; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f4f1ec; }
.btn-night { background: rgba(255, 255, 255, 0.08); color: var(--night-text); border-color: var(--night-line); }
.btn-night:hover { background: rgba(255, 255, 255, 0.14); }
.btn .ico { width: 18px; height: 18px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--canvas) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff; display: inline-grid; place-items: center; box-shadow: 0 1px 2px rgba(0,0,0,.2), 0 0 0 1px rgba(255,255,255,.06) inset; }
.mark svg { width: 21px; height: 21px; }
.nav-links { display: flex; gap: 26px; margin-left: 8px; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { min-height: 40px; padding: 0 16px; font-size: 15px; }
@media (max-width: 760px) { .nav-links { display: none; } .nav-cta .signin { display: none; } }

/* night variant (dark hero pages) */
.night { background: var(--night); color: var(--night-text); }
.night .lead, .night .muted { color: var(--night-subtle); }
.night .eyebrow { color: #f59e6b; }
.nav.on-night { background: color-mix(in srgb, var(--night) 82%, transparent); color: var(--night-text); }
.nav.on-night.scrolled { border-bottom-color: var(--night-line); }
.nav.on-night .nav-links a { color: var(--night-subtle); }
.nav.on-night .nav-links a:hover { color: #fff; }
.nav.on-night .mark { background: #fff; color: var(--night); }

/* ---------- sections ---------- */
.section { padding: 112px 0; }
.section.tight { padding: 80px 0; }
@media (max-width: 760px) { .section { padding: 72px 0; } .section.tight { padding: 56px 0; } }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }

/* ---------- cards ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.feature { padding: 26px; display: grid; gap: 10px; align-content: start; }
.feature .icon { width: 40px; height: 40px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 6px; }
.feature .icon svg { width: 20px; height: 20px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* ---------- media frame ---------- */
.frame { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #0b0d1a; box-shadow: var(--shadow-3); aspect-ratio: 16 / 9; }
.frame video, .frame img { width: 100%; height: 100%; object-fit: cover; }
.frame .tag { position: absolute; left: 14px; top: 14px; font: 500 12px/1 var(--font); color: #fff; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(8px); padding: 7px 10px; border-radius: 999px; }
.play-btn { position: absolute; right: 14px; bottom: 14px; }

/* ---------- email thread ---------- */
.thread { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-3); overflow: hidden; }
.thread-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--subtle); }
.thread-top .dots { display: flex; gap: 6px; }
.thread-top .dots i { width: 10px; height: 10px; border-radius: 50%; background: #e7e2d9; display: block; }
.thread-subject { font-weight: 600; color: var(--ink); font-size: 15px; }
.msg { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 18px; border-bottom: 1px solid var(--line-soft); }
.msg:last-child { border-bottom: 0; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 600 14px/1 var(--font); color: #fff; }
.msg-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 14px; }
.msg-head b { font-weight: 600; }
.msg-head span { color: var(--subtle); }
.msg-body { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin-top: 4px; }
.msg-body p { margin: 0 0 8px; }
.msg.faded { opacity: 0.55; }
.gif-card { display: block; margin: 10px 0 6px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); max-width: 360px; text-decoration: none; background: #0b0d1a; position: relative; }
.gif-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.gif-card .gif-cap { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--paper); color: var(--ink); font-size: 13px; }
.gif-card .gif-cap .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--font); padding: 6px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); }
.chip.good { background: #e7f6ec; color: var(--good); }
.chip.ink { background: var(--line-soft); color: var(--ink-2); }
.approve-bar { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.approve-bar .btn { min-height: 36px; padding: 0 14px; font-size: 14px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--subtle); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer .spacer { flex: 1; }
.night .footer { border-top-color: var(--night-line); }

/* ---------- video dialog ---------- */
dialog.player { padding: 0; border: 0; background: transparent; width: min(1100px, 94vw); max-width: none; }
dialog.player::backdrop { background: rgba(12, 10, 9, 0.78); backdrop-filter: blur(6px); }
dialog.player video { width: 100%; border-radius: var(--r-lg); background: #000; aspect-ratio: 16/9; }
dialog.player .close { position: absolute; top: -48px; right: 0; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- direction switcher (preview only) ---------- */
.dir-switch { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(28, 25, 23, 0.9); backdrop-filter: blur(10px); box-shadow: var(--shadow-2); font-size: 13px; }
.dir-switch a { color: #e7e5e4; text-decoration: none; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.dir-switch a[aria-current="page"] { background: #fff; color: var(--ink); }
