/* MDash — usemdash.com */

/* Tokens. Dark is the default; light applies when the device asks for it. */
:root {
  color-scheme: dark;
  --bg: #151517;
  --ink: #f5f5f7;
  --ink2: rgba(245, 245, 247, .64);
  --ink3: rgba(245, 245, 247, .4);
  --hairline: rgba(255, 255, 255, .13);
  --glass: rgba(30, 30, 33, .62);
  --sheet: rgba(40, 40, 44, .97);
  --card: rgba(255, 255, 255, .06);
  --accent: #0A7CFF;
  --accent-ink: #409cff;
  --btn2: rgba(255, 255, 255, .1);
  --paper-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 18px 44px rgba(0, 0, 0, .55);
  --nav-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  --font-text: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f5f5f7;
    --ink: #1d1d1f;
    --ink2: rgba(29, 29, 31, .64);
    --ink3: rgba(29, 29, 31, .42);
    --hairline: rgba(0, 0, 0, .09);
    --glass: rgba(255, 255, 255, .6);
    --sheet: rgba(249, 249, 251, .97);
    --card: rgba(255, 255, 255, .72);
    --accent-ink: #0A7CFF;
    --btn2: rgba(0, 0, 0, .055);
    --paper-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 14px 36px rgba(0, 0, 0, .12);
    --nav-shadow: 0 8px 24px rgba(0, 0, 0, .06);
  }
}

/* Base */
html { scroll-behavior: smooth }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent-ink); text-decoration: none }
a:hover { text-decoration: underline }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
summary::-webkit-details-marker { display: none }

.page { padding-top: 14px; overflow-x: clip }
.page--fill { min-height: 100vh; display: flex; flex-direction: column; box-sizing: border-box }

/* Nav */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}
.nav {
  position: relative;
  width: min(1000px, 100%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 8px 8px 8px 16px;
  border-radius: 24px;
  background: var(--glass);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: var(--nav-shadow);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none }
.brand-mark {
  display: block;
  width: 26px;
  height: 26px;
}
.brand { grid-column: 1; justify-self: start }
.nav-links { grid-column: 2; justify-self: center; display: flex; align-items: center; gap: 20px; font-size: 13.5px }
.nav-links a { color: var(--ink2) }
.nav-links a:hover { color: var(--ink); text-decoration: none }
.nav > .nav-btn, .nav-menu { grid-column: 3; justify-self: end }
.nav-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--btn2);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 7px 14px;
}
.nav-btn:hover { text-decoration: none; background: var(--hairline) }

/* Mobile menu (shown in place of .nav-links on small screens) */
.nav-menu { display: none }
.nav-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
}
.nav-menu summary svg { transition: transform .2s ease; transform: rotate(90deg) }
.nav-menu[open] summary svg { transform: rotate(-90deg) }
.nav-menu-list {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: var(--sheet);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  box-shadow: var(--nav-shadow);
}
.nav-menu-list a {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.nav-menu-list a:hover { text-decoration: none; background: var(--btn2) }

/* Hero */
.hero { position: relative; padding: 88px 24px 0; text-align: center }
.hero-glow { position: absolute; inset: -120px 0 0 0; overflow: visible; pointer-events: none; z-index: 0 }
.hero-glow-a {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-72%);
  width: 720px;
  height: 520px;
  background: radial-gradient(closest-side, rgba(10, 124, 255, .13), transparent);
}
.hero-glow-b {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-14%);
  width: 640px;
  height: 460px;
  background: radial-gradient(closest-side, rgba(10, 124, 255, .09), transparent);
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 22px }
.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7.4vw, 76px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero-sub {
  margin: 0;
  max-width: 560px;
  font-size: clamp(16px, 2.4vw, 19px);
  line-height: 1.55;
  color: var(--ink2);
  text-wrap: pretty;
}
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 6px }
.store-badge { display: inline-block; line-height: 0 }
.store-badge:hover { transform: translateY(-1px) }
.store-badge img { height: 52px; width: auto; display: block }
.coming-soon {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--glass);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.hero-note { margin: 0; font-size: 13px; color: var(--ink3) }
.hero-shot { position: relative; z-index: 1; width: min(940px, 100%); margin: 64px auto 0; text-align: left }
.hero-shot img { width: 100%; height: auto; display: block }

