/**
 * Landing chrome base styles (header + footer + container).
 * Extracted from the landing page so MarketingShell matches `/` exactly.
 * Visual overrides for light header / polished footer live in
 * cookieshift-landing-custom.css (loaded globally via index.html).
 */

.cslp {
  font-family: "DM Sans", system-ui, sans-serif;
  color: #0f172a;
  background: #ffffff;
  min-height: 100vh;
}

.cslp .container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(15px, 3.2vw, 15px);
}

.cslp a {
  text-decoration: none;
  color: inherit;
}

.cslp button {
  cursor: pointer;
  font-family: inherit;
}

/* ─── Sticky header ─── */
.cslp .top {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  transition: 0.18s;
}

.cslp .top.on {
  background: rgba(8, 11, 24, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 45px rgba(3, 5, 14, 0.3);
}

.cslp .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
}

.cslp .brand {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  text-decoration: none;
}

.cslp .brand .siteLogo,
.cslp .siteLogo {
  display: block;
  width: auto;
  height: 36px;
  max-width: min(190px, 52vw);
  object-fit: contain;
  object-position: left center;
}

.cslp .footer .siteLogo,
.cslp .footer .siteLogo--onDark {
  height: 40px;
  max-width: min(190px, 70vw);
}

.cslp .brand h1,
.cslp .brand p {
  margin: 0;
}

.cslp .brand h1 {
  font: 800 1.14rem/1.05 "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: -0.03em;
}

.cslp .sub {
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(214, 224, 255, 0.7);
}

.cslp .links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cslp .link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(237, 242, 255, 0.84);
  font-size: 0.96rem;
  line-height: 1.2;
}

.cslp .link:hover,
.cslp .link:focus-visible,
.cslp .link.is-active {
  color: #0f172a;
  outline: none;
}

.cslp .navAuth {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cslp .btn2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: 0.18s;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.15;
  background: transparent;
  color: #fff;
}

.cslp .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid #2562ff;
  transition: 0.18s;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.15;
  background: #2562ff;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(37, 98, 255, 0.24);
}

.cslp .btn:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
  transform: translateY(-1px);
}

.cslp .btn:focus-visible {
  outline: 2px solid #2562ff;
  outline-offset: 2px;
}

.cslp .btn2:hover {
  transform: translateY(-1px);
}

.cslp .menu {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.cslp .menu-icon {
  font-size: 18px;
  line-height: 1;
}

.cslp .mobile {
  display: none;
}

/* ─── Mega menu (desktop) ─── */
.cslp .megaNav {
  position: static;
}

.cslp .megaNav-item {
  position: static;
}

.cslp .megaNav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.cslp .megaNav-chevron {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  opacity: 0.72;
  transition: transform 0.18s ease;
}

.cslp .megaNav-chevron svg {
  display: block;
}

.cslp .megaNav-item.is-open .megaNav-chevron {
  transform: rotate(180deg);
}

.cslp .megaPanel {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--cslp-mega-top, 72px);
  z-index: 45;
  padding: 0 clamp(16px, 2.4vw, 24px);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.22s ease, visibility 0.2s;
}

.cslp .megaNav-item.is-open .megaPanel {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.cslp .megaPanel-inner {
  max-width: 750px;
  margin: 0 auto;
  padding: 22px 24px 24px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e8edf5;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 18px 48px rgba(37, 98, 255, 0.1),
    0 8px 24px rgba(15, 23, 42, 0.06);
}

.cslp .megaPanel-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}

.cslp .megaPanel-grid--1 {
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.72fr);
}

.cslp .megaPanel-grid--2 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(260px, 0.88fr);
  align-items: stretch;
}

.cslp .megaPanel-inner:has(> .megaPanel-grid--2) {
  max-width: 960px;
}

/* Subtle vertical divider between integration columns (matches highlight panel border) */
.cslp .megaPanel-grid--2 > .megaCol:nth-child(2) {
  border-left: 1px solid rgba(37, 98, 255, 0.14);
  padding-left: 24px;
}

