:root {
  --navy: #1B315D;
  --navy-deep: #0F1E3D;
  --navy-soft: #2B4380;
  --accent: #4FC3F7;
  --accent-warm: #FFB547;
  --ink: #1A1F2E;
  --ink-soft: #4B5468;
  --muted: #8590A6;
  --line: #E4E7EE;
  --bg: #FFFFFF;
  --bg-soft: #F7F8FB;
  --bg-tint: #EEF1F8;
  --ok: #2BB673;
  --no: #D04A4A;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 30, 61, 0.04), 0 2px 8px rgba(15, 30, 61, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 30, 61, 0.08);
  --shadow-lg: 0 30px 60px rgba(15, 30, 61, 0.12);
  --max-w: 1180px;
  --gutter: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-soft); }

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

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3, h4 {
  color: var(--ink);
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
  line-height: 1.18;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 700; }
p { color: var(--ink-soft); margin: 0 0 1em; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
}
.eyebrow.light { color: var(--accent); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; color: var(--navy); font-size: 1.06rem; letter-spacing: -0.02em;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  display: grid; place-items: center; color: #fff; font-weight: 800;
}
.brand small { font-weight: 500; color: var(--muted); margin-left: 4px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--navy); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: 0.96rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-soft); color: #fff; box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--bg-tint); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline-light:hover { background: rgba(255,255,255,0.08); color: #fff; }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 600px at 90% -20%, rgba(79, 195, 247, 0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(79, 195, 247, 0.10), transparent 60%),
    linear-gradient(140deg, var(--navy-deep), var(--navy) 60%, var(--navy-soft));
  color: #fff; padding: 96px 0 110px;
}
.hero .eyebrow { color: var(--accent); }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p.lede { color: rgba(255,255,255,0.82); font-size: 1.15rem; max-width: 56ch; margin-bottom: 32px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.hero-meta span { display: flex; align-items: center; gap: 6px; }
.hero-meta svg { stroke: var(--accent); }

.hero-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 22px; backdrop-filter: blur(8px); color: #fff;
}
.hero-card-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 18px;
}
.hero-card-head .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 4px rgba(43, 182, 115, 0.18);
  display: inline-block; margin-right: 8px; vertical-align: middle;
}
.hero-card-head h4 { color: #fff; margin: 0; font-size: 1rem; }
.hero-card-head small { color: rgba(255,255,255,0.55); font-size: 0.82rem; }

.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.metric { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 12px 14px; }
.metric .label { font-size: 0.74rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.08em; }
.metric .value { font-size: 1.4rem; font-weight: 700; margin-top: 4px; }
.metric .value small { font-size: 0.7rem; color: var(--accent); font-weight: 600; margin-left: 6px; }

.bar-chart { display: flex; align-items: end; gap: 6px; height: 70px; margin: 8px 0 6px; }
.bar { flex: 1; background: linear-gradient(180deg, var(--accent), rgba(79,195,247,0.25)); border-radius: 4px 4px 0 0; opacity: 0.85; }
.legend { font-size: 0.78rem; color: rgba(255,255,255,0.55); display: flex; justify-content: space-between; }

.activity-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.06); font-size: 0.88rem;
}
.activity-row:first-of-type { border-top: 0; }
.activity-row .app { display: flex; align-items: center; gap: 10px; }
.app-ico {
  width: 26px; height: 26px; border-radius: 6px;
  background: rgba(79,195,247,0.18); color: var(--accent);
  display: grid; place-items: center; font-size: 0.7rem; font-weight: 700;
}
.activity-row .pct { color: rgba(255,255,255,0.6); }

/* ---------- Section ---------- */
section { padding: 88px 0; }
section.tight { padding: 60px 0; }
section.alt { background: var(--bg-soft); }
section.dark { background: linear-gradient(140deg, var(--navy-deep), var(--navy)); color: #fff; }
section.dark h2, section.dark h3 { color: #fff; }
section.dark p { color: rgba(255,255,255,0.78); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 1.06rem; }

/* ---------- Trust bar ---------- */
.trust {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 44px; padding: 36px 0; color: var(--muted);
}
.trust .trust-label {
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.74rem; font-weight: 700; color: var(--muted);
}
.platform-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-weight: 600; font-size: 0.9rem; color: var(--ink-soft);
}
.platform-pill svg { width: 16px; height: 16px; }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.feature:hover { transform: translateY(-2px); border-color: transparent; box-shadow: var(--shadow-md); }
.feature-ico {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--bg-tint); display: grid; place-items: center;
  margin-bottom: 18px; color: var(--navy);
}
.feature h3 { margin-bottom: 6px; }
.feature p { font-size: 0.96rem; margin-bottom: 0; }

