:root {
  /* Bar height for hero math + body offset (fixed header sits out of flow) */
  --site-header-height: 4.25rem;
  --header-bar-offset: var(--site-header-height);
  --hero-section-pad-top: 2rem;
  --bg: #ffffff;
  --bg-warm: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #ff7a18;
  --accent: #e8940c;
  --accent-soft: #ffcb2f;
  --blue-accent: #0ea5e9;
  --blue-deep: #0284c7;
  --border: rgba(15, 23, 42, 0.1);
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --header-silver: linear-gradient(180deg, #eef1f5 0%, #e2e7ee 40%, #d5dce5 100%);
  --header-border: rgba(71, 85, 105, 0.28);
  --header-text: #1e293b;
  --header-text-soft: #475569;
  --header-cta-fg: #ffffff;
  /* Global page backdrop (index, portal, login, etc. — path is relative to this stylesheet) */
  --page-bg-image: url("Images/background.jpg");
  --page-bg-overlay: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.33) 0%,
    rgba(248, 250, 252, 0.27) 40%,
    rgba(255, 255, 255, 0.35) 100%
  );
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  color-scheme: light;
  scroll-padding-top: var(--header-bar-offset);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  padding-top: var(--header-bar-offset);
  font-family: "Inter", sans-serif;
  color: var(--text);
  line-height: 1.45;
  background: #ffffff;
}

body.portal-page {
  background-color: var(--surface-soft);
  background-image: var(--page-bg-overlay), var(--page-bg-image);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
  background-attachment: fixed, fixed;
}

main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.demo-app-embed {
  position: fixed;
  top: calc(var(--site-header-height) + 0.75rem);
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: calc(100vh - var(--site-header-height) - 0.75rem);
  height: calc(100dvh - var(--site-header-height) - 0.75rem);
  background: #ffffff;
  overflow: hidden;
  z-index: 2500;
}

.demo-app-embed[hidden] {
  display: none !important;
}

.demo-app-embed__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

