/* Matryoshka site. Colors come from the app icon; type is the device's own
   rounded and system fonts, so the pages load no web fonts. */
:root {
  --red: #cc3e4a;
  --red-text: #b3313d;
  --amber: #e8a85c;
  --paper: #f5ecdf;
  --card: #fffaf3;
  --ink: #2b1f20;
  --muted: #6e5f5b;
  --line: #e2d6c8;
  --display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --red-text: #f07a84;
    --paper: #1c1516;
    --card: #2a2021;
    --ink: #f5ecdf;
    --muted: #b9a9a2;
    --line: #3d3132;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--body);
}
a { color: var(--red-text); text-underline-offset: 0.15em; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }

.page {
  max-width: 980px;
  margin: 0 auto;
  padding-block: 20px 0;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 19px var(--display); color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav { display: flex; gap: 18px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--red); color: #fff; text-decoration: none;
  font: 600 16px var(--body); padding: 13px 20px; border-radius: 12px; min-height: 48px;
}
.button:hover { filter: brightness(1.06); }
.small { font-size: 14px; color: var(--muted); }

/* Text pages: privacy and support */
.doc { max-width: 680px; padding-block: 40px 56px; }
.doc h1 { font: 800 clamp(30px, 6vw, 42px)/1.1 var(--display); margin: 0 0 8px; text-wrap: balance; }
.doc h2 { font: 700 21px/1.25 var(--display); margin: 36px 0 8px; text-wrap: balance; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.lede { font-size: 19px; color: var(--muted); }
.callout { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 20px 0; }
.callout p:last-child { margin-bottom: 0; }
.email { font: 600 17px var(--mono); overflow-wrap: anywhere; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font: 700 18px/1.35 var(--display); cursor: pointer; list-style-position: outside; }
.faq details p { margin: 10px 0 0; }
.version { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Home: the icon's nested boxes beside the promise, three features under it */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  padding-block: 56px 60px;
}
.hero h1 { font: 800 clamp(34px, 6vw, 54px)/1.05 var(--display); letter-spacing: -0.01em; margin: 0 0 16px; text-wrap: balance; }
.hero .lede { margin: 0 0 24px; max-width: 46ch; }
.hero p { margin: 0 0 12px; }
.nest { aspect-ratio: 1; width: 100%; max-width: 380px; justify-self: center; background: var(--red); border-radius: 22%; display: grid; place-items: center; }
.nest div { border-radius: 22%; display: grid; place-items: center; }
.n1 { width: 72%; height: 72%; background: #f5ecdf; }
.n2 { width: 78%; height: 78%; background: var(--amber); }
.n3 { width: 66%; height: 66%; background: var(--red); }
.n4 { width: 48%; height: 48%; background: #f5ecdf; }
.nest .tag { font: 600 clamp(10px, 1.6vw, 13px) var(--body); color: #2b1f20; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-bottom: 8px; }
.features div { padding: 24px 24px 28px; border-left: 1px solid var(--line); }
.features div:first-child { border-left: 0; padding-left: 0; }
.features h2 { font: 700 18px/1.3 var(--display); margin: 0 0 6px; }
.features p { margin: 0; color: var(--muted); font-size: 16px; }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 36px 40px; }
  .nest { max-width: 240px; }
  .features { grid-template-columns: 1fr; }
  .features div, .features div:first-child { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0; }
  .features div:first-child { border-top: 0; }
}

.foot {
  display: flex; flex-wrap: wrap; gap: 6px 20px; padding-block: 22px 28px;
  border-top: 1px solid var(--line); font-size: 14px; color: var(--muted);
}
.foot a { color: inherit; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
