/* PrepBuddy website: the site's chrome, one copy for every public page (2026-11-15, row 125). Landing 2 (website/landing 01) is the reference: these are
   its tokens (the --l2-* page aliases of theme.css roles and the fluid em scale), its buttons (the pill, the two-part button, the round and the app
   buttons), its floating header with the full-screen menu, its wordmark and its blue footer, moved here verbatim from the page so that the landing and
   every page outside it load the same file. The markup and the script are ../shared/site.js (PBSite.mount). Class prefix l2-; every colour is a token of
   ../../shared/theme.css; sizes are em on the fluid size (1em = container / (ideal / 16)). The page recipes of the pages outside the landing are site.css. */

/* -------------------------------------------------------------------------
   1. Tokens (page aliases of theme.css roles)
   ------------------------------------------------------------------------- */
:root {
  --l2-ink: var(--text-primary);
  --l2-ink-2: var(--text-secondary);
  --l2-paper: var(--surface);
  --l2-canvas: var(--bg);
  --l2-white: var(--on-media);
  --l2-black: var(--media-ink);
  --l2-blue: var(--primary);
  --l2-blue-deep: var(--hero-solid);
  --l2-blue-soft: var(--secondary);
  --l2-violet: var(--tertiary);
  --l2-gold: var(--hero-reward);
  --l2-gold-deep: var(--reward);
  --l2-gold-mid: color-mix(in srgb, var(--hero-reward) 70%, var(--reward));
  --l2-gold-pale: color-mix(in srgb, var(--hero-reward) 42%, var(--surface));
  --l2-cyan: color-mix(in srgb, var(--cat-cyan) 58%, var(--surface));
  --l2-cyan-pale: color-mix(in srgb, var(--cat-cyan) 22%, var(--surface));
  --l2-pink: color-mix(in srgb, var(--cat-pink) 40%, var(--surface));
  --l2-pink-pale: color-mix(in srgb, var(--cat-pink) 12%, var(--surface));
  --l2-lilac: color-mix(in srgb, var(--tertiary) 32%, var(--surface));
  --l2-lilac-pale: color-mix(in srgb, var(--tertiary) 10%, var(--surface));
  --l2-sky: color-mix(in srgb, var(--secondary) 42%, var(--surface));
  --l2-sky-pale: color-mix(in srgb, var(--primary) 12%, var(--surface));
  --l2-orange: var(--cat-deep-orange);
  --l2-green: var(--cat-green);
  --l2-teal: var(--swatch-teal);
  --l2-shade: color-mix(in srgb, var(--shadow-ink) 16%, transparent);

  /* Type: Poppins (the brand font, tokens §2.1) for display and text; Caveat for the handwritten notes (website-only accent) */
  --l2-font: var(--font-family);
  --l2-tap: 36px;   /* the smallest control: the dense 36 dp of a mouse on a wide window, 44 dp on a touch screen (tokens 3.3) */
  --l2-font-hand: "Caveat", var(--font-family), "Segoe Print", "Comic Sans MS", cursive;   /* Caveat has no Tamil or Devanagari: the notes fall back to the UI stack, whose Noto families do */

  /* Fluid em scale (≤479px: ideal width 402) */
  --size-ideal: 402;
  --size-min: 320px;
  --size-max: 479px;
  --size-container: clamp(var(--size-min), calc(var(--vw, 1vw) * 100), var(--size-max));
  --size-font: calc(var(--size-container) / (var(--size-ideal) / 16) * min(var(--font-scale, 1), 1.1));   /* the Size setting (0.9 to 1.1) scales the page as one piece; past 1.1 the layout em stops (the em scale is the layout: 1.43 pushed the display words out of the window), browser zoom goes on from there */

  /* Type scale (mobile; desktop in the 992px block) */
  --fs-xxl: 3.15em;
  --fs-l: 2.5em;
  --fs-s: 1.75em;
  --fs-xs: 1.75em;
  --fs-hand: 1.875em;
  --fs-p-l: 1.2em;
  --fs-p-m: 1.2em;
  --fs-p: 1.075em;
  --fs-p-s: .95em;

  /* Layout */
  --gm: 1em;
  --header-h: 5em;
  --r-panel: 2.5em;
  --col: calc((var(--vw, 1vw) * 100 - 2 * var(--gm)) / 12);

  /* Motion (the reference's curves) */
  --ease-smooth: cubic-bezier(.32, .72, 0, 1);
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-soft-overshoot: cubic-bezier(.59, 1, .88, 1.01);
  --ease-bounce: cubic-bezier(.34, 1.57, .64, 1);
  --ease-soft-bounce: cubic-bezier(.34, 1.17, .64, 1);
  --ease-click: cubic-bezier(.4, 0, .2, 1);
  --ease-sine: cubic-bezier(.37, 0, .63, 1);
  /* elastic.out(1, .72) and elastic.out(1, .4) sampled into linear() */
  --ease-elastic: linear(0 0%, .179 2.5%, .3591 5%, .5283 7.5%, .6786 10%, .8059 12.5%, .9085 15%, .987 17.5%, 1.0434 20%, 1.0804 22.5%, 1.1014 25%, 1.1096 27.5%, 1.1083 30%, 1.1002 32.5%, 1.0881 35%, 1.0737 37.5%, 1.0587 40%, 1.0443 42.5%, 1.0313 45%, 1.02 47.5%, 1.0107 50%, 1.0034 52.5%, .9981 55%, .9944 57.5%, .9922 60%, .9911 62.5%, .9909 65%, .9914 67.5%, .9923 70%, .9934 72.5%, .9947 75%, .9959 77.5%, .997 80%, .998 82.5%, .9988 85%, .9995 87.5%, 1 90%, 1.0004 92.5%, 1.0006 95%, 1.0007 97.5%, 1 100%);
  --ease-elastic-tight: linear(0 0%, .2231 2.5%, .5 5%, .7725 7.5%, 1 10%, 1.1609 12.5%, 1.25 15%, 1.2747 17.5%, 1.25 20%, 1.1942 22.5%, 1.125 25%, 1.0569 27.5%, 1 30%, .9598 32.5%, .9375 35%, .9313 37.5%, .9375 40%, .9514 42.5%, .9688 45%, .9858 47.5%, 1 50%, 1.0101 52.5%, 1.0156 55%, 1.0172 57.5%, 1.0156 60%, 1.0121 62.5%, 1.0078 65%, 1.0036 67.5%, 1 70%, .9975 72.5%, .9961 75%, .9957 77.5%, .9961 80%, .997 82.5%, .998 85%, .9991 87.5%, 1 90%, 1.0006 92.5%, 1.001 95%, 1.0011 97.5%, 1 100%);
}

