@font-face { font-family: 'Bricolage Grotesque'; font-weight: 800; font-display: swap; src: url('/fonts/BricolageGrotesque_800ExtraBold.ttf') format('truetype'); }
@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap; src: url('/fonts/Manrope_500Medium.ttf') format('truetype'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url('/fonts/Manrope_700Bold.ttf') format('truetype'); }

/* Same palette as the app (src/theme.ts). */
:root {
  color-scheme: light dark;
  --bg: #efeee8; --surface: #ffffff; --surface-2: #f7f6f1; --line: #dad9d0;
  --ink: #15181d; --muted: #5f6776; --accent: #2f6df6; --accent-deep: #1d4cc2;
  --energy: #f2a300; --money: #a76b0e; --love: #d6336c; --good: #1b8a4b;
  --ring: rgba(167, 107, 14, 0.10);
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1015; --surface: #171b22; --surface-2: #1e232c; --line: #2b313b;
    --ink: #eef0f3; --muted: #a0a8b6; --accent: #5b8cff; --accent-deep: #3462d6;
    --energy: #ffc233; --money: #f0b84a; --love: #ff5c8d; --good: #3ccf7a;
    --ring: rgba(240, 184, 74, 0.07);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 500 17px/1.6 var(--body);
  /* faint tree rings behind the hero */
  background-image: repeating-radial-gradient(circle at 50% -220px, transparent 0 46px, var(--ring) 46px 48px);
  background-repeat: no-repeat; background-size: 100% 1100px;
}
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 20px var(--display); }
.brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 18px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }

.hero { text-align: center; padding: 48px 0 24px; }
.hero .icon { width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 18px 40px rgba(21, 24, 29, 0.18); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
.hero h1 { font-size: clamp(48px, 10vw, 84px); margin-top: 22px; }
.hero .tag { font-size: clamp(19px, 3.2vw, 24px); color: var(--muted); font-weight: 700; margin: 10px auto 0; max-width: 620px; }
.cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 14px 24px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none; }
.cta small { opacity: 0.7; font-weight: 500; }
.note { color: var(--muted); font-size: 14px; margin-top: 12px; }

.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 28px 4px 18px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: thin; }
.shots figure { flex: 0 0 auto; width: min(240px, 62vw); margin: 0; scroll-snap-align: center; }
.shots img { width: 100%; border-radius: 26px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(21, 24, 29, 0.12); display: block; }
.shots figcaption { text-align: center; color: var(--muted); font-size: 14px; font-weight: 700; margin-top: 10px; }

section { padding: 40px 0; }
section > h2 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
.card .em { font-size: 30px; line-height: 1; }
.card h3 { font-size: 21px; margin: 12px 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.band { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 4vw, 40px); }
.band p { color: var(--muted); max-width: 720px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 700; }

/* documents: privacy, terms, support */
.doc { max-width: 760px; margin: 0 auto; padding: 24px 0 48px; }
.doc h1 { font-size: clamp(36px, 7vw, 52px); margin: 10px 0 8px; }
.doc h2 { font-size: 23px; margin: 34px 0 8px; }
.doc .meta { color: var(--muted); font-size: 15px; }
.doc p, .doc li { color: var(--ink); }
.doc .short { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.doc details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; margin: 10px 0; }
.doc summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style-position: outside; }
.doc details p { margin-top: 0; color: var(--muted); }

.apps { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.apps li + li { border-top: 1px solid var(--line); }
.apps a, .apps .here { display: flex; align-items: center; gap: 14px; padding: 12px 16px; color: var(--ink); text-decoration: none; min-height: 68px; }
.apps a:hover { background: var(--surface-2); }
.apps img, .apps .mark { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.apps .mark { background: #141d30; display: grid; place-items: center; }
.apps b { display: block; }
.apps span { color: var(--muted); font-size: 15px; }
.apps .here span { color: var(--accent); font-weight: 700; }

footer { border-top: 1px solid var(--line); margin-top: 32px; padding: 26px 0 calc(26px + env(safe-area-inset-bottom)); }
.foot { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.by { display: flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 700; }
.by img { height: 22px; width: auto; }
@media (prefers-color-scheme: dark) { .by img { filter: invert(1); } }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); }
.foot-links a { color: var(--muted); text-decoration: none; font-weight: 700; }
.foot-links a:hover { color: var(--ink); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-links { gap: 14px; }
  .hero { padding-top: 28px; }
  .hero .icon { width: 108px; height: 108px; border-radius: 25px; }
}
