/* Clash Display */
@font-face {
  font-family: 'Clash Display';
  src: url('//cdn.fontshare.com/wf/VFMK2COV3DN37JR7JQ4CAOJPZ7KWKNY7/ODD5YJNDLHZZB2MIT3DPVH4EIHAMZ34D/BSY64LPTT3OPLVKAZKL3AHKRWZ3D74AC.woff2')
      format('woff2'),
    url('//cdn.fontshare.com/wf/VFMK2COV3DN37JR7JQ4CAOJPZ7KWKNY7/ODD5YJNDLHZZB2MIT3DPVH4EIHAMZ34D/BSY64LPTT3OPLVKAZKL3AHKRWZ3D74AC.woff')
      format('woff'),
    url('//cdn.fontshare.com/wf/VFMK2COV3DN37JR7JQ4CAOJPZ7KWKNY7/ODD5YJNDLHZZB2MIT3DPVH4EIHAMZ34D/BSY64LPTT3OPLVKAZKL3AHKRWZ3D74AC.ttf')
      format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Clash Display';
  src: url('//cdn.fontshare.com/wf/2GQIT54GKQY3JRFTSHS4ARTRNRQISSAA/3CIP5EBHRRHE5FVQU3VFROPUERNDSTDF/JTSL5QESUXATU47LCPUNHZQBDDIWDOSW.woff2')
      format('woff2'),
    url('//cdn.fontshare.com/wf/2GQIT54GKQY3JRFTSHS4ARTRNRQISSAA/3CIP5EBHRRHE5FVQU3VFROPUERNDSTDF/JTSL5QESUXATU47LCPUNHZQBDDIWDOSW.woff')
      format('woff'),
    url('//cdn.fontshare.com/wf/2GQIT54GKQY3JRFTSHS4ARTRNRQISSAA/3CIP5EBHRRHE5FVQU3VFROPUERNDSTDF/JTSL5QESUXATU47LCPUNHZQBDDIWDOSW.ttf')
      format('truetype');
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Clash Display';
  src: url('//cdn.fontshare.com/wf/FPDAZ2S6SW4QMSRIIKNNGTPM6VIXYMKO/5HNPQ453FRLIQWV2FNOBUU3FKTDZQVSG/Z3MGHFHX6DCTLQ55LJYRJ5MDCZPMFZU6.woff2')
      format('woff2'),
    url('//cdn.fontshare.com/wf/FPDAZ2S6SW4QMSRIIKNNGTPM6VIXYMKO/5HNPQ453FRLIQWV2FNOBUU3FKTDZQVSG/Z3MGHFHX6DCTLQ55LJYRJ5MDCZPMFZU6.woff')
      format('woff'),
    url('//cdn.fontshare.com/wf/FPDAZ2S6SW4QMSRIIKNNGTPM6VIXYMKO/5HNPQ453FRLIQWV2FNOBUU3FKTDZQVSG/Z3MGHFHX6DCTLQ55LJYRJ5MDCZPMFZU6.ttf')
      format('truetype');
  font-weight: 600;
  font-display: swap;
  font-style: normal;
}

/* General Sans */
@font-face {
  font-family: 'General Sans';
  src: url('//cdn.fontshare.com/wf/MFQT7HFGCR2L5ULQTW6YXYZXXHMPKLJ3/YWQ244D6TACUX5JBKATPOW5I5MGJ3G73/7YY3ZAAE3TRV2LANYOLXNHTPHLXVWTKH.woff2')
      format('woff2'),
    url('//cdn.fontshare.com/wf/MFQT7HFGCR2L5ULQTW6YXYZXXHMPKLJ3/YWQ244D6TACUX5JBKATPOW5I5MGJ3G73/7YY3ZAAE3TRV2LANYOLXNHTPHLXVWTKH.woff')
      format('woff'),
    url('//cdn.fontshare.com/wf/MFQT7HFGCR2L5ULQTW6YXYZXXHMPKLJ3/YWQ244D6TACUX5JBKATPOW5I5MGJ3G73/7YY3ZAAE3TRV2LANYOLXNHTPHLXVWTKH.ttf')
      format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'General Sans';
  src: url('//cdn.fontshare.com/wf/3RZHWSNONLLWJK3RLPEKUZOMM56GO4LJ/BPDRY7AHVI3MCDXXVXTQQ76H3UXA63S3/SB2OEB6IKZPRR6JT4GFJ2TFT6HBB6AZN.woff2')
      format('woff2'),
    url('//cdn.fontshare.com/wf/3RZHWSNONLLWJK3RLPEKUZOMM56GO4LJ/BPDRY7AHVI3MCDXXVXTQQ76H3UXA63S3/SB2OEB6IKZPRR6JT4GFJ2TFT6HBB6AZN.woff')
      format('woff'),
    url('//cdn.fontshare.com/wf/3RZHWSNONLLWJK3RLPEKUZOMM56GO4LJ/BPDRY7AHVI3MCDXXVXTQQ76H3UXA63S3/SB2OEB6IKZPRR6JT4GFJ2TFT6HBB6AZN.ttf')
      format('truetype');
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'General Sans';
  src: url('//cdn.fontshare.com/wf/K46YRH762FH3QJ25IQM3VAXAKCHEXXW4/ISLWQPUZHZF33LRIOTBMFOJL57GBGQ4B/3ZLMEXZEQPLTEPMHTQDAUXP5ZZXCZAEN.woff2')
      format('woff2'),
    url('//cdn.fontshare.com/wf/K46YRH762FH3QJ25IQM3VAXAKCHEXXW4/ISLWQPUZHZF33LRIOTBMFOJL57GBGQ4B/3ZLMEXZEQPLTEPMHTQDAUXP5ZZXCZAEN.woff')
      format('woff'),
    url('//cdn.fontshare.com/wf/K46YRH762FH3QJ25IQM3VAXAKCHEXXW4/ISLWQPUZHZF33LRIOTBMFOJL57GBGQ4B/3ZLMEXZEQPLTEPMHTQDAUXP5ZZXCZAEN.ttf')
      format('truetype');
  font-weight: 600;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: normal;
  font-display: swap;
  src: url(/casestudies-assets/teerival/fonts/gfont_zYXGKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1swZSAXcomDVmadSD6llzAA.ttf)
    format('truetype');
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: normal;
  font-display: swap;
  src: url(/casestudies-assets/teerival/fonts/gfont_zYXGKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1swZSAXcomDVmadSDNF5zAA.ttf)
    format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/casestudies-assets/teerival/fonts/gfont_UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfMZg.ttf)
    format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/casestudies-assets/teerival/fonts/gfont_UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuFuYMZg.ttf)
    format('truetype');
}