@media (min-width: 480px) {
  :root {
    --size-ideal: 550;
    --size-min: 480px;
    --size-max: 767px;
    --fs-xxl: 4.1em;
  }
}

@media (min-width: 768px) {
  :root {
    --size-ideal: 834;
    --size-min: 768px;
    --size-max: 991px;
    --fs-xxl: 5.8em;
  }
}

@media (min-width: 992px) {
  :root {
    --size-ideal: 1920;
    --size-min: 992px;
    --size-max: 3840px;
    --fs-xxl: 9.4em;
    --fs-l: 6.25em;
    --fs-s: 2.4em;
    --fs-xs: 1.875em;
    --fs-hand: 2.5em;
    --fs-p-l: 1.9em;
    --fs-p-m: 1.65em;
    --fs-p: 1.45em;
    --fs-p-s: 1.2em;
    --gm: 1.5em;
    --header-h: 6.625em;
    --r-panel: 10em;
  }
}

:focus-visible {
  outline: 3px solid var(--l2-focus, var(--l2-ink));
  outline-offset: 3px;
}

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

.l2-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.l2-skip-link {
  position: fixed;
  z-index: 1000;
  top: .75rem;
  inset-inline-start: .75rem;
  padding: .75rem 1rem;
  border-radius: .75rem;
  background: var(--l2-ink);
  color: var(--l2-white);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  translate: 0 -200%;
}

.l2-skip-link:focus-visible {
  translate: none;
  --l2-focus: var(--l2-blue);
}

.l2-container {
  padding-inline: var(--gm);
}

/* The mark: one colour by default; two-tone where --mk-p / --mk-b are set */
.l2-mark {
  display: block;
  fill: currentColor;
}

.l2-mark--duo {
  --mk-p: var(--l2-blue);
  --mk-b: var(--l2-ink);
  --mk-w: var(--l2-paper);
}

/* -------------------------------------------------------------------------
   3. Buttons
   ------------------------------------------------------------------------- */
