/* ==========================================================================
   Uptalen — homepage styles
   Design v5. Fonts: Manrope (headings) + Instrument Sans (body)
   ========================================================================== */

/* ------------------------------------------------------------------- fonts
   Manrope and Instrument Sans, served from this site rather than from Google.
   Google Fonts cost two extra origins before a single glyph appeared, and sent
   every visitor's IP address to Google to fetch a typeface -- which is why it
   had a row of its own in the processor table on /privacy, the only entry
   there that returned nothing in exchange.

   These lived in their own fonts.css until the two stylesheets became two
   render-blocking requests for what is one job. The second file was 642 bytes
   over the wire, so the request cost more than the bytes. The woff2 files are
   preloaded in the head, so their download starts before this rule is even
   parsed and nothing waits on it.

   Both families are variable fonts, so one file covers every weight. The
   ranges match what Google was asked for, so nothing renders differently.
   unicode-range is copied from Google's own stylesheet: latin-ext is fetched
   only when a page actually uses a character from it.

   The url()s are relative to this file, which sits in the same folder the old
   one did, so they are unchanged. */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/instrument-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/instrument-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* --------------------------------------------------------------- tokens */
:root {
  --ink: #0f141b;
  --ink-2: #2b323c;
  --grey: #4a5361;
  --grey-2: #5b6472;
  --line: #d5dbe3;
  --line-2: #e4e8ee;
  --soft: #f3f5f8;
  --tint: #e9eeff;
  --tint-peach: #fbede6;
  --tint-lilac: #e9e6f7;
  --blue: #2547f4;
  --blue-light: #9fb0ff;
  --lime: #d4f06b;
  --white: #fff;
  --dark-surface: #1e2530;
  --dark-line: #2a323e;

  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;

  --container: 1280px;
  --gutter: 32px;
  --section-y: 112px;
}

/* --------------------------------------------------------------- base */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

/* `display` on a component must not beat the hidden attribute */
[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }
a:hover { opacity: .85; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.06;
  margin: 0;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------- layout */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--soft { background: var(--soft); }
.section--tight { padding-block: 72px; }

.stack { display: flex; flex-direction: column; }
.stack-12 { gap: 12px; }
.stack-20 { gap: 20px; }
.stack-24 { gap: 24px; }
.stack-44 { gap: 44px; }

.grid { display: grid; gap: 20px; }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); }

/* --------------------------------------------------------------- bits */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--blue);
  flex: none;
}
.eyebrow--light { color: var(--white); }
.eyebrow--light::before { background: var(--lime); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 48px;
}
.section-head__text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 20px; }
.section-head__aside { flex: 0 1 420px; display: flex; flex-direction: column; gap: 22px; }
.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.section-head--center .section-head__text { align-items: center; flex-basis: auto; }

h2.title { font-size: clamp(36px, 4.2vw, 58px); }
h3.title-md { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.03em; }

.lead { font-size: 17px; line-height: 1.6; color: var(--grey); }
.muted { color: var(--grey); }
.small { font-size: 15px; }

.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--grey-2);
}

.rule { flex: 1 1 160px; height: 1px; background: var(--line); }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding-inline: 22px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  background: none;
}
.btn--primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn--dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--white { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn--sm { min-height: 44px; font-size: 14px; padding-inline: 18px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--blue);
}

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-2);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 18px;
}
.site-header__logo svg,
.site-header__logo img { height: 34px; width: auto; }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font-size: 15px;
  font-weight: 500;
}

.nav-toggle { display: none; }

/* ------------------------------------------------------ nav dropdowns */
.nav__item { position: static; display: flex; align-items: center; }
.nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.nav__chev { transition: transform .18s ease; }
.nav__trigger[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }

/* floating rounded panel, right edge aligned with the container */
.nav__menu {
  position: absolute;
  top: calc(100% + 20px);
  right: max(var(--gutter), calc(50% - var(--container) / 2));
  z-index: 30;
  width: 640px;
  max-width: calc(100vw - var(--gutter) * 2);
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(15, 20, 27, .14);
}
.nav__menu--mega { width: 900px; }
/* invisible bridge so the pointer can travel from the trigger to the panel */
.nav__menu::before {
  content: "";
  position: absolute;
  inset: -26px 0 100% 0;
}
.menu__in { display: flex; gap: 40px; align-items: stretch; padding: 30px; }
.menu__cols { display: flex; gap: 44px; flex: 1; }
.menu__col { display: flex; flex-direction: column; gap: 2px; min-width: 140px; }
.menu__col a { padding: 7px 0; font-size: 15px; font-weight: 500; }
.menu__col a:hover { color: var(--blue); opacity: 1; }
.menu__title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--grey-2);
}
.menu__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-weight: 600;
  color: var(--blue);
}

