/* seenapp.so — shared styles. Tokens mirror the app's theme (src/theme/themes.ts). */
:root {
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --canvas: #F7F5F0;
  --surface: #FFFFFF;
  --cream: #FBF5EA;
  --ink: #0A2540;
  --ink2: #425466;
  --ink3: #5B6B7E;
  --line: #E3E8EE;
  --line2: #D3DBE5;
  --pri: #3556C7;
  --pri-ink: #FFFFFF;
  --peach: #F8E6DB;
  --seal: #F2C7AE;
  --seal-ink: #94462A;
  --shadow: 0 1px 2px rgba(10,37,64,.06), 0 4px 16px rgba(10,37,64,.06);
  --gutter: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #14161B;
    --surface: #1C1F26;
    --cream: #26231E;
    --ink: #F4EFE6;
    --ink2: #CBC5BA;
    --ink3: #A39D92;
    --line: #2A2F38;
    --line2: #363C47;
    --pri: #91A9F2;
    --pri-ink: #0A1A3A;
    --peach: #3A2920;
    --seal: #3A2920;
    --seal-ink: #F2BC9F;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--pri); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--pri); outline-offset: 2px; border-radius: 6px; }
img, svg { max-width: 100%; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }

/* ---------- Header / footer ---------- */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--pri); display: inline-grid; place-items: center; flex: none; }
.brand .mark svg { width: 18px; height: 18px; }
.brand .wm { font: 500 24px/1 var(--serif); letter-spacing: -0.01em; }
.nav { margin-left: auto; display: flex; gap: 6px 22px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--ink2); text-decoration: none; font-size: 15px; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--pri); }

.site-footer { margin-top: 72px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--ink3); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.site-footer a { color: var(--ink3); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .copy { margin-left: auto; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); margin: 0; letter-spacing: -0.012em; }
h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; }
h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.2; }
h3 { font-size: 21px; line-height: 1.3; }
p { margin: 0; }
.lede { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; color: var(--ink2); max-width: 36em; }
.lbl { font: 600 12px/1.2 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink3); }
.muted { color: var(--ink3); }
.sm { font-size: 14.5px; line-height: 1.5; color: var(--ink3); }
code { font: 500 0.92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--cream); padding: 1px 6px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 14px; border: 1px solid transparent;
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn.pri { background: var(--pri); color: var(--pri-ink); }
.btn.pri:hover { filter: brightness(1.06); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line2); }
.btn.ghost:hover { border-color: var(--ink3); }

/* Store buttons: text only, no trademarked badge artwork. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 20px 8px 16px; border-radius: 14px;
  background: var(--ink); color: #fff; text-decoration: none; min-width: 190px;
}
@media (prefers-color-scheme: dark) { .store { background: #F4EFE6; color: #0A2540; } }
.store svg { width: 24px; height: 24px; flex: none; }
.store .t { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store .t small { font-size: 11px; letter-spacing: 0.02em; opacity: .75; }
.store .t b { font: 600 17px/1.15 var(--sans); }
.store:hover { opacity: .92; }

/* ---------- Landing ---------- */
.hero { padding: 48px 0 24px; display: grid; gap: 22px; }
@media (min-width: 880px) {
  .hero { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; padding: 72px 0 40px; }
}
.hero .copy { display: grid; gap: 22px; }
.hero .stores { margin-top: 6px; }
.hero .fine { color: var(--ink3); font-size: 14px; }

.envelope-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
  padding: 28px; display: grid; gap: 14px; max-width: 440px; justify-self: center; width: 100%;
}
.envelope-card .q { font: italic 400 23px/1.3 var(--serif); color: var(--ink); }
.envelope-card .sealed {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px;
  background: var(--peach); color: var(--seal-ink); font-size: 15px;
}
.envelope-card .sealed .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--seal); display: grid; place-items: center; flex: none; }
.envelope-card .sealed .dot svg { width: 18px; height: 18px; }

.features { padding: 40px 0 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: grid; gap: 8px; }
.feature h3 { font-size: 20px; }
.feature p { color: var(--ink2); font-size: 15.5px; }

.plain { padding: 56px 0 0; display: grid; gap: 14px; max-width: 64ch; }
.plain p { color: var(--ink2); }

/* ---------- Document pages (privacy, terms, support, delete) ---------- */
.doc { padding: 40px 0 0; display: grid; gap: 32px; }
@media (min-width: 960px) {
  .doc { grid-template-columns: 240px minmax(0, 68ch); gap: 56px; }
  .doc .toc { position: sticky; top: 24px; align-self: start; }
}
.doc-head { display: grid; gap: 12px; padding-bottom: 8px; }
.doc-head .meta { color: var(--ink3); font-size: 14.5px; }
.toc { display: grid; gap: 4px; align-content: start; }
.toc .lbl { margin-bottom: 8px; }
.toc a { color: var(--ink2); text-decoration: none; font-size: 14.5px; padding: 5px 0; display: block; border-left: 2px solid var(--line); padding-left: 12px; }
.toc a:hover { color: var(--ink); border-color: var(--pri); }
@media (max-width: 959px) {
  .toc { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2px 18px; }
  .toc .lbl { grid-column: 1 / -1; }
}
.prose { display: grid; gap: 14px; }
.prose h2 { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { margin-top: 10px; }
.prose p, .prose li { color: var(--ink2); }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.prose li::marker { color: var(--ink3); }
.prose b, .prose strong { color: var(--ink); font-weight: 600; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink2); }
.prose th { color: var(--ink); font-weight: 600; }
.note {
  background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; color: var(--ink2);
}
.note.warm { background: var(--peach); color: var(--seal-ink); border-color: transparent; }
.note.warm b { color: inherit; }
.steps { counter-reset: step; display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.steps li { position: relative; padding-left: 44px; color: var(--ink2); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--pri); color: var(--pri-ink); display: grid; place-items: center; font: 600 14px/1 var(--sans);
}
.steps li b { color: var(--ink); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--ink3); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details > :not(summary) { color: var(--ink2); padding-bottom: 16px; }
.faq details p + p { margin-top: 8px; }

/* /get */
.get { padding: 56px 0 0; display: grid; gap: 22px; justify-items: start; max-width: 60ch; }
.code-chip { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px dashed var(--line2); border-radius: 14px; padding: 12px 18px; }
.code-chip b { font: 600 24px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.12em; color: var(--ink); }
.hidden { display: none !important; }

/* 404 */
.center { min-height: 50vh; display: grid; place-content: center; text-align: center; gap: 14px; padding: 48px 0; }