/* Pill button (nav links, menu links) */
.l2-btn {
  --btn-h: max(3.5em, var(--l2-tap));
  --btn-bg: var(--l2-sky-pale);
  --btn-fg: var(--l2-ink);
  position: relative;
  display: inline-grid;
  align-items: center;
  height: var(--btn-h);
  min-width: var(--l2-tap);
  border-radius: 2em;
  background: var(--btn-bg);   /* the fill sits on the link itself, so what is behind the label is on its own ancestor; the __bg layer takes over on hover for the squash */
  color: var(--btn-fg);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-decoration: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: scale .15s var(--ease-click);
}

.l2-btn>* {
  grid-area: 1 / 1;
}

.l2-btn__bg {
  width: 100%;
  height: 100%;
  border-radius: 2em;
  background: var(--btn-bg);
  transition: scale .15s var(--ease-soft-overshoot), transform .15s var(--ease-soft-overshoot);
}

.l2-btn__label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .35em;
  padding: 0 .75em;
  font-size: 1.35em;
  white-space: nowrap;
}

.l2-btn__icon {
  flex: none;
  width: 1.1em;
  height: 1.1em;
}

.l2-btn:active {
  scale: .955 .925;
}

/* Two-part CTA (text block + arrow block) */
.l2-btn-alt {
  --alt-h: max(3em, 44px);
  --alt-px: .8125em;
  --alt-bg: var(--l2-blue);
  --alt-fg: var(--on-primary);
  position: relative;
  display: inline-flex;
  height: var(--alt-h);
  padding: 0;
  border: 0;
  background: none;
  color: var(--alt-fg);
  font-family: var(--l2-font);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.02em;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: scale .15s var(--ease-click);
}

.l2-btn-alt__main,
.l2-btn-alt__icon {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: .5em;
  background: var(--alt-bg);   /* as .l2-btn: the fill sits on the block itself; the __bg layer takes over on hover */
  pointer-events: none;
  transition: translate .15s var(--ease-soft-overshoot), rotate .15s var(--ease-soft-overshoot), transform .15s var(--ease-soft-overshoot);
}

.l2-btn-alt__main>*,
.l2-btn-alt__icon>* {
  grid-area: 1 / 1;
}

.l2-btn-alt__main {
  transform-origin: 0 50%;
}

.l2-btn-alt__icon {
  width: var(--alt-h);
  height: var(--alt-h);
  margin-inline-start: -.0625em;
  transform-origin: 100% 50%;
}

.l2-btn-alt__bg {
  width: 100%;
  height: 100%;
  border-radius: .5em;
  background: var(--alt-bg);
  transition: scale .15s var(--ease-soft-overshoot), transform .15s var(--ease-soft-overshoot);
}

.l2-btn-alt__text {
  position: relative;
  padding-inline: var(--alt-px);
  font-size: 1.15em;
  white-space: nowrap;
}

.l2-btn-alt__icon svg {
  position: relative;
  width: .875em;
  height: .75em;
}

.l2-menu-toggle .l2-btn-alt__icon svg {
  width: 1.5em;
  height: 1.5em;
}

.l2-btn-alt:active {
  scale: .955 .925;
}

.l2-btn-alt__char {
  display: inline-block;
  white-space: pre;
}

.l2-btn-alt--blue {
  --alt-bg: var(--l2-blue);
  --alt-fg: var(--on-primary);
}

.l2-btn-alt--ink {
  --alt-bg: var(--l2-ink);
  --alt-fg: var(--l2-white);
}

.l2-btn-alt--hero {
  --alt-bg: var(--on-hero);
  --alt-fg: var(--l2-blue-deep);
}

.l2-btn-alt--white {
  --alt-bg: var(--l2-white);
  --alt-fg: var(--l2-ink);
}

.l2-btn-alt--gold {
  --alt-bg: var(--l2-gold);
  --alt-fg: var(--on-reward);
}

.l2-btn-alt--sm .l2-btn-alt__text {
  font-size: 1.1em;
}

.l2-btn-alt--lg {
  --alt-h: 4em;
}

.l2-btn-alt--lg .l2-btn-alt__text {
  font-size: 1.35em;
}

.l2-btn-alt--big {
  --alt-h: 3.5em;
}

.l2-btn-alt--big .l2-btn-alt__text {
  font-size: 1.25em;
}

@media (min-width: 992px) {
  .l2-btn-alt {
    --alt-h: max(3.5em, var(--l2-tap));
    --alt-px: 1em;
  }

  .l2-btn-alt--big {
    --alt-h: 4.25em;
  }

  .l2-btn-alt--big .l2-btn-alt__text {
    font-size: 1.45em;
  }
}

