/* Tholin — tholin.app */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --rule: rgba(0, 0, 0, 0.08);
  --accent: #0071e3;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --button-bg: #1d1d1f;
  --button-ink: #ffffff;

  --radius: 28px;
  --gutter: 22px;
  --max: 1080px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --bg-alt: #101012; --card: #1c1c1e; --ink: #f5f5f7; --ink-2: #a1a1a6; --ink-3: #86868b;
    --rule: rgba(255, 255, 255, 0.12); --accent: #2997ff; --nav-bg: rgba(22, 22, 23, 0.72);
    --button-bg: #f5f5f7; --button-ink: #1d1d1f;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --bg-alt: #101012; --card: #1c1c1e; --ink: #f5f5f7; --ink-2: #a1a1a6; --ink-3: #86868b;
  --rule: rgba(255, 255, 255, 0.12); --accent: #2997ff; --nav-bg: rgba(22, 22, 23, 0.72);
  --button-bg: #f5f5f7; --button-ink: #1d1d1f;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* The home page is one long tour: its scroll bar is hidden. */
.home { scrollbar-width: none; }
.home::-webkit-scrollbar { display: none; }

/* Navigation: an island floating at the top of the page, on frosted glass. */
.nav {
  /* As tall as the app's toolbar capsules (36 points), so it sits among them in the tour's window. */
  position: fixed; top: 12px; left: 0; right: 0; z-index: 50; margin: 0 auto; width: min(430px, calc(100% - 24px)); height: 36px;
  border-radius: 18px; background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 0 0 0.5px var(--rule), 0 8px 24px rgba(0, 0, 0, 0.18);
}
.nav .wrap { display: flex; align-items: center; height: 100%; gap: 18px; max-width: none; padding: 0 4px 0 14px; }
.brand { display: flex; align-items: center; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 20px; margin-left: auto; font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.nav-links a { text-decoration: none; color: var(--ink); opacity: 0.8; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.pill {
  display: inline-flex; align-items: center; border-radius: 980px; padding: 4px 11px;
  font-size: 12px; font-weight: 400; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  background: var(--accent); color: #fff;
}
/* The bar's Download: the icon's burgundy. */
.nav .pill {
  padding: 6px 14px; font-size: 14px; font-weight: 600; color: #fbeff2;
  background: linear-gradient(180deg, #8c1a3a, #5c0b23);
  box-shadow: inset 0 0 0 0.5px rgba(255, 220, 230, 0.22), inset 0 1px 0 rgba(255, 230, 236, 0.18), 0 4px 14px rgba(106, 16, 40, 0.35);
  transition: filter 0.2s;
}
.nav .pill:hover { filter: brightness(1.15); }

/* Footer */
.footer { background: var(--bg-alt); border-top: 0.5px solid var(--rule); font-size: 12px; color: var(--ink-3); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding-top: 20px; padding-bottom: 20px; }
.footer nav { display: flex; gap: 20px; margin-left: auto; }
.footer a { text-decoration: none; color: var(--ink-2); }
.footer a:hover { color: var(--ink); text-decoration: underline; }

/* Entrances: a short rise, once. */
.rise { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.rise.in { opacity: 1; transform: none; }

/* Reading pages (support, privacy, terms) */
.doc { max-width: 720px; margin: 0 auto; padding: 96px var(--gutter) 96px; }
.doc .kicker { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.doc .kicker img { width: 30px; height: 30px; }
.doc h1 { font-size: clamp(36px, 5vw, 48px); letter-spacing: -0.015em; line-height: 1.08; margin: 18px 0 6px; font-weight: 600; }
.doc .updated { color: var(--ink-3); font-size: 14px; margin: 0 0 36px; }
.doc .summary { font-size: 21px; line-height: 1.42; letter-spacing: 0.011em; color: var(--ink); margin: 0 0 36px; }
.doc h2 { font-size: 22px; letter-spacing: 0.005em; margin: 40px 0 8px; font-weight: 600; }
.doc p, .doc li { color: var(--ink-2); }
.doc p { margin: 0 0 14px; }
.doc a { color: var(--accent); text-decoration: none; }
.doc a:hover { text-decoration: underline; }
.contact-card { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 24px 26px; border-radius: 22px; background: var(--bg-alt); margin: 0 0 40px; }
.contact-card .what { flex: 1 1 260px; }
.contact-card h2 { margin: 0 0 2px; font-size: 19px; }
.contact-card p { margin: 0; font-size: 15px; }
.contact-card .pill { font-size: 17px; padding: 11px 22px; }
.faq details { border-bottom: 0.5px solid var(--rule); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 22px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; }

/* Narrower screens */
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav .pill { margin-left: auto; }
  .home { scrollbar-width: auto; }
  .footer nav { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1 !important; transform: none !important; transition: none !important; }
}