@font-face {
  font-family: 'Mona Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: normal;
  font-display: swap;
  src: url(/casestudies-assets/teerival/fonts/gfont_o-0mIpQmx24alC5A4PNB6Ryti20_6n1iPHjcz6L1SoM-jCpoiyDPA99d.ttf)
    format('truetype');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/casestudies-assets/teerival/fonts/gfont_pxiEyp8kv8JHgFVrFJA.ttf)
    format('truetype');
}

/* TeeRival Styles */
/* =========================================================
   TeeRival case study — MaxLevels
   Design tokens mapped from Figma (file 1SGPLamC7q2jQvijp19OUM)
   ========================================================= */

:root {
  /* ---- colour ---- */
  --ink: #150d37;
  --body: #3b5068;
  --white: #ffffff;
  --grey-1: #f6f8fb;
  --border: #eaecf4;
  --border-strong: #dcdcdc;

  --purple: #652df5;
  --purple-2: #6025f5;
  --purple-soft: #9d81f0;
  --magenta: #e40cd3;
  --coral: #ff5555;
  --orange: #f77a1f;

  --tint-cyan: #e9f7fa;
  --tint-peach: #fcefe9;
  --tint-lime: #f4f7eb;
  --tint-rose: #f8ecee;

  --ink-deep: #0c1813;
  --table-dark: #22124b;

  --w-purple: #8958af;
  --w-teal: #25adcc;
  --w-green: #22c17b;
  --w-red: #e90000;
  --w-line: #e5e5e5;

  /* ---- gradients ---- */
  --grad-brand: linear-gradient(
    90deg,
    #6025f5 0%,
    #e40cd3 49.519%,
    #ff5555 100%
  );
  --grad-cta-btn: linear-gradient(
    90deg,
    #ff5555 0%,
    #e40cd3 50.481%,
    #f57825 100%
  );
  --grad-cta: linear-gradient(90deg, #6025f5 0%, #9d81f0 100%);
  --grad-green: linear-gradient(180deg, #047857 0%, #68ca8c 100%);
  --grad-cyan: linear-gradient(180deg, #0891b2 0%, #77c8d2 100%);
  --grad-violet: linear-gradient(180deg, #6025f5 0%, #9d81f0 100%);
  --grad-orange: linear-gradient(90deg, #f97316 0%, #e9a660 100%);

  /* ---- type ---- */
  --font-display: 'Clash Display', 'Helvetica Neue', Helvetica, Arial,
    sans-serif;
  --font-ui: 'Mona Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-alt: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-widget: 'IBM Plex Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* ---- radii ---- */
  --r-lg: 34px;
  --r-md: 14px;
  --r-sm: 16px;
  --r-pill: 100px;
  --r-stat: 27.2px;

  /* ---- shadows (from Figma layered drop-shadows) ---- */
  --shadow-card: 90px 97px 18.5px rgba(186, 186, 186, 0),
    58px 62px 17px rgba(186, 186, 186, 0.01),
    32px 35px 14.5px rgba(186, 186, 186, 0.03),
    14px 15px 10.5px rgba(186, 186, 186, 0.06),
    4px 4px 6px rgba(186, 186, 186, 0.06);
  --shadow-widget: 88px 166px 26.5px rgba(0, 0, 0, 0),
    56px 106px 24px rgba(0, 0, 0, 0.01), 32px 60px 20.5px rgba(0, 0, 0, 0.05),
    14px 27px 15px rgba(0, 0, 0, 0.09), 4px 7px 8.5px rgba(0, 0, 0, 0.1);

  /* ---- layout ---- */
  --gutter: clamp(20px, 7.8125vw, 150px);
  --gutter-wide: clamp(20px, 4.7917vw, 92px);
  --shell: 1920px;

  /* ---- spacing scale (Figma 100 / 80 / 50 / 40 / 24 / 16) ---- */
  --sp-100: clamp(56px, 5.2083vw, 100px);
  --sp-80: clamp(40px, 4.1667vw, 80px);
  --sp-50: clamp(30px, 2.6042vw, 50px);
  --sp-40: clamp(20px, 2.0833vw, 40px);
  --sp-30: clamp(18px, 1.5625vw, 30px);
  --sp-24: clamp(16px, 1.25vw, 24px);
  --sp-20: clamp(14px, 1.0417vw, 20px);
  --sp-16: clamp(12px, 0.8333vw, 16px);
}

/* =========================================================
   Base
   ========================================================= */

.teerival-wrapper-main {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  display: flow-root;
}

.teerival-wrapper-main img {
  max-width: 100%;
  display: block;
  border: 0;
}

.teerival-wrapper-main a {
  color: inherit;
  text-decoration: none;
}

.teerival-wrapper-main ul,
.teerival-wrapper-main ol,
.teerival-wrapper-main dl,
.teerival-wrapper-main dd {
  margin: 0;
  padding: 0;
  list-style: none;
}

.teerival-wrapper-main h1,
.teerival-wrapper-main h2,
.teerival-wrapper-main h3,
.teerival-wrapper-main h4,
.teerival-wrapper-main p {
  margin: 0;
}

.teerival-wrapper-main button,
.teerival-wrapper-main input {
  font: inherit;
}

.teerival-wrapper-main :where(a, button, input, label):focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}

.teerival-wrapper-main .page {
  padding-top: 100px;
}

.teerival-wrapper-main .shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.teerival-wrapper-main .shell--wide {
  padding-inline: var(--gutter-wide);
}

/* ---- shared type ---- */
.teerival-wrapper-main .h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 3.4375vw, 66px);
  line-height: 1.2;
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
}

.teerival-wrapper-main .h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 2.6042vw, 50px);
  line-height: 1.28;
  color: var(--ink);
}

.teerival-wrapper-main .h2--center {
  text-align: center;
  width: 100%;
}

.teerival-wrapper-main .h2--stack {
  max-width: 800px;
}

.teerival-wrapper-main .accent {
  color: var(--orange);
}

.teerival-wrapper-main .accent--strong {
  font-family: var(--font-display);
  font-weight: 500;
}

.teerival-wrapper-main .reg {
  font-weight: 400;
}

/* =========================================================
   Header
   ========================================================= */
.teerival-wrapper-main .site-header {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 12px var(--gutter-wide);
  background: var(--white);
  backdrop-filter: blur(2.5px);
}

