/* ============================================================
   Flank — cross-page brand polish.
   Overrides that belong on every main site page (home, product,
   use-cases, partners, book-a-demo, security, legal-front-door).
   Page-specific tweaks stay inline on that page.

   Historically these lived inline on index.html only, so any new
   page risked inheriting Webflow's default square buttons. Keeping
   them in one file means a new page just has to link this.

   Linked AFTER the Webflow stylesheets (normalize.css, webflow.css,
   mb-flank-v2.webflow.css) so these override.
   ============================================================ */

/* Flank's "10% corner" brand token, mapped to Webflow's radius vars. */
:root {
  --_components---card--radius: 6px;
  --_site-sizes---radius--small: 6px;
}

/* Uniform 6px radius across visible Webflow containers.
   Section-level wrappers are excluded so full-bleed sections
   don't notch against their neighbours. Circular elements
   (border-radius: 50%) aren't matched and stay round. */
[class*="_wrap"]:not(.u-section):not(.page-wrapper):not(.global-code_wrap):not(.embed):not(.w-embed):not(.fh-right-menu):not(.eyebrow_wrap):not(.cta_wrap):not(.cta_layout):not(.nav_wrap),
[class*="_card"],
[class*="_bg"]:not(.page-bg):not(.fh-bg):not(.cta_bg):not(.u-bg-wrap),
[class*="_img"],
.button_wrap,
.faq_item,
.tab-link,
.tab_link {
  border-radius: 6px !important;
}

/* Nav CTAs — belt-and-suspenders. Webflow's .button_wrap has no
   default border-radius, so any page missing flank-polish.css (or
   a CDN caching an older copy) paints them square. These two
   selectors both match .button_wrap so any sheet order or cache
   invalidation still lands on 6px. */
.button_wrap.is-nav,
.nav_action-container .button_wrap {
  border-radius: 6px !important;
}

/* Burger (phone nav). Webflow paints it square and 40px tall next to the
   37.6px "Book a demo", so it read as a different component. Same 6px
   corner, and a square the button's height so the pair sits level. */
.nav_menu_btn {
  border-radius: 6px;
}
@media screen and (max-width: 767px) {
  /* .w-nav[data-collapse] matches webflow.css's display:block rule so the
     flex centring wins. */
  .w-nav[data-collapse] .nav_menu_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
  }
}

/* Nav CTAs (Blog, Book a demo) at the nav links' 13px rather than the
   webflow button's 15px, so they sit level with the menu. Line height
   stays, so the buttons and the bar keep their height. */
.nav_action-container .button_wrap { font-size: 13px; }

/* index.js injects an absolutely positioned hover fill as the first
   child of every .button_wrap. It has no radius and the button
   doesn't clip, so the fill paints square corners over the 6px
   button. Make it follow the button's shape. */
.button_wrap > div:not(.z-index-2) {
  border-radius: inherit;
}

/* Full-bleed section wrappers stay square. */
.u-section,
.u-bg-wrap {
  border-radius: 0 !important;
}

/* ============================================================
   Antarctica VAR — body weight 300 site-wide.
   Webflow's body tokens reference --_typography-primitives---weight--350
   (named "weight-350" by Webflow even though Flank wants 300). Redefining
   the primitive shifts every downstream body-weight token to 300 without
   touching the generated Webflow CSS.
   ============================================================ */
:root {
  --_typography-primitives---weight--350: 300;
}

/* Webflow hard-codes literal "wght" 350 on .text-block-2; override. */
.text-block-2 {
  font-variation-settings: "wght" 300, "wdth" 50;
}

/* ============================================================
   Language toggle (EN | DE)
   Sits in the top nav action container on every core marketing
   page and on its German (/de/) counterpart.
   ============================================================ */

/* The action container is a block by default, so adding the toggle
   stacked it above the buttons and grew the container past the 56px
   nav, pushing Blog / Book a demo through the bar's bottom edge. */
.nav_action-container {
  display: flex;
  align-items: center;
}

/* Between the mobile breakpoint and ~1100px the German labels leave the
   toggle and buttons too little room and they run off the right edge.
   Tighten the link padding to buy it back. */
@media screen and (min-width: 768px) and (max-width: 1100px) {
  .nav_menu .nav_link {
    padding-left: 16px;
    padding-right: 16px;
  }
  .lang-toggle {
    margin-right: 0.5rem;
  }
}

/* The nav bar inherits the dark body colour and sets white only on
   .nav_link_text, so an inherited colour here renders black on black. */
/* Language switcher is utility, not navigation: it sits in the hero's top
   right corner and never appears among the nav links. .fh-hero is already
   position:relative on both language variants. */
.fh-hero > .lang-toggle--utility {
  position: absolute;
  top: 28px;
  right: 32px;
  z-index: 5;
  margin-right: 0;
  color: #fff;
}
/* On phones the switcher floated over the hero image with nothing to anchor
   it. It lives at the foot of the burger menu there instead. */
.lang-toggle.lang-toggle--menu {
  display: none;
}
@media (max-width: 767px) {
  .fh-hero > .lang-toggle--utility {
    display: none;
  }
  .lang-toggle.lang-toggle--menu {
    display: flex;
    margin: 1.75rem 0 0;
    font-size: 1rem;
    color: #fff;
  }
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-right: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: inherit;
  white-space: nowrap;
}
.lang-toggle__opt {
  color: inherit;
  text-decoration: none;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}
.lang-toggle__opt:hover {
  opacity: 1;
}
.lang-toggle__opt.is-active {
  opacity: 1;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lang-toggle__sep {
  opacity: 0.35;
}
@media screen and (max-width: 767px) {
  .lang-toggle {
    margin-right: 0.5rem;
    font-size: 0.95rem;
  }
}
/* Toggle inside the index hero secondary menu (vertical, light text). */
.fh-right-menu .lang-toggle {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
}
.fh-right-menu .lang-toggle__opt {
  display: inline;
}
