/* gomoney.pro: the app's palette and type (docs/design.md) */
:root {
  --primary: #4338ca;
  --primary-dark: #3730a3;
  --on-primary: #ffffff;
  --accent: #facc15;
  --on-accent: #1f2937;
  --bg: #f3f4f8;
  --surface: #ffffff;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --radius: 16px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.6 var(--font);
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
a { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* header */
.header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; }
.brand img { width: 36px; height: 36px; }
.nav { margin-inline-start: auto; display: flex; gap: 20px; }
.nav a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a[aria-current] { color: var(--primary); }

/* hero */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--on-primary);
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { font-size: 44px; line-height: 1.15; margin: 0 0 16px; font-weight: 700; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 18px; margin: 0 0 28px; opacity: 0.9; max-width: 460px; }
.badge img { height: 56px; width: auto; }
.hero-shot { justify-self: center; width: 280px; border-radius: 28px; border: 8px solid #1f1b4d; box-shadow: 0 24px 60px rgb(0 0 0 / 0.35); background: var(--bg); overflow: hidden; }

/* sections */
.section { padding: 64px 0; }
.section h2 { font-size: 30px; line-height: 1.25; margin: 0 0 12px; text-align: center; }
.section .lead { text-align: center; color: var(--text-muted); max-width: 620px; margin: 0 auto 40px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 12px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--text-muted); font-size: 15px; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, white); color: var(--primary); }
.card .ico svg { width: 24px; height: 24px; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; justify-items: center; }
.shots figure { margin: 0; text-align: center; }
.shots img { width: 240px; border-radius: 24px; border: 6px solid #1f1b4d; box-shadow: 0 12px 32px rgb(17 24 39 / 0.18); }
.shots figcaption { margin-top: 12px; font-weight: 600; }

.about { background: var(--surface); }
.about .text { max-width: 720px; margin: 0 auto; }
.about p { color: #374151; }

.cta { text-align: center; }
.cta .badge { display: inline-block; margin-top: 8px; }

/* documents: privacy, terms, contacts */
.doc { padding: 40px 0 64px; }
.doc .paper { background: var(--surface); border-radius: var(--radius); padding: 40px; max-width: 820px; margin: 0 auto; }
.doc h1 { font-size: 32px; line-height: 1.2; margin: 0 0 6px; }
.doc .updated { color: var(--text-muted); margin: 0 0 28px; font-size: 14px; }
.doc h2 { font-size: 21px; margin: 32px 0 8px; }
.doc h3 { font-size: 17px; margin: 20px 0 6px; }
.doc p, .doc li { color: #374151; }
.doc ul { padding-inline-start: 22px; }
.doc li { margin: 4px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: start; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.doc th { font-weight: 600; background: var(--bg); }
.doc .owner { background: var(--bg); border-radius: 12px; padding: 16px 20px; margin: 12px 0; }
.mail { display: inline-flex; align-items: center; gap: 10px; background: var(--primary); color: var(--on-primary); text-decoration: none; font-weight: 600; padding: 12px 24px; border-radius: 24px; }
.mail svg { width: 20px; height: 20px; }

/* footer */
.footer { background: var(--surface); border-top: 1px solid var(--border); font-size: 14px; color: var(--text-muted); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; padding-top: 24px; padding-bottom: 24px; }
.footer nav { display: flex; gap: 20px; margin-inline-start: auto; }
.footer a { color: var(--text-muted); text-decoration: none; }
.footer a:hover { color: var(--primary); }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 48px; padding-bottom: 48px; }
  .hero p { margin-inline: auto; }
  .badge { display: inline-block; }
  .hero-shot { width: 240px; }
  .features, .shots { grid-template-columns: 1fr; }
  .shots img { width: 260px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 34px; }
  .nav { gap: 14px; }
  .nav a { font-size: 14px; }
  .nav .opt { display: none; }
  .doc .paper { padding: 24px 20px; }
  .doc h1 { font-size: 26px; }
  .section { padding: 48px 0; }
  .footer nav { margin-inline-start: 0; }
}