/* Round icon button (support, socials) */
.l2-round {
  --soc-bg: var(--l2-ink);
  --soc-fg: var(--l2-white);
  position: relative;
  display: inline-grid;
  place-items: center;
  width: max(3.5em, var(--l2-tap));
  height: max(3.5em, var(--l2-tap));
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  color: var(--soc-fg);
  -webkit-tap-highlight-color: transparent;
  transition: scale .15s var(--ease-click);
}

.l2-round>* {
  grid-area: 1 / 1;
}

.l2-round__bg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--soc-bg);
  transition: scale .15s var(--ease-soft-overshoot), transform .15s var(--ease-soft-overshoot);
}

.l2-round svg {
  position: relative;
  width: 1.6em;
  height: 1.6em;
  transform-origin: 100% 50%;
  transition: translate .15s var(--ease-soft-overshoot), rotate .15s var(--ease-soft-overshoot), transform .15s var(--ease-soft-overshoot);
}

.l2-round:active {
  scale: .955 .925;
}

/* App buttons (Android & iOS, the browser) */
.l2-app-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .875em;
}

.l2-btn-app {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  height: max(3.5em, var(--l2-tap));
  padding: 0 1em 0 .8em;
  border-radius: .75em;
  background: var(--l2-ink);
  color: var(--l2-white);
  text-decoration: none;
  transition: scale .15s var(--ease-click);
}

.l2-btn-app svg {
  flex: none;
  width: 1.6em;
  height: 1.6em;
}

.l2-btn-app span {
  display: flex;
  flex-direction: column;
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.l2-btn-app small {
  margin-bottom: .15em;
  font-size: .6em;
  font-weight: 500;
  letter-spacing: .01em;
  opacity: .85;
}

.l2-btn-app:active {
  scale: .955 .925;
}

.l2-app-buttons--outline .l2-btn-app {
  box-shadow: inset 0 0 0 .125em var(--l2-white);
  background: color-mix(in srgb, var(--l2-white) 8%, transparent);
}

@media (min-width: 992px) {
  .l2-btn-app {
    height: max(3.75em, var(--l2-tap));
  }
}

/* Hover micro-interactions (squash, then spring) */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {

  /* the squash is the __bg layer's: the host's own fill steps aside while it plays */
  .l2-btn:is(:hover, :focus-visible),
  .l2-btn-alt:is(:hover, :focus-visible) :is(.l2-btn-alt__main, .l2-btn-alt__icon) {
    background-color: transparent;
  }

  .l2-btn:is(:hover, :focus-visible) .l2-btn__bg,
  .l2-btn-alt:is(:hover, :focus-visible) .l2-btn-alt__bg,
  .l2-round:is(:hover, :focus-visible) .l2-round__bg {
    scale: .955 .925;
    transform: scale(1.0471, 1.0811);
    transition: scale .15s var(--ease-soft-overshoot), transform .35s .15s var(--ease-bounce);
  }

  .l2-btn-alt:is(:hover, :focus-visible) .l2-btn-alt__main {
    translate: .25em .125em;
    rotate: 4deg;
    transform: rotate(-4deg) translate3d(-.25em, -.125em, 0);
    transition: translate .15s var(--ease-soft-overshoot), rotate .15s var(--ease-soft-overshoot), transform .35s .15s var(--ease-bounce);
  }

  .l2-btn-alt:is(:hover, :focus-visible) .l2-btn-alt__icon {
    translate: -.5em .25em;
    rotate: -18deg;
    transform: rotate(18deg) translate3d(.5em, -.25em, 0);
    transition: translate .15s var(--ease-soft-overshoot), rotate .15s var(--ease-soft-overshoot), transform .35s .15s var(--ease-bounce);
  }

  /* CSS fallback only: the script drives the hop (with the quick return on leave) and sets [data-hop] */
  .l2-btn-alt:not([data-hop]):is(:hover, :focus-visible) .l2-btn-alt__char {
    animation: l2-char-hop .725s calc(var(--i) / var(--n) * .225s) both;
  }

  .l2-round:is(:hover, :focus-visible) svg {
    translate: 0 .375em;
    rotate: -18deg;
    transform: rotate(18deg) translate3d(0, -.375em, 0);
    transition: translate .15s var(--ease-soft-overshoot), rotate .15s var(--ease-soft-overshoot), transform .35s .15s var(--ease-bounce);
  }

  .l2-btn-app:hover {
    scale: 1.03;
    transition: scale .35s var(--ease-bounce);
  }
}

/* 0 → 20% power2.in, then elastic.out(1, .4) (var() is not resolved in a keyframe's timing function, so it is inlined) */
@keyframes l2-char-hop {
  0% {
    transform: none;
    animation-timing-function: cubic-bezier(.55, .055, .675, .19);
  }

  20% {
    transform: translateY(55%) rotate(17deg) scaleY(.3);
    animation-timing-function: linear(0 0%, .2231 2.5%, .5 5%, .7725 7.5%, 1 10%, 1.1609 12.5%, 1.25 15%, 1.2747 17.5%, 1.25 20%, 1.1942 22.5%, 1.125 25%, 1.0569 27.5%, 1 30%, .9598 32.5%, .9375 35%, .9313 37.5%, .9375 40%, .9514 42.5%, .9688 45%, .9858 47.5%, 1 50%, 1.0101 52.5%, 1.0156 55%, 1.0172 57.5%, 1.0156 60%, 1.0121 62.5%, 1.0078 65%, 1.0036 67.5%, 1 70%, .9975 72.5%, .9961 75%, .9957 77.5%, .9961 80%, .997 82.5%, .998 85%, .9991 87.5%, 1 90%, 1.0006 92.5%, 1.001 95%, 1.0011 97.5%, 1 100%);
  }

  100% {
    transform: none;
  }
}

/* Tags */
.l2-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .25em;
}

