/* ═══════════════════════════════════════════════════════════════
   STAPELKLAR — styles.css
   Mobile-first · Navy + Emerald · Inter (lokal)
   ═══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ───────────────────────────────────────────── */
:root {
  --color-primary:     #1E3A5F;
  --color-primary-dark:#152b47;
  --color-accent:      #059669;
  --color-accent-dark: #047857;
  --color-bg:          #F9FAFB;
  --color-white:       #FFFFFF;
  --color-text:        #111827;
  --color-text-muted:  #6B7280;
  --color-border:      #E5E7EB;
  --color-error:       #DC2626;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 1px 3px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-lg:   0 4px 6px rgba(0,0,0,0.07), 0 20px 40px rgba(0,0,0,0.08);

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;

  --max-width:   1120px;
  --max-width-narrow: 720px;
}

/* ── Reset ───────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ── Layout ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 20px;
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

/* ── Typography ─────────────────────────────────────────────── */
h1 { font-size: clamp(36px, 7vw, 52px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 5vw, 36px); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: clamp(18px, 3vw, 22px); font-weight: 600; line-height: 1.3; }

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

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}

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

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 14px 28px;
}

.btn--primary:hover {
  background-color: var(--color-accent-dark);
  box-shadow: 0 4px 12px rgba(5,150,105,0.3);
}

.btn--sm {
  font-size: 14px;
  padding: 8px 18px;
}

.btn--md {
  font-size: 15px;
  padding: 12px 24px;
}

.btn--lg {
  font-size: 17px;
  padding: 16px 32px;
}

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  padding: 4px 14px;
}

.badge--blue {
  background-color: rgba(30,58,95,0.1);
  color: var(--color-primary);
}

.badge--green {
  background-color: rgba(5,150,105,0.12);
  color: var(--color-accent-dark);
}

.badge-row {
  text-align: center;
  margin-bottom: 16px;
}

/* ── Section Base ────────────────────────────────────────────── */
.section {
  padding-block: 48px;
}

@media (min-width: 768px) {
  .section {
    padding-block: 80px;
  }
}

@media (min-width: 1024px) {
  .section {
    padding-block: 96px;
  }
}

.section--gray {
  background-color: var(--color-bg);
}

.section--white {
  background-color: var(--color-white);
}

.section--navy {
  background-color: var(--color-primary);
}

.section--waitlist {
  background-color: var(--color-white);
}

.section__heading {
  text-align: center;
  margin-bottom: 16px;
}

.section__heading--white {
  color: var(--color-white);
}

.section__subheading {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 17px;
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 12px;
}

.section__subheading--white {
  color: rgba(255,255,255,0.8);
}

.section__cta-center {
  text-align: center;
  margin-top: 48px;
}

/* ── NAVBAR ──────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease;
}

.navbar--scrolled {
  box-shadow: var(--shadow-md);
}

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

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.navbar__logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.navbar__nav {
  display: none;
  gap: 8px;
  margin-left: auto;
}

@media (min-width: 768px) {
  .navbar__nav {
    display: flex;
  }
}

.navbar__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background-color 0.15s;
}

.navbar__link:hover {
  color: var(--color-primary);
  background-color: var(--color-bg);
}

.navbar__cta {
  margin-left: auto;
}

@media (min-width: 768px) {
  .navbar__cta {
    margin-left: 0;
  }
}

/* Burger Button */
.navbar__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}

@media (min-width: 768px) {
  .navbar__burger {
    display: none;
  }

  .navbar__cta {
    display: inline-flex;
  }
}

.navbar__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: opacity 0.2s;
}

/* Mobile Menu */
.mobile-menu {
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  padding: 16px 20px 24px;
  gap: 4px;
}

.mobile-menu__link {
  font-size: 17px;
  font-weight: 500;
  color: var(--color-text);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s;
}

.mobile-menu__link:hover {
  background-color: var(--color-bg);
}

.mobile-menu__cta {
  margin-top: 12px;
  width: 100%;
  text-align: center;
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  background-color: var(--color-white);
  padding-block: 64px 48px;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero {
    padding-block: 96px 80px;
  }
}

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

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.hero__badge {
  margin-bottom: 20px;
}

.hero__heading {
  margin-bottom: 24px;
  color: var(--color-primary);
}

.hero__subheading {
  font-size: 18px;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero__cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

@media (min-width: 480px) {
  .hero__cta-group {
    flex-direction: row;
  }
}

/* Trust Strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.trust-strip__item svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* Phone Mockup */
.hero__visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: min(280px, 90vw);
  background: linear-gradient(145deg, #1E3A5F, #152b47);
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1),
    0 20px 60px rgba(30,58,95,0.3),
    0 4px 12px rgba(0,0,0,0.2);
  position: relative;
}

.phone-mockup::before {
  content: '';
  display: block;
  width: 60px;
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  margin: 0 auto 10px;
}

.phone-mockup__screen {
  background-color: var(--color-bg);
  border-radius: 24px;
  overflow: hidden;
  min-height: 340px;
}

.app-preview {
  padding: 20px 16px;
}

.app-preview__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.app-preview__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
}

.app-preview__count {
  font-size: 11px;
  font-weight: 600;
  background: rgba(220,38,38,0.1);
  color: var(--color-error);
  padding: 2px 8px;
  border-radius: 100px;
}

