/* Sonder public site. The tokens mirror app/src/index.css: hairlines not
   shadows, one rationed azure accent worn as a soft tint, weights 400/500
   only, mono + tabular for every figure, dot + text for status. */

:root {
  --canvas: #ffffff;
  --sunken: #f7f8fb;
  --hover: #f6f8fc;
  --hairline: #e3e6ec;
  --hairline-strong: #d3d8df;

  --ink: #0b0d12;
  --ink-2: #5b6470;
  --ink-3: #9aa1ac;

  --accent: #2f6bed;
  --accent-ink: #1b4fa8;
  --accent-weak: #e9f1fe;
  --accent-weak-hover: #d9e7fc;

  --ready: #1a9e69;
  --ready-weak: #e5f5ed;
  --review: #bd820a;
  --review-weak: #fbf1dc;
  --blocked: #dd5141;
  --blocked-weak: #fdece9;
  --draft: #647387;
  --draft-weak: #eef1f6;

  --friction: #d35f4a;
  --friction-weak: #fbeae4;
  --healthy: #1f9377;
  --healthy-weak: #e4f2ec;
  --ambiguous: #7a5fae;
  --artifact: #5366a6;

  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;

  --shadow-raised: 0 1px 2px rgba(11, 13, 18, 0.05);
  --shadow-popover: 0 1px 2px rgba(11, 13, 18, 0.06), 0 8px 24px rgba(11, 13, 18, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent-weak); }
a { color: inherit; text-decoration: none; }
strong { font-weight: 500; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.25; margin: 0; }
p { margin: 0; }
code, pre, .mono { font-family: var(--mono); }
figure { margin: 0; }

