/* ============================================================
   RioPlay — the whole design system.

   Anchored on the actual logo: #F26722 orange and #0079C2 blue, sampled
   from images/brand/logo-wide.png. The dark surface and teal accent come
   from the pricing deck, so /pricing reads as part of the site rather
   than a page bolted onto it.

   One type scale, one accent gradient, one reveal animation. Section
   rhythm is driven by --sect-y alone, so vertical density is a one-line
   change rather than a sweep.
   ============================================================ */

:root {
  /* Surfaces — each step is a real elevation, not decoration. */
  --bg: #0a0e17;
  --surface: #111827;
  --surface-2: #1a2235;
  --surface-3: #222d42;

  /* Accent. Teal carries every interactive affordance; the gradient is
     the ONE place two hues meet, reserved for primary CTAs and the
     popular plan. */
  --teal: #00c9a7;
  --teal-dim: #00a88a;
  --teal-glow: rgba(0, 201, 167, 0.15);
  --cyan: #00b4d8;
  --grad: linear-gradient(135deg, #00c9a7, #00b4d8);

  /* Brand. Orange marks savings and "popular"; blue only appears in the
     logo and the faintest background washes. Neither is an action colour
     — that would compete with teal. */
  --orange: #f26722;
  --orange-dim: rgba(242, 103, 34, 0.13);
  --blue: #0079c2;

  --text: #e8ecf1;
  --text-dim: #8a94a6;
  --text-muted: #5a6478;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);

  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1240px;
  --sect-y: clamp(64px, 9vw, 112px);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t: 0.28s var(--ease);

  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', var(--font);
  --font-mono: 'Space Mono', ui-monospace, 'Cascadia Mono', monospace;
}

/* ------------------------------------------------------------
   Reset
   ------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Anchor targets clear the sticky header. */
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  background: var(--teal);
  color: #04211c;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip:focus {
  left: 16px;
}

/* ------------------------------------------------------------
   Type scale — five sizes, no ad-hoc font-size anywhere else.
   ------------------------------------------------------------ */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.h-hero {
  font-size: clamp(2.5rem, 6vw, 4.1rem);
}
.h-sect {
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
}
.h-card {
  font-size: 1.13rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.h-sub {
  font-size: 1.4rem;
  font-weight: 600;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
  flex: none;
}

.lede {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 62ch;
}

.mono {
  font-family: var(--font-mono);
}

/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */

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

.sect {
  padding: var(--sect-y) 0;
  position: relative;
}
.sect--tight {
  padding: calc(var(--sect-y) * 0.62) 0;
}
.sect--alt {
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.6), transparent);
}

.sect-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.sect-head--center {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.sect-head--center .eyebrow {
  justify-content: center;
}
.sect-lede {
  color: var(--text-dim);
  margin-top: 16px;
  font-size: 1.03rem;
}

.grid {
  display: grid;
  gap: 20px;
}
.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

/* Ambient wash. Fixed and non-interactive so it never affects layout. */
.bg-wash {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 50% -10%, rgba(0, 201, 167, 0.09), transparent),
    radial-gradient(ellipse 55% 40% at 85% 8%, rgba(0, 121, 194, 0.07), transparent),
    radial-gradient(ellipse 60% 40% at 10% 95%, rgba(242, 103, 34, 0.045), transparent);
}
.bg-wash::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000, transparent 75%);
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t);
  white-space: nowrap;
  background: none;
}
.btn--fill {
  background: var(--grad);
  color: #042420;
  box-shadow: 0 4px 20px rgba(0, 201, 167, 0.24);
}
.btn--fill:hover {
  box-shadow: 0 8px 30px rgba(0, 201, 167, 0.36);
  transform: translateY(-2px);
}
.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-glow);
}
.btn--quiet {
  background: var(--surface-3);
  color: var(--text);
}
.btn--quiet:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
}
.btn--sm {
  padding: 9px 18px;
  font-size: 14px;
}
.btn--block {
  display: flex;
  width: 100%;
}
.btn svg {
  transition: transform var(--t);
}
.btn:hover svg {
  transform: translateX(3px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Inline text link with a growing underline. */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--teal);
  font-weight: 600;
  font-size: 14px;
}
.tlink:hover {
  color: #2ce0c1;
}
.tlink:hover svg {
  transform: translateX(3px);
}
.tlink svg {
  transition: transform var(--t);
}