/* Sections */
.section { margin: 150px auto 0; padding: 0 24px; scroll-margin-top: 90px }
.section--showcase { max-width: 1060px; margin-top: 60px }
.section--features { max-width: 1060px }
.section--faq { max-width: 720px }
.section--support { max-width: 1060px; display: flex; justify-content: center }
.section-intro { max-width: 640px; display: flex; flex-direction: column; gap: 12px }
.kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.section-title {
  margin: 0;
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}
.section--faq .section-title { font-size: clamp(28px, 4.4vw, 40px) }
.section-lede { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--ink2); text-wrap: pretty }

/* Showcase (numbered panels) */
.showcase-list { display: flex; flex-direction: column; gap: 52px; margin-top: 56px }
.showcase-row { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 56px }
.showcase-row + .showcase-row { border-top: 1px solid var(--hairline); padding-top: 52px }
.showcase-copy { flex: 1.5 1 300px; min-width: 250px; display: flex; flex-direction: column; gap: 10px }
.showcase-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--accent-ink);
  font-weight: 600;
}
.showcase-title { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.015em }
.showcase-blurb { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink2); text-wrap: pretty }
.showcase-stage {
  flex: 1 1 300px;
  min-width: 280px;
  display: flex;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 28px 20px;
  box-sizing: border-box;
}

/* Showcase mockups. The mini-documents depict printed pages, so they keep
   paper-white colors in both themes. */