.shell { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.reading { max-width: 720px; }

/* ── header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--hairline);
}
.header-row { display: flex; align-items: center; gap: 28px; height: 52px; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
}
.wordmark.muted { color: var(--ink-2); }
.site-nav { display: flex; gap: 4px; flex: 1; }
.site-nav a {
  font-size: 13px;
  color: var(--ink-2);
  padding: 5px 10px;
  border-radius: var(--radius-md);
}
.site-nav a:hover { background: var(--hover); color: var(--ink); }
.site-nav a[aria-current='page'] { color: var(--accent-ink); background: var(--accent-weak); }
.header-actions { display: flex; align-items: center; gap: 8px; }

.btn-primary {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-ink);
  background: var(--accent-weak);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  white-space: nowrap;
}
.btn-primary:hover { background: var(--accent-weak-hover); }
.btn-ghost {
  font-size: 13px;
  color: var(--ink-2);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 0.5px solid var(--hairline);
  white-space: nowrap;
}
.btn-ghost:hover { background: var(--hover); color: var(--ink); }
.btn-large { font-size: 14px; padding: 9px 18px; }

/* ── shared page grammar ────────────────────────────────────────────── */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.section { padding: 72px 0; }
.section + .section { border-top: 0.5px solid var(--hairline); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: 26px; margin: 10px 0 12px; }
.section-head p { color: var(--ink-2); }

.dot { display: inline-block; width: 6px; height: 6px; border-radius: 999px; flex: none; }
.dot.ready { background: var(--ready); }
.dot.review { background: var(--review); }
.dot.blocked { background: var(--blocked); }
.dot.draft { background: var(--draft); }
.dot.accent { background: var(--accent); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }

.hairline-card {
  border: 0.5px solid var(--hairline);
  border-radius: var(--radius-xl);
  background: var(--canvas);
}

pre.well {
  margin: 0;
  padding: 14px 16px;
  background: var(--sunken);
  border: 0.5px solid var(--hairline);
  border-radius: var(--radius-lg);
  font-size: 12.5px;
  line-height: 1.65;
  overflow-x: auto;
}
pre.well code { background: none; border: none; padding: 0; font-size: inherit; }
code {
  font-size: 0.9em;
  background: var(--sunken);
  border: 0.5px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 0.1em 0.35em;
}

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ── hero ───────────────────────────────────────────────────────────── */
.hero { padding: 88px 0 64px; }
.hero h1 { font-size: 40px; letter-spacing: -0.015em; max-width: 680px; margin: 16px 0 0; }
.hero .lede { font-size: 17px; color: var(--ink-2); max-width: 600px; margin: 20px 0 0; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 32px; }
.hero-hint { font-size: 12px; color: var(--ink-3); margin-top: 14px; }
.hero-hint code { background: none; border: none; padding: 0; color: var(--ink-2); }

/* ── board mock (the tour + home artifact) ──────────────────────────── */
.board {
  font-size: 13px;
  box-shadow: var(--shadow-raised);
  overflow: hidden;
}
.board-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 0.5px solid var(--hairline);
  color: var(--ink-2);
  font-size: 12px;
}
.board-head .spacer { flex: 1; }
.issue-row {
  display: grid;
  grid-template-columns: 20px 56px 1fr 130px 110px 70px;
  gap: 12px;
  align-items: center;
  padding: 11px 16px;
}
.issue-row + .issue-row { border-top: 0.5px solid var(--hairline); }
.issue-row:hover { background: var(--hover); }
.issue-kind { width: 8px; height: 8px; border-radius: 2px; justify-self: center; }
.issue-kind.friction { background: var(--friction); }
.issue-kind.healthy { background: var(--healthy); }
.issue-kind.ambiguous { background: var(--ambiguous); }
.issue-kind.artifact { background: var(--artifact); }
.issue-id { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.issue-title { font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.issue-metric { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--ink-2); text-align: right; }
.issue-metric .up { color: var(--blocked); }
.issue-metric .down { color: var(--ready); }

.sparkline { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; margin-right: 6px; vertical-align: -2px; }
.sparkline i { width: 3px; background: var(--hairline-strong); border-radius: 1px; }
.sparkline i.hot { background: var(--friction); }
.sparkline i.cool { background: var(--ready); }

/* ── edges grid ─────────────────────────────────────────────────────── */
.edge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.edge { padding: 24px; }
.edge .eyebrow { color: var(--accent-ink); }
.edge h3 { font-size: 16px; margin: 10px 0 8px; }
.edge p { font-size: 13.5px; color: var(--ink-2); }
.edge .receipt {
  display: block;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 0.5px solid var(--hairline);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* ── pricing ────────────────────────────────────────────────────────── */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tier { padding: 28px 24px; display: flex; flex-direction: column; gap: 0; }
.tier.current { border-color: var(--accent); box-shadow: var(--shadow-raised); }
.tier h3 { font-size: 15px; }
.tier .price { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 30px; margin-top: 14px; }
.tier .price small { font-size: 13px; color: var(--ink-3); font-family: var(--sans); }
.tier .tier-note { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; min-height: 40px; }
.tier ul { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 9px; font-size: 13px; color: var(--ink-2); }
.tier li { display: flex; gap: 9px; align-items: baseline; }
.tier li::before { content: ''; width: 5px; height: 5px; border-radius: 999px; background: var(--accent); flex: none; position: relative; top: -2px; }
.tier .cta { margin-top: auto; text-align: center; }

/* ── docs ───────────────────────────────────────────────────────────── */
.docs-grid { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding: 48px 0 88px; }
.docs-rail { position: sticky; top: 76px; align-self: start; display: grid; gap: 2px; font-size: 13px; }
.docs-rail .rail-head { margin: 14px 0 6px; }
.docs-rail .rail-head:first-child { margin-top: 0; }
.docs-rail a { color: var(--ink-2); padding: 4px 10px; border-radius: var(--radius-md); }
.docs-rail a:hover { background: var(--hover); color: var(--ink); }
.docs-rail a[aria-current='page'] { color: var(--accent-ink); background: var(--accent-weak); }
.docs-body { min-width: 0; max-width: 720px; }
.docs-body h1 { font-size: 28px; margin-bottom: 10px; }
.docs-body .lede { color: var(--ink-2); margin-bottom: 36px; font-size: 15px; }
.docs-body h2 { font-size: 19px; margin: 40px 0 12px; padding-top: 20px; border-top: 0.5px solid var(--hairline); }
.docs-body h3 { font-size: 15px; margin: 26px 0 8px; }
.docs-body p { margin: 0 0 14px; color: var(--ink-2); }
.docs-body p strong, .docs-body li strong { color: var(--ink); }
.docs-body ul, .docs-body ol { color: var(--ink-2); padding-left: 22px; margin: 0 0 14px; }
.docs-body li { margin-bottom: 6px; }
.docs-body pre.well { margin: 0 0 14px; }
.docs-body table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 0 0 14px; }
.docs-body th { text-align: left; font-weight: 500; padding: 8px 12px 8px 0; border-bottom: 0.5px solid var(--hairline); }
.docs-body td { padding: 8px 12px 8px 0; border-bottom: 0.5px solid var(--hairline); color: var(--ink-2); vertical-align: top; }
.docs-body td code, .docs-body th code { white-space: nowrap; }
.step { display: grid; grid-template-columns: 28px 1fr; gap: 14px; margin-bottom: 22px; }
.step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-ink);
  background: var(--accent-weak);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}