/* ------------------------------------------------------------
   Chips and badges
   ------------------------------------------------------------ */

.chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 7px;
}
.chip--teal {
  background: var(--teal-glow);
  color: var(--teal);
}
.chip--orange {
  background: var(--orange-dim);
  color: #ff8542;
}
.chip--soon {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */

.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--t);
  border-bottom: 1px solid transparent;
}
.hdr--stuck {
  background: rgba(10, 14, 23, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.hdr-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.hdr-logo img {
  height: 30px;
  width: auto;
}
.hdr-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.hdr-nav a {
  position: relative;
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: var(--t);
}
.hdr-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.hdr-nav a.on {
  color: var(--teal);
}
.hdr-nav a.on::after {
  content: '';
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
}

.hdr-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Login is a menu because there are two products behind it; a bare pair
   of links in the header read as a mistake. */
.login {
  position: relative;
}
.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: var(--t);
  background: none;
}
.login-btn:hover,
.login:focus-within .login-btn {
  color: var(--text);
  border-color: var(--teal);
}
.login-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: var(--t);
}
/* Hover for pointers, focus-within for keyboards. No JS either way. */
.login:hover .login-menu,
.login:focus-within .login-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.login-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-dim);
}
.login-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--teal);
}
.login-menu small {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: none;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--t);
}
body.menu-open .burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.menu-open .burger span:nth-child(2) {
  opacity: 0;
}
body.menu-open .burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.sheet {
  position: fixed;
  inset: 62px 0 0;
  z-index: 99;
  background: var(--bg);
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
body.menu-open .sheet {
  display: flex;
}
.sheet-link {
  padding: 14px 4px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.sheet-link.on {
  color: var(--teal);
}
.sheet .btn {
  margin-top: 20px;
}
.sheet-sub {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 22px;
  font-weight: 700;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */

.hero {
  padding: clamp(46px, 6vw, 78px) 0 calc(var(--sect-y) * 0.72);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 620px;
  height: 620px;
  right: -160px;
  top: -180px;
  border-radius: 50%;
  background: rgba(0, 201, 167, 0.08);
  filter: blur(90px);
  pointer-events: none;
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  gap: clamp(38px, 5vw, 74px);
  align-items: center;
}
.hero-in {
  max-width: 650px;
}
.hero-in--center {
  margin: 0 auto;
  text-align: center;
}
.hero-in--center .eyebrow {
  justify-content: center;
}
.hero-lede {
  color: var(--text-dim);
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  margin: 22px 0 32px;
  max-width: 62ch;
}
.hero-in--center .hero-lede {
  margin-left: auto;
  margin-right: auto;
}
.hero-in--center .btn-row {
  justify-content: center;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}
.avatar-stack {
  display: flex;
  padding-left: 8px;
}
.avatar-stack img {
  width: 40px;
  height: 40px;
  margin-left: -8px;
  object-fit: cover;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--surface-2);
}
.hero-proof p {
  display: grid;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--text-muted);
}
.hero-proof strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.hero-visual {
  min-height: 560px;
  position: relative;
  isolation: isolate;
}
.hero-photo {
  height: 100%;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background: var(--surface);
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.44),
    0 0 0 8px rgba(255, 255, 255, 0.018);
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 62%, rgba(4, 10, 18, 0.44));
  pointer-events: none;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: 64% center;
}
.hero-float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(10, 14, 23, 0.82);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.hero-float strong,
.hero-float small {
  display: block;
  line-height: 1.35;
}
.hero-float strong {
  font-size: 13px;
  font-weight: 600;
}
.hero-float small {
  margin-top: 2px;
  color: var(--text-dim);
  font-size: 10.5px;
}
.hero-float--top {
  top: 28px;
  left: -24px;
}
.hero-float--bottom {
  left: 28px;
  bottom: 34px;
}
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(242, 103, 34, 0.13);
}
.mini-chart {
  display: flex;
  align-items: end;
  gap: 3px;
  width: 37px;
  height: 28px;
  padding: 4px;
  border-radius: 7px;
  background: var(--teal-glow);
}
.mini-chart i {
  width: 4px;
  border-radius: 4px;
  background: var(--teal);
}
.mini-chart i:nth-child(1) { height: 34%; }
.mini-chart i:nth-child(2) { height: 52%; }
.mini-chart i:nth-child(3) { height: 44%; }
.mini-chart i:nth-child(4) { height: 72%; }
.mini-chart i:nth-child(5) { height: 90%; }

