/*
 * Splitto — splitto.nl
 * Web twin of the app's "Zing" design tokens (src/theme/index.ts):
 * pure-white background, heavy Plus Jakarta Sans typography, BLACK primary
 * CTAs, vivid green accent #2FE15C, colourful tiles, big radii, glass nav.
 */

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

:root {
  /* lightColors from src/theme/index.ts */
  --bg: #ffffff;
  --bg-soft: #fafafb;
  --card: #ffffff;
  --ink: #0b0b0b;
  --muted: #8a8a8e;
  --primary: #0b0b0b;
  --on-primary: #ffffff;
  --accent: #2fe15c;
  --on-accent: #0b0b0b;
  --accent-soft: #e4fbe9;
  --hero: #0b0b0b;
  --on-hero: #ffffff;
  --tile-green: #7cf35c;
  --tile-yellow: #f4e63e;
  --tile-purple: #8b5cf6;
  --border: #ececee;

  /* radius tokens: sm 12 / md 18 / lg 24 / xl 30 / pill */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius: 24px;
  --radius-xl: 30px;

  --shadow-card: 0 8px 18px rgba(11, 11, 11, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }

.accent { color: var(--accent); }

.eyebrow {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--muted);
  max-width: 34em;
}

/* Nav — glassmorphism like the app's GlassCard */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.logo .dot { color: var(--accent); }

.nav nav { display: flex; align-items: center; gap: 24px; }

.nav nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.nav nav a:hover { color: var(--ink); }

/* Buttons — primary CTAs are BLACK pills (Zing-style) */
.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--on-primary) !important;
  font-family: inherit;
  font-weight: 800;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-1px); opacity: 0.9; }
.btn:active { transform: scale(0.98); }

.btn-small { padding: 10px 20px; font-size: 0.9rem; }
.btn-big { padding: 18px 42px; font-size: 1.1rem; }

/* Accent button — green with black text, like accent highlights in the app */
.btn-accent {
  background: var(--accent);
  color: var(--on-accent) !important;
}

.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 2px solid var(--border);
}

.btn-ghost:hover { background: var(--bg-soft); opacity: 1; }

/* Hero */
.hero { padding: 88px 0 80px; }

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

.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-copy .lead { margin-top: 20px; }

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; }

.phone {
  width: 280px;
  border-radius: 44px;
  padding: 12px;
  background: var(--ink);
  box-shadow: 0 24px 60px rgba(11, 11, 11, 0.22);
  transform: rotate(3deg);
}

.phone-screen {
  background: var(--bg);
  border-radius: 34px;
  padding: 20px 16px 24px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.receipt-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.receipt-title { font-weight: 800; margin-bottom: 12px; }

.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius-sm);
}

.receipt-row.claimed {
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 700;
}

.receipt-total {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px dashed var(--border);
  font-weight: 800;
}

.receipt-total span:last-child { color: var(--accent); }

.qr-chip {
  align-self: center;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
}

/* Sections */
.steps { padding: 80px 0; }
.features { padding: 80px 0; background: var(--bg-soft); }
.festival { padding: 80px 0; }
.cta { padding: 40px 0 96px; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.card p { color: var(--muted); font-weight: 500; font-size: 0.95rem; }

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--ink);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

/* Colourful action tiles, like the app's home screen */
.tile-green { background: var(--tile-green); }
.tile-yellow { background: var(--tile-yellow); }
.tile-purple { background: var(--tile-purple); color: #fff; }

.tile {
  border: none;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.tile h3 { color: inherit; }
.tile p { color: inherit; opacity: 0.75; font-weight: 600; font-size: 0.95rem; }

.icon { font-size: 1.8rem; margin-bottom: 10px; }

/* Festival — black "hero" card like the app's feature card */
.festival-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-card {
  background: var(--hero);
  color: var(--on-hero);
  border: none;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: 0 24px 60px rgba(11, 11, 11, 0.25);
}

.hero-card .receipt-row { color: rgba(255, 255, 255, 0.7); }
.hero-card .receipt-total { border-top-color: rgba(255, 255, 255, 0.2); }
.hero-card .receipt-total span:last-child { color: var(--accent); }

/* Big black CTA banner */
.cta-banner {
  background: var(--hero);
  color: var(--on-hero);
  border-radius: var(--radius-xl);
  padding: 72px 32px;
  text-align: center;
}

.cta-banner .lead { color: rgba(255, 255, 255, 0.7); margin: 0 auto 32px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 28px 0; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 860px) {
  .hero { padding: 56px 0; }
  .hero-inner, .festival-inner { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { order: -1; }
  .phone { transform: none; width: 240px; }
  .nav nav a:not(.btn) { display: none; }
}

@media (max-width: 520px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .cta-banner { padding: 56px 20px; }
}
