/* TO DO website (23 Oct 2026): the app's own calm look — cream page, white cards, the yellow tick.
   System fonts only (the same San Francisco as the app; no font is loaded from anywhere else). */

:root {
  --bg: #f6f4ef;
  --fg: #1c1c1e;
  --muted: #6e6e73;
  --card: #ffffff;
  --line: #e3e1dc;
  --accent: #f2b63c;
  --accent-soft: #fbefd2;
  --button: #1c1c1e;
  --button-ink: #ffffff;
  --link: #8a5a00;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141414; --fg: #f2f2f2; --muted: #a1a1a6; --card: #1f1f1f; --line: #2f2f31;
    --accent: #f2b63c; --accent-soft: #3a2f17; --button: #f2f2f2; --button-ink: #141414; --link: #f6c869;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141414; --fg: #f2f2f2; --muted: #a1a1a6; --card: #1f1f1f; --line: #2f2f31;
  --accent: #f2b63c; --accent-soft: #3a2f17; --button: #f2f2f2; --button-ink: #141414; --link: #f6c869;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 720px; }

/* Header and footer */
header.site { padding-block: 22px; }
header.site .wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.brand span { letter-spacing: 0.42em; font-size: 15px; font-weight: 500; }
nav.site { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
nav.site a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--fg); }

footer.site { border-top: 1px solid var(--line); margin-top: 80px; padding-block: 28px 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
footer.site a { color: var(--muted); }
footer.site .links { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
/* Home */
.hero { text-align: center; padding-block: 40px 30px; }
.hero .icon { width: 132px; height: 132px; margin: 0 auto 34px; border-radius: 30px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12); }
.hero h1 { font-size: clamp(38px, 7vw, 66px); line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 18px; text-wrap: balance; font-weight: 650; }
.hero p { color: var(--muted); font-size: clamp(18px, 2.4vw, 21px); max-width: 34em; margin: 0 auto 30px; text-wrap: pretty; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--button); color: var(--button-ink); border-radius: 999px; padding: 13px 24px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.02em; border: 0; cursor: pointer;
}
.button.quiet { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.button[aria-disabled="true"] { opacity: 0.55; cursor: default; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 56px; }
.features figure { margin: 0; border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06); }
.features img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
@media (max-width: 760px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 460px) { .features { grid-template-columns: minmax(0, 1fr); } }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 34px clamp(22px, 5vw, 48px); margin-top: 56px; text-align: center; }
.panel h2 { font-size: clamp(28px, 4.5vw, 40px); letter-spacing: -0.02em; margin: 0 0 10px; text-wrap: balance; }
.panel p { color: var(--muted); max-width: 36em; margin: 0 auto; }
.tick { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 14px; }

/* Text pages (privacy, terms, support) */
.page h1 { font-size: clamp(34px, 6vw, 48px); letter-spacing: -0.02em; line-height: 1.1; margin: 24px 0 6px; }
.page .updated { color: var(--muted); margin: 0 0 30px; }
.page h2 { font-size: 21px; margin: 34px 0 6px; letter-spacing: -0.005em; }
.page p, .page li { text-wrap: pretty; }
.page .lead { font-size: 19px; }
.note { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; color: var(--muted); font-size: 15px; margin-top: 34px; }

.mailbox { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 18px 0 8px; }
.mailbox .address { font-size: 19px; font-weight: 600; user-select: all; overflow-wrap: anywhere; min-width: 0; }
.mailbox .copy { margin-left: auto; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 2px; color: var(--fg); }