/* Interior-page hero: shorter, no CTA row. */
.phero {
  padding: clamp(52px, 7vw, 84px) 0 clamp(30px, 4vw, 46px);
}
.phero-lede {
  color: var(--text-dim);
  font-size: 1.06rem;
  margin-top: 18px;
  max-width: 64ch;
}

/* Stat strip under the hero. */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  margin-top: 52px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}
.stats--hero {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 44px;
  padding-top: 26px;
}
.stat-proof {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
/* Stands in for a portrait on a client named before a photo is cleared,
   so the row keeps its rhythm instead of collapsing by one avatar. */
.stat-proof-mark {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--teal-glow);
  color: var(--teal);
}
.stat-proof img {
  width: 38px;
  height: 38px;
  flex: none;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface-2);
}
.stat-n {
  font-family: var(--font-display);
  overflow: hidden;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stat-l {
  overflow: hidden;
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-trust {
  margin-top: 16px;
  text-align: center;
}

/* ------------------------------------------------------------
   Cards
   ------------------------------------------------------------ */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: var(--t);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card:hover {
  border-color: rgba(0, 201, 167, 0.28);
  transform: translateY(-4px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}
.card p {
  color: var(--text-dim);
  font-size: 14.5px;
  margin-top: 10px;
}
.card-ico {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--teal-glow);
  color: var(--teal);
  margin-bottom: 18px;
  flex: none;
}
.card--orange .card-ico {
  background: var(--orange-dim);
  color: #ff8542;
}

/* A photographic platform story breaks up the repeated card rhythm and
   shows the product in the context of a real education business. */
.platform-story {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(30px, 5vw, 62px);
  align-items: center;
}
.story-photo {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}
.story-photo::after {
  content: '';
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(180deg, transparent, rgba(5, 10, 18, 0.94));
}
.story-photo img {
  width: 100%;
  height: 570px;
  object-fit: cover;
  object-position: 46% center;
}
.story-caption {
  position: absolute;
  z-index: 1;
  right: 28px;
  bottom: 27px;
  left: 28px;
}
.story-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.story-caption strong {
  display: block;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.18;
}
.story-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.story-feature {
  display: flex;
  gap: 14px;
  min-height: 166px;
  padding: 21px 18px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(17, 24, 39, 0.66);
  transition: var(--t);
}
.story-feature:hover {
  border-color: rgba(0, 201, 167, 0.26);
  background: rgba(26, 34, 53, 0.74);
  transform: translateY(-3px);
}
.story-feature .card-ico {
  width: 38px;
  height: 38px;
  margin: 0;
  border-radius: 11px;
}
.story-feature .card-ico svg {
  width: 20px;
  height: 20px;
}
.story-feature p {
  margin-top: 7px;
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.5;
}
.story-link {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.audience-grid {
  counter-reset: audience;
}
.audience-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(0, 201, 167, 0.04), transparent 58%),
    var(--surface);
}
.audience-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, var(--teal), transparent 70%);
  opacity: 0;
  transition: var(--t);
}
.audience-card:hover::before {
  opacity: 1;
}
.audience-n {
  position: absolute;
  top: 22px;
  right: 22px;
  color: rgba(255, 255, 255, 0.09);
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.testimonial-card {
  position: relative;
  overflow: hidden;
  padding-top: 42px;
}
.testimonial-card--feature {
  border-color: rgba(0, 201, 167, 0.2);
  background:
    radial-gradient(circle at 100% 0, rgba(0, 201, 167, 0.12), transparent 44%),
    var(--surface);
}
.quote-mark {
  position: absolute;
  top: 8px;
  right: 20px;
  color: rgba(0, 201, 167, 0.18);
  font-family: Georgia, serif;
  font-size: 4.5rem;
  line-height: 1;
}
.testimonial-quote {
  position: relative;
  z-index: 1;
  flex: 1;
  color: var(--text-dim);
  font-size: 14.5px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.testimonial-author img {
  width: 52px;
  height: 52px;
  flex: none;
  object-fit: cover;
  border: 2px solid rgba(0, 201, 167, 0.22);
  border-radius: 50%;
}
.testimonial-name {
  font-size: 14px;
  font-weight: 600;
}
.testimonial-role {
  color: var(--text-muted);
  font-size: 12.5px;
}

/* Numbered step card. */
.step {
  position: relative;
  padding-top: 34px;
}
.step-n {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.045);
  line-height: 1;
}

/* Compact list used inside cards. */
.ticks {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}
.ticks li {
  display: flex;
  gap: 9px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.45;
}
.ticks li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex: none;
}

