/* LeanGate — website styles
   Brand: navy #121825, teal #5EB3A3 (on dark) / #2E8C80 (on light), mist #EDF3F2
   Font: Titillium Web (same family as LeanAudit) */

:root {
  --navy: #121825;
  --navy-2: #182132;
  --navy-3: #1f2a3e;
  --teal: #5eb3a3;
  --teal-dark: #2e8c80;
  --teal-deep: #236e65;
  --chip: #e1efec;
  --mist: #edf3f2;
  --white: #ffffff;
  --ink: #121825;
  --body: #4a5566;
  --muted: #7a8596;
  --line: #dde6e4;
  --on-dark: #e8edf3;
  --on-dark-muted: #a3aebd;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(18, 24, 37, .04), 0 12px 32px -12px rgba(18, 24, 37, .14);
  --shadow-lg: 0 30px 60px -20px rgba(18, 24, 37, .35);
  --container: 1200px;
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  font-family: "Titillium Web", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--teal); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* ---------- Typography helpers ---------- */

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

.h-section { font-size: clamp(32px, 4.2vw, 50px); }
.h-section .accent, .hero h1 .accent { color: var(--teal-dark); display: block; }
.dark .h-section, .dark h3 { color: var(--white); }
.dark .h-section .accent, .hero h1 .accent { color: var(--teal); }

.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--body); margin-top: 18px; max-width: 34em; }
.dark .lead { color: var(--on-dark-muted); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: 10px; border: 2px solid transparent; background: transparent;
  font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-primary { background: var(--teal); color: var(--navy); }
.btn-primary:hover { background: #77c4b6; box-shadow: 0 10px 24px -10px rgba(94, 179, 163, .7); }
.btn-ghost { border-color: rgba(255, 255, 255, .28); color: var(--white); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
/* sister-app buttons hover in their own brand colour */
.btn-leanaudit:hover { border-color: #627aa7; color: #627aa7; }   /* "audit" in the LeanAudit logo */
.btn-ekaizen:hover { border-color: #b69cff; color: #b69cff; }     /* light violet matching the eKaizen logo */
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--teal-dark); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }

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

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background .25s, box-shadow .25s, backdrop-filter .25s;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(18, 24, 37, .92);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.main-nav a {
  color: var(--on-dark); text-decoration: none; font-size: 14px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; padding: 6px 0; position: relative;
}
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px; background: var(--teal); transform: scaleX(0); transition: transform .2s; }   /* rounded ends like the bar in the logo */
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; gap: 2px; font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.lang-switch a { color: var(--on-dark-muted); text-decoration: none; padding: 4px 6px; border-radius: 6px; }
.lang-switch a[aria-current="true"] { color: var(--teal); }
.lang-switch a:hover { color: var(--white); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 10px;
  background: rgba(255, 255, 255, .08); color: var(--white); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.is-open .nav-toggle .icon-menu { display: none; }
.is-open .nav-toggle .icon-close { display: block; }

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

.hero {
  position: relative; overflow: hidden;
  background: var(--navy);
  color: var(--on-dark);
  min-height: min(100vh, 860px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 72px;
}
.hero-media { position: absolute; inset: 0 0 0 auto; width: 58%; }
.hero-media picture { display: contents; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 88% center; }
.hero-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(18, 24, 37, .75) 18%, rgba(18, 24, 37, 0) 50%),
              linear-gradient(0deg, rgba(18, 24, 37, .5) 0%, rgba(18, 24, 37, 0) 30%);
}
.hero-glow { position: absolute; width: 720px; height: 720px; left: -260px; top: -220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(94, 179, 163, .16), transparent); pointer-events: none; }
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: min(660px, 46vw); }
.hero h1 { color: var(--white); font-size: clamp(40px, 5.6vw, 68px); line-height: 1.05; }
.hero .lead { color: var(--on-dark-muted); font-size: clamp(18px, 1.8vw, 21px); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0; margin: 44px 0 0; }
.hero-chips li { display: flex; align-items: center; gap: 9px; font-size: 16px; color: var(--on-dark); }
.hero-chips .icon { color: var(--teal); width: 19px; height: 19px; }

/* ---------- Generic sections ---------- */