body.demo-app-embed-active {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header,
.header-nav-wrap {
    transform: none !important;
    overflow: visible !important;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem clamp(1rem, 4vw, 1.5rem);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  /* Dark blue header bar */
  background-image:
    radial-gradient(
      ellipse 125% 240% at 50% 28%,
      rgba(2, 6, 23, 0.72) 0%,
      rgba(2, 6, 23, 0.5) 38%,
      rgba(2, 6, 23, 0.28) 56%,
      transparent 72%
    ),
    radial-gradient(
      ellipse 95% 200% at 46% 62%,
      rgba(30, 58, 138, 0.28) 0%,
      rgba(30, 58, 138, 0.08) 48%,
      transparent 64%
    ),
    linear-gradient(180deg, rgba(8, 18, 46, 0.96) 0%, rgba(4, 12, 33, 0.94) 100%);
  background-color: #0b1738;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 8px 24px rgba(2, 6, 23, 0.35);
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.site-header.is-scrolled {
  background-image:
    radial-gradient(
      ellipse 120% 220% at 50% 32%,
      rgba(2, 6, 23, 0.62) 0%,
      rgba(2, 6, 23, 0.32) 40%,
      transparent 68%
    ),
    radial-gradient(
      ellipse 90% 190% at 48% 58%,
      rgba(30, 58, 138, 0.18) 0%,
      transparent 58%
    ),
    linear-gradient(180deg, rgba(6, 14, 38, 0.92) 0%, rgba(3, 10, 30, 0.86) 100%);
  border-bottom-color: rgba(148, 163, 184, 0.24);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 10px 30px rgba(2, 6, 23, 0.45);
}

.site-header .portal-header-user {
  color: rgba(226, 232, 240, 0.88);
}

.site-header .portal-header-user strong {
  color: #f8fafc;
}

/* Login / portal: logo centered, home icon right */
.site-header--auth {
  gap: 1rem;
}

.site-header--auth .brand {
  grid-column: 2;
  justify-self: center;
  width: auto;
  max-width: none;
}

.site-header--auth .site-header__auth-back {
  grid-column: 3;
  justify-self: end;
}

.site-header__auth-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  flex-shrink: 0;
  color: #ffffff;
  text-decoration: none;
  border: none;
  background: linear-gradient(155deg, #ff8c38 0%, var(--primary) 42%, #e8680c 100%);
  border-radius: 50%;
  box-shadow:
    0 4px 16px rgba(255, 122, 24, 0.55),
    0 2px 6px rgba(2, 6, 23, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.site-header__auth-back:hover {
  color: #ffffff;
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow:
    0 8px 24px rgba(255, 122, 24, 0.6),
    0 4px 10px rgba(2, 6, 23, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.site-header__auth-back:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.site-header__auth-back:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 3px;
  border-radius: 50%;
}

.site-header__auth-back-icon {
  display: block;
  flex-shrink: 0;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  grid-column: 2;
  justify-self: center;
  width: auto;
  max-width: min(240px, 46vw);
  min-width: 0;
  color: var(--header-text);
}

.brand__lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.brand__lockup:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
  border-radius: 0.35rem;
}

.brand__caption {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(226, 232, 240, 0.78);
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.brand__divider {
  display: none;
  width: 1px;
  height: 1.75rem;
  flex-shrink: 0;
  align-self: center;
  background: rgba(148, 163, 184, 0.5);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.2);
}

.brand__by {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1;
  flex-shrink: 0;
}

.brand__myo-link {
  display: none;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  text-decoration: none;
  color: rgba(226, 232, 240, 0.82);
  transition: opacity 0.2s ease, color 0.2s ease;
}

.brand__myo-link:hover {
  color: rgba(248, 250, 252, 0.95);
  opacity: 0.95;
}

.brand__myo-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
  border-radius: 0.35rem;
}

.brand__myo-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 1;
  mix-blend-mode: normal;
}

.brand-logo {
  width: auto;
  max-width: 100%;
  max-height: 48px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(255, 122, 24, 0.22));
}

/* Marketing header: logo centered (col 2), menu icon col 3 */
.header-nav-wrap {
  position: relative;
  grid-column: 3;
  justify-self: end;
  flex-shrink: 0;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(71, 85, 105, 0.38);
  background: rgba(255, 255, 255, 0.65);
  color: var(--header-text);
  border-radius: 0.65rem;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(71, 85, 105, 0.5);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.menu-toggle__icon {
  display: block;
  flex-shrink: 0;
}

.main-nav {
  display: none;
  position: fixed;
  top: calc(var(--site-header-height) + 0.35rem);
  right: clamp(0.6rem, 2.4vw, 1rem);
  z-index: 3100;
  min-width: min(280px, calc(100vw - 2rem));
  flex-direction: column;
  align-items: stretch;
  gap: 0.15rem;
  padding: 0.5rem 0;
  margin: 0;
  max-height: calc(100dvh - var(--site-header-height) - 1rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, rgba(244, 246, 249, 0.52) 0%, rgba(232, 236, 241, 0.52) 100%);
  border: 1px solid var(--header-border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

.main-nav.open {
  display: flex;
}

.main-nav a {
  color: var(--header-text-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
  border-radius: 0;
}

.main-nav a:hover {
  color: var(--header-text);
  background: rgba(255, 255, 255, 0.5);
}

.main-nav a:not(.nav-cta):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.main-nav .nav-cta {
  margin: 0.35rem 0.75rem 0.5rem;
  text-align: center;
  color: var(--header-cta-fg);
  border: 1px solid rgba(234, 88, 12, 0.45);
  background: linear-gradient(120deg, var(--primary), #ea580c);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 122, 24, 0.35);
}

.main-nav .nav-cta:hover {
  filter: brightness(1.05);
  color: var(--header-cta-fg);
  background: linear-gradient(120deg, var(--primary), #ea580c);
}

.main-nav .nav-demo {
  margin: 0.35rem 0.75rem 0.5rem;
  text-align: center;
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.5);
  background: linear-gradient(120deg, #38bdf8, #7dd3fc);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.32);
}

.main-nav .nav-demo:hover {
  filter: brightness(1.05);
  color: #ffffff;
  background: linear-gradient(120deg, #38bdf8, #7dd3fc);
}

body.demo-app-embed-active .main-nav a[href^="#"]:not(.nav-demo) {
  display: none;
}

/* Desktop adaptive nav: inline in bar when space allows (JS toggles .nav-inline) */
@media (min-width: 769px) {
  .site-header.nav-inline .header-nav-wrap {
    position: static;
    display: flex;
    align-items: center;
    justify-self: end;
    min-width: 0;
  }

  .site-header.nav-inline .menu-toggle {
    display: none;
  }

  .site-header.nav-inline .main-nav {
    display: flex;
    position: static;
    top: auto;
    right: auto;
    z-index: auto;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-header.nav-inline .main-nav a {
    color: rgba(226, 232, 240, 0.92);
    font-size: 0.84rem;
    white-space: nowrap;
    padding: 0.45rem 0.62rem;
    border-radius: 0.55rem;
  }

  .site-header.nav-inline .main-nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
  }

  .site-header.nav-inline .main-nav .nav-cta {
    margin: 0 0 0 0.3rem;
    padding: 0.45rem 0.78rem;
    font-size: 0.82rem;
  }

  .site-header.nav-inline .main-nav .nav-demo {
    margin: 0;
    padding: 0.45rem 0.78rem;
    font-size: 0.82rem;
  }
}

.section {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding: 4rem clamp(1rem, 4vw, 1.5rem);
}

/* Customer types was moved under hero slideshow: reduce vertical gap to dots */
#hero #usecases.section {
  padding-top: 1.5rem;
  padding-bottom: 0.8rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  margin-bottom: 0.5rem;
  color: #1e3a8a;
}

.eyebrow {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 82px);
  padding-top: 2rem;
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  line-height: 1.15;
}

h3 {
  color: #1e3a8a;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.subtagline,
.section-title p:last-child {
  color: var(--muted);
}

.hero .subtagline {
  color: var(--primary);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
  justify-content: center;
  align-items: stretch;
  flex-shrink: 0;
}

.hero .hero-actions .btn,
.final-cta .hero-actions .btn {
  flex: 1 1 280px;
  max-width: 360px;
  min-height: 3rem;
  padding: 0.78rem 1.25rem;
  box-sizing: border-box;
}

.hero-copy {
  max-width: 900px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-fold {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
  flex: 0 1 auto;
  min-height: 0;
  padding-top: 0.8rem;
  /* Entire block (headings + viewport + dots) must fit under the header on first paint */
  max-height: calc(
    100svh - var(--site-header-height) - var(--hero-section-pad-top) -
      env(safe-area-inset-bottom, 0px)
  );
}

.hero-fold h1,
.hero-fold .subtagline {
  flex-shrink: 0;
}

.hero-fold h1 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.62rem, 4.04vw, 3.07rem);
  color: var(--primary);
  background: linear-gradient(120deg, var(--primary), var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-fold .subtagline {
  margin-bottom: 0.35rem;
}

.hero-subtitle-dark {
  margin: 0 0 1.25rem;
  max-width: 54rem;
  color: #1e3a8a;
  font-size: clamp(1.19rem, 2.75vw, 1.4rem);
  line-height: 1.35;
  font-weight: 500;
}

.btn {
  border: 0;
  border-radius: 0.8rem;
  padding: 0.78rem 1rem;
  color: var(--text);
  background: var(--surface-soft);
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(120deg, var(--primary), var(--accent-soft));
  box-shadow: 0 4px 14px rgba(255, 122, 24, 0.35);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.btn-demo {
  color: #ffffff;
  background: linear-gradient(120deg, #38bdf8, #7dd3fc);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.32);
}

.btn-ghost {
  background: transparent;
  border: 1px dashed rgba(15, 23, 42, 0.22);
  color: var(--muted);
}

.small {
  padding: 0.55rem 0.8rem;
}

.hero-slideshow-wrap {
  margin-top: 0.75rem;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: 0.4rem;
}

.slideshow {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.slideshow-shell {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.slideshow-arrow {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  min-height: 3rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--surface);
  color: var(--header-text);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, color 0.2s ease;
}

.slideshow-arrow:hover {
  background: var(--surface-soft);
  color: var(--primary);
}

.slideshow-arrow:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.slideshow-viewport {
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.5);
  touch-action: manipulation;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.slideshow-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.slideshow-slide {
  flex-shrink: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  align-self: stretch;
}

.slideshow-slide-inner {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  min-height: 0;
  max-height: 100%;
}

.slideshow-card {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.65rem;
}

.slideshow-card img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 0.75rem;
}

.slideshow-card img.zoom-out {
  transform: scale(0.88);
  transform-origin: center;
}

/* Reduce first GIF visual height to match adjacent image */
.slideshow-card img.slideshow-img-match-height {
  height: auto;
  width: auto;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.slideshow-caption {
  flex: 0 0 auto;
  padding: 0.5rem 0.85rem 0.55rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.slideshow-caption-title {
  margin: 0 0 0.25rem;
  font-size: 1.14rem;
  font-weight: 700;
  color: #1e3a8a;
}

.slideshow-caption-desc {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--muted);
}

.slideshow-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.35rem;
  width: 100%;
  flex-shrink: 0;
}

.slideshow-dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.slideshow-dot[aria-selected="true"] {
  background: var(--primary);
  transform: scale(1.15);
}

.slideshow-dot:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.showcase-grid,
.example-grid,
.pricing-grid,
.testimonials-section .testimonials-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(12, 1fr);
}

.visual-card,
.example-card,
.price-card,
.portal-card,
.flow-step,
.sdk-card,
.code-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.visual-card {
  grid-column: span 4;
}

/* Testimonials: bare images in the grid — no card, shadow, or frame */
.testimonial-float {
  grid-column: span 4;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform 0.55s cubic-bezier(0.34, 1.45, 0.45, 1);
  will-change: transform;
}

.testimonials-section .testimonial-float:hover,
.testimonials-section .testimonial-float:focus-within {
  transform: translateY(-10px);
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-section .testimonial-float {
    transition: none;
  }

  .testimonials-section .testimonial-float:hover,
  .testimonials-section .testimonial-float:focus-within {
    transform: none;
  }
}

.testimonial-float__img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.testimonials-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.testimonials-pager[hidden] {
  display: none !important;
}

.testimonials-pager__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.22);
  border-radius: 0.65rem;
  background: transparent;
  color: var(--header-text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.testimonials-pager__btn:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--primary);
  border-color: rgba(255, 122, 24, 0.45);
}

.testimonials-pager__btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.visual-card p,
.example-card p,
.price-card ul,
.portal-card p {
  color: var(--muted);
}

.visual {
  min-height: 148px;
  border-radius: 0.8rem;
  margin-bottom: 0.8rem;
}

/* Showcase media in <img> (GIF + photos) — uniform frame height, aspect ratio preserved */
.visual--overlay-gif,
.visual--symmetry-img,
.visual--dashboard-img,
.visual--beforeafter-img,
.visual--recommendation-img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--border);
  box-sizing: border-box;
  height: clamp(10rem, 26vw, 12.75rem);
  min-height: clamp(10rem, 26vw, 12.75rem);
}

.visual--overlay-gif img,
.visual--symmetry-img img,
.visual--dashboard-img img,
.visual--beforeafter-img img,
.visual--recommendation-img img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 0.65rem;
  cursor: zoom-in;
}

/* Fullscreen preview for showcase images */
.showcase-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 0;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* script.js sets px from visualViewport — fixes iOS fixed + % centering drift */
  --showcase-lb-x: 50%;
  --showcase-lb-y: 50%;
}

.showcase-lightbox.is-open {
  display: block;
}

.showcase-lightbox__close {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top, 0px));
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.showcase-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.showcase-lightbox__close:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.showcase-lightbox__stage {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
}

.showcase-lightbox__img {
  position: fixed;
  left: var(--showcase-lb-x);
  top: var(--showcase-lb-y);
  transform: translate(-50%, -50%);
  z-index: 1;
  max-width: calc(100vw - 2rem);
  max-height: calc(
    100svh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 2rem
  );
  max-height: calc(
    100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 2rem
  );
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 0.35rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.muscle {
  background: linear-gradient(145deg, #ff9f2e, #ff5f1f);
}

.symmetry {
  background:
    linear-gradient(90deg, rgba(14, 165, 233, 0.2), rgba(14, 165, 233, 0.2)),
    linear-gradient(145deg, #e2e8f0, #cbd5e1);
}

.dashboard {
  background: radial-gradient(circle at 30% 40%, #ffcb2f 5%, #ff7a18 52%);
}

.before-after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 49%, rgba(14, 165, 233, 0.35) 51%),
    linear-gradient(145deg, #ffb22f, #ff5f1f);
}

.recommendations {
  background: linear-gradient(145deg, #38bdf8, #0ea5e9);
}

.flow-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(5, 1fr);
}

/* Desktop: enforce one common title block height so image frames share same Y */
@media (min-width: 769px) {
  #implementation .flow-step h3 {
    min-height: 4.5em;
  }
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.step-visual {
  min-height: 95px;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.upload {
  padding: 0.5rem;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload img {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  border-radius: 0.45rem;
}

.analyze {
  padding: 0.5rem;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.analyze img {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  border-radius: 0.45rem;
}

.login-app {
  padding: 0.5rem;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-app img {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  border-radius: 0.45rem;
}

.data {
  padding: 0.5rem;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.data img {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  border-radius: 0.45rem;
}

.insights {
  padding: 0.5rem;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.insights img {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  border-radius: 0.45rem;
}

.example-card {
  grid-column: span 6;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.pill-grid span {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
}

.price-card {
  grid-column: span 4;
}

.featured {
  outline: 2px solid rgba(255, 122, 24, 0.45);
}

.price {
  font-size: 1.55rem;
  font-weight: 700;
}

.addons {
  margin-top: 2rem;
  text-align: center;
}

.integration-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
}

.sdk-icons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sdk-icons span {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.85rem;
}

pre {
  margin: 0;
  overflow-x: auto;
}

code {
  color: var(--text);
}

.security {
  text-align: center;
}

.security-list {
  list-style: none;
  padding: 0;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.security-list li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  background: var(--surface-soft);
}

.portal-tabs {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  justify-content: center;
}

.tab-btn {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  font-weight: 600;
}

.tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: transparent;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.portal-card {
  grid-column: span 4;
}

#dashboard .dashboard-wide-card {
  grid-column: span 6;
}

.api-key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.api-key-row p {
  margin: 0;
  word-break: break-all;
}

.api-key-toggle {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 0.45rem;
  min-width: 2rem;
  height: 2rem;
  cursor: pointer;
}

.graph-card {
  grid-column: span 8;
}

.fake-graph,
.fake-bars {
  min-height: 120px;
  border-radius: 0.8rem;
  background: linear-gradient(180deg, #fed7aa, #bae6fd);
}

.fake-bars {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 122, 24, 0.2),
      rgba(255, 122, 24, 0.2) 14px,
      transparent 14px,
      transparent 28px
    ),
    #e0f2fe;
}

.usage-chart {
  position: relative;
  min-height: 140px;
  border-radius: 0.8rem;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(254, 215, 170, 0.38), rgba(186, 230, 253, 0.45));
  padding: 0.55rem 0.55rem 0.55rem 2.35rem;
}

.usage-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0.15rem 0 0.55rem;
  padding: 0.2rem;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.62);
}

.usage-view-toggle__btn {
  border: 0;
  border-radius: 0.5rem;
  padding: 0.3rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1e3a8a;
  background: transparent;
  cursor: pointer;
}

.usage-view-toggle__btn.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.usage-chart.is-daily .usage-chart__y-label--max {
  color: var(--muted);
  transform: translateY(50%);
}

.usage-chart__axis {
  position: absolute;
  background: rgba(71, 85, 105, 0.52);
  z-index: 2;
}

.usage-chart__axis--y {
  left: 2.35rem;
  top: 0.55rem;
  bottom: 0.55rem;
  width: 1px;
}

.usage-chart__axis--x {
  left: 2.35rem;
  right: 0.55rem;
  bottom: 0.55rem;
  height: 1px;
}

.usage-chart__bars {
  position: absolute;
  inset: 0.55rem 0.55rem 0.55rem 2.35rem;
  display: grid;
  align-items: end;
  gap: 2px;
  z-index: 5;
  pointer-events: auto;
}

.usage-chart__bar {
  min-width: 0;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #38bdf8 0%, #0ea5e9 100%);
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 6;
}

.usage-chart__max-line {
  position: absolute;
  left: 2.35rem;
  right: 0.55rem;
  border-top: 2px solid #ef4444;
  opacity: 0.95;
  z-index: 2;
}

.usage-chart__warn-line {
  position: absolute;
  left: 2.35rem;
  right: 0.55rem;
  border-top: 2px solid #a21caf;
  opacity: 0.95;
  z-index: 3;
}

.usage-chart__y-label--warn {
  z-index: 4;
  transform: translateY(50%);
  color: #a21caf;
  font-weight: 700;
}

.usage-chart__line-layer {
  position: absolute;
  inset: 0.55rem 0.55rem 0.55rem 2.35rem;
  width: calc(100% - 2.9rem);
  height: calc(100% - 1.1rem);
  z-index: 4;
  overflow: visible;
  pointer-events: all;
}

.usage-chart__line-path {
  fill: none;
  stroke: #f97316;
  stroke-width: 1.9;
  pointer-events: none;
}

.usage-chart__line-capture {
  fill: transparent;
  pointer-events: all;
}

.usage-chart__hover-layer {
  position: absolute;
  inset: 0.55rem 0.55rem 0.55rem 2.35rem;
  z-index: 7;
  pointer-events: none;
}

.usage-chart__line-hit {
  fill: transparent;
  stroke: transparent;
  pointer-events: all;
}

.usage-chart__tooltip {
  position: absolute;
  z-index: 8;
  left: 0;
  top: 0;
  transform: translate(-50%, -120%);
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.42rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.35rem;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.28);
}

.usage-chart__y-label {
  position: absolute;
  left: 0.42rem;
  width: 1.62rem;
  text-align: right;
  font-size: 0.72rem;
  line-height: 1;
  color: var(--muted);
  font-weight: 600;
}

.usage-chart__y-label--max {
  z-index: 4;
  transform: translateY(50%);
  color: #ef4444;
}

.usage-chart__meta {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.final-cta {
  text-align: center;
}

.final-cta h2 {
  color: #1e3a8a;
}

/* Portal login (login.html) */
.login-page {
  display: flex;
  justify-content: center;
  padding-top: 1rem;
  padding-bottom: 3rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.login-card h1 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin: 0.35rem 0 0;
  line-height: 1.25;
}

.login-lead {
  margin-top: 0.65rem;
  margin-bottom: 0;
  text-align: left;
}

.login-form {
  margin-top: 1.25rem;
}

.login-form label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.login-form label:first-of-type {
  margin-top: 0;
}

.login-form input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  font: inherit;
  background: var(--bg);
  color: var(--text);
}

.login-form input:focus {
  outline: 2px solid rgba(255, 122, 24, 0.45);
  outline-offset: 2px;
  border-color: rgba(255, 122, 24, 0.35);
}

.login-forgot-row {
  margin: 0.25rem 0 0;
  text-align: right;
}

.login-forgot {
  border: 0;
  padding: 0;
  background: none;
  color: var(--blue-deep);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.login-forgot:hover {
  color: #0369a1;
}

.login-forgot:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.login-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.65rem 0 0;
  line-height: 1.35;
}

.login-submit {
  width: 100%;
  margin-top: 1.35rem;
}

.login-back {
  margin: 1.35rem 0 0;
  font-size: 0.9rem;
}

.login-back a {
  color: var(--blue-deep);
  font-weight: 600;
  text-decoration: none;
}

.login-back a:hover {
  text-decoration: underline;
}

.login-panel {
  width: 100%;
}

.login-switch {
  margin: 1.15rem 0 0;
  text-align: center;
  font-size: 0.92rem;
}

.login-text-btn {
  border: 0;
  padding: 0;
  background: none;
  color: var(--primary);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.login-text-btn:hover {
  color: #ea580c;
}

.login-form-error {
  color: #b91c1c;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0.5rem 0 0;
}

/* portal.html: session + sign-out in header */
.site-header--portal .site-header__portal-tray {
  grid-column: 3;
  justify-self: end;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
  min-width: 0;
  max-width: min(52vw, 400px);
}

.portal-header-user {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--header-text-soft);
  text-align: right;
  min-width: 0;
}

.portal-header-user strong {
  color: var(--header-text);
  font-weight: 700;
}

.site-header__sign-out-wrap {
  position: relative;
  flex-shrink: 0;
}

.site-header__sign-out {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.15rem;
  border: none;
  background: transparent;
  box-shadow: none;
  color: inherit;
  border-radius: 0.5rem;
  cursor: pointer;
  font: inherit;
  transition: transform 0.18s ease;
}

.site-header__sign-out:hover {
  transform: translateY(-1px);
}

.site-header__sign-out:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 122, 24, 0.45);
}

/* Shell = floating shadows; img = recolor to --primary (#ff7a18) — avoids mask URL / compositing issues */
.site-header__sign-out-icon-shell {
  display: inline-flex;
  line-height: 0;
  filter: drop-shadow(0 3px 10px rgba(15, 23, 42, 0.2))
    drop-shadow(0 1px 3px rgba(255, 122, 24, 0.28));
}

.site-header__sign-out:hover .site-header__sign-out-icon-shell {
  filter: drop-shadow(0 5px 14px rgba(15, 23, 42, 0.25))
    drop-shadow(0 2px 6px rgba(255, 122, 24, 0.32));
}

.site-header__sign-out-icon {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  pointer-events: none;
  /* Black/dark glyph → UI primary orange (matches #ff7a18) */
  filter: brightness(0) saturate(100%) invert(54%) sepia(98%) saturate(1800%) hue-rotate(359deg)
    brightness(102%) contrast(101%);
}

.site-header__sign-out-bubble {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  padding: 0.4rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.94);
  border-radius: 0.45rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.15s ease,
    visibility 0.15s ease;
  z-index: 60;
  box-shadow: var(--shadow-sm);
}

.site-header__sign-out-bubble::before {
  content: "";
  position: absolute;
  bottom: 100%;
  right: 0.85rem;
  border: 6px solid transparent;
  border-bottom-color: rgba(15, 23, 42, 0.94);
}

.site-header__sign-out-wrap:hover .site-header__sign-out-bubble,
.site-header__sign-out-wrap:focus-within .site-header__sign-out-bubble {
  opacity: 1;
  visibility: visible;
}

/* Portal: show main dashboard vs setup wizard (classes set in portal.html <head>) */
html.portal-ready-main #portal-setup-wizard {
  display: none !important;
}

html.portal-ready-main #portal {
  display: block !important;
}