.cslp .megaCol-title {
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.cslp .megaCol-items {
  display: grid;
  gap: 4px;
}

.cslp .megaItem {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 12px;
  color: #0f172a;
  transition: background 0.16s ease, transform 0.16s ease;
}

.cslp .megaItem:hover,
.cslp .megaItem:focus-visible {
  background: #f5f8ff;
  outline: none;
  transform: translateX(2px);
}

.cslp .megaItem-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f3f6ff;
  border: 1px solid #e8edf5;
  line-height: 1;
  color: #2562ff;
  flex-shrink: 0;
}

.cslp .megaItem-icon svg {
  display: block;
}

.cslp .megaItem-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cslp .megaItem-body strong {
  font-size: 0.94rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.cslp .megaItem-body span {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #64748b;
}

.cslp .megaHighlight {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(160deg, #f5f8ff 0%, #eef3ff 52%, #f8f5ff 100%);
  border: 1px solid rgba(37, 98, 255, 0.14);
  min-height: 100%;
}

.cslp .megaHighlight-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(37, 98, 255, 0.16);
  color: #2562ff;
}

.cslp .megaHighlight-icon svg {
  display: block;
}

.cslp .megaHighlight h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.3;
}

.cslp .megaHighlight p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #475569;
}

.cslp .megaHighlight-visual {
  flex: 1 1 58%;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 0;
  max-height: 62%;
  margin: 2px 0;
  padding: 0 2px;
  overflow: hidden;
  pointer-events: none;
}

.cslp .megaHighlight-visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.cslp .megaHighlight-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #2562ff;
  flex: 0 0 auto;
}

.cslp .megaHighlight-cta:hover,
.cslp .megaHighlight-cta:focus-visible {
  color: #1d4ed8;
  outline: none;
}

/* Mobile accordion mega nav */
.cslp .navDrawer-mega {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.cslp .navDrawer-linkTop {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 650;
}

.cslp .navDrawer-linkTop:hover,
.cslp .navDrawer-linkTop:focus-visible {
  background: #f3f6fc;
  color: #2562ff;
  outline: none;
}

.cslp .navAccordion {
  border-radius: 12px;
  border: 1px solid #e8edf5;
  background: #fafbfc;
  overflow: hidden;
}

.cslp .navAccordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 650;
  text-align: left;
}

.cslp .navAccordion-chevron {
  font-size: 0.8rem;
  transition: transform 0.18s ease;
}

.cslp .navAccordion.is-open .navAccordion-chevron {
  transform: rotate(180deg);
}

.cslp .navAccordion-panel {
  display: grid;
  gap: 4px;
  padding: 0 8px 12px;
}

.cslp .navAccordion-panel[hidden] {
  display: none !important;
}

.cslp .navAccordion-panel .megaItem {
  grid-template-columns: 32px minmax(0, 1fr);
  padding: 8px 10px;
}

.cslp .navAccordion-panel .megaItem-icon {
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
}

.cslp .navAccordion-panel .megaHighlight {
  margin-top: 8px;
  padding: 14px;
}

.cslp .navAccordion-panel .megaHighlight-visual {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .cslp .megaPanel,
  .cslp .megaItem,
  .cslp .megaNav-chevron,
  .cslp .navAccordion-chevron {
    transition: none !important;
  }
}

/* Drawer + backdrop (tablet/mobile) */
.cslp .navBackdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(15, 23, 42, 0.48);
  border: 0;
  padding: 0;
  cursor: pointer;
  animation: cslp-nav-fade 0.22s ease;
}

.cslp .navDrawer {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: min(360px, 100vw);
  height: 100%;
  max-height: 100dvh;
  margin: 0;
  padding: 20px 20px 28px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: -18px 0 48px rgba(15, 23, 42, 0.18);
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: cslp-nav-slide 0.24s ease;
}

@keyframes cslp-nav-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes cslp-nav-slide {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.cslp .navDrawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5eaf3;
}

.cslp .navDrawer-head .brand h1 {
  color: #2562ff;
  font-size: 1.2rem;
}

.cslp .navDrawer-close {
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #e5eaf3;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
}

.cslp .navDrawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.cslp .navDrawer-links .link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 600;
}

.cslp .navDrawer-links .link:hover,
.cslp .navDrawer-links .link:focus-visible,
.cslp .navDrawer-links .link.is-active {
  background: #f3f6fc;
  color: #2562ff;
}

