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

:root {
  --blue:    #467FF7;
  --green:   #22c55e;
  --amber:   #f59e0b;
  --purple:  #8b5cf6;
  --gray-50: #f9fafb;
  --gray-100:#f3f4f6;
  --gray-200:#e5e7eb;
  --gray-400:#9ca3af;
  --gray-600:#4b5563;
  --gray-900:#111827;
  --radius:  10px;

  /* Type scale: reuse these everywhere, never a raw font-size value.
     xs   labels, badges, tags, meta/fine print
     sm   body copy inside cards, nav/footer links
     base card & item titles (h3/h4, plan names, faq questions)
     md   section subtitles (under an h2), hero subtitle
     lg   icon-sized glyphs (faq +/-)
     xl   big display numbers (price), large glyphs (lightbox close) */
  --fs-xs:   .75rem;
  --fs-sm:   .875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.5rem;
  --fs-xl:   2rem;

  --btn-py:   .55rem;
  --btn-px:   1.2rem;
  --btn-fs:   var(--fs-sm);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-900);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── Typography ─── */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
h3 { font-size: var(--fs-base); font-weight: 700; line-height: 1.25; margin-bottom: .35rem; }
p  { color: var(--gray-600); }

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

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: var(--btn-py) var(--btn-px);
  border-radius: var(--radius);
  font-size: var(--btn-fs);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .15s, box-shadow .15s, background .15s;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn:hover { opacity: .88; }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-ghost   { background: var(--gray-100); color: var(--gray-900); border-color: transparent; }