.portal-intro-section {
  padding-bottom: 2rem;
  text-align: center;
}

.portal-intro-section h1 {
  color: #1e3a8a;
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  justify-self: center;
  display: block;
}

.portal-intro-section .eyebrow {
  text-align: center;
}

.portal-ready-wizard .portal-intro-section > .eyebrow {
  display: none;
}

.portal-app-name-subtitle {
  margin: 0.15rem auto 1rem;
  font-size: clamp(1.6rem, 3.2vw, 2rem);
  font-weight: 600;
  background: linear-gradient(120deg, var(--primary), var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portal-leave-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.portal-leave-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.portal-leave-modal__dialog {
  position: relative;
  width: min(94vw, 620px);
  margin: min(16vh, 120px) auto 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1.35rem 1.35rem 1.2rem;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.24);
}

.portal-modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.6rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.portal-leave-modal__dialog h3 {
  margin: 0 0 0.8rem;
  color: #1e3a8a;
  font-size: 1.12rem;
  line-height: 1.35;
  text-align: center;
}

.portal-leave-modal__icon {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(54%) sepia(98%) saturate(1800%) hue-rotate(359deg)
    brightness(102%) contrast(101%);
}

.portal-leave-modal__actions {
  display: flex;
  gap: 0.7rem;
}

.portal-leave-modal__btn {
  flex: 1 1 0;
  min-height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.portal-modal-open {
  overflow: hidden;
}

.demo-auth-modal,
.demo-terms-modal {
  position: fixed;
  inset: 0;
  z-index: 4200;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: max(1rem, env(safe-area-inset-top, 0px)) 1rem max(1rem, env(safe-area-inset-bottom, 0px));
  font-family: "Inter", system-ui, sans-serif;
  isolation: isolate;
}

.demo-auth-modal[hidden],
.demo-terms-modal[hidden] {
  display: none !important;
}

.demo-auth-modal__backdrop,
.demo-terms-modal__backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
}

.demo-auth-modal::before,
.demo-terms-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
  z-index: 0;
}

