:root {
  --ey-yellow: #ffd500;
  --ink: #0e1117;
  --card: #fff;
  --text: #1a1a1a;
  --muted: #5b5b5b;
  --line: #e8e8e8;
  --tw-green: #002e63;
  --radius: 18px;
  --shadow: 0 10px 40px rgba(0,0,0,0.10);
  --shadow-lg: 0 24px 70px rgba(0,0,0,0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #f4f4f4;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  color: #fff;
  min-height: 520px;
  padding: 36px 0 90px;
  overflow: hidden;
  background-color: var(--ink);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(95deg, rgba(14,17,23,0.92) 0%, rgba(14,17,23,0.68) 42%, rgba(14,17,23,0.20) 100%),
    url("hero.png");
  background-size: cover;
  background-position: center top;
  z-index: 0;
}

.hero-stripe {
  position: absolute;
  left: 0; right: 0; bottom: -60px;
  height: 120px;
  background: var(--ey-yellow);
  transform: skewY(-2.4deg);
  z-index: 1;
}

.hero-inner { position: relative; z-index: 2; }

.ey-logo-link { display: inline-block; margin-bottom: 56px; }
.ey-logo-hero { height: 56px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text h1 {
  font-size: 56px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.ey-tag {
  color: var(--ey-yellow);
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 24px;
}

.hero-copy {
  font-size: 18px;
  color: #d6d6d6;
  margin: 0 0 14px;
  max-width: 620px;
}

.hero-trust {
  color: var(--ey-yellow);
  font-weight: 700;
  font-size: 20px;
  margin: 28px 0 0;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 360px;
}

.hero-badge {
  position: relative;
  max-width: 300px;
  background: rgba(0,0,0,0.66);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  padding: 20px 18px;
  text-align: center;
  backdrop-filter: blur(8px);
}
.threema-badge-logo { height: 28px; margin: 0 auto 14px; }
.hero-badge-text { margin: 0; font-size: 18px; color: #fff; line-height: 1.45; }
.tw-green { color: var(--tw-green); font-weight: 700; }

/* ============ SECTIONS ============ */
.section { padding: 80px 0; }
.section:nth-of-type(2) { background: #fff; }

.section-title {
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  margin: 0 0 56px;
  letter-spacing: -0.01em;
}

/* ============ TIMELINE ============ */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 18%;
  right: 18%;
  height: 4px;
  background: var(--ey-yellow);
  border-radius: 2px;
  z-index: 0;
}

.tl-step {
  position: relative;
  text-align: center;
  padding: 0 8px;
}

.tl-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ey-yellow);
  color: var(--text);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(255,213,0,0.35);
  position: relative;
  z-index: 1;
}
.tl-circle i { width: 26px; height: 26px; stroke-width: 3; }

.tl-step.done .tl-circle { opacity: 0.85; }
.tl-step.active .tl-circle {
  background: var(--text);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.tl-eyebrow {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 6px;
  text-transform: uppercase;
}
.tl-sub {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
}
.tl-step.done .tl-sub { color: var(--muted); }
.tl-step.active .tl-sub { color: var(--text); }
.tl-desc { font-size: 15px; color: var(--muted); margin: 0 auto; max-width: 280px; }

/* ============ MAIN CARD ============ */
.card-section { padding-top: 0; padding-bottom: 100px; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 56px;
  max-width: 1200px;
}
.card-title {
  font-size: 34px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 48px;
}

.card-grid {
  display: grid;
  grid-template-columns: 30% 1fr 25%;
  gap: 32px;
  align-items: start;
}

/* --- App screenshot --- */
.phone-col { display: flex; justify-content: center; }
.app-shot {
  width: 100%;
  max-width: 260px;
  display: block;
}

/* --- Instructions --- */
.mid-col { display: flex; flex-direction: column; gap: 32px; }
.instr { display: flex; gap: 18px; align-items: flex-start; }
.instr-ico {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ey-yellow);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.instr-ico i { width: 22px; height: 22px; stroke-width: 2.4; }
.instr-title { font-size: 19px; font-weight: 700; margin: 0 0 6px; }
.instr-desc { font-size: 15px; color: var(--muted); margin: 0 0 12px; }

.stores { display: flex; gap: 12px; flex-wrap: wrap; }

.store-badge {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.store-badge:hover { transform: translateY(-1px); }

.badge-img { height: 48px; width: auto; display: block; }

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.ey-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ey-yellow);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 24px;
  border-radius: 14px;
  border: 2px solid var(--ey-yellow);
  line-height: 1;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.ey-cta i { width: 20px; height: 20px; stroke-width: 2.4; }
.ey-cta:hover, .ey-cta:focus {
  background: var(--ink);
  color: var(--ey-yellow);
  border-color: var(--ink);
  outline: none;
}

.qr {
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr img, .qr canvas { display: block; }

.qr-caption { font-size: 12px; color: var(--muted); }

.single-use {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}
.single-use i { width: 14px; height: 14px; }

/* --- Side panel --- */
.side-col { align-self: stretch; display: flex; flex-direction: column; }
.side {
  background: #f5f5f5;
  border-radius: 16px;
  padding: 28px 24px;
  flex: 0 0 auto;
}
.side-logo { height: 24px; margin-bottom: 12px; }
.side-sub { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.side-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.side-list i { width: 18px; height: 18px; color: var(--tw-green); stroke-width: 3; }

.side-emblem-wrap {
  margin-top: auto;
  margin-bottom: 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.side-emblem { width: 120px; height: auto; display: block; }
.side-emblem-text {
  margin: 0;
  color: #002e63;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============ INFO STRIP ============ */
.strip { background: #fff; padding: 60px 0; border-top: 1px solid var(--line); flex-shrink: 0; }
.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.strip-col { text-align: center; display: flex; flex-direction: column; align-items: center; }
.strip-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--ey-yellow);
  color: var(--text);
  margin-bottom: 14px;
}
.strip-ico i { width: 24px; height: 24px; stroke-width: 2.2; }
.strip-title { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.strip-desc { font-size: 15px; color: var(--muted); margin: 0; }
.strip-desc a { color: var(--text); text-decoration: underline; }

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: #c9c9c9;
  padding: 32px 0;
  flex-shrink: 0;
  margin-top: auto;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-mark { height: 40px; }
.footer-copy { font-size: 13px; margin: 0; }
.footer-copy a { color: #c9c9c9; text-decoration: underline; }
.footer-secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin: 0;
}
.footer-secure i { width: 16px; height: 16px; }

/* ============ ERROR ============ */
.error {
  background: #fdecea;
  border: 1px solid #e3b7b3;
  color: #a32315;
  padding: 18px 22px;
  border-radius: 12px;
  margin-bottom: 32px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
  .card-grid { grid-template-columns: 1fr; gap: 40px; }
  .phone-col { order: 1; }
  .mid-col { order: 2; }
  .side-col { order: 3; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { margin-top: 8px; }
  .hero-badge { position: static; max-width: 420px; margin: 16px auto 0; }
}

@media (max-width: 700px) {
  .section { padding: 56px 0; }
  .section-title { font-size: 28px; margin-bottom: 36px; }
  .hero { padding: 28px 0 70px; }
  .hero-text h1 { font-size: 36px; }
  .ey-tag { font-size: 18px; }
  .hero-copy { font-size: 16px; }
  .timeline { grid-template-columns: 1fr; gap: 24px; }
  .timeline::before { display: none; }
  .card { padding: 32px 22px; }
  .card-title { font-size: 24px; }
  .ey-cta { font-size: 14px; padding: 14px 18px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .qr { align-self: center; }
  .strip-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-row { flex-direction: column; text-align: center; }
  .app-shot { max-width: 220px; }
}