:root {
  --ink: #07111f;
  --ink-soft: #18233a;
  --text: #152033;
  --muted: #5d6b82;
  --line: rgba(20, 32, 51, 0.1);
  --paper: #f4f6fb;
  --white: #ffffff;
  --violet: #6d5efc;
  --violet-deep: #4f3ee0;
  --cyan: #49c2ff;
  --shadow: 0 24px 60px rgba(16, 24, 48, 0.08);
  --radius: 28px;
  --header: 78px;
  --edge: clamp(20px, 2.5vw, 40px);
  --hero-edge: clamp(16px, 1.8vw, 28px);
  --font: "Heebo", sans-serif;
  --display: "Outfit", "Heebo", sans-serif;
  --script: "Caveat", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header); }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  direction: rtl;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
button { cursor: pointer; }

::selection { background: #ddd7ff; }

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -80px;
  background: white;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }
/* Keyboard focus is always clearly visible (accessibility standard IS 5568 / WCAG 2.4.7). */
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.85); }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 1px; }
/* Text for screen readers only. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: var(--header);
  color: white;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

body.contact .header,
.header.is-solid {
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--line);
}

/* Full width: logo pinned left, menu pinned right, close to the page edges. */
.header .header-inner {
  width: auto;
  margin-inline: 0;
  padding-inline: var(--edge);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  direction: ltr;
}
/* Language flags always sit in the top-right corner, in both languages. */
.header .nav { order: 1; margin-left: auto; }
.header .burger { order: 2; margin-left: auto; }
.header .lang-switch { order: 3; margin-left: 18px; }
[dir="ltr"] .header .nav { direction: ltr; }

.lang-switch { display: flex; align-items: center; gap: 6px; }
.lang-btn {
  width: 30px;
  height: 21px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: none;
  opacity: 0.45;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
  transition: opacity 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.lang-btn svg { display: block; width: 100%; height: 100%; }
.lang-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.lang-btn[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px #4fb8ff; }
.header.is-solid .lang-btn { box-shadow: 0 0 0 1px var(--line); }
.header.is-solid .lang-btn[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--violet); }

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  color: inherit;
}
/* The FINIT logo: white letters over the dark hero, dark letters once the header turns white. */
.logo-img { display: block; height: 40px; width: auto; }
.logo-on-light { display: none; }
.header.is-solid .logo-on-dark { display: none; }
.header.is-solid .logo-on-light { display: block; }
.footer-logo img { display: block; height: 72px; width: auto; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  direction: rtl;
}
.nav a {
  position: relative;
  text-decoration: none;
  font-weight: 400;
  font-size: 16px;
  padding: 8px 16px;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}
.nav a:hover { opacity: 1; }
.nav a[aria-current] { opacity: 1; font-weight: 500; }
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 16px;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #4fb8ff, #6d5efc);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav a[aria-current]::after { transform: scaleX(1); }

.header-cta {
  margin-left: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 500;
}