.mock {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  zoom: 1.15;
  padding: 12px 0;
}
.mock--stack { flex-direction: column; gap: 9px }
.paper { background: #fff; border-radius: 3px; box-shadow: var(--paper-shadow); box-sizing: border-box }
.mock--stack .paper { width: min(210px, 100%) }
.paper-top { padding: 12px 16px 8px }
.paper-bottom { padding: 14px 16px 10px }
.paper-body { margin: 0; font-size: 7.5px; line-height: 1.65; color: #3c3c43; text-align: justify }
.paper-heading { font-size: 9.5px; font-weight: 700; color: #1d1d1f }
.paper-heading + .paper-body { margin-top: 4px }
.paper-pageno { text-align: center; font-size: 6.5px; color: #8e8e93; margin-top: 8px }
.break-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .14em;
  color: var(--accent-ink);
  font-weight: 600;
}

.mock-sheet { width: min(230px, 100%) }
.paper-table { padding: 18px 20px }
.table-caption { text-align: center; font-size: 7.5px; color: #3c3c43; font-style: italic }
.journal-table { width: 100%; border-collapse: collapse; font-size: 8px; margin-top: 7px; color: #1d1d1f }
.journal-table th {
  text-align: right;
  padding: 3.5px 4px;
  border-top: 1.5px solid #1d1d1f;
  border-bottom: .75px solid #1d1d1f;
  font-weight: 600;
}
.journal-table td { text-align: right; padding: 3px 4px }
.journal-table th:first-child, .journal-table td:first-child { text-align: left }
.journal-table tr:last-child td { border-bottom: 1.5px solid #1d1d1f }

.paper-code { padding: 16px 18px }
.code-block {
  background: #f5f5f7;
  border-radius: 4px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  line-height: 1.75;
  color: #1d1d1f;
  overflow-wrap: break-word;
}
.syn-c { color: #707f8c }
.syn-k { color: #ad3da4 }
.syn-f { color: #326d74 }
.syn-s { color: #d12f1b }
.syn-n { color: #272ad8 }
.code-note { margin: 8px 0 0; font-size: 7.5px; line-height: 1.65; color: #3c3c43 }

.toc-window {
  width: min(250px, 100%);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 92px 1fr;
  background: #fafafa;
  box-shadow: var(--paper-shadow);
}
.toc-sidebar {
  background: #f0f0f2;
  border-right: 1px solid rgba(0, 0, 0, .08);
  padding: 10px 8px;
  font-size: 7px;
  line-height: 2.1;
  color: #3c3c43;
}
.toc-title { font-weight: 700; color: #1d1d1f }
.toc-item { padding-left: 8px }
.toc-item--active { background: rgba(10, 124, 255, .14); border-radius: 3px; color: #0A7CFF; font-weight: 600 }
.toc-page-wrap { padding: 14px; display: flex; justify-content: center }
.toc-page {
  width: 100%;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
  padding: 12px 13px;
  box-sizing: border-box;
}
.toc-page-heading { font-size: 8.5px; font-weight: 700; color: #1d1d1f }
.toc-page-body { margin: 4px 0 0; font-size: 7px; line-height: 1.7; color: #3c3c43 }
.mock-link { color: #0A7CFF; text-decoration: underline }

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 44px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-card h3 { margin: 0; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em }
.feature-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink2) }

/* FAQ */
.faq-list { margin-top: 28px }
.faq-list details { border-top: 1px solid var(--hairline) }
.faq-list details:last-of-type { border-bottom: 1px solid var(--hairline) }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 2px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq-list summary:hover { color: var(--accent-ink) }
.faq-list summary svg { flex-shrink: 0; transition: transform .2s ease }
.faq-list details[open] > summary > svg { transform: rotate(90deg) }
.faq-answer {
  margin: 0;
  padding: 0 28px 20px 2px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink2);
  text-wrap: pretty;
}
.code-inline { font-family: var(--font-mono); font-size: 13px }

/* Support */
.support-card {
  width: min(640px, 100%);
  background: var(--glass);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 44px 36px;
  text-align: center;
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.support-card h2 { margin: 0; font-size: clamp(26px, 4vw, 36px); font-weight: 700; letter-spacing: -0.02em }
.support-card p { margin: 0; max-width: 440px; font-size: 15.5px; line-height: 1.6; color: var(--ink2) }
.support-email { font-size: clamp(18px, 3vw, 22px); font-weight: 600; letter-spacing: -0.01em }

/* Footer */
.site-footer {
  width: min(1060px, 100%);
  margin: 130px auto 0;
  padding: 28px 24px 48px;
  border-top: 1px solid var(--hairline);
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  font-size: 13px;
  color: var(--ink3);
}
.page--fill .site-footer { margin-top: 96px }
.site-footer p { margin: 0 }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px }
.footer-links a { color: var(--ink2) }
.footer-links a:hover { color: var(--ink) }

/* Legal (privacy) */
.legal-main { flex: 1; width: min(680px, 100%); margin: 0 auto; padding: 72px 24px 0; box-sizing: border-box }
.legal-main h1 { margin: 0; font-size: clamp(30px, 5vw, 42px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1 }
.legal-date { margin: 12px 0 0; font-size: 14px; color: var(--ink3) }
.legal-lede { margin: 28px 0 0; font-size: 18px; line-height: 1.6; color: var(--ink); text-wrap: pretty }
.legal-main h2 { margin: 40px 0 0; font-size: 20px; font-weight: 700; letter-spacing: -0.015em }
.legal-main h2 + p { margin: 10px 0 0; font-size: 15.5px; line-height: 1.7; color: var(--ink2); text-wrap: pretty }
.legal-sign { margin: 44px 0 0; font-size: 14px; color: var(--ink3) }

/* 404 */
.notfound {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 96px 24px 0;
}
.notfound h1 { margin: 0; font-size: clamp(30px, 5vw, 42px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1 }
.notfound p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink2) }
.notfound .nav-btn { margin-top: 8px }

/* Small screens: swap the nav links for the menu, tighten vertical rhythm */
@media (max-width: 639px) {
  .nav-links { display: none }
  .nav-menu { display: block }

  .hero { padding-top: 56px }
  .hero-inner { gap: 18px }
  .hero-shot { margin-top: 44px }
  .section { margin-top: 88px }
  .section--showcase { margin-top: 48px }
  .showcase-list { gap: 40px; margin-top: 40px }
  .showcase-row { gap: 20px 56px }
  .showcase-row + .showcase-row { padding-top: 40px }
  .feature-grid { margin-top: 32px; gap: 16px }
  .faq-list { margin-top: 20px }
  .support-card { padding: 36px 24px }
  .site-footer { margin-top: 72px }
  .page--fill .site-footer { margin-top: 64px }
  .legal-main { padding-top: 48px }
}
