/* zimoma.com — the app's own materials: its canvas grey, white paper, system blue, and the
   highlighter from the Welcome screen. System type throughout (the app is set in SF Pro). */
:root {
  --canvas: #f2f2f7;
  --paper: #ffffff;
  --ink: #000000;
  --ink-2: rgba(60, 60, 67, 0.72);
  --ink-3: rgba(60, 60, 67, 0.42);
  --hairline: rgba(60, 60, 67, 0.16);
  --blue: #007aff;
  --highlighter: #f4e7a1;
  --sheet-green: #cfe3cf;
  --sheet-yellow: #f1e3a3;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 10px 30px rgba(0, 0, 0, 0.07);
  --gutter: clamp(20px, 5vw, 56px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #000000;
    --paper: #1c1c1e;
    --ink: #ffffff;
    --ink-2: rgba(235, 235, 245, 0.7);
    --ink-3: rgba(235, 235, 245, 0.38);
    --hairline: rgba(84, 84, 88, 0.6);
    --blue: #0a84ff;
    --highlighter: rgba(255, 214, 10, 0.4);
    --sheet-green: #2f4a37;
    --sheet-yellow: #5a4d1c;
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 17px/1.47 -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* ── Top bar ─────────────────────────────────────────────── */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; display: block; box-shadow: 0 0 0 0.5px var(--hairline); }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { color: var(--ink-2); }

/* ── Hero ────────────────────────────────────────────────── */
.hero { display: grid; gap: 48px; align-items: center; padding-top: clamp(28px, 7vh, 88px); padding-bottom: clamp(48px, 9vh, 104px); }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 72px; } }

h1 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  /* Sized so the headline stays on its two lines, as on the Welcome screen. */
  font-size: clamp(38px, 11.6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  isolation: isolate;
}
h1 span { display: block; }
@media (min-width: 900px) { h1 { font-size: clamp(54px, 6.2vw, 80px); } }
/* The highlighter: one swipe under the last word, as on the app's Welcome screen. */
.hl { position: relative; display: inline-block; background: none; color: inherit; }
.hl::before {
  content: '';
  position: absolute;
  inset: 22% -0.14em 4% -0.1em;
  background: var(--highlighter);
  border-radius: 0.11em;
  transform: rotate(-1.3deg);
  transform-origin: left center;
  z-index: -1;
  animation: swipe 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s both;
}
@keyframes swipe { from { transform: rotate(-1.3deg) scaleX(0); } to { transform: rotate(-1.3deg) scaleX(1); } }

.lede { margin: 26px 0 0; max-width: 31em; font-size: clamp(18px, 2.1vw, 21px); line-height: 1.4; color: var(--ink-2); }

/* The capture bar from under the app's tab bar. */
.capture { margin-top: 34px; max-width: 460px; display: flex; align-items: center; gap: 8px; padding: 6px; background: var(--paper); border-radius: 30px; box-shadow: var(--shadow); }
.capture input { flex: 1; min-width: 0; height: 44px; padding: 0 6px 0 14px; border: 0; background: none; color: var(--ink); font: inherit; outline: none; }
.capture input::placeholder { color: var(--ink-3); }
.capture:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.capture button { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; cursor: pointer; }
.capture button:active { filter: brightness(0.9); }
.capture svg { width: 20px; height: 20px; }
.hint { margin: 12px 0 0 20px; font-size: 13px; color: var(--ink-3); }
.status { margin: 30px 0 0; font-size: 15px; font-weight: 600; color: var(--ink-2); }

/* The sheets from the app icon; the top one is the note. */
.stack { position: relative; width: min(100%, 372px); aspect-ratio: 5 / 6; margin: 0 auto; }
.sheet { position: absolute; inset: 0; border-radius: 34px; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sheet.green { background: var(--sheet-green); transform: rotate(-8deg) translate(-16px, 10px); }
.sheet.yellow { background: var(--sheet-yellow); transform: rotate(6.5deg) translate(18px, 4px); }
.sheet.note { background: var(--paper); box-shadow: var(--shadow); padding: 30px 28px; display: flex; flex-direction: column; overflow: hidden; }
.stack.saved .sheet.green { transform: rotate(-10.5deg) translate(-22px, 12px); }
.stack.saved .sheet.yellow { transform: rotate(8.5deg) translate(24px, 6px); }
.meta { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.meta svg { width: 16px; height: 16px; }
.meta .dot { color: var(--ink-3); font-weight: 400; }
.meta .ok { font-weight: 400; display: inline-flex; align-items: center; gap: 4px; }
.note-title { margin: 12px 0 0; font-size: clamp(24px, 3.4vw, 30px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.note-title.in { animation: arrive 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.note-body { margin: 14px 0 0; color: var(--ink-3); }

/* ── The two halves of the headline ──────────────────────── */
.halves { display: grid; gap: 56px; padding-bottom: clamp(56px, 10vh, 112px); }
@media (min-width: 900px) { .halves { grid-template-columns: 1fr 1fr; gap: 72px; } }
.halves h2 { margin: 0 0 6px; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.halves ul { margin: 0; padding: 0; list-style: none; }
.halves li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 18px 0; border-top: 1px solid var(--hairline); }
.halves li:first-child { border-top: 0; }
.tile { width: 44px; height: 44px; border-radius: 12px; background: var(--paper); color: var(--blue); display: grid; place-items: center; }
.tile svg { width: 22px; height: 22px; }
.halves strong { display: block; font-weight: 600; }
.halves p { margin: 2px 0 0; font-size: 15px; color: var(--ink-2); }

/* ── Footer ──────────────────────────────────────────────── */
footer { margin-top: auto; border-top: 1px solid var(--hairline); }
.foot { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 22px; padding-bottom: 30px; font-size: 13px; color: var(--ink-2); }
.foot a { color: var(--ink-2); }
.foot .grow { margin-right: auto; }

/* ── Reading pages (privacy, terms, help, AI) ────────────── */
.doc { max-width: 720px; padding-top: clamp(24px, 6vh, 64px); padding-bottom: 88px; }
.doc h1 { font-size: clamp(34px, 6vw, 52px); letter-spacing: -0.03em; line-height: 1.05; }
.doc .updated { margin: 12px 0 0; font-size: 15px; color: var(--ink-2); }
.doc h2 { margin: 44px 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }
.doc p, .doc li { color: var(--ink); }
.doc p { margin: 10px 0 0; }
.doc ul { margin: 10px 0 0; padding-left: 22px; }
.doc li { margin-top: 6px; }
.doc .card { margin-top: 18px; padding: 18px 20px; background: var(--paper); border-radius: 18px; }
.doc .card p:first-child { margin-top: 0; }
.doc dl { margin: 14px 0 0; }
.doc dt { margin-top: 16px; font-weight: 600; }
.doc dd { margin: 2px 0 0; color: var(--ink-2); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .hl::before, .note-title.in { animation: none; }
  .sheet { transition: none; }
}
