/*===============================================================
  AI-DEV SOLUTIONS — BRAND LAYER
  Loaded last on every page. Holds the brand tokens and the
  shared look (royal blue + lime + ice blue, Poppins, soft
  rounded shapes). Page CSS keeps layout; this file sets the look.
================================================================*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand palette */
  --brand-blue: #2F45E0;
  --brand-blue-dark: #1F33C4;
  --brand-navy: #1B2A9E;
  --brand-periwinkle: #6378F2;
  --brand-lime: #E4F57A;
  --brand-lime-soft: #F7FDD6;
  --brand-lime-banner: #F0F8B4;
  --brand-ice: #CDEFFA;
  --brand-ink: #111427;
  --brand-muted: #5B6078;
  --brand-surface: #F4F6FF;
  --brand-border: #E3E7FA;

  --brand-radius-sm: 12px;
  --brand-radius-md: 20px;
  --brand-radius-lg: 32px;
  --brand-pill: 999px;
  --brand-shadow: 0 8px 24px rgba(47, 69, 224, 0.08);
  --brand-shadow-hover: 0 18px 40px rgba(47, 69, 224, 0.16);
  --brand-font: 'Poppins', 'Segoe UI', sans-serif;

  /* Map the legacy variables used across the page stylesheets */
  --primary-color: var(--brand-blue);
  --secondary-color: var(--brand-navy);
  --accent-color: var(--brand-lime);
  --text-color: var(--brand-ink);
  --light-color: var(--brand-surface);
  --light-bg: var(--brand-surface);
  --shadow: var(--brand-shadow);
  --shadow-hover: var(--brand-shadow-hover);
  --radius-sm: var(--brand-radius-sm);
  --radius-md: var(--brand-radius-md);
  --radius-lg: var(--brand-pill);
}

/*===============================
  BASE
================================*/
body {
  background-color: #fff;
  color: var(--brand-ink);
  font-family: var(--brand-font);
}

body, p, a, li, span, button, input, textarea, select, label, td, th,
h1, h2, h3, h4, h5, h6 {
  font-family: var(--brand-font);
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.01em;
}

h1, h2 {
  font-weight: 600;
}

::selection {
  background: var(--brand-lime);
  color: var(--brand-ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--brand-periwinkle);
  outline-offset: 2px;
}

/*===============================
  HEADER
================================*/
/* Slim white bar: logo left, links centred, outlined pill on the right */
header {
  padding: 14px 48px;
  background-color: #fff;
  border-bottom: 1px solid var(--brand-border);
  box-shadow: none;
}

header.scrolled {
  padding: 10px 48px;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(17, 20, 39, 0.06);
}

.logo img {
  height: 44px;
  margin-right: 12px;
  border-radius: 10px;
}

.logo h1 {
  margin: 0;
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

@media (min-width: 769px) {
  nav {
    flex: 1;
    margin-left: 32px;
  }

  nav > ul {
    width: 100%;
  }

  .navigation {
    flex: 1;
    align-items: center;
    margin-right: 0;
  }

  /* Auto margins on both ends centre the links between logo and search */
  .navigation > li:first-child {
    margin-left: auto;
  }

  .navigation > li.search-container {
    margin-left: auto;
  }

  nav ul li {
    margin: 0 12px;
  }
}

/* Keep page-level list styles (e.g. job pages) out of the nav */
header li {
  padding-left: 0;
}

header li::before {
  content: none;
}

nav ul li a {
  color: #3A3F55;
  font-weight: 500;
  font-size: 0.95rem;
}

nav ul li a::after {
  height: 3px;
  border-radius: 3px;
  background-color: var(--brand-blue);
}

nav ul li a:hover,
nav ul li a:focus-visible {
  color: var(--brand-blue);
}

nav ul.dropdown-menu {
  background-color: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius-md);
  box-shadow: var(--brand-shadow-hover);
  padding: 10px;
}

nav ul.dropdown-menu li a {
  border-radius: var(--brand-radius-sm);
  color: var(--brand-ink);
}