.demo-auth-modal__backdrop,
.demo-terms-modal__backdrop {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.demo-auth-modal__dialog,
.demo-terms-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: calc(100dvh - 2rem - env(safe-area-inset-bottom, 0px));
  margin: 0;
  background-image:
    radial-gradient(
      ellipse 125% 240% at 50% 28%,
      rgba(2, 6, 23, 0.72) 0%,
      rgba(2, 6, 23, 0.5) 38%,
      rgba(2, 6, 23, 0.28) 56%,
      transparent 72%
    ),
    radial-gradient(
      ellipse 95% 200% at 46% 62%,
      rgba(30, 58, 138, 0.28) 0%,
      rgba(30, 58, 138, 0.08) 48%,
      transparent 64%
    ),
    linear-gradient(180deg, rgba(8, 18, 46, 0.96) 0%, rgba(4, 12, 33, 0.94) 100%);
  background-color: #0b1738;
  color: #e2e8f0;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.55);
  overflow: hidden;
  animation: demo-modal-fade-in 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-auth-modal__dialog {
  width: min(400px, calc(100vw - 2rem));
  min-height: min(540px, calc(100dvh - 2rem));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 2rem 2rem 1.4rem;
  text-align: center;
}

.demo-auth-modal__close,
.demo-terms-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.demo-auth-modal__close:hover,
.demo-terms-modal__close:hover,
.demo-auth-modal__close:focus-visible,
.demo-terms-modal__close:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.28);
  outline: none;
}

.demo-auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.35rem;
}

.demo-auth-brand__mark {
  position: relative;
  width: auto;
  height: auto;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.demo-auth-brand__logo {
  display: block;
  width: auto;
  max-width: min(220px, 62vw);
  max-height: 64px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(255, 122, 24, 0.2));
}

.demo-auth-brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.demo-auth-brand__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.92);
}

.demo-auth-brand__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
}

.demo-terms-modal__dialog h3 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  color: #f8fafc;
}

.demo-auth-title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f8fafc;
}