/* ---------- Two-column ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > div:first-child { order: 2; }

.bullets { list-style: none; padding: 0; margin: 20px 0 0; }
.bullets li {
  position: relative; padding: 10px 0 10px 30px;
  border-top: 1px solid var(--line); color: var(--ink-soft);
}
.bullets li:first-child { border-top: 0; }
.bullets li::before {
  content: ''; position: absolute; left: 0; top: 16px;
  width: 18px; height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B315D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: contain; background-repeat: no-repeat;
}
.split.dark .bullets li { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.1); }
.split.dark .bullets li::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234FC3F7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>"); }

/* ---------- Code block ---------- */
.code {
  background: #0F1E3D; border-radius: 14px; color: #DCE3F2;
  padding: 22px 24px;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.9rem; line-height: 1.65; box-shadow: var(--shadow-md); overflow-x: auto;
}
.code .k { color: #FFB547; }
.code .s { color: #7FE0A6; }
.code .c { color: #6E7A95; font-style: italic; }
.code .n { color: #4FC3F7; }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; }
table.compare {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); font-size: 0.96rem;
}
table.compare th, table.compare td {
  padding: 16px 18px; text-align: left;
  border-bottom: 1px solid var(--line); vertical-align: middle;
}
table.compare tr:last-child td { border-bottom: 0; }
table.compare thead th { background: var(--bg-soft); font-weight: 700; font-size: 0.92rem; color: var(--ink); }
table.compare thead th.us { background: var(--navy); color: #fff; }
table.compare td.us { background: rgba(27, 49, 93, 0.03); }
table.compare td.feat { font-weight: 600; color: var(--ink); }
.tick { color: var(--ok); font-weight: 700; }
.cross { color: var(--no); font-weight: 700; }
.partial { color: var(--accent-warm); font-weight: 700; }
.cell-note { color: var(--muted); font-size: 0.84rem; display: block; margin-top: 2px; font-weight: 400; }

/* ---------- Pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tier {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; display: flex; flex-direction: column;
}
.tier.featured {
  background: linear-gradient(160deg, var(--navy-deep), var(--navy));
  color: #fff; border: 0; box-shadow: var(--shadow-lg); transform: translateY(-8px);
}
.tier.featured h3 { color: #fff; }
.tier.featured p { color: rgba(255,255,255,0.78); }
.tier.featured .price { color: #fff; }
.tier.featured .price small { color: rgba(255,255,255,0.6); }
.tier.featured ul li { color: rgba(255,255,255,0.88); border-color: rgba(255,255,255,0.1); }
.tier.featured ul li::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234FC3F7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>"); }
.tier .tag {
  display: inline-block; background: var(--accent); color: var(--navy-deep);
  font-size: 0.74rem; padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 12px;
}
.tier h3 { margin-bottom: 4px; }
.tier .tier-sub { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 22px; }
.tier .price { font-size: 2.4rem; font-weight: 800; color: var(--ink); margin: 8px 0 4px; letter-spacing: -0.02em; }
.tier .price small { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
.tier .price-meta { color: var(--muted); font-size: 0.86rem; margin-bottom: 22px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 24px; flex-grow: 1; }
.tier ul li {
  position: relative; padding: 10px 0 10px 28px;
  border-top: 1px solid var(--line); font-size: 0.94rem; color: var(--ink-soft);
}
.tier ul li:first-child { border-top: 0; }
.tier ul li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 16px; height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B315D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: contain; background-repeat: no-repeat;
}

/* ---------- CTA / Footer ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-soft));
  color: #fff; border-radius: var(--radius-lg); padding: 56px 48px;
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { color: rgba(255,255,255,0.8); margin: 0; max-width: 50ch; }
.cta-band .cta-actions { display: flex; gap: 12px; flex-shrink: 0; }

footer {
  padding: 56px 0 32px; border-top: 1px solid var(--line);
  background: var(--bg-soft); color: var(--ink-soft); font-size: 0.92rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px; margin-bottom: 32px;
}
.footer-grid h4 { font-size: 0.84rem; color: var(--ink); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin: 8px 0; }
.footer-grid ul li a { color: var(--ink-soft); }
.footer-grid ul li a:hover { color: var(--navy); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 0.84rem;
}
.eu-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-tint); color: var(--navy);
  padding: 4px 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
}
.eu-badge::before { content: '🇪🇺'; font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 12px; transition: box-shadow 0.15s ease;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  font-weight: 600; color: var(--ink); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--navy); font-size: 1.3rem; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 14px 0 0; color: var(--ink-soft); }

/* ---------- Legal / long-form ---------- */
.legal-hero {
  background: linear-gradient(140deg, var(--navy-deep), var(--navy));
  color: #fff; padding: 64px 0 48px;
}
.legal-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: 8px; }
.legal-hero p.lede { color: rgba(255,255,255,0.82); max-width: 56ch; }
.legal-hero .meta { color: rgba(255,255,255,0.55); font-size: 0.88rem; margin-top: 12px; }
.legal-hero .meta strong { color: rgba(255,255,255,0.85); font-weight: 600; }
.legal-crumb { color: rgba(255,255,255,0.55); font-size: 0.85rem; margin-bottom: 12px; }
.legal-crumb a { color: rgba(255,255,255,0.75); }

.legal-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 56px;
  padding: 56px 0 88px;
}
.legal-toc {
  position: sticky; top: 88px; align-self: start; font-size: 0.9rem;
}
.legal-toc h4 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); margin-bottom: 12px;
}
.legal-toc ul { list-style: none; padding: 0; margin: 0; }
.legal-toc li { margin: 4px 0; }
.legal-toc a {
  color: var(--ink-soft); display: block;
  padding: 6px 10px; border-left: 2px solid var(--line); border-radius: 0 4px 4px 0;
}
.legal-toc a:hover, .legal-toc a.active {
  color: var(--navy); background: var(--bg-soft); border-left-color: var(--navy);
}