nav ul.dropdown-menu li a:hover {
  background-color: var(--brand-lime-soft);
  color: var(--brand-blue);
}

/* Search styled as the outlined "Log In" pill */
.search-container form {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--brand-ink);
  border-radius: var(--brand-pill);
  overflow: hidden;
  background: #fff;
  transition: var(--transition);
}

.search-container form:focus-within {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(47, 69, 224, 0.15);
}

.search-input {
  width: 140px;
  border: none;
  border-radius: 0;
  padding: 8px 4px 8px 18px;
  font-size: 0.9rem;
  background: transparent;
  color: var(--brand-ink);
}

.search-input:focus {
  outline: none;
}

.search-button {
  border: none;
  border-radius: 0;
  padding: 8px 16px 8px 8px;
  background-color: transparent;
  color: var(--brand-ink);
}

.search-button:hover {
  color: var(--brand-blue);
}

.search-highlight {
  background-color: var(--brand-lime);
}

.menu-toggle span {
  background-color: var(--brand-ink);
}

button.button {
  background-color: transparent;
  color: var(--brand-ink);
  border: 1.5px solid var(--brand-ink);
  box-shadow: none;
}

button.button:hover {
  background-color: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

@media (max-width: 768px) {
  header,
  header.scrolled {
    padding: 12px 16px;
  }

  .menu-toggle {
    flex-shrink: 0;
  }

  /* Drop-down panel under the bar, scrollable if the list is long */
  nav {
    top: 100%;
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    padding: 12px 16px 24px;
    background-color: #fff;
    border-bottom: 1px solid var(--brand-border);
    box-shadow: 0 12px 24px rgba(17, 20, 39, 0.08);
  }

  .navigation > li,
  nav ul li {
    width: 100%;
    margin: 2px 0;
  }

  nav ul li a {
    padding: 12px;
    border-radius: var(--brand-radius-sm);
    font-size: 1rem;
  }

  nav ul li a::after {
    display: none;
  }

  nav ul li a:active,
  nav ul li a:hover {
    background-color: var(--brand-lime-soft);
  }

  .navigation > li.search-container {
    justify-content: center;
    margin: 12px 0 6px;
  }

  .search-container form {
    width: 100%;
  }

  .search-input {
    flex: 1;
    min-width: 0;
    width: auto;
    padding: 12px 4px 12px 18px;
    font-size: 1rem; /* 16px stops iOS zooming into the field */
  }

  .search-button {
    padding: 12px 18px 12px 10px;
  }

  body.menu-open {
    overflow: hidden;
  }

  nav ul.dropdown-menu {
    background-color: var(--brand-surface);
    border: none;
    box-shadow: none;
  }

  .logo img {
    height: 48px;
    margin-right: 10px;
  }

  .logo h1 {
    font-size: 1.05rem;
    margin-right: 12px;
  }

  #Services .section-title {
    font-size: 1.6rem;
  }

  #Services .intro-text {
    font-size: 1.05rem;
    padding: 22px 20px;
  }
}

/*===============================
  FOOTER
================================*/
footer {
  /* Same gradient as the feature bars (.lp-bar) */
  background: linear-gradient(90deg, #5468EE, #7183F5);
  color: #fff;
  border-radius: var(--brand-radius-lg) var(--brand-radius-lg) 0 0;
  padding-top: 48px;
  overflow: hidden;
}

footer::before {
  height: 8px;
  background: linear-gradient(90deg, var(--brand-lime), var(--brand-ice));
}

.footer-section h3 {
  color: var(--brand-lime);
  font-weight: 600;
}

.footer-section h3::after {
  height: 3px;
  border-radius: 3px;
  background-color: var(--brand-lime);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.85);
}

.footer-section a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}

.footer-section a:hover {
  color: var(--brand-lime);
  text-decoration-color: var(--brand-lime);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom a {
  color: #fff;
}

.footer-bottom a:hover {
  color: var(--brand-lime);
}

.social-icon {
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.14);
  text-decoration: none !important;
}

