@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Palette matches the app (MySous iOS UI canvas) */
:root {
  color-scheme: light dark;
  --bg: #FBF8F2;
  --band: #F5F1E8;
  --surface: #FFFFFF;
  --chip: #F2EEE5;
  --mint: #E5EDE4;
  --ink: #1C1F1A;
  --muted: #5C5F56;
  --line: #E7E1D5;
  --accent: #1F4A33;
  --accent-hover: #163626;
  --on-accent: #FFFFFF;
  --warn-bg: #FBF0DC;
  --warn-ink: #5C3A00;
  --todo-bg: #FFF4CC;
  --todo-ink: #5C4400;
  --todo-line: #E8C65A;
  --shadow: 0 1px 2px rgba(28, 31, 26, 0.04), 0 10px 28px rgba(28, 31, 26, 0.05);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max: 1120px;
  --prose: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1E211B;
    --band: #23271F;
    --surface: #2A2E25;
    --chip: #30352B;
    --mint: #2B3A2F;
    --ink: #EEEDE6;
    --muted: #B9BCB1;
    --line: #3A3F34;
    --accent: #9FD0AF;
    --accent-hover: #B8E0C4;
    --on-accent: #132017;
    --warn-bg: #3A3020;
    --warn-ink: #F2D9A6;
    --todo-bg: #3A3010;
    --todo-ink: #F6DE8D;
    --todo-line: #7A6420;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 14px; border-radius: 999px;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 24px; } }

/* Header */
.site-header .wrap {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent); text-decoration: none;
  font: 500 1.75rem/1 var(--serif); letter-spacing: -0.6px;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
}
.site-nav a:hover { color: var(--ink); background: var(--chip); }
.site-nav a[aria-current="page"] { background: var(--chip); color: var(--ink); font-weight: 600; }

/* Type */
h1, h2, h3 { font-family: var(--serif); color: var(--ink); margin: 0; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.06; font-weight: 400; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); line-height: 1.15; font-weight: 400; letter-spacing: -0.02em; }
h3 { font-size: 1.4rem; line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; }
.lede { font-size: 1.15rem; line-height: 1.55; color: var(--muted); margin: 0; max-width: 36rem; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 14px; }