.demo-auth-subtitle {
  margin: 0 auto 1.55rem;
  max-width: 20rem;
  font-size: 0.96rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.82);
}

.demo-auth-google-shell {
  position: relative;
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.demo-auth-google-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  background-size: 200% 100%;
  animation: demo-shimmer 1.6s linear infinite;
  opacity: 0;
  transition: opacity 180ms ease;
}

.demo-auth-google-shell:has(.demo-auth-google-btn:empty)::before,
.demo-auth-google-shell:has(iframe):before {
  opacity: 0;
}

.demo-auth-modal__cancel {
  margin: 1rem auto 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.demo-auth-modal__cancel:hover,
.demo-auth-modal__cancel:focus-visible,
.demo-terms-modal__actions .btn:hover,
.demo-terms-modal__actions .btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(2, 6, 23, 0.26);
  outline: none;
}

.demo-auth-google-btn {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  overflow: hidden;
}

.demo-auth-google-btn:empty {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.demo-auth-google-btn:empty::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  background-size: 200% 100%;
  animation: demo-shimmer 1.35s linear infinite;
}

.demo-auth-google-btn iframe {
  border-radius: 999px;
}

.demo-terms-modal__header {
  padding: 1.4rem 1.4rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-terms-modal__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.92);
}

.demo-terms-modal__subtitle {
  margin: 0.45rem 0 0;
  max-width: 34rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.78);
}

.demo-terms-modal__body {
  max-height: min(62vh, 560px);
  overflow: auto;
  padding: 1rem 1.4rem 1.15rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.9);
}

.demo-terms-modal__body,
.demo-terms-modal__body p,
.demo-terms-modal__body ul,
.demo-terms-modal__body li {
  color: rgba(226, 232, 240, 0.9);
}

.demo-terms-modal__body .static-subpage__list li,
.demo-terms-modal__body .static-subpage__ordered li,
.demo-terms-modal__body .static-subpage__body,
.demo-terms-modal__body .static-subpage__body p {
  color: rgba(226, 232, 240, 0.9);
}

.demo-terms-modal__body h2,
.demo-terms-modal__body h3 {
  color: #f8fafc;
  font-size: 1rem;
  margin: 0.9rem 0 0.35rem;
  line-height: 1.3;
}

.demo-terms-modal__body p,
.demo-terms-modal__body ul {
  margin: 0 0 0.75rem;
}

.demo-terms-modal__body ul {
  padding-left: 1.2rem;
}

.demo-terms-modal__body li::marker {
  color: rgba(226, 232, 240, 0.9);
}

.demo-terms-modal__body a,
.demo-terms-modal__body .static-subpage__body a {
  color: #7dd3fc;
}

.demo-terms-modal__body a:hover,
.demo-terms-modal__body .static-subpage__body a:hover {
  color: #bae6fd;
}

.demo-terms-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 1rem 1.4rem 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-terms-modal__actions .btn {
  min-height: 3rem;
  padding-inline: 1.25rem;
  border-radius: 999px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.demo-terms-modal__actions .btn-primary {
  box-shadow: 0 16px 28px rgba(255, 122, 24, 0.22);
}

.demo-terms-modal__actions .btn-secondary {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

.demo-auth-modal__cancel:hover,
.demo-auth-modal__cancel:focus-visible,
.demo-terms-modal__actions .btn-secondary:hover,
.demo-terms-modal__actions .btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.demo-terms-modal__actions .btn-primary:hover,
.demo-terms-modal__actions .btn-primary:focus-visible {
  filter: brightness(1.05);
}

@keyframes demo-modal-fade-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes demo-modal-slide-up {
  from {
    opacity: 0;
    transform: translateY(42px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes demo-shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@media (max-width: 768px) {
  .demo-auth-modal,
  .demo-terms-modal {
    align-items: flex-end;
    padding: 0;
  }

  .demo-auth-modal__dialog,
  .demo-terms-modal__dialog {
    width: 100%;
    max-height: min(92dvh, calc(100dvh - 0.5rem));
    border-radius: 1.5rem 1.5rem 0 0;
    animation: demo-modal-slide-up 420ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .demo-terms-modal__body {
    max-height: calc(100dvh - 14rem);
  }

  .demo-auth-modal__dialog {
    width: 90%;
    min-height: auto;
    margin: 0 auto max(0.75rem, env(safe-area-inset-bottom, 0px));
    padding: 1.75rem 1.25rem 1.15rem;
  }

  .demo-terms-modal__dialog {
    margin: 0;
  }

  .demo-auth-brand {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .demo-auth-brand__mark {
    width: auto;
    height: auto;
  }

  .demo-auth-title {
    font-size: 1.55rem;
  }

  .demo-auth-subtitle {
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
  }

  .demo-auth-google-shell {
    min-height: 52px;
  }

  .demo-auth-modal__cancel {
    width: 100%;
  }

  .demo-terms-modal__header,
  .demo-terms-modal__body,
  .demo-terms-modal__actions {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .demo-terms-modal__actions {
    flex-direction: column-reverse;
  }

  .demo-terms-modal__actions .btn {
    width: 100%;
  }
}

@media (min-width: 769px) {
  .demo-auth-modal__dialog:hover,
  .demo-terms-modal__dialog:hover {
    box-shadow: 0 36px 90px rgba(2, 6, 23, 0.58);
  }
}

@media (min-width: 769px) {
  .portal-intro-section h1 {
    white-space: nowrap;
  }
}

.portal-setup-wizard {
  margin-top: 1.5rem;
  max-width: 72rem;
  margin-inline: auto;
  padding: clamp(0.75rem, 2vw, 1.2rem) clamp(1.25rem, 3vw, 2.35rem) clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(248, 250, 252, 0.5) 100%);
  border: 1px solid var(--header-border);
  border-radius: 1.15rem;
  box-shadow: var(--shadow-sm), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.portal-setup-title {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.02em;
}

.portal-setup-track {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1.25rem;
  counter-reset: portalstep;
}

.portal-setup-track__item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.portal-setup-track__dot {
  position: relative;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface-soft);
  flex-shrink: 0;
}

.portal-setup-track__item.is-pending .portal-setup-track__dot {
  border-style: dashed;
  opacity: 0.85;
}

.portal-setup-track__item.is-active {
  color: var(--text);
}

.portal-setup-track__item.is-active .portal-setup-track__dot {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary), #ea580c);
  box-shadow: 0 2px 10px rgba(255, 122, 24, 0.35);
}

.portal-setup-track__item.is-done {
  color: var(--muted);
}

.portal-setup-track__item.is-done .portal-setup-track__dot {
  border-color: rgba(34, 197, 94, 0.65);
  background: rgba(34, 197, 94, 0.15);
  box-shadow: none;
}

.portal-setup-track__item.is-done .portal-setup-track__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2.5'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E")
    center / 65% no-repeat;
}

.portal-setup-eyebrow {
  margin-bottom: 0.35rem;
}

.portal-setup-heading {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  color: var(--text);
}

.portal-setup-hint {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 42rem;
  line-height: 1.45;
}

.portal-setup-plan-grid .portal-plan-card {
  position: relative;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition:
    border-color 0.18s ease,
    border-width 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}

.portal-setup-plan-grid .portal-plan-card h3 {
  margin: 0;
  padding-right: 2.2rem;
  min-height: 1.55em;
  display: flex;
  align-items: center;
}

.portal-plan-loading {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.portal-plan-tier {
  display: grid;
  gap: 0.2rem;
  margin: 0 0 0.65rem;
}

.portal-plan-tier__label {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.portal-plan-tier__select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.45rem 0.55rem;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
}

.portal-plan-tier--placeholder .portal-plan-tier__label,
.portal-plan-tier--placeholder .portal-plan-tier__select {
  visibility: hidden;
}

.portal-plan-usage {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.portal-plan-savings + .portal-plan-usage {
  margin-top: 0.62rem;
}

.portal-plan-savings {
  margin: 0;
  color: #0f766e;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.portal-plan-savings--annual {
  color: var(--primary);
}

.portal-plan-savings--billing {
  color: var(--muted);
}

.portal-plan-savings--placeholder {
  visibility: hidden;
}

.portal-setup-plan-grid .portal-plan-card .price {
  font-size: 1.12rem;
  line-height: 1.3;
  font-weight: 700;
  white-space: nowrap;
  margin: 0;
}

/* Main-site pricing: keep all plan text rows aligned */
#pricing .portal-plan-card {
  display: grid;
  grid-template-rows: minmax(1.7rem, auto) minmax(3.2rem, auto) auto 1.35rem minmax(3.2rem, auto) auto;
  row-gap: 0.3rem;
  align-content: start;
}

#pricing .portal-plan-card h3 {
  margin: 0;
  padding-right: 2.2rem;
}

#pricing .portal-plan-card .price {
  margin: 0;
}

#pricing .portal-plan-card .portal-plan-savings {
  margin: 0;
}

#pricing .portal-plan-card .portal-plan-usage {
  margin: 0;
}

#pricing .portal-plan-card .btn {
  margin-top: 0.35rem;
  justify-self: start;
}

#pricing .portal-plan-card,
#pricing .portal-plan-card.featured,
#pricing .portal-plan-card.is-selected {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  outline: none;
  cursor: pointer;
}

