/* Pennywick web — design tokens mirror the app (Theme.swift): dark theme, one amber accent. */
:root {
  --bg: #000000;
  --card: #1C1C1E;
  --card2: #2C2C2E;
  --field: rgba(118,118,128,0.24);
  --label: #FFFFFF;
  --secondary: rgba(235,235,245,0.60);
  --tertiary: rgba(235,235,245,0.30);
  --separator: rgba(84,84,88,0.55);
  --accent: #FFBB00;
  --income: #30D158;
  --expense: #FF453A;
  --radius-card: 16px;
  --radius-field: 13px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Top bar ---- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(0,0,0,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--separator);
}
.nav .wrap { display: flex; align-items: center; gap: 14px; height: 60px; }
.nav img { width: 30px; height: 30px; border-radius: 7px; }
.nav .brand { font-weight: 600; font-size: 17px; }
.nav .spacer { flex: 1; }
.nav .links a { color: var(--secondary); font-size: 15px; margin-left: 22px; }
.nav .links a:hover { color: var(--label); text-decoration: none; }
@media (max-width: 560px) { .nav .links { display: none; } }

/* ---- Buttons (amber fill, black text, soft glow — matches app primary button) ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #000;
  font-weight: 600; font-size: 16px;
  padding: 13px 22px; border-radius: var(--radius-field);
  box-shadow: 0 6px 24px rgba(255,187,0,0.30);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 30px rgba(255,187,0,0.42); }
.btn.secondary { background: var(--card2); color: var(--label); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ---- Hero ---- */
.hero { padding: 72px 0 40px; text-align: center; }
.hero .app-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 12px 40px rgba(0,0,0,0.6); }
.hero h1 {
  font-size: clamp(34px, 6vw, 56px); font-weight: 700; letter-spacing: -0.02em;
  margin: 22px 0 10px; line-height: 1.05;
}
.hero .tagline { color: var(--secondary); font-size: clamp(17px, 2.4vw, 21px); max-width: 620px; margin: 0 auto 28px; }
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pill {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.4px;
  color: var(--accent); background: rgba(255,187,0,0.14);
  padding: 6px 14px; border-radius: 999px; text-transform: uppercase;
}

/* ---- Screenshot strip ---- */
.shots { display: flex; gap: 20px; justify-content: center; padding: 48px 0 8px; overflow-x: auto; scroll-snap-type: x mandatory; }
.shots::-webkit-scrollbar { height: 0; }
.shot {
  flex: 0 0 auto; width: 300px; scroll-snap-align: center;
  border-radius: 22px; border: 1px solid var(--separator);
  overflow: hidden; background: var(--card);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.shot img { display: block; width: 100%; height: auto; }
.shot .cap { padding: 12px 16px; font-size: 14px; color: var(--secondary); text-align: center; border-top: 1px solid var(--separator); }

/* ---- Section ---- */
section { padding: 56px 0; }
.section-label { font-size: 12px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--accent); }
h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 700; letter-spacing: -0.01em; margin: 8px 0 32px; }

/* ---- Feature cards ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.feature {
  background: var(--card); border: 1px solid var(--separator);
  border-radius: var(--radius-card); padding: 24px;
}
.feature .ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; margin-bottom: 14px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.feature p { margin: 0; color: var(--secondary); font-size: 15px; }

/* ---- Privacy callout ---- */
.callout {
  background: var(--card); border: 1px solid var(--separator);
  border-radius: var(--radius-card); padding: 32px; text-align: center;
}
.callout p { color: var(--secondary); max-width: 640px; margin: 12px auto 0; }

/* ---- Doc pages (privacy / support) ---- */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.doc h1 { font-size: clamp(28px, 5vw, 40px); letter-spacing: -0.02em; margin-bottom: 6px; }
.doc .updated { color: var(--tertiary); font-size: 14px; margin-bottom: 32px; }
.doc h2 { font-size: 20px; margin-top: 40px; margin-bottom: 10px; }
.doc p, .doc li { color: var(--secondary); }
.doc li { margin: 6px 0; }
.doc .card-box { background: var(--card); border: 1px solid var(--separator); border-radius: var(--radius-card); padding: 22px; margin: 24px 0; }
.doc .card-box strong { color: var(--label); }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--separator); padding: 32px 0; color: var(--tertiary); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
footer a { color: var(--secondary); }
footer .spacer { flex: 1; }

/* ---- tabular figures for any money ---- */
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