/* Pills and buttons */
.pill {
  align-self: flex-start; display: inline-block;
  padding: 6px 12px; border-radius: 999px;
  background: var(--mint); color: var(--accent);
  font-size: 13px; font-weight: 600;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 27px;
  font-size: 16px; font-weight: 600; text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 16px rgba(31, 74, 51, 0.22); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { background: var(--chip); color: var(--ink); }
.small-print { font-size: 14px; color: var(--muted); margin: 0; }

/* TODO markers for Ryan */
.todo {
  background: var(--todo-bg); color: var(--todo-ink);
  border: 1px dashed var(--todo-line); border-radius: 6px;
  padding: 0 6px; font-size: 0.92em; font-weight: 600;
}

/* Sections */
.section { padding: 72px 0; }
.band { background: var(--band); }
.section-head { max-width: 40rem; margin-bottom: 32px; display: flex; flex-direction: column; gap: 8px; }
.section-head p { margin: 0; color: var(--muted); }

/* Hero */
.hero { padding: 40px 0 72px; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero-art { flex: 1 1 300px; display: flex; justify-content: center; }

/* App mockup (always the app's light look) */
.device {
  width: 300px; max-width: 100%; padding: 10px; border-radius: 44px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(28, 31, 26, 0.04), 0 30px 60px rgba(28, 31, 26, 0.10);
}
.screen {
  border-radius: 34px; overflow: hidden; background: #FBF8F2; color: #1C1F1A;
  padding: 34px 16px 20px; display: flex; flex-direction: column; gap: 14px;
}
.screen .logo { font: 500 26px/1 var(--serif); letter-spacing: -0.6px; color: #1F4A33; }
.screen .search {
  height: 40px; border-radius: 20px; background: #FFFFFF; border: 1px solid #E7E1D5;
  padding: 0 14px; display: flex; align-items: center; font-size: 12px; font-weight: 500; color: #62655C;
}
.screen .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.screen .chips span { padding: 6px 10px; border-radius: 14px; background: #F2EEE5; font-size: 11px; font-weight: 500; }
.screen .label { font: 500 19px/1.2 var(--serif); }
.screen .card { border-radius: 20px; background: #FFFFFF; overflow: hidden; box-shadow: 0 8px 20px rgba(28, 31, 26, 0.07); }
.screen .card img { width: 100%; height: 140px; object-fit: cover; }
.screen .card div { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.screen .card strong { font: 500 16px/1.25 var(--serif); }
.screen .card span, .screen .meta { font-size: 11px; font-weight: 500; color: #62655C; }
.screen .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.screen .mini { border-radius: 16px; background: #FFFFFF; overflow: hidden; }
.screen .mini img { width: 100%; height: 64px; object-fit: cover; }
.screen .mini span { display: block; padding: 6px 8px; font-size: 11px; font-weight: 600; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.card {
  background: var(--surface); border-radius: 24px; padding: 24px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow);
}
.card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.icon-tile {
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--mint); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}

/* Screenshot slots */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
@media (min-width: 760px) { .shots { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.shots figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.shot-slot {
  width: 100%; max-width: 230px; aspect-ratio: 9 / 19.5;
  border-radius: 34px; border: 1px solid var(--line); background: var(--chip);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 16px; text-align: center; color: var(--muted);
}
.shots img {
  width: 100%; max-width: 230px; height: auto;
  border-radius: 24px; border: 1px solid var(--line);
  box-shadow: 0 12px 32px -18px rgba(0, 0, 0, .35);
}
.shots figcaption { font-size: 15px; color: var(--muted); text-align: center; }

/* Panels */
.panel {
  background: var(--mint); border-radius: 32px; padding: 32px;
  display: flex; flex-wrap: wrap; gap: 24px 40px;
}
@media (min-width: 700px) { .panel { padding: 40px; } }
.panel > * { flex: 1 1 300px; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.check {
  flex: 0 0 24px; height: 24px; margin-top: 2px; border-radius: 12px;
  background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center;
}
.warn {
  margin-top: 20px; border-radius: 18px; background: var(--warn-bg); color: var(--warn-ink);
  padding: 14px 18px; display: flex; gap: 12px; font-size: 15px; line-height: 1.55;
}
.warn svg { flex: 0 0 18px; margin-top: 4px; }
.warn p { margin: 0; }

.cta { text-align: center; padding: 24px 0 88px; }
.cta .stack { align-items: center; }
.cta .actions { justify-content: center; }

/* Support */
.page { padding-top: 40px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 48px; }
.contact {
  background: var(--mint); border-radius: 28px; padding: 28px;
  display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center;
}
@media (min-width: 700px) { .contact { padding: 28px 32px; } }
.contact > :first-child { flex: 999 1 420px; }
.contact > :last-child { flex: 1 1 240px; font-size: 15px; }
.contact p { margin: 0; color: var(--muted); }
.contact strong { color: var(--ink); }
.split { display: flex; flex-wrap: wrap; gap: 24px 32px; }
.split > :first-child { flex: 1 1 260px; }
.split > :last-child { flex: 999 1 520px; min-width: 0; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.faq summary {
  min-height: 56px; padding: 14px 20px; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-weight: 600; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 9px; height: 9px; margin-right: 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details p { margin: 0; padding: 0 20px 18px; font-size: 15px; color: var(--muted); }
.footnote-row {
  border-top: 1px solid var(--line); padding-top: 32px;
  display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; justify-content: space-between;
}
.footnote-row p { margin: 0; flex: 1 1 360px; color: var(--muted); }

/* Privacy (long-form) */
.prose { max-width: var(--prose); }
.prose h2 { margin: 48px 0 12px; }
.prose h3 { margin: 28px 0 8px; font-size: 1.3rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.toc { background: var(--surface); border-radius: 24px; padding: 20px 24px; box-shadow: var(--shadow); margin: 28px 0; }
.toc h2 { font-size: 1.2rem; margin: 0 0 6px; font-weight: 500; }
.toc ol { margin: 0; }
.table-scroll { overflow-x: auto; margin: 16px 0; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
tbody tr:last-child > * { border-bottom: none; }
thead th { background: var(--chip); font-weight: 600; }
hr { border: none; border-top: 1px solid var(--line); margin: 40px 0 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  padding-top: 28px; padding-bottom: 40px; font-size: 14px; color: var(--muted);
}
.site-footer p { margin: 0; }
.site-footer ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.meta { color: var(--muted); }

/* Analytics consent */
.site-footer .link-button {
  background: none; border: 0; padding: 0; font: inherit; color: var(--muted);
  text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer;
}
.site-footer .link-button:hover { color: var(--ink); }
.consent {
  position: fixed; z-index: 20; left: 16px; right: 16px; bottom: 16px;
  max-width: 40rem; margin: 0 auto; padding: 18px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .35);
}
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 18rem; font-size: 15px; line-height: 1.45; color: var(--muted); }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-small { padding: 10px 18px; font-size: 15px; font-family: inherit; min-height: 0; cursor: pointer; }
.btn-primary.btn-small { border: 0; }