.social-icon:hover {
  background-color: var(--brand-lime);
  color: var(--brand-ink) !important;
}

/*===============================
  BUTTONS
================================*/
.btn {
  background-color: var(--brand-blue);
  color: #fff;
  border-radius: var(--brand-pill);
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(47, 69, 224, 0.25);
}

.btn::before,
.btn::after {
  display: none;
}

.btn:hover {
  background-color: var(--brand-blue-dark);
  color: #fff;
}

.see-more-btn {
  background-color: transparent;
  color: var(--brand-ink);
  border: 1.5px solid var(--brand-ink);
  box-shadow: none;
}

.see-more-btn:hover {
  background-color: var(--brand-ink);
  color: #fff;
}

.hero-btn {
  background-color: var(--brand-lime);
  color: var(--brand-ink);
  box-shadow: 0 8px 20px rgba(17, 20, 39, 0.12);
}

.launch-btn-accent {
  background-color: var(--brand-lime);
  color: var(--brand-ink);
}

/*===============================
  SECTION TITLES & INTRO
================================*/
.section-title {
  color: var(--brand-ink);
  font-weight: 600;
}

.section-title::after,
#Services .section-title::after {
  width: 64px;
  height: 6px;
  border-radius: var(--brand-pill);
  background: var(--brand-blue);
}

.intro-text,
.intro-text p {
  color: var(--brand-muted);
}

.inline-link {
  color: var(--brand-blue);
}

.inline-link:hover {
  color: var(--brand-blue-dark);
}

/*===============================
  LANGUAGE MARQUEE
================================*/
.marquee {
  background-color: var(--brand-lime);
  border-radius: var(--brand-pill);
  padding: 10px 0;
  max-width: 1200px;
  margin: 10px auto 30px;
}

.marquee p {
  color: var(--brand-ink);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
}

.marquee em {
  color: var(--brand-blue);
  font-style: normal;
}

/*===============================
  LANDING PAGE (index)
================================*/
.lp-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
  min-height: 540px;
  padding: 40px 0 70px;
}

.lp-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--brand-blue);
  font-weight: 500;
  font-size: 0.95rem;
}

.lp-hero-title {
  margin: 0 0 20px;
  text-align: left;
  color: var(--brand-ink);
  font-size: clamp(2.3rem, 4.4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.lp-highlight {
  color: var(--brand-blue);
}

.lp-hero-lead {
  max-width: 470px;
  margin-bottom: 32px;
  color: var(--brand-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.lp-hero-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.lp-mini-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 170px;
  max-width: 220px;
  min-height: 104px;
  padding: 18px 20px;
  border-radius: 12px;
  background-color: var(--brand-lime-banner);
  color: var(--brand-navy);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.lp-mini-card i {
  color: var(--brand-ink);
  transition: var(--transition);
}

.lp-mini-card:hover {
  background-color: var(--brand-lime);
  transform: translateY(-4px);
}

.lp-mini-card:hover i {
  transform: translateX(6px);
}

/* Phone mock with the product image */
.lp-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.lp-blob {
  position: absolute;
  width: min(420px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #E6F7FD, var(--brand-ice));
}

.lp-device {
  position: relative;
  width: 250px;
  aspect-ratio: 9 / 18.5;
  padding: 11px;
  border-radius: 42px;
  background: var(--brand-ink);
  box-shadow: 0 40px 70px rgba(17, 20, 39, 0.25);
  transform: rotate(9deg);
  transition: transform 0.5s ease;
}

.lp-device:hover {
  transform: rotate(4deg) translateY(-6px);
}

.lp-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 26px 16px 18px;
  border-radius: 32px;
  background: #fff;
  overflow: hidden;
}

.lp-screen img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
}

.lp-bubble {
  display: block;
  height: 46px;
  border-radius: 14px 14px 14px 4px;
  background:
    linear-gradient(rgba(17, 20, 39, 0.14), rgba(17, 20, 39, 0.14)) 14px 14px / 70% 6px no-repeat,
    linear-gradient(rgba(17, 20, 39, 0.14), rgba(17, 20, 39, 0.14)) 14px 26px / 45% 6px no-repeat,
    var(--brand-lime-banner);
}

.lp-bubble-out {
  align-self: flex-end;
  width: 75%;
  border-radius: 14px 14px 4px 14px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)) 14px 14px / 65% 6px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)) 14px 26px / 40% 6px no-repeat,
    var(--brand-blue);
}

