:root {
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary: var(--primary-500);

  --background: #ffffff;
  --foreground: #0f172a;
  --foreground-mid: #334155;
  --foreground-subtle: #64748b;
  --secondary: #f3f4f6;
  --muted-foreground: #6b7280;
  --border: #e5e7eb;
  --success: #16a34a;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Mona Sans", ui-sans-serif, system-ui, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
}

h1,
h2,
h3,
h4 {
  font-family: ui-rounded, "Mona Sans", ui-sans-serif, system-ui, sans-serif;
}

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

section[id] {
  scroll-margin-top: 5.5rem;
}

.bg-primary {
  background-color: var(--primary);
}
.bg-primary-50 {
  background-color: var(--primary-50);
}
.bg-primary-100 {
  background-color: var(--primary-100);
}
.bg-primary-400 {
  background-color: var(--primary-400);
}
.bg-primary-600 {
  background-color: var(--primary-600);
}
.text-primary {
  color: var(--primary);
}
.text-primary-600 {
  color: var(--primary-600);
}
.text-primary-700 {
  color: var(--primary-700);
}
.border-primary {
  border-color: var(--primary);
}
.border-primary-100 {
  border-color: var(--primary-100);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--primary-600);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.18);
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}
.btn-primary:hover {
  background: var(--primary-700);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.22);
}
.btn-primary:active {
  transform: translateY(1px);
}
.btn-primary:focus-visible {
  outline: 2px solid var(--primary-400);
  outline-offset: 3px;
}
.btn-primary img {
  filter: brightness(0) invert(1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: #111827;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}
.btn-secondary:hover {
  background: #f9fafb;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}
.btn-secondary:active {
  transform: translateY(1px);
}
.btn-secondary:focus-visible {
  outline: 2px solid var(--primary-400);
  outline-offset: 3px;
}

.section {
  padding: 4.5rem 0;
}
@media (min-width: 640px) {
  .section {
    padding: 5.5rem 0;
  }
}

.section-hero {
  position: relative;
  background-color: #ffffff;
  background-image: url("assets/Hero.png");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}
.section-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.9) 55%,
    rgba(255, 255, 255, 0.08) 82%,
    rgba(255, 255, 255, 0) 100%
  );
}
@media (max-width: 1023.98px) {
  .section-hero {
    background-position: center;
  }
  .section-hero::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.92) 62%, rgba(255, 255, 255, 0.78) 100%);
  }
}
.section-hero .hero-content {
  max-width: 42rem;
}
@media (min-width: 640px) {
  .section-hero .hero-content {
    max-width: 44rem;
  }
}
@media (min-width: 1024px) {
  .section-hero .hero-content {
    max-width: 40rem;
  }
}
.section-hero > * {
  position: relative;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #111827;
  opacity: 0.9;
  transition: opacity 150ms ease;
}
.nav-link:hover {
  opacity: 1;
}
.nav-link:active {
  opacity: 0.75;
}
.nav-link:focus-visible {
  outline: 2px solid var(--primary-400);
  outline-offset: 4px;
  border-radius: 0.5rem;
}
.mobile-nav-link {
  display: block;
  padding: 0.75rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  background: #ffffff;
  border: 1px solid #f3f4f6;
  transition: background-color 150ms ease;
}
.mobile-nav-link:hover {
  background: #f9fafb;
}
.mobile-nav-link:active {
  transform: translateY(1px);
}
.mobile-nav-link:focus-visible {
  outline: 2px solid var(--primary-400);
  outline-offset: 3px;
}

a:not(.btn-primary):not(.btn-secondary):focus-visible {
  outline: 2px solid var(--primary-400);
  outline-offset: 3px;
  border-radius: 0.5rem;
}
a:not(.btn-primary):not(.btn-secondary):active {
  opacity: 0.85;
}

.input {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
  transition: box-shadow 150ms ease, border-color 150ms ease;
}
.input:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.28);
}

.card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 1.25rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}
.card > :last-child {
  margin-bottom: 0;
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9rem;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  color: var(--primary-700);
  margin-bottom: 0.8rem;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

[data-trust-ticker-viewport] {
  overflow: hidden;
}

[data-trust-ticker] {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  width: max-content;
  animation: trust-ticker var(--trust-ticker-duration, 28s) linear infinite;
  will-change: transform;
}

[data-trust-ticker-viewport]:hover [data-trust-ticker],
[data-trust-ticker-viewport]:focus-within [data-trust-ticker] {
  animation-play-state: paused;
}

@keyframes trust-ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * var(--trust-ticker-distance, 0px)));
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-trust-ticker] {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
  }
}