/* Two-column feature row that alternates side. */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

/* ------------------------------------------------------------
   Features page — visual chapters
   ------------------------------------------------------------ */

.features-hero {
  padding-bottom: clamp(48px, 7vw, 78px);
  overflow: hidden;
}
.features-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(38px, 6vw, 78px);
  align-items: center;
}
.features-hero-copy {
  max-width: 610px;
}
.features-hero-copy .phero-lede {
  max-width: 58ch;
}
.feature-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.feature-chip-row span {
  padding: 7px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 600;
}
.feature-chip-row span:first-child {
  border-color: rgba(0, 201, 167, 0.28);
  background: var(--teal-glow);
  color: var(--teal);
}
.features-hero-visual {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 25px;
  background: var(--surface);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
}
.features-hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 60%, rgba(6, 11, 19, 0.68)),
    linear-gradient(90deg, rgba(6, 11, 19, 0.22), transparent 36%);
  pointer-events: none;
}
.features-hero-visual img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: 55% center;
}
.features-hero-badge {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 340px;
  margin-left: auto;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(10, 14, 23, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.feature-badge-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 11px;
  background: var(--teal-glow);
  color: var(--teal);
}
.features-hero-badge strong,
.features-hero-badge small {
  display: block;
  line-height: 1.35;
}
.features-hero-badge strong {
  font-size: 13px;
}
.features-hero-badge small {
  margin-top: 2px;
  color: var(--text-dim);
  font-size: 10.5px;
}

.feature-group {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(34px, 5vw, 68px);
  align-items: start;
}
.feature-group--flip .feature-group-intro {
  grid-column: 2;
}
.feature-group--flip .feature-items {
  grid-column: 1;
  grid-row: 1;
}
.feature-group-intro {
  position: sticky;
  top: 112px;
}
.feature-group-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.feature-group-head .card-ico {
  margin: 0;
}
.feature-group-number {
  display: block;
  margin-bottom: 4px;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.feature-group-media {
  position: relative;
  min-height: 315px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}
.feature-group-media::after {
  content: '';
  position: absolute;
  inset: 38% 0 0;
  background: linear-gradient(180deg, transparent, rgba(5, 10, 18, 0.92));
}
.feature-group-media img {
  width: 100%;
  height: 315px;
  object-fit: cover;
  object-position: center;
}
.feature-group-media figcaption {
  position: absolute;
  z-index: 1;
  right: 21px;
  bottom: 19px;
  left: 21px;
}
.feature-group-media figcaption span {
  display: block;
  margin-bottom: 5px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.feature-group-media figcaption strong {
  display: block;
  max-width: 34ch;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.35;
}
.feature-group-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.feature-group-line i {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--teal), transparent);
}
.feature-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.feature-item {
  position: relative;
  min-height: 178px;
  padding: 28px 24px 23px;
  overflow: hidden;
}
.feature-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  min-height: 150px;
}
.feature-item-number {
  position: absolute;
  top: 17px;
  right: 19px;
  color: rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 1.28rem;
  font-weight: 700;
}
.feature-item::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--grad);
  opacity: 0;
  transition: var(--t);
}
.feature-item:hover::before {
  opacity: 1;
}
.features-deeper {
  background:
    radial-gradient(circle at 50% 110%, rgba(0, 201, 167, 0.1), transparent 38%),
    linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.55));
}
.features-deeper-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}
.features-deeper-head .eyebrow {
  margin-bottom: 8px;
}
.features-deeper-head .lede {
  max-width: 45ch;
  text-align: right;
}
.feature-link-card {
  background:
    linear-gradient(145deg, rgba(0, 201, 167, 0.045), transparent 56%),
    var(--surface);
}