.l2-tag {
  display: inline-flex;
  align-items: center;
  padding: .42em .55em;
  border-radius: 1.4em;
  background: var(--tag-bg, var(--l2-gold));
  color: var(--tag-fg, var(--l2-ink));
  font-size: .9em;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

@media (min-width: 992px) {
  .l2-tag {
    font-size: 1.05em;
  }
}

.l2-tag--gold {
  --tag-bg: var(--l2-gold);
}

.l2-tag--ink {
  --tag-bg: var(--l2-ink);
  --tag-fg: var(--l2-white);
}

.l2-tag--white {
  --tag-bg: var(--l2-white);
}

.l2-tag--sky {
  --tag-bg: var(--l2-sky);
}

.l2-tag--cyan {
  --tag-bg: var(--l2-cyan);
}

.l2-tag--pink {
  --tag-bg: var(--l2-pink);
}

.l2-tag--blue {
  --tag-bg: var(--l2-blue);
  --tag-fg: var(--on-primary);
}

/* Centred section header */
.l2-section-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75em;
  text-align: center;
}

.l2-section-header .l2-h-l {
  max-width: 18ch;
}

.l2-section-header__text {
  max-width: 34ch;
  color: var(--l2-ink-2);
}

@media (min-width: 992px) {
  .l2-section-header {
    gap: 1.75em;
  }
}

/* -------------------------------------------------------------------------
   4. Header + mobile menu
   ------------------------------------------------------------------------- */
.l2-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  font-size: calc(var(--size-container) / (var(--size-ideal) / 16));   /* the fixed bar keeps its size when the Size setting grows the page: wordmark, language and Menu must fit a phone's width */
  height: var(--header-h);
  pointer-events: none;
  transition: translate .5s var(--ease-smooth);
}

html.l2-menu-open .l2-header {
  translate: 0 -100%;
}

.l2-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding-inline: var(--gm);
}

.l2-header__brand,
.l2-header__sub {
  transition: opacity .125s ease-out, translate .45s var(--ease-smooth);
}

.l2-header.is-scrolled .l2-header__brand,
.l2-header.is-scrolled .l2-header__sub {
  translate: 0 calc(var(--header-h) * -1);
  opacity: 0;
  pointer-events: none;
}

.l2-header__brand,
.l2-nav__list>li,
.l2-header__sub>*,
.l2-header__end>*,
.l2-menu-toggle {
  pointer-events: auto;
}

.l2-header.is-scrolled .l2-header__sub>* {
  pointer-events: none;
}

.l2-nav,
.l2-header__sub {
  display: none;
}

/* the right-hand group: the support and platform buttons (desktop, they slide away on scroll) and the language and menu buttons (always there) */
.l2-header__right,
.l2-header__end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75em;
}

