/*
 * Page-local styles of the landing page (sesam_pages, pages/index.html, issue #617).
 *
 * All classes in this file use the `sesam-pages-` prefix to make it visible at the call site that they are scoped to
 * the landing page. The colors are the `--sesam-pages-*` tokens of tokens.css. The plan cards are shared with the Plan
 * page of the account and live in components.css (sesam-plan-card). Promote a rule from here to components.css as
 * soon as a second app needs it.
 */

/* The account menu of signed-in users: base.html has no app-shell.css, which styles the menu in the app. */
.dropdown .dropdown-menu {
  font-size: .85rem;
}

.dropdown-item {
  clear: both;
  display: block;
  width: 100%;
  padding: .25rem 1.5rem;
  font-weight: 400;
  color: var(--sesam-dropdown-item) !important;
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: #2e2f37;
  text-decoration: none;
  background-color: var(--sesam-surface-muted);
}

.dropdown-item.active,
.dropdown-item:active {
  color: #fff !important;
  text-decoration: none;
  background-color: var(--sesam-blue);
}

.dropdown-item.disabled,
.dropdown-item:disabled {
  color: var(--sesam-gray-500);
  pointer-events: none;
  background-color: transparent;
}

.dropdown-divider {
  height: 0;
  margin: .5rem 0;
  overflow: hidden;
  border-block-start: 1px solid var(--sesam-surface-muted);
}

/* ---------------------------------------------------------------------------------------------------- Page frame */

.sesam-pages {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--sesam-pages-text);
  background: var(--sesam-pages-bg);
}

/* The anchors of the navigation leave a little room above the section they jump to */
.sesam-pages [id] {
  scroll-margin-block-start: 1rem;
}

.sesam-pages h1,
.sesam-pages h2,
.sesam-pages h3 {
  color: var(--sesam-dark-blue);
}

/* One column of content, 1200px wide at most */
.sesam-pages-container {
  width: 100%;
  max-width: 75rem;
  padding-inline: 1.5rem;
  margin-inline: auto;
}

.sesam-pages-section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.sesam-pages-section-tinted {
  background: var(--sesam-pages-tint);
  border-block-start: 1px solid var(--sesam-pages-line-soft);
}

.sesam-pages-section-white {
  background: #fff;
  border-block-start: 1px solid var(--sesam-pages-line-soft);
}

/* The heading takes the width of the page, so a longer translation keeps it on one line; the lead stays narrower */
.sesam-pages-section-head {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-block-end: 2.5rem;
}

.sesam-pages-section-title {
  margin: 0;
  font-size: clamp(1.875rem, 3.4vw, 2.625rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.sesam-pages-section-lead {
  max-width: 45rem;
  margin: 0;
  font-size: 1.125rem;
}

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

/* The buttons of the page are larger than those of the app: the green call to action in the hero and on the blue
   closing band in the SESAM green of the app (btn-success), and a light outline button on the dark hero. */
.sesam-pages-btn-start,
.sesam-pages-btn-outline {
  --bs-btn-padding-x: 1.625rem;
  --bs-btn-padding-y: .875rem;
  --bs-btn-font-size: 1.0625rem;
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: .75rem;

  display: inline-flex;
  gap: .625rem;
  align-items: center;
}

/* Lighter on hover, as btn-success in the app */
.sesam-pages-btn-start {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--sesam-green);
  --bs-btn-border-color: var(--sesam-green);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--sesam-green-hover);
  --bs-btn-hover-border-color: var(--sesam-green-hover);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--sesam-green-hover);
  --bs-btn-active-border-color: var(--sesam-green-hover);
}

.sesam-pages-btn-outline {
  --bs-btn-color: #fff;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: rgb(255 255 255 / .35);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgb(255 255 255 / .08);
  --bs-btn-hover-border-color: rgb(255 255 255 / .6);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: rgb(255 255 255 / .14);
  --bs-btn-active-border-color: rgb(255 255 255 / .6);
}

