/* Money Note — site styles.
 *
 * The app's own look, not a marketing theme: iOS grouped background, white inset
 * cards, one accent blue, and colour only where it carries meaning (income green,
 * expense red, card debt amber). Every value comes from specs/design/theme.jsx
 * (the "soft" corner set) — the same values the app's colorsets use — and follows
 * the system light/dark setting, as the app does by default.
 */

:root {
  color-scheme: light dark;

  --bg:        #F2F2F7;
  --card:      #FFFFFF;
  --card2:     #F2F2F7;
  --label:     #1C1C1E;
  --label2:    rgba(60,60,67,.6);
  --label3:    rgba(60,60,67,.32);
  --sep:       rgba(60,60,67,.13);
  --accent:    #007aff;
  --accent-on: #fff;
  --income:    #1ba24a;
  --expense:   #e0362c;
  --warn:      #bd7b00;
  --income-bg: rgba(27,162,74,.10);
  --expense-bg:rgba(224,54,44,.09);
  --tile:      #ECECF1;
  --tile-glyph:#4F4F55;
  --accent-tile: #F2F2F7;
  --frame:     #1C1C1E;
  --shadow:    0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);

  --r-card: 16px;
  --r-tile: 9px;
  --r-btn:  13px;
  --r-pill: 12px;
  --maxw:   1040px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  /* Money in the app is SF Rounded with monospaced digits (Typography.swift). */
  --font-money: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #000000;
    --card:      #1C1C1E;
    --card2:     #2C2C2E;
    --label:     #FFFFFF;
    --label2:    rgba(235,235,245,.62);
    --label3:    rgba(235,235,245,.32);
    --sep:       rgba(84,84,88,.55);
    --accent:    #0a84ff;
    --accent-on: #fff;
    --income:    #30d158;
    --expense:   #ff453a;
    --warn:      #ff9f0a;
    --income-bg: rgba(48,209,88,.16);
    --expense-bg:rgba(255,69,58,.16);
    --tile:      rgba(120,120,128,.32);
    --tile-glyph:rgba(235,235,245,.82);
    --accent-tile: rgba(120,120,128,.3);
    --frame:     #3A3A3C;
    --shadow:    none;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

:lang(zh) body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.i { display: block; flex-shrink: 0; }
.money { font-family: var(--font-money); font-variant-numeric: tabular-nums; white-space: nowrap; }
.income  { color: var(--income); }
.expense { color: var(--expense); }
.warn    { color: var(--warn); }

.wrap {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
}

/* ---------------------------------------------------------------- header */
.topbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 0 6px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--label); }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; display: block; }
.topbar .sub { color: var(--label2); font-size: .82rem; margin-left: auto; }
/* Language picker drawn as an iOS segmented control. */
.langs {
  display: inline-flex; flex-wrap: wrap; gap: 2px; margin: 8px 0 0; padding: 2px;
  background: var(--tile); border-radius: 9px;
}
.langs a {
  font-size: .8rem; font-weight: 500; color: var(--label);
  padding: 4px 12px; border-radius: 7px;
}
.langs a:hover { text-decoration: none; background: var(--card2); }
.langs a[aria-current="true"] { background: var(--card); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* ------------------------------------------------------------------ hero */
.hero {
  display: grid; gap: 40px; align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 44px 0 12px;
}
.hero .icon { width: 96px; height: 96px; border-radius: 22px; display: block; margin: 0 0 18px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.badge {
  display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--label2); background: var(--card); border-radius: 999px; padding: 5px 12px; margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 3.5rem); line-height: 1.04;
  margin: 0 0 10px; letter-spacing: -.025em; font-weight: 800;
}
.hero .tagline { font-size: clamp(1.1rem, 2.6vw, 1.32rem); font-weight: 600; color: var(--accent); margin: 0 0 16px; line-height: 1.35; }
.hero .lede { color: var(--label2); max-width: 560px; margin: 0; font-size: 1.04rem; }

