/* FLSH — the site uses the app's own identity: Instrument Serif for display, Jost for everything else,
   and the palette straight out of Theme.swift so the page and the product read as one thing. */
:root {
  --cream:  #F7F1E6;
  --paper:  #FFFDF9;
  --ink:    #1C1B19;
  --mute:   #8B857B;
  --line:   rgba(28, 27, 25, 0.14);
  --acc:    #7A1F1F;
  --gold:   #C9A24A;
  color-scheme: light dark;
}
:root:not([data-theme="light"]) { }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cream: #141311; --paper: #1F1D1A; --ink: #F0EAE0; --mute: #8F887C;
    --line: rgba(240, 234, 224, 0.14); --acc: #B4413F; --gold: #D8B564;
  }
}
:root[data-theme="dark"] {
  --cream: #141311; --paper: #1F1D1A; --ink: #F0EAE0; --mute: #8F887C;
  --line: rgba(240, 234, 224, 0.14); --acc: #B4413F; --gold: #D8B564;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: Jost, ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 680px; }
h1, h2, h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.8rem, 9vw, 5.2rem); line-height: 1.02; margin: 0 0 18px; }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.1; margin: 0 0 14px; }
h3 { font-size: 1.3rem; margin: 0 0 6px; }
p  { margin: 0 0 16px; max-width: 62ch; }
a  { color: inherit; }
em { font-style: italic; }
.mute { color: var(--mute); }

header.bar {
  position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line);
}
.bar .wrap { display: flex; align-items: center; gap: 14px; height: 62px; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark img { width: 28px; height: 28px; border-radius: 7px; }
.mark span { font-size: 1rem; letter-spacing: 0.24em; font-weight: 500; }
.bar nav { margin-left: auto; display: flex; gap: 22px; font-size: 0.92rem; }
.bar nav a { color: var(--mute); text-decoration: none; }
.bar nav a:hover { color: var(--ink); }
@media (max-width: 620px) { .bar nav { display: none; } }

.hero { padding: clamp(56px, 10vw, 104px) 0 0; }
.hero .lede { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--mute); max-width: 46ch; }
.cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 15px 26px;
       background: var(--ink); color: var(--cream); border-radius: 999px; text-decoration: none;
       font-weight: 500; letter-spacing: 0.02em; transition: transform .15s ease, opacity .15s ease; }
.cta:hover { transform: translateY(-1px); opacity: .92; }
.cta.ghost { background: transparent; color: var(--ink); border: 1.2px solid var(--line); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
         padding: 46px max(20px, calc((100vw - 1080px) / 2)) 8px; }
.strip img { width: clamp(200px, 22vw, 260px); height: auto; aspect-ratio: 620 / 1347; flex: 0 0 auto; border-radius: 22px; border: 1px solid var(--line);
             box-shadow: 0 18px 40px rgba(28,27,25,.13); scroll-snap-align: center; }
.strip::-webkit-scrollbar { height: 0; }

section { padding: clamp(52px, 8vw, 92px) 0; }
.rule { border-top: 1px solid var(--line); }
.grid { display: grid; gap: 34px 40px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 34px; }
.grid p { font-size: 0.97rem; color: var(--mute); margin: 0; }
.kicker { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute); margin-bottom: 14px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 30px; }
.tiles img { width: 100%; height: auto; aspect-ratio: 620 / 1347; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }

footer { border-top: 1px solid var(--line); padding: 40px 0 60px; font-size: 0.9rem; color: var(--mute); }
footer a { color: var(--mute); text-decoration: none; margin-right: 18px; }
footer a:hover { color: var(--ink); }

/* Long-form pages: privacy, terms, support. */
.doc h2 { font-size: 1.5rem; margin-top: 38px; }
.doc ul { padding-left: 20px; max-width: 62ch; }
.doc li { margin-bottom: 8px; color: var(--mute); }
.doc li strong { color: var(--ink); font-weight: 500; }
.doc .updated { font-size: 0.85rem; color: var(--mute); }
.callout { border: 1px solid var(--line); border-left: 3px solid var(--acc); background: var(--paper);
           padding: 16px 18px; border-radius: 8px; margin: 22px 0; }
.callout p { margin: 0; font-size: 0.95rem; }