.btn-ghost:hover { background: var(--gray-100); opacity: 1; }
.btn-white   { background: #fff; color: var(--blue); border-color: #fff; font-weight: 700; }
.btn-lg      { padding: var(--btn-py) 1.75rem; font-size: var(--btn-fs); border-radius: 12px; }
.btn-full    { width: 100%; margin-top: auto; }

.btn-plan-core { background: #3b82f6; color: #fff; border-color: #3b82f6; }
.btn-plan-plus { background: var(--purple); color: #fff; border-color: var(--purple); }
.btn-plan-pro  { background: var(--gray-900); color: #fff; border-color: var(--gray-900); opacity: .6; cursor: default; pointer-events: none; }

/* ─── Nav ─── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: .8rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: none; background: transparent;
  color: var(--gray-900);
  cursor: pointer;
  border-radius: 8px;
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--gray-100); }
.nav-toggle .icon-close { display: none; }
.nav-toggle.active .icon-menu { display: none; }
.nav-toggle.active .icon-close { display: block; }
.logo {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: var(--fs-base);
  color: var(--gray-900); text-decoration: none;
}
.nav-links {
  display: flex; align-items: center; gap: .25rem;
}
.nav-links a:not(.btn) {
  padding: var(--btn-py) .75rem;
  border-radius: 8px;
  color: var(--gray-600);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-links a:not(.btn):hover { background: var(--gray-100); color: var(--gray-900); }
.nav-links .btn { margin-left: .5rem; }
.lang-switcher {
  display: flex; gap: .25rem;
  background: var(--gray-100);
  padding: .1rem;
  border-radius: 8px;
  margin: 0 .5rem;
}
.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 999px;
  opacity: .55;
  transition: background .15s, opacity .15s;
}
.lang-btn img { display: block; border-radius: 50%; }
.lang-btn:hover { opacity: .8; }
.lang-btn.active { background: #fff; opacity: 1; box-shadow: 0 1px 3px rgba(0,0,0,.1); }

/* ─── Sections shared ─── */
.section-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 1.5rem;
}
.section-label {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 1rem;
}
.section-sub { color: var(--gray-600); margin-top: 1rem; font-size: var(--fs-md); }

/* ─── Hero ─── */
.hero {
  padding: 10rem 0 9rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -5% -10%;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/7/72/BlankMap-World.svg');
  background-size: cover;
  background-position: center 40%;
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}
.hero-text {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.75rem;
  text-align: center;
  max-width: 720px;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .75rem;
  background: #eff6ff;
  color: var(--blue);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 600;
  width: fit-content;
  border: 1px solid #dbeafe;
}
.hero-sub {
  font-size: var(--fs-md);
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 560px;
}
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.hero-note {
  display: flex; align-items: center; gap: .25rem;
  font-size: var(--fs-xs); color: var(--gray-400);
}

/* Hero screenshot */
.hero-screenshot {
  position: relative;
  width: 100%;
  max-width: 1040px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 60px rgba(0,0,0,.13);
  background: var(--gray-50);
}
.hero-screenshot img {
  width: 100%; height: auto; display: block;
}
.screenshot-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  width: 100%; height: 100%;
  color: var(--gray-400);
  font-size: var(--fs-sm);
  font-weight: 500;
  position: absolute; inset: 0;
}
.screenshot-placeholder svg { opacity: .4; }

/* ─── Feature bento grid ─── */
.bento-section {
  padding: 10rem 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}
.bento-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 1.5rem;
}
.bento-tile {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  transition: box-shadow .2s;
}
.bento-tile:hover { box-shadow: 0 8px 30px rgba(0,0,0,.06); }
.bento-tile-lg   { grid-column: span 2; grid-row: span 2; }
.bento-tile-wide { grid-column: span 2; }

.bento-tile-lg,
.bento-tile-wide { gap: 1.25rem; }
.bento-content {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.bento-media {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.bento-media img { width: 100%; height: auto; display: block; }

/* ─── CSV fan illustration (custom, no screenshot) ─── */
.csv-fan {
  border: none;
  overflow: visible;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
}
.csv-file {
  position: absolute;
  width: 108px;
  padding: .85rem .75rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,.09);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: transform .25s;
}
.csv-file svg { width: 22px; height: 22px; color: var(--amber); }
.csv-name {
  font-size: .625rem;
  font-weight: 600;
  color: var(--gray-600);
  line-height: 1.3;
  word-break: break-all;
}
.csv-lines { display: flex; flex-direction: column; gap: .3rem; margin-top: .1rem; }
.csv-lines span { display: block; height: 5px; border-radius: 3px; background: var(--gray-100); }
.csv-lines span:nth-child(1) { width: 100%; }
.csv-lines span:nth-child(2) { width: 78%; }
.csv-lines span:nth-child(3) { width: 55%; }

.csv-file-1 { transform: rotate(-9deg)  translate(-40px, 8px);  z-index: 1; }
.csv-file-2 { transform: rotate(0deg)   translate(0, -8px);     z-index: 3; }
.csv-file-3 { transform: rotate(9deg)   translate(40px, 8px);   z-index: 2; }

.bento-tile:hover .csv-file-1 { transform: rotate(-13deg) translate(-48px, 12px); }
.bento-tile:hover .csv-file-2 { transform: rotate(0deg)   translate(0, -14px); }
.bento-tile:hover .csv-file-3 { transform: rotate(13deg)  translate(48px, 12px); }

.bento-tile-wide {
  flex-direction: row;
  align-items: center;
}
.bento-tile-wide .bento-content { flex: 1 1 55%; justify-content: center; }
.bento-tile-wide .bento-media { flex: 0 0 40%; }

.feature-row-tag {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 700;
  margin-bottom: .5rem;
  width: fit-content;
}
.tag-blue  { background: #eff6ff; color: var(--blue); }
.tag-amber { background: #fff7ed; color: var(--amber); }
.tag-green { background: #f0fdf4; color: var(--green); }

.bento-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--gray-50);
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
  margin-bottom: .5rem;
}
.bento-tile-lg .bento-icon { width: 52px; height: 52px; padding: 12px; }
.bento-icon svg { width: 100%; height: 100%; }
.icon-blue  { color: var(--blue); }
.icon-amber { color: var(--amber); }
.icon-green { color: var(--green); }

.bento-tile h3, .bento-tile h4 {
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.25;
  margin-bottom: 0;
}
.bento-tile p {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--gray-600);
  margin: 0;
}

/* Partners tile (depots, rederijen en havens gebundeld, volle breedte) */
.bento-tile-full {
  grid-column: 1 / -1;
  flex-direction: column;
  align-items: stretch;
  gap: 1.75rem;
}
.partners-head { display: flex; flex-direction: column; gap: .5rem; }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.partner-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.partner-item .bento-icon { margin-bottom: .6rem; }

@media (max-width: 900px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .bento-tile-lg,
  .bento-tile-wide { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 600px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-tile-lg,
  .bento-tile-wide { grid-column: span 1; }
  .bento-tile-wide { flex-direction: column; }
  .bento-tile-wide .bento-content,
  .bento-tile-wide .bento-media { flex: none; width: 100%; }
  .partners-grid { grid-template-columns: 1fr; }
}

/* ─── Early access ─── */
.early-access-section {
  padding: 6rem 0;
  background: #fff;
  border-top: 1px solid var(--gray-200);
}
.early-access-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 3.5rem;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.early-access-card h2 { max-width: 480px; }
.early-access-card p { max-width: 480px; }

/* ─── FAQ ─── */
.faq-section {
  padding: 10rem 0;
  background: #fff;
  border-top: 1px solid var(--gray-200);
}
.faq-section h2 { margin-bottom: 3rem; }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: 760px;
}
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--gray-900);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: var(--fs-lg);
  font-weight: 400;
  color: var(--gray-400);
  margin-left: 1rem;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p {
  margin-top: 1rem;
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* ─── Pricing ─── */
.pricing { padding: 10rem 0; background: var(--gray-50); border-top: 1px solid var(--gray-200); }
.pricing h2, .pricing .section-label, .pricing .section-sub { text-align: center; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
  align-items: stretch;
}
.pricing-card {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: 14px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  transition: box-shadow .2s;
}
.pricing-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.07); }
.plan-core { border-color: #3b82f6; }
.plan-plus { border-color: var(--purple); box-shadow: 0 0 0 3px #ede9fe; }
.plan-pro  { border-color: var(--gray-200); }

.popular-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  color: #fff;
  font-size: var(--fs-xs); font-weight: 700;
  padding: 2px 10px; border-radius: 999px;
  white-space: nowrap;
}
.plan-plus .popular-badge { background: var(--purple); }
.badge-soon { background: var(--gray-900); }

.plan-name   { font-weight: 700; font-size: var(--fs-base); }
.plan-core .plan-name { color: #3b82f6; }
.plan-plus .plan-name { color: var(--purple); }
.plan-pro  .plan-name { color: var(--gray-900); }

.plan-seats  { font-size: var(--fs-xs); color: var(--gray-400); margin-top: -.5rem; }
.plan-price  { display: flex; align-items: baseline; gap: 2px; }
.plan-price .amount { font-size: var(--fs-xl); font-weight: 800; }
.plan-price .period { font-size: var(--fs-sm); color: var(--gray-400); }
.plan-desc   { font-size: var(--fs-sm); color: var(--gray-600); }

.plan-features {
  list-style: none;
  display: flex; flex-direction: column; gap: .75rem;
  flex: 1;
}
.plan-features li {
  font-size: var(--fs-sm);
  color: var(--gray-600);
  padding-left: 1.2rem;
  position: relative;
}
.plan-features li::before {
  content: '\2713';
  position: absolute; left: 0;
  color: var(--green);
  font-weight: 700;
}
.pricing-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: var(--fs-xs);
  color: var(--gray-400);
}

/* ─── CTA banner ─── */
.cta-banner { background: var(--blue); padding: 10rem 0; }
.cta-inner  { text-align: center; }
.cta-banner h2 { color: #fff; }
.cta-banner p  { color: rgba(255,255,255,.8); margin: .75rem 0 2rem; font-size: var(--fs-md); }

/* ─── Footer ─── */
.footer { border-top: 1px solid var(--gray-200); padding: 3rem 0 1.5rem; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.footer-brand p { font-size: var(--fs-sm); color: var(--gray-400); margin-top: .4rem; }
.footer-links { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.footer-links a {
  font-size: var(--fs-sm); color: var(--gray-600);
  text-decoration: none; font-weight: 500;
  transition: color .15s;
}
.footer-links a:hover { color: var(--gray-900); }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  padding: .75rem 1.5rem 0;
  border-top: 1px solid var(--gray-100);
  font-size: var(--fs-xs); color: var(--gray-400);
}
.footer-bottom a { color: var(--gray-400); text-decoration: none; }
.footer-bottom a:hover { color: var(--gray-600); }
.footer-legal-info { display: block; margin-top: .35rem; }

.footer-col h4 {
  font-size: var(--fs-xs); font-weight: 600; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: .6rem;
}
.footer-col { display: flex; flex-direction: column; gap: .45rem; }
.footer-col a {
  font-size: var(--fs-sm); color: var(--gray-600);
  text-decoration: none; font-weight: 500;
  transition: color .15s;
}
.footer-col a:hover { color: var(--gray-900); }

/* ─── Legal pages (terms/privacy/dpa) ─── */
.legal-back {
  font-size: var(--fs-sm); color: var(--gray-600);
  text-decoration: none; font-weight: 500;
}
.legal-back:hover { color: var(--gray-900); }
.legal {
  max-width: 760px; margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}
.legal h1 { font-size: var(--fs-xl); margin-bottom: .35rem; }
.legal-meta { font-size: var(--fs-sm); color: var(--gray-400); margin-bottom: 2rem; }
.legal h2 { font-size: var(--fs-md); margin: 2rem 0 .6rem; }
.legal p { font-size: var(--fs-sm); margin-bottom: .8rem; }
.legal ul { padding-left: 1.25rem; margin-bottom: .8rem; }
.legal li { font-size: var(--fs-sm); color: var(--gray-600); margin-bottom: .35rem; }
.legal a { color: var(--blue); }
.legal-table-wrap { overflow-x: auto; margin-bottom: .8rem; }
.legal table {
  width: 100%; border-collapse: collapse; font-size: var(--fs-sm);
}
.legal th, .legal td {
  text-align: left; padding: .5rem .75rem;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-600);
}
.legal th { color: var(--gray-900); font-weight: 600; }

/* ─── Lightbox ─── */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.85);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 100%; max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 8px 60px rgba(0,0,0,.5);
  cursor: default;
}
.lightbox-close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  background: none; border: none;
  color: #fff; font-size: var(--fs-xl); line-height: 1;
  cursor: pointer; opacity: .7;
  transition: opacity .15s;
}
.lightbox-close:hover { opacity: 1; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero-inner { gap: 2.5rem; }
  .hero-sub   { max-width: 100%; }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn,
  .cta-banner .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .early-access-card { padding: 2rem 1.5rem; }

  .hero { padding: 6.5rem 0 4rem; }
  .bento-section,
  .pricing,
  .faq-section,
  .cta-banner { padding: 4.5rem 0; }
  .early-access-section { padding: 3.5rem 0; }
  .bento-grid { margin-top: 2.5rem; }
}

/* ─── Nav: collapse to hamburger before the row runs out of space ─── */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .35rem;
    background: #fff;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
  }
  .nav-links.active { display: flex; }
  .nav-links a:not(.btn) { padding: .7rem .5rem; }
  .nav-links .btn { margin-left: 0; width: 100%; justify-content: center; }
  .lang-switcher { margin: .35rem 0; align-self: flex-start; }
}