#billing .portal-current-plan-card {
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

#billing .portal-current-plan-card h3 {
  margin: 0;
  padding-right: 0;
}

.portal-plan-tier-static {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#billing .portal-current-plan-card .btn {
  margin-top: 0.5rem;
  align-self: flex-start;
}

.portal-plan-modal__dialog {
  width: min(94vw, 980px);
}

#portal-plan-confirm-copy {
  margin: 0 0 1rem;
  color: var(--text);
  line-height: 1.45;
}

/* “Popular” middle tier: blue accent — different from orange *selected* state */
.portal-setup-plan-grid .price-card.featured:not(.is-selected) {
  outline: none;
  border-color: rgba(14, 165, 233, 0.42);
  background: linear-gradient(
    165deg,
    rgba(14, 165, 233, 0.07) 0%,
    var(--surface) 46%
  );
  box-shadow:
    0 0 0 1px rgba(14, 165, 233, 0.22),
    0 10px 32px rgba(14, 165, 233, 0.08),
    var(--shadow-sm);
}

.portal-plan-ribbon {
  position: absolute;
  top: 2.05rem;
  right: 0.75rem;
  z-index: 1;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0c4a6e;
  background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 100%);
  border: 1px solid rgba(14, 165, 233, 0.45);
  border-radius: 0.35rem;
  padding: 0.22rem 0.45rem;
  pointer-events: none;
}

.portal-plan-radio {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  border: 2px solid rgba(100, 116, 139, 0.5);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
  pointer-events: none;
}

.portal-plan-card.is-selected .portal-plan-radio {
  border-color: var(--primary);
  background:
    radial-gradient(circle at 50% 50%, var(--primary) 0 48%, rgba(255, 255, 255, 0) 52%);
}

.portal-setup-plan-grid .portal-plan-card:hover {
  border-color: rgba(255, 122, 24, 0.35);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.portal-setup-plan-grid .price-card.featured:not(.is-selected):hover {
  border-color: rgba(14, 165, 233, 0.55);
  box-shadow:
    0 0 0 1px rgba(14, 165, 233, 0.3),
    0 12px 36px rgba(14, 165, 233, 0.12),
    var(--shadow-sm);
}

.portal-setup-plan-grid .portal-plan-card:focus {
  outline: none;
}

.portal-setup-plan-grid .portal-plan-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Chosen plan: strong orange ring + check — clearly distinct from Popular (blue) */
.portal-setup-plan-grid .portal-plan-card.is-selected {
  outline: none;
  border: 2px solid var(--primary);
  background: linear-gradient(
    165deg,
    rgba(255, 122, 24, 0.14) 0%,
    var(--surface) 48%
  );
  box-shadow:
    0 0 0 3px rgba(255, 122, 24, 0.28),
    0 12px 40px rgba(255, 122, 24, 0.16),
    var(--shadow-sm);
  transform: translateY(-1px);
}

.portal-setup-plan-grid .portal-plan-card.is-selected::after {
  content: "";
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 1;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 65%;
  box-shadow: 0 2px 8px rgba(255, 122, 24, 0.45);
  pointer-events: none;
}

.portal-setup-plan-grid .portal-plan-card.featured.is-selected .portal-plan-ribbon {
  opacity: 0.88;
}

.portal-setup-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.portal-setup-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0;
}

.portal-setup-actions .btn,
.portal-setup-skip-corner .btn {
  min-height: 2.85rem;
}

.portal-setup-skip-corner {
  display: flex;
  justify-content: flex-end;
  margin-top: 0;
}

.portal-setup-api-form {
  max-width: 22rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.portal-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.portal-field__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--header-text);
}

.portal-field input {
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  padding: 0.6rem 0.75rem;
  font: inherit;
  background: var(--surface);
  color: var(--text);
}

.portal-field input:focus {
  outline: 2px solid rgba(255, 122, 24, 0.45);
  outline-offset: 1px;
}

.portal-payment-section .subtagline {
  max-width: 40rem;
}

.portal-payment-placeholder {
  margin: 1.25rem 0;
  padding: 1.25rem;
  border: 1px dashed var(--border);
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.5);
  max-width: 28rem;
}

.portal-payment-paypal {
  border-style: solid;
}

#paypal-button-container {
  min-height: 2.75rem;
}

