/* Coinchi site — warm paper, espresso ink, coin gold. Self-hosted fonts only. */

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/fonts/hanken.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FAF3E7;
  --surface: #FFFDF8;
  --surface-warm: #F4EAD5;
  --ink: #2B2118;
  --muted: #6F6250;  /* ≥5.4:1 auf --paper/--surface (WCAG AA) */
  --gold: #E8A10C;
  --gold-dark: #8F5F00;
  --gold-soft: #FBE7BB;
  --border: #EFE3CC;
  --green: #1E7B34;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Hanken Grotesk', -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }
a { color: var(--gold-dark); }
a:hover { color: var(--ink); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 243, 231, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
}

.brand picture { display: flex; }
.brand img { width: 34px; height: auto; }

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
}
.site-nav a:hover { color: var(--gold-dark); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-dark {
  background: var(--ink);
  color: #FFF6E3;
}
.btn-dark:hover { color: #FFF6E3; box-shadow: 0 4px 14px rgba(74, 58, 34, 0.25); }
/* .site-nav a setzt color: ink — das darf Buttons nicht ausblenden. */
.site-nav a.btn-dark { color: #FFF6E3; }

.btn-outline {
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { background: var(--surface-warm); }

/* ---------- hero ---------- */

.hero {
  padding: 72px 0 56px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero p.lead {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink);
  max-width: 34ch;
}

.hero-mascot {
  text-align: center;
}
.hero-mascot img {
  width: 100%;
  max-width: 360px;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(74, 58, 34, 0.18));
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.store-note {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* receipt tear edge — the Coinchi motif */
.tear {
  height: 18px;
  background:
    linear-gradient(-45deg, transparent 12px, var(--paper) 0) 0 0 / 24px 18px repeat-x,
    linear-gradient(45deg, transparent 12px, var(--paper) 0) 0 0 / 24px 18px repeat-x;
}
.tear.flip { transform: scaleY(-1); }

/* ---------- sections ---------- */

section { padding: 64px 0; }

.section-surface { background: var(--surface); }

.section-head {
  max-width: 560px;
  margin-bottom: 48px;
}
.section-head p { color: var(--muted); font-size: 1.1rem; }

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 64px;
}

.feature h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.feature p { color: var(--muted); margin: 0; }

.fi {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold-dark);
}

.fi svg { width: 22px; height: 22px; }

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}

.step { position: relative; padding-top: 8px; }
.step .num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* privacy band */
.privacy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.privacy ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.privacy li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.98rem;
}
.privacy li svg { flex: none; width: 20px; height: 20px; color: var(--green); margin-top: 3px; }

/* faq */
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq summary {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::after {
  content: '+';
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.5rem;
  color: var(--gold-dark);
  flex: none;
}
.faq details[open] summary::after { content: '–'; }
.faq details p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 62ch;
}

/* final cta */
.final-cta {
  text-align: center;
  padding: 80px 0 88px;
}
.final-cta p { color: var(--muted); max-width: 46ch; margin: 0 auto 28px; }

/* footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
}
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .copy { margin-left: auto; }
.site-footer .trademark { flex-basis: 100%; margin: 0; font-size: 0.8rem; }

/* Google-Play-Badge (offizielles Asset, self-hosted) */
.play-badge { display: inline-flex; border-radius: 10px; }
.play-badge img { display: block; width: 162px; height: auto; }
.play-badge:hover { transform: translateY(-1px); }

/* Screenshots */
.screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 0;
}
.screens figure { margin: 0; }
.screens img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(74, 58, 34, 0.14);
}

/* 404 */
.notfound { text-align: center; padding: 72px 24px 96px; }
.notfound img { width: 180px; height: auto; margin-bottom: 16px; }
.notfound .cta-row { justify-content: center; }

/* legal pages */
.legal h1 { margin-bottom: 4px; }
.legal .stand { color: var(--muted); font-size: 0.9rem; margin-bottom: 32px; }
.legal h2 {
  font-size: 1.25rem;
  margin-top: 40px;
}
.legal p, .legal li { max-width: 68ch; }
.legal nav.back { margin-bottom: 24px; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero { padding: 40px 0 40px; }
  .hero .wrap { gap: 24px; }
  .hero-mascot { order: -1; }
  .hero-mascot img { max-width: 160px; }
  .screens {
    grid-template-columns: repeat(3, 70vw);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
  }
  .screens figure { scroll-snap-align: center; }
  .features, .steps, .privacy { grid-template-columns: 1fr; }
  .site-nav .hide-m { display: none; }
}