.section { padding: clamp(72px, 9vw, 120px) 0; }
.section.mist { background: var(--mist); }
.section.dark { background: var(--navy); color: var(--on-dark-muted); }
/* brand teal section (colour of "gate" in the logo); text switches to navy/white for contrast */
.section.teal {
  color: var(--navy);
  /* same idea as the hero: soft radial glow in the top-left corner over the base colour,
     plus a gentle deeper tone towards the bottom-right */
  background:
    radial-gradient(820px 780px at 6% -12%, rgba(255, 255, 255, .45), transparent 70%),
    radial-gradient(1000px 760px at 100% 115%, rgba(30, 96, 88, .85), transparent 72%),
    var(--teal);
}
.section.teal .eyebrow { color: var(--navy); }
.section.teal .h-section { color: var(--navy); }
.section.teal .h-section .accent { color: var(--white); }
.section.teal .lead { color: rgba(18, 24, 37, .78); }
.section.teal .tile { box-shadow: 0 1px 2px rgba(18, 24, 37, .06), 0 16px 32px -16px rgba(18, 24, 37, .35); }
.section.teal .tile { background: #1e3139; }   /* dark tiles in the tone of the hero's top-left glow (navy + 16 % teal) */
.section.teal .tile h3 { color: var(--white); }
.section.teal .tile p { color: rgba(255, 255, 255, .72); }
.section.teal .tile .icon-chip { background: rgba(255, 255, 255, .09); color: var(--white); }

.section-head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* split layout: text left, visual right on a mist panel (like the deck) */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.split.reverse > :first-child { order: 2; }
/* reversed split where the (wider) visual sits on the left at the same size as in normal splits */
.split.split-visual-left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

.feature-list { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 22px; }
.feature-list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.feature-list h3 { font-size: 18px; line-height: 1.3; margin-top: 1px; }
.feature-list p { font-size: 15.5px; margin-top: 3px; }
.dark .feature-list h3 { color: var(--white); }
.dark .feature-list p { color: var(--on-dark-muted); }

.icon-chip { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--chip); color: var(--teal-dark); }
.dark .icon-chip { background: rgba(94, 179, 163, .12); color: var(--teal); }

/* ---------- Problem section ---------- */

.paperbook { position: relative; padding: 48px 36px; }
.paperbook-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 30px 30px; transform: rotate(-2deg); }
.paperbook-card h3 { font-size: 22px; margin-bottom: 22px; }
.pb-table { display: grid; grid-template-columns: 1.3fr 1fr .9fr .9fr; column-gap: 18px; }
.pb-table span { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); padding-bottom: 10px; }
.pb-table i { display: block; height: 32px; border-top: 1px solid var(--line); position: relative; }
.pb-table i::after { content: ""; position: absolute; left: 0; top: 13px; height: 7px; border-radius: 4px; background: #d3dde2; width: var(--w, 70%); }
.pb-table i.sig::after { height: 2px; top: 16px; background: #a9b6bf; }
.bubble {
  position: absolute; display: inline-flex; align-items: center; gap: 10px;
  background: var(--navy); color: var(--white); font-weight: 600; font-size: 15px;
  padding: 11px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); white-space: nowrap;
}
.bubble::before { content: "?"; width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: var(--navy); font-weight: 700; font-size: 14px; }
.bubble-1 { top: 10px; right: 0; }
.bubble-2 { bottom: 70px; left: 0; }
.bubble-3 { bottom: -6px; right: 40px; }

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 24px 28px; position: relative;
  transition: transform .25s, box-shadow .25s;
}
.step:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(18, 24, 37, .25); }
.step-top { display: flex; justify-content: space-between; align-items: start; margin-bottom: 20px; }
.step-num { font-size: 36px; font-weight: 700; color: #d6e1e5; line-height: 1; }
.step h3 { font-size: 22px; }
.step-role { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-dark); margin: 4px 0 14px; }
.dot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15.5px; }
.dot-list li { position: relative; padding-left: 16px; }
.dot-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* ---------- Screens / visuals ---------- */