.burger {
  display: none;
  margin-left: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  position: relative;
}
.burger span,
.burger span::before,
.burger span::after {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: currentColor;
  content: "";
}
.burger span {
  top: 21px;
  box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor;
}
.burger[aria-expanded="true"] span { background: transparent; box-shadow: none; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header) 0 0 0;
  background: rgba(7, 17, 31, 0.96);
  color: white;
  z-index: 29;
  padding: 28px;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  text-decoration: none;
  font-size: 32px;
  font-weight: 700;
  padding: 8px 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--violet), #3d7dff);
  color: white;
  box-shadow: 0 10px 28px rgba(79, 62, 224, 0.32);
}
.btn-primary:hover { box-shadow: 0 16px 34px rgba(79, 62, 224, 0.42); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}
.btn-line {
  background: white;
  color: var(--text);
  border-color: var(--line);
}
.btn-line:hover { border-color: var(--violet); color: var(--violet-deep); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  color: white;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  padding: calc(var(--header) + 64px) 0 120px;
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 64px));
  max-width: 720px;
  margin-inline-start: max(24px, calc((100vw - 1180px) / 2));
  margin-inline-end: auto;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 12, 24, 0.72) 0%, rgba(7, 12, 24, 0.28) 38%, rgba(7, 12, 24, 0.55) 100%),
    linear-gradient(to left, rgba(7, 12, 24, 0.18), rgba(7, 12, 24, 0.72) 78%);
}
@media (min-width: 861px) {
  /* Same in both languages: text on the left, the whole laptop on the right. */
  .hero { background: #070b1c; align-items: center; }
  .hero-photo {
    inset: 50% 0 auto auto;
    width: auto;
    height: 48vw;
    max-width: none;
    transform: translate(10%, -50%);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 30%), linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent, #000 30%), linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
    mask-composite: intersect;
  }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(7, 12, 24, 0.6) 0%, rgba(7, 12, 24, 0) 22%),
      linear-gradient(to right, rgba(7, 12, 24, 0.75) 0%, rgba(7, 12, 24, 0.5) 30%, rgba(7, 12, 24, 0) 45%);
  }
  .hero-copy {
    width: calc(47vw - var(--hero-edge));
    max-width: none;
    margin-left: var(--hero-edge);
    margin-right: auto;
  }
  /* Hebrew: the paragraph stays centered; the buttons hug the left edge like the English version. */
  .hero .hero-en { margin-right: auto; }
  .hero .hero-lede { margin: 26px auto 0 0; }
  .hero .hero-copy .actions { margin: 34px auto 0 0; justify-content: flex-end; }
  /* Keeps the English block inside the dark area on narrower screens. */
  .hero .hero-eyebrow { font-size: clamp(10px, 0.9vw, 13px); }
}
/* English lines read left-to-right, but the block itself hugs the right side. */
.hero-en {
  width: fit-content;
  max-width: 100%;
  direction: ltr;
  text-align: left;
}
.hero-eyebrow {
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: #4fb8ff;
}
.hero-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 3.9vw, 53px);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.hero-title span { display: block; }
/* Plain Hebrew line inside the main heading (for Google and Hebrew readers); the English slogan follows. */
.hero-title .hero-he {
  margin-bottom: 14px;
  direction: rtl;
  text-align: left;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(20px, 1.9vw, 28px);
  letter-spacing: 0;
  line-height: 1.3;
  color: rgba(234, 238, 255, 0.92);
}
[dir="ltr"] .hero-title .hero-he { direction: ltr; }
.hero-title .grad {
  background: linear-gradient(90deg, #8b5cf6 0%, #6d5efc 40%, #4f8dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede {
  margin: 26px -14px 0 0;
  text-align: center;
  max-width: 570px;
  font-size: 19px;
  line-height: 1.6;
  color: rgba(222, 229, 255, 0.82);
}
/* Same box as the paragraph above, so the buttons center under it. */
.hero .actions {
  margin: 34px -14px 0 0;
  max-width: 570px;
  gap: 18px;
  justify-content: center;
}
.hero .btn { min-height: 56px; padding: 0 28px; border-radius: 16px; font-size: 17px; font-weight: 500; }
.hero .btn-primary,
.header-cta {
  background: linear-gradient(135deg, #5a3dff, #3f5bff);
  box-shadow: 0 14px 34px rgba(80, 64, 255, 0.4);
}
.btn-outline {
  color: white;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline:hover { border-color: white; background: rgba(255, 255, 255, 0.06); }

/* Pillars */
.sheet {
  position: relative;
  z-index: 2;
  margin-top: -40px;
  background: white;
  border-radius: 36px 36px 0 0;
  padding: 54px 0 20px;
}
.sheet-title {
  margin: 0 auto 32px;
  padding-inline: 16px;
  direction: ltr;
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.pillar {
  text-align: center;
  padding: 8px 8px 18px;
}
.icon-bubble {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: var(--violet-deep);
  background: linear-gradient(180deg, #f4f2ff, #e7f3ff);
  box-shadow: inset 0 0 0 1px rgba(109, 94, 252, 0.08);
}
.icon-bubble svg { width: 30px; height: 30px; }
.pillar h2 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}
.pillar p { margin: 0; color: var(--muted); font-size: 14px; }

/* Manifesto */
.manifesto { background: white; padding: 48px 0 24px; }
.manifesto-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.manifesto-title {
  margin: 0;
  direction: ltr;
  text-align: left;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 3.5vw, 51px);
  letter-spacing: -0.045em;
  word-spacing: 0.12em;
  line-height: 0.95;
  color: var(--ink);
}
.manifesto-title span { display: block; }
.grad {
  background: linear-gradient(100deg, var(--violet) 10%, #3d7dff 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.manifesto-copy {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0;
}
.manifesto-copy strong {
  font-family: var(--display);
  letter-spacing: 0.08em;
}

/* Trusted */
.trusted { background: white; padding: 28px 0 10px; }
.trusted-label {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 700;
  direction: ltr;
  justify-content: center;
}
.trusted-label::before,
.trusted-label::after {
  content: "";
  height: 1px;
  width: min(180px, 18vw);
  background: var(--line);
}
.marquee {
  margin-top: 12px;
  /* Room above and below so the tiles' borders, shadow and hover lift aren't cut off. */
  padding: 10px 0 18px;
  overflow: hidden;
  direction: ltr;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee.is-dragging { cursor: grabbing; }
.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.client {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  height: 84px;
  min-width: 150px;
  margin-inline-end: 18px;
  padding: 0 26px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.client:hover {
  background: var(--paper);
  border-color: var(--line);
  transform: translateY(-3px);
}
.client img {
  max-height: 44px;
  max-width: 150px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
.client:hover img { filter: none; opacity: 1; }
.client-word {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 17px;
  color: #24324c;
  white-space: nowrap;
  opacity: 0.6;
  transition: color 0.3s ease, opacity 0.3s ease;
}
.client:hover .client-word { opacity: 1; color: var(--violet-deep); }
/* Real client logos: each sits on a same-size tile in the logo's own background colour, in full colour. */
.client.has-logo {
  width: 170px;
  min-width: 0;
  padding: 10px 18px;
  background: var(--tile, white);
  border-color: var(--line);
  box-shadow: 0 6px 18px rgba(8, 12, 30, 0.06);
}
.client.has-logo:hover { background: var(--tile, white); box-shadow: 0 12px 26px rgba(8, 12, 30, 0.12); }
.client.has-logo img { max-height: 62px; max-width: 134px; filter: none; opacity: 1; }
.trusted-fallback { text-align: center; color: var(--muted); }
/* Pause / play for moving content (client banner, demo video). */
.motion-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: white;
  cursor: pointer;
}
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { border-color: var(--violet); color: var(--violet); }
.motion-toggle svg { width: 16px; height: 16px; }
.motion-toggle .icon-play,
.motion-toggle.is-stopped .icon-pause { display: none; }
.motion-toggle.is-stopped .icon-play { display: block; }
.marquee-toggle { margin: 0 auto; }

/* Journey */
.journey { background: var(--paper); padding: 52px 0 28px; }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.section-head p { margin: 10px auto 0; max-width: 640px; color: var(--muted); }

.timeline-wrap { overflow-x: auto; padding-bottom: 8px; }
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  min-width: 860px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 7%;
  right: 7%;
  height: 2px;
  background: linear-gradient(270deg, var(--violet), var(--cyan));
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 1.1s ease;
}
.timeline.is-in::before { transform: scaleX(1); }
.timeline li { text-align: center; position: relative; }
.node {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: white;
  color: var(--violet-deep);
  box-shadow: 0 10px 30px rgba(79, 62, 224, 0.15);
  position: relative;
  z-index: 1;
}
.node svg { width: 24px; height: 24px; }
.timeline strong { display: block; font-size: 16px; }
.timeline small {
  display: block;
  margin-top: 4px;
  font-family: var(--display);
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}
.journey .actions { justify-content: center; margin-top: 24px; }

/* Closer */
.closer {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(600px 240px at 80% 0%, rgba(109, 94, 252, 0.45), transparent 60%),
    radial-gradient(500px 220px at 10% 100%, rgba(62, 150, 255, 0.35), transparent 60%),
    var(--ink);
  padding: 88px 0;
  text-align: center;
}
.closer h2 {
  margin: 0 auto 24px;
  max-width: 14em;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.closer .actions { justify-content: center; }
.orb {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  filter: blur(30px);
  background: rgba(109, 94, 252, 0.35);
  animation: float 8s ease-in-out infinite;
}
.orb-a { top: -80px; left: 8%; }
.orb-b { bottom: -90px; right: 6%; background: rgba(73, 194, 255, 0.28); animation-delay: -3s; }
@keyframes float {
  50% { transform: translateY(16px) scale(1.05); }
}

/* Services */
.page { padding: calc(var(--header) + 36px) 0 80px; }
.page-intro h1 {
  margin: 8px 0 10px;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.lede { margin: 0; max-width: 38em; color: var(--muted); font-size: 18px; }
.services-hero {
  position: relative;
  overflow: hidden;
  color: white;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  padding: 96px 0 72px;
  background: #070d1c;
}
.services-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.services-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 13, 28, 0.45) 0%, rgba(7, 13, 28, 0.88) 100%),
    radial-gradient(680px 320px at 82% 0%, rgba(109, 94, 252, 0.4), transparent 62%);
}
.services-hero .container { position: relative; z-index: 1; text-align: center; }
.services-hero .lede { margin-inline: auto; }
.services-hero h2 {
  margin: 12px 0 14px;
  max-width: 100%;
  font-size: clamp(40px, 11vw, 92px);
  letter-spacing: -0.05em;
  line-height: 0.95;
}
.services-hero .lede { color: rgba(255, 255, 255, 0.78); font-size: 20px; }
.services-hero .eyebrow { color: #c9d4ff; }
/* Same background as the journey section. */
.services-wrap {
  background: var(--paper);
  color: var(--text);
  /* Lets the cards overlap the photo above without the background following them. */
  display: flow-root;
}
.services-body { position: relative; z-index: 2; margin-top: -36px; padding-bottom: 48px; }
.eyebrow {
  margin: 0;
  font-family: var(--display);
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
  color: var(--violet-deep);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current="page"] { opacity: 0.72; }
.jump {
  position: sticky;
  top: calc(var(--header) + 10px);
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  overflow: auto;
  padding: 8px;
  margin: 0 0 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(109, 94, 252, 0.14);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(60, 50, 160, 0.1);
  backdrop-filter: blur(16px);
}
.jump a {
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.jump a:hover { background: rgba(109, 94, 252, 0.1); color: var(--violet-deep); }
.jump a.is-active {
  background: linear-gradient(135deg, #5a3dff, #3f5bff);
  color: white;
  transform: translateY(-1px);
}
.service {
  --tone: var(--violet-deep);
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(160deg, #ffffff, #f6f5ff);
  border-radius: 32px;
  padding: 28px;
  margin-top: 16px;
  box-shadow: 0 24px 60px rgba(60, 50, 160, 0.1);
  scroll-margin-top: 150px;
  border: 1px solid rgba(109, 94, 252, 0.14);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}
.service .svc-title { margin: 8px 0 4px; font-size: 32px; letter-spacing: -0.03em; color: var(--ink); }
.kicker { margin: 0; font-weight: 700; }
.service .kicker { color: var(--tone); }
.service .intro { margin: 8px 0 0; color: var(--muted); }
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}
.features li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #f1f0ff;
  border-radius: 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(109, 94, 252, 0.08);
}
.features h4 { margin: 0 0 6px; font-size: 16px; color: var(--ink); }
.features p { margin: 0; color: var(--muted); font-size: 14.5px; }
.features a { color: var(--violet-deep); font-weight: 700; }
.js .service.is-in .features li {
  animation: rise 0.7s ease both;
}
.js .service.is-in .features li:nth-child(2) { animation-delay: 0.06s; }
.js .service.is-in .features li:nth-child(3) { animation-delay: 0.12s; }
.js .service.is-in .features li:nth-child(4) { animation-delay: 0.18s; }
.js .service.is-in .features li:nth-child(5) { animation-delay: 0.24s; }
.js .service.is-in .features li:nth-child(6) { animation-delay: 0.3s; }
.js .service.is-in .features li:nth-child(7) { animation-delay: 0.36s; }
.js .service.is-in .features li:nth-child(8) { animation-delay: 0.42s; }
.js .service.is-in .features li:nth-child(9) { animation-delay: 0.48s; }
@keyframes rise {
  from { opacity: 0; }
  to { opacity: 1; }
}
.features li.soon {
  position: relative;
  overflow: hidden;
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #3b2c9e, #2a4bb5);
  color: white;
  border-color: transparent;
}
.features li.soon:hover {
  background: linear-gradient(135deg, #4534b3, #3257c9);
  border-color: transparent;
}
.soon::after {
  content: "";
  position: absolute;
  inset: -40% -20%;
  z-index: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.16), transparent 65%);
  transform: translateX(40%);
  animation: sheen 3.6s ease-in-out infinite;
}
@keyframes sheen {
  0% { transform: translateX(45%); }
  100% { transform: translateX(-45%); }
}
.soon h4, .soon p { position: relative; z-index: 1; color: white; }
.soon p { opacity: 0.82; }
.badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-family: var(--display);
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 700;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08); }
}


/* Technology */
.tech-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
  padding: 80px 0 56px;
  background:
    radial-gradient(800px 400px at 80% 20%, rgba(109, 94, 252, 0.45), transparent 60%),
    radial-gradient(700px 380px at 10% 80%, rgba(62, 160, 255, 0.28), transparent 55%),
    #070d1c;
}
.tech-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  animation: drift 18s linear infinite;
}
@keyframes drift { to { background-position: 72px 72px; } }
.tech-hero .container { position: relative; z-index: 1; }
.tech-hero h2 {
  margin: 12px 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  direction: ltr;
  text-align: center;
}
.tech-hero h2 span { color: #b7c6ff; }
.tech-hero .container { text-align: center; }
.tech-hero .lede { color: rgba(255, 255, 255, 0.78); font-size: 18px; max-width: 34em; margin-inline: auto; }
@media (min-width: 861px) {
  /* One line on computers; phones are too narrow and wrap normally. */
  .tech-hero .lede { max-width: none; white-space: nowrap; }
}
.script-note {
  margin: 0;
  font-family: var(--script);
  font-size: 32px;
  color: #d5e4ff;
}

.products { padding: 28px 0 20px; }
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  background: white;
  border-radius: 32px;
  padding: 28px;
  margin-top: 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.product + .product { margin-top: 22px; }
.product .product-name {
  margin: 0;
  font-family: var(--display);
  letter-spacing: 0.08em;
  font-size: 28px;
}
.product .kicker { font-size: 20px; margin-top: 8px; }
.product p { color: var(--muted); }
.product-visual { min-height: 220px; }
/* The three systems side by side as equal cards; the demo shows only on "Short demo". */
.product-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}
.product-row .product,
.product-row .product + .product { margin-top: 0; }
.product-row .product {
  grid-template-columns: 1fr;
  align-items: stretch;
  padding: 32px 28px 28px;
  border-top: 4px solid var(--violet);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-row .product:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(8, 12, 30, 0.14); }