.cslp .navDrawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5eaf3;
}

.cslp .navDrawer-actions .btn,
.cslp .navDrawer-actions .btn2 {
  width: 100%;
  min-height: 48px;
}

.cslp .navDrawer-actions .btn2 {
  border-color: #e5eaf3;
  color: #0f172a;
  background: #ffffff;
}

/* ─── Footer ─── */
.cslp .footer {
  background: #060914;
  padding: 60px 0 26px;
  color: #fff;
}

.cslp .foot {
  display: grid;
  grid-template-columns: 300px repeat(3, minmax(0, 1fr));
  gap: 52px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.cslp .foot > div:first-child .copy {
  margin: 20px 0 26px;
  max-width: 280px;
  font-size: 16px;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.5);
}

.cslp .foot h3 {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px;
}

.cslp .cols {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.cslp .cols a {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  line-height: 1.42;
}

.cslp .cols a:hover {
  color: #fff;
}

.cslp .newsletter {
  display: flex;
  gap: 8px;
}

.cslp .newsletter .input {
  flex: 1;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  outline: none;
  font-size: 14px;
  font-family: inherit;
}

.cslp .newsletter .input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.cslp .newsletter .btn {
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: none;
}

.cslp .newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 0;
  max-width: 28rem;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.38);
  text-align: left;
}

.cslp .newsletter-consent__icon {
  flex: 0 0 auto;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.32);
}

.cslp .newsletter-consent a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cslp .newsletter-consent a:hover,
.cslp .newsletter-consent a:focus-visible {
  color: rgba(255, 255, 255, 0.78);
}

.cslp .tiny {
  margin-top: 12px;
  font-size: 0.88rem;
  color: rgba(220, 229, 255, 0.52);
  line-height: 1.6;
}

.cslp .footBottom {
  margin-top: 66px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cslp .footLegal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
}

.cslp .footLegal a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 15px;
}

.cslp .footLegal a:hover,
.cslp .footLegal a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

/* Content sits below sticky header */
.cslp > main {
  position: relative;
  z-index: 1;
}

.cslp,
.cslp * {
  box-sizing: border-box;
}

.cslp img,
.cslp svg,
.cslp video {
  max-width: 100%;
  height: auto;
  color: #2563eb;
}

/* Tablet: Logo + Start Free + Menu */
@media (max-width: 1023px) {
  .cslp .megaHighlight-visual {
    display: none;
  }

  .cslp .container {
    padding: 0 20px;
    width: 100%;
    max-width: 100%;
  }

  .cslp .links,
  .cslp .megaNav {
    display: none !important;
  }

  .cslp .navAuth-login {
    display: none !important;
  }

  .cslp .navAuth {
    margin-left: auto;
    gap: 12px;
  }

  .cslp .menu {
    display: inline-flex;
  }

  .cslp .nav {
    gap: 12px;
    flex-wrap: nowrap;
  }

  .cslp .foot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }

  .cslp .foot > div:first-child {
    grid-column: 1 / -1;
  }
}

/* Mobile: Logo + Menu; Start Free from 420px */
@media (max-width: 767px) {
  .cslp .container {
    padding: 0 16px;
  }

  .cslp .navAuth {
    display: none;
  }

  .cslp .menu {
    margin-left: auto;
  }

  .cslp .menu-text {
    display: none;
  }

  .cslp .foot {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .cslp .foot > div:first-child {
    grid-column: auto;
  }

  .cslp .foot .brand {
    justify-content: center;
  }

  .cslp .foot > div:first-child .copy {
    margin-left: auto;
    margin-right: auto;
  }

  .cslp .newsletter {
    flex-direction: column;
  }

  .cslp .newsletter .btn {
    width: 100%;
  }

  .cslp .newsletter-consent {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    text-align: left;
  }
}

@media (min-width: 420px) and (max-width: 767px) {
  .cslp .navAuth {
    display: flex;
    margin-left: auto;
  }

  .cslp .navAuth-cta {
    display: inline-flex;
    min-height: 44px;
    padding: 0 16px;
    font-size: 14px;
  }

  .cslp .menu {
    margin-left: 0;
  }
}

.cslp .csLang-current {
    max-width: 7.5rem;
    font-size: 16px;
    color: #000000;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
