/* My Swift Budget — privacy policy (2026-11-02). Shared part copied from the landing page's styles.css (tokens → buttons, footer): Tokens follow the iOS app's palette (AppTheme: indigo #4A50D8 / #7C83FF,
   positive #14975A / #3DD68C, lavender and navy grounds). The privacy policy site copies the shared part (tokens → footer)
   in its own styles.css: keep both in step. No web fonts, nothing loaded from other sites. */

:root {
  --bg: #F4F4FB; --bg-2: #ECECF8; --surface: #FFFFFF; --surface-2: #F6F6FC; --ink: #0E1030; --ink-2: #2B2E52;
  --muted: #5D6182; --line: rgba(14, 16, 48, .09); --line-2: rgba(14, 16, 48, .14);
  --accent: #4A50D8; --accent-2: #6A5CF0; --accent-soft: rgba(74, 80, 216, .10); --accent-ink: #FFFFFF;
  --pos: #14975A; --neg: #C93A36; --navy: #0A1A7E; --navy-2: #1B2AA6;
  --shadow: 0 1px 2px rgba(14, 16, 48, .05), 0 12px 32px -12px rgba(14, 16, 48, .16);
  --shadow-lg: 0 40px 80px -30px rgba(26, 30, 110, .45), 0 18px 40px -20px rgba(14, 16, 48, .25);
  --bar: rgba(244, 244, 251, .72); --glow-a: rgba(106, 92, 240, .30); --glow-b: rgba(61, 214, 140, .20);
  --frame: #1A1B2E; --r: 22px; --r-sm: 14px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0C0D24; --bg-2: #111233; --surface: #16183A; --surface-2: #1C1F47; --ink: #EEF0FF; --ink-2: #CDD1F5;
  --muted: #9EA3CC; --line: rgba(238, 240, 255, .08); --line-2: rgba(238, 240, 255, .14);
  --accent: #7C83FF; --accent-2: #9B8CFF; --accent-soft: rgba(124, 131, 255, .14); --accent-ink: #0C0D24;
  --pos: #3DD68C; --neg: #FF8A8A; --navy: #0A1A7E; --navy-2: #2433B8;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(238, 240, 255, .06);
  --bar: rgba(12, 13, 36, .70); --glow-a: rgba(124, 131, 255, .28); --glow-b: rgba(61, 214, 140, .14);
  --frame: #05050C;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif; color: var(--ink); margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Prose: justified on desktop, never automatic hyphenation (workspace rule), left-aligned on phones */
.prose { hyphens: manual; -webkit-hyphens: manual; }
@media (min-width: 1000px) { .prose { text-align: justify; } }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 600px) { .wrap { padding: 0 18px; } }

/* ---------- top bar: transparent at the top, frosted as soon as the page scrolls ---------- */
.bar { position: sticky; top: 0; z-index: 50; transition: background-color .25s, border-color .25s, backdrop-filter .25s; border-bottom: 1px solid transparent; padding-top: env(safe-area-inset-top); }
.bar.scrolled { background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom-color: var(--line); }
.bar-in { max-width: 1240px; margin: 0 auto; padding: 12px 28px; display: flex; align-items: center; gap: 24px; }
@media (max-width: 600px) { .bar-in { padding: 10px 18px; gap: 12px; } }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 2px 6px rgba(10, 26, 126, .3); }
.links { display: flex; gap: 4px; margin-left: 8px; }
.links a { color: var(--muted); font-size: 15px; font-weight: 500; padding: 7px 12px; border-radius: 999px; transition: color .2s, background-color .2s; }
.links a:hover { color: var(--ink); background: var(--accent-soft); text-decoration: none; }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
@media (max-width: 960px) { .links { display: none; } }
@media (max-width: 420px) { .brand span { display: none; } }