.visual-panel { position: relative; }
.screen { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #0e3a44; }
.screen img { width: 100%; height: auto; }
.screen.portrait { max-width: 400px; margin: 0 auto; border-radius: 18px; }
/* on dark sections, in carousels and the portrait kiosk screen: thin light edge + deeper drop shadow so the screenshot doesn't melt into the background */
.dark .screen, .carousel .screen, .screen.portrait { border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 2px 6px rgba(0, 0, 0, .35), 0 30px 60px -12px rgba(0, 0, 0, .75), 0 0 0 6px rgba(255, 255, 255, .03); }
.screen picture { display: block; }
/* light screenshot (back office): same drop shadow, edge line in light grey so it shows on white */
.screen.screen-light { background: #fff; border: 1px solid #d5dfdd; box-shadow: 0 2px 6px rgba(18, 24, 37, .12), 0 30px 60px -12px rgba(18, 24, 37, .35); }

.visual-bare img { width: 100%; height: auto; mix-blend-mode: multiply; }
/* simple fading carousel (one screenshot at a time, dots below) */
.carousel-track { display: grid; }
.carousel-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.carousel-slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease; }
.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.carousel-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: #c3d4d0; cursor: pointer; transition: width .3s, background .3s; }
.carousel-dot:hover { background: #9dbab3; }
.carousel-dot[aria-current="true"] { width: 28px; background: #101826; }
.dark .carousel-dot { background: rgba(255, 255, 255, .25); }
.dark .carousel-dot[aria-current="true"] { background: var(--teal); }
.section.dark .visual-bare img { mix-blend-mode: normal; }
.visual-tag {
  position: absolute; left: -14px; bottom: 28px;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); color: var(--ink); font-weight: 700; font-size: 15px;
  padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg);
}
.visual-tag .icon { color: var(--teal-dark); }

.mist-panel { background: var(--mist); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); }

/* ---------- Config grid ---------- */

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tile {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; display: grid; gap: 14px; align-content: start;
  transition: transform .25s;
}
.tile:hover { transform: translateY(-3px); }
.tile h3 { font-size: 18px; }
.tile p { font-size: 15px; margin-top: 2px; }

/* ---------- Devices ---------- */

.device-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(94, 179, 163, .35);
  color: var(--teal); font-weight: 600; font-size: 15px;
}

/* generated iPad mockup on a transparent background (shadow is baked into the image) */
.device-shot { display: block; }
.device-shot img { width: 100%; height: auto; transform: translateY(7.5%); }   /* image has extra room for the shadow below; shift so the tablet itself is centred */
@media (min-width: 961px) { .device-shot { width: 118%; margin-left: -14%; } }   /* a bit larger, reaching into the left gutter */

/* ---------- Reference ---------- */

.reference { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.reference .h-section, .contact .h-section { font-size: clamp(32px, 3.6vw, 44px); }
.reference-logo { height: 62px; width: auto; margin-bottom: 26px; }
/* photo and key points together in one white panel */
.ref-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(14px, 1.6vw, 20px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 3vw, 36px); align-items: stretch; }
.reference-photo { border-radius: var(--radius); overflow: hidden; }
.reference-photo img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.ref-points { align-self: center; list-style: none; margin: 0; padding: 8px clamp(4px, 1.2vw, 16px) 8px 0; display: grid; }
.ref-points li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px 0; }
.ref-points h3 { font-size: 17px; }
.ref-points p { font-size: 15px; margin-top: 3px; }

/* ---------- Sister app band ---------- */

.sister {
  display: grid; grid-template-rows: auto 1fr auto; justify-items: start; gap: 22px;
  background: var(--navy); color: var(--on-dark-muted); border-radius: var(--radius-lg);
  padding: 32px 40px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.sister::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(98, 122, 167, .35), transparent); pointer-events: none; }
.sister > * { position: relative; z-index: 1; }
.sister-ekaizen::after { background: radial-gradient(closest-side, rgba(166, 9, 253, .28), transparent); }
.sisters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sister-logo { height: 64px; width: auto; }
.sister h3 { font-size: 22px; color: var(--white); }
.sister p { margin-top: 4px; }

/* ---------- Contact ---------- */