.teerival-wrapper-main .brand {
  flex: 0 0 auto;
}

.teerival-wrapper-main .brand__logo {
  display: block;
  width: 123px;
  height: 44px;
  -webkit-mask: url('/casestudies-assets/teerival/img/svg/teerival-icon-arrow.svg')
    no-repeat center/contain;
  mask: url('/casestudies-assets/teerival/img/svg/teerival-icon-arrow.svg')
    no-repeat center/contain;
}

.teerival-wrapper-main .brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teerival-wrapper-main .site-header__end {
  display: flex;
  align-items: center;
  gap: 24px;
}

.teerival-wrapper-main .nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.teerival-wrapper-main .nav__item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 15px;
  color: var(--body);
  white-space: nowrap;
  transition: color 0.18s ease;
}

.teerival-wrapper-main .nav__item:hover {
  color: var(--purple);
}

.teerival-wrapper-main .nav__caret {
  width: 8px;
  height: 6px;
  flex: 0 0 auto;
  transform: scaleY(-1);
}

.teerival-wrapper-main .header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.teerival-wrapper-main .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 16px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.teerival-wrapper-main .btn--outline {
  height: 44px;
  padding: 0 24px;
  background: var(--white);
  border: 1px solid var(--body);
  color: var(--body);
}

.teerival-wrapper-main .btn--outline:hover {
  background: var(--grey-1);
}

.teerival-wrapper-main .btn--gradient {
  padding: 12.4px 19px;
  background: var(--grad-brand);
  color: var(--white);
}

.teerival-wrapper-main .btn--gradient:hover,
.teerival-wrapper-main .btn--cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(96, 37, 245, 0.28);
}

.teerival-wrapper-main .btn--cta {
  padding: 16px 48px;
  font-size: 18px;
  background: var(--grad-cta-btn);
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* burger (CSS only) */
.teerival-wrapper-main .nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.teerival-wrapper-main .nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--body);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* =========================================================
   Hero
   ========================================================= */
.teerival-wrapper-main .hero-section {
  background: var(--white);
  padding: 30px 0 0;
}

.teerival-wrapper-main .hero {
  position: relative;
  width: min(1820px, 100% - 2 * clamp(16px, 2.6042vw, 50px));
  margin-inline: auto;
  overflow: hidden;
  border-radius: 34px 34px 0 0;
}

.teerival-wrapper-main .hero-image-wrapper {
  position: relative;
  width: 100%;
  border-radius: 34px 34px 0 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.teerival-wrapper-main .hero-logo-overlay {
  position: absolute;
  top: 5.5%;
  left: 50%;
  transform: translateX(-50%);
  width: 23%;
  max-width: 422px;
  min-width: 140px;
  height: auto;
  z-index: 10;
  pointer-events: none;
}

.teerival-wrapper-main .hero-main-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 34px 34px 0 0;
}

/* =========================================================
   Intro + At a Glance
   ========================================================= */
.teerival-wrapper-main .intro {
  position: relative;
  background: var(--white);
  padding-block: var(--sp-100);
  overflow: hidden;
}

.teerival-wrapper-main .intro__glow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 48px;
  width: 1920px;
  max-width: none;
  height: 992px;
  background: linear-gradient(-0.494deg, #f6f8fb 23.893%, #ffffff 61.672%);
  pointer-events: none;
}

.teerival-wrapper-main .intro__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-80);
}

.teerival-wrapper-main .intro__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.teerival-wrapper-main .lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(17px, 1.5625vw, 30px);
  line-height: 1.2;
  color: var(--ink);
  text-align: center;
}

.teerival-wrapper-main .lead a {
  font-weight: 500;
  color: var(--purple);
  text-decoration: underline;
  text-underline-position: from-font;
}

.teerival-wrapper-main .highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
}

.teerival-wrapper-main .highlight {
  background: #f6f8fb;
  border: 1px solid #eaecf4;
  border-radius: 34px;
  padding: 40px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.teerival-wrapper-main .highlight p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(16px, 1.1458vw, 22px);
  line-height: 1.5;
  color: #150d37;
}

.teerival-wrapper-main .highlight p .reg {
  font-weight: 400;
}

.teerival-wrapper-main .tabbar-sticky-section {
  position: sticky;
  top: 72px;
  z-index: 999;
  padding-block: 20px;
  margin-block: 20px;
  background: linear-gradient(359.04deg, #f6f8fb -23.89%, #ffffff 61.67%);
  pointer-events: none;
}

.teerival-wrapper-main .tabbar {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  background: #0c1813;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.teerival-wrapper-main .tabbar::-webkit-scrollbar {
  display: none;
}

.teerival-wrapper-main .tabbar__item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px clamp(18px, 2.08vw, 40px);
  border-radius: 34px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(15px, 1.0417vw, 20px);
  color: var(--white);
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.teerival-wrapper-main .tabbar__item.is-active {
  background: #6025f5;
  min-width: 225px;
}

.teerival-wrapper-main .tabbar__item:not(.is-active):hover {
  background: rgba(255, 255, 255, 0.1);
}

.teerival-wrapper-main .glance {
  display: flex;
  flex-direction: column;
  gap: var(--sp-40);
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--sp-40);
}

.teerival-wrapper-main .spec {
  display: flex;
  flex-direction: column;
}

.teerival-wrapper-main .spec__row {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding-block: var(--sp-30);
}

.teerival-wrapper-main .spec__row + .spec__row {
  border-top: 1px solid var(--border);
}

.teerival-wrapper-main .spec__row dt {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 1.0417vw, 20px);
  color: var(--body);
}

.teerival-wrapper-main .spec__row dd {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  min-width: 0;
}

.teerival-wrapper-main .spec__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(17px, 1.25vw, 24px);
  color: var(--ink);
}

.teerival-wrapper-main .spec__client {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.teerival-wrapper-main .spec__mark {
  width: 26px;
  height: 24px;
  flex: 0 0 auto;
  object-fit: contain;
}

.teerival-wrapper-main .spec__client a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(19px, 1.3542vw, 26px);
  color: var(--purple);
  text-decoration: underline;
  text-underline-position: from-font;
}