.sesam-pages-btn-small {
  --bs-btn-padding-x: 1.125rem;
  --bs-btn-padding-y: .5625rem;
  --bs-btn-font-size: .9375rem;
  --bs-btn-border-radius: .625rem;
}

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

/* Header and hero share the dark blue of the API section; the white logo keeps its blue marks from clashing with it */
.sesam-pages-top {
  color: var(--sesam-pages-dark-text);
  background: var(--sesam-dark-blue);
  border-block-end: 1px solid var(--sesam-pages-night-casing);
}

/* The bar of the header, a step darker than the hero below it */
.sesam-pages-bar {
  background: var(--sesam-pages-bar-bg);
}

.sesam-pages-header {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2.25rem;
  align-items: center;
  padding-block: 1.25rem;
}

.sesam-pages-logo img {
  display: block;
  width: auto;
  height: 1.875rem;
}

.sesam-pages-nav {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: .5rem 1.75rem;
  font-size: .9375rem;
  font-weight: 500;
}

.sesam-pages-nav a,
.sesam-pages-header-language {
  color: var(--sesam-pages-dark-text);
}

.sesam-pages-nav a:hover,
.sesam-pages-header-language:hover,
.sesam-pages-header-login,
.sesam-pages-header-login:hover {
  color: #fff;
}

/* The account menu of signed-in users: a light chip on the dark header (the menu itself stays white) */
.sesam-pages-header .sesam-user-chip {
  color: #fff;
  background: rgb(255 255 255 / .1);
}

.sesam-pages-header .sesam-user-chip:hover,
.sesam-pages-header .sesam-user-chip.show {
  color: #fff;
  background: rgb(255 255 255 / .18);
}

.sesam-pages-header-actions {
  display: flex;
  gap: .625rem;
  align-items: center;
  margin-inline-start: auto;
  font-size: .9375rem;
  font-weight: 600;
}

.sesam-pages-header-language {
  display: inline-flex;
  gap: .375rem;
  align-items: center;
  padding: .5rem .625rem;
}

.sesam-pages-header-login {
  padding: .5rem .875rem;
}

/* On a phone the sections are reached by scrolling and from the footer; the header keeps logo, login and start */
@media (width < 768px) {
  .sesam-pages-nav {
    display: none;
  }

  .sesam-pages-header-language {
    display: none;
  }
}

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

.sesam-pages-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
  padding-block: 2.5rem 5.5rem;
}

.sesam-pages-hero-text {
  display: flex;
  flex: 1 1 28rem;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  min-width: 0;
}