.contact { position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(40, 90, 140, .35), transparent); pointer-events: none; }
.contact .container { position: relative; z-index: 1; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-links { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 16px; }
.contact-links a { display: inline-flex; align-items: center; gap: 12px; color: var(--white); font-size: 20px; font-weight: 600; text-decoration: none; }
.contact-links a:hover { color: var(--teal); }
.contact-links .icon { color: var(--teal); }

/* form panel uses the LeanGate "gate" shape: arched top with the teal bar, small bottom radius */
.form {
  position: relative;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: clamp(64px, 9vw, 110px) clamp(64px, 9vw, 110px) 22px 22px;
  padding: clamp(76px, 8vw, 96px) clamp(24px, 3.5vw, 40px) clamp(24px, 3.5vw, 40px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.form::before {
  content: ""; position: absolute; top: clamp(30px, 3.4vw, 40px); left: 50%; transform: translateX(-50%);
  width: 18%; min-width: 56px; height: 3px; border-radius: 3px; background: var(--teal);
}
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--on-dark); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--white);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px;
  padding: 12px 14px; transition: border-color .2s, background .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7f8a9b; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: rgba(255, 255, 255, .09); }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: start; font-size: 14.5px; color: var(--on-dark-muted); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); flex: none; }
.consent a { color: var(--teal); }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form-status { font-size: 15px; color: var(--teal); }
.form-status.is-error { color: #ff9d8a; }
.form.is-sending button[type="submit"] { opacity: .6; pointer-events: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* honeypot for bots */

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

.site-footer { background: #0d121c; color: var(--on-dark-muted); padding: 48px 0; font-size: 15px; }
.footer-inner { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.footer-inner .brand img { height: 36px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--teal); }
/* vertical divider between groups: apps | contacts | cookies */
.footer-links li.sep-before { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .16); }
@media (max-width: 640px) { .footer-links li.sep-before { padding-left: 0; border-left: 0; } }
.footer-part { margin-left: auto; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.footer-part img { height: 46px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .06); margin-top: 32px; padding-top: 24px; font-size: 14px; color: #6d7889; }

/* ---------- Hero variant: LeanGate "gate" shape ----------
   Shape taken from the logo frame: large top radius, small bottom radius,
   open sides, teal bar on top (door / kiosk / visitor badge). */

.hero-gate .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 38vw, 500px); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-gate .hero-content { max-width: 700px; }
.hero-gate h1 { font-size: clamp(36px, 3.9vw, 52px); }
@media (min-width: 961px) { .hero-gate h1 .h1-line { white-space: nowrap; } }
/* gradient subtitle — same idea as LeanAudit (light → brand blue) and eKaizen (cyan → purple), here light mint → LeanGate teal */
.hero h1 .accent {
  background: radial-gradient(74.42% 1237.53% at 45.47% 50.39%, #a6e2d5 0%, #5eb3a3 70%, #4a9e8f 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--teal);
  width: fit-content;
}

.gate-visual { position: relative; width: min(100%, 520px); aspect-ratio: 368 / 360; justify-self: end; margin: 28px 22px 28px 0; }
.gate-photo { position: absolute; inset: 0; overflow: hidden; background: var(--navy-3); border-radius: 16.5% 16.5% 3.7% 3.7% / 17% 17% 4% 4%; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.gate-photo picture { display: contents; }
.gate-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 79% 50%; }
.gate-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 24, 37, 0) 60%, rgba(18, 24, 37, .35) 100%); }

/* outline is always a single colour: white or teal, never both */
.gate-outline { position: absolute; overflow: visible; pointer-events: none; }
.gate-outline-1 { top: -18px; left: -18px; width: calc(100% + 36px); height: calc(100% + 36px); color: rgba(255, 255, 255, .6); --gf-w: 2.5px; z-index: 2; }
/* large teal outline peeking out bottom-right; its lower part is clipped by the hero */
.gate-outline-2 { width: 118%; aspect-ratio: 368 / 360; height: auto; left: 62%; top: 38%; color: var(--teal); --gf-w: 2.5px; opacity: .5; z-index: 3; }
.hero-gate { padding-bottom: 120px; }

@media (max-width: 960px) {
  .hero-gate { padding-bottom: 110px; }
  .gate-outline-2 { left: 55%; top: 60%; }
  .hero-gate .hero-grid { grid-template-columns: 1fr; }
  .gate-visual { justify-self: center; width: min(calc(100% - 36px), 560px); margin: 56px 0 0; }
}

