/*
 * Gedeelde stylesheet voor de statische marketingpagina's van Opsco.io
 * (/functies/*, /vergelijk/*). Zelfde design tokens als de app-landing
 * (src/styles.css): brand-blauw, ink, line en canvas, Sora voor koppen.
 */

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/sora-700.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --brand-50: #eef6ff;
  --brand-100: #d9eaff;
  --brand-600: #1f59db;
  --brand-700: #1c47b0;
  --ink: #0f172a;
  --body: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --canvas: #f6f7f9;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--body);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 20px;
}

.narrow {
  max-width: 48rem;
}

a {
  color: var(--brand-600);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  height: 30px;
  width: auto;
  display: block;
}

.brand-io {
  color: var(--brand-600);
}

.brand:hover {
  text-decoration: none;
}

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

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #475569;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  text-decoration: none;
}

a.btn-primary,
a.btn-primary:visited,
a.btn-primary:hover,
.site-nav a.btn-primary {
  background: var(--brand-600);
  color: #ffffff;
}

a.btn-primary:hover {
  background: var(--brand-700);
}

.btn-secondary {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  padding-top: 28px;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.breadcrumbs li + li::before {
  content: "›";
  margin-right: 6px;
  color: #94a3b8;
}

.breadcrumbs a {
  color: var(--muted);
}

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

/* ---------- Hero ---------- */

.hero {
  padding-block: 40px 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 9999px;
  padding: 5px 13px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #475569;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--brand-600);
}

.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  letter-spacing: -0.03em;
}

.lead {
  margin-top: 18px;
  max-width: 44rem;
  font-size: 1.12rem;
  line-height: 1.7;
  color: #475569;
  text-wrap: pretty;
}

.hero .actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.section {
  padding-block: 36px;
}

.section h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  margin: 0 0 14px;
}

.section p {
  margin: 0 0 16px;
  max-width: 46rem;
}

.section ul.plain {
  max-width: 46rem;
}

/* Vinkjeslijst zoals de spotlights op de landing */
.checks {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 46rem;
}

.checks li {
  position: relative;
  padding-left: 34px;
  color: #334155;
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: rgba(31, 89, 219, 0.1);
  color: var(--brand-600);
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Kaarten (hub + gerelateerde functies) ---------- */

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin-top: 24px;
}

.card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  padding: 22px;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  text-decoration: none;
  border-color: #cbd5e1;
  box-shadow: 0 12px 32px -16px rgba(15, 23, 42, 0.18);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.card .more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-600);
}

/* ---------- Screenshots (echte product-UI in een browserframe) ---------- */

.shot {
  margin: 8px 0 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 24px 60px -28px rgba(15, 23, 42, 0.28);
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.shot-bar span {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: #cbd5e1;
}

.shot-bar .shot-url {
  margin-inline: auto;
  width: auto;
  height: auto;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #94a3b8;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

figure.screenshot {
  margin: 32px 0 0;
}

figure.screenshot figcaption {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Tabellen ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.93rem;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--ink);
}

/* ---------- FAQ ---------- */

.faq {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  margin-top: 24px;
}

.faq details {
  padding: 4px 20px;
}

.faq details + details {
  border-top: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 15px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0 0 18px;
  padding-right: 36px;
  font-size: 0.94rem;
}

/* ---------- CTA ---------- */

.cta {
  margin-block: 48px;
  border-radius: 24px;
  background: var(--brand-600);
  background-image: radial-gradient(50% 60% at 50% 0%, rgba(255, 255, 255, 0.18), transparent 70%);
  padding: 48px 28px;
  text-align: center;
}

.cta h2 {
  margin: 0 auto;
  max-width: 34rem;
  color: #ffffff;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
}

.cta p {
  margin: 14px auto 0;
  max-width: 30rem;
  color: rgba(255, 255, 255, 0.85);
}

.cta .btn {
  margin-top: 26px;
  background: #ffffff;
  color: var(--brand-700);
  padding: 13px 26px;
  font-size: 1rem;
}

.cta .btn:hover {
  background: #f1f5ff;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding-block: 40px 32px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.footer-grid h3 {
  margin: 0 0 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.footer-grid a {
  color: #475569;
}

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

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 640px) {
  .site-nav .nav-link {
    display: none;
  }

  .hero {
    padding-block: 28px 40px;
  }
}