/* below 480 px the bar has no room for a third button beside the wordmark and Menu: the language button sits in the menu instead */
@media (max-width: 479.98px) {
  .l2-header__end .l2-round {
    display: none;
  }
}

@media (min-width: 480px) {
  .l2-menu__footer .l2-round--lang {
    display: none;
  }
}

.l2-menu__rounds {
  display: flex;
  align-items: center;
  gap: .75em;
}

@media (min-width: 992px) {
  .l2-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  .l2-nav {
    display: block;
  }

  .l2-nav__list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
  }

  .l2-header__sub {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .75em;
  }

  .l2-menu-toggle {
    display: none;
  }
}

/* Wordmark: the mark + PrepBuddy */
.l2-wordmark {
  --wm: .8em;
  --mk-p: var(--l2-blue);
  --mk-b: var(--l2-ink);
  --mk-w: var(--l2-white);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .35em;
  color: var(--l2-ink);
  font-size: var(--wm);
  line-height: 1;
  text-decoration: none;
}

.l2-header__brand .l2-wordmark {
  min-height: 44px;
  background: var(--l2-paper);
  padding: .35em .95em .35em .5em;
  border-radius: 999px;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--l2-shade) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--l2-white) 40%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.l2-wordmark__mark {
  width: 2.6em;
  height: 3.1em;
  flex-shrink: 0;
}

.l2-wordmark__name {
  font-family: var(--l2-font);
  font-weight: 800;
  font-size: 2.3em;
  line-height: 1;
  letter-spacing: -.045em;
  color: var(--l2-ink);
}

.l2-wordmark__name b {
  color: var(--l2-blue);
  font-weight: 800;
}

/* on the blue footer and the violet menu: blue "Prep" vanished, so the whole logo is white there. It took the gold
   accent until 2026-11-15, when the owner asked why the logo was yellow: gold is the reward colour, never the brand's. */
.l2-wordmark--light {
  --l2-focus: var(--l2-white);
  --mk-p: var(--l2-white);
  --mk-b: var(--l2-white);
  min-height: 44px;
  color: var(--l2-white);
}

.l2-wordmark--light .l2-wordmark__name,
.l2-wordmark--light .l2-wordmark__name b {
  color: var(--l2-white);
}

@media (min-width: 992px) {
  .l2-wordmark {
    --wm: 1em;
  }
}

.l2-header__sub .l2-btn--platform {
  --btn-bg: var(--l2-gold);
}

.l2-header .l2-round {
  --soc-bg: var(--l2-ink);
  --soc-fg: var(--l2-gold);
}

/* Menu (native <dialog>) */
.l2-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: .5em;
  border: 0;
  background: transparent;
  overflow: hidden;
  font-size: var(--size-font);
}

.l2-menu::backdrop {
  background: var(--l2-paper);
  opacity: 0;
  transition: opacity .35s var(--ease-smooth);
}

.l2-menu.is-open::backdrop {
  opacity: 1;
}

.l2-menu__card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 2em;
  background: var(--l2-violet);
  overflow: hidden auto;
  opacity: 0;
  transform: translate3d(0, 5em, 0) scale(.9);
  transition: transform .5s var(--ease-smooth), opacity .2s .1s var(--ease-smooth);
}

.l2-menu.is-open .l2-menu__card {
  opacity: 1;
  transform: none;
  transition: transform .6s var(--ease-smooth), opacity .2s var(--ease-smooth);
}

.l2-menu__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  fill: var(--l2-white);
  fill-opacity: .14;
}

.l2-menu__header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 6em;
  padding: .5em 1em 0;
}

.l2-menu__close {
  display: grid;
  place-items: center;
  width: 3.5em;
  height: 3.5em;
  border: 0;
  border-radius: .5em;
  background: var(--l2-lilac-pale);
  color: var(--l2-ink);
  cursor: pointer;
  transition: scale .15s var(--ease-click);
}

.l2-menu__close svg {
  width: 1.5em;
  height: 1.5em;
}

.l2-menu__close:active {
  scale: .92;
}

.l2-menu__nav {
  position: relative;
  margin-top: auto;
}

.l2-menu__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .625em;
}

.l2-btn--menu {
  --btn-h: 4em;
  --btn-bg: var(--l2-lilac-pale);
}

.l2-btn--menu .l2-btn__label {
  font-size: 1.6em;
}

.l2-btn--menu-sm {
  --btn-bg: var(--l2-gold);
}