.teerival-wrapper-main .spec__ext {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.teerival-wrapper-main .spec__chips {
  flex-wrap: wrap;
  gap: 16px;
}

.teerival-wrapper-main .chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: var(--grey-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(15px, 1.25vw, 24px);
  color: var(--ink);
  text-decoration: none;
  transition: all 0.2s ease;
}

.teerival-wrapper-main a.chip:hover {
  background: var(--white);
  border-color: var(--purple);
  color: var(--purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(96, 37, 245, 0.15);
}

.teerival-wrapper-main .chip__icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.teerival-wrapper-main .chip__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.teerival-wrapper-main .chip__icon--apple {
  background: linear-gradient(180deg, #19e6ff 0%, #1e51ee 100%);
}

.teerival-wrapper-main .chip__icon--apple img {
  width: 28.8px;
  height: 28.8px;
}

/* =========================================================
   Stat cards
   ========================================================= */
.teerival-wrapper-main .stats {
  background: var(--white);
  padding-block: var(--sp-100);
}

.teerival-wrapper-main .stats__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-24);
}

.teerival-wrapper-main .stat {
  position: relative;
  height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 32px;
  border-radius: var(--r-stat);
  overflow: hidden;
  color: var(--white);
}

.teerival-wrapper-main .stat--green {
  background: var(--grad-green);
}

.teerival-wrapper-main .stat--cyan {
  background: var(--grad-cyan);
}

.teerival-wrapper-main .stat--violet {
  background: var(--grad-violet);
  padding-top: 32px;
  padding-bottom: 0;
  gap: 20px;
  justify-content: space-between;
}

.teerival-wrapper-main .stat__head {
  width: 100%;
  padding-inline: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4.8px;
}

.teerival-wrapper-main .stat__head strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 2.5vw, 48px);
  line-height: 1.1;
}

.teerival-wrapper-main .stat__head span {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(14px, 0.8333vw, 16px);
  line-height: 1.35;
}

.teerival-wrapper-main .stat__media {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}

.teerival-wrapper-main .stat__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teerival-wrapper-main .stat__media--float {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 33.9%;
  width: 88.5%;
  height: 54.8%;
  flex: none;
}

.teerival-wrapper-main .stat__media--float img {
  object-fit: contain;
  object-position: top;
}

.teerival-wrapper-main .stat__phone {
  width: 65%;
  margin-top: auto;
  margin-bottom: 0;
  flex: 0 0 auto;
}

.teerival-wrapper-main .stat__phone .phone__screen {
  display: block;
  object-position: bottom;
}

/* =========================================================
   Why this had to be built
   ========================================================= */
.teerival-wrapper-main .why {
  background: var(--white);
  padding-block: var(--sp-100);
}

.teerival-wrapper-main .why__grid {
  display: grid;
  grid-template-columns: 800fr 700fr;
  gap: clamp(32px, 6.25vw, 120px);
  align-items: start;
}

.teerival-wrapper-main .why__body {
  margin-top: var(--sp-80);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(17px, 1.25vw, 24px);
  line-height: 2;
  color: var(--body);
}

.teerival-wrapper-main .why__card {
  position: relative;
  padding: var(--sp-40);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
}

.teerival-wrapper-main .why__card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.teerival-wrapper-main .why__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-orange);
  z-index: -1;
}

.teerival-wrapper-main .why__card p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 1.0417vw, 20px);
  line-height: 1.5;
  color: var(--white);
}

/* =========================================================
   The Challenge
   ========================================================= */
.teerival-wrapper-main .challenge {
  background: var(--grey-1);
  padding-block: var(--sp-100);
}

.teerival-wrapper-main .challenge .h2 {
  margin-bottom: var(--sp-40);
}

.teerival-wrapper-main .challenge__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-40);
}

.teerival-wrapper-main .ch-card {
  display: flex;
  min-height: 290px;
  padding: 50px 20px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

@media screen and (max-width: 767px) {
  .teerival-wrapper-main .ch-card {
    min-height: auto;
  }

  .teerival-wrapper-main .dec {
    min-height: auto !important;
  }
}

.teerival-wrapper-main .ch-card--last {
  grid-column: 1 / 2;
}

.teerival-wrapper-main .ch-card__inner {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-radius: var(--r-md);
}

.teerival-wrapper-main .ch-card__inner--cyan {
  background: var(--tint-cyan);
}

.teerival-wrapper-main .ch-card__inner--peach {
  background: var(--tint-peach);
}

.teerival-wrapper-main .ch-card__inner--lime {
  background: var(--tint-lime);
}

.teerival-wrapper-main .ch-card__inner--rose {
  background: var(--tint-rose);
}

.teerival-wrapper-main .ch-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 1.4583vw, 28px);
  line-height: 1.15;
  color: var(--ink);
  text-transform: capitalize;
}

.teerival-wrapper-main .ch-card p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(15px, 0.9375vw, 18px);
  line-height: 1.444;
  color: var(--body);
}

/* =========================================================
   How a round gets scored
   ========================================================= */
.teerival-wrapper-main .scoring {
  background: var(--white);
  padding-block: var(--sp-100);
}

.teerival-wrapper-main .scoring .h2 {
  margin-bottom: var(--sp-80);
}

.teerival-wrapper-main .scoring__grid {
  display: grid;
  grid-template-columns: 795fr 801fr;
  gap: var(--sp-24);
  align-items: stretch;
}

.teerival-wrapper-main .step {
  position: relative;
  overflow: hidden;
  background: var(--grey-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  container-type: inline-size;
}

.teerival-wrapper-main .step--l {
  aspect-ratio: 795/580;
}

.teerival-wrapper-main .step--r {
  aspect-ratio: 801/580;
}

.teerival-wrapper-main .step__text {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2.0126cqw;
}

.teerival-wrapper-main .step__text h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.teerival-wrapper-main .step__title {
  font-size: min(4.5283cqw, 36px);
}

.teerival-wrapper-main .step__eyebrow {
  font-size: min(3.522cqw, 28px);
  color: var(--body);
}

.teerival-wrapper-main .step__text p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: min(2.2642cqw, 18px);
  line-height: 1.444;
  color: var(--body);
}

.teerival-wrapper-main .step__phone {
  position: absolute;
  bottom: 0;
}

.teerival-wrapper-main .step__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: bottom;
}

/* left-hand cards (795 base) */
.teerival-wrapper-main .step--l .step__text {
  left: 5.1572cqw;
  width: 38.9937cqw;
}

/* 41 / 310 */
.teerival-wrapper-main .step--l .step__phone {
  left: 49.1824cqw;
  bottom: 0;
  top: auto;
  width: 47.7987cqw;
}

.teerival-wrapper-main .step--s1 .step__text {
  top: 5.1572cqw;
}

/* 41  */
.teerival-wrapper-main .step--s3 .step__text {
  top: 28.4277cqw;
}