.sesam-pages-eyebrow {
  margin: 0;
  font-size: .875rem;
  font-weight: 600;
  color: var(--sesam-pages-dark-link);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Two classes, so the heading color of the page (.sesam-pages h1) does not win over the white of the dark hero */
.sesam-pages-hero .sesam-pages-hero-title {
  margin: 0;
  font-size: clamp(2.375rem, 4.6vw, 3.875rem);
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.sesam-pages-hero-accent {
  color: var(--sesam-pages-dark-link);
}

.sesam-pages-hero-lead {
  max-width: 34rem;
  margin: 0;
  font-size: 1.1875rem;
  text-wrap: pretty;
}

.sesam-pages-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-block-start: .5rem;
}

.sesam-pages-hero-note {
  margin: 0;
  font-size: .875rem;
  color: var(--sesam-pages-dark-muted);
}

.sesam-pages-hero-picture {
  flex: 1 1 28rem;
  min-width: 0;
}

/* ------------------------------------------------------------------------------------------ Hero road network (SVG) */

.sesam-pages-network {
  display: block;
  width: 100%;
  height: auto;
  background: var(--sesam-pages-night-bg);
  border: 1px solid var(--sesam-pages-dark-line);
  border-radius: 1.75rem;
  box-shadow: 0 40px 90px -40px rgb(0 0 0 / .6);
}

/* The colors of a map at night on the dark hero: dark blocks, a park, water, dark road casings with lighter roads and a
   light dashed center line; the volumes keep the colors of the Analyzer */
.sesam-pages-network-block {
  fill: var(--sesam-pages-dark-surface);
}

.sesam-pages-network-park {
  fill: #2b5240;
}

.sesam-pages-network-water {
  fill: #1d4c78;
}

.sesam-pages-network-casing,
.sesam-pages-network-road,
.sesam-pages-network-volume,
.sesam-pages-network-centerline {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sesam-pages-network-casing {
  stroke: var(--sesam-pages-night-casing);
  stroke-width: 36;
}

.sesam-pages-network-road {
  stroke: #3a6286;
  stroke-width: 30;
}

/* Road sections colored by traffic volume, as the Analyzer shows them */
.sesam-pages-network-volume {
  opacity: .85;
  stroke-width: 30;
}

.sesam-pages-network-volume-medium {
  stroke: #f6d36a;
}

.sesam-pages-network-volume-high {
  stroke: #ef8b3f;
}

.sesam-pages-network-volume-jam {
  stroke: #d6453d;
}

.sesam-pages-network-centerline {
  stroke: #7d9cbb;
  stroke-width: 2;
  stroke-dasharray: 10 12;
}

.sesam-pages-network-junction {
  fill: var(--sesam-pages-night-bg);
  stroke: #7d9cbb;
  stroke-width: 2;
}

.sesam-pages-network-light {
  fill: var(--sesam-pages-night-green);
}

/* Two traffic lights change between red and green */
.sesam-pages-network-light-blinking {
  fill: #d6453d;
  animation: sesam-pages-network-blink 4s steps(1) infinite;
}

@keyframes sesam-pages-network-blink {
  0% {
    fill: #d6453d;
  }

  50% {
    fill: var(--sesam-pages-night-green);
  }
}

.sesam-pages-network-car {
  stroke: var(--sesam-pages-night-bg);
  stroke-width: 1.5;
  animation: sesam-pages-network-drive linear infinite;
  offset-rotate: auto;
}

.sesam-pages-network-car-blue {
  fill: var(--sesam-pages-dark-link);
}

.sesam-pages-network-car-green {
  fill: var(--sesam-pages-night-green);
}

.sesam-pages-network-car-orange {
  fill: #c9661a;
}

.sesam-pages-network-car-navy {
  fill: #fff;
}

@keyframes sesam-pages-network-drive {
  from {
    offset-distance: 0%;
  }

  to {
    offset-distance: 100%;
  }
}

/* Every road is a motion path in the coordinates of the picture (viewBox 0 0 720 620); the cars of a road start at
   different points of it through negative delays */
.sesam-pages-network-route-east .sesam-pages-network-car {
  animation-duration: 12s;
  offset-path: path("M-20 150 250 120 480 190 740 130");
}

.sesam-pages-network-route-west .sesam-pages-network-car {
  animation-duration: 14s;
  offset-path: path("M740 330 440 440 200 400 -20 470");
}

.sesam-pages-network-route-south .sesam-pages-network-car {
  animation-duration: 11s;
  offset-path: path("M230 -20 250 120 200 400 160 640");
}

.sesam-pages-network-route-north .sesam-pages-network-car {
  animation-duration: 13s;
  offset-path: path("M470 640 440 440 480 190 500 -20");
}

.sesam-pages-network-car:nth-child(2) {
  animation-delay: -4.5s;
}

.sesam-pages-network-car:nth-child(3) {
  animation-delay: -8.5s;
}

.sesam-pages-network-route-west .sesam-pages-network-car:nth-child(1) {
  animation-delay: -2s;
}

.sesam-pages-network-route-south .sesam-pages-network-car:nth-child(1) {
  animation-delay: -3s;
}

.sesam-pages-network-route-north .sesam-pages-network-car:nth-child(1) {
  animation-delay: -1s;
}

/* Without motion the cars stand on their roads and the lights stay red */
@media (prefers-reduced-motion: reduce) {
  .sesam-pages-network-car,
  .sesam-pages-network-light-blinking {
    animation: none;
  }

  .sesam-pages-network-car {
    offset-distance: 30%;
  }

  .sesam-pages-network-car:nth-child(2) {
    offset-distance: 55%;
  }

  .sesam-pages-network-car:nth-child(3) {
    offset-distance: 80%;
  }
}

/* ----------------------------------------------------------------------------------------------------------- Facts */

.sesam-pages-band {
  background: #fff;
  border-block: 1px solid var(--sesam-pages-line);
}

.sesam-pages-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(11.25rem, 100%), 1fr));
  gap: 1.75rem;
  align-items: center;
  padding-block: 2.25rem;
}