.app-preview__item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}

.app-preview__item--urgent {
  border-left: 3px solid var(--color-error);
}

.app-preview__item-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.app-preview__item-info {
  flex: 1;
  min-width: 0;
}

.app-preview__item-sender {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-preview__item-due {
  font-size: 11px;
  color: var(--color-text-muted);
}

.app-preview__item--urgent .app-preview__item-due {
  color: var(--color-error);
}

.app-preview__item-amount {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  flex-shrink: 0;
}

.app-preview__footer {
  margin-top: 12px;
  text-align: center;
}

.app-preview__archived {
  font-size: 11px;
  color: var(--color-accent);
  font-weight: 500;
}

/* ── CARDS ────────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 48px;
}

@media (min-width: 640px) {
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__icon {
  width: 52px;
  height: 52px;
  background-color: rgba(30,58,95,0.06);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card__icon-lg {
  width: 56px;
  height: 56px;
  background-color: rgba(5,150,105,0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card__heading {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.card__text {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ── STEPS ────────────────────────────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 48px;
  align-items: center;
}

@media (min-width: 768px) {
  .steps {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }
}

.step {
  text-align: center;
  flex: 1;
  max-width: 280px;
  padding-inline: 16px;
}

.step__number {
  width: 36px;
  height: 36px;
  background-color: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step__icon {
  width: 64px;
  height: 64px;
  background-color: rgba(5,150,105,0.08);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step__heading {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.step__text {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.step__connector {
  display: none;
}

@media (min-width: 768px) {
  .step__connector {
    display: flex;
    align-items: center;
    padding-top: 48px;
    flex-shrink: 0;
  }
}

/* ── PRIVACY BADGES ───────────────────────────────────────────── */
.privacy-badges {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 48px;
}

@media (min-width: 768px) {
  .privacy-badges {
    flex-direction: row;
    justify-content: center;
    gap: 48px;
  }
}

.privacy-badge {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 280px;
}

@media (min-width: 768px) {
  .privacy-badge {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.privacy-badge__icon {
  width: 52px;
  height: 52px;
  background-color: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.privacy-badge__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 4px;
}

.privacy-badge__text {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}

/* ── WAITLIST ─────────────────────────────────────────────────── */
.waitlist-form {
  margin-top: 40px;
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.wl-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 4px;
}
@media (max-width: 600px) {
  .wl-row { grid-template-columns: 1fr; }
}
.wl-field { margin-bottom: 20px; }
.wl-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}
.wl-field input[type="text"],
.wl-field input[type="email"] {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-text-primary);
  background: #fff;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.wl-field input[type="text"]:focus,
.wl-field input[type="email"]:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(5,150,105,0.12);
}
.wl-radio-group, .wl-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wl-radio, .wl-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  color: var(--color-text-primary);
  cursor: pointer;
  padding: 6px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 20px;
  background: #fff;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}
.wl-radio:has(input:checked), .wl-check:has(input:checked) {
  border-color: var(--color-accent);
  background: #F0FDF4;
  color: #166534;
  font-weight: 500;
}
.wl-radio input, .wl-check input { accent-color: var(--color-accent); }

.trust-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 28px;
  margin-top: 24px;
}

.trust-footer__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.waitlist__expectation {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq__item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.15s;
}

.faq__item[open] {
  box-shadow: var(--shadow-sm);
}

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  list-style: none;
  user-select: none;
  transition: background-color 0.15s;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq__item[open] .faq__question::after {
  transform: rotate(45deg);
}

.faq__question:hover {
  background-color: var(--color-bg);
}

.faq__answer {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── PLATFORM STRIP ──────────────────────────────────────────── */
.platform-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 24px 0 32px;
  font-size: 13px;
}
.platform-strip__label {
  color: var(--color-text-muted);
  margin-right: 4px;
}
.platform-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 13px;
  border: 1px solid var(--color-border);
}
.platform-strip__item--active {
  background: #F0FDF4;
  border-color: #BBF7D0;
  color: #166534;
}
.platform-strip__item--soon {
  background: var(--color-bg);
  color: var(--color-text-muted);
}
.platform-strip__badge {
  display: inline-block;
  background: #059669;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  letter-spacing: 0.02em;
  margin-left: 2px;
}
.platform-strip__sep {
  color: var(--color-border);
}

/* ── FOOTER ───────────────────────────────────────────────────── */
.footer {
  background-color: var(--color-primary);
  color: rgba(255,255,255,0.8);
  padding-block: 48px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
}

.footer__disclaimer {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  max-width: 380px;
  line-height: 1.6;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer__link {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color 0.15s;
}

.footer__link:hover {
  color: var(--color-white);
}

.footer__copy {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}

/* ── STICKY CTA (Mobile) ─────────────────────────────────────── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(249,250,251,1) 60%, rgba(249,250,251,0));
  transform: translateY(100%);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.sticky-cta--visible {
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-cta__btn {
  width: 100%;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(5,150,105,0.4);
}

/* Hide sticky CTA on desktop — navbar CTA is always visible */
@media (min-width: 768px) {
  .sticky-cta {
    display: none;
  }
}

/* ── Utility ──────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Focus styles (accessibility) ───────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Print ────────────────────────────────────────────────────── */
@media print {
  .navbar,
  .sticky-cta,
  .hero__cta-group,
  .section__cta-center { display: none !important; }
}