.menu__stat {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 26px;
  border-radius: 14px;
  background: var(--blue);
  color: var(--white);
}
.menu__stat-big {
  margin: 0;
  font-family: var(--font-head);
  font-size: 60px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.04em;
}
.menu__stat-big em { font-style: normal; color: var(--blue-light); }
.menu__stat-copy { margin: 0; font-size: 15px; line-height: 1.5; color: #dfe5ff; }
.menu__stat a {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-bottom: 3px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1.5px solid rgba(255, 255, 255, .45);
}

/* --------------------------------------------------------------- hero */
/* Big, roomy windows (1440px wide and up, at least 900px tall) keep the
   original fixed proportions. Everything smaller gets the adaptive version
   further down, where the first screen is sized to the window. */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 56px;
}
.hero__waves {
  position: absolute;
  left: 0;
  top: 150px;
  width: 100%;
  height: 560px;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero__title {
  margin-top: 20px;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.055em;
  max-width: 1100px;
}
.hero__title span { color: var(--blue); }
.hero__cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-top: 40px;
}
/* narrower bases than the design's 600/520: at 1440 the old ones no longer fit
   side by side, and the form dropped below the text */
.hero__copy { flex: 1 1 360px; display: flex; flex-direction: column; gap: 28px; }
.hero__copy p { font-size: 18px; }
.hero__aside { flex: 1 1 400px; max-width: 520px; width: 100%; }

.stack-strip {
  position: relative;
  z-index: 1;
  margin-top: 64px;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.stack-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 36px;
  padding-block: 26px;
}
.stack-strip img {
  height: 46px;
  width: auto;
  filter: grayscale(1);
  opacity: .75;
}

/* --------------------------------------------------------------- lead form */
.lead-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  padding: 18px 20px;
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 28px rgba(15, 20, 27, .07);
}
.lead-form__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.lead-form__title { font-family: var(--font-head); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.lead-form__step { font-size: 12px; color: var(--grey-2); }
.lead-form__progress { height: 3px; background: var(--line-2); }
.lead-form__progress span { display: block; height: 3px; background: var(--blue); transition: width .25s ease; }
.lead-form__q { font-size: 14px; font-weight: 600; }
.lead-form__body { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.lead-form__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lead-form__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lead-form__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.lead-form__hint { font-size: 12px; color: var(--grey-2); }
.lead-form__done { display: flex; flex-direction: column; gap: 10px; justify-content: center; flex: 1; }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-inline: 12px;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

.field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 500; color: var(--grey); }
.field input {
  height: 40px;
  padding-inline: 10px;
  border: 1px solid #c9d0da;
  background: var(--white);
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}

.btn-ghost {
  min-height: 40px;
  padding-inline: 6px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--grey);
  cursor: pointer;
}

/* --------------------------------------------------------------- review bar */
.review-bar {
  background: var(--ink);
  color: var(--white);
}
.review-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 24px;
  padding-block: 20px;
  font-size: 16px;
}
.review-bar strong { font-family: var(--font-head); font-weight: 600; }
.review-bar .stars { display: inline-flex; gap: 3px; }
.review-bar a { text-decoration: underline; }
.review-bar__meta { color: #a9b2c0; }

/* --------------------------------------------------------------- about */
.about__inner { display: flex; flex-wrap: wrap; gap: 32px 80px; }
.about__label { flex: 0 1 280px; }
.about__body { flex: 1 1 640px; display: flex; flex-direction: column; gap: 32px; }
.about__text {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}
/* 3.32:1 on --soft. The text is 28px+, so the bar is 3:1, but #8e97a6 sat
   at 2.70 and failed it. */
.about__text span { color: #7d8798; }

/* --------------------------------------------------------------- services */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 300px;
  padding: 28px 26px 24px;
  background: var(--tint);
}
.service-card:nth-child(2) { background: var(--tint-peach); }
.service-card:nth-child(3) { background: var(--tint-lilac); }
.service-card__num {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--blue);
}
.service-card__spacer { flex: 1; }
.service-card h3 { font-size: 26px; letter-spacing: -0.03em; }
.service-card p { font-size: 16px; line-height: 1.55; color: var(--grey); }
.service-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(15, 20, 27, .12);
  padding-top: 14px;
  font-size: 14px;
  font-weight: 500;
}
.service-card__foot svg { color: var(--blue); }

