@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap");

/* PairXCare — enterprise palette (inspired by clean B2B sites: deep slate, teal accent, crisp surfaces) */
:root {
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;

  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #5eead4;
  --secondary: #0f172a;
  --secondary-dark: #020617;
  --accent: #c4a35a;
  --accent-light: #d4bc7c;
  --accent-muted: rgba(196, 163, 90, 0.12);

  --bg: #f1f5f9;
  --bg-alt: #e8eef4;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --surface-hover: #f1f5f9;
  --text: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --link: #0f766e;

  --success: #059669;
  --warning: #c2410c;
  --error: #dc2626;

  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.06),
    0 12px 32px -8px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 8px 24px -4px rgba(15, 23, 42, 0.08),
    0 24px 48px -12px rgba(15, 23, 42, 0.1);
  --shadow-card-hover: 0 16px 40px -12px rgba(15, 23, 42, 0.12);

  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.35rem;
  --radius-pill: 9999px;

  --surface-dark-gradient: linear-gradient(
    145deg,
    #020617 0%,
    #0f172a 32%,
    #134e4a 55%,
    #0f172a 88%,
    #020617 100%
  );
  --nav-brand-wordmark: #0f172a;
  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  font-feature-settings: "cv11", "ss01", "cv01";
  text-rendering: optimizeLegibility;
  background-color: var(--bg);
  background-image: radial-gradient(
      ellipse 100% 50% at 50% -10%,
      rgba(13, 148, 136, 0.06),
      transparent 50%
    ),
    radial-gradient(
      ellipse 50% 40% at 100% 100%,
      rgba(15, 23, 42, 0.04),
      transparent 50%
    ),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 45%, #eef2f6 100%);
  background-attachment: fixed;
}

::selection {
  background: rgba(13, 148, 136, 0.18);
  color: var(--text);
}

main {
  min-height: 50vh;
}

