/* Uttermost site — near-black ground, warm off-white ink, one candlelight accent.
   Fraunces for display type (matches the app's wordmark), Inter for everything else. */
:root {
  --bg: #0A0A0B;
  --raise: #161618;
  --line: #1F1F22;
  --text: #F2F0EC;
  --soft: #CFCCC6;
  --muted: #8F8C87;
  --dim: #66645F;
  --accent: #E8B86A;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font: "Inter", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  --prose: 680px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--text); }
a:hover { color: var(--soft); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* ---------- header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 11, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: -0.4px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); }
.nav .pill {
  color: var(--bg); background: var(--text); height: 38px; padding: 0 16px; border-radius: 19px;
  display: inline-flex; align-items: center; font-weight: 600;
}
.nav .pill:hover { color: var(--bg); background: var(--soft); }
@media (max-width: 560px) { .nav .hide-sm { display: none; } .nav { gap: 20px; } }
@media (max-width: 400px) { .brand { font-size: 21px; gap: 8px; } .brand img { width: 28px; height: 28px; } .nav { gap: 16px; } .nav .pill { padding: 0 14px; } }

/* ---------- hero ---------- */
.hero { padding-block: 80px 0; text-align: center; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero .icon { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 18px 60px rgba(232, 184, 106, 0.12); }
.hero h1 { font-family: var(--serif); font-size: clamp(48px, 8.5vw, 92px); font-weight: 500; letter-spacing: -0.035em; line-height: 0.98; }
.hero .lede { max-width: 28ch; font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); }
.soon { margin-top: 6px; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 24px; border: 1px solid #2C2C2F; font-size: 15px; font-weight: 600; color: var(--soft); }
.soon i { width: 8px; height: 8px; border-radius: 4px; background: var(--accent); }

/* ---------- screenshot gallery ---------- */
.gallery { margin-top: 64px; padding-bottom: 8px; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 auto; width: min(280px, 68vw); height: auto; aspect-ratio: 660 / 1434; border-radius: 28px; border: 1px solid var(--line); scroll-snap-align: center; background: var(--raise); }

/* ---------- how it works ---------- */
.values { padding-block: 120px; }
.values h2 { font-family: var(--serif); font-size: clamp(36px, 4.8vw, 56px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.04; max-width: 16ch; }
.values .grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.values .item { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid #2C2C2F; }
.values .item svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 6px; }
.values .item h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.3px; }
.values .item p { font-size: 16px; color: var(--muted); }
@media (max-width: 760px) { .values .grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } .values { padding-block: 90px; } }

/* ---------- privacy band ---------- */
.band { padding-block: 0 140px; text-align: center; }
.band .wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.band svg { width: 32px; height: 32px; color: var(--accent); }
.band h2 { font-family: var(--serif); font-size: clamp(34px, 4.6vw, 52px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.04; max-width: 18ch; }
.band p { color: var(--muted); font-size: 18px; max-width: 40ch; }
.band a { font-size: 16px; font-weight: 600; text-underline-offset: 4px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 56px 48px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr)); gap: 40px; }
.foot h4 { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--dim); }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot ul a { color: var(--muted); text-decoration: none; font-size: 15px; overflow-wrap: anywhere; }
.foot ul a:hover { color: var(--text); }
.foot .about { display: flex; flex-direction: column; gap: 12px; }
.foot .about p { font-size: 15px; color: var(--dim); max-width: 30ch; }
.foot .legal { margin-top: 48px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--dim); }
@media (max-width: 640px) { .foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot .about { grid-column: 1 / -1; } }

/* ---------- document pages (privacy, terms, support) ---------- */
.doc { padding-block: 72px 120px; }
.doc .wrap { max-width: calc(var(--prose) + 48px); }
.doc header { display: flex; flex-direction: column; gap: 14px; padding-bottom: 36px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.doc h1 { font-family: var(--serif); font-size: clamp(42px, 6vw, 64px); font-weight: 500; letter-spacing: -0.035em; line-height: 1; }
.doc .updated { font-size: 15px; color: var(--dim); }
.doc .summary { font-size: 20px; color: var(--soft); line-height: 1.5; }
.doc h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; margin: 44px 0 12px; }
.doc p, .doc li { font-size: 17px; color: var(--muted); line-height: 1.65; }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 20px; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.doc ul + p { margin-top: 14px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--text); text-underline-offset: 3px; }
.doc .callout { margin-top: 28px; padding: 22px 24px; border-radius: 20px; background: var(--raise); border-left: 3px solid var(--accent); }
.doc .callout p { color: var(--soft); }

/* support FAQ */
.faq { margin-top: 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 18px; font-weight: 600; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; transition: transform 0.2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .a { padding: 0 0 22px; }
.contact { margin-top: 56px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.contact h2 { margin: 0; }
.contact .mail { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; overflow-wrap: anywhere; }

/* 404 */
.lost { min-height: 70vh; display: flex; align-items: center; text-align: center; }
.lost .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.lost h1 { font-family: var(--serif); font-size: clamp(64px, 12vw, 120px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.lost p { color: var(--muted); }
