:root {
  --navy: #0f2b3d;
  --navy-2: #163a52;
  --navy-3: #1f4a66;
  --teal: #1abc9c;
  --teal-d: #12977d;
  --teal-l: #e6f8f3;
  --ink: #142533;
  --text: #445868;
  --muted: #6b7f8e;
  --line: #e3e9ee;
  --bg: #ffffff;
  --tint: #f5f8fa;
  --warn: #e8a33d;
  --err: #d9534f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 43, 61, .06), 0 12px 32px -12px rgba(15, 43, 61, .18);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-d); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); font-size: .9rem; margin: 0; }
.lead { font-size: 1.12rem; color: var(--text); }
.accent { color: var(--teal); }
.mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-d);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--teal); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 700; font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  font-family: inherit;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn--lg { padding: 14px 26px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-d); transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--light:hover { border-color: var(--teal); color: var(--teal-d); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px -12px rgba(15, 43, 61, .25); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; text-decoration: none !important; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text small { font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.brand--light { color: #fff; }
.brand--light .brand__text small { color: #9fb4c3; }
.nav__menu { display: flex; align-items: center; gap: 26px; }
.nav__menu > a:not(.btn) { color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav__menu > a:not(.btn):hover { color: var(--teal-d); text-decoration: none; }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 88px;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(26, 188, 156, .14), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(15, 43, 61, .06), transparent 60%),
    linear-gradient(180deg, #fbfdfe, #f3f7f9);
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero__copy .lead { font-size: 1.18rem; max-width: 560px; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; font-weight: 600; color: var(--ink); }
.hero__ticks li { display: flex; align-items: center; gap: 8px; }
.hero__ticks li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
  flex: none;
}

/* Hero visual */
.flow { position: relative; display: grid; gap: 18px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.doc { max-width: 380px; transform: rotate(-2deg); }
.doc__head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.doc__name { font-size: .82rem; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc__lines { display: grid; gap: 9px; margin-bottom: 16px; }
.doc__lines i { display: block; height: 8px; border-radius: 4px; background: #e9eef2; }
.doc__lines i.hl { background: rgba(26, 188, 156, .35); animation: scan 2.4s ease-in-out infinite; }
.doc__lines i.hl:nth-of-type(6) { animation-delay: .6s; }
.doc__meta { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); font-weight: 600; }

.flow__arrow { display: flex; align-items: center; gap: 12px; padding-left: 48px; }
.flow__dot {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231abc9c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14m-6-6 6 6 6-6'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: 0 0 0 6px rgba(26, 188, 156, .15);
  flex: none;
}
.flow__label { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-3); }

.ched { max-width: 420px; margin-left: auto; border-top: 4px solid var(--teal); }
.ched__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ched__title { font-weight: 800; color: var(--ink); font-size: 1.1rem; }
.ched__fields { margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.ched__fields dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.ched__fields dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); font-size: .9rem; }
.ched__bar { height: 6px; border-radius: 3px; background: var(--teal-l); overflow: hidden; }
.ched__bar span { display: block; height: 100%; width: 100%; background: var(--teal); transform-origin: left; animation: fill 2.4s ease-in-out infinite; }

.pill { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .06em; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; }
.pill--muted { background: #fdecea; color: var(--err); }
.pill--ok { background: var(--teal-l); color: var(--teal-d); }
.pill--xls { background: #e7f4ec; color: #1d7a45; }

@keyframes scan { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes fill { 0% { transform: scaleX(0); } 60%, 100% { transform: scaleX(1); } }

/* Strip */
.strip { background: var(--navy); color: #c9d6df; padding: 30px 0; }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.strip__grid div { display: flex; flex-direction: column; gap: 2px; font-size: .9rem; line-height: 1.4; }
.strip__grid strong { color: #fff; font-size: 1.25rem; font-weight: 800; }

/* Sections */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: linear-gradient(160deg, var(--navy), #0b2232); color: #c9d6df; }
.section--dark h2 { color: #fff; }
.section--dark .lead { color: #c9d6df; }

/* Pain */
.pain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.pain__item { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.pain__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #fdf1e3; margin-bottom: 16px; }
.pain__icon svg { width: 24px; height: 24px; fill: none; stroke: #c27a14; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pain__item p { margin: 0; font-size: .97rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 52px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 26px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--teal) 0 8px, transparent 8px 16px);
  opacity: .5;
}
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 0 24px 26px; border: 1px solid var(--line); margin-top: 26px; }
.step__num {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin: -26px 0 18px;
  border-radius: 50%;
  background: var(--navy); color: var(--teal);
  font-weight: 800; font-size: 1.2rem;
  border: 4px solid var(--tint);
}
.step p { margin: 0; font-size: .95rem; }

/* Platforms */
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.platform { padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.platform__head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.platform__head h3 { font-size: 1.5rem; margin: 0 0 2px; }
.flag { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; font-weight: 800; color: #fff; flex: none; letter-spacing: .04em; }
.flag--eu { background: #1d4fa3; color: #ffd84d; }
.flag--uk { background: #b4213a; }

.checks { list-style: none; padding: 0; margin: 0 0 4px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312977d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checks b { color: var(--ink); }

/* Portal */
.portal { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.features { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.features li { padding-left: 18px; border-left: 3px solid var(--teal); font-size: .97rem; }
.features b { color: #fff; }

.mock { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); color: var(--text); }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eef2f5; border-bottom: 1px solid var(--line); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd8df; }
.mock__bar span { margin-left: 10px; font-size: .75rem; font-weight: 600; color: var(--muted); }
.mock__body { display: grid; grid-template-columns: 54px 1fr; }
.mock__body::before { content: ""; background: var(--navy); grid-row: 1 / span 2; }
.mock__cards { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 10px; padding: 14px 14px 0; }
.mock__card { border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mock__card small { font-size: .66rem; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock__card em { font-style: normal; font-size: .64rem; font-weight: 700; color: var(--muted); }
.mock__card em.up { color: #2a7ab0; }
.mock__card em.down { color: #2a7ab0; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; }
.bars span { flex: 1; background: #8fdac8; border: 1px solid #5cc7ad; border-radius: 2px 2px 0 0; }
.bars--stack span { background: linear-gradient(180deg, #9b2c2c 0 22%, #ef5d5d 22% 40%, #f8b4b4 40%); border: 0; }
.line { width: 100%; height: 70px; }
.line polyline { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.line--prev { stroke: #6f7f94; stroke-dasharray: 5 4; }
.line--cur { stroke: var(--teal); stroke-width: 3; }
.mock__table { padding: 12px 14px 14px; font-size: .7rem; }
.mock__table .row { display: grid; grid-template-columns: 1fr 44px 64px; gap: 8px; padding: 7px 4px; border-bottom: 1px solid var(--line); }
.mock__table .row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.mock__table .row--head { font-weight: 800; color: var(--ink); }
.mock__table .ok { color: #1d8a3c; font-weight: 800; }
.mock__table .warn { color: var(--warn); font-weight: 800; }

/* PDF to Excel */
.idp { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.idp__copy .lead { margin-bottom: 24px; }
.idp__copy .checks { margin-bottom: 28px; }
.idp__visual { display: grid; grid-template-columns: 1fr auto 1.2fr; align-items: center; gap: 14px; }
.idp__visual small { display: block; margin-top: 12px; font-size: .75rem; font-weight: 700; color: var(--muted); }
.idp__arrow { font-size: 1.8rem; font-weight: 800; color: var(--teal); }
.idp__table { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.idp__table i { height: 10px; border-radius: 3px; background: #e9eef2; }
.idp__table i:nth-child(-n+3) { background: #cfd8df; }
.sheet { display: grid; grid-template-columns: 1fr .7fr 1fr; margin-top: 14px; border: 1px solid #cfe3d6; border-radius: 6px; overflow: hidden; font-size: .72rem; }
.sheet span { padding: 6px 8px; border-bottom: 1px solid #e3efe7; border-right: 1px solid #e3efe7; color: var(--ink); white-space: nowrap; }
.sheet span:nth-child(3n) { border-right: 0; text-align: right; }
.sheet .h { background: #1d7a45; color: #fff; font-weight: 700; border-color: #1d7a45; }

/* Who */
.who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.who__item { background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); border-top: 4px solid var(--teal); }
.who__item p { margin: 0; font-size: .95rem; }

/* FAQ */
.faq { margin-top: 40px; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; font-weight: 700; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 500; color: var(--teal-d); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 20px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact__list li { display: flex; flex-direction: column; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.contact__list span { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact__list a { font-weight: 700; font-size: 1.05rem; }
.form { background: #fff; padding: 32px; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--ink); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; font-size: .95rem; color: var(--ink);
  padding: 11px 13px; border: 1px solid #cfd8df; border-radius: 9px; background: #fff; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26, 188, 156, .18); }
.form .is-invalid { border-color: var(--err); }
.form textarea { resize: vertical; }
.form__note { margin: 0; font-size: .82rem; color: var(--muted); text-align: center; }
.form__note.is-error { color: var(--err); font-weight: 600; }

/* Footer */
.footer { background: var(--navy); color: #9fb4c3; padding: 56px 0 28px; font-size: .92rem; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--navy-3); }
.footer__brand p { margin: 14px 0 0; max-width: 340px; }
.footer__links, .footer__contact { display: grid; gap: 10px; align-content: start; }
.footer a { color: #c9d6df; }
.footer a:hover { color: var(--teal); text-decoration: none; }
.footer__legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; font-size: .8rem; color: #7f97a8; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1040px) {
  .nav__menu { gap: 18px; }
  .hero__grid, .portal, .idp, .contact { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { max-width: 560px; }
  .idp__visual { max-width: 560px; }
  .idp__copy { order: -1; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .who { grid-template-columns: 1fr 1fr; }
  .strip__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    box-shadow: 0 20px 30px -20px rgba(15, 43, 61, .3);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu > a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__menu .btn { margin-top: 14px; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 68px 0; }
  .hero { padding: 48px 0 64px; }
  .pain, .platforms, .steps, .who, .form__row { grid-template-columns: 1fr; }
  .strip__grid { grid-template-columns: 1fr; gap: 16px; }
  .platform { padding: 24px; }
  .form { padding: 22px; }
  .flow__arrow { padding-left: 16px; }
  .doc { transform: none; }
  .mock__body { grid-template-columns: 1fr; }
  .mock__body::before { display: none; }
  .mock__cards { grid-template-columns: 1fr 1fr; }
  .mock__card--wide { grid-column: 1 / -1; order: -1; }
  .idp__visual { grid-template-columns: 1fr; justify-items: stretch; }
  .idp__arrow { transform: rotate(90deg); justify-self: center; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
}
