/* ─────────────────────────────────────────────
   Froschauer Apps — Professional Light Theme
   ───────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Colours */
  --bg:           #ffffff;
  --bg-muted:     #f8fafc;
  --bg-card:      #ffffff;

  --text:         #0f172a;
  --text-muted:   #64748b;
  --text-light:   #94a3b8;

  --accent:       #4f46e5;
  --accent-hover: #4338ca;
  --accent-light: #eef2ff;
  --accent-border:#c7d2fe;

  --green:        #059669;
  --green-light:  #ecfdf5;

  --border:       #e2e8f0;
  --border-light: #f1f5f9;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.10), 0 4px 16px rgba(15, 23, 42, 0.06);

  /* Radii */
  --r-sm:   6px;
  --r:      10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-icon: 22.37%;   /* iOS app icon rounding */

  --max: 1100px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

/* ── Layout ── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}
section { padding: 88px 0; }

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}
.nav-logo:hover { color: var(--text); }
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); }

/* ── Badges / Tags ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-accent {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}
.badge-green {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid #a7f3d0;
}
.badge-gray {
  background: var(--bg-muted);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.badge-amber {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: var(--r);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 1px 2px rgba(79,70,229,.3), inset 0 1px 0 rgba(255,255,255,.15);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(79,70,229,.35);
}
.btn-outline {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover {
  color: var(--text);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover { color: var(--accent-hover); gap: 10px; }
.btn-group { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ── Section heading ── */
.sec-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 10px;
}
.sec-title {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--text);
  margin-bottom: 14px;
}
.sec-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.65;
}
.sec-head { margin-bottom: 52px; }
.sec-head.center { text-align: center; }
.sec-head.center .sec-sub { margin: 0 auto; }

/* ── Hero ── */
.hero {
  padding: 96px 0 80px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(79,70,229,.07) 0%, transparent 60%),
    var(--bg);
}
.hero-eyebrow { margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.035em;
  color: var(--text);
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #6366f1 0%, #a855f7 60%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-cta { margin-bottom: 56px; }

/* Pillars strip */
.pillars {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.pillar {
  flex: 1;
  padding: 16px 20px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  text-align: center;
}
.pillar:last-child { border-right: none; }
.pillar-icon { font-size: 1.3rem; margin-bottom: 4px; }
.pillar-title {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.pillar-sub {
  font-size: .72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ── Apps grid ── */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  transition: all .22s;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.app-card:hover {
  border-color: #c7d2fe;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.app-card-icon {
  width: 76px;
  height: 76px;
  border-radius: var(--r-icon);
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.app-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.app-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -.01em;
}
.app-card p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}
/* Placeholder card */
.app-card-placeholder {
  background: var(--bg-muted);
  border-style: dashed;
  border-color: var(--border);
  cursor: default;
}
.app-card-placeholder:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}
.placeholder-icon {
  width: 76px;
  height: 76px;
  border-radius: var(--r-icon);
  background: var(--border-light);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.6rem;
  color: var(--text-light);
}

/* ── App detail page ── */
.app-hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--border);
}
.app-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}
.app-hero-icon {
  width: 116px;
  height: 116px;
  border-radius: var(--r-icon);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}
.app-hero-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-hero-meta { padding-top: 4px; }
.app-hero-meta .badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.app-hero-meta h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.app-hero-meta p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.65;
  margin-bottom: 28px;
}
/* Store button */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: #fff;
  border-radius: var(--r);
  padding: 10px 20px;
  font-size: .875rem;
  font-weight: 600;
  transition: all .18s;
  position: relative;
}
.store-btn:hover { background: #1e293b; color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.store-btn.disabled {
  background: var(--bg-muted);
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: default;
  pointer-events: none;
}
.store-btn .coming-label {
  position: absolute;
  top: -9px; right: -8px;
  background: var(--accent);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 100px;
}

/* ── Feature grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 24px;
}
.feature-icon {
  width: 40px; height: 40px;
  background: var(--accent-light);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.feature-card h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
  letter-spacing: -.01em;
}
.feature-card p {
  font-size: .825rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Screenshots ── */