main.container {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

/* Merge first content block with hero / page hero for one continuous layout */
main > section.hero + section {
  margin-top: -2.75rem;
  position: relative;
  z-index: 2;
}

section.page-hero + main.container {
  margin-top: -2.75rem;
  position: relative;
  z-index: 2;
  padding-top: 0;
}

section.page-hero + main > .container:first-child {
  margin-top: -2.75rem;
  position: relative;
  z-index: 2;
  padding-top: 0;
}

main > section.container + section.container {
  padding-top: 1.25rem;
}

.spa-main {
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
}
main a:not(.btn) {
  color: var(--link);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(13, 148, 136, 0.35);
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

main a:not(.btn):hover {
  color: var(--primary-dark);
  text-decoration-color: var(--primary);
}

main a.text-primary:not(.btn) {
  color: var(--primary);
  text-decoration-color: rgba(13, 148, 136, 0.45);
}

main a.text-primary:not(.btn):hover {
  color: var(--primary-dark);
}

main p {
  color: var(--text);
}

main p.text-muted,
main .text-muted {
  color: var(--text-muted);
}

main.container {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

h1,
h2,
h3,
.page-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.18;
  text-rendering: optimizeLegibility;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 1.75rem;
  }
}

.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.justify-between {
  justify-content: space-between;
}
.justify-center {
  justify-content: center;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-6 {
  gap: 1.5rem;
}
.gap-8 {
  gap: 2rem;
}

.grid {
  display: grid;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .md\:flex-row {
    flex-direction: row;
  }
  .md\:p-8 {
    padding: 2rem;
  }
}

.p-2 {
  padding: 0.5rem;
}
.p-4 {
  padding: 1rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-8 {
  padding: 2rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.py-12 {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
.py-16 {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.mt-2 {
  margin-top: 0.5rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mr-2 {
  margin-right: 0.5rem;
}
.mx-auto {
  margin-inline: auto;
}

.max-w-2xl {
  max-width: 42rem;
}

.text-sm {
  font-size: 0.875rem;
}
.text-base {
  font-size: 1rem;
}
.text-lg {
  font-size: 1.125rem;
}
.text-xl {
  font-size: 1.25rem;
}
.text-2xl {
  font-size: 1.625rem;
}
.text-3xl {
  font-size: 2rem;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}
.text-center {
  text-align: center;
}
.text-muted {
  color: var(--text-muted);
}

.text-lead {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-soft);
}

.bg-surface {
  background: var(--surface);
}
.bg-primary {
  background: var(--primary);
}
.bg-primary-dark {
  background: var(--primary-dark);
}
.bg-secondary {
  background: var(--secondary);
}
.bg-accent {
  background: var(--accent);
}
.bg-bg {
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(240, 253, 250, 0.35) 50%,
    rgba(248, 250, 252, 0.95) 100%
  );
  border-color: var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.text-primary {
  color: var(--primary);
}
.text-secondary {
  color: var(--secondary);
}
.text-accent {
  color: var(--accent);
}

.rounded {
  border-radius: var(--radius);
}
.rounded-lg {
  border-radius: var(--radius-lg);
}
.rounded-xl {
  border-radius: var(--radius-xl);
}
.border {
  border: 1px solid var(--border);
}
.border-0 {
  border: none;
}

.shadow {
  box-shadow: var(--shadow-md);
}
.shadow-md {
  box-shadow: var(--shadow-md);
}
.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5625rem 1.125rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-family: var(--font-sans);
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.18s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.18s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.18s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.18s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97) translateY(0) !important;
}

.btn-primary {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 16px -2px rgba(13, 148, 136, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.btn-primary:hover {
  box-shadow: 0 8px 28px -4px rgba(13, 148, 136, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.btn-secondary {
  background: linear-gradient(160deg, #1e293b 0%, var(--secondary) 100%);
  color: #fff;
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.btn-secondary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border: 1.5px solid var(--border-strong);
}

.btn-outline:hover {
  background: rgba(13, 148, 136, 0.06);
  border-color: rgba(13, 148, 136, 0.5);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.8125rem 1.75rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
}

.btn-hero-solid {
  background: #fff;
  color: var(--secondary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.btn-hero-solid:hover {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.btn-hero-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}

.card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(15, 23, 42, 0.11);
    transform: translateY(-2px);
  }
}

.card h3 {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0.35rem 0 0;
  line-height: 1.35;
  text-rendering: optimizeLegibility;
}

.card h3.font-semibold.text-lg {
  font-size: 1.0625rem;
}

.card-highlight {
  /* left border now on .card base; this class is kept for backward compat */
}

.card-border-primary {
  border-inline-start-color: var(--primary) !important;
}

.card-border-warning {
  border-inline-start-color: var(--warning) !important;
}

/* Icon badge — feature & content cards (≈2–3 lines tall) */
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(3.5rem, 6.5vw, 4.75rem);
  height: clamp(3.5rem, 6.5vw, 4.75rem);
  border-radius: 1.0625rem;
  flex-shrink: 0;
  margin-bottom: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 36px -14px rgba(29, 78, 216, 0.28),
    0 4px 14px -6px rgba(15, 23, 42, 0.08);
}

.card-icon .icon-xl {
  width: clamp(2.125rem, 3.8vw, 2.75rem);
  height: clamp(2.125rem, 3.8vw, 2.75rem);
}

.card-icon-primary {
  background: linear-gradient(
    155deg,
    rgba(240, 253, 250, 0.98) 0%,
    rgba(204, 251, 241, 0.75) 100%
  );
  color: var(--primary-dark);
  border-color: rgba(13, 148, 136, 0.2);
}

.card-icon-secondary {
  background: linear-gradient(
    155deg,
    rgba(248, 250, 252, 0.98) 0%,
    rgba(226, 232, 240, 0.9) 100%
  );
  color: var(--secondary);
  border-color: rgba(15, 23, 42, 0.1);
}

.card-icon-accent {
  background: linear-gradient(
    155deg,
    rgba(255, 251, 235, 0.98) 0%,
    rgba(254, 243, 199, 0.7) 100%
  );
  color: var(--accent);
  border-color: rgba(184, 134, 11, 0.22);
}

.card-icon-warning {
  background: linear-gradient(
    155deg,
    rgba(255, 247, 237, 0.98) 0%,
    rgba(254, 215, 170, 0.55) 100%
  );
  color: var(--warning);
  border-color: rgba(194, 65, 12, 0.18);
}

/* Section headings — centered premium glyph */
.section-head-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.35rem;
}

.section-head-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(4rem, 9vw, 5.5rem);
  height: clamp(4rem, 9vw, 5.5rem);
  border-radius: 1.125rem;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(240, 253, 250, 0.95) 100%
  );
  border: 1px solid rgba(13, 148, 136, 0.15);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 12px 36px -14px rgba(13, 148, 136, 0.18),
    0 4px 12px -4px rgba(15, 23, 42, 0.05);
  color: var(--primary-dark);
}

.section-head-icon svg {
  width: clamp(2.35rem, 5vw, 3.05rem);
  height: clamp(2.35rem, 5vw, 3.05rem);
}

/* Hero mastheads — large frosted glyph on dark bands */
.hero-masthead,
.page-hero-masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 52rem;
  margin: 0 auto;
}

.hero-icon-ring,
.page-hero-icon-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(4.5rem, 11vw, 6.25rem);
  height: clamp(4.5rem, 11vw, 6.25rem);
  margin-bottom: 1.25rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(248, 250, 252, 0.96);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 20px 50px -18px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.page-hero-warning .page-hero-icon-ring {
  background: rgba(251, 146, 60, 0.12);
  border-color: rgba(253, 186, 116, 0.35);
  color: rgba(255, 237, 213, 0.98);
}

.hero-icon-ring svg,
.page-hero-icon-ring svg {
  width: clamp(2.5rem, 6.5vw, 3.6rem);
  height: clamp(2.5rem, 6.5vw, 3.6rem);
}

/* CTA panel — oversized brand mark */
.cta-panel-lead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

@media (min-width: 768px) {
  .cta-panel-lead {
    flex-direction: row;
    align-items: flex-start;
    text-align: start;
    gap: 1.75rem;
  }
}

.cta-panel-icon {
  flex-shrink: 0;
}

.cta-panel-icon .card-icon {
  width: clamp(4rem, 8vw, 5.25rem);
  height: clamp(4rem, 8vw, 5.25rem);
  margin-bottom: 0;
  border-radius: 1.125rem;
}

.cta-panel-icon .card-icon .icon-xl {
  width: clamp(2.35rem, 4.5vw, 3rem);
  height: clamp(2.35rem, 4.5vw, 3rem);
}

.cta-panel-body {
  flex: 1;
  min-width: 0;
}

.card-icon--center {
  margin-inline: auto;
}

/* About / long-form cards — icon + title row */
.card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 1.125rem;
  margin-bottom: 1.25rem;
}

.card-title-row .card-icon {
  margin-bottom: 0;
}

.card-title-row h2,
.card-title-row h3 {
  margin: 0;
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

/* Dark pricing cards — frosted icon wells */
.pricing-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(3.65rem, 5.5vw, 4.85rem);
  height: clamp(3.65rem, 5.5vw, 4.85rem);
  margin-bottom: 1.2rem;
  border-radius: 1.0625rem;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(147, 197, 253, 0.98);
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.35);
}

.pricing-card-icon svg {
  width: clamp(2.1rem, 3.2vw, 2.75rem);
  height: clamp(2.1rem, 3.2vw, 2.75rem);
}

.pricing-card-featured .pricing-card-icon {
  background: rgba(212, 168, 75, 0.12);
  border-color: rgba(212, 168, 75, 0.32);
  color: rgba(250, 224, 166, 0.98);
}

/* Auth cards */
.auth-card-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.35rem;
}

.auth-card-icon span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(3.75rem, 8vw, 4.75rem);
  height: clamp(3.75rem, 8vw, 4.75rem);
  border-radius: 1.0625rem;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(236, 244, 255, 0.9) 100%
  );
  border: 1px solid rgba(29, 78, 216, 0.14);
  box-shadow:
    0 1px 0 #fff inset,
    0 14px 36px -12px rgba(29, 78, 216, 0.22);
  color: var(--primary-dark);
}