.legal-body { max-width: 740px; font-size: 1rem; line-height: 1.7; color: var(--ink); }
.legal-body h2 {
  font-size: 1.4rem; margin: 44px 0 14px;
  padding-top: 8px; scroll-margin-top: 90px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.08rem; margin: 28px 0 10px; }
.legal-body p { color: var(--ink-soft); }
.legal-body ul, .legal-body ol { color: var(--ink-soft); padding-left: 22px; }
.legal-body li { margin: 6px 0; }
.legal-body table {
  width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.94rem;
}
.legal-body th, .legal-body td {
  text-align: left; padding: 10px 12px;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
.legal-body th { background: var(--bg-soft); font-weight: 600; color: var(--ink); }
.legal-body .callout {
  background: var(--bg-tint); border-left: 3px solid var(--navy); border-radius: 6px;
  padding: 16px 20px; margin: 20px 0; color: var(--ink-soft); font-size: 0.95rem;
}
.legal-body .callout strong { color: var(--ink); }
.legal-body .callout p:last-child { margin-bottom: 0; }
.legal-body code {
  background: var(--bg-tint); padding: 1px 6px; border-radius: 4px;
  font-size: 0.88em; font-family: 'JetBrains Mono', monospace;
}
.legal-body a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.legal-body a:hover { text-decoration-color: var(--navy); }

.policy-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; margin: 28px 0 0;
}
.policy-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.policy-card:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.policy-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.policy-card p { margin: 0 0 12px; font-size: 0.92rem; color: var(--ink-soft); }
.policy-card .read-more { color: var(--navy); font-weight: 600; font-size: 0.92rem; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 24px; right: 24px; bottom: 24px;
  z-index: 200;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  display: none;
  align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  max-width: 880px; margin: 0 auto;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); flex: 1 1 380px; }
.cookie-banner p strong { color: var(--ink); }
.cookie-banner a { color: var(--navy); font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 18px; font-size: 0.9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .split, .split.reverse > div:first-child { grid-template-columns: 1fr; order: 0; }
  .split { gap: 32px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: 1fr; }
  .tier.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
  .nav-links { display: none; }
  section { padding: 64px 0; }
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc { position: static; }
  .policy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 80px; }
  .metric-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}