.portal-payment-fields {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.portal-payment-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.portal-payment-note {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.portal-field input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.site-footer {
  text-align: center;
  border-top: 1px solid var(--border);
  padding: 1.5rem 1rem 3rem;
  color: var(--muted);
}

/* Full marketing + portal footer */
.site-footer.site-footer--full {
  text-align: center;
  padding: 2.5rem clamp(1rem, 4vw, 1.5rem) 1.75rem;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.site-footer__inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2.5rem;
  margin-bottom: 2rem;
  justify-items: center;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 16rem;
  text-align: center;
}

.site-footer__heading {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-align: center;
  width: 100%;
}

.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  text-align: center;
}

.site-footer__list li {
  margin: 0 0 0.45rem;
  text-align: center;
}

.site-footer__list a {
  color: var(--header-text-soft);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__list a:hover {
  color: var(--primary);
}

.site-footer__list-item--linkedin {
  margin-top: 0.35rem;
}

.site-footer__linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.site-footer__linkedin-icon {
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  color: var(--header-text-soft);
  transition: color 0.2s ease;
}

.site-footer__linkedin-link:hover .site-footer__linkedin-icon {
  color: var(--primary);
}

.site-footer__list a.site-footer__accessibility-link {
  display: inline-block;
  position: relative;
  text-align: center;
}

.site-footer__accessibility-icon {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 0.4rem;
  width: 1.08rem;
  height: 1.08rem;
  color: #38bdf8;
  flex-shrink: 0;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.site-footer__copyright {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin: 0 auto;
  width: 100%;
  max-width: 42rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.site-footer__powered-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  vertical-align: middle;
  transition: opacity 0.2s ease;
}

.site-footer__powered-link:hover {
  opacity: 0.88;
}

.site-footer__powered-logo {
  display: block;
  height: 1.35em;
  width: auto;
  max-width: min(9.5rem, 42vw);
  object-fit: contain;
}

.static-subpage {
  padding-top: 2rem;
  padding-bottom: 3rem;
  text-align: center;
}

.static-subpage h1 {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  max-width: 54rem;
  font-size: clamp(1.62rem, 4.04vw, 3.07rem);
  line-height: 1.15;
  color: var(--primary);
  background: linear-gradient(120deg, var(--primary), var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.static-subpage__placeholder {
  min-height: 6rem;
  padding: 1.25rem 0;
}

.static-subpage__body {
  margin: 0 auto;
  max-width: 42rem;
  text-align: left;
  color: var(--text);
  font-size: clamp(0.95rem, 1.65vw, 1.05rem);
  line-height: 1.65;
}

.static-subpage__body a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.static-subpage__body a:hover {
  color: #ea580c;
}

.static-subpage__code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  font-weight: 600;
  padding: 0.12em 0.35em;
  border-radius: 0.3rem;
  background: rgba(255, 122, 24, 0.1);
  color: var(--header-text);
}

.static-subpage__body p {
  margin: 0 0 1.1rem;
}

.static-subpage__body p:last-child {
  margin-bottom: 0;
}

.static-subpage__body h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: clamp(1.05rem, 2.1vw, 1.22rem);
  font-weight: 700;
  color: var(--header-text);
  line-height: 1.35;
}

.static-subpage__body > h2:first-of-type {
  margin-top: 1.25rem;
}

.static-subpage__body h3 {
  margin: 1.15rem 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1e3a8a;
  line-height: 1.35;
}

.static-subpage__ordered {
  margin: 0.35rem 0 1.1rem;
  padding-left: 1.35rem;
}

.static-subpage__ordered li {
  margin: 0 0 0.4rem;
  padding-left: 0.2rem;
}

.static-subpage__ordered li::marker {
  color: var(--primary);
  font-weight: 700;
}

.static-subpage__list {
  margin: 0.35rem 0 1.25rem;
  padding: 0 0 0 1.15rem;
  list-style: disc;
}

.static-subpage__list li {
  margin: 0 0 0.45rem;
  padding-left: 0.25rem;
  color: var(--text);
}

.static-subpage__list li::marker {
  color: var(--primary);
}

.static-subpage__closing {
  margin-top: 1.35rem !important;
  font-weight: 700;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.45;
  color: var(--primary);
  background: linear-gradient(120deg, var(--primary), var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Careers: image scales with width; max-height keeps footer in view, aspect ratio preserved */
.static-subpage--careers .static-subpage__main-visual {
  margin: 1rem auto 0;
  width: 100%;
  max-width: min(52rem, 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.static-subpage--careers .static-subpage__main-visual img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(
    62svh,
    calc(100svh - var(--site-header-height) - 18rem)
  );
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  object-fit: contain;
  object-position: center;
  background: var(--surface-soft);
}

@media (min-width: 769px) {
  :root {
    --site-header-height: 4.25rem;
    --hero-section-pad-top: 0.6rem;
  }

  .hero.section {
    padding-top: 0.6rem;
    padding-bottom: 1rem;
  }

  /* Desktop: push CTAs below fold by adding space after customer types */
  #hero #usecases.section {
    padding-bottom: 2.35rem;
  }

  /* PC only: move PoseScore logo to left side */
  .site-header {
    grid-template-columns: auto 1fr auto;
    overflow-x: visible;
  }

  .brand,
  .site-header--auth .brand,
  .site-header:not(.site-header--auth) .brand {
    grid-column: 1;
    justify-self: start;
  }

  .brand {
    max-width: min(560px, 62vw);
    gap: 0;
    overflow: visible;
    position: relative;
    z-index: 1;
    align-items: center;
    flex-direction: column;
  }

  .brand__lockup {
    flex-shrink: 0;
    align-self: center;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
  }

  .brand__caption {
    display: none;
  }

  .brand__divider {
    display: none;
  }

  .brand__myo-link {
    display: inline-flex;
    position: relative;
    z-index: 2;
    align-self: flex-end;
    align-items: center;
    transform: translate(-6px, -0.72rem);
    margin-top: 0;
    padding: 0;
    margin: 0;
    background: none;
    border-radius: 0;
    overflow: visible;
    line-height: 1;
  }

  .brand__myo-logo {
    height: 19px;
    filter: grayscale(1) brightness(1.45) contrast(1.05)
      drop-shadow(0 3px 10px rgba(2, 6, 23, 0.4));
  }

  .brand__by {
    font-size: 0.48rem;
  }

  .hero {
    min-height: 0;
    align-items: center;
    padding-top: 0.75rem;
    padding-bottom: 1rem;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
  }

  .hero-fold {
    align-items: center;
  }

  .hero-copy h1 {
    font-size: clamp(1.7rem, 2.77vw, 2.34rem);
    line-height: 1.2;
    margin-bottom: 0.35rem;
    white-space: nowrap;
  }

  .hero-copy .subtagline {
    font-size: 0.98rem;
    line-height: 1.35;
    margin-bottom: 0.4rem;
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    margin-top: 0.75rem;
  }

  .hero-slideshow-wrap {
    max-width: 1120px;
    width: 100%;
    margin-inline: auto;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .slideshow {
    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
    align-items: center;
  }

  .slideshow-shell {
    grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
    gap: 0.5rem;
    align-items: stretch;
    max-width: 1120px;
    margin-inline: auto;
    width: 100%;
    position: relative;
  }

  .slideshow-shell::before {
    content: attr(data-page-title);
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    width: min(90%, 860px);
    text-align: center;
    color: #1e3a8a;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
    pointer-events: none;
  }

  .slideshow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    height: auto;
    min-height: 3rem;
    max-height: 3.25rem;
  }

  .slideshow-card {
    padding: 0.45rem 0.75rem 0.55rem;
  }

  .slideshow-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .slideshow-caption-title {
    font-size: 0.9rem;
    visibility: hidden;
  }

  .slideshow-caption-desc {
    font-size: 0.65rem;
    line-height: 1.28;
  }

  .slideshow-caption {
    padding: 0.35rem 0.65rem 0.4rem;
    background: transparent;
    border-bottom-color: transparent;
  }

  .slideshow-dots {
    margin-top: auto;
    padding-top: 0.35rem;
    justify-content: center;
    width: 100%;
    max-width: 640px;
  }
}

@media (max-width: 1024px) {
  .integration-layout {
    grid-template-columns: 1fr;
  }

  .flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .visual-card {
    grid-column: span 6;
  }

  .price-card {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  :root {
    /* Logo row + padding + notch safe area (matches fixed header height) */
    --site-header-height: calc(3.95rem + env(safe-area-inset-top, 0px));
    --hero-section-pad-top: 0.65rem;
    --page-bg-image: url("Images/MobileBackground.jpg");
  }

  .portal-payment-row {
    grid-template-columns: 1fr;
  }

  .portal-setup-track {
    flex-direction: column;
    align-items: flex-start;
  }

  body.portal-page {
    overflow-wrap: anywhere;
    background-attachment: scroll, scroll;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    /* Do not set position:sticky here — it overrides the global rule and unpins the bar */
    padding: calc(0.4875rem + env(safe-area-inset-top, 0px)) clamp(0.75rem, 3vw, 1.25rem)
      0.4875rem;
  }

  .site-header--auth .brand {
    width: auto;
    max-width: min(88vw, 280px);
    justify-self: center;
  }

  .site-header .brand,
  .site-header .menu-toggle {
    min-width: 0;
  }

  .site-header:not(.site-header--auth) .brand {
    width: auto;
    max-width: min(88vw, 280px);
    justify-self: center;
  }

  .site-header:not(.site-header--auth) .brand-logo {
    max-width: 100%;
  }

  .site-header--auth .brand-logo {
    max-width: min(42vw, 200px);
  }

  .site-header--portal .site-header__portal-tray {
    max-width: min(62vw, 100%);
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
  }

  .portal-header-user {
    font-size: 0.72rem;
    max-width: 48vw;
  }

  .brand-logo {
    width: auto;
    max-width: min(72vw, calc(100% - 3.5rem));
    max-height: 39px;
  }

  .hero {
    min-height: 0;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 0.45rem;
    padding-bottom: 1.75rem;
  }

  .hero-copy {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding-inline: 0;
  }

  /* Smaller than global h1 — keeps slideshow + dots on first screen */
  .hero-fold h1 {
    font-size: clamp(0.95rem, 4.24vw, 1.29rem);
    line-height: 1.18;
    margin-bottom: 0.22rem;
  }

  .hero-fold .subtagline {
    font-size: clamp(0.64rem, 2.6vw, 0.75rem);
    line-height: 1.3;
    margin-bottom: 0.28rem;
  }

  h1 {
    font-size: clamp(1.35rem, 6.5vw, 1.85rem);
    line-height: 1.2;
  }

  .subtagline {
    font-size: 0.88rem;
    margin-bottom: 0.45rem;
    line-height: 1.4;
  }

  .hero-subtitle-dark {
    font-size: clamp(0.9rem, 2.1vw, 1.05rem);
  }

  .hero-actions {
    margin-top: 0.75rem;
    gap: 0.55rem;
  }

  .hero .hero-actions .btn,
  .final-cta .hero-actions .btn {
    flex: 1 1 100%;
    max-width: none;
  }

  .hero-fold {
    max-height: calc(
      100svh - var(--site-header-height) - var(--hero-section-pad-top) -
        env(safe-area-inset-bottom, 0px) - 0.4rem
    );
  }

  .hero-slideshow-wrap {
    margin-top: 0.4rem;
    margin-inline: 0;
    overflow-x: clip;
    overflow: hidden;
    max-width: 100%;
  }

  /* Keep the global background visible behind top hero content on mobile */
  .slideshow-viewport {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  .slideshow-caption {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(248, 250, 252, 0.5) 100%);
  }

  .slideshow-shell {
    max-width: 100%;
  }

  .slideshow-slide {
    display: flex;
    justify-content: center;
  }

  .slideshow-slide-inner {
    width: 100%;
  }

  .slideshow-card {
    padding: 0.45rem 0.5rem 0.35rem;
  }

  .slideshow-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .slideshow-caption {
    padding: 0.35rem 0.5rem 0.45rem;
  }

  .slideshow-caption-title {
    font-size: 0.84rem;
  }

  .slideshow-caption-desc {
    font-size: 0.65rem;
    line-height: 1.28;
  }

  .hero-slideshow-wrap .slideshow-dots {
    gap: 0.35rem;
    padding-top: 0.28rem;
  }

  .header-nav-wrap .main-nav {
    right: 0;
    left: auto;
    min-width: min(320px, calc(100vw - 1.5rem));
    background: linear-gradient(180deg, #f4f6f9 0%, #e8ecf1 100%);
    border-color: rgba(71, 85, 105, 0.38);
  }

  .visual-card,
  .example-card,
  .price-card,
  .portal-card,
  .graph-card,
  .testimonial-float {
    grid-column: span 12;
  }

  .flow-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem clamp(1rem, 4vw, 1.5rem);
  }

  .hero.section {
    padding-top: 0.65rem;
    padding-bottom: 1rem;
  }

  .portal-leave-modal {
    overflow-y: auto;
    padding: 0.65rem 0;
  }

  .portal-plan-modal__dialog {
    margin: 0.75rem auto;
    max-height: calc(100dvh - 1.5rem);
    overflow-y: auto;
  }

  /* Footer: mobile layout (769px+ unchanged) */
  .site-footer.site-footer--full {
    padding: 1.5rem clamp(0.85rem, 4vw, 1.25rem) calc(1.1rem + env(safe-area-inset-bottom, 0px));
  }

  .site-footer__inner {
    max-width: 100%;
  }

  .site-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 0.4rem;
    row-gap: 0.65rem;
    margin-bottom: 1.15rem;
    justify-items: center;
  }

  .site-footer__col {
    max-width: none;
    width: 100%;
    min-width: 0;
  }

  .site-footer__heading {
    margin-bottom: 0.45rem;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    line-height: 1.25;
    padding-inline: 0.1rem;
  }

  .site-footer__list li {
    margin: 0 0 0.28rem;
  }

  .site-footer__list a {
    display: block;
    min-height: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.32rem 0.15rem;
    font-size: 0.68rem;
    line-height: 1.3;
    border-radius: 0.35rem;
    overflow-wrap: break-word;
    word-break: break-word;
    -webkit-tap-highlight-color: transparent;
  }

  .site-footer__list a:active {
    background: rgba(255, 122, 24, 0.08);
  }

  .site-footer__list-item--linkedin {
    margin-top: 0.2rem;
  }

  .site-footer__linkedin-link {
    display: inline-flex;
    min-height: 0;
    padding: 0.35rem 0.2rem;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    border-radius: 0.35rem;
    -webkit-tap-highlight-color: transparent;
    font-size: 0.68rem;
  }

  .site-footer__linkedin-icon {
    width: 0.9rem;
    height: 0.9rem;
  }

  .site-footer__linkedin-link:active {
    background: rgba(255, 122, 24, 0.08);
  }

  .site-footer__bottom {
    padding-top: 0.95rem;
  }

  .site-footer__copyright {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    gap: 0.28rem 0.35rem;
    font-size: clamp(0.58rem, 2.35vw, 0.74rem);
    line-height: 1.15;
    max-width: 100%;
    padding-inline: 0.25rem;
  }

  .site-footer__powered-link {
    flex-shrink: 0;
  }

  .site-footer__powered-logo {
    height: 1em;
    max-width: min(5.25rem, 30vw);
    width: auto;
  }
}

@media (min-width: 769px) {
  .portal-plan-savings + .portal-plan-usage {
    margin-top: 0.62rem;
  }
}

@media (max-width: 768px) {
  .portal-plan-savings + .portal-plan-usage {
    margin-top: 0.62rem;
  }
}

/* Landing: fixed testimonial (scrolls with viewport); video on hover / tap — no card chrome */
.floating-testimonial {
  position: fixed;
  z-index: 800;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  right: max(1rem, env(safe-area-inset-right, 0px));
  max-width: min(22rem, calc(100vw - 2rem));
  pointer-events: auto;
  outline-offset: 4px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.floating-testimonial__toggle {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  width: 1.8rem;
  height: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  padding: 0;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
}

.floating-testimonial__toggle:hover {
  background: #ffffff;
}

.floating-testimonial__toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.floating-testimonial__toggle-icon {
  font-size: 1.05rem;
  font-weight: 700;
  transform: translateY(-1px);
}

.floating-testimonial__img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  transition: opacity 0.28s ease;
}

.floating-testimonial__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
  margin: 0;
  border: none;
  border-radius: 0;
}

.floating-testimonial:hover .floating-testimonial__video,
.floating-testimonial:focus-within .floating-testimonial__video,
.floating-testimonial.is-video-active .floating-testimonial__video {
  opacity: 1;
}

.floating-testimonial:hover .floating-testimonial__img,
.floating-testimonial:focus-within .floating-testimonial__img,
.floating-testimonial.is-video-active .floating-testimonial__img {
  opacity: 0;
}

.floating-testimonial.is-minimized {
  width: 2.2rem;
  height: 2.2rem;
  max-width: 2.2rem;
  overflow: visible;
}

.floating-testimonial.is-minimized .floating-testimonial__img,
.floating-testimonial.is-minimized .floating-testimonial__video {
  display: none;
}

.floating-testimonial.is-minimized .floating-testimonial__toggle {
  top: 0;
  right: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
}

@media (hover: none) {
  .floating-testimonial {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
}

@media (max-width: 768px) {
  .floating-testimonial {
    bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
    right: max(0.65rem, env(safe-area-inset-right, 0px));
    max-width: min(13.5rem, calc(100vw - 1.35rem));
  }

}