.auth-card-icon svg {
  width: clamp(2.1rem, 4vw, 2.65rem);
  height: clamp(2.1rem, 4vw, 2.65rem);
}

.pricing-trial-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(3rem, 5vw, 3.65rem);
  height: clamp(3rem, 5vw, 3.65rem);
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34d399;
}

.pricing-trial-icon svg {
  width: clamp(1.35rem, 2.2vw, 1.65rem);
  height: clamp(1.35rem, 2.2vw, 1.65rem);
}

/* Scroll-reveal animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .reveal.in-view {
    opacity: 1;
    transform: none;
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
}

.navbar {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  padding: 0.625rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 4px 16px -8px rgba(15, 23, 42, 0.08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  line-height: 1.1;
  color: var(--text);
}

.nav-brand .nav-logo {
  height: 52px;
  width: auto;
  max-width: min(280px, 52vw);
  display: block;
  flex-shrink: 0;
}

.nav-brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: var(--nav-brand-wordmark);
}

@media (max-width: 480px) {
  .nav-brand {
    gap: 0.5rem;
  }

  .nav-brand .nav-logo {
    height: 44px;
    max-width: min(200px, 46vw);
  }

  .nav-brand-name {
    font-size: 1.1rem;
    letter-spacing: 0.02em;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 0.4375rem 0.875rem;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  transition: color 0.18s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
  background: rgba(13, 148, 136, 0.07);
  color: var(--primary-dark);
}

.nav-links a.active {
  background: rgba(13, 148, 136, 0.1);
  color: var(--primary-dark);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.5rem;
  }
  .nav-links.open {
    display: flex;
  }
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f8fafc;
  padding: clamp(3.25rem, 10vw, 5.25rem) 1.25rem clamp(4rem, 12vw, 5.5rem);
  text-align: center;
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
  background: var(--surface-dark-gradient);
  box-shadow: 0 20px 60px -24px rgba(2, 6, 23, 0.55);
  margin-bottom: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse 90% 70% at 75% -15%,
      rgba(56, 189, 248, 0.22),
      transparent 55%
    ),
    radial-gradient(
      ellipse 60% 45% at 5% 90%,
      rgba(201, 162, 39, 0.1),
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 100%,
      rgba(29, 78, 216, 0.25),
      transparent 45%
    );
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: var(--grain);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 52rem;
}

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.325rem 0.875rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.82);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.8vw, 3.125rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.22);
  text-rendering: optimizeLegibility;
}

.hero-lead {
  margin: 1.25rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(248, 250, 252, 0.88);
  max-width: 38rem;
  margin-inline: auto;
}

.hero .flex.gap-4 {
  margin-top: 2rem;
}

/* ── Inner-page hero banner ───────────────────────────────── */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f8fafc;
  padding: clamp(2.5rem, 7vw, 3.75rem) 1.25rem clamp(3.25rem, 9vw, 4.75rem);
  background: var(--surface-dark-gradient);
  box-shadow: 0 20px 56px -20px rgba(2, 6, 23, 0.5);
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
  margin-bottom: 0;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse 80% 60% at 85% -10%,
      rgba(56, 189, 248, 0.2),
      transparent 55%
    ),
    radial-gradient(
      ellipse 50% 50% at -8% 80%,
      rgba(29, 78, 216, 0.18),
      transparent 55%
    ),
    radial-gradient(
      ellipse 55% 40% at 55% 110%,
      rgba(201, 162, 39, 0.09),
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: var(--grain);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero .hero-eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.85rem;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 3.8vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
}