.lp-bubble-short {
  width: 60%;
  height: 34px;
}

.lp-bot {
  position: absolute;
  pointer-events: none;
}

.lp-bot-hero {
  left: 0;
  bottom: 10px;
  width: 140px;
  height: 120px;
  animation: lp-float 5s ease-in-out infinite;
}

@keyframes lp-float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

/* Lime banner with the mascot breaking out of the top-left */
#Services.lp-banner {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 70px 0 90px;
  padding: 52px 56px 52px 260px;
  border-radius: 220px 32px 32px 220px;
  background-color: var(--brand-lime-banner);
}

.lp-bot-banner {
  left: 30px;
  top: -56px;
  width: 210px;
  height: 180px;
}

.lp-banner-title {
  margin: 0 0 12px;
  text-align: left;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 500;
}

.lp-banner-title a {
  color: var(--brand-ink);
  text-decoration: none;
}

.lp-banner-title i {
  margin-left: 10px;
  font-size: 0.7em;
  color: var(--brand-blue);
  transition: var(--transition);
}

.lp-banner-title a:hover i {
  transform: translateX(6px);
}

.lp-banner-text p {
  max-width: 680px;
  margin: 0;
  color: #3A3F55;
  font-size: 1rem;
  line-height: 1.7;
}

/* Centred heading + stacked periwinkle bars */
.lp-features {
  margin: 40px auto 60px;
  text-align: center;
}

.lp-section-title {
  max-width: 620px;
  margin: 0 auto 16px;
  color: var(--brand-ink);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 500;
  line-height: 1.25;
}

.lp-section-lead {
  max-width: 720px;
  margin: 0 auto 36px;
  color: var(--brand-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.lp-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.lp-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  border-radius: 10px;
  background: linear-gradient(90deg, #5468EE, #7183F5);
  text-align: left;
  transition: var(--transition);
}

.lp-bar:hover {
  transform: translateX(6px);
  box-shadow: 0 10px 24px rgba(47, 69, 224, 0.25);
}

.lp-bar h3 {
  margin: 0 0 2px;
  color: #fff;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
}

.lp-bar p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.5;
}

.lp-bar-chevron {
  margin-left: auto;
  color: #fff;
}

/* Grey panel with lime icon tiles */
.lp-tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 40px;
  max-width: 900px;
  margin: 60px auto;
  padding: 40px 24px;
  border-radius: 16px;
  background-color: #F2F3F7;
}

.lp-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100px;
  color: var(--brand-ink);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.lp-tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 8px;
  background-color: var(--brand-lime);
  color: var(--brand-ink);
  font-size: 1.8rem;
  transition: var(--transition);
}

.lp-tile:hover .lp-tile-icon {
  background-color: var(--brand-blue);
  color: #fff;
  transform: translateY(-4px);
}

/* Lime pill with the mascot on the right */
.lp-pill {
  position: relative;
  margin: 90px 0 40px;
  padding: 44px 280px 44px 52px;
  border-radius: 32px 220px 220px 32px;
  background-color: var(--brand-lime-banner);
}

.lp-pill-text p {
  margin: 0 0 6px;
  color: var(--brand-ink);
  font-size: 1.1rem;
  font-weight: 500;
}

.lp-pill-text em {
  color: var(--brand-blue);
  font-style: normal;
  font-weight: 600;
}

.lp-bot-pill {
  right: 40px;
  top: -40px;
  width: 210px;
  height: 180px;
  transform: scaleX(-1);
}

