/* ==========================================================================
   Clickio homepage — hand-built recreation (pilot for Tilda migration)
   Semantic HTML5 + fl/grid + custom-property design tokens, mobile-first.
   ========================================================================== */

:root {
  --navy: #0D1240;            /* dark navy — headings, CTA titles */
  --navy-section: #283975;    /* primary navy — section backgrounds, body copy */
  --coral: #EB6868;           /* big section headings on light/navy bg */
  --red: #DD4242;             /* filled CTA buttons */
  --red-dark: #C93A3A;
  --green: #00AD98;
  --link: #202A7A;
  --bg: #FFFFFF;
  --tint: #F0F4F8;
  --border: #DFE2EA;
  --text: #0D1240;
  --body: #283975;
  --muted: #6A7086;
  --review-navy: #172940;    /* testimonial title/body navy */
  --footer-bg: #102A43;      /* dark navy footer */
  --footer-link: #D9E2EC;    /* footer link text */
  /* product-block gradient header — measured on live (identical for all 3) */
  --grad-head: linear-gradient(289.44deg, #CF3A41 3%, #341F71 86%, #300957 100%);
  --radius-pill: 60px;
  --radius-card: 20px;
  --wrap: 1200px;
  --gutter: 24px;
  /* fallback approximation only — the hero uses the baked raster gradient (img/hero-bg.png) */
  --hero-grad:
    radial-gradient(80% 120% at 78% 55%, #e11b2e 0%, #b31536 34%, #5a2a63 66%, #2b2668 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* Tilda's tilda-grid-3.0.min.css loads AFTER this file and contains
   `*,*:before,*:after{box-sizing:content-box}`. Being an equal-specificity
   universal selector loaded later, it overrides the border-box reset above for
   ALL of our custom content, turning our `.wrap` (width:100% + 18px side
   padding) into a 36px-wide overflow (390 -> 426) on mobile. Re-assert
   border-box for our own content only: `main *` (specificity 0,0,2) outranks
   Tilda's `*` (0,0,0) regardless of load order, while the Tilda header/footer
   outside <main> — which are authored for content-box — stay untouched. */
main, main *, main *::before, main *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

.section { padding: 64px 0; }
.section--tint { background: var(--tint); }

.section-title {
  text-align: center;
  font-size: clamp(30px, 4.6vw, 62px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--coral);
  margin-bottom: 40px;
}
.section-sub {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--body);
}

/* -------------------------------------------------------------- buttons */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s ease, box-shadow .15s ease, color .15s ease;
}
.pill-btn--lg { padding: 15px 40px; }
/* nav pills: 100×42, radius 60 */
.pill-btn--nav { min-width: 100px; height: 42px; padding: 0 20px; }
/* hero pills: radius 30, height 55 */
.pill-btn--hero { border-radius: 30px; height: 55px; padding: 0 34px; }
.pill-btn--red { background: var(--red); color: #fff; border-color: var(--red); }
.pill-btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); box-shadow: 0 8px 22px rgba(221,66,66,.35); }
.pill-btn--ghost { border-color: rgba(255,255,255,.85); color: #fff; }
.pill-btn--ghost:hover { background: rgba(255,255,255,.12); }
.pill-btn--white { background: #FEFEFE; color: var(--red); border-color: #FEFEFE; }
.pill-btn--white:hover { box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.pill-btn--outline { border-color: var(--red); color: var(--red); background: transparent; }
.pill-btn--outline:hover { background: var(--red); color: #fff; }

/* --------------------------------------------------------------- header */
.site-header {
  /* live header is a fixed bar with its own navy background (see the
     hand-written pin CSS in the Tilda header page), not a hero overlay */
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--navy);
}
body { padding-top: 82px; }
.site-header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 82px;
}
.brand-logo { flex: none; line-height: 0; }
.brand-logo img { width: 150px; height: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}
.site-nav > a {
  color: #F0F4F8;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}
.site-nav > a:hover { color: #fff; }
.site-nav-actions { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.45);
  color: #fff;
  border-radius: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px; font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.lang-btn img { filter: brightness(0) invert(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 9px;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------------- hero */
.hero {
  background-color: #2b2668;
  /* --hero-grad paints a matching gradient under the art while it loads */
  background-image: url("/img/hero-bg.png"), var(--hero-grad);
  background-size: cover;
  background-position: center right;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 546px 1fr;
  gap: 48px;
  align-items: center;
  min-height: 920px;
  padding: 96px var(--gutter) 84px;
}
.hero h1 {
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.hero h1 em { display: block; font-style: normal; color: var(--coral); }
.hero-sub {
  font-size: 20px;
  line-height: 1.55;
  color: #fff;
  max-width: 420px;
  margin-bottom: 32px;
}
.hero-badges {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 34px;
}
.hero-badges img { width: auto; display: block; }
.hero-cta { display: flex; gap: 18px; flex-wrap: wrap; }

.hero-visual { position: relative; align-self: center; }
.hero-devices { width: 118%; max-width: none; height: auto; }
.hero-video {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: var(--navy);
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 24px 50px rgba(10,12,40,.28);
  max-width: 700px;
  margin: -20px 0 0 -80px;
  position: relative;
}
.hero-video-thumb { position: relative; flex: none; line-height: 0; }
.hero-video-thumb > img { width: 248px; height: 138px; object-fit: cover; border-radius: 10px; display: block; }
.hero-video-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  border: 2.5px solid #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
  display: grid; place-items: center;
}
.hero-video-play img { width: 16px; height: 19px; margin-left: 3px; }
.hero-video-text { font-size: 18px; line-height: 1.45; color: var(--navy); }
.hero-video-text strong { display: block; font-size: 24px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }

/* ------------------------------------------------------------- services */
.services { background: var(--tint); padding: 82px 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 277px);
  justify-content: center;
  gap: 22px;
  margin: 0 auto;
}
.service-card {
  background: #fff;
  border-radius: 24px;
  padding: 26px 20px 22px;
  min-height: 271px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  text-decoration: none;
  color: var(--navy);
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.22); }
.service-art { flex: 1; display: grid; place-items: center; width: 100%; }
.service-art img { max-width: 190px; max-height: 150px; width: auto; height: auto; }
.service-card h3 { font-size: 24px; font-weight: 700; color: var(--navy); margin-top: 8px; }

/* ------------------------------------------------ press / partner strips */
.press { padding: 44px 0 40px; }
.partners { padding: 44px 0; background: var(--tint); }
.press-label {
  text-align: center;
  color: var(--coral);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 40px;
}

/* --- press "As seen in" carousel --- */
.press-carousel { display: flex; align-items: center; gap: 8px; }
.press-viewport { overflow: hidden; flex: 1; }
.press-track {
  list-style: none;
  display: flex;
  align-items: center;
  transition: transform .4s ease;
}
.press-track > li {
  flex: 0 0 25%;
  display: grid;
  place-items: center;
  padding: 0 24px;
  min-height: 90px;
}
.press-track img { max-height: 46px; max-width: 100%; width: auto; object-fit: contain; }
.press-arrow {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid #D9DEE6;
  background: #fff;
  color: #7A8194;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.press-arrow:hover { border-color: var(--red); color: var(--red); }
.press-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.press-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0;
  background: #D3D7DF; cursor: pointer; padding: 0;
  transition: background .15s;
}
.press-dots button[aria-current="true"] { background: #1a1a1a; }

/* --- selected partners strip (section 07) — full colour, divided --- */
.partners-logos {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.partners-logos li {
  display: grid;
  place-items: center;
  padding: 0 20px;
  min-height: 40px;
}
.partners-logos li + li { border-left: 1px solid #C9D2DE; }
.partners-logos img { max-height: 28px; max-width: 190px; width: auto; object-fit: contain; }

/* -------------------------------------------------------- compare table */
.compare { background: var(--tint); }
.compare-title { margin-bottom: 20px; }
.compare .section-sub { color: var(--body); max-width: 860px; margin-bottom: 40px; }
.compare-card { max-width: 860px; margin: 0 auto; }

/* three-tab pill bar */
/* Live (t395) is a JOINED segmented bar: square segments with straight 1px
   #C7C7C7 dividers, rounding only on the outer ends (via the container),
   active segment solid navy. Per-tab radius would curve the dividers and
   detach the active tab into a floating pill. */
.compare-tabs {
  display: flex;
  background: #fff;
  border: 1px solid #C7C7C7;
  border-radius: 30px;
  overflow: hidden;
  margin-bottom: 22px;
}
.compare-tab {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 14px 22px;
  font-family: inherit;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 400;
  color: var(--navy);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.compare-tab + .compare-tab { border-left: 1px solid #C7C7C7; }
.compare-tab.is-active { background: var(--navy); color: #fff; font-weight: 600; border-left-color: var(--navy); }

/* white table card */
.compare-table-wrap {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 22px 50px rgba(13,18,64,.06);
  padding: 34px 40px 26px;
}
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 14px 8px; text-align: center; }
.compare-table thead th {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: 20px;
}
.compare-table thead .compare-cat { text-align: left; }
.compare-table tbody td:first-child {
  text-align: left;
  font-size: 16px;
  font-weight: 400;
  color: var(--body);
  padding-right: 20px;
}
.compare-table tbody tr { border-top: 1px solid #EEF1F6; }
.compare-table tbody tr:first-child { border-top: 0; }
.compare-table td.col-mark, .compare-table th.col-mark { width: 130px; }
.mark { width: 35px; height: 35px; display: inline-block; }
.compare-cta { text-align: center; padding: 30px 0 8px; }
.compare-dots { display: flex; justify-content: center; gap: 9px; margin-top: 18px; }
.compare-dots span { width: 9px; height: 9px; border-radius: 50%; background: #C7CDD8; }
.compare-dots span.is-active { background: var(--navy); }

/* ------------------------------------------------------ product sections */
.product.section--tint { background: var(--tint); }

/* gradient header card (identical gradient across the 3 blocks) */
.product-head {
  position: relative;
  background: var(--grad-head);
  border-radius: 45px;
  color: #fff;
  padding: 44px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  min-height: 216px;
}
.product-head-copy { max-width: 640px; }
.product-head h2 { font-size: clamp(30px, 4.6vw, 62px); line-height: 1.05; font-weight: 700; margin-bottom: 12px; }
.product-head p { font-size: 20px; line-height: 1.4; max-width: 600px; }
.product-head-illus { flex: none; width: 300px; max-width: 40%; height: auto; }

/* feature cards + illustration bodies */
.product-body { padding: 46px 0 8px; display: flex; gap: 44px; align-items: center; }
.product-body--split { align-items: stretch; }
.feature-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.feature-list { flex: 1; display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.feature {
  background: var(--tint);
  border-radius: 22px;
  padding: 28px 30px;
}
.section--tint .feature { background: #fff; }
.feature h3 { font-size: 24px; line-height: 1.25; font-weight: 700; margin-bottom: 12px; color: var(--navy); }
.feature p { font-size: 16px; line-height: 1.5; color: var(--body); }
.feature .pill-btn { margin-top: 20px; }
.product-visual { flex: none; display: grid; place-items: center; }
.product-visual img { width: auto; max-height: 440px; object-fit: contain; }

/* monetization: 2x2 cards with phone floating right */
.mon-body { position: relative; }
.mon-body .feature-grid { padding-right: 300px; }
.mon-phone {
  position: absolute;
  right: 0; bottom: -40px;
  width: 300px; height: auto;
  pointer-events: none;
}

/* consent compliance badge strip */
.consent-badges {
  background: var(--tint);
  border-radius: 24px;
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.consent-badges img { height: 90px; width: auto; }
.consent-choose { text-align: center; margin-top: 28px; }

.product-actions { text-align: center; margin-top: 32px; }

@media (min-width: 861px) {
  .product-body--reverse { flex-direction: row; }
}

/* ------------------------------------------- trusted / review platforms */
.trust-panel {
  background: var(--tint);
  border-radius: 28px;
  padding: 56px 24px 60px;
  text-align: center;
}
.trust-panel .section-title { margin-bottom: 24px; }
.reviews-label { text-align: center; color: var(--navy); font-size: 24px; font-weight: 700; line-height: 1.2; margin: 0 0 28px; }
.reviews-badges { list-style: none; display: flex; justify-content: center; align-items: center; gap: 34px; flex-wrap: wrap; margin: 0; }
.reviews-badges img { height: 78px; width: auto; }

/* -------------------------------------------------------- testimonials */
.testimonials { padding-top: 40px; }
.slider { display: flex; align-items: center; gap: 30px; } /* live keeps 30px between button and card edge */
.slider-viewport { overflow: hidden; flex: 1; }
.slider-track {
  list-style: none;
  display: flex;
  transition: transform .4s ease;
}
.review {
  flex: 0 0 calc(33.3333% - 16px);
  margin-right: 24px;
  background: var(--tint);
  border-radius: 22px;
  padding: 34px 34px 38px;
}
.review-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.review-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--c, var(--navy));
  color: var(--ac, #fff);
  display: grid; place-items: center;
  font-weight: 600; font-size: 36px;
  flex: none;
}
.review-name { font-weight: 500; font-size: 20px; color: var(--navy); }
.review-src { font-size: 16px; color: rgba(13,18,64,.5); margin-bottom: 10px; }
.review-stars img { height: 26px; width: auto; }
.review-title { font-size: 20px; line-height: 1.3; font-weight: 600; margin: 20px 0 12px; color: var(--review-navy); }
.review-body { font-size: 16px; line-height: 1.4; color: var(--review-navy); }

.slider-arrow {
  flex: none;
  /* Live's swiper buttons are 40px circles, plain #d9d9d9 hairline, no shadow
     (30px on phones, below). The 46px + soft shadow we shipped first read
     heavier than the original and drew the eye. */
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: var(--navy);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.slider-arrow svg { width: 24px; height: 24px; }
/* Hover-capable pointers only: on touch, tapping leaves :hover stuck and the
   arrow sits inverted (navy) over the card until the next tap. */
@media (hover: hover) {
  .slider-arrow:hover { background: var(--navy); color: #fff; }
}
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.slider-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0;
  background: #C7CDDB; cursor: pointer; padding: 0;
}
.slider-dots button[aria-current="true"] { background: var(--red); }

/* ------------------------------------------------------------------ cta */
.cta { background: var(--tint); }
.cta-card {
  background: #fff;
  border-radius: 40px;
  text-align: center;
  padding: 48px 24px 60px;
}
.cta-rocket { width: 230px; height: auto; margin: 0 auto 8px; }
.cta-card h2 { font-size: clamp(24px, 5.2vw, 62px); line-height: 1.05; font-weight: 700; color: var(--navy); margin-bottom: 30px; }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--footer-bg); color: #fff; padding: 60px 0 30px; }
.site-footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer-brand img { width: 120px; height: auto; margin-bottom: 20px; }
.footer-mail { display: inline-block; color: var(--footer-link); text-decoration: none; font-size: 14px; margin-bottom: 18px; }
.footer-mail:hover { color: #fff; }
.footer-social { list-style: none; display: flex; gap: 12px; }
.footer-social img { width: 25px; height: 25px; opacity: .9; }
.footer-social a:hover img { opacity: 1; }
.footer-col h4 {
  font-size: 16px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 16px; color: #fff; line-height: 1.55;
}
.footer-col a { display: block; color: var(--footer-link); text-decoration: none; font-size: 14px; line-height: 2; }
.footer-col a:hover { color: #fff; }

.footer-payments {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  margin-top: 46px; padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer-payments h4 { font-size: 16px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #fff; }
.footer-payments ul { list-style: none; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-payments img { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.footer-payments img.pay-natural { filter: none; border-radius: 5px; }
.footer-legal { margin-top: 26px; font-size: 13px; color: #8E95BE; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .site-footer-inner { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 860px) {
  .site-header-inner { height: 60px; }
  body { padding-top: 60px; }
  .brand-logo img { width: 108px; }
  .site-nav {
    position: fixed;
    inset: 60px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy);
    padding: 12px 24px 28px;
    border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 20px 40px rgba(0,0,0,.3);
    transform: translateY(-120%);
    transition: transform .25s ease;
    margin-left: 0;
  }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav > a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav-actions { display: flex; gap: 12px; margin-top: 18px; }
  .site-nav-actions .pill-btn { flex: 1; }
  .header-actions .pill-btn, .lang-btn { display: none; }
  .nav-toggle { display: flex; }

  .hero-inner { display: flex; flex-direction: column; gap: 24px; min-height: 0; padding: 84px var(--gutter) 52px; text-align: left; }
  .hero-copy { display: contents; }
  .hero h1 { order: 1; font-size: 34px; line-height: 1.1; margin-bottom: 0; }
  .hero h1 em { font-size: 36px; }
  .hero-sub { order: 2; font-size: 15px; max-width: none; margin-bottom: 0; }
  .hero-badges { order: 3; width: 100%; gap: 12px; justify-content: space-between; padding: 16px; margin-bottom: 0; }
  .hero-badges img { height: 30px !important; }
  .hero-visual { order: 4; }
  .hero-cta { order: 5; gap: 14px; }
  .hero-devices { display: none; }
  .hero-video { margin: 0; max-width: none; flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-video-thumb > img { width: 100%; height: auto; aspect-ratio: 16/9; }
  .hero-video-text strong { font-size: 18px; }
  .hero-video-text { font-size: 14px; }

  .services .section-title { font-size: 36px; line-height: 1.25; }
  .services-grid { grid-template-columns: minmax(0, 300px); }

  .product-head { flex-direction: column; align-items: flex-start; text-align: left; padding: 30px 26px 34px; border-radius: 30px; min-height: 0; }
  .product-head h2 { font-size: 30px; }
  .product-head p { font-size: 15px; }
  .product-head-illus { width: 80%; max-width: 300px; margin-top: 6px; align-self: center; }
  .product-body, .product-body--reverse { flex-direction: column; padding: 28px 0 0; }
  .feature-grid { grid-template-columns: 1fr; gap: 20px; }
  .mon-body .feature-grid { padding-right: 0; }
  .mon-phone { display: none; }
  .product-visual img { max-height: 360px; }
  .consent-badges { gap: 30px; padding: 24px; }
  .consent-badges img { height: 66px; }

  .compare-table-wrap { padding: 24px 18px 18px; }
  .compare-table thead th { font-size: 16px; }
  .compare-table td.col-mark, .compare-table th.col-mark { width: 70px; }
  .mark { width: 28px; height: 28px; }
  .trust-panel { padding: 40px 18px 44px; }
  .reviews-badges { gap: 20px; }
  .reviews-badges img { height: 56px; }

  .review { flex: 0 0 100%; margin-right: 24px; padding: 28px 24px 32px; }

  /* Overlay the arrows instead of flanking the viewport — in-flow they eat
     ~110px and squeeze the card so its text clips (live's swiper slides are
     full-width with overlaid arrows). */
  .slider { position: relative; gap: 0; }
  .slider-viewport { flex: 1 1 100%; }
  .slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  }
  /* Live centers each button ON the card edge (half in the gutter), so it
     never reaches the text; -8px left most of the button inside the card and
     over the copy. Offset = half the button width. */
  .slider-prev { left: -20px; }
  .slider-next { right: -20px; }
}

@media (max-width: 560px) {
  :root { --gutter: 18px; }
  .section { padding: 48px 0; }
  .compare-title { font-size: 24px; line-height: 1.2; }
  .partners-logos li { padding: 12px 18px; }
  .partners-logos li:nth-child(3) { border-left: 0; }
  .press-track img { max-height: 30px; }
  .compare-table tbody td:first-child { font-size: 12px; line-height: 1.4; }
  .compare-tab { font-size: 15px; padding: 12px 6px; }
  .site-footer-inner { grid-template-columns: 1fr; }
  /* Live's phone buttons: 30px circle, 16px glyph, still centered on the
     card edge (keep offset = half width or they creep back over the text). */
  .slider-arrow { width: 30px; height: 30px; }
  .slider-arrow svg { width: 16px; height: 16px; }
  .slider-prev { left: -15px; }
  .slider-next { right: -15px; }

  /* Pill buttons are `white-space: nowrap` by design, which is fine for the
     short EN labels but not for their translations: ES/IT/PT /monetization/
     pushed the page to 413/400/404px at a 390px viewport on labels like
     "Vea nuestros formatos de anuncios aquí". Let long labels wrap on phones
     and stay inside the gutter. Scoped to `.col-copy` (the inner-page copy
     columns, where every offender lives) on purpose: applying it to all pills
     also lets the buttons inside flex CTA rows — `.chero-cta`, `.ihero-cta` —
     shrink and wrap when they had room, which changed EN pages. Fixed-height
     variants aren't touched; a 2-line 14px label is ~34px and still fits.
     2026-08-04: same treatment extended, one scope at a time, to the three
     other places long translations broke out of the viewport — the careers
     panel on /about_us/ (IT/PT/ES ran the single-column `.careers-grid` up to
     452/532/390px, because grid `1fr` is `minmax(auto,1fr)` and the nowrap
     pill sets the row's min-content) and the two CTA rows on
     452/532/390px, because grid `1fr` is `minmax(auto,1fr)` and the nowrap
     pill sets the row's min-content) and the stacked CTA row at the foot of
     /consent/mobile-app/ (the ES outline label ran 369px wide inside a 284px
     button and pushed the page to 365px at 360px). Both of those are
     full-width block contexts on phones, so wrapping costs no layout.
     `.mhero-cta` is deliberately NOT in this list: its two pills are
     `flex: 1` on phones, i.e. 151px each at 360px, which is narrower than even
     the EN label — wrapping there put "Try now for free" on two lines on
     every locale. It stays nowrap and lets the label use its own padding. */
  .col-copy .pill-btn,
  .careers-copy .pill-btn,
  .mcta-actions .pill-btn { white-space: normal; text-align: center; max-width: 100%; }
}

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

:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

/* ==========================================================================
   Header offset for the inlined LIVE Tilda header
   The live header pins #rec142139778 (desktop navy bar, height 82px) via
   position:fixed (rec142139780 glue CSS). The mobile burger #rec142139779
   (t282) is also position:fixed (~60px bar). Both are removed from flow, so
   the page body needs top padding equal to the visible bar height. Our own
   old .site-header markup is gone; these rules replace body{padding-top:...}.
   Match points required: 1440 (82px) and 390 (60px).
   ========================================================================== */
body { padding-top: 82px; }              /* desktop navy bar (>=1200px) */
@media (max-width: 1199px) {
  body { padding-top: 60px; }            /* mobile burger bar appears */
}

/* ==========================================================================
   Video modal (clean, Tilda-free) — replaces the live t1013 popup
   ========================================================================== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;                       /* above the fixed header (99999) */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.video-modal.is-open { display: flex; }
.video-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .8);
  cursor: pointer;
}
.video-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 960px;
}
.video-modal__video {
  width: 100%;
  height: auto;
  max-height: 84vh;
  display: block;
  border-radius: 6px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.video-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 40px;
  line-height: 40px;
  cursor: pointer;
  opacity: .9;
}
.video-modal__close:hover { opacity: 1; }
@media (max-width: 560px) {
  .video-modal__close { top: -40px; font-size: 34px; }
}

/* ------------------------------------------------- narrow phones (<=360) */
/* The compare table's min-content width exceeds the 284px content column at
   320px viewports. Tighten paddings/columns to fit, and let the card scroll
   internally as a last resort instead of stretching the whole page. */
@media (max-width: 360px) {
  .compare-table-wrap { padding: 20px 12px 14px; overflow-x: auto; }
  .compare-table th, .compare-table td { padding: 12px 4px; }
  .compare-table thead th { font-size: 15px; }
  .compare-table td.col-mark, .compare-table th.col-mark { width: 56px; }
  .compare-table tbody td:first-child { padding-right: 8px; }
  .mark { width: 28px; height: 28px; }
}