.product-row .product > div { display: flex; flex-direction: column; height: 100%; }
.product-row .product-name { font-size: 24px; line-height: 1.2; }
.product-row .kicker { font-size: 18px; }
.product-row .actions { margin-top: auto; padding-top: 10px; }
@media (max-width: 980px) {
  .product-row { grid-template-columns: 1fr; }
}

.app-frame {
  background: #0d1426;
  color: white;
  border-radius: 22px;
  overflow: hidden;
  min-height: 220px;
  box-shadow: 0 20px 50px rgba(8, 12, 30, 0.28);
}
/* Product card preview: one still screen from the demo, softly dimmed, with a play button. */
.demo-preview { min-height: 0; cursor: pointer; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.demo-preview:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(8, 12, 30, 0.34); }
.demo-preview-stage { position: relative; aspect-ratio: 1900 / 872; overflow: hidden; background: white; }
.demo-preview-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}
.demo-preview:hover .demo-preview-stage img { transform: scale(1.03); }
.demo-play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(13, 20, 38, 0.18), rgba(13, 20, 38, 0.55));
  transition: background 0.25s ease;
}
.demo-preview:hover .demo-play { background: linear-gradient(180deg, rgba(13, 20, 38, 0.1), rgba(13, 20, 38, 0.45)); }
.demo-play-btn {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: white;
  background: var(--violet, #5b4bff);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.22), 0 14px 30px rgba(20, 16, 80, 0.4);
  transition: transform 0.25s ease;
}
.demo-play-btn svg { width: 26px; height: 26px; margin-left: 4px; }
.demo-preview:hover .demo-play-btn { transform: scale(1.08); }
.demo-play-label {
  padding: 5px 14px;
  border-radius: 99px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  background: rgba(13, 20, 38, 0.55);
  backdrop-filter: blur(4px);
}
.app-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #141c33;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.12em;
  direction: ltr;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; }