/* the hero's teal outline continues into the next section in light mint;
   main.js aligns this copy with .gate-outline-2 so the two halves meet at the section edge */
.section-continue { position: relative; overflow: hidden; }
.section-continue > .container { position: relative; z-index: 1; }
.gate-outline-continue { position: absolute; z-index: 0; color: var(--mist); --gf-w: 2.5px; opacity: .6; }

/* ---------- Cookie consent ---------- */

.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.link-btn:hover { color: var(--teal); }

.cookie-bar {
  position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px;
  max-width: 1168px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 20px 24px; border-radius: var(--radius-lg);
  background: var(--navy-2); color: var(--on-dark-muted);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .55);
  animation: cookie-in .35s ease;
}
.cookie-bar[hidden] { display: none; }
.cookie-text { flex: 1; }
.cookie-text strong { color: var(--white); font-size: 17px; }
.cookie-text p { font-size: 14.5px; margin-top: 4px; line-height: 1.55; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.cookie-dialog {
  width: min(560px, calc(100% - 32px)); padding: 0; border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg); background: var(--navy-2); color: var(--on-dark-muted);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
}
.cookie-dialog::backdrop { background: rgba(10, 14, 22, .6); backdrop-filter: blur(3px); }
.cookie-form { padding: clamp(22px, 4vw, 32px); display: grid; gap: 14px; }
.cookie-form h2 { color: var(--white); font-size: 24px; }
.cookie-form > p { font-size: 15px; }
.cookie-cat {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .04); cursor: pointer;
}
.cookie-cat strong { display: block; color: var(--white); font-size: 16px; }
.cookie-cat small { display: block; font-size: 14px; margin-top: 2px; }
/* toggle switch */
.cookie-cat input { appearance: none; -webkit-appearance: none; flex: none; width: 44px; height: 24px; border-radius: 999px; background: rgba(255, 255, 255, .2); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.cookie-cat input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); transition: transform .2s; }
.cookie-cat input:checked { background: var(--teal); }
.cookie-cat input:checked::after { transform: translateX(20px); }
.cookie-cat input:disabled { opacity: .55; cursor: not-allowed; }
.cookie-form .cookie-actions { margin-top: 6px; }

@media (max-width: 760px) {
  .cookie-bar { flex-direction: column; align-items: stretch; gap: 14px; left: 10px; right: 10px; bottom: 10px; padding: 18px; }
  .cookie-actions .btn { flex: 1 1 auto; }
}

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .steps, .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reference { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: var(--navy); padding: 12px 24px 28px; box-shadow: var(--shadow-lg);
    border-top: 1px solid rgba(255, 255, 255, .06);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .is-open .main-nav { opacity: 1; transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li a { display: block; padding: 14px 0; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .main-nav a::after { display: none; }
  .main-nav .mobile-cta { display: flex; margin-top: 20px; color: var(--navy); }
  .header-actions { margin-left: auto; }

  .hero-content { max-width: 680px; }
  .hero { min-height: 0; padding-bottom: 0; flex-direction: column; align-items: stretch; }
  .hero-media { position: relative; width: 100%; height: clamp(300px, 56vw, 480px); margin-top: 48px; }
  .hero-media img { object-position: 70% center; }
  .hero-media::before { background: linear-gradient(180deg, var(--navy) 0%, rgba(18, 24, 37, 0) 35%); }

  .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .split.split-visual-left { grid-template-columns: 1fr; }
  .sisters { grid-template-columns: 1fr; }
}

@media (min-width: 961px) { .main-nav .mobile-cta { display: none; } }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .brand img { height: 34px; }
  .steps, .tiles, .reference, .ref-panel { grid-template-columns: 1fr; }
  .ref-points { padding: 0 6px; }
  .reference-photo img { aspect-ratio: 4 / 3; }
  .form { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .paperbook { padding: 56px 0 64px; }
  .pb-table { column-gap: 10px; }
  .bubble { font-size: 14px; padding: 9px 12px; }
  .bubble-1 { top: 0; right: 0; }
  .bubble-2 { bottom: 64px; left: 0; }
  .bubble-3 { bottom: 0; right: 8px; }
  .visual-tag { left: 8px; bottom: 12px; }
  .footer-part { margin-left: 0; }
}
