/* PraisePad — praise-pad.com
   Brand tokens mirror the iOS app (PraisePad/Theme/DPColor.swift). */

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-indigo: #4F46E5;
  --brand-purple: #9333EA;
  --lavender: #A78BFA;
  --night-deep: #0F2940;
  --night-violet: #6B2E7C;
  --ink: #F4F4F8;
  --ink-muted: #C7C9D6;
  --surface: #14182B;
  --surface-raised: #1B2140;
  --border: rgba(167, 139, 250, 0.18);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.45);
  --gradient-brand: linear-gradient(135deg, var(--brand-indigo) 0%, var(--brand-purple) 100%);
  --gradient-night: linear-gradient(160deg, var(--night-deep) 0%, var(--night-violet) 100%);
  --maxw: 1120px;
  color-scheme: dark light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--lavender);
  text-decoration: none;
  border-bottom: 1px solid rgba(167, 139, 250, 0.35);
  transition: border-color 120ms ease, color 120ms ease;
}
a:hover { color: var(--ink); border-bottom-color: var(--ink); }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--ink-muted); }

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

/* ---------- Header / Footer ---------- */

.site-header {
  padding: 24px 0;
  position: sticky;
  top: 0;
  background: rgba(20, 24, 43, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  border-bottom: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 22px; font-size: 0.95rem; }
.nav a { border-bottom: none; color: var(--ink-muted); }
.nav a:hover { color: var(--ink); }

.site-footer {
  margin-top: 96px;
  padding: 48px 0 64px;
  border-top: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
}
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-muted); border-bottom: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 64px;
  background: var(--gradient-night);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 80%;
  background: radial-gradient(60% 60% at 50% 0%, rgba(147, 51, 234, 0.32), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 64px; }
  .hero { padding: 128px 0 88px; }
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lavender);
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, #A78BFA, #C7A7FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink);
  opacity: 0.86;
  max-width: 38ch;
  margin-bottom: 28px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border-bottom: none;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.45);
}
.btn-primary:hover { transform: translateY(-1px); color: #fff; }
.btn-primary[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: var(--ink); }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}
.hero-visual img { width: 100%; }

/* ---------- Sections ---------- */

section { padding: 88px 0; }
section.tight { padding: 56px 0; }
.section-head { max-width: 60ch; margin-bottom: 48px; }
.section-head p { font-size: 1.05rem; }

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  padding: 28px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; font-size: 0.97rem; }
.feature .icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--gradient-brand);
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: #fff;
  font-weight: 700;
}

.screens {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 720px) { .screens { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .screens { grid-template-columns: repeat(3, 1fr); } }
.screen {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
}
.screen figcaption {
  padding: 14px 18px 18px;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* ---------- Long-form pages (privacy/impressum/support) ---------- */

.prose {
  max-width: 70ch;
  margin: 0 auto;
  padding: 56px 0 0;
}
.prose h1 { margin-bottom: 8px; }
.prose .updated { color: var(--ink-muted); font-size: 0.9rem; margin-bottom: 32px; }
.prose h2 { margin-top: 40px; }
.prose p, .prose li { color: var(--ink); opacity: 0.88; }
.prose ul { padding-left: 1.2em; }

.todo-block {
  margin: 24px 0;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: rgba(167, 139, 250, 0.08);
  border: 1px dashed rgba(167, 139, 250, 0.45);
  color: var(--ink);
}
.todo-block strong { color: var(--lavender); letter-spacing: 0.04em; }

/* ---------- Light mode ---------- */

@media (prefers-color-scheme: light) {
  :root {
    --surface: #FBFAFE;
    --surface-raised: #FFFFFF;
    --ink: #15172A;
    --ink-muted: #4A4E68;
    --border: rgba(79, 70, 229, 0.14);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
  }
  .site-header {
    background: rgba(251, 250, 254, 0.85);
  }
  .feature { background: #FFFFFF; box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04); }
  .btn-ghost {
    background: #FFFFFF;
    color: var(--ink);
  }
  .btn-ghost:hover { background: #F1EEFF; }
  .hero { color: #fff; }
  .hero p.lead, .hero h1, .hero h1 .accent { color: #fff; }
  .hero h1 .accent {
    background: linear-gradient(120deg, #E6DBFF, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .todo-block { background: #F4F0FF; border-color: rgba(79, 70, 229, 0.35); color: var(--ink); }
}