@media (max-width: 900px) {
  .lp-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 20px;
  }

  .lp-hero-visual {
    min-height: 440px;
  }

  #Services.lp-banner,
  .lp-pill {
    flex-direction: column;
    padding: 130px 26px 34px;
    border-radius: 32px;
    text-align: center;
  }

  .lp-bot-banner,
  .lp-bot-pill {
    left: 50%;
    right: auto;
    top: -60px;
    width: 170px;
    height: 150px;
    transform: translateX(-50%);
  }

  .lp-banner-title {
    text-align: center;
  }
}

/*===============================
  SERVICES (home, legacy)
================================*/
#Services {
  background-color: transparent;
}

#Services .section-title-btn {
  background-color: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(47, 69, 224, 0.25);
}

#Services .section-title-btn:hover,
#Services .section-title-btn:focus-visible {
  background-color: var(--brand-navy);
  border-color: var(--brand-navy);
}

#Services .intro-text {
  position: relative;
  background-color: var(--brand-lime-soft);
  border-radius: var(--brand-radius-lg);
  box-shadow: none;
  color: var(--brand-ink);
  overflow: hidden;
}

#Services .intro-text::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  right: -60px;
  bottom: -90px;
  border-radius: 50%;
  background: var(--brand-ice);
  opacity: 0.7;
}

#Services .intro-text p {
  position: relative;
  color: var(--brand-ink);
}

/*===============================
  CARDS
================================*/
.card,
#Services .card {
  border-radius: var(--brand-radius-md);
  border: 1px solid var(--brand-border);
  box-shadow: var(--brand-shadow);
}

.card:hover,
#Services .card:hover {
  box-shadow: var(--brand-shadow-hover);
}

.card h3,
#Services .card h3 {
  background-color: var(--brand-lime-soft);
  color: var(--brand-ink);
}

.card:hover h3,
#Services .card:hover h3 {
  background-color: var(--brand-blue);
  color: #fff;
}

#Services .card-featured .card-badge {
  background-color: var(--brand-lime);
  color: var(--brand-ink);
}

#Services .card-featured h3,
#Services .card-featured:hover h3 {
  background: none;
  color: var(--brand-ink);
}

#Services .card-featured .card-cta {
  color: var(--brand-blue);
}

/*===============================
  FEATURE TILES (home)
================================*/
.features {
  background-color: var(--brand-surface);
  border-radius: var(--brand-radius-lg);
  padding: 50px 24px;
}

.feature-item {
  background-color: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius-md);
  box-shadow: none;
}

.feature-item:hover {
  box-shadow: var(--brand-shadow-hover);
}

.feature-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  font-size: 2.1rem;
  border-radius: 18px;
  background-color: var(--brand-lime);
  color: var(--brand-ink);
}

.feature-item h3 {
  color: var(--brand-ink);
}

/*===============================
  COOKIE BANNER
================================*/
.cookie-banner {
  background: var(--brand-blue);
  border-radius: var(--brand-radius-md) var(--brand-radius-md) 0 0;
}

.cookie-text h3,
.cookie-text p {
  color: #fff;
  text-align: left;
}

.cookie-btn {
  border-radius: var(--brand-pill);
}

.cookie-btn.accept {
  background-color: var(--brand-lime);
  color: var(--brand-ink);
}

.cookie-btn.decline {
  background-color: transparent;
  color: #fff;
  border: 1.5px solid #fff;
}

/*===============================
  MODAL
================================*/
.modal-content {
  border-radius: var(--brand-radius-md);
}

.close:hover {
  color: var(--brand-blue);
}