.page-hero .page-subtitle {
  margin: 0.85rem 0 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(248, 250, 252, 0.82);
  max-width: 48rem;
}

/* Warning-tinted page hero (e.g. overview clinical caution block) */
.page-hero-warning::before {
  background: radial-gradient(
      ellipse 80% 60% at 85% -10%,
      rgba(251, 146, 60, 0.2),
      transparent 55%
    ),
    radial-gradient(
      ellipse 50% 50% at -8% 80%,
      rgba(220, 38, 38, 0.12),
      transparent 55%
    );
}

.content-slab {
  padding: 2.5rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .content-slab {
    padding: 3rem 2.25rem;
  }
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head .pxc-gold-rule {
  margin-inline: auto;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  text-rendering: optimizeLegibility;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.cta-panel {
  border-radius: var(--radius-2xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.cta-panel h2 {
  font-family: var(--font-display);
}

.footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 4rem;
  padding: 2.75rem 1.25rem 3rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(248, 250, 252, 0.88);
  background: var(--surface-dark-gradient);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -12px 48px -8px rgba(10, 22, 40, 0.4);
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse 85% 65% at 20% 110%,
      rgba(56, 189, 248, 0.2),
      transparent 55%
    ),
    radial-gradient(
      ellipse 55% 40% at 92% 8%,
      rgba(201, 162, 39, 0.1),
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 0%,
      rgba(29, 78, 216, 0.22),
      transparent 48%
    );
  pointer-events: none;
  z-index: 0;
}

.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image: var(--grain);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

.footer .container {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.footer p {
  margin: 0;
  line-height: 1.65;
  color: rgba(248, 250, 252, 0.82);
}

.footer p + p {
  margin-top: 0.75rem;
}

.footer a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
.icon-lg {
  width: 1.5rem;
  height: 1.5rem;
}
.icon-xl {
  width: 2rem;
  height: 2rem;
}

ul.styled {
  list-style: none;
  padding-inline-start: 0;
}
ul.styled li {
  padding-inline-start: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}
ul.styled li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55rem;
  width: 0.375rem;
  height: 0.375rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
}

.page-title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.5rem;
  text-rendering: optimizeLegibility;
}

.page-subtitle {
  color: var(--text-soft);
  margin-bottom: 2rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 42rem;
}

.pxc-gold-rule {
  height: 3px;
  width: 56px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  margin-bottom: 1rem;
}

/* ── Pricing section ─────────────────────────────────────── */
.pricing-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3.5rem, 9vw, 5.5rem) 1.25rem clamp(4rem, 10vw, 6rem);
  background: var(--surface-dark-gradient);
  color: #f8fafc;
}

