/* Brand tokens: /static/css/tokens.css (zelfde als app) */

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--primary); }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  margin: 0 0 0.75rem;
  color: var(--text);
  line-height: 1.25;
}

/* —— Header —— */
.site-header {
  background: var(--primary);
  color: #fff;
  padding: 1rem 1.5rem;
}

.site-header-inner {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem 1.5rem;
  max-width: var(--content-max);
  margin: 0 auto;
}

.site-brand {
  margin: 0;
  line-height: 0;
  flex-shrink: 0;
}

.site-brand a {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.site-logo {
  display: block;
  height: 5.5rem;
  width: auto;
  max-width: min(18rem, 90vw);
  object-fit: contain;
}

.site-header .tagline {
  margin: 0;
  opacity: 0.92;
  font-size: 0.95rem;
  line-height: 1.4;
  white-space: nowrap;
}

.site-header .tagline-short {
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* —— Layout —— */
.site-body {
  flex: 1;
  width: 100%;
}

.mkt-container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.mkt-section {
  padding: 3.5rem 0;
}

.mkt-section--tight {
  padding: 2rem 0;
}

/* —— Hero —— */
.hero {
  background: var(--gradient-brand);
  color: #fff;
  padding: 3rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.hero-copy,
.signup-card {
  min-width: 0;
  max-width: 100%;
}

.hero-copy h1 {
  font-size: clamp(1.65rem, 2.5vw + 1rem, 2.25rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.55;
  opacity: 0.95;
  max-width: 36rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge--price {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.badge--trial {
  background: var(--accent);
  color: #fff;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  max-width: 100%;
}

.hero-cta-row .btn {
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
  white-space: normal;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.btn-primary:hover {
  background: var(--sidebar-bg);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.btn-block {
  width: 100%;
}

.hero-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  opacity: 0.85;
}

.hero-note a {
  color: inherit;
  text-decoration: underline;
}

/* —— Signup card (hero) —— */
.signup-card {
  background: var(--surface);
  color: var(--text);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}

.signup-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.signup-card .signup-intro {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.signup-card label {
  display: block;
  margin: 0.75rem 0 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.signup-card input[type="email"],
.signup-card input[type="text"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: var(--surface);
}

.signup-card input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}

.signup-card .checkbox {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--muted);
}

.signup-card .checkbox a {
  font-weight: 500;
}

.signup-card .btn-submit {
  margin-top: 1.25rem;
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.signup-card .btn-submit:hover {
  background: var(--primary-hover);
  text-decoration: none;
}

.signup-card .btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.signup-microcopy {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

#msg {
  margin-top: 1rem;
  font-weight: 500;
  font-size: 0.9rem;
}

#msg.error { color: var(--error); }
#msg.ok { color: var(--success); }

/* —— Trust strip —— */
.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.trust-strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

.trust-strip li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-strip li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* —— Benefits —— */
.section-title {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.section-title h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.benefit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.benefit-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: var(--sidebar-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.benefit-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.benefit-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

/* —— Product preview (screenshots) —— */
.preview-wrap {
  margin-top: 0.5rem;
}

.preview-intro {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
}

.preview-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .preview-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.product-preview {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--sidebar-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.preview-bar {
  display: flex;
  gap: 0.35rem;
  padding: 0.6rem 0.85rem;
  background: var(--primary);
}

.preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.preview-shot {
  flex: 1 1 auto;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: var(--surface);
  line-height: 0;
  cursor: zoom-in;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  transition: opacity 0.15s ease;
}

.preview-shot:hover {
  opacity: 0.92;
}

.preview-shot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.preview-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
}

.preview-caption {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.65rem 0.85rem 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* Lightbox (grote screenshot na klik) */
.preview-lightbox {
  margin: auto;
  padding: 0;
  border: none;
  max-width: min(96vw, 1400px);
  width: max-content;
  background: transparent;
  overflow: visible;
}

.preview-lightbox::backdrop {
  background: rgba(15, 23, 42, 0.88);
}

.preview-lightbox-panel {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.preview-lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.preview-lightbox-close:hover {
  background: rgba(15, 23, 42, 0.85);
}

.preview-lightbox-caption {
  margin: 0;
  padding: 0.75rem 3rem 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.preview-lightbox-frame {
  line-height: 0;
  max-height: min(82vh, 900px);
  overflow: auto;
  background: var(--sidebar-bg);
}

.preview-lightbox-img {
  display: block;
  max-width: min(96vw, 1400px);
  width: auto;
  height: auto;
  max-height: min(82vh, 900px);
  margin: 0 auto;
}

/* —— CTA band —— */
.cta-band {
  background: var(--sidebar-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.cta-band h2 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.cta-band p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.cta-band-btn {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.cta-band-btn:hover {
  background: var(--primary-hover);
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--surface);
  color: var(--primary);
  font-weight: 600;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* —— Footer —— */
.site-footer {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2rem;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  width: 100%;
  box-sizing: border-box;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
}

.site-footer nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.site-footer-disclaimer {
  margin: 0 0 1rem;
  max-width: min(64rem, 100%);
  font-size: 0.8rem;
  line-height: 1.45;
}

.site-footer-copy {
  margin: 0;
  font-size: 0.85rem;
}

.site-footer-brand {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--primary);
  text-transform: lowercase;
}

.site-footer-brand .brand-b {
  text-transform: uppercase;
}

/* —— Legal pages —— */
main.page-legal {
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.legal-doc h1 { font-size: 1.5rem; margin-top: 0; }
.legal-doc h2 { font-size: 1.15rem; margin-top: 1.75rem; }
.legal-doc h3 { font-size: 1rem; margin-top: 1.25rem; }
.legal-doc p,
.legal-doc li { color: var(--muted); }
.legal-doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1rem 0;
}
.legal-doc th,
.legal-doc td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}
.legal-doc th { background: var(--sidebar-bg); }
.legal-doc .meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.legal-doc .notice {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-row .btn {
    width: 100%;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-header .tagline {
    white-space: normal;
    font-size: 0.88rem;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 2rem 0 2.5rem;
  }

  .mkt-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .mkt-section {
    padding: 2.5rem 0;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .site-logo {
    height: 4.5rem;
  }
}