/*===============================
  SUBPAGE BANNERS
  Same language as the landing page: solid royal-blue rounded
  panel, ice-blue blob and the mascot peeking in bottom-right.
================================*/
:root {
  --brand-bot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 170'%3E%3Crect x='8' y='64' width='24' height='48' rx='12' fill='%23A9DDF0'/%3E%3Crect x='168' y='64' width='24' height='48' rx='12' fill='%23A9DDF0'/%3E%3Cline x1='100' y1='12' x2='100' y2='32' stroke='%23A9DDF0' stroke-width='6' stroke-linecap='round'/%3E%3Ccircle cx='100' cy='11' r='9' fill='%23E4F57A'/%3E%3Crect x='22' y='28' width='156' height='132' rx='66' fill='%23CDEFFA'/%3E%3Cellipse cx='68' cy='46' rx='20' ry='7' fill='%23fff' opacity='0.7'/%3E%3Crect x='44' y='58' width='112' height='72' rx='36' fill='%23111427'/%3E%3Cellipse cx='78' cy='90' rx='10' ry='12' fill='%237FE3F5'/%3E%3Cellipse cx='122' cy='90' rx='10' ry='12' fill='%237FE3F5'/%3E%3Cpath d='M86 110 Q100 121 114 110' stroke='%237FE3F5' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.page-banner,
.job-header,
.journey-hero,
.policy-header,
.faq-header,
.terms-header {
  position: relative;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--brand-radius-lg);
  background-color: var(--brand-blue);
  overflow: hidden;
  isolation: isolate;
}

.job-header,
.journey-hero,
.policy-header,
.faq-header,
.terms-header {
  background: var(--brand-blue);
}

.page-banner {
  margin-top: 16px;
}

.page-banner::before,
.job-header::before,
.journey-hero::before,
.policy-header::before,
.faq-header::before,
.terms-header::before {
  content: '';
  position: absolute;
  z-index: -1;
  right: -60px;
  bottom: -110px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--brand-ice);
  opacity: 0.3;
}

.page-banner::after,
.job-header::after,
.journey-hero::after,
.policy-header::after,
.faq-header::after,
.terms-header::after {
  content: '';
  position: absolute;
  right: 36px;
  bottom: -26px;
  width: 130px;
  height: 110px;
  background: var(--brand-bot) no-repeat center / contain;
  opacity: 1;
  pointer-events: none;
}

.page-banner h1,
.job-header h1,
.policy-header h1,
.faq-header h1,
.terms-header h1 {
  color: #fff;
  font-weight: 600;
  position: relative;
}

/* White intro heroes become lime bands, like the landing banner */
.services-hero,
.sbm-hero,
.crm-hero {
  position: relative;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 44px 220px 44px 48px;
  border-radius: 32px 220px 220px 32px;
  background-color: var(--brand-lime-banner);
}

.services-hero::after,
.sbm-hero::after,
.crm-hero::after {
  content: '';
  position: absolute;
  right: 36px;
  top: -34px;
  width: 170px;
  height: 145px;
  background: var(--brand-bot) no-repeat center / contain;
  transform: scaleX(-1);
  pointer-events: none;
}

.services-hero h1,
.sbm-hero h1,
.crm-hero h1 {
  color: var(--brand-ink);
  font-weight: 500;
}

@media (max-width: 768px) {
  .page-banner::after,
  .job-header::after,
  .journey-hero::after,
  .policy-header::after,
  .faq-header::after,
  .terms-header::after {
    width: 90px;
    height: 76px;
    right: 16px;
    bottom: -18px;
  }

  .services-hero,
  .sbm-hero,
  .crm-hero {
    padding: 110px 22px 30px;
    border-radius: 32px;
  }

  .services-hero::after,
  .sbm-hero::after,
  .crm-hero::after {
    right: auto;
    left: 50%;
    top: -30px;
    width: 130px;
    height: 110px;
    transform: translateX(-50%);
  }

  .lp-mini-card {
    max-width: none;
    flex: 1 1 130px;
  }
}

/* Inline lime notices: rounder, borderless like the mockup's bands */
p[style*="#F7FDD6"],
div[style*="#F7FDD6"] {
  border: none !important;
  border-radius: 24px !important;
  background-color: var(--brand-lime-banner) !important;
  color: var(--brand-ink) !important;
}

/*===============================
  JOURNEY / EVENT PAGES
================================*/
.journey-hero,
.journey-cta {
  background: var(--brand-blue);
  border-radius: var(--brand-radius-lg);
  position: relative;
  overflow: hidden;
}