.pricing-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse 75% 55% at 12% 105%,
      rgba(56, 189, 248, 0.16),
      transparent 55%
    ),
    radial-gradient(
      ellipse 60% 50% at 90% -8%,
      rgba(201, 162, 39, 0.12),
      transparent 52%
    ),
    radial-gradient(
      ellipse 50% 45% at 50% 50%,
      rgba(29, 78, 216, 0.1),
      transparent 60%
    );
  pointer-events: none;
  z-index: 0;
}

.pricing-section::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: var(--grain);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

.pricing-section .section-head-icon {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(248, 250, 252, 0.95);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 18px 44px -16px rgba(0, 0, 0, 0.4);
}

.pricing-section > .container {
  position: relative;
  z-index: 1;
}

.pricing-section .section-head h2 {
  color: #f8fafc;
}

.pricing-section .eyebrow {
  color: var(--primary-light);
}

.pricing-section .pxc-gold-rule {
  background: linear-gradient(90deg, var(--accent-light), var(--accent));
}

.pricing-intro {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(248, 250, 252, 0.76);
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 3rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 54rem;
  margin: 0 auto;
}

.about-prose p {
  margin: 0 0 1rem;
  line-height: 1.7;
}

.about-prose p:last-child {
  margin-bottom: 0;
}

.pricing-card .auth-form label {
  color: rgba(248, 250, 252, 0.9);
}

.pricing-card .auth-form input {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f8fafc;
}

.pricing-card .auth-form input::placeholder {
  color: rgba(248, 250, 252, 0.45);
}

.pricing-card .auth-form input:focus {
  outline: 2px solid rgba(56, 189, 248, 0.45);
  outline-offset: 1px;
}

.pricing-card .auth-helper {
  color: rgba(248, 250, 252, 0.72);
}

.pricing-card .auth-helper.auth-success {
  color: #6ee7b7;
}

.pricing-card .auth-helper.auth-error {
  color: #fca5a5;
}

.pricing-card .auth-message {
  color: rgba(248, 250, 252, 0.88);
}

.pricing-card .auth-message.auth-success {
  color: #6ee7b7;
}

.pricing-card .auth-message.auth-error {
  color: #fca5a5;
}

@media (min-width: 600px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pricing-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem 1.75rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: none;
  border-inline-start: 3px solid rgba(45, 212, 191, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) and (pointer: fine) {
  .pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 60px -16px rgba(0, 0, 0, 0.42);
  }
}

.pricing-card-featured {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: none;
  border-inline-start: 3px solid var(--accent-light);
  box-shadow: 0 0 0 1px rgba(212, 168, 75, 0.2),
    0 24px 56px -16px rgba(0, 0, 0, 0.42);
}

.pricing-card-featured::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 3px;
  inset-inline-end: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
  border-radius: 0 var(--radius-xl) 0 0;
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.8rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  width: fit-content;
}

.pricing-badge-standard {
  background: rgba(147, 197, 253, 0.1);
  color: var(--primary-light);
  border: 1px solid rgba(147, 197, 253, 0.22);
}

.pricing-badge-featured {
  background: rgba(212, 168, 75, 0.14);
  color: var(--accent-light);
  border: 1px solid rgba(212, 168, 75, 0.28);
}