/* 226 */
.teerival-wrapper-main .step--s5 .step__text {
  top: 5.1572cqw;
}

/* 41  */

/* right-hand cards (801 base) */
.teerival-wrapper-main .step--r .step__text {
  left: 56.1798cqw;
  width: 38.7016cqw;
  /* 450 / 310 */
  text-align: right;
  align-items: flex-end;
}

.teerival-wrapper-main .step--r .step__text h3 {
  align-items: flex-end;
}

.teerival-wrapper-main .step--r .step__phone {
  left: 5.1186cqw;
  bottom: 0;
  top: auto;
  width: 47.4407cqw;
}

.teerival-wrapper-main .step--s2 .step__text {
  top: 32.4594cqw;
}

/* 260 */
.teerival-wrapper-main .step--s4 .step__text {
  top: 29.7128cqw;
}

/* 238 */

.teerival-wrapper-main .step--media {
  aspect-ratio: 801/580;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--grad-green);
}

.teerival-wrapper-main .step--media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   Tech stack
   ========================================================= */
.teerival-wrapper-main .stack {
  background: var(--grey-1);
  padding-block: var(--sp-100);
}

.teerival-wrapper-main .stack .h2 {
  margin-bottom: var(--sp-50);
}

.teerival-wrapper-main .stack__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-24);
}

.teerival-wrapper-main .tech {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

.teerival-wrapper-main .tech__inner {
  display: block;
  padding: 20px;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 1.875vw, 36px);
  line-height: 1.15;
  color: var(--ink);
  white-space: nowrap;
}

.teerival-wrapper-main .tech__inner--lime {
  background: var(--tint-lime);
}

.teerival-wrapper-main .tech__inner--peach {
  background: var(--tint-peach);
}

.teerival-wrapper-main .tech__inner--cyan {
  background: var(--tint-cyan);
}

/* =========================================================
   Engineering decisions
   ========================================================= */
.teerival-wrapper-main .decisions {
  background: var(--white);
  padding-block: var(--sp-100);
}

.teerival-wrapper-main .decisions .h2 {
  margin-bottom: var(--sp-80);
}

.teerival-wrapper-main .decisions__grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-24);
}

.teerival-wrapper-main .dec-row {
  display: grid;
  gap: var(--sp-24);
  align-items: stretch;
}

.teerival-wrapper-main .dec-row--a {
  grid-template-columns: 868fr 728fr;
}

.teerival-wrapper-main .dec-row--b {
  grid-template-columns: 693fr 903fr;
}

.teerival-wrapper-main .dec {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-24);
  padding: var(--sp-30);
  background: var(--grey-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.teerival-wrapper-main .dec h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 1.5625vw, 30px);
  line-height: 1.2;
  letter-spacing: 0.3px;
  color: var(--ink);
  transition: color 0.3s ease;
}

.teerival-wrapper-main .dec p {
  font-family: var(--font-alt);
  font-weight: 400;
  font-size: clamp(15px, 0.9375vw, 18px);
  line-height: 1.444;
  color: var(--body);
  transition: color 0.3s ease;
}

.teerival-wrapper-main .dec:hover {
  background: var(--grad-cyan);
  border-color: rgba(59, 80, 104, 0.3);
  transform: translateY(-4px);
}

.teerival-wrapper-main .dec:hover h3,
.teerival-wrapper-main .dec:hover p {
  color: var(--white);
}

/* =========================================================
   Results
   ========================================================= */
.teerival-wrapper-main .results {
  background: var(--grey-1);
  padding-block: var(--sp-100);
}

.teerival-wrapper-main .results .h2 {
  margin-bottom: var(--sp-50);
}

.teerival-wrapper-main .results__row {
  display: grid;
  grid-template-columns: 542fr 500fr 530fr;
  /* Figma: 542 | 500 | 530 */
  align-items: end;
  gap: var(--sp-24);
  margin-bottom: var(--sp-80);
}

.teerival-wrapper-main .res {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.teerival-wrapper-main .res--green,
.teerival-wrapper-main .res--orange {
  display: flex;
  flex-direction: column;
  gap: var(--sp-40);
  padding: var(--sp-40);
  color: var(--white);
}

.teerival-wrapper-main .res--green {
  min-width: 0;
  background: var(--grad-green);
  align-self: end;
}

.teerival-wrapper-main .res--orange {
  min-width: 0;
  background: var(--grad-orange);
  align-self: start;
}

.teerival-wrapper-main .res--media {
  min-width: 0;
  height: 600px;
  padding: 0;
}

.teerival-wrapper-main .res--media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.teerival-wrapper-main .res__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.teerival-wrapper-main .res__head strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 3.125vw, 60px);
  line-height: 1.1;
}

.teerival-wrapper-main .res__head span {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 1.0417vw, 20px);
}

.teerival-wrapper-main .res p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(15px, 0.9375vw, 18px);
  line-height: 1.444;
}

.teerival-wrapper-main .results__strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.teerival-wrapper-main .rstat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-40);
  padding-inline: var(--sp-40);
}

.teerival-wrapper-main .rstat + .rstat {
  border-left: 1px solid var(--border);
}

.teerival-wrapper-main .rstat__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.teerival-wrapper-main .rstat__head strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 3.125vw, 60px);
  line-height: 1.1;
  color: var(--ink);
}

.teerival-wrapper-main .rstat__head span {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 1.0417vw, 20px);
  color: var(--body);
}

.teerival-wrapper-main .rstat p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(15px, 0.9375vw, 18px);
  line-height: 1.444;
  color: var(--body);
}

/* =========================================================
   Comparison matrix
   ========================================================= */
.teerival-wrapper-main .compare {
  background: var(--white);
  padding-block: var(--sp-100);
}

.teerival-wrapper-main .compare .h2 {
  margin-bottom: var(--sp-80);
}

.teerival-wrapper-main .matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--white);
}

.teerival-wrapper-main .mx {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 100px;
  padding: 16px clamp(18px, 1.6667vw, 32px);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 1.0417vw, 20px);
  line-height: 1.5;
  color: var(--body);
  border-bottom: 1px solid var(--border-strong);
}

.teerival-wrapper-main .mx img {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
}

.teerival-wrapper-main .mx--head {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 1.5625vw, 30px);
  color: var(--ink);
}

.teerival-wrapper-main .mx--corner {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 1.5625vw, 30px);
  color: var(--ink);
}