.callout {
  border: 0.5px solid var(--hairline);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.callout.warn { border-left-color: var(--review); }

/* ── prose / legal ──────────────────────────────────────────────────── */
.prose { max-width: 720px; margin: 0 auto; padding: 48px 24px 88px; }
.prose h1 { font-size: 28px; margin: 24px 0 16px; }
.prose h2 { font-size: 19px; margin: 36px 0 10px; }
.prose h3 { font-size: 15px; margin: 24px 0 8px; }
.prose p { margin: 0 0 14px; color: var(--ink-2); }
.prose ul, .prose ol { color: var(--ink-2); padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose blockquote {
  margin: 0 0 20px;
  padding: 12px 18px;
  border: 0.5px solid var(--hairline);
  border-left: 2px solid var(--review);
  border-radius: var(--radius-md);
  background: var(--review-weak);
  font-size: 13px;
}
.prose blockquote p { margin: 0 0 6px; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 0 0 14px; }
.prose th { text-align: left; font-weight: 500; padding: 8px 12px 8px 0; border-bottom: 0.5px solid var(--hairline); }
.prose td { padding: 8px 12px 8px 0; border-bottom: 0.5px solid var(--hairline); color: var(--ink-2); }
.prose pre { background: var(--sunken); border: 0.5px solid var(--hairline); border-radius: var(--radius-lg); padding: 14px 16px; font-size: 12.5px; overflow-x: auto; }
.prose a { color: var(--accent-ink); }
.prose a:hover { text-decoration: underline; }

/* ── footer ─────────────────────────────────────────────────────────── */
.site-footer { border-top: 0.5px solid var(--hairline); padding: 48px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.footer-grid nav { display: grid; gap: 8px; align-content: start; font-size: 13px; }
.footer-grid nav a { color: var(--ink-2); }
.footer-grid nav a:hover { color: var(--ink); }
.footer-head { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.footer-note { font-size: 12.5px; color: var(--ink-3); max-width: 260px; margin-top: 10px; }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 0.5px solid var(--hairline); font-size: 12px; color: var(--ink-3); }

/* ── motion (calm; respects reduced-motion) ─────────────────────────── */
@keyframes sonder-dot { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.pulse { animation: sonder-dot 1.2s infinite; }
@keyframes sonder-fade-up { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.fade-up { animation: sonder-fade-up 0.22s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
}

/* ── responsive ─────────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .site-nav { display: none; }
  .edge-grid, .tier-grid { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
  .docs-rail { position: static; grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 32px; }
  .issue-row { grid-template-columns: 20px 1fr 110px; }
  .issue-id, .issue-metric:nth-of-type(2) { display: none; }
  .issue-row > .hide-mobile { display: none; }
}