.pricing-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.pricing-tagline {
  font-size: 0.875rem;
  color: rgba(248, 250, 252, 0.62);
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

.pricing-price-row {
  display: flex;
  align-items: flex-end;
  gap: 0.2rem;
  margin-bottom: 0.25rem;
  /* Keep USD amounts Western/LTR inside RTL pages (international pricing convention). */
  direction: ltr;
  unicode-bidi: isolate;
  justify-content: flex-start;
}

.pricing-currency {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.7);
  align-self: flex-start;
  padding-top: 0.55rem;
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}

.pricing-period {
  font-size: 0.875rem;
  color: rgba(248, 250, 252, 0.5);
  padding-bottom: 0.3rem;
  align-self: flex-end;
}

.pricing-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 1.5rem 0;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9375rem;
  color: rgba(248, 250, 252, 0.84);
  line-height: 1.45;
}

.pricing-check {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.14rem;
  color: #34d399;
}

.pricing-highlight-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-highlight-standard {
  color: var(--primary-light);
}

.pricing-highlight-featured {
  color: var(--accent-light);
}

.pricing-highlight-icon {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.14rem;
}

.pricing-cta {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(248, 250, 252, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-pill);
  width: 100%;
  justify-content: center;
  transition: background 0.18s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.18s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.18s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  transform: translateY(-1px);
}

