/* Mneme: colours taken from the app icon (cream #F6EDDC, ink green #075639). No web fonts, no scripts. */

:root {
  color-scheme: light dark;
  --bg: #f6eddc;
  --surface: #fbf6ec;
  --ink: #075639;
  --text: #1d2a24;
  --muted: #55645c;
  --line: rgb(7 86 57 / 0.18);
  --accent-soft: rgb(7 86 57 / 0.08);
  --on-ink: #f6eddc;
  --radius: 22px;
  --max: 1080px;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d2219;
    --surface: #133026;
    --ink: #8fd3ad;
    --text: #efe6d4;
    --muted: #a9b8ad;
    --line: rgb(246 237 220 / 0.14);
    --accent-soft: rgb(143 211 173 / 0.1);
    --on-ink: #0d2219;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 0.5em; }
h3 { font-size: 1.25rem; margin: 0 0 0.35em; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 22px; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink);
  font-weight: 600; text-decoration: none; border: 1px solid var(--ink);
}
.button.secondary { background: transparent; color: var(--ink); }
.note { font-size: 0.9rem; color: var(--muted); }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.lede { font-size: 1.25rem; color: var(--muted); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 28px 0 14px; }

/* Sections */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
.section-intro { max-width: 40em; color: var(--muted); font-size: 1.1rem; margin-bottom: 36px; }

kbd {
  font-family: var(--sans); font-size: 0.85em; font-weight: 600;
  padding: 2px 8px; border-radius: 7px; border: 1px solid var(--line); border-bottom-width: 2px;
  background: var(--bg); color: var(--ink); white-space: nowrap;
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); margin: 0; }
.card .pro { display: inline-block; margin-left: 6px; font-family: var(--sans); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; vertical-align: middle; }

.privacy-band { background: var(--ink); color: var(--on-ink); border-radius: calc(var(--radius) + 8px); padding: 44px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 36px; }
.privacy-band h2 { color: var(--on-ink); }
.privacy-band ul { margin: 0; padding-left: 1.1em; }
.privacy-band li { margin-bottom: 0.5em; }
.privacy-band a { color: var(--on-ink); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--ink); }
.plan h3 { font-family: var(--sans); font-size: 1rem; color: var(--muted); font-weight: 600; }
.price { font-family: var(--serif); font-size: 2.2rem; color: var(--ink); line-height: 1.1; margin: 4px 0 6px; }
.price small { font-family: var(--sans); font-size: 0.95rem; color: var(--muted); font-weight: 400; }
.plan p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.badge { align-self: flex-start; margin-bottom: 10px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--ink); color: var(--on-ink); padding: 3px 10px; border-radius: 999px; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; margin-bottom: 12px; }
summary { cursor: pointer; padding: 18px 0; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p, details ul { color: var(--muted); }
details > :last-child { padding-bottom: 18px; margin-bottom: 0; }

/* Long-form pages (privacy, support) */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 780px; }
.doc h2 { font-size: 1.6rem; margin-top: 2.2em; }
.doc h3 { margin-top: 1.6em; }
.doc li { margin-bottom: 0.4em; }
.doc .meta { color: var(--muted); }
.summary-box { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: 14px; padding: 20px 24px; margin: 28px 0; }
.summary-box ul { margin: 0; padding-left: 1.1em; }
.toc { columns: 2; column-gap: 32px; padding-left: 1.2em; }
table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--ink); font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* Hero */
.eyebrow { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }

/* Product picture: an email being dictated, with Mneme's listening pill */
.mock { margin: 0; }
.mock-stage { position: relative; padding-bottom: 22px; }
.mock-window { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px -28px rgb(7 40 28 / 0.45); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.mock-bar em { font-style: normal; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-left: 10px; }
.mock-body { padding: 16px 20px 22px; }
.mock-field { margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }
.mock-field b { color: var(--text); font-weight: 500; }
.mock-text { margin: 14px 0 0; font-size: 1rem; line-height: 1.6; min-height: 7.5em; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: text-bottom; background: var(--ink); animation: blink 1.1s steps(1) infinite; }
.mock-pill { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--ink); box-shadow: 0 12px 30px -12px rgb(7 40 28 / 0.6); }
.mock-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #e5534b; }
.mock-pill .bars { display: flex; align-items: center; gap: 3px; height: 20px; }
.mock-pill .bars i { width: 3px; height: 30%; border-radius: 3px; background: var(--on-ink); animation: level 1.2s ease-in-out infinite; }
.mock-pill .bars i:nth-child(3n) { animation-delay: -0.3s; }
.mock-pill .bars i:nth-child(3n+1) { animation-delay: -0.7s; }
.mock-pill .bars i:nth-child(4n) { animation-duration: 0.9s; }
.mock figcaption { text-align: center; margin-top: 16px; font-size: 0.9rem; color: var(--muted); }
@keyframes level { 0%, 100% { height: 25%; } 50% { height: 100%; } }
@keyframes blink { 50% { opacity: 0; } }