.services__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

/* --------------------------------------------------------------- founder */
.founder {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  border-radius: 28px;
  padding: 64px 56px 56px;
}
.founder__rays { position: absolute; right: 0; top: 0; width: 360px; opacity: .5; transform: scaleX(-1); }
.founder__inner { position: relative; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.founder__copy { flex: 1 1 400px; display: flex; flex-direction: column; gap: 24px; }
.founder__copy h2 span { color: var(--blue-light); }
.founder__copy p { color: #c4cbd6; max-width: 520px; }
.founder__list { display: flex; flex-direction: column; gap: 12px; font-size: 16px; color: var(--tint); }
.founder__list li { display: flex; gap: 12px; }
.founder__figure {
  flex: 1 1 320px;
  /* keeps the photo from blowing up to full width once the row wraps */
  max-width: 460px;
  margin: 0;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
}
.founder__photo {
  width: 100%;
  height: auto;          /* beats the height attribute, so aspect-ratio wins */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--dark-surface);
}
.founder__quote {
  background: var(--tint);
  color: var(--ink);
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.founder__quote q { font-family: var(--font-head); font-size: 18px; line-height: 1.4; }
.founder__quote cite { font-size: 14px; font-weight: 600; font-style: normal; }
.founder__quote cite span { font-weight: 400; color: var(--grey); }

.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 24px;
  border-top: 1px solid var(--dark-line);
  margin-top: 56px;
  padding-top: 32px;
}
.stats dt { font-family: var(--font-head); font-size: 52px; font-weight: 400; letter-spacing: -0.03em; }
.stats dt span { color: var(--blue-light); }
/* nowrap at a fixed 38px spilled out of the cell between ~760 and ~1100px */
.stats dt.is-text { font-size: clamp(26px, 2.6vw, 38px); white-space: nowrap; }
.stats dd { margin: 0; font-size: 15px; color: #c4cbd6; }

/* --------------------------------------------------------------- compare */
.compare { display: flex; flex-wrap: wrap; gap: 20px; }
.compare__col { flex: 1 1 460px; padding: 32px 30px; display: flex; flex-direction: column; gap: 22px; }
.compare__col--them { background: var(--white); }
.compare__col--us { background: var(--blue); color: var(--white); }
.compare__col h3 { font-size: 28px; letter-spacing: -0.03em; }
.compare__col--them h3 { color: var(--grey); }
.compare__col ul { display: flex; flex-direction: column; gap: 16px; font-size: 17px; }
.compare__col li { display: flex; gap: 12px; }
.compare__col--them li { color: var(--grey); }

/* --------------------------------------------------------------- roles */
.roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.roles__col { background: var(--white); padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 14px; }
.roles__col--region { background: var(--soft); justify-content: space-between; gap: 18px; }
.roles__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 500;
  padding-block: 8px;
  border-bottom: 1px solid var(--line-2);
}
.roles__link:last-of-type { border-bottom: 0; }
.roles__link span { color: var(--blue); }
.roles__region-link { font-family: var(--font-head); font-size: 28px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }

/* --------------------------------------------------------------- process */
.process { background: var(--blue); color: var(--white); }
.process .section-head__aside p { color: var(--tint); }
.process__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}
.process__step {
  /* 5%, not 8%: the lime label needs 4.5:1 against whatever this blends to,
     and the extra white pushed it to 4.33. The .18 border draws the card. */
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 28px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.process__step b { font-size: 14px; font-weight: 600; color: var(--lime); }
.process__step h3 { font-size: 26px; letter-spacing: -0.03em; margin-bottom: 10px; }
.process__step p { font-size: 15px; line-height: 1.55; color: var(--tint); }
.process__pricing {
  margin-top: 40px;
  padding-block: 32px;
  border-top: 1px solid rgba(255, 255, 255, .3);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 16px;
}

/* --------------------------------------------------------------- clients */
.client-tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.client-tiles li {
  flex: 0 0 236px;
  height: 104px;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.client-tiles img { max-height: 100%; width: auto; }

.case-cards { display: flex; flex-wrap: wrap; gap: 20px; }
.case-card {
  position: relative;
  flex: 1 1 520px;
  min-height: 420px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: var(--ink-2);
  color: var(--white);
}
.case-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 20, 27, .25) 0%, rgba(15, 20, 27, .55) 45%, rgba(15, 20, 27, .9) 100%);
}
.case-card__logo,
.case-card__body { position: relative; z-index: 1; }
.case-card__logo { align-self: flex-start; background: var(--white); padding: 14px 18px; }
.case-card__logo img { height: 42px; width: auto; }
.case-card__body { display: flex; flex-direction: column; gap: 18px; }
.case-card h3 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -0.03em; }
.case-card span { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }

