/* Light paper theme only: the art and screenshots are cream, like the app's paper screens. */
:root {
  color-scheme: light;
  --paper: #f7f2e9;
  --paper-2: #efe7d8;
  --ink: #26211c;
  --ink-soft: #6b6258;
  --accent: #b03a37;
  --card: #fffdf8;
  --line: #e2d8c6;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 22px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; margin-left: 18px; }
.top nav a:hover { color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding: 36px 0 56px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.01em; }
h1 em, h2 em { color: var(--accent); font-style: italic; }
.lede { font-size: 19px; color: var(--ink-soft); max-width: 30em; margin: 20px 0 28px; }
.cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; text-decoration: none;
  border-radius: 12px; padding: 10px 20px 10px 16px; border: 1px solid #a6a6a6;
}
.badge svg { width: 26px; height: 32px; fill: #fff; }
.badge span { display: flex; flex-direction: column; line-height: 1.1; }
.badge small { font-size: 11px; letter-spacing: 0.02em; }
.badge b { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.note { color: var(--ink-soft); font-size: 15px; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art .phone { width: min(330px, 78%); border-radius: 28px; box-shadow: 0 30px 60px -25px rgba(60, 35, 20, 0.45); }
.hero-art .margo { position: absolute; width: 42%; left: -2%; bottom: -6%; filter: drop-shadow(0 10px 14px rgba(60, 35, 20, 0.25)); }

/* Endpaper band */
.band { height: 64px; background: url(img/endpaper-oxblood.webp) center / 256px repeat; }
.band.forest { background-image: url(img/endpaper-forest.webp); }

/* Features */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 36em; margin: 0 auto 44px; }
h2 { font-size: clamp(30px, 4.4vw, 44px); }
.section-head p { color: var(--ink-soft); margin: 14px 0 0; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.feature img { width: 100%; aspect-ratio: 720 / 760; object-fit: cover; object-position: top; background: var(--paper-2); }
.feature div { padding: 20px 22px 24px; }
.feature h3 { font-size: 23px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* Margo */
.margo-row { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: center; }
.margo-row img { width: 100%; max-width: 380px; margin: 0 auto; }
.margo-row p { color: var(--ink-soft); font-size: 18px; }

/* Privacy points */
.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.point { border-top: 2px solid var(--accent); padding-top: 14px; }
.point h3 { font-size: 20px; margin-bottom: 4px; }
.point p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* Final CTA */
.final { text-align: center; }
.final img { width: 220px; margin: 0 auto 10px; }
.final .cta { justify-content: center; margin-top: 24px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--ink-soft); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--ink-soft); margin-right: 16px; }

/* Legal and support pages */
.doc { max-width: 720px; padding: 24px 20px 64px; margin: 0 auto; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); margin: 12px 0 8px; }
.doc h2 { font-size: 24px; margin: 34px 0 8px; }
.doc .meta { color: var(--ink-soft); font-size: 15px; margin-bottom: 26px; }
.doc .short { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; }
.doc li { margin-bottom: 6px; }
.doc p, .doc li { overflow-wrap: anywhere; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 20px; text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .hero-art .phone { width: min(300px, 72%); }
  .hero-art .margo { width: 38%; left: 2%; }
  .features { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .margo-row { grid-template-columns: 1fr; text-align: center; }
  .margo-row img { max-width: 260px; }
  .points { grid-template-columns: 1fr 1fr; }
  section { padding: 56px 0; }
  .top nav a:not(.keep) { display: none; }
}
@media (max-width: 420px) {
  .points { grid-template-columns: 1fr; }
}