.screenshots-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 6px 4px 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.shot {
  flex-shrink: 0;
  width: 232px;
  margin: 0;
}
.shot img {
  width: 100%;
  display: block;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: #000;
  transition: transform .25s, box-shadow .25s;
}
.shot img:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.shot figcaption {
  text-align: center;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 14px;
}
/* iPad screenshots are wider (portrait 3:4) — give them roomier tiles */
.screenshots-row.dev-ipad .shot { width: 320px; }

/* Device switch (iPhone / iPad) */
.device-switch {
  display: inline-flex;
  gap: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  margin: -28px 0 28px;
  box-shadow: var(--shadow-xs);
}
.device-btn {
  background: transparent;
  border: none;
  border-radius: 100px;
  padding: 7px 20px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.device-btn:hover { color: var(--text); }
.device-btn.active {
  background: var(--accent-light);
  color: var(--accent);
}

/* ── Callout box ── */
.callout {
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.callout-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.callout p { font-size: .875rem; color: var(--text); line-height: 1.6; }
.callout strong { color: var(--accent); }

/* ── Content pages (Privacy, Support, Impressum) ── */
.content-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 88px 28px 80px;
}
.content-wrap h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: 6px;
}
.content-wrap .meta {
  font-size: .8rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 40px;
}
.content-wrap h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 10px;
  letter-spacing: -.01em;
}
.content-wrap h3 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  margin: 22px 0 7px;
}
.content-wrap p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}
.content-wrap ul, .content-wrap ol {
  font-size: .9rem;
  color: var(--text-muted);
  padding-left: 22px;
  margin-bottom: 12px;
}
.content-wrap li { margin-bottom: 5px; line-height: 1.7; }
.content-wrap a { color: var(--accent); }
.info-box {
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: var(--r);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: .875rem;
  color: var(--text);
  line-height: 1.6;
}
.warn-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--r);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: .875rem;
  color: #92400e;
  line-height: 1.6;
}

/* ── Support cards ── */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 52px;
}
.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
}
.support-card-icon { font-size: 1.8rem; margin-bottom: 12px; }
.support-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.support-card p { font-size: .85rem; color: var(--text-muted); margin-bottom: 16px; }

/* ── Support form ── */
.support-form {
  max-width: 620px;
  margin: 8px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: .8rem; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: .9rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 12px;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { font-size: .85rem; margin: 0; font-weight: 500; }
.form-status.ok  { color: var(--green); }
.form-status.err { color: #dc2626; }
/* honeypot — hidden from real users */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ── Divider ── */
.divider { height: 1px; background: var(--border); }

/* ── Footer ── */
footer {
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
  padding: 52px 0 32px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand p {
  font-size: .825rem;
  color: var(--text-muted);
  margin-top: 8px;
  max-width: 240px;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-light);
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: .875rem; color: var(--text-muted); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p, .footer-bottom a { font-size: .8rem; color: var(--text-light); }
.footer-bottom a:hover { color: var(--text-muted); }

/* ── Donation section ── */
.donate-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 52px 48px;
  box-shadow: var(--shadow-sm);
}
.donate-emoji { font-size: 2.4rem; margin-bottom: 16px; }
.donate-note {
  font-size: .75rem;
  color: var(--text-light);
  margin-top: 16px;
  letter-spacing: .01em;
}
.btn-bmac {
  background: #FFDD00;
  color: #000;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.btn-bmac:hover {
  background: #f5d400;
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,221,0,.45);
}

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.faq-a {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}
.faq-a a { color: var(--accent); }

/* ── Language switcher ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px;
}
.lang-btn {
  background: transparent;
  border: none;
  border-radius: 100px;
  padding: 4px 10px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
  letter-spacing: .05em;
  line-height: 1;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: var(--bg-card);
  color: var(--accent);
  box-shadow: var(--shadow-xs);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .wrap { padding: 0 20px; }
  section { padding: 64px 0; }
  .hero { padding: 72px 0 60px; }
  .pillars { display: none; }
  .app-hero { padding: 64px 0 48px; }
  .app-hero-inner { flex-direction: column; gap: 24px; }
  .footer-top { flex-direction: column; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .wrap, .content-wrap { padding-left: 16px; padding-right: 16px; }
  .content-wrap { padding-top: 72px; }
}