.teerival-wrapper-main .mx--manual {
  background: var(--grey-1);
  border-left: 1px solid var(--border-strong);
  border-right: 1px solid var(--border-strong);
  color: var(--ink);
}

.teerival-wrapper-main .mx--tee {
  background: var(--table-dark);
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.teerival-wrapper-main .mx--tee.mx--head {
  color: var(--white);
}

.teerival-wrapper-main .mx--last {
  border-bottom: 0;
}

.teerival-wrapper-main .mx__badge {
  display: none;
}

.teerival-wrapper-main .mx__body {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

/* =========================================================
   Team
   ========================================================= */
.teerival-wrapper-main .team {
  background: var(--grey-1);
  padding-block: var(--sp-100);
}

.teerival-wrapper-main .team .h2 {
  margin-bottom: var(--sp-80);
}

.teerival-wrapper-main .team__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-40);
  align-items: center;
}

.teerival-wrapper-main .team__copy {
  display: flex;
  flex-direction: column;
  gap: var(--sp-40);
}

.teerival-wrapper-main .team__lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(19px, 1.5625vw, 30px);
  line-height: 1.5;
  letter-spacing: 0.3px;
  color: var(--ink);
}

.teerival-wrapper-main .team__body {
  font-family: var(--font-alt);
  font-weight: 400;
  font-size: clamp(15px, 0.9375vw, 18px);
  line-height: 1.444;
  color: var(--body);
}

.teerival-wrapper-main .team__media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 440px;
}

.teerival-wrapper-main .team__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-lg);
}

/* =========================================================
   What's next
   ========================================================= */
.teerival-wrapper-main .next {
  background: var(--white);
  padding-block: var(--sp-100);
}

.teerival-wrapper-main .next .h2 {
  margin-bottom: var(--sp-80);
}

.teerival-wrapper-main .next__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-40);
}

.teerival-wrapper-main .nx {
  min-height: 286px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--sp-40);
  padding: var(--sp-40);
  background: var(--grey-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.teerival-wrapper-main .nx__icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  object-fit: contain;
}

.teerival-wrapper-main .nx p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(17px, 1.25vw, 24px);
  line-height: 1.5;
  color: var(--ink);
}

/* =========================================================
   FAQ
   ========================================================= */
.teerival-wrapper-main .faq {
  background: var(--grey-1);
  padding-block: var(--sp-100);
}

.teerival-wrapper-main .faq__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-80);
}

.teerival-wrapper-main .faq__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 1280px;
}

.teerival-wrapper-main .faq__item {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 1.6667vw, 32px);
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.teerival-wrapper-main .faq__item[open] {
  border-color: var(--purple-soft);
  box-shadow: 0 8px 24px rgba(96, 37, 245, 0.06);
}

.teerival-wrapper-main .faq__question {
  list-style: none;
  cursor: pointer;
  outline: none;
  user-select: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(19px, 1.4583vw, 28px);
  line-height: 1.2;
  color: var(--ink);
  text-transform: capitalize;
  transition: color 0.2s ease;
}

.teerival-wrapper-main .faq__question:hover {
  color: var(--purple);
}

.teerival-wrapper-main .faq__q-title {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  display: inline;
}

.teerival-wrapper-main .faq__question::-webkit-details-marker,
.teerival-wrapper-main .faq__question::marker {
  display: none;
  content: '';
}

.teerival-wrapper-main .faq__answer {
  overflow: hidden;
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease,
    transform 0.35s ease, margin-top 0.35s ease;
}

.teerival-wrapper-main .faq__item[open] .faq__answer {
  margin-top: 14px;
  max-height: 300px;
  opacity: 1;
  transform: translateY(0);
}

.teerival-wrapper-main .faq__answer p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 1.0417vw, 20px);
  line-height: 1.5;
  color: var(--body);
}

/* =========================================================
   CTA
   ========================================================= */
.teerival-wrapper-main .cta {
  background: var(--white);
  padding-block: var(--sp-100);
}

.teerival-wrapper-main .cta__card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: var(--sp-100) clamp(24px, 3.125vw, 60px);
  background: var(--grad-cta);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.teerival-wrapper-main .cta__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-40);
  max-width: 837px;
}

.teerival-wrapper-main .cta__copy h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 2.6042vw, 50px);
  line-height: 1.28;
  color: var(--white);
  text-transform: capitalize;
}

.teerival-wrapper-main .cta__media {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  width: min(573px, 48%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.teerival-wrapper-main .cta__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

/* =========================================================
   Responsive
   ========================================================= */

/* ---- ≤1400px : stats row becomes two-up ---- */
@media (max-width: 1400px) {
  .teerival-wrapper-main .stats__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teerival-wrapper-main .stat {
    height: 440px;
  }

  .teerival-wrapper-main .cta__copy {
    max-width: 600px;
  }
}

/* ---- ≤1200px : side-by-side compositions unstack ---- */
@media (max-width: 1200px) {
  .teerival-wrapper-main .hero-widget {
    display: none;
  }

  .teerival-wrapper-main .why__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-40);
  }

  .teerival-wrapper-main .why__body {
    margin-top: var(--sp-40);
  }

  .teerival-wrapper-main .challenge__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teerival-wrapper-main .ch-card--last {
    grid-column: auto;
  }

  .teerival-wrapper-main .dec-row--a,
  .teerival-wrapper-main .dec-row--b {
    grid-template-columns: minmax(0, 1fr);
  }

  .teerival-wrapper-main .results__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .teerival-wrapper-main .res--green {
    grid-column: 1 / -1;
  }

  .teerival-wrapper-main .res--media {
    height: 420px;
  }

  .teerival-wrapper-main .team__media {
    position: static;
    width: 100%;
    height: auto;
    max-height: 520px;
    margin-top: var(--sp-40);
  }

  .teerival-wrapper-main .team__media img {
    height: auto;
  }

  .teerival-wrapper-main .next__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
  }

  .teerival-wrapper-main .nx {
    min-height: 0;
    padding: 20px 15px;
    gap: 15px;
  }

  .teerival-wrapper-main .spec__row {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

/* ---- ≤1024px : header collapses ---- */
@media (max-width: 1024px) {
  .teerival-wrapper-main .page {
    padding-top: 32px;
  }

  .teerival-wrapper-main .nav-burger {
    display: flex;
  }

  .teerival-wrapper-main .site-header {
    flex-wrap: wrap;
  }

  .teerival-wrapper-main .site-header__end {
    display: none;
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 20px 0 8px;
    border-top: 1px solid var(--border);
  }

  .teerival-wrapper-main .nav-toggle:checked ~ .site-header__end {
    display: flex;
  }

  .teerival-wrapper-main .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .teerival-wrapper-main .header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .teerival-wrapper-main .header-actions .btn {
    width: 100%;
  }

  .teerival-wrapper-main .spec__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .teerival-wrapper-main .results__strip {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-40);
  }

  .teerival-wrapper-main .rstat {
    padding-inline: 0;
  }

  .teerival-wrapper-main .rstat + .rstat {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-top: var(--sp-40);
  }
}