.pricing-note {
  font-size: 0.75rem;
  color: rgba(248, 250, 252, 0.38);
  text-align: center;
  line-height: 1.5;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Free trial banner */
.pricing-trial-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 54rem;
  margin: 0 auto 2rem;
  padding: 1rem 1.25rem 1rem 1.5rem;
  border-radius: var(--radius-xl);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.pricing-trial-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pricing-trial-text strong {
  font-size: 0.9375rem;
  color: rgba(248, 250, 252, 0.96);
  font-weight: 600;
}

.pricing-trial-sub {
  font-size: 0.8125rem;
  color: rgba(248, 250, 252, 0.55);
  line-height: 1.4;
}

.pricing-trial-cta {
  flex-shrink: 0;
  background: rgba(52, 211, 153, 0.14);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.8125rem;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.pricing-trial-cta:hover {
  background: rgba(52, 211, 153, 0.24);
  color: #6ee7b7;
}

.auth-shell {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 52vh;
  padding-top: 0.5rem;
}

.auth-card {
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.auth-form {
  display: grid;
  gap: 0.75rem;
}

.auth-form label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.auth-form input {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 0.625rem 0.875rem;
  font: inherit;
  font-size: 0.9375rem;
  background: #fff;
  transition: border-color 0.18s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-form input:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.auth-form select {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 0.625rem 0.875rem;
  font: inherit;
  font-size: 0.9375rem;
  background: #fff;
  transition: border-color 0.18s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-form .btn {
  margin-top: 0.8rem;
}

.auth-message {
  min-height: 1.25rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.auth-success {
  color: var(--success);
}

.auth-error {
  color: var(--error);
}

.auth-helper {
  margin: 0.1rem 0 0.35rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.account-card {
  max-width: 760px;
}

.account-grid {
  display: grid;
  gap: 0.5rem;
}

.account-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 0;
}

.account-label {
  color: var(--text-muted);
  font-weight: 600;
}

.account-value {
  color: var(--text);
}

.admin-panel {
  margin-top: 1.5rem;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0.4rem;
  text-align: start;
  font-size: 0.9rem;
}

/* Website languages owner editor — ~5 locale rows visible, rest scroll */
.pxc-web-loc-checkbox-scroll {
  max-height: 11.25rem;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 0.375rem);
  padding: 0.45rem 0.65rem;
  margin-bottom: 1rem;
  background: var(--surface-muted, #f8fafc);
}

.pxc-web-loc-checkbox-scroll label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.35;
  padding: 0.28rem 0;
  margin: 0;
  cursor: pointer;
}

.pxc-web-loc-country-select {
  width: 100%;
  max-width: 22rem;
  margin-bottom: 0.35rem;
}

/* Authenticated app shell — one surface, hash views stack inside */
.spa-console {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.spa-console-head {
  padding: 2rem 2rem 1.625rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(185deg, #ffffff 0%, rgba(248, 250, 252, 0.85) 100%);
}

.spa-console-title {
  margin-bottom: 0.4rem;
}

.spa-console-subtitle {
  margin-bottom: 0;
  color: var(--text-soft);
}

.spa-console-message {
  margin-top: 1rem;
  margin-bottom: 0;
}

.spa-console-body {
  padding: 1.75rem 2rem 2.25rem;
  background: linear-gradient(180deg, var(--surface-muted) 0%, #f8fafc 100%);
  min-height: 12rem;
}

.spa-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.spa-console .spa-grid {
  gap: 1.25rem;
}

.spa-console .admin-panel {
  margin-top: 0;
  padding: 1.35rem 1.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.spa-console .admin-panel h2,
.spa-console .admin-panel h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 0;
}

.spa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

/* ── i18n / RTL ──────────────────────────────────────────── */
html[dir="rtl"] body,
html.pxc-rtl body {
  font-family: "Noto Sans", var(--font-sans);
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] .page-title,
html.pxc-rtl h1,
html.pxc-rtl h2,
html.pxc-rtl h3,
html.pxc-rtl .page-title {
  font-family: "Noto Sans", var(--font-sans);
}

.nav-lang {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 0.25rem;
}

.nav-lang-select {
  max-width: min(14rem, 42vw);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Self-assessment tool (simple form styles) */
.pxc-fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.85rem 0.9rem;
  background: var(--surface);
}

.pxc-fieldset legend {
  padding: 0 0.35rem;
}

.pxc-radio {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
  color: var(--text);
}

.pxc-field {
  display: grid;
  gap: 0.25rem;
}

.pxc-field input[type="number"],
.pxc-field input[type="file"] {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  font: inherit;
  background: #fff;
}

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

.pxc-sa-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1040;
  width: 4.1rem;
  height: 4.1rem;
  min-height: unset;
  max-width: unset;
  padding: 0.35rem 0.3rem;
  border: none;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(13, 148, 136, 0.45), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.pxc-sa-fab:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 28px rgba(13, 148, 136, 0.55);
}

.pxc-sa-fab:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 3px;
}

.pxc-sa-fab__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.06rem;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  letter-spacing: 0.02em;
}

.pxc-sa-fab__line {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pxc-sa-modal-simple .pxc-sa-results-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  top: 0.35rem;
  align-self: start;
  z-index: 2;
  background: var(--surface, #fff);
}

@media (min-width: 640px) {
  .pxc-sa-modal-simple .pxc-sa-results-stack {
    top: 0.5rem;
  }
}

.pxc-sa-modal-simple .pxc-sa-result-block + .pxc-sa-result-block {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.pxc-sa-photo-after-questions {
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
  padding-top: 1rem;
}

.pxc-sa-photo-footnote {
  line-height: 1.35;
  max-width: 36rem;
}

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

.pxc-sa-preview-hidden img {
  max-width: 8rem;
  height: auto;
}

.pxc-sa-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  pointer-events: none;
}

.pxc-sa-modal.is-open {
  pointer-events: auto;
}

.pxc-sa-modal[hidden] {
  display: none !important;
}

.pxc-sa-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.pxc-sa-modal__dialog {
  position: relative;
  width: 100%;
  max-width: min(56rem, 100vw);
  max-height: min(92vh, 100dvh);
  margin: 0 auto;
  background: var(--surface, #fff);
  border-radius: var(--radius-lg, 1rem) var(--radius-lg, 1rem) 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 640px) {
  .pxc-sa-modal {
    align-items: center;
    padding: 1.5rem;
  }

  .pxc-sa-modal__dialog {
    border-radius: var(--radius-lg, 1rem);
    max-height: min(90vh, 100dvh);
  }
}

.pxc-sa-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 30;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: var(--radius, 0.5rem);
  background: var(--bg, #f8fafc);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pxc-sa-modal__close:hover {
  background: var(--border);
}

.pxc-sa-modal__body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overflow-x: hidden;
  padding: 3rem 1.25rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}

/* Blur scrollable body while image inference runs; overlay sits on dialog so it stays centered in view */
.pxc-sa-modal__dialog--processing .pxc-sa-modal__body {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}

.pxc-sa-processing-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 20;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(248, 250, 252, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pxc-sa-modal__dialog--processing > .pxc-sa-processing-overlay {
  display: flex;
}

.pxc-sa-processing-overlay__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-width: 18rem;
  text-align: center;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg, 1rem);
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(15, 23, 42, 0.12));
}

.pxc-sa-processing-overlay__spinner {
  width: 2.25rem;
  height: 2.25rem;
  border: 3px solid rgba(13, 148, 136, 0.25);
  border-top-color: var(--primary, #0d9488);
  border-radius: 50%;
  animation: pxc-sa-spin 0.85s linear infinite;
}

@keyframes pxc-sa-spin {
  to {
    transform: rotate(360deg);
  }
}

.pxc-sa-processing-overlay__text {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

@media (min-width: 640px) {
  .pxc-sa-modal__body {
    padding: 2.5rem 2rem 2rem;
  }
}

body.pxc-sa-modal-open {
  overflow: hidden;
}

.pxc-sa-camera-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  background: var(--surface);
}

.pxc-sa-camera-video {
  display: block;
  width: 100%;
  max-height: 240px;
  border-radius: var(--radius);
  background: #000;
  object-fit: cover;
}

.pxc-sa-modal-inner .h3 {
  font-family: var(--font-serif, "Instrument Serif", serif);
  font-weight: 400;
  line-height: 1.25;
}

.pxc-ltr-embed {
  unicode-bidi: isolate;
  direction: ltr;
  display: inline-block;
  text-align: start;
}

.pxc-text-start-below {
  text-align: start;
}

[dir="rtl"] .mr-2 {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* ── About: diabetic foot imperative stats ───────────────── */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem;
  margin: 1.75rem 0 0;
}

.about-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.125rem;
  text-align: center;
}

.about-stat-value {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.about-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0.45rem 0 0;
  line-height: 1.45;
}

.about-imperative-source {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin: 1rem 0 0;
  line-height: 1.45;
}

/* ── Pricing page: tier grid & badges ───────────────────── */
.pricing-tier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 82rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .pricing-tier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1140px) {
  .pricing-tier-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pricing-badge-free {
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.28);
}

.pricing-flat-price {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.pricing-price-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.pricing-price-row-compact {
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.pricing-price-intl {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.pricing-price-intl--hero {
  font-size: 3.25rem;
}

.pricing-price-intl--md {
  font-size: 2.35rem;
}

.pricing-flat-price .pricing-price-intl--flat {
  font-size: 1.625rem;
  letter-spacing: -0.03em;
}

.pricing-price-intl--table {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: normal;
  color: var(--text);
  white-space: nowrap;
}

.pricing-price-row-compact .pricing-currency {
  font-size: 1rem;
  padding-top: 0.35rem;
}

.pricing-amount-md {
  font-size: 2.35rem;
}

.pricing-price-row-compact .pricing-period {
  font-size: 0.8125rem;
  line-height: 1.35;
  padding-bottom: 0.15rem;
}

/* ── Pricing comparison table (light section) ────────────── */
.pricing-compare-section {
  background: var(--bg);
}

.pricing-compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 0;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
}

.pricing-compare-caption {
  caption-side: top;
  padding: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
}

.pricing-compare-table {
  width: 100%;
  min-width: 52rem;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.pricing-compare-table thead th {
  background: var(--surface-muted);
  font-weight: 600;
  color: var(--text);
  padding: 0.85rem 0.65rem;
  text-align: center;
  vertical-align: bottom;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 2;
}

.pricing-compare-table thead th:first-child {
  text-align: left;
  left: 0;
  z-index: 3;
}

.pricing-compare-table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  max-width: 14rem;
}

.pricing-compare-table tbody td {
  padding: 0.75rem 0.65rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-muted);
  line-height: 1.4;
}

.pricing-compare-table tbody tr:last-child th,
.pricing-compare-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-compare-table tbody th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
  box-shadow: 6px 0 14px -10px rgba(15, 23, 42, 0.35);
}

.pricing-compare-table tbody tr:nth-child(even) td:first-child,
.pricing-compare-table tbody tr:nth-child(even) th:first-child {
  background: var(--surface-muted);
}

@media (prefers-reduced-motion: no-preference) {
  .pricing-compare-table tbody tr:hover td {
    background: rgba(56, 189, 248, 0.06);
  }

  .pricing-compare-table tbody tr:hover th:first-child {
    background: rgba(56, 189, 248, 0.08);
  }
}