/* At a glance */
.proof { padding: 36px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stat strong { display: block; font-family: var(--serif); font-size: 2.4rem; line-height: 1.1; color: var(--ink); margin-bottom: 6px; }
.stat span { color: var(--muted); font-size: 0.97rem; }
.proof + section { border-top: 0; }

/* Selling points */
.pitch { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 34px 0; border-top: 1px solid var(--line); }
.pitch:first-of-type { border-top: 0; padding-top: 8px; }
.pitch h3 { font-size: 1.6rem; }
.pitch p { color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); border: 1.5px solid var(--ink); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: calc(0.2em + 5px); width: 8px; height: 4px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.example, .styles-demo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.example .said { font-family: var(--mono); font-size: 0.9rem; color: var(--muted); margin: 0 0 8px; }
.example .typed { margin: 0; font-size: 1.05rem; }
.example .typed span { color: var(--ink); font-weight: 600; }
.example .example-caption { font-family: var(--sans); font-size: 0.82rem; margin: 12px 0 0; }
.styles-demo p { display: grid; grid-template-columns: 90px 1fr; gap: 12px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.styles-demo p:last-child { border-bottom: 0; }
.styles-demo b { color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.styles-demo span, .styles-demo code { color: var(--ink); }
.styles-demo code { font-family: var(--mono); font-size: 0.95rem; }

/* Use cases */
.use svg { width: 30px; height: 30px; margin-bottom: 14px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Closing call to action */
.closing { text-align: center; }
.closing img { margin: 0 auto 18px; }
.closing .section-intro { margin: 0 auto 26px; }

@media (prefers-reduced-motion: reduce) {
  .mock-pill .bars i, .caret { animation: none; }
  .mock-pill .bars i { height: 60%; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   ROADMAP AND PATCH NOTES LINKS: hidden until you're ready.
   Delete the next rule to show them in the header and footer of every page
   (and remove the "noindex" line from roadmap.html and changelog.html).
   ───────────────────────────────────────────────────────────────────────────── */
.nav-upcoming { display: none !important; }

/* Roadmap and Patch notes pages (content rendered from /content/*.md by content.js) */
.roadmap .wrap, .changelog .wrap { max-width: var(--max); }
.entries-message { color: var(--muted); }
.entry { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.entry header { margin-bottom: 14px; }
.entry h2 { font-size: 1.5rem; margin: 0 0 6px; }
.entry-date { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.entry-date::before { content: ""; width: 14px; height: 14px; border: 1.5px solid currentColor; border-top-width: 4px; border-radius: 3px; opacity: 0.8; }
.entry-intro { color: var(--muted); margin: 0 0 6px; }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.items li { display: flex; align-items: baseline; gap: 10px; }
.items li.group-start { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.items strong { color: var(--ink); }
.tag { flex: none; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); border: 1px solid var(--line); white-space: nowrap; }
.tag-new, .tag-in-progress { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.tag-fixed, .tag-exploring { background: transparent; color: var(--muted); }
.tag-done { background: transparent; color: var(--ink); border-color: var(--ink); }
.tag-removed { background: transparent; color: #a8473f; border-color: currentColor; }

.roadmap .entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; margin-top: 32px; }
.roadmap .items li { flex-direction: column; gap: 6px; }

.changelog .wrap { max-width: 820px; }
.changelog .entries { display: grid; gap: 22px; margin-top: 32px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); }

@media (max-width: 900px) {
  .hero .wrap, .privacy-band, .pitch, .roadmap .entries { grid-template-columns: 1fr; }
  .pitch { gap: 20px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .privacy-band { padding: 32px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { gap: 14px; }
  .nav .hide-sm { display: none; }
  .hero { padding: 44px 0 36px; }
  section { padding: 48px 0; }
  .grid, .plans, .proof .wrap { grid-template-columns: 1fr; }
  .proof .wrap { gap: 20px; }
  .styles-demo p { grid-template-columns: 76px 1fr; }
  .privacy-band { padding: 26px 22px; }
  .toc { columns: 1; }
  .nav .nav-upcoming { display: none; }   /* on phones these links live in the footer */
  .entry { padding: 22px 20px; }
  .items li { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