/* ------------------------------------------------------------
   Pricing
   ------------------------------------------------------------ */

.pricing-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.toggle {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
}
.toggle button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: none;
  border-radius: 9px;
  background: none;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t);
}
.toggle button.on {
  background: var(--teal);
  color: #042420;
  box-shadow: 0 4px 14px rgba(0, 201, 167, 0.24);
}
.toggle button.on .chip {
  background: rgba(4, 36, 32, 0.16);
  color: #042420;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 18px;
}

.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--t);
}
.plan::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--border);
  transition: var(--t);
}
.plan:hover {
  border-color: rgba(0, 201, 167, 0.24);
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}
.plan:hover::before {
  background: var(--teal);
}
.plan--pop {
  border-color: rgba(0, 201, 167, 0.32);
  background: linear-gradient(180deg, rgba(0, 201, 167, 0.07), var(--surface) 42%);
}
.plan--pop::before {
  background: var(--grad);
}
.plan-tag {
  position: absolute;
  top: 15px;
  right: -34px;
  transform: rotate(45deg);
  padding: 5px 40px;
  background: var(--orange);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.plan-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
}
.plan-desc {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.5;
  margin: 6px 0 20px;
  min-height: 39px;
}

.plan-price {
  min-height: 86px;
  margin-bottom: 22px;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--font-display);
  font-size: 2.45rem;
  font-weight: 700;
  line-height: 1.05;
}
.price .cur {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-dim);
}
.price .per {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
}
.price--custom {
  font-size: 1.75rem;
}
.plan-note {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.plan-note .was {
  text-decoration: line-through;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.plan-limits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.limit-l {
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.limit-v {
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 2px;
}

.plan .ticks {
  flex: 1;
  margin: 0 0 22px;
}
.plan .ticks li {
  font-size: 13px;
  padding: 3px 0;
}

/* Overage table. */
.tbl-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.tbl {
  min-width: 640px;
}
.tbl th {
  text-align: left;
  padding: 14px 18px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.tbl td {
  padding: 14px 18px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.tbl tr:last-child td {
  border-bottom: none;
}
.tbl td:first-child {
  font-weight: 600;
}
.tbl .num {
  font-family: var(--font-mono);
  color: var(--teal);
  font-size: 13px;
}

/* Calculator. */
.calc {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 44px);
  position: relative;
  overflow: hidden;
}
.calc::before {
  content: '';
  position: absolute;
  inset: 0 44px auto;
  height: 2px;
  background: var(--grad);
  border-radius: 0 0 4px 4px;
}
.calc-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin: 30px 0;
}
.calc-out {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 22px;
}
.out-l {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}
.out-v {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  margin-top: 4px;
}
.out-v--total {
  color: var(--teal);
  font-size: 1.75rem;
}
.out-sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Fair-usage cards. */
.fup-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.fup-row:last-of-type {
  border-bottom: none;
}
.fup-row .fl {
  color: var(--text-dim);
  flex: none;
  max-width: 46%;
}
.fup-row .fv {
  font-weight: 600;
  text-align: right;
}
.fup-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

/* ------------------------------------------------------------
   Forms
   ------------------------------------------------------------ */

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field label {
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-size: 15px;
  transition: var(--t);
  outline: none;
}
.field textarea {
  resize: vertical;
  min-height: 118px;
  font-family: inherit;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
}
.field input[type='number'] {
  font-family: var(--font-mono);
}
.field select {
  appearance: none;
  cursor: pointer;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238a94a6' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

/* Honeypot. Off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 14px;
  margin-bottom: 18px;
  border: 1px solid;
}
.alert--ok {
  background: var(--teal-glow);
  border-color: rgba(0, 201, 167, 0.34);
  color: #6fe9d1;
}
.alert--bad {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.34);
  color: #fda4af;
}

.note {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 12px;
}

.cform {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 34px);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}
.contact-details {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}
.contact-details a {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14.5px;
  color: var(--text-dim);
  transition: var(--t);
}
.contact-details a:hover {
  color: var(--teal);
}

/* ------------------------------------------------------------
   Accordion (FAQ) — <details>, so it works with JS off.
   ------------------------------------------------------------ */

.acc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: var(--t);
}
.acc[open] {
  border-color: rgba(0, 201, 167, 0.26);
}
.acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
}
.acc summary::-webkit-details-marker {
  display: none;
}
.acc summary::after {
  content: '+';
  flex: none;
  font-size: 20px;
  font-weight: 400;
  color: var(--teal);
  transition: transform var(--t);
}
.acc[open] summary::after {
  transform: rotate(45deg);
}
.acc-body {
  padding: 0 22px 19px;
  color: var(--text-dim);
  font-size: 14.5px;
}

/* ------------------------------------------------------------
   Downloads
   ------------------------------------------------------------ */

.dl-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.dl-badges img {
  height: 42px;
  width: auto;
  border-radius: 7px;
  transition: var(--t);
}
.dl-badges a:hover img {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* ------------------------------------------------------------
   Prose (privacy, terms)
   ------------------------------------------------------------ */

.prose {
  max-width: 76ch;
  color: var(--text-dim);
}
.prose h2 {
  font-size: 1.35rem;
  color: var(--text);
  margin: 38px 0 12px;
}
.prose h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin: 26px 0 8px;
}
.prose p,
.prose li {
  font-size: 15px;
  margin-bottom: 11px;
  line-height: 1.72;
}
.prose ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 16px;
}
.prose a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose strong {
  color: var(--text);
}

/* ------------------------------------------------------------
   CTA panel
   ------------------------------------------------------------ */

.cta {
  background: linear-gradient(135deg, rgba(0, 201, 167, 0.11), rgba(0, 121, 194, 0.08));
  border: 1px solid rgba(0, 201, 167, 0.22);
  border-radius: 22px;
  padding: clamp(34px, 5vw, 58px);
  text-align: center;
}
.cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 14px;
}
.cta p {
  color: var(--text-dim);
  max-width: 56ch;
  margin: 0 auto 26px;
}
.cta .btn-row {
  justify-content: center;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.ftr {
  border-top: 1px solid var(--border);
  padding: 56px 0 30px;
  margin-top: 20px;
}
.ftr-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.ftr-brand img {
  height: 34px;
  width: auto;
  margin-bottom: 16px;
}
.ftr-brand p {
  color: var(--text-dim);
  font-size: 14px;
  max-width: 40ch;
}
.ftr h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 15px;
}
.ftr-col a,
.ftr-col span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--text-dim);
  padding: 4px 0;
  transition: var(--t);
}
.ftr-col a:hover {
  color: var(--teal);
}
.ftr-bot {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}
.social {
  display: flex;
  gap: 8px;
}
.social a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  color: var(--text-dim);
  transition: var(--t);
}
.social a:hover {
  color: var(--teal);
  border-color: var(--teal);
  background: var(--teal-glow);
}