.sesam-pages-fact-value {
  font-size: 2.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--sesam-dark-blue);
}

.sesam-pages-fact-label {
  font-size: .875rem;
  color: var(--sesam-pages-muted);
}

.sesam-pages-fact-source {
  display: flex;
  gap: .75rem;
  align-items: center;
}

.sesam-pages-fact-name {
  font-weight: 600;
  color: var(--sesam-dark-blue);
}

/* Dark blue like the names beside them (the SUMO logo through img/sumo_icon_dark.svg); the blue icons belong to the
   feature tiles further down. */
.sesam-pages-fact-icon {
  font-size: 1.875rem;
  color: var(--sesam-dark-blue);
}

/* ---------------------------------------------------------------------------------------- The four apps as stops */

/* A blue line from stop to stop: each stop is a numbered circle in the first column (the counter of the list), the
   line runs down from it to the next stop. The text and the carousel share the second column and stack on a phone. */
.sesam-pages-stops {
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: sesam-pages-stop;
}

.sesam-pages-stop {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 2.25rem;
  align-items: flex-start;
  padding-block-end: 4.5rem;
  padding-inline-start: 4.75rem;
  counter-increment: sesam-pages-stop;
}

.sesam-pages-stop:last-child {
  padding-block-end: 0;
}

.sesam-pages-stop::before {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--sesam-dark-blue);
  content: counter(sesam-pages-stop);
  background: #fff;
  border: 4px solid var(--sesam-blue);
  border-radius: 50%;
}

.sesam-pages-stop:not(:last-child)::after {
  position: absolute;
  inset-block: 0;
  inset-inline-start: calc(1.5rem - 2px);
  width: 4px;
  content: "";
  background: var(--sesam-blue);
}

.sesam-pages-stop-text {
  display: flex;
  flex: 1 1 18rem;
  flex-direction: column;
  gap: .75rem;
  min-width: 0;
}

.sesam-pages-stop-text p {
  margin: 0;
}

/* The name of the app with its icon of the app sidebar, level with the circle of the stop (more specific than the
   heading color of the page); the names stay English in every language */
.sesam-pages-stop-text .sesam-pages-stop-app {
  display: flex;
  gap: .75rem;
  align-items: center;
  min-height: 3rem;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sesam-blue);
  letter-spacing: -.01em;
}

.sesam-pages-stop-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.125rem;
  color: #fff;
  background: var(--sesam-blue);
  border-radius: .6875rem;
}

.sesam-pages-stop-title {
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--sesam-dark-blue);
}

/* The pictures of an app (pages/js/carousel.js): all lie in the same cell of the frame, so the frame keeps its size
   and the hidden ones load lazily with the shown one; round dots below choose the picture, its name stands beside them */
.sesam-pages-carousel {
  display: flex;
  flex: 1.5 1 26rem;
  flex-direction: column;
  gap: .875rem;
  min-width: 0;
}

.sesam-pages-carousel-frame {
  display: grid;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--sesam-pages-line);
  border-radius: .875rem;
  box-shadow: 0 20px 50px -28px rgb(19 50 78 / .5);
}

.sesam-pages-carousel-picture {
  visibility: hidden;
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity .3s ease, visibility .3s;
}

.sesam-pages-carousel-current {
  visibility: visible;
  opacity: 1;
}