.hero-card {
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 1.5rem;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.timeline-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 1.25rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
  height: 100%;
}
.timeline-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.9rem;
  background: var(--primary-600);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
}

.accordion-item {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  background: #ffffff;
  transition: background-color 150ms ease;
  text-align: left;
}
.accordion-trigger:hover {
  background: #f9fafb;
}
.accordion-trigger:active {
  background: #f3f4f6;
}
.accordion-trigger:focus-visible {
  outline: 2px solid var(--primary-400);
  outline-offset: -2px;
}

button[data-mobile-nav-trigger]:active {
  transform: translateY(1px);
}
button[data-mobile-nav-trigger]:focus-visible {
  outline: 2px solid var(--primary-400);
  outline-offset: 3px;
}
.accordion-panel {
  padding: 0 1.2rem 1.1rem 1.2rem;
}
.accordion-panel[hidden] {
  display: none;
}

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.25rem;
}
.carousel::-webkit-scrollbar {
  height: 10px;
}
.carousel::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 9999px;
}
.comparison-table-shell {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.comparison-table-grid {
  min-width: 44rem;
}
.case-card {
  scroll-snap-align: start;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 1.25rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.case-media {
  border-radius: 0.95rem;
  border: 1px solid #e5e7eb;
  background: linear-gradient(135deg, var(--primary-50), #ffffff);
  height: 190px;
  position: relative;
  display: grid;
  place-items: center;
}
.case-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  border-radius: 9999px;
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-700);
  background: #ffffff;
  border: 1px solid var(--primary-100);
}
.case-placeholder {
  font-weight: 800;
  color: #111827;
  opacity: 0.7;
}
.case-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  padding: 1rem;
}
.case-media-panel {
  border-radius: 0.85rem;
  border: 1px solid rgba(191, 219, 254, 0.9);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.9rem 0.75rem;
  text-align: center;
}
.case-media-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-700);
}
.case-media-copy {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: #111827;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
  transition: background-color 150ms ease, transform 150ms ease;
}
.icon-btn:hover {
  background: #f9fafb;
}
.icon-btn:active {
  transform: translateY(1px);
}
.icon-btn:focus-visible {
  outline: 2px solid var(--primary-400);
  outline-offset: 3px;
}

.team-switcher {
  display: grid;
  gap: 1rem;
}
.section#team {
  padding: clamp(3rem, 5vw, 4.5rem) 0;
}
#team .max-w-3xl > p {
  margin-top: 0.75rem;
  max-width: 38rem;
  font-size: clamp(1rem, 0.35vw + 0.96rem, 1.0625rem);
  line-height: 1.55;
}
#team .team-switcher {
  margin-top: 1.5rem;
  gap: 0.75rem;
}
.team-switcher-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.875rem;
}
.team-switcher-toolbar > :first-child {
  min-width: 0;
}
.team-switcher-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.team-switcher-current {
  margin-top: 0.25rem;
  font-size: clamp(1rem, 0.6vw + 0.92rem, 1.125rem);
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
  color: #111827;
}
.team-switcher-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.team-switcher-count {
  min-width: 3.25rem;
  text-align: right;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
}
.team-switcher-arrow:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}
.team-switcher-dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.team-switcher-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 9999px;
  border: 1px solid var(--primary-100);
  background: #d1d5db;
  transition: transform 180ms ease, background-color 180ms ease, width 180ms ease;
}
.team-switcher-dot:hover {
  background: #9ca3af;
}
.team-switcher-dot:focus-visible {
  outline: 2px solid var(--primary-400);
  outline-offset: 3px;
}
.team-switcher-dot.is-active {
  width: 1.7rem;
  background: var(--primary-600);
}