/* ---- ≤860px : matrix converts to stacked cards matching Ceartas design ---- */
@media (max-width: 860px) {
  .teerival-wrapper-main .compare {
    padding-block: 36px;
  }

  .teerival-wrapper-main .compare .h2 {
    margin-bottom: 20px;
  }

  .teerival-wrapper-main .matrix {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: none;
    background: transparent;
    border-radius: 0;
    overflow: visible;
  }

  .teerival-wrapper-main .mx--corner,
  .teerival-wrapper-main .mx--head {
    display: none !important;
  }

  .teerival-wrapper-main .mx--label {
    margin-top: 14px;
    padding: 0 2px;
    min-height: 0;
    border: none;
    background: transparent;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--ink);
  }

  .teerival-wrapper-main .mx--label:first-of-type {
    margin-top: 0;
  }

  .teerival-wrapper-main .mx {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 14px;
    width: 100%;
    box-sizing: border-box;
  }

  .teerival-wrapper-main .mx__badge {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 2px;
  }

  .teerival-wrapper-main .mx--manual {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--ink);
  }

  .teerival-wrapper-main .mx--manual .mx__badge {
    color: #64748b;
  }

  .teerival-wrapper-main .mx--tee {
    background: var(--table-dark);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--white);
  }

  .teerival-wrapper-main .mx--tee .mx__badge {
    color: var(--white);
    font-weight: 700;
  }

  .teerival-wrapper-main .mx__body {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }

  .teerival-wrapper-main .mx__body img {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 2px;
  }

  .teerival-wrapper-main .mx__body span {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.4;
  }
}

@media (max-width: 991px) {
  .teerival-wrapper-main .tabbar-sticky-section {
    top: 0px;
    padding-block: 14px;
  }
}
/* ---- ≤1024px : Tablet & Mobile view ---- */
@media (max-width: 1024px) {
  :root {
    --gutter: 16px;
    --gutter-wide: 16px;
    --r-lg: 15px;
    --r-md: 15px;
    --r-stat: 15px;
    --r-sm: 15px;
    --sp-100: 40px;
    --sp-80: 24px;
    --sp-50: 20px;
    --sp-40: 15px;
    --sp-30: 15px;
    --sp-24: 15px;
    --sp-20: 15px;
    --sp-16: 12px;
  }

  .teerival-wrapper-main .shell,
  .teerival-wrapper-main .shell--wide {
    padding-inline: 16px;
  }

  .teerival-wrapper-main .tabbar {
    padding: 6px;
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .teerival-wrapper-main .tabbar__item {
    padding: 8px 14px;
    font-size: 14px;
    flex: 0 0 auto;
  }

  .teerival-wrapper-main .tabbar__item.is-active {
    min-width: 0;
  }

  /* Grid & Flex gaps everywhere 15px in tablet/mobile */
  .teerival-wrapper-main .highlights,
  .teerival-wrapper-main .challenge__grid,
  .teerival-wrapper-main .stats__row,
  .teerival-wrapper-main .why__grid,
  .teerival-wrapper-main .decisions__grid,
  .teerival-wrapper-main .dec-row,
  .teerival-wrapper-main .results__row,
  .teerival-wrapper-main .next__grid,
  .teerival-wrapper-main .faq__list,
  .teerival-wrapper-main .stack__row,
  .teerival-wrapper-main .team__copy,
  .teerival-wrapper-main .cta__copy {
    gap: 15px !important;
  }

  /* Container & card inner padding 20px in tablet/mobile */
  .teerival-wrapper-main .highlight {
    min-height: auto !important;
    padding: 24px 20px !important;
  }

  .teerival-wrapper-main .ch-card,
  .teerival-wrapper-main .stat,
  .teerival-wrapper-main .why__card,
  .teerival-wrapper-main .nx,
  .teerival-wrapper-main .dec,
  .teerival-wrapper-main .res--green,
  .teerival-wrapper-main .res--orange,
  .teerival-wrapper-main .faq__item,
  .teerival-wrapper-main .glance {
    padding: 20px !important;
  }

  /* Card border-radius 15px in tablet/mobile */
  .teerival-wrapper-main .highlight,
  .teerival-wrapper-main .ch-card,
  .teerival-wrapper-main .stat,
  .teerival-wrapper-main .why__card,
  .teerival-wrapper-main .step,
  .teerival-wrapper-main .nx,
  .teerival-wrapper-main .dec,
  .teerival-wrapper-main .res,
  .teerival-wrapper-main .res--green,
  .teerival-wrapper-main .res--orange,
  .teerival-wrapper-main .faq__item,
  .teerival-wrapper-main .cta__card,
  .teerival-wrapper-main .why__body,
  .teerival-wrapper-main .why__card p,
  .teerival-wrapper-main .glance {
    border-radius: 15px !important;
  }
  .teerival-wrapper-main .team__body,
  .teerival-wrapper-main .step__text p,
  .teerival-wrapper-main .dec p,
  .teerival-wrapper-main .res p,
  .teerival-wrapper-main .nx p,
  .teerival-wrapper-main .faq__answer p {
    font-size: 16px !important;
  }

  .teerival-wrapper-main .hero-section {
    padding: 0;
  }

  .teerival-wrapper-main .hero {
    padding: 0;
    width: 100%;
    border-radius: 0;
  }

  .teerival-wrapper-main .hero-image-wrapper {
    border-radius: 0;
    width: 100%;
  }

  .teerival-wrapper-main .hero-main-img {
    border-radius: 0;
    width: 100%;
    min-height: 260px;
    object-fit: cover;
  }

  .teerival-wrapper-main .hero-logo-overlay {
    width: 35%;
    max-width: 220px;
    min-width: 120px;
    top: 6%;
  }

  .teerival-wrapper-main .highlights,
  .teerival-wrapper-main .stats__row,
  .teerival-wrapper-main .challenge__grid,
  .teerival-wrapper-main .dec-row--a,
  .teerival-wrapper-main .dec-row--b,
  .teerival-wrapper-main .scoring__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 15px !important;
  }

  .teerival-wrapper-main .next__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 15px !important;
  }

  .teerival-wrapper-main .team__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .teerival-wrapper-main .results__row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 15px !important;
    align-items: stretch !important;
  }

  .teerival-wrapper-main .res--green {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: auto !important;
    padding: 24px 20px !important;
  }

  .teerival-wrapper-main .res--orange {
    grid-column: 1 !important;
    grid-row: 2 !important;
    align-self: auto !important;
    padding: 24px 20px !important;
  }

  .teerival-wrapper-main .res--media {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    height: 100% !important;
    min-height: 100% !important;
    border-radius: var(--r-lg) !important;
    overflow: hidden !important;
  }

  .teerival-wrapper-main .res--media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }
  .teerival-wrapper-main .team__media {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    max-height: 440px !important;
    min-height: 260px !important;
    border-radius: var(--r-lg) !important;
    overflow: hidden !important;
  }

  .teerival-wrapper-main .team__media img {
    width: 100% !important;
    height: 100% !important;
    max-height: 440px !important;
    object-fit: cover !important;
    border-radius: var(--r-lg) !important;
    display: block !important;
  }

  .teerival-wrapper-main .stat {
    height: auto;
    min-height: 340px;
  }

  .teerival-wrapper-main .stat--cyan {
    min-height: 380px;
  }

  .teerival-wrapper-main .stat__media--float {
    position: static;
    transform: none;
    width: 100%;
    height: auto;
    flex: 1 1 auto;
    margin-top: 15px;
  }

  .teerival-wrapper-main .stat__phone {
    width: min(220px, 58%);
  }

  .teerival-wrapper-main .step {
    aspect-ratio: auto !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 22px 15px 0 !important;
  }

  .teerival-wrapper-main .step__text {
    position: static;
    width: auto !important;
    left: auto !important;
    top: auto !important;
    gap: 12px;
    text-align: left !important;
    align-items: flex-start !important;
  }

  .teerival-wrapper-main .step--r .step__text h3 {
    align-items: flex-start;
  }

  .teerival-wrapper-main .step__text h3 {
    font-size: 24px;
  }

  .teerival-wrapper-main .step__eyebrow {
    font-size: 18px;
  }

  .teerival-wrapper-main .step__text p {
    font-size: 15px;
  }

  .teerival-wrapper-main .step__phone {
    position: static;
    width: min(260px, 75%) !important;
    left: auto !important;
    top: auto !important;
    margin: auto auto 0;
  }

  .teerival-wrapper-main .step--media {
    aspect-ratio: auto !important;
    padding: 0 !important;
    height: 100% !important;
    min-height: 100% !important;
    display: block !important;
    overflow: hidden !important;
  }

  .teerival-wrapper-main .step--media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }

  .teerival-wrapper-main .tech__inner {
    font-size: 20px;
    padding: 12px 15px;
  }

  .teerival-wrapper-main .tech {
    padding: 8px;
  }

  .teerival-wrapper-main .cta__card {
    padding: 40px 24px 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .teerival-wrapper-main .cta__copy {
    width: 100% !important;
    max-width: 640px !important;
    align-items: center !important;
    text-align: center !important;
    gap: 24px !important;
  }

  .teerival-wrapper-main .cta__copy h2 {
    text-align: center !important;
  }

  .teerival-wrapper-main .btn--cta {
    width: auto !important;
    max-width: max-content !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px 36px !important;
    font-size: 18px !important;
    border-radius: 9999px !important;
  }

  .teerival-wrapper-main .cta__media {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 520px !important;
    height: auto !important;
    margin: 30px auto 0 !important;
    display: flex !important;
    justify-content: center !important;
  }

  .teerival-wrapper-main .cta__img {
    width: 100% !important;
    max-width: 520px !important;
    max-height: 360px !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
  }
}