.sesam-pages-carousel-nav {
  display: flex;
  gap: .875rem;
  align-items: center;
  justify-content: center;
}

.sesam-pages-carousel-dots {
  display: flex;
  gap: .625rem;
}

.sesam-pages-carousel-dot {
  width: .75rem;
  height: .75rem;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 2px solid var(--sesam-blue);
  border-radius: 50%;
}

.sesam-pages-carousel-dot[aria-current="true"] {
  background: var(--sesam-blue);
}

.sesam-pages-carousel-dot:focus-visible {
  outline: 2px solid var(--sesam-blue);
  outline-offset: 2px;
}

/* Wide enough for the longest name, so the dots do not move when the name changes */
.sesam-pages-carousel-caption {
  min-width: 10rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--sesam-pages-text);
}

@media (prefers-reduced-motion: reduce) {
  .sesam-pages-carousel-picture {
    transition: none;
  }
}

/* On a phone the line moves closer to the edge */
@media (width < 576px) {
  .sesam-pages-stop {
    padding-inline-start: 3.5rem;
  }

  .sesam-pages-stop::before {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  .sesam-pages-stop:not(:last-child)::after {
    inset-inline-start: calc(1.25rem - 2px);
  }
}

/* ---------------------------------------------------------------------------------------------------- Feature tiles */

.sesam-pages-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15.625rem, 100%), 1fr));
  gap: 1rem;
}

.sesam-pages-tile {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  padding: 1.5rem;
  background: var(--sesam-pages-bg);
  border: 1px solid var(--sesam-pages-line-soft);
  border-radius: 1rem;
}

.sesam-pages-tile i {
  font-size: 1.625rem;
  color: var(--sesam-blue);
}

.sesam-pages-tile img {
  align-self: flex-start;
  width: auto;
  height: 1.75rem;
}

.sesam-pages-tile h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.sesam-pages-tile p {
  margin: 0;
  font-size: .9375rem;
}

/* ------------------------------------------------------------------------------------------- REST API and MCP (dark) */

.sesam-pages-section-dark {
  color: var(--sesam-pages-dark-text);
  background: var(--sesam-dark-blue);
}

.sesam-pages-section-dark h2,
.sesam-pages-section-dark h3 {
  color: #fff;
}

.sesam-pages-agents {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(27.5rem, 100%), 1fr));
  gap: 1.25rem;
}

.sesam-pages-agent {
  display: flex;
  flex-direction: column;
  gap: .875rem;
  min-width: 0;
  padding: 1.75rem;
  background: var(--sesam-pages-dark-surface);
  border: 1px solid var(--sesam-pages-dark-line);
  border-radius: 1.125rem;
}

.sesam-pages-agent h3 {
  margin: 0;
  font-size: 1.3125rem;
  font-weight: 700;
}

.sesam-pages-agent p {
  margin: 0;
  font-size: .9375rem;
}

.sesam-pages-agent a {
  margin-block-start: auto;
  font-weight: 600;
  color: var(--sesam-pages-dark-link);
}

.sesam-pages-agent a:hover {
  color: #fff;
}

/* The request and the command keep their line breaks; a line longer than the card (the prompt, a translation of it)
   wraps instead of being cut off at the edge */
.sesam-pages-code {
  padding: 1.125rem;
  margin: 0;
  overflow-x: auto;
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--sesam-pages-dark-text);
  white-space: pre-wrap;
  background: var(--sesam-pages-code-bg);
  border-radius: .75rem;
}

/* --------------------------------------------------------------------------------------------------------- Audiences */

/* The three audiences: every column takes the two rows of the grid (subgrid), so the headings share one row and the
   texts start on the same line when one heading wraps, as the longer words of a translation make it do. */
.sesam-pages-audiences {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(18.75rem, 100%), 1fr));
  gap: 0 2.5rem;
}

.sesam-pages-audience {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  gap: .625rem;
  padding-block: 1.25rem 2rem;
  border-block-start: 3px solid var(--sesam-blue);
}