.cta { margin: 28px 0 0; }
/* Apple "Download on the App Store" lockup — black badge, same as the other vuba.one apps. */
.btn {
  display: inline-flex; align-items: center; gap: 11px;
  background: #000; color: #fff;
  border: 1px solid rgba(255,255,255,.24); border-radius: 14px;
  padding: 9px 20px 10px;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn .applemark { width: 27px; height: 27px; fill: #fff; flex: 0 0 auto; margin-top: -4px; }
.btn .lockup { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.08; white-space: nowrap; }
.btn .lockup small { font-size: .8rem; }
.btn .lockup strong { font-size: 1.42rem; font-weight: 600; letter-spacing: -.015em; }
.btn.disabled {
  background: var(--card); color: var(--label2); font-weight: 600; font-size: .98rem;
  border: 0; border-radius: var(--r-btn); cursor: default; padding: 13px 22px;
}
.cta .note { color: var(--label2); font-size: .86rem; margin: 12px 0 0; }

/* ---------------------------------------------------- the Overview mock-up */
.phone {
  width: 324px; border-radius: 50px; padding: 9px;
  background: var(--frame);
  box-shadow: 0 30px 60px rgba(0,0,0,.18), 0 8px 18px rgba(0,0,0,.10);
}
.screen {
  position: relative; height: 672px; overflow: hidden;
  border-radius: 41px; background: var(--bg); text-align: left;
  padding: 0 14px; font-size: 13px; line-height: 1.3; user-select: none;
}
.status { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 12px 0 18px; font-weight: 600; font-size: 12.5px; }
.status .island { width: 78px; height: 23px; border-radius: 12px; background: #000; }
.status .bars { width: 38px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, var(--label) 0 62%, transparent 62% 70%, var(--label) 70% 100%); opacity: .9; }
.scr-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 8px; }
.scr-head .large { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.round-btn { width: 30px; height: 30px; border-radius: 50%; background: var(--card); color: var(--accent); display: grid; place-items: center; }
.screen .cap { margin: 0 2px; font-size: 10.5px; font-weight: 600; letter-spacing: .03em; color: var(--label2); }
.screen .big { margin: 0 2px; font-size: 31px; font-weight: 700; letter-spacing: -.5px; line-height: 1.2; }
.screen .assets { margin: 2px 2px 12px; font-size: 10.5px; color: var(--label2); }
.screen .assets b { color: var(--label); font-weight: 600; }
.screen .assets b.warn { color: var(--warn); }

.m-card { background: var(--card); border-radius: var(--r-card); }
.screen .m-card { border-radius: 13px; }
.p-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 9px 11px 8px; border-bottom: .5px solid var(--sep); font-size: 12px; }
.p-head span { color: var(--label2); font-size: 10.5px; white-space: nowrap; }
.p-cols { display: grid; grid-template-columns: 1fr 1fr; }
.p-cols > div { padding: 8px 11px 10px; min-width: 0; }
.p-cols > div + div { border-left: .5px solid var(--sep); }
.p-cols .lbl { display: flex; align-items: center; gap: 5px; color: var(--label2); font-size: 11px; margin-bottom: 3px; }
.p-cols b { display: block; font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.mini { width: 16px; height: 16px; border-radius: 5px; display: grid; place-items: center; }
.mini.in { background: var(--income-bg); color: var(--income); }
.mini.out { background: var(--expense-bg); color: var(--expense); }

.grp { display: flex; justify-content: space-between; align-items: flex-end; margin: 14px 4px 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .03em; color: var(--label2); }
.grp .acc { color: var(--accent); font-size: 12px; font-weight: 500; letter-spacing: 0; }

.rows .row { display: flex; align-items: center; gap: 9px; padding: 8px 8px 8px 10px; position: relative; }
.rows .row + .row::before { content: ""; position: absolute; top: 0; left: 49px; right: 0; border-top: .5px solid var(--sep); }
.screen .tile { width: 30px; height: 30px; border-radius: 9px; }
.rows .who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.rows .name { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows .sub { font-size: 10px; color: var(--label2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows .is-card .sub { color: var(--warn); white-space: normal; }
.rows .amt { font-size: 12px; font-weight: 600; }
.rows .chev { color: var(--label3); }
.rows .when { display: flex; flex-direction: column; align-items: flex-end; padding-right: 4px; }

.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 64px;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: start;
  padding: 7px 4px 0; background: var(--card); border-top: .5px solid var(--sep);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--label2); min-width: 0; }
.tab small { font-size: 8.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tab.on { color: var(--accent); }
.tab.plus { position: relative; }
.tab .fab {
  position: absolute; top: -24px; width: 50px; height: 50px; border-radius: 50%;
  background: var(--accent); color: var(--accent-on); display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(0,122,255,.35);
}

/* ---------------------------------------------------------------- tiles */
/* IconTile from theme.jsx: rounded square, radius ≈ 0.32 × size. */
.tile {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--tile); color: var(--tile-glyph);
}
.tile.accent { background: var(--accent-tile); color: var(--accent); }
.tile.in  { background: var(--income-bg); color: var(--income); }
.tile.out { background: var(--expense-bg); color: var(--expense); }

/* -------------------------------------------------------------- sections */
section { padding: 52px 0 4px; }
h2 { font-family: var(--font-display); font-size: clamp(1.45rem, 3.4vw, 1.8rem); line-height: 1.2; margin: 0 0 18px; letter-spacing: -.02em; font-weight: 700; }
.body { color: var(--label2); max-width: 620px; margin: -6px 0 20px; }

.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--card); border-radius: var(--r-card); padding: 18px 18px 20px; box-shadow: var(--shadow); }
.card .tile { margin-bottom: 14px; }
.card h3 { font-size: 1.02rem; margin: 0 0 6px; line-height: 1.3; }
.card p { margin: 0; color: var(--label2); font-size: .93rem; }

.split { display: grid; gap: 28px 48px; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: center; }
.split .body { margin: 0; }
.period-card { padding: 16px 16px 14px; box-shadow: var(--shadow); }
.period-card .cap { margin: 0 0 10px; font-size: .76rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--label2); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 4px; }
.days span {
  height: 34px; width: 34px; justify-self: center; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--font-money); font-variant-numeric: tabular-nums; font-size: .84rem;
}
.days .on { background: var(--accent); color: var(--accent-on); font-weight: 700; }
.now { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: .5px solid var(--sep); font-size: .93rem; }
.now span { color: var(--label2); }
.period-card .hint { margin: 10px 0 0; color: var(--label2); font-size: .8rem; line-height: 1.45; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { background: var(--card); border-radius: var(--r-card); padding: 18px 18px 20px; box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: counter(step);
  width: 30px; height: 30px; border-radius: 50%; margin-bottom: 12px;
  background: var(--accent); color: var(--accent-on); font-weight: 700; font-size: .95rem;
  font-family: var(--font-money); display: grid; place-items: center;
}
.step h3 { margin: 0 0 5px; font-size: 1.02rem; }
.step p { margin: 0; color: var(--label2); font-size: .93rem; }

/* Inset grouped list, hairline separators inset past the tile — as in the app. */
.list { list-style: none; margin: 0; padding: 0; box-shadow: var(--shadow); }
.list li { display: flex; gap: 14px; align-items: center; padding: 13px 16px; position: relative; }
.list li + li::before { content: ""; position: absolute; top: 0; left: 68px; right: 0; border-top: .5px solid var(--sep); }
.list .tile { width: 36px; height: 36px; }
.list strong { display: block; font-size: 1rem; }
.list .sub { display: block; color: var(--label2); font-size: .9rem; }

.panel { display: flex; gap: 16px; align-items: flex-start; padding: 20px; box-shadow: var(--shadow); }
.panel p { margin: 0 0 10px; }
.panel a { font-weight: 600; }

/* "(Learn more)" on a feature card and the note it points to, at the foot of the page. */
.fn-ref { font-weight: 600; white-space: nowrap; }
.footnote {
  margin: 36px 0 0; padding: 14px 16px; border-radius: var(--r-card);
  scroll-margin-top: 72px;   /* land near the top, well clear of the floating button at the bottom */
  color: var(--label2); font-size: .86rem; line-height: 1.55;
  /* Always a box (transparent) so lighting it up never shifts the layout. */
  outline: 1.5px solid transparent;
  transition: background-color 1.2s ease, outline-color 1.2s ease, color 1.2s ease;
}
.footnote strong { color: var(--label); font-weight: 600; }
/* Lit only by a click on "(Learn more)" — site.js adds .lit, then takes it off after a
   few seconds and the transition fades it back. A reload or a shared #link does nothing. */
.footnote.lit {
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
  outline-color: color-mix(in srgb, var(--accent) 55%, transparent);
  color: var(--label);
  transition-duration: .25s;
  animation: fn-pulse 1.1s ease-out 2;
}
@keyframes fn-pulse {
  from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 40%, transparent); }
  to   { box-shadow: 0 0 0 14px transparent; }
}