.journey-hero h1,
.journey-hero h2,
.journey-hero p,
.journey-cta p {
  color: #fff;
  position: relative;
}

.journey-hero::before,
.journey-cta::before {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  bottom: -90px;
  border-radius: 50%;
  background: var(--brand-ice);
  opacity: 0.35;
}

.journey-cta .btn {
  background: var(--brand-lime);
  color: var(--brand-ink);
  position: relative;
}

.journey-links {
  background: var(--brand-lime-soft);
  border-radius: var(--brand-radius-lg);
}

.linkedin-posts li {
  border-radius: var(--brand-radius-md);
}

/*===============================
  ACHIEVEMENTS
================================*/
.achievement-box {
  background-color: var(--brand-lime-soft);
  border-radius: var(--brand-radius-lg);
  box-shadow: none;
}

.achievement-box:nth-child(even) {
  background-color: var(--brand-surface);
}

.achievement-image {
  border-radius: var(--brand-radius-md);
}

.achievement-text h2 {
  color: var(--brand-ink);
}

/*===============================
  PROFILE (About)
================================*/
.profile-header {
  background-color: var(--brand-lime-soft);
  border-radius: var(--brand-radius-lg);
  box-shadow: none;
}

.profile-picture {
  border-color: var(--brand-ice);
}

/*===============================
  MOBILE SAFETY NET
  Shared fixes so no page is wider than the phone.
================================*/
img,
video,
iframe,
embed {
  max-width: 100%;
}

/* Anchor jumps (#Services etc.) stop below the fixed header */
[id] {
  scroll-margin-top: 100px;
}

#Services.lp-banner {
  scroll-margin-top: 150px;
}

/* Flex-column body + "margin: auto" would shrink main to its content */
body > main,
.policy-container,
.terms-container,
.faq-container {
  width: 100%;
}

/* Long e-mails and URLs must wrap instead of widening the page */
p,
li,
td,
h1, h2, h3, h4 {
  overflow-wrap: break-word;
}

p a,
li a {
  overflow-wrap: anywhere;
}

/* Small phones: keep the tilted phone mock inside the screen */
@media (max-width: 400px) {
  .lp-hero-visual {
    overflow: hidden;
    min-height: 400px;
  }

  .lp-device {
    width: 200px;
  }

  .lp-bot-hero {
    width: 110px;
    height: 95px;
  }

  .lp-tiles {
    gap: 22px 18px;
  }

  .lp-tile {
    width: 80px;
  }

  .lp-tile-icon {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  main {
    margin-top: 90px;
  }

  .header-title {
    white-space: normal;
  }

  .header-img {
    max-width: 100%;
  }

  /* Our Idea: column + wrap pushed the right column off-screen */
  .main-content {
    flex-wrap: nowrap;
  }

  .content-left,
  .content-right {
    flex: none;
    width: 100%;
    min-width: 0;
  }

  h1 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
    overflow-wrap: break-word;
  }

  h2 {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
    overflow-wrap: break-word;
  }

  .section-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  p {
    font-size: 1rem;
  }

  /* Footer: stacked, left aligned, roomy tap targets */
  footer {
    padding: 36px 20px 20px;
    border-radius: 24px 24px 0 0;
    align-items: stretch;
    text-align: left;
  }

  .footer-section h3::after {
    left: 0;
    transform: none;
  }

  .social-icons {
    justify-content: flex-start;
  }

  .social-icon {
    width: 44px;
    height: 44px;
  }

  .footer-bottom p {
    line-height: 2;
  }

  /* Inline lime notices use 1.4rem, too big on a phone */
  p[style*="#F7FDD6"],
  div[style*="#F7FDD6"] {
    width: auto !important;
    font-size: 1.05rem !important;
    padding: 18px !important;
  }

  /* Cookie banner: stacked, full-width buttons */
  .cookie-banner {
    padding: 18px 16px;
  }

  .cookie-text {
    min-width: 0;
  }

  .cookie-buttons {
    width: 100%;
  }

  .cookie-btn {
    flex: 1 1 0;
    min-height: 44px;
  }
}