.l2-btn--menu-sm .l2-btn__label {
  font-size: 1.3em;
}

.l2-menu__footer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1em;
  padding: 2.5em 1em 2.5em;   /* 3.5em until the sixth link (Pricing, 2026-11-15): the language button stays in view at 390 x 844 */
}

.l2-round--menu {
  --soc-bg: var(--l2-ink);
  --soc-fg: var(--l2-gold);
}

html.l2-menu-open {
  overflow: hidden;
}

/* -------------------------------------------------------------------------
   18. Footer
   ------------------------------------------------------------------------- */
.l2-footer {
  --l2-focus: var(--l2-white);
  position: relative;
  overflow: hidden;
  overflow: clip;
  margin-top: calc(var(--r-panel) * -1);
  padding-top: var(--r-panel);
  background: var(--hero);
  color: var(--on-hero);
}

.l2-footer__visual {
  display: none;
}

.l2-footer__top {
  position: relative;
  padding: 2em 0;
}

.l2-footer__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.l2-footer__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.l2-footer__nav .l2-app-buttons {
  padding-top: 1.5em;
}

.l2-footer__socials {
  display: none;
  align-items: center;
  gap: .9em;
}

.l2-round--footer {
  --soc-bg: var(--l2-gold);
  --soc-fg: var(--l2-ink);
}

.l2-footer__mail {
  color: var(--on-hero);
  font-weight: 600;
  text-decoration: none;
}

.l2-footer__mail:hover {
  text-decoration: underline;
}

.l2-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75em 1.25em;
}

.l2-footer__links--desk {
  display: none;
}

.l2-footer__links a {
  color: var(--on-hero);
  font-size: 1em;
  text-decoration: none;
}

.l2-footer__links a:hover {
  text-decoration: underline;
}

/* touch and narrow windows: the legal links and the field list become full 44 px targets (the row gap moves into them) */
@media (max-width: 991.98px), (pointer: coarse) {
  .l2-footer__links {
    row-gap: 0;
  }

  .l2-footer__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
}


/* a mouse on a wide window: the dense 36 px control (tokens 3.3); the row gap moves into the link */
@media (min-width: 992px) and (pointer: fine) {
  .l2-footer__links {
    row-gap: 0;
  }

  .l2-footer__links a,
  .l2-footer__mail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
  }
}

.l2-footer__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 4em;
}

.l2-footer__form-title {
  font-weight: 800;
  font-size: calc(var(--fs-s) * var(--l2-ds, 1));
  line-height: .95;
  letter-spacing: -.035em;
  text-align: center;
}

.l2-newsletter {
  width: 100%;
  max-width: calc(100% - 3em);
  padding-top: 1.5em;
}

.l2-newsletter__fields {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75em;
}

.l2-newsletter__input {
  width: 100%;
  min-height: max(3.25em, var(--l2-tap));
  padding: .8125em .9em;
  border: 0;
  border-radius: .75em;
  background: var(--field-bg);
  color: var(--l2-ink);
  font: 500 1.1rem/1.2 var(--l2-font);
  letter-spacing: -.01em;
  --l2-focus: var(--l2-gold);
}

.l2-newsletter__input::placeholder {
  color: var(--l2-ink-2);
  opacity: 1;
}

.l2-newsletter__input[aria-invalid="true"] {
  box-shadow: 0 0 0 .1875em var(--error);
}

.l2-newsletter__hint {
  width: 100%;
  padding: .55em .8em;
  border-radius: .6em;
  background: var(--error-container);
  color: var(--error-text);
  font-size: 1em;
  font-weight: 600;
}

.l2-newsletter__msg {
  margin-top: 1em;
  padding: .9em 1.1em;
  border-radius: 1em;
  font-size: var(--fs-p-s);
  line-height: 1.2;
}

.l2-newsletter__msg--success {
  background: var(--success-container);
  color: var(--success-text);
  font-weight: 600;
}

.l2-newsletter.is-success .l2-newsletter__fields {
  display: none;
}

.l2-newsletter.is-loading button {
  opacity: .65;
  pointer-events: none;
}

.l2-footer__mobile-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  padding: 2.5em var(--gm) 0;
}

.l2-footer__bottom {
  padding: 1.5em 0;
  background: var(--l2-ink);
  color: var(--l2-white);
  text-align: center;
}

.l2-footer__bottom-row {
  display: flex;
  flex-direction: column;
  gap: .4em;
}