.sesam-pages-audience:nth-child(2) {
  border-block-start-color: var(--sesam-green-strong);
}

.sesam-pages-audience:nth-child(3) {
  border-block-start-color: #c9661a;
}

.sesam-pages-audience h3 {
  align-self: start;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.sesam-pages-audience p {
  margin: 0;
  font-size: .9375rem;
}

/* ------------------------------------------------------------------------------------------------------------- Plans */

.sesam-pages-plans-title {
  margin-block-end: 1.75rem;
  text-align: center;
}

/* Three plans side by side in wide columns, so their features stay on one line in every language; Enterprise is a
   row below them (sesam-plan-card-wide). Narrower windows show two columns or one. */
.sesam-pages .sesam-plans-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
}

.sesam-plan-card-wide {
  grid-column: 1 / -1;
}

/* Name and price stay together, with the gap of the other cards between them */
.sesam-plan-card-intro {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

/* From a tablet on: name and price, the text and the button in one row; the text without the line of the cards */
@media (width >= 48rem) {
  .sesam-plan-card-wide {
    flex-direction: row;
    gap: 2.5rem;
    align-items: center;
  }

  .sesam-plan-card-wide .sesam-plan-card-intro {
    flex: 0 0 auto;
  }

  .sesam-plan-card-wide .sesam-plan-card-text {
    flex: 1 1 auto;
    padding-block-start: 0;
    border-block-start: 0;
  }

  .sesam-plan-card-wide .sesam-plan-card-action {
    flex: 0 0 auto;
    margin-block-start: 0;
  }

  .sesam-plan-card-wide .sesam-plan-card-action .btn {
    --bs-btn-padding-x: 2rem;

    width: auto;
  }
}

/* -------------------------------------------------------------------------------------------- Closing call to action */

.sesam-pages-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  align-items: center;
  justify-content: space-between;
  padding: clamp(2rem, 5vw, 3rem);
  color: var(--sesam-light-blue);
  background: var(--sesam-blue);
  border-radius: 1.5rem;
}

.sesam-pages-cta-text {
  display: flex;
  flex: 1 1 26rem;
  flex-direction: column;
  gap: .5rem;
  min-width: 0;
}

.sesam-pages-cta h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -.02em;
}

.sesam-pages-cta p {
  margin: 0;
  font-size: 1.125rem;
}

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

.sesam-pages-footer {
  font-size: .9375rem;
  background: #fff;
  border-block-start: 1px solid var(--sesam-pages-line-soft);
}

.sesam-pages-footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(11.875rem, 100%), 1fr));
  gap: 2.25rem;
  padding-block: 3.5rem 2rem;
}

.sesam-pages-footer-brand {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.sesam-pages-footer-brand img {
  align-self: flex-start;
  width: auto;
  height: 1.75rem;
}

.sesam-pages-footer-brand p {
  margin: 0;
  font-size: .875rem;
  color: var(--sesam-pages-muted);
}

.sesam-pages-footer-column {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: flex-start;
}

.sesam-pages-footer-column h3 {
  margin: 0 0 .25rem;
  font-size: .875rem;
  font-weight: 700;
}

.sesam-pages-footer-column a {
  color: var(--sesam-pages-text);
}

.sesam-pages-footer-column a:hover {
  color: var(--sesam-blue);
}

/* The language switcher of guests (fragments/language_switcher.html) as a column of links like the others */
.sesam-pages-footer-column .sesam-language-options {
  flex-direction: column;
  gap: .5rem;
  align-items: flex-start;
}

.sesam-pages-footer-column .sesam-language-option {
  color: var(--sesam-pages-text);
}

.sesam-pages-footer-column .sesam-language-option.active {
  color: var(--sesam-dark-blue);
}

.sesam-pages-footer-copyright {
  padding-block: 1.25rem 2rem;
  font-size: .875rem;
  color: var(--sesam-pages-muted);
  border-block-start: 1px solid var(--sesam-pages-line-soft);
}