/* --------------------------------------------------------- privacy page */
.doc { padding: 16px 0 0; max-width: 760px; }
.doc h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 5vw, 2.5rem); margin: 10px 0 4px; letter-spacing: -.025em; line-height: 1.15; }
.doc .updated { color: var(--label2); font-size: .9rem; margin: 0 0 24px; }
.doc h2 { font-size: 1.2rem; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--label2); }
.doc p { margin: 0 0 14px; }
.doc strong { color: var(--label); font-weight: 600; }
.doc ul { margin: 0 0 14px; padding-left: 20px; }
.doc li { margin-bottom: 9px; }
.doc-card { padding: 4px 20px 6px; box-shadow: var(--shadow); }
.doc-card h2 { margin-top: 16px; }
.doc .lead { color: var(--label); }
.mailto {
  display: inline-block; background: var(--card); border-radius: var(--r-btn);
  padding: 11px 18px; font-weight: 600; box-shadow: var(--shadow);
}
.mailto:hover { text-decoration: none; }
.backlink { display: inline-block; font-size: .92rem; padding: 14px 0 0; }

/* ------------------------------------------- floating "send a message" button
 *
 * Same behaviour as OpenRead's: a <details> pinned bottom-left of the visible
 * viewport, clear of the iOS home indicator and a landscape notch. Styled as the
 * app's own ＋ button — solid accent, white glyph, soft blue shadow.
 */