.l2-footer__copy {
  font-size: 1em;
  opacity: .7;
}

@media (min-width: 992px) {
  .l2-footer {
    margin-top: -10em;
    padding-top: 10em;
  }

  .l2-footer__visual {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .l2-footer__visual-pos {
    position: absolute;
    left: 50%;
    bottom: -18em;
    width: 36em;
    translate: calc(-50% + 6em) 0;
    rotate: -14deg;
  }

  .l2-footer__top {
    padding: 7em 0 2.5em;
  }

  .l2-footer__grid {
    flex-direction: row;
    align-items: flex-start;
    padding-inline-start: calc(var(--gm) + var(--col));
  }

  .l2-footer__nav {
    width: calc(var(--col) * 4);
    align-items: flex-start;
    flex: none;
  }

  .l2-footer__nav .l2-app-buttons {
    justify-content: flex-start;
    padding-top: 2.1875em;
  }

  .l2-footer__socials {
    display: flex;
    padding-top: 2.5em;
  }

  .l2-round--footer {
    width: max(3.625em, var(--l2-tap));
    height: max(3.625em, var(--l2-tap));
  }

  .l2-footer__links--desk {
    display: flex;
    justify-content: flex-start;
    gap: 0 2em;   /* the links are 36 px tall themselves: eight of them wrap into two rows without a gap on top of that */
    padding-top: 4.5em;
  }

  .l2-footer__links a {
    font-size: 1.125em;
  }

  .l2-footer__form {
    width: auto;
    margin-inline-start: calc(var(--col) * 4);
    padding-top: 2em;
    align-items: flex-start;
  }

  .l2-footer__form-title {
    text-align: start;
  }

  .l2-newsletter {
    max-width: 24.625em;
    padding-top: 2em;
  }

  .l2-newsletter__fields {
    align-items: flex-start;
    gap: 1em;
  }

  .l2-newsletter__input {
    padding: 1em 1.0625em;
    border-radius: 1em;
    font-size: var(--fs-p-s);
  }

  .l2-footer__mobile-row {
    display: none;
  }

  .l2-footer__bottom {
    padding: .875em 0 1em;
    text-align: start;
  }

  .l2-footer__bottom-row {
    flex-direction: row;
    justify-content: space-between;
    padding-inline: calc(var(--gm) + var(--col));
  }
}

@media (pointer: coarse) {
  :root {
    --l2-tap: 44px;
  }
}

:root:lang(ta) {
  --l2-ds: .7;
}

:root:lang(hi) {
  --l2-ds: .82;
}

:is(:lang(ta), :lang(hi)) *:not([data-noloc]):not([data-noloc] *) {
  letter-spacing: 0 !important;   /* the brand name keeps its own tracking */
}

/* the two-part buttons were one nowrap line of fixed height: a long label wraps and the button grows, never wider than its row */
:is(:lang(ta), :lang(hi)) .l2-btn-alt {
  height: auto;
  min-height: var(--alt-h);
  max-width: 100%;
}

:is(:lang(ta), :lang(hi)) .l2-btn-alt__icon {
  height: auto;
  min-height: var(--alt-h);
}

:is(:lang(ta), :lang(hi)) .l2-menu-toggle .l2-btn-alt__text {
  font-size: 1em;
}

/* the menu's pills were sized for short Latin labels */
:is(:lang(ta), :lang(hi)) .l2-btn--menu .l2-btn__label {
  font-size: 1.3em;
}

:is(:lang(ta), :lang(hi)) .l2-btn--menu-sm .l2-btn__label {
  font-size: 1.05em;
}

:is(:lang(ta), :lang(hi)) .l2-btn-alt__main {
  flex-shrink: 1;
  min-width: 0;
}

:is(:lang(ta), :lang(hi)) .l2-btn-alt__text {
  max-width: 100%;
  padding-block: .4em;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

@media (min-width: 992px) {
  :is(:lang(ta), :lang(hi)) .l2-nav__list {
    gap: .25em;
  }

  :is(:lang(ta), :lang(hi)) .l2-nav .l2-btn__label {
    padding: 0 .55em;
    font-size: 1.15em;
  }
}

/* the platform pill repeats the hero note and the laptop band: it steps aside where the longer labels need the room */
@media (min-width: 992px) and (max-width: 1599.98px) {
  :is(:lang(ta), :lang(hi)) .l2-header__sub .l2-btn--platform {
    display: none;
  }
}