/* ------------------------------------------------------------
   Reveal

   Targets hide ONLY while <html> carries js-reveal. The inline boot
   script adds it, and removes it again if app.js never runs — so a
   blocked script costs the animation, never the content.
   ------------------------------------------------------------ */

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}
.js-reveal [data-reveal].in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.62s var(--ease),
    transform 0.62s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 1040px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
    gap: 36px;
  }
  .hero-float--top {
    left: -12px;
  }
  .hero-float--bottom {
    left: 24px;
  }
  .story-feature {
    min-height: 0;
    flex-direction: column;
  }
  .features-hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
    gap: 38px;
  }
  .feature-group {
    grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.28fr);
    gap: 38px;
  }
  .feature-item {
    min-height: 195px;
  }
  .ftr-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 920px) {
  .hdr-nav,
  .hdr-actions {
    display: none;
  }
  .burger {
    display: flex;
    margin-left: auto;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-layout,
  .platform-story {
    grid-template-columns: 1fr;
  }
  .hero-in {
    max-width: 760px;
  }
  .hero-visual {
    min-height: 520px;
    max-width: 720px;
  }
  .hero-photo,
  .hero-photo img {
    min-height: 520px;
  }
  .stats--hero {
    grid-template-columns: 1fr 1fr;
  }
  .story-photo,
  .story-photo img {
    min-height: 500px;
    height: 500px;
  }
  .story-link {
    justify-content: flex-start;
  }
  .features-hero-grid,
  .feature-group {
    grid-template-columns: 1fr;
  }
  .features-hero-copy {
    max-width: 760px;
  }
  .features-hero-visual {
    min-height: 480px;
    max-width: 760px;
  }
  .features-hero-visual img {
    height: 480px;
  }
  .feature-group--flip .feature-group-intro,
  .feature-group--flip .feature-items {
    grid-column: auto;
    grid-row: auto;
  }
  .feature-group-intro {
    position: static;
  }
  .feature-group--flip .feature-group-intro {
    order: 0;
  }
  .feature-group--flip .feature-items {
    order: 1;
  }
  .feature-group-media {
    max-width: 720px;
  }
}

@media (max-width: 620px) {
  :root {
    --sect-y: 56px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .ftr-top {
    grid-template-columns: 1fr;
  }
  .plan-limits {
    grid-template-columns: 1fr 1fr;
  }
  .calc::before {
    inset: 0 24px auto;
  }
  .btn-row .btn {
    width: 100%;
  }
  .hero {
    padding-top: 42px;
  }
  .hero-layout {
    gap: 34px;
  }
  .hero-visual,
  .hero-photo,
  .hero-photo img {
    min-height: 430px;
  }
  .hero-photo {
    border-radius: 20px;
  }
  .hero-photo img {
    object-position: 67% center;
  }
  .hero-float {
    padding: 10px 12px;
  }
  .hero-float--top {
    top: 16px;
    left: 10px;
  }
  .hero-float--bottom {
    left: 10px;
    bottom: 18px;
  }
  .stats--hero {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .story-photo,
  .story-photo img {
    min-height: 430px;
    height: 430px;
  }
  .story-caption {
    right: 22px;
    bottom: 22px;
    left: 22px;
  }
  .story-features {
    grid-template-columns: 1fr;
  }
  .story-feature {
    flex-direction: row;
    padding: 18px;
  }
  .features-hero {
    padding-top: 42px;
  }
  .features-hero-visual {
    min-height: 405px;
    border-radius: 20px;
  }
  .features-hero-visual img {
    height: 405px;
    object-position: 62% center;
  }
  .features-hero-badge {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }
  .feature-items {
    grid-template-columns: 1fr;
  }
  .feature-item,
  .feature-item:last-child:nth-child(odd) {
    grid-column: auto;
    min-height: 0;
  }
  .feature-group-media,
  .feature-group-media img {
    min-height: 300px;
    height: 300px;
  }
  .features-deeper-head {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }
  .features-deeper-head .lede {
    text-align: left;
  }
  .fup-row {
    flex-direction: column;
    gap: 2px;
  }
  .fup-row .fl,
  .fup-row .fv {
    max-width: none;
    text-align: left;
  }
}

/* ------------------------------------------------------------
   Clients
   ------------------------------------------------------------ */

.clients-hero {
  overflow: hidden;
}
.clients-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, 0.95fr);
  align-items: center;
  gap: clamp(42px, 7vw, 90px);
}
.clients-hero-copy {
  position: relative;
  z-index: 1;
}
.client-portrait-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  position: relative;
  isolation: isolate;
}
.client-portrait-wall::before {
  content: '';
  position: absolute;
  inset: 7% -9% -7%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 201, 167, 0.16), transparent 68%);
  filter: blur(18px);
}
.client-portrait-tile {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}
.client-portrait-tile--1 {
  transform: translateY(22px);
}
.client-portrait-tile--2 {
  transform: translateY(-10px);
}
.client-portrait-tile--3 {
  transform: translateY(12px);
}
.client-portrait-tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #edf9fb;
}
.client-portrait-tile figcaption {
  display: grid;
  gap: 1px;
  padding: 10px 11px 11px;
  line-height: 1.25;
}
.client-portrait-tile strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.client-portrait-tile span {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-card {
  gap: 0;
  overflow: hidden;
}
.client-grid .client-card {
  position: relative;
  background:
    radial-gradient(circle at 40px 34px, rgba(0, 201, 167, 0.09), transparent 130px),
    var(--surface);
}
.client-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.client-card-head > div:first-child,
.client-card-head > div:last-child {
  min-width: 0;
}
.client-photo {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 201, 167, 0.26);
  background: #edf9fb;
  box-shadow:
    0 0 0 5px rgba(0, 201, 167, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.2);
}
.client-role {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Quote sits below the client's own description, visually subordinate to
   it — the description is what RioPlay states, the quote is theirs. */
.client-quote {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 2px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(0, 201, 167, 0.05);
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

.client-card--flagship {
  background: linear-gradient(180deg, rgba(0, 201, 167, 0.06), var(--surface) 46%);
  border-color: rgba(0, 201, 167, 0.24);
  padding: clamp(26px, 4vw, 40px);
}
.client-card--flagship .client-card-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}
.client-card--flagship .client-quote {
  max-width: 70ch;
}

@media (max-width: 620px) {
  .client-card-head {
    gap: 11px;
  }
  .client-grid .client-photo {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 900px) {
  .clients-hero-grid {
    grid-template-columns: 1fr;
  }
  .client-portrait-wall {
    max-width: 640px;
  }
}

@media (max-width: 520px) {
  .client-portrait-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .client-portrait-tile {
    transform: none;
  }
}

/* Monogram stand-in for a client with no cleared portrait. Reads as a
   deliberate mark rather than a missing image. */
.client-monogram {
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--teal);
  background: var(--teal-glow);
  border: 1px solid rgba(0, 201, 167, 0.3);
}
/* In the hero strip it inherits the avatar footprint, so only the type
   scale needs adjusting down. */
.stat-proof-mark.client-monogram {
  font-size: 0.8rem;
}

/* Factual deployment notes. Carries a card that has no quote yet. */
.client-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.client-highlights li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--text-dim);
}
.client-highlights svg {
  color: var(--teal);
  flex: none;
}
