/* Unsubscribed! shared look: one file so the home, app and privacy pages can't drift apart. No external requests, system fonts only. */
/* tokens:start
   The brand's tokens. pay.unsubscribed.dev keeps a copy of this block in its own style.css (its CSP allows no other origin's
   CSS), and the wallet repo's drift test fails if a token here and there differ, light or dark. Change both together.
   data-theme only exists on the pay site's embedded view; here it is never set, so the device decides. */
:root {
  --bg: #f3f3ef; --surface: #e8e8e2; --fg: #1d1f1c; --muted: #575a54; --line: #d3d4cc;
  --accent: #c2410c; --on-accent: #fff;
  /* The receipt is paper in both themes, an object on the table. */
  --paper: #fbfbf8; --ink: #1d1f1c; --dim: #575a54; --red: #b93e0c; --rule: #c9cac2; --dots: #b4b5ad;
  --display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Roboto Mono", monospace;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 14px; /* containers; buttons use the same radius, focus rings 6px */
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15171a; --surface: #1e2125; --fg: #ecebe6; --muted: #a8aaa5; --line: #2d3036;
    --accent: #ff6a3d; --on-accent: #15171a; --paper: #e9e8e2;
  }
}
:root[data-theme="dark"] {
  --bg: #15171a; --surface: #1e2125; --fg: #ecebe6; --muted: #a8aaa5; --line: #2d3036;
  --accent: #ff6a3d; --on-accent: #15171a; --paper: #e9e8e2; color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }
/* tokens:end */

:root { --btn: var(--accent); --on-btn: var(--on-accent); }
/* StackSplit's install button keeps its own navy, from its icon. */
.app-stacksplit { --btn: #1a1f4d; --on-btn: #fff; }
@media (prefers-color-scheme: dark) { .app-stacksplit { --btn: #3a47b0; } }

html[data-lang="es"] .en, html:not([data-lang="es"]) .es { display: none !important; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 1.0625rem/1.65 var(--text);
}
main { max-width: 40rem; margin: 0 auto; padding: 1rem 1rem 4rem; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
b { font-weight: 650; }

/* frame:start
   The header and footer every page shares, pay.unsubscribed.dev included (it copies this block and the markup in
   site/wallet/terms/index.html). They line up with the page's column: --col wide, never closer than --gutter to the edge. */
:root { --col: 38rem; --gutter: 1rem; }
.masthead, .site-foot { margin-inline: max(var(--gutter), (100% - var(--col)) / 2); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.wordmark { font: 800 1.45rem/1 var(--display); letter-spacing: -0.035em; color: var(--fg); text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; min-height: 44px; }
.wordmark span { color: var(--accent); display: inline-block; transform: rotate(9deg) translateX(.04em); }
.masthead nav { display: flex; flex-wrap: wrap; justify-content: flex-end; margin: 0 -.6rem 0 auto; }
.masthead nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .6rem; color: var(--muted); font-size: .95rem;
  text-decoration: none; white-space: nowrap; }
.masthead nav a:hover { color: var(--fg); }
/* Where you are: underlined in the accent. */
.masthead nav a[aria-current] { color: var(--fg); text-decoration: underline 2px var(--accent); text-underline-offset: .35em; }
/* The footer opens with the receipt's seam: a dashed rule. */
.site-foot { margin-top: 0; margin-bottom: 0; padding: 1.25rem 0 2.5rem; border-top: 2px dashed var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.5rem; font-size: .95rem; color: var(--muted); }
.site-foot a { color: inherit; display: inline-flex; align-items: center; min-height: 44px; }
.site-foot .wordmark { font-size: 1.1rem; color: var(--fg); }
.site-foot .thanks { flex-basis: 100%; margin: .25rem 0 0; font: .85rem/1.5 var(--mono); }
@media (min-width: 48rem) { .site-foot .thanks { flex-basis: auto; margin: 0; } }
/* frame:end */

/* An app's subpage (privacy, delete-account, join): the way back to the app, for people who land here from Google Play. */
.back { margin: 0; font-size: .95rem; }
.back a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.back a:hover { color: var(--fg); text-decoration: underline; }

/* App pages */
.hero { display: flex; align-items: center; gap: 1rem; margin: 2rem 0 1.25rem; }
.hero img { width: 4.5rem; height: 4.5rem; border-radius: 22%; flex: none; }
h1 { font-size: clamp(2rem, 8vw, 2.75rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; margin: 2rem 0 .25rem; }
.hero h1 { margin: 0; }
.lead { font-size: 1.2rem; line-height: 1.55; margin: 0 0 1.75rem; }
.download {
  display: flex; align-items: center; justify-content: center; min-height: 3.5rem; padding: .75rem 1rem;
  background: var(--btn); color: var(--on-btn); border-radius: var(--r);
  text-decoration: none; font: 650 1.15rem/1.3 var(--display); text-align: center;
  transition: transform .15s ease-out, filter .15s ease-out;
}
.download:hover { filter: brightness(1.08); }
.download:active { transform: translateY(1px); }
.download:focus-visible { outline-color: var(--fg); }
.note { font-size: .95rem; color: var(--muted); margin: .6rem 0 0; text-align: center; }
h2 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; margin: 2.75rem 0 .6rem; }
p, ul, ol { margin: 0 0 1rem; }
ol, ul { padding-left: 1.4rem; }
li { margin: .4rem 0; }
ol li::marker { color: var(--accent); font-weight: 700; }
/* An app page's own links (privacy, source); the site footer follows them. */
main footer { margin-top: 2.5rem; font-size: .95rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
main footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* Privacy pages */
.date { color: var(--muted); margin: 0 0 2rem; }
.summary { background: var(--surface); border-radius: var(--r); padding: 1rem 1.25rem; }
.summary ul { margin: 0; padding-left: 1.2rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