/* ---- ≤420px : small phones ---- */
@media (max-width: 420px) {
  .teerival-wrapper-main .brand__logo {
    width: 104px;
    height: 38px;
  }

  .teerival-wrapper-main .chip {
    font-size: 14px;
    padding: 8px 14px;
  }

  .teerival-wrapper-main .chip__icon {
    width: 26px;
    height: 26px;
  }

  .teerival-wrapper-main .tabbar {
    padding: 6px;
  }

  .teerival-wrapper-main .tabbar__item {
    padding: 8px 12px;
    font-size: 13px;
  }

  .teerival-wrapper-main .tabbar__item.is-active {
    min-width: 0;
  }

  .teerival-wrapper-main .ch-card {
    padding: 15px !important;
  }

  .teerival-wrapper-main .ch-card__inner {
    padding: 15px !important;
  }

  .teerival-wrapper-main .step {
    padding: 15px 15px 0 !important;
  }

  .teerival-wrapper-main .step__text h3 {
    font-size: 22px;
  }

  .teerival-wrapper-main .nx,
  .teerival-wrapper-main .dec,
  .teerival-wrapper-main .res--green,
  .teerival-wrapper-main .res--orange,
  .teerival-wrapper-main .highlight,
  .teerival-wrapper-main .why__card {
    padding: 15px !important;
  }

  .teerival-wrapper-main .mx img {
    width: 20px;
    height: 20px;
  }

  .teerival-wrapper-main .mx--label {
    font-size: 17px;
    padding: 12px 10px;
  }
}

@media (max-width: 576px) {
  .teerival-wrapper-main .highlights,
  .teerival-wrapper-main .stats__row,
  .teerival-wrapper-main .challenge__grid,
  .teerival-wrapper-main .dec-row--a,
  .teerival-wrapper-main .dec-row--b,
  .teerival-wrapper-main .scoring__grid,
  .teerival-wrapper-main .next__grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .teerival-wrapper-main .step--media {
    aspect-ratio: 16/11 !important;
    min-height: 240px !important;
  }

  .teerival-wrapper-main .results__row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .teerival-wrapper-main .res--green,
  .teerival-wrapper-main .res--orange,
  .teerival-wrapper-main .res--media {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .teerival-wrapper-main .res--media {
    height: 240px !important;
    min-height: 240px !important;
  }

  .teerival-wrapper-main .cta__card {
    padding: 32px 16px 0 !important;
  }

  .teerival-wrapper-main .cta__img {
    max-height: 260px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .teerival-wrapper-main html {
    scroll-behavior: auto;
  }

  .teerival-wrapper-main *,
  .teerival-wrapper-main *::before,
  .teerival-wrapper-main *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
