/* Spends — site styles. Light by default; dark only when chosen. No build step. */
:root {
  --paper: #FAFAF8;
  --ink: #111111;
  --muted: #6E6E73;
  --hair: rgba(17, 17, 17, .12);
  --hair-soft: rgba(17, 17, 17, .06);
  --card: #FFFFFF;
  --bezel: #111111;
  --shadow: 0 2px 4px rgba(17,17,17,.04), 0 40px 80px -32px rgba(17,17,17,.28);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --max: 1080px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #000000;
  --ink: #F5F5F7;
  --muted: #98989D;
  --hair: rgba(245, 245, 247, .16);
  --hair-soft: rgba(245, 245, 247, .08);
  --card: #0D0D0E;
  --bezel: #2A2A2C;
  --shadow: 0 0 0 1px rgba(245,245,247,.05), 0 40px 90px -30px rgba(0,0,0,.9);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--ink); color: var(--paper); }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2 { font-weight: 600; letter-spacing: -.035em; line-height: 1.04; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 680px; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { top: 12px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: saturate(1.6) blur(20px); -webkit-backdrop-filter: saturate(1.6) blur(20px); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; text-decoration: none; letter-spacing: -.01em; }
.brand svg { width: 26px; height: 26px; }
.site-nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.site-nav > a:not(.btn) { color: var(--muted); text-decoration: none; }
.site-nav > a:not(.btn):hover { color: var(--ink); }
.theme { display: grid; place-items: center; width: 36px; height: 36px; margin: 0 -6px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.theme:hover { color: var(--ink); background: var(--hair-soft); }
.theme svg { width: 20px; height: 20px; }
.theme .sun, :root[data-theme="dark"] .theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; }
@media (max-width: 640px) { .hide-sm { display: none; } .site-nav { gap: 16px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 500; font-size: 17px; text-decoration: none; transition: transform .2s var(--ease), opacity .2s; }
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 15px; }
.cta { margin-top: 36px; }
.center { text-align: center; justify-content: center; }
.meta { margin-top: 14px; color: var(--muted); font-size: 14px; }

/* Phone frames: real screenshots in a thin bezel */
.phone { position: relative; width: min(300px, 74vw); aspect-ratio: 720 / 1600; padding: 9px; border-radius: 46px; background: var(--bezel); box-shadow: var(--shadow); flex: none; }
.phone img { width: 100%; height: 100%; border-radius: 38px; object-fit: cover; }
.only-dark, :root[data-theme="dark"] .only-light { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.hero h1 { font-size: clamp(52px, 9vw, 96px); }
.soft { color: var(--muted); }
.lede { margin-top: 28px; max-width: 26ch; font-size: clamp(20px, 2.4vw, 24px); line-height: 1.4; color: var(--muted); }
.hero-phone { width: min(330px, 78vw); }

/* Features: one line each, then the picture */
.feature { padding: 120px 0; }
.feature .wrap { display: flex; align-items: center; justify-content: space-between; gap: 64px; }
.feature.flip .wrap { flex-direction: row-reverse; }
.feature h2 { font-size: clamp(40px, 6vw, 64px); }
.feature-copy p { margin-top: 18px; max-width: 22ch; font-size: clamp(19px, 2.2vw, 22px); line-height: 1.4; color: var(--muted); }
.feature-copy { flex: 1; }
.feature.flip .feature-copy { padding-left: 48px; }

/* Facts */
.facts { padding: 80px 0; border-top: 1px solid var(--hair-soft); border-bottom: 1px solid var(--hair-soft); }
.facts ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.facts li { display: flex; flex-direction: column; gap: 4px; }
.facts strong { font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.facts span { color: var(--muted); font-size: 15px; }

/* Privacy */
.privacy { padding: 140px 0; text-align: center; }
.privacy .lock { width: 40px; height: 40px; margin: 0 auto 24px; }
.privacy h2 { font-size: clamp(40px, 6vw, 64px); }
.privacy p { margin: 20px auto 0; max-width: 30ch; font-size: clamp(19px, 2.2vw, 22px); line-height: 1.4; color: var(--muted); }
.link { display: inline-block; margin-top: 24px; font-size: 17px; }

/* Install */
.install { padding: 120px 0; text-align: center; background: var(--card); }
.install h2, .faq h2 { font-size: clamp(40px, 6vw, 56px); }
.steps { list-style: none; padding: 0; margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 12px; border-radius: 50%; border: 1px solid var(--hair); color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.steps strong { font-size: 18px; font-weight: 600; }
.steps span { color: var(--muted); font-size: 15px; }
.install .cta { display: flex; margin-top: 48px; }
.more { margin: 40px auto 0; max-width: 520px; text-align: left; }
.path { font-weight: 500; }
.hash { display: block; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--hair-soft); font: 13px/1.5 var(--mono); word-break: break-all; }
pre { margin: 10px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--hair-soft); overflow-x: auto; font: 13px/1.5 var(--mono); }

/* Disclosures (install extras and FAQ) */
details { border-top: 1px solid var(--hair); }
details:last-child { border-bottom: 1px solid var(--hair); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-size: 22px; font-weight: 300; transition: transform .25s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { padding-bottom: 20px; color: var(--muted); }
details p + .hash, details .hash + pre { margin-bottom: 0; }
details pre { margin-bottom: 20px; }

.faq { padding: 120px 0; }
.faq h2 { margin-bottom: 40px; }

/* Footer */
.site-foot { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 24px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

/* Gentle reveal (site.js arms only what starts below the fold) */
.reveal.arm { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.arm.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal.arm { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* Small screens: stack, centre, keep the picture big */
@media (max-width: 820px) {
  .hero { padding: 40px 0 24px; }
  .hero .wrap, .feature .wrap, .feature.flip .wrap { flex-direction: column; text-align: center; gap: 40px; }
  .lede, .feature-copy p { margin-left: auto; margin-right: auto; }
  .hero .cta { display: flex; justify-content: center; }
  .feature { padding: 72px 0; }
  .feature.flip .feature-copy { padding-left: 0; }
  .facts ul { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .privacy, .install, .faq { padding: 88px 0; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
}

/* Privacy policy page */
.legal { padding: 48px 0 96px; }
.legal h1 { font-size: clamp(36px, 8vw, 56px); }
.legal .eff { margin-top: 14px; color: var(--muted); font-size: 15px; }
.legal .summary { margin-top: 36px; padding: 24px; border: 1px solid var(--hair); border-radius: 20px; background: var(--card); }
.legal .summary p { color: var(--ink); margin-top: 0; }
.legal h2 { font-size: 24px; letter-spacing: -.02em; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--hair-soft); }
.legal h3 { font-size: 17px; margin-top: 28px; }
.legal p, .legal ul { margin-top: 14px; color: var(--ink); }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal li::marker { color: var(--muted); }
.legal .muted { color: var(--muted); }
.legal table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--hair); }
.legal th { font-weight: 600; font-size: 13px; color: var(--muted); }
.legal .tablewrap { overflow-x: auto; }
.legal p, .legal li { line-height: 1.6; }