.fab { position: fixed; left: 16px; bottom: 16px; z-index: 70; }
@supports (padding: env(safe-area-inset-bottom)) {
  .fab {
    left:   calc(16px + env(safe-area-inset-left));
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}
.fab > summary {
  list-style: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px 12px 15px; border-radius: 999px;
  background: var(--accent); color: var(--accent-on);
  font-weight: 600; font-size: .95rem; line-height: 1;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 8px 22px rgba(0,122,255,.32), 0 2px 6px rgba(0,0,0,.12);
}
.fab > summary::-webkit-details-marker { display: none; }
.fab > summary::marker { content: ""; }
.fab > summary:hover { filter: brightness(1.06); }
.fab > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.fab[open] > summary { background: var(--card); color: var(--label); box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.fab-ico { width: 19px; height: 19px; fill: currentColor; flex: 0 0 auto; }

.fab-panel {
  position: absolute; bottom: calc(100% + 10px); left: 0;
  width: min(360px, calc(100vw - 32px)); max-height: min(72vh, 580px); overflow-y: auto;
  background: var(--card); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.08);
  padding: 16px 16px 18px;
  animation: fab-in .16s ease-out;
}
@media (prefers-color-scheme: dark) { .fab-panel { box-shadow: 0 0 0 .5px var(--sep), 0 24px 60px rgba(0,0,0,.6); } }
@keyframes fab-in { from { opacity: 0; transform: translateY(6px); } }

.fab-head { display: flex; align-items: center; gap: 10px; }
.fab-head strong { font-size: 1.05rem; }
/* Hidden until site.js announces itself, so it is never a button that does nothing. */
.fab-x { display: none; }
html.js .fab-x {
  display: grid; place-items: center; margin-left: auto;
  width: 28px; height: 28px; border-radius: 50%; border: 0;
  background: var(--tile); color: var(--label2);
  font: inherit; font-size: .8rem; font-weight: 700; line-height: 1; cursor: pointer;
}
.fab-x:hover { color: var(--label); }
.fab-intro { margin: 6px 0 4px; font-size: .88rem; color: var(--label2); line-height: 1.45; }

@media (max-width: 400px) {
  .fab > summary { padding: 14px; }
  .fab-txt {
    position: absolute; width: 1px; height: 1px; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
}

/* ------------------------------------------------------------ feedback form */
.fb-form { margin: 0; }
.fb-lab {
  display: block; margin: 14px 0 6px;
  font-size: .74rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  color: var(--label2);
}
.fb-input {
  width: 100%; background: var(--card2); color: var(--label);
  border: 0; border-radius: 10px; padding: 11px 12px;
  font: inherit; font-size: .95rem;
}
.fb-input::placeholder { color: var(--label3); }
.fb-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
textarea.fb-input { min-height: 92px; line-height: 1.5; resize: vertical; }

.fb-kinds { border: 0; margin: 0; padding: 0; min-width: 0; }
.fb-kinds legend { padding: 0; }
/* iOS segmented control over two real radios. */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 2px; background: var(--tile); border-radius: 9px; }
.seg label { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 6px 10px; border-radius: 7px; font-size: .88rem; font-weight: 500; color: var(--label); }
.seg input:checked + span { background: var(--card); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
@media (prefers-color-scheme: dark) { .seg input:checked + span { background: #636366; } }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }

/* The honeypot. Off-screen for everyone, out of the tab order, aria-hidden. */
.fb-hp {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.fb-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.fb-send {
  background: var(--accent); color: var(--accent-on);
  border: 0; border-radius: var(--r-btn); padding: 11px 22px;
  font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
}
.fb-send:hover { filter: brightness(1.06); }
.fb-send:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.fb-mine { font-size: .88rem; }
.fb-note { margin: 12px 0 0; font-size: .78rem; line-height: 1.5; color: var(--label2); }

.fb-page { padding: 4px 18px 20px; box-shadow: var(--shadow); }
.fb-ok { padding: 18px 20px; box-shadow: var(--shadow); }
.fb-ok p { margin: 0 0 10px; color: var(--label2); }
.fb-ok strong { color: var(--income); }
.fb-ok a { font-weight: 600; }
.doc .fb-bad {
  background: var(--expense-bg); color: var(--expense);
  border-radius: 12px; padding: 12px 14px;
}
.fb-bad a { color: var(--expense); text-decoration: underline; }
.doc .fb-empty { color: var(--label3); }

/* ------------------------------------------------- a visitor's own messages */
.fb-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.doc .fb-item { background: var(--card); border-radius: var(--r-card); padding: 14px 16px 16px; margin: 0; box-shadow: var(--shadow); }
.doc .fb-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.fb-tag { font-size: .74rem; font-weight: 600; border-radius: 999px; padding: 3px 10px; }
.fb-tag-idea    { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.fb-tag-problem { background: var(--expense-bg); color: var(--expense); }
.fb-date { font-size: .8rem; color: var(--label2); }
.doc .fb-body { margin: 0; color: var(--label); font-size: .95rem; overflow-wrap: anywhere; }
.doc .fb-from { margin: 8px 0 0; font-size: .84rem; }

/* ---------------------------------------------------------------- footer */
footer {
  margin-top: 60px; padding: 24px 0 max(40px, env(safe-area-inset-bottom));
  border-top: .5px solid var(--sep); color: var(--label2); font-size: .86rem;
}
footer p { margin: 0 0 6px; }
footer a { color: var(--label2); text-decoration: underline; text-decoration-color: var(--label3); }
/* Past this width the wrap's margin no longer keeps the floating button clear of the
   footer text, so give the footer room to sit above it. */
@media (max-width: 1180px) { footer { padding-bottom: 96px; } }

/* ------------------------------------------------------------ narrow */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 30px; }
  .hero .icon { margin: 0 auto 18px; }
  .hero .lede { margin: 0 auto; }
  .phone { margin: 8px auto 0; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .phone { width: 100%; max-width: 324px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
  .fab-panel { animation: none; }
  .footnote.lit { animation: none; }
}