.dot:nth-child(2) { background: #febc2e; }
.dot:nth-child(3) { background: #28c840; }
.app-body { padding: 16px; display: grid; gap: 10px; }
.app-row, .doc-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
}
.money { font-family: var(--display); color: #9eb6ff; direction: ltr; }
.check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1f8f78;
  font-size: 12px;
}
.file-pill {
  justify-self: start;
  border-radius: 999px;
  padding: 8px 12px;
  background: linear-gradient(90deg, var(--violet), #3d7dff);
  font-size: 13px;
  font-weight: 700;
}

.pension { padding: 16px 0 48px; }
.pension-card {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  background: white;
  border-radius: 32px;
  padding: 36px;
  box-shadow: var(--shadow);
  align-items: center;
}
.pension .pension-title { margin: 0 0 10px; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; }
.advisor {
  background: var(--paper);
  border-radius: 24px;
  padding: 22px;
}
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, var(--violet), #3d7dff);
  margin-bottom: 12px;
}
.advisor h4 { margin: 0; font-size: 22px; }
.advisor .role { margin: 2px 0 12px; color: var(--muted); }
.contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 6px;
}
.contact-line:hover { color: var(--violet-deep); }

/* Contact */
.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.05fr) minmax(0, 0.9fr);
  /* Fills one screen below the menu; grows a little on short screens instead of
     hiding part of the form behind an inner scrollbar. */
  min-height: min(760px, calc(100vh - var(--header)));
  direction: ltr;
  background: white;
}
.talk-panel {
  position: relative;
  color: white;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 28px;
}
.talk-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.talk-panel .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 12, 24, 0.15), rgba(7, 12, 24, 0.78));
}
.talk-copy { position: relative; z-index: 1; text-shadow: 0 2px 14px rgba(5, 10, 25, 0.55); }
.talk-copy .script-note { font-size: 42px; }
.talk-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 4vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  direction: ltr;
}
.form-panel, .details-panel { padding: 18px 28px; direction: rtl; overflow: auto; }
.form-panel h2, .details-panel h2 { margin: 0 0 12px; font-size: 26px; }
.req { color: #e5484d; font-weight: 700; }
/* Submit stays locked until the required fields are filled. */
.btn.is-locked { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.hint { margin: 0 0 18px; color: var(--muted); }
/* SHAAM query codes page: a readable table whose headings stay in view. */
.shaam-note { color: var(--muted); }
.shaam-note:empty { display: none; }
.shaam-table-wrap { margin-top: 18px; }
.shaam-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 15px;
}
.shaam-table th {
  position: sticky;
  top: var(--header);
  z-index: 1;
  padding: 12px 14px;
  text-align: right;
  color: white;
  font-weight: 700;
  background: var(--violet-deep);
}
.shaam-table th:first-child { border-start-start-radius: 15px; }
.shaam-table th:last-child { border-start-end-radius: 15px; }
.shaam-table td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.shaam-table tbody tr:nth-child(even) { background: var(--paper); }
.shaam-table tbody tr:hover { background: #eeecff; }
.shaam-table td:nth-child(-n + 2) { width: 84px; font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) {
  .shaam-table { font-size: 14px; }
  .shaam-table th, .shaam-table td { padding: 9px 8px; }
  .shaam-table td:nth-child(-n + 2) { width: 56px; }
}
/* Same size as the address card, in violet. It pulses a few times when it comes into view
   (under 5 seconds, so it needs no pause button under the accessibility standard). */
.shaam-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(351px, 100%);
  min-height: 105px;
  margin: 10px auto 0;
  /* The menu tab scrolls here: stop with the button mid-screen, clear of the fixed header. */
  scroll-margin-top: 35vh;
  border-radius: 16px;
  color: white;
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  box-shadow: 0 10px 28px rgba(79, 62, 224, 0.32);
}
.shaam-btn:hover { color: white; box-shadow: 0 16px 34px rgba(79, 62, 224, 0.45); }
.shaam-btn.is-nudging { animation: shaam-nudge 1.4s ease-in-out 3; }
@keyframes shaam-nudge {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 28px rgba(79, 62, 224, 0.32), 0 0 0 0 rgba(109, 94, 252, 0.45); }
  50% { transform: scale(1.03); box-shadow: 0 14px 32px rgba(79, 62, 224, 0.42), 0 0 0 12px rgba(109, 94, 252, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .shaam-btn.is-nudging { animation: none; }
}
.fields { display: grid; gap: 10px; }
label { display: grid; gap: 5px; font-weight: 600; font-size: 14px; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfcff;
  border-radius: 12px;
  padding: 10px 14px;
  outline: none;
}
textarea { min-height: 76px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(109, 94, 252, 0.15);
  background: white;
}
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.form-status { min-height: 1.4em; margin: 10px 0 0; font-weight: 600; }
.form-status.is-error { color: #b42318; }
.form-status.is-ok { color: #067647; }
.office {
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  margin-top: 10px;
}
.office:hover { border-color: var(--violet); }
.office strong { display: block; }
.office span { color: var(--muted); font-size: 14px; }
.details-panel .contact-line { margin-top: 14px; }
/* "Relevant to me" picks in the contact section (checkbox cubes). */
/* Contact form: name and phone share a row so the form still fits on one screen. */
#contact-form .fields { grid-template-columns: 1fr 1fr; }
#contact-form .fields > * { grid-column: 1 / -1; }
#contact-form .fields > label:nth-child(-n + 2) { grid-column: auto; }
#contact-form textarea { min-height: 58px; }
@media (max-width: 420px) {
  #contact-form .fields > label:nth-child(-n + 2) { grid-column: 1 / -1; }
}
.pick { border: 0; margin: 2px 0 0; padding: 0; min-width: 0; }
.pick legend { padding: 0; margin-bottom: 5px; font-weight: 600; font-size: 14px; }
.pick .chip span { min-height: 32px; padding: 4px 12px; font-size: 13px; }
.pick .chip input:checked + span { background: var(--violet-deep); border-color: var(--violet-deep); }
.pick .chip input:checked + span::before { content: "✓ "; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(7, 12, 24, 0.62);
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-card {
  width: min(760px, 100%);
  max-height: min(88vh, 860px);
  overflow: auto;
  background: white;
  border-radius: 28px;
  padding: 22px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--paper);
}
.demo-card { width: min(860px, 100%); }
/* Recorded Supademo demo: a wide window and only the embedded player. */
.demo-embed { display: none; }
.modal.is-embed .demo-card { width: min(1200px, 100%); max-height: 94vh; }
.modal.is-embed .demo-embed {
  display: block;
  width: 100%;
  aspect-ratio: 2.19;
  max-height: calc(94vh - 120px);
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
}
.modal.is-embed .demo-embed { position: relative; }
.modal.is-embed .demo-embed iframe { position: relative; z-index: 1; display: block; width: 100%; height: 100%; border: 0; }
.demo-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  background: var(--paper);
}
.modal.is-embed .progress,
.modal.is-embed #demo-stage,
.modal.is-embed .demo-caption,
.modal.is-embed .demo-nav { display: none; }
@media (max-width: 860px) {
  .modal.is-embed .demo-embed { aspect-ratio: auto; height: 70vh; }
}
/* "Video" demo: the looping demo screenshots, large, with a way into the interactive demo. */
.demo-video, .demo-full { display: none; }
.modal.is-video .demo-card { width: min(1240px, 100%); max-height: 94vh; }
.modal.is-video .demo-video {
  display: block;
  position: relative;
  aspect-ratio: 1900 / 872;
  /* Fit the whole window on screen: shrink the picture on short screens. */
  width: min(100%, calc((94vh - 215px) * 2.18));
  margin: 12px auto 0;
  border-radius: 14px;
  overflow: hidden;
  background: white;
  box-shadow: 0 0 0 1px #e6e9f2;
}
.demo-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.45s ease; }
.demo-slide.is-active { opacity: 1; }
.demo-slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.demo-spot {
  position: absolute;
  border: 2px solid #4f46e5;
  border-radius: 8px;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.18);
  animation: demo-pulse 1.6s ease-in-out infinite;
}
@keyframes demo-pulse {
  50% { box-shadow: 0 0 0 9px rgba(79, 70, 229, 0.08); }
}
.demo-tip {
  position: absolute;
  width: 36%;
  margin: 0;
  padding: 14px 18px;
  border-radius: 14px;
  background: #4f46e5;
  color: white;
  font-size: clamp(13px, 1.35vw, 17px);
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 14px 34px rgba(30, 27, 90, 0.3);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}
.demo-slide.is-active .demo-tip { opacity: 1; transform: none; }
/* On a wide screen the bubble shows the text; the caption stays for screen readers only. */
.modal.is-video .demo-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.demo-controls { display: none; }
.modal.is-video .demo-controls { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.demo-pause { width: 44px; height: 44px; }
.modal.is-video .demo-full { display: inline-flex; }
.modal.is-video #demo-stage,
.modal.is-video .demo-nav { display: none; }
/* On a phone the bubble would cover the picture, so the text shows underneath instead. */
@media (max-width: 760px) {
  .demo-tip { display: none; }
  .modal.is-video .demo-caption {
    position: static;
    width: auto;
    height: auto;
    min-height: 4.5em;
    margin: 12px 0 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    color: var(--ink);
  }
}
@media (prefers-reduced-motion: reduce) {
  .demo-spot { animation: none; }
}
.demo-caption { color: var(--muted); }
.demo-nav { display: flex; gap: 8px; margin-top: 12px; }
.progress {
  height: 4px;
  border-radius: 99px;
  background: #e6e9f2;
  overflow: hidden;
  margin: 8px 0 14px;
}
.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transform-origin: right center;
}

/* Missing-invoices demo screens: compact so the whole demo fits on screen like the others. */
.inv-body { padding: 12px; gap: 6px; }
.inv-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inv-stat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.inv-stat small { font-size: 11.5px; opacity: 0.75; }
.inv-stat b { font-family: var(--display); font-size: 20px; line-height: 1.2; transition: color 0.3s ease; }
.inv-stat.is-good b { color: #4ade80; }
.inv-stat.is-open b { color: #f87171; }
.inv-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.inv-top { padding-block: 8px; }
.inv-top .inv-tools { margin-left: auto; direction: rtl; letter-spacing: 0; font-family: var(--font); }
.inv-top .inv-btn { margin-inline-start: 0; }
.inv-top .inv-tools .inv-tab:nth-child(2) { margin-inline-end: 6px; }
.inv-tab {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  background: rgba(255, 255, 255, 0.05);
}
.inv-tab.is-active { background: rgba(109, 94, 252, 0.35); }
.inv-btn {
  margin-inline-start: auto;
  padding: 3px 10px;
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 600;
  background: linear-gradient(135deg, #5a3dff, #3f5bff);
}
.inv-btn + .inv-btn { margin-inline-start: 0; }
.inv-btn.is-hot { box-shadow: 0 0 0 3px rgba(79, 184, 255, 0.55); }
.inv-row {
  display: grid;
  grid-template-columns: 1.5fr 1.1fr 0.9fr 1.3fr 0.8fr;
  gap: 8px;
  align-items: center;
  padding: 5px 12px;
  border-radius: 9px;
  font-size: 12.5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.inv-row.inv-head { background: none; border: 0; padding-block: 2px; font-size: 11px; opacity: 0.6; }
.inv-row.is-new { border-color: rgba(74, 222, 128, 0.5); background: rgba(74, 222, 128, 0.08); }
.inv-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  color: #f5b93a;
  border: 1px solid rgba(245, 185, 58, 0.6);
  white-space: nowrap;
}
.inv-pill.is-done { color: #4ade80; border-color: rgba(74, 222, 128, 0.6); }
@media (max-width: 560px) {
  .inv-row { grid-template-columns: 1.4fr 1fr 1.3fr; padding: 4px 8px; }
  .inv-row .inv-date, .inv-row.inv-head { display: none; }
  .inv-stat { padding: 4px 8px; column-gap: 6px; }
  .inv-stat b { font-size: 17px; }
  .inv-stat small:last-child { display: none; }
  .inv-top .inv-tab { display: none; }
  .inv-top > span:not(.inv-tools) { display: none; }
}

/* Booking */
.booking { background: var(--paper); padding: 28px 0; }
@media (min-width: 861px) {
  /* Fills one screen below the menu, so the next section stays out of view. */
  .booking {
    min-height: calc(100vh - var(--header));
    display: flex;
    align-items: center;
  }
  .booking .booking-card { width: min(1180px, calc(100% - 48px)); }
}
.booking .form-status:empty { display: none; }
.booking-card {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: 32px;
  align-items: center;
}
.booking-intro h2 {
  margin: 8px 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.booking-points {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.booking-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.booking-points li::before {
  content: "✓";
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
  color: white;
  background: linear-gradient(135deg, var(--violet), #3d7dff);
}
.booking-widget {
  background: white;
  border-radius: 28px;
  padding: 18px 24px;
  box-shadow: var(--shadow);
}
.booking-widget fieldset {
  border: 0;
  margin: 0 0 10px;
  padding: 0;
  min-width: 0;
}
.booking-widget legend {
  padding: 0;
  margin-bottom: 7px;
  font-weight: 700;
  font-size: 14px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; gap: 0; font-weight: 500; cursor: pointer; }
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.chip span {
  display: grid;
  place-items: center;
  min-width: 58px;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 14px;
  border: 1px solid var(--line);
  background: #fbfcff;
  line-height: 1.25;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.chip span small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.chip:hover span { border-color: var(--violet); transform: translateY(-1px); }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(109, 94, 252, 0.2); }
.chip input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.chip input:checked + span small { color: rgba(255, 255, 255, 0.72); }
.chip input:disabled + span { opacity: 0.4; cursor: not-allowed; transform: none; }
/* All four detail fields on one row on computers. */
.fields-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fields-row label > span { white-space: nowrap; }
@media (max-width: 860px) { .fields-row { grid-template-columns: 1fr 1fr; } }
.optional { font-weight: 500; color: var(--muted); }
/* Outlook Bookings calendar: as tall as the screen allows, so the section still fits in one view. */
.booking-embed {
  width: 100%;
  height: min(760px, calc(100vh - var(--header) - 96px));
  min-height: 520px;
  border: 0;
  border-radius: 20px;
  display: block;
  background: white;
}
.booking-widget:has(.booking-embed) { padding: 8px; }
.booking-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--violet-deep);
  text-decoration: none;
}
.booking-open:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .booking-embed { height: 720px; }
}

/* Footer */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 36px 0;
}
/* Full width like the top bar: the logo and the details sit at the two edges of the page. */
.footer .footer-inner {
  width: auto;
  margin-inline: 0;
  padding-inline: var(--edge);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.footer .logo { color: white; }
/* Floating WhatsApp button, bottom-right on every page (below the demo window). */
.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: white;
  background: #25d366;
  box-shadow: 0 10px 26px rgba(7, 17, 31, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, bottom 0.25s ease;
}
/* Set from main.js while the footer is on screen, so the button sits just above it. */
.whatsapp-fab.is-lifted { bottom: calc(var(--footer-visible, 0px) + 20px); }

/* Accessibility menu: the button sits above the WhatsApp button and rises with it over the footer. */
.a11y-toggle {
  position: fixed;
  right: 20px;
  bottom: calc(var(--footer-visible, 0px) + 88px);
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  background: var(--violet-deep);
  box-shadow: 0 10px 26px rgba(8, 12, 30, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease, bottom 0.25s ease;
}
.a11y-toggle:hover { transform: scale(1.06); }
.a11y-toggle svg { width: 32px; height: 32px; }
.a11y-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: min(380px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--text);
  background: white;
  box-shadow: 0 24px 60px rgba(8, 12, 30, 0.35);
}
.a11y-panel[hidden] { display: none; }
.a11y-panel:focus { outline: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.a11y-head h2 { margin: 0; font-size: 20px; }
.a11y-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  font-size: 22px;
  background: var(--paper);
  cursor: pointer;
}
.a11y-size { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 600; }
.a11y-size span { margin-inline-end: auto; }
.a11y-size button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 22px;
  font-weight: 700;
  background: var(--paper);
  cursor: pointer;
}
.a11y-size button[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.a11y-percent { min-width: 48px; text-align: center; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.a11y-option {
  min-height: 52px;
  padding: 8px;
  border: 2px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  background: var(--paper);
  cursor: pointer;
}
.a11y-option:hover { border-color: var(--violet); }
.a11y-option[aria-pressed="true"] { color: white; border-color: var(--violet-deep); background: var(--violet-deep); }
.a11y-option[aria-pressed="true"]::before { content: "✓ "; }
.a11y-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 14px; }
.a11y-reset {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  color: inherit;
  background: white;
  cursor: pointer;
}
.a11y-foot a { color: var(--violet-deep); text-decoration: underline; }

/* The settings themselves. */
html.a11y-zoomed :is(main, .header, .footer, .mobile-nav, .modal) { zoom: var(--a11y-zoom); }
/* Enlarged text reaches over the laptop photo; dim the photo so it stays readable. */
html.a11y-zoomed .hero-shade { background: rgba(7, 12, 24, 0.78); }
html.a11y-grayscale :is(main, .header, .footer, .modal, .whatsapp-fab) { filter: grayscale(1); }
html.a11y-contrast-dark body,
html.a11y-contrast-dark body *:not(svg, svg *) {
  background-color: #000 !important;
  background-image: none !important;
  color: #fff !important;
  -webkit-text-fill-color: currentColor !important;
  border-color: #fff !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
html.a11y-contrast-dark body a { color: #ff0 !important; }
html.a11y-contrast-dark body ::placeholder { color: #ddd !important; }
html.a11y-contrast-dark .logo-on-light { padding: 2px; border-radius: 6px; background-color: #fff !important; }
html.a11y-contrast-light body,
html.a11y-contrast-light body *:not(svg, svg *) {
  background-color: #fff !important;
  background-image: none !important;
  color: #000 !important;
  -webkit-text-fill-color: currentColor !important;
  border-color: #000 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
html.a11y-contrast-light body a { color: #00008b !important; text-decoration: underline !important; }
html.a11y-contrast-light body ::placeholder { color: #333 !important; }
html.a11y-contrast-light :is(.logo-on-dark, .footer-logo img) { padding: 2px; border-radius: 6px; background-color: #000 !important; }
html:is(.a11y-contrast-dark, .a11y-contrast-light) :is(.a11y-toggle, .whatsapp-fab, .demo-tip, .btn, .a11y-option) { border: 2px solid currentColor !important; }
html:is(.a11y-contrast-dark, .a11y-contrast-light) .btn.is-locked { opacity: 1; border-style: dashed !important; }
html.a11y-contrast-dark .a11y-option[aria-pressed="true"] { border-width: 4px !important; border-color: #ff0 !important; color: #ff0 !important; }
html.a11y-contrast-light .a11y-option[aria-pressed="true"] { border-width: 4px !important; }
html.a11y-links body a:not(.logo, .whatsapp-fab) {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  background: #fff200 !important;
  text-decoration: underline !important;
  outline: 2px solid #000;
}
html.a11y-headings :is(h1, h2, h3, h4):not(.a11y-panel h2) {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  background: #fff6bf !important;
  outline: 2px solid #4f3ee0;
  outline-offset: 2px;
}
html.a11y-headings :is(h1, h2, h3, h4):not(.a11y-panel h2) * { color: #000 !important; -webkit-text-fill-color: #000 !important; }
html.a11y-font body *:not(svg, svg *) { font-family: Arial, "Segoe UI", sans-serif !important; }
html.a11y-spacing :is(main, .footer) *:not(svg, svg *) {
  line-height: 1.7 !important;
  letter-spacing: 0.05em !important;
  word-spacing: 0.16em !important;
}
html.a11y-still,
html.a11y-still *,
html.a11y-still *::before,
html.a11y-still *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html.a11y-cursor,
html.a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 12-7 1 4 7-3 1.500-4-7-5 5z' fill='%23000' stroke='%23fff' stroke-width='1.200'/%3E%3C/svg%3E") 6 3, auto !important;
}
.whatsapp-fab svg { width: 30px; height: 30px; }
.whatsapp-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 30px rgba(7, 17, 31, 0.34); }
.whatsapp-fab:focus-visible { outline: 3px solid #4fb8ff; outline-offset: 3px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 14px; }
.footer .footer-legal a { color: rgba(255, 255, 255, 0.78); text-decoration: underline; text-underline-offset: 3px; }
.footer .footer-legal a:hover { color: white; }

/* Accessibility statement / privacy policy pages */
.legal-page .header { background: rgba(255, 255, 255, 0.95); color: var(--text); box-shadow: 0 1px 0 var(--line); }
.legal-page .logo-on-light { display: block; }
.legal-page .legal-nav { display: flex; }
.legal { padding: calc(var(--header) + 48px) 0 72px; background: var(--paper); }
.legal-body { max-width: 820px; }
.legal h1 { margin: 6px 0 4px; font-size: clamp(34px, 4vw, 48px); letter-spacing: -0.02em; }
.legal-updated { margin: 0 0 28px; color: var(--muted); font-size: 14px; }
.legal h2 { margin: 36px 0 10px; font-size: 22px; }
.legal p, .legal li { font-size: 17px; line-height: 1.75; color: var(--ink-soft); }
.legal ul { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.legal a { color: var(--violet-deep); }
.legal-contact { list-style: none; padding-inline-start: 0; }
.legal-fill { background: #fff4c2; padding: 0 6px; border-radius: 4px; }
.footer a { color: white; text-decoration: none; }
.footer small { display: block; margin-top: 8px; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .nav, .header-cta { display: none; }
  .burger { display: inline-block; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .manifesto-grid, .product, .pension-card, .contact-shell, .booking-card { grid-template-columns: 1fr; }
  .manifesto-title { text-align: right; }
  .contact-shell { height: auto; max-height: none; }
  .talk-panel { min-height: 280px; }
}
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; }
  .container { width: min(1180px, calc(100% - 32px)); }
  .hero, .services-hero { align-items: center; }
  .hero-shade { background: linear-gradient(180deg, rgba(7, 11, 28, 0.82), rgba(7, 11, 28, 0.72)); }
  .hero-eyebrow { font-size: 11px; letter-spacing: 0.18em; }
  .services-hero { min-height: 0; padding: 88px 0 64px; }
  .services-hero h2 { font-size: 40px; }
  .booking-widget { padding: 22px 18px; }
}
@media (max-width: 560px) {
  .fields-row { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .hero-title { font-size: 29px; }
  .hero-lede { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* English (left-to-right) layout */
html[dir="ltr"] body { direction: ltr; }
[dir="ltr"] .hero .btn-primary svg { transform: scaleX(-1); }
[dir="ltr"] .hero-lede { margin: 26px 0 0; text-align: left; }
[dir="ltr"] .hero .actions { margin: 34px 0 0; justify-content: flex-start; }
[dir="ltr"] .timeline::before {
  transform-origin: left center;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}
[dir="ltr"] .timeline small { display: none; }
[dir="ltr"] .form-panel,
[dir="ltr"] .details-panel,
[dir="ltr"] .inv-top .inv-tools { direction: ltr; }