/* --------------------------------------------------------------- testimonials */
.rv-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.rv-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: rv-scroll 60s linear infinite;
}
.rv-marquee:hover .rv-track,
.rv-track:focus-within { animation-play-state: paused; }
@keyframes rv-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 10px)); }
}

.rv-card {
  flex: 0 0 380px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* The marquee is one track with the cards listed twice, so the loop has no
   seam. The second set uses <p class="rv-card__title"> rather than another
   six <h3>s, which would put twelve identical headings in the document — so
   both have to be styled here, or half the carousel comes out unstyled. */
.rv-card h3,
.rv-card__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--blue);
}
.rv-card p { font-size: 16px; line-height: 1.6; flex: 1; }
.rv-card__author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.rv-card__who { display: flex; align-items: center; gap: 12px; }
.rv-card__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--blue);
}
.rv-card__name { display: block; font-size: 15px; font-weight: 600; }
.rv-card__role { display: block; font-size: 14px; color: var(--grey); }
.rv-card__src { font-size: 13px; color: var(--grey); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .rv-marquee { overflow-x: auto; }
  .rv-track { animation: none; }
}

/* --------------------------------------------------------------- blog */
.blog { display: flex; flex-wrap: wrap; gap: 20px; }
.blog__feature {
  flex: 1 1 520px;
  background: var(--ink);
  color: var(--white);
  padding: 40px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.blog__feature h3 { font-size: clamp(28px, 2.8vw, 38px); line-height: 1.15; letter-spacing: -0.03em; }
.blog__feature p { color: #c4cbd6; max-width: 480px; }
.blog__meta { display: flex; gap: 14px; font-size: 14px; }
.blog__meta b { font-weight: 600; color: var(--lime); }
.blog__list { flex: 1 1 520px; display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.blog__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}
.blog__item .blog__meta b { color: var(--blue); }
.blog__item .blog__meta span { color: var(--grey); }
.blog__item-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.blog__item h3 { font-size: 26px; line-height: 1.25; letter-spacing: -0.02em; }
.blog__item-row svg { color: var(--blue); margin-top: 6px; flex: none; }

/* --------------------------------------------------------------- faq */
.faq__inner { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.faq__aside { flex: 1 1 360px; display: flex; flex-direction: column; gap: 22px; }
.faq__list { flex: 2 1 560px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding-block: 22px; }
/* Block, not flex: the question is a bare text node, so under flex it became
   an anonymous item that would not shrink, and the "+" was pushed past the
   edge — 3px of sideways scroll on the whole page at 390px. The marker is
   taken out of flow instead, and the text wraps on its own. */
.faq summary {
  position: relative;
  padding-right: 34px;
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  top: -2px;
  right: 0;
  color: var(--blue);
  font-size: 26px;
  line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 14px; font-size: 16px; color: var(--grey); max-width: 660px; }

/* --------------------------------------------------------------- cta */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}
.cta__waves { position: absolute; left: 0; top: 0; width: 100%; height: 420px; pointer-events: none; }
.cta__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  padding-top: 112px;
  padding-bottom: 96px;
}
.cta__copy { flex: 1 1 560px; display: flex; flex-direction: column; gap: 22px; }
.cta__copy h2 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -0.045em; }
.cta__copy h2 span { color: var(--lime); }
.cta__aside { flex: 0 1 380px; display: flex; flex-direction: column; gap: 22px; }
.cta__aside p { color: #c4cbd6; }
.cta__points { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: #a9b2c0; }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: #c4cbd6; border-top: 1px solid var(--dark-line); }
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
  padding-top: 64px;
  padding-bottom: 32px;
}
.site-footer__brand { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; }
.site-footer__brand img { height: 40px; width: auto; }
.site-footer__brand p { font-size: 15px; max-width: 320px; }
.site-footer__col { flex: 0 1 180px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.site-footer__col h2 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8c96a6;
  margin-bottom: 4px;
}
.site-footer__bottom {
  padding-top: 22px;
  padding-bottom: 32px;
  border-top: 1px solid var(--dark-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: #8c96a6;
}
.site-footer__bottom nav { display: flex; gap: 22px; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
  :root { --section-y: 88px; }
  .founder { padding: 48px 32px; }
  .testimonials__aside, .testimonials__main { padding: 56px 32px; }
}

@media (max-width: 860px) {
  :root { --gutter: 20px; --section-y: 72px; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding-inline: 14px;
    border: 1.5px solid var(--ink);
    background: none;
    font-weight: 600;
    cursor: pointer;
  }
  .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-bottom: 8px;
  }
  .nav.is-open { display: flex; }
  .nav > a { padding-block: 10px; }
  .nav .btn { justify-content: center; margin-top: 8px; }

  /* dropdowns become in-flow accordions */
  .nav__item { display: block; }
  .nav__trigger { width: 100%; justify-content: space-between; padding-block: 10px; }
  .nav__menu,
  .nav__menu--mega {
    position: static;
    width: auto;
    max-width: none;
    padding: 0;
    border: none;
    border-left: 2px solid var(--line-2);
    border-radius: 0;
    box-shadow: none;
    margin-left: 2px;
  }
  .nav__menu::before { display: none; }
  .menu__in { display: block; padding: 4px 0 10px 14px; }
  .menu__cols { flex-direction: column; gap: 14px; }
  .menu__col a { padding: 8px 0; }
  .menu__stat { display: none; }   /* the panel's selling card has no place in a phone menu */

  .lead-form { aspect-ratio: auto; min-height: 420px; }
  .lead-form__fields { grid-template-columns: 1fr; }
  .hero__waves { display: none; }
  .stack-strip__inner { gap: 16px 24px; }
  .stack-strip img { height: 34px; }

  .case-card { min-height: 340px; }
  .client-tiles li { flex: 1 1 140px; height: 84px; }
  .blog__feature { padding: 28px; }
  .rv-card { flex-basis: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ============================================================ first screen
   Small or short windows: header + hero + logo strip are sized to fit one
   window, so the form, its button and the logos are never cut off.
   --header-h is measured by main.js. */
@media (max-width: 1439px), (max-height: 899px) {
  .hero { padding-top: clamp(18px, 4vh, 56px); }
  .hero__title {
    margin-top: clamp(10px, 2.2vh, 20px);
    font-size: clamp(40px, min(6vw, 8.4vh), 88px);
  }
  .hero__cols { gap: clamp(20px, 3vh, 40px); margin-top: clamp(18px, 3.6vh, 40px); }
  .hero__copy { gap: clamp(14px, 2.6vh, 28px); }
  .hero__copy p { font-size: clamp(16px, 1.9vh, 18px); }
  .lead-form { padding: clamp(14px, 1.8vh, 18px) 20px; max-height: 38vh; min-height: min-content; }
  .stack-strip { margin-top: clamp(18px, 3.4vh, 64px); }
  .stack-strip__inner { padding-block: clamp(14px, 2.4vh, 26px); }
}
@media (min-width: 861px) and (min-height: 560px) and (max-width: 1439px),
       (min-width: 861px) and (max-height: 899px) and (min-height: 560px) {
  .hero {
    display: flex;
    flex-direction: column;
    min-height: calc(100svh - var(--header-h, 87px));
  }
  .hero__inner { flex: 1; display: flex; flex-direction: column; justify-content: center; }
}

/* Short windows: trim the form's own spacing so its button is never clipped. */
@media (max-height: 700px) {
  .hero__title { font-size: clamp(34px, min(6vw, 7.2vh), 88px); }
  .stack-strip img { max-height: 40px; }
  .lead-form { gap: 8px; aspect-ratio: auto; max-height: none; }
  .lead-form__chips { gap: 5px; }
  .chip { min-height: 34px; padding-inline: 10px; }
  .lead-form__foot .btn--sm,
  .lead-form__foot .btn-ghost { min-height: 34px; }
  .lead-form__head { margin-bottom: 2px; }
}

/* ===================================================== footer (v2, dark block) */
.site-footer { padding: 0; background: #161d27; }
.ft {
  position: relative; overflow: hidden; border-radius: 28px;
  background: var(--ink); color: #e8ebf0; padding: 56px 0 32px;
}
.ft::before {
  content: ""; position: absolute; right: -200px; top: -80px; width: 620px; height: 620px;
  border-radius: 50%; background: radial-gradient(circle, rgba(37,71,244,.30), transparent 62%); pointer-events: none;
}
.ft::after {
  content: ""; position: absolute; left: -200px; bottom: -260px; width: 560px; height: 560px;
  border-radius: 50%; background: radial-gradient(circle, rgba(212,240,107,.10), transparent 62%); pointer-events: none;
}
.ft > .container { position: relative; z-index: 1; }
.ft a { color: inherit; text-decoration: none; }
.ft ul { list-style: none; margin: 0; padding: 0; }
.ft-arr { flex: none; transition: transform .2s ease; }
.ft .btn:hover .ft-arr { transform: translate(2px, -2px); }

.ft-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 36px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.ft-cta .ft-kicker { margin-bottom: 0; }
.ft .btn--white { color: var(--ink); }
.ft-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-size: 14px; color: #9aa4b2; }
.ft-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 4px rgba(212,240,107,.18); }
.ft-cta h2 {
  margin: 0 0 18px; max-width: 720px; color: var(--white);
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(32px, 4.4vw, 58px); line-height: 1.05; letter-spacing: -0.04em;
}
.ft-mail {
  display: inline-flex; align-items: center; gap: 12px; padding-bottom: 6px;
  font-family: var(--font-head); font-size: clamp(21px, 2.6vw, 32px); letter-spacing: -0.025em;
  color: var(--blue-light); border-bottom: 1px solid rgba(255,255,255,.18);
  transition: color .2s, border-color .2s;
}
.ft-mail:hover { color: var(--white); border-color: var(--white); }
.ft-mail-arr { font-size: .7em; transition: transform .2s; }
.ft-mail:hover .ft-mail-arr { transform: translate(3px, -3px); }
.ft-cta-side { display: grid; justify-items: end; gap: 10px; }
.ft-reply { font-size: 13px; color: #9aa4b2; }
.btn--white { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--white:hover { background: #e8ebf0; border-color: #e8ebf0; }

.ft-grid { display: grid; grid-template-columns: 1.6fr .9fr .9fr .9fr 1fr; gap: 48px 40px; padding: 56px 0; }
.ft-logo img { height: 34px; width: auto; display: block; }
.ft-brand p { margin: 20px 0 24px; max-width: 340px; font-size: 15px; line-height: 1.6; color: #9aa4b2; }
.ft-social { display: flex; flex-wrap: wrap; gap: 8px; }
.ft-social a {
  display: inline-flex; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 13px;
  color: #e8ebf0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  transition: background .2s, border-color .2s;
}
.ft-social a:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }

.ft-h { margin: 0 0 20px; font-family: var(--font-head); font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: #9aa4b2; }
.ft-col ul { display: grid; gap: 12px; }
.ft-col ul a { position: relative; display: inline-flex; font-size: 15px; color: #e8ebf0;
  transition: color .2s, transform .2s; }
.ft-col ul a::before {
  content: ""; position: absolute; left: -14px; top: 50%; width: 6px; height: 6px; margin-top: -3px;
  border-radius: 50%; background: var(--lime); opacity: 0; transform: scale(.4);
  transition: opacity .2s, transform .2s;
}
.ft-col ul a:hover { color: var(--white); transform: translateX(6px); }
.ft-col ul a:hover::before { opacity: 1; transform: scale(1); }
.ft-office address { font-style: normal; font-size: 15px; line-height: 1.6; color: #e8ebf0; }
.ft-addr { color: inherit; text-decoration: none; }
.ft-addr:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.ft-time { display: flex; align-items: center; gap: 10px; margin: 18px 0; font-size: 14px; color: #9aa4b2; }
.ft-time b { color: var(--white); font-weight: 500; font-variant-numeric: tabular-nums; }
.ft-hire { display: inline-flex; gap: 6px; font-size: 14px; color: var(--blue-light); }
.ft-hire:hover { color: var(--white); }

.ft-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px; color: #9aa4b2;
}
.ft-legal { display: flex; gap: 20px; }
.ft-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.ft-bottom a:hover { color: var(--white); }
.ft-top {
  display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14); background: none; color: #e8ebf0;
  font: inherit; font-size: 13px; cursor: pointer; transition: background .2s;
}
.ft-top:hover { background: rgba(255,255,255,.08); }

@media (max-width: 1100px) { .ft-grid { grid-template-columns: 1.4fr 1fr 1fr; } .ft-brand { grid-column: 1 / -1; } }
@media (max-width: 860px) {
  .ft { padding: 48px 0 24px; }
  .ft-cta-side { justify-items: start; }
  .ft-grid { gap: 36px 24px; padding: 40px 0; }
}
@media (max-width: 560px) { .ft-grid { grid-template-columns: 1fr 1fr; } .ft-office { grid-column: 1 / -1; } }

/* ------------------------------------------------- corecturi homepage */
/* Statisticile: dt-urile au marimi diferite (52px vs 38px la "UK · EU · US"),
   deci etichetele dd nu se aliniau. Cutie de inaltime egala, text pe aceeasi linie. */
.stats dt { display: flex; align-items: flex-end; min-height: 56px; line-height: 1.02; }

/* Logoul Uptalen langa numele fondatorului */
.founder__quote cite { display: flex; align-items: center; gap: 12px; }
.founder__mark { height: 20px; width: auto; flex: none; opacity: .85; }
.founder__name { display: block; }

/* Clonele din marquee-ul de recenzii: titlul clonat nu mai e heading */

/* ------------------------------------------------------- cookie consent */
.ck {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 120;
  display: flex; justify-content: flex-start; pointer-events: none;
  opacity: 0; transform: translateY(12px); transition: opacity .24s ease, transform .24s ease;
}
.ck.is-in { opacity: 1; transform: none; }
.ck__card {
  pointer-events: auto; width: min(460px, 100%);
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 48px rgba(15,20,27,.16);
  padding: 20px 22px; max-height: calc(100vh - 40px); overflow-y: auto;
}
.ck__title { margin: 0 0 6px; font-weight: 600; font-size: 15px; }
.ck__text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--grey); }
.ck__text a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.ck__opts { margin-top: 16px; display: grid; gap: 12px; border-top: 1px solid var(--line-2); padding-top: 16px; }
.ck__opt { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; cursor: pointer; }
.ck__opt input { margin-top: 3px; flex: 0 0 auto; accent-color: var(--blue); width: 16px; height: 16px; }
.ck__opt b { display: block; font-weight: 600; font-size: 14px; color: var(--ink); }
.ck__opt span { color: var(--grey); }
.ck__opt--locked { cursor: default; opacity: .72; }
.ck__acts { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ck__acts .btn { padding: 10px 16px; font-size: 14px; }
.ck__link {
  background: none; border: 0; padding: 6px 2px; font: inherit; font-size: 14px;
  color: var(--grey); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.ck__link:hover { color: var(--ink); }
.ck__save { margin-left: auto; }
@media (max-width: 560px) {
  .ck { left: 12px; right: 12px; bottom: 12px; }
  .ck__card { padding: 18px; }
  .ck__acts .btn { flex: 1 1 auto; justify-content: center; }
  .ck__save { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ck { transition: none; transform: none; }
}
.ft-ck { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: #9aa4b2;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ft-ck:hover { color: var(--white); }

/* ----------------------------------------- mobile: tighten vertical rhythm
   At 390px the old values left 144px of empty space between every two
   sections and a footer 1443px tall — nearly two screens. The desktop rhythm
   does not transfer: with one column, the same padding reads as a gap rather
   than as breathing room. */
@media (max-width: 620px) {
  :root { --section-y: 52px; }
  .section--tight { padding-block: 44px; }
  .cta-band--xl { padding-block: 60px; }
  .cta-band { padding-block: 56px; }
  .about-statement { padding-block: 56px; }
  .about-band { padding-block: 40px; }

  /* footer: the link lists are the bulk of its height */
  .ft-grid { gap: 28px 24px; padding: 34px 0; }
  .ft-h { margin-bottom: 13px; }
  .ft-col ul { gap: 9px; }
  .ft-brand p { margin: 14px 0 18px; }
  .ft-time { margin: 12px 0; }
  .ft-bottom { padding-top: 18px; gap: 12px 24px; }
}
@media (max-width: 560px) {
  /* Office used to span the full width, which left the Company column alone on
     its own row with the other half empty — about 200px of nothing. Side by
     side instead; the address wraps, which is fine for two short lines. */
  .ft-office { grid-column: auto; }
  .ft-office address { font-size: 14px; }
}
