/* Abud Fin, style A ("Calm"). Light and dark follow the device (prefers-color-scheme).
   The token values are copied from mockups/viewer-stage1/option-a-groups.html (system fonts, no font files). */
:root {
  color-scheme: light dark;
  --bg: #F2F4F3; --surface: #FFFFFF; --fill: #E6EAE8; --side: #EAEEEC; --side-sel: rgba(27, 34, 32, .08);
  --ink: #1B2220; --ink-2: #56615D; --ink-3: #6A7570; --line: #DFE4E2;
  --accent: #2F64B5; --accent-soft: #E3EBF8; --pos: #1E7F4A;
  --warn-ink: #855000; --warn-bg: #FBEFD3; --mark: #FBE3A0;
  --c-cash: #1A8C6F; --c-inv: #6250CF; --c-re: #B9781C;
  --glass: rgba(246, 248, 247, .82); --glass-edge: rgba(255, 255, 255, .8);
  --float: 0 10px 28px rgba(22, 32, 29, .13), 0 1px 2px rgba(22, 32, 29, .10);
  --sel: #EAF0FA; --toast: rgba(27, 34, 32, .94);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --surface: #151918; --fill: #242A28; --side: #0E1110; --side-sel: rgba(255, 255, 255, .08);
    --ink: #EDF1EF; --ink-2: #A3AEA9; --ink-3: #8E9994; --line: #28302D;
    --accent: #88AEF0; --accent-soft: #1B2840; --pos: #5DCB8E;
    --warn-ink: #F2C46D; --warn-bg: #33270F; --mark: #5E4C14;
    --c-cash: #1C9A7C; --c-inv: #8378E8; --c-re: #BE7A26;
    --glass: rgba(26, 30, 29, .80); --glass-edge: rgba(255, 255, 255, .09);
    --float: 0 10px 28px rgba(0, 0, 0, .55), 0 1px 2px rgba(0, 0, 0, .4);
    --sel: #172238; --toast: rgba(52, 58, 56, .96);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.3 var(--font);
  -webkit-font-smoothing: antialiased;
}

/* The screen area, and the centred card the first screens use. */
main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 16px;
  padding-top: calc(16px + env(safe-area-inset-top));
  padding-left: calc(16px + env(safe-area-inset-left));
  padding-right: calc(16px + env(safe-area-inset-right));
}
.card {
  width: 100%;
  max-width: 360px;
  padding: 32px 24px;
  border-radius: 14px;
  background: var(--surface);
  text-align: center;
}
.card h1 { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -.022em; }

footer {
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-2);
}