/* Light / Auto / Dark — three-way control (workspace rule), saved per browser, applied before the first paint */
.theme { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.theme button { appearance: none; border: 0; background: transparent; color: var(--muted); width: 34px; height: 30px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; transition: color .2s, background-color .2s, box-shadow .2s; }
.theme button .ic { width: 17px; height: 17px; }
.theme button:hover { color: var(--ink); }
.theme button[aria-checked="true"] { background: var(--surface); color: var(--accent); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
:root[data-theme="dark"] .theme button[aria-checked="true"] { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; padding: 12px 20px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-sm { font-size: 14px; padding: 8px 14px; }
.btn-sm .ic { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px -6px var(--accent); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { color: var(--ink); background: var(--surface); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #EEF0FF; }
@media (max-width: 420px) { .store-link span { display: none; } .store-link { padding: 8px 10px; } }
/* App Store button: black in light, white in dark — like Apple's badges */
.store { display: inline-flex; align-items: center; gap: 10px; background: #0B0B0F; color: #fff; padding: 10px 22px 10px 18px; border-radius: 14px; line-height: 1.1; font-size: 21px; font-weight: 600; letter-spacing: -.01em; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); transition: transform .15s ease; }
.store:hover { text-decoration: none; transform: translateY(-1px); }
.store .ic { width: 28px; height: 28px; }
.store small { display: block; font-size: 11.5px; font-weight: 500; opacity: .85; letter-spacing: 0; }
:root[data-theme="dark"] .store { background: #fff; color: #0B0B0F; }
.store-lg { font-size: 23px; padding: 12px 26px 12px 20px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); margin-top: 40px; }
.foot-in { display: grid; grid-template-columns: auto 1fr; gap: 14px 28px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.foot-brand img { border-radius: 7px; }
.foot-links { display: flex; gap: 22px; justify-content: flex-end; flex-wrap: wrap; }
.foot-links a { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.foot-links a:hover { color: var(--ink); }
.foot-links .ic { width: 17px; height: 17px; }
.foot-note { grid-column: 1 / -1; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* reveal on scroll (only when motion is welcome; content is visible without JS) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }


@media (max-width: 600px) { .foot-in { grid-template-columns: 1fr; } .foot-links { justify-content: flex-start; } }

/* ---------- privacy policy page (2026-11-02): a reading page — status card, sticky contents, one card per connection ---------- */
main.wrap { padding-top: 28px; padding-bottom: 40px; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9em; overflow-wrap: break-word; }
.doc-head { padding: 36px 0 28px; max-width: 900px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.doc-head h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.04; font-weight: 750; letter-spacing: -.035em; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 550; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.pill .ic { width: 16px; height: 16px; color: var(--accent); }
.pill-ok { color: var(--pos); } .pill-ok .ic { color: var(--pos); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.sq { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; }
.sq .ic { width: 21px; height: 21px; }
.sq.big { width: 54px; height: 54px; border-radius: 16px; } .sq.big .ic { width: 26px; height: 26px; }
.tone-ok, .tone-a { background: rgba(20, 151, 90, .12); color: var(--pos); }
.tone-b { background: var(--accent-soft); color: var(--accent); }
.tone-c { background: rgba(191, 90, 242, .13); color: #9B3FCB; }
.tone-w { background: rgba(255, 159, 10, .15); color: #B86A00; }
:root[data-theme="dark"] .tone-c { color: #D59BFF; } :root[data-theme="dark"] .tone-w { color: #FFB340; }

/* In Short — the status card pattern: header, text, tiles */
.short { padding: 28px; }
.sc-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.sc-head h2 { font-size: 24px; letter-spacing: -.02em; }
.sc-head .muted { font-size: 14.5px; }
.sc-text { font-size: 18px; color: var(--ink-2); margin-bottom: 20px; }
.tiles { display: flex; flex-wrap: wrap; gap: 12px; }
.tile { flex: 1 1 220px; display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.tile > div { min-width: 0; }
.tl { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.tile b { display: block; font-size: 16px; margin: 2px 0 3px; color: var(--ink); }
.te { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; }
.tiles-2 .tile { flex-basis: 320px; }
.tiles-4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .tiles-4 { grid-template-columns: 1fr; } }

/* body: sticky contents beside the text (one column on narrow screens) */
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; margin-top: 44px; align-items: start; }
.toc { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; padding: 6px 0; }
.toc-t { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 12px 10px; }
.toc a { color: var(--muted); font-size: 15px; padding: 7px 12px; border-radius: 10px; border-left: 2px solid transparent; transition: color .2s, background-color .2s; }
.toc a:hover { color: var(--ink); background: var(--accent-soft); text-decoration: none; }
.toc a.on { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.doc-body { min-width: 0; display: flex; flex-direction: column; gap: 44px; }
.block h2 { font-size: 28px; letter-spacing: -.025em; margin-bottom: 14px; }
.block > .prose, .block > p { font-size: 17px; color: var(--ink-2); }
.lead-in { margin: -4px 0 18px; font-size: 16px; }
.callout { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding: 18px; border-radius: var(--r-sm); background: var(--accent-soft); }
.callout b { display: block; margin-bottom: 4px; font-size: 16px; }
.callout p { color: var(--ink-2); font-size: 16px; }
.callout-warn { background: rgba(255, 159, 10, .10); }
.nots { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nots li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 15.5px; color: var(--ink-2); }
.nots li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.x { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(201, 58, 54, .12); color: var(--neg); }
.x .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.conn { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.conn + .conn { margin-top: 16px; }
.conn-head { display: flex; gap: 14px; align-items: center; }
.conn-head > div { min-width: 0; flex: 1; }
.conn-head h3 { font-size: 20px; letter-spacing: -.015em; }
.conn-head .muted { font-size: 14.5px; }
.conn > .prose { font-size: 16.5px; color: var(--ink-2); }
.conn .callout { margin-top: 0; }
.status { flex: none; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
.s-on { background: var(--accent-soft); color: var(--accent); }
.s-default { background: rgba(20, 151, 90, .12); color: var(--pos); }
.s-off { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line-2); }
.conn .tile { background: var(--surface-2); }
.duo { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px; }
.opt { padding: 16px 18px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); }
.opt-t { display: flex; align-items: center; gap: 8px; font-weight: 650; margin-bottom: 6px; }
.opt-t .ic { color: var(--accent); width: 18px; height: 18px; }
.opt p { color: var(--ink-2); font-size: 15.5px; }
.conn h4 { margin: 4px 0 -4px; font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.sends { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.send { padding: 16px 18px; border-radius: var(--r-sm); border-left: 3px solid var(--accent); background: var(--surface-2); }
.send b { display: block; margin-bottom: 6px; }
.send p { color: var(--ink-2); font-size: 15.5px; }
.tag { display: inline-block; margin-left: 4px; font-size: 12px; font-weight: 600; color: var(--muted); padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line-2); vertical-align: 2px; }
.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 15.5px; color: var(--ink-2); }
.note .ic { color: var(--pos); margin-top: 2px; }
.conn .note { margin-top: 0; }
.pair, .trio { display: grid; gap: 16px; }
.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mini { padding: 22px; }
.mini h2 { font-size: 19px; margin-bottom: 8px; }
.mini p { font-size: 15.5px; color: var(--ink-2); }
.contact { display: flex; gap: 18px; align-items: center; padding: 24px; }
.contact > div { flex: 1; min-width: 0; }
.contact h2 { font-size: 22px; margin-bottom: 4px; }
.contact .btn { flex: none; }
/* short card texts are left-aligned: justification needs long lines */
.mini .prose, .send .prose, .opt .prose, .callout .prose { text-align: left; }
@media (max-width: 1000px) {
  .doc { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 0; }
  .toc-t { width: 100%; padding: 0 0 4px; }
  .toc a { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
  .trio { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nots, .sends, .duo, .pair { grid-template-columns: 1fr; }
  .conn-head { flex-wrap: wrap; }
  .conn-head > div { flex: 1 1 calc(100% - 60px); }
  .conn-head .status { margin-left: 54px; }
  .tile .mono { font-size: 13px; }
  .contact { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .doc-head { padding: 18px 0 20px; }
  .short, .conn { padding: 18px; }
  .sc-text { font-size: 16.5px; }
  .tile { flex-basis: 100%; }
  .block h2 { font-size: 24px; }
  .doc-body { gap: 34px; }
}
@media (max-width: 420px) { .back-link span { display: none; } .back-link { padding: 8px 10px; } }