.team-state-card {
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  padding: 1.25rem;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}
.team-loading {
  display: grid;
  gap: 0.875rem;
}
.team-loading-pulse {
  border-radius: 1rem;
  min-height: clamp(12rem, 30vw, 16rem);
  background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 50%, #e5e7eb 100%);
  background-size: 200% 100%;
  animation: team-pulse 1.6s linear infinite;
}
.team-loading-lines {
  display: grid;
  gap: 0.5rem;
}
.team-loading-lines span {
  display: block;
  height: 0.95rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 50%, #e5e7eb 100%);
  background-size: 200% 100%;
  animation: team-pulse 1.6s linear infinite;
}
.team-loading-lines span:nth-child(1) {
  width: min(18rem, 85%);
}
.team-loading-lines span:nth-child(2) {
  width: min(26rem, 100%);
}
.team-loading-lines span:nth-child(3) {
  width: min(22rem, 92%);
}

.team-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.team-panel {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  min-width: 0;
}
.team-layout {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  align-items: stretch;
}
.team-panel.is-entering {
  animation-duration: 320ms;
  animation-timing-function: ease;
  animation-fill-mode: both;
}
.team-panel.is-entering.from-next {
  animation-name: team-enter-next;
}
.team-panel.is-entering.from-prev {
  animation-name: team-enter-prev;
}

.team-profile {
  position: relative;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-width: 0;
}
.team-profile-media {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 45%, #ffffff 100%);
  border: 1px solid var(--primary-100);
}
.team-profile-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.65;
  object-fit: cover;
}
.team-profile-badge {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.4rem 0.625rem;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary-700);
  border: 1px solid rgba(219, 234, 254, 0.95);
  backdrop-filter: blur(10px);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.team-profile > .mt-5 {
  margin-top: 1rem;
}
.team-profile > .mt-4 {
  margin-top: 0.875rem;
  gap: 0.75rem;
  line-height: 1.45;
}
.team-highlight-item {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.425rem;
  line-height: 1.45;
}
.team-details {
  min-height: 0;
  align-self: stretch;
  padding: 1rem;
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
}
.team-features-grid,
.team-details [data-team-features] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  gap: 0.75rem;
  align-items: stretch;
}
.team-feature-card {
  border-radius: 1rem;
  border: 1px solid #eef2f7;
  background: #fbfdff;
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}
.team-feature-heading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
  color: #111827;
}
.team-feature-copy {
  margin-top: 0.45rem;
  font-size: 0.875rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  color: #4b5563;
}

@keyframes team-pulse {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@keyframes team-enter-next {
  from {
    opacity: 0;
    transform: translate3d(18px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes team-enter-prev {
  from {
    opacity: 0;
    transform: translate3d(-18px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (min-width: 1024px) {
  .carousel {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    scroll-snap-type: none;
  }
  .team-layout {
    flex-direction: row;
    flex-wrap: nowrap;
  }
  .team-profile {
    flex: 0 1 22.5rem;
  }
  .team-details {
    flex: 1 1 0;
  }
  .team-profile-photo {
    aspect-ratio: 4 / 3.7;
    max-height: 23rem;
  }
  .team-features-grid,
  .team-details [data-team-features] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
  }
}

@media (max-width: 1023.98px) {
  .comparison-table-grid {
    min-width: 40rem;
  }
  .team-layout {
    align-items: stretch;
  }
  .team-details {
    flex: 0 0 auto;
    width: 100%;
  }
  .team-switcher-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .team-switcher-nav {
    justify-content: space-between;
  }
}

@media (max-width: 767.98px) {
  body {
    padding-bottom: 5.75rem;
  }
  .comparison-table-grid {
    min-width: 36rem;
  }
  .case-media {
    height: auto;
    min-height: 190px;
  }
  .case-media-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .team-switcher-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .team-switcher-nav {
    justify-content: space-between;
  }
  .team-switcher-count {
    text-align: left;
  }
  .team-error {
    flex-direction: column;
    align-items: flex-start;
  }
  .team-profile,
  .team-details,
  .team-state-card {
    padding: 0.875rem;
  }
  .team-panel {
    overflow: hidden;
  }
  .team-profile-photo {
    aspect-ratio: 4 / 4.35;
  }
  .team-features-grid,
  .team-details [data-team-features] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }
}

[data-sticky-cta] {
  padding-bottom: env(safe-area-inset-bottom);
}

@supports not (backdrop-filter: blur(10px)) {
  header,
  [data-sticky-cta] {
    background: rgba(255, 255, 255, 0.98);
  }

  .team-profile-badge {
    background: #ffffff;
  }
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .team-loading-pulse,
  .team-loading-lines span,
  .team-panel.is-entering {
    animation: none;
  }
  .team-switcher-dot,
  .team-switcher-arrow {
    transition: none;
  }
}
