/* =====================================================
   PilotMonitoringAI - site.css
   Palette: clean airline
   ===================================================== */

/* -- Custom Properties -- */
:root {
  --pm-primary:     #3B84EB;
  --pm-primary-dk:  #2F73CE;
  --pm-surface:     #FFFFFF;
  --pm-accent:      #D9ECFA;
  --pm-teal:        #D9ECFA;
  --pm-teal-dark:   #3B84EB;
  --pm-secondary:   #3B84EB;
  --pm-deep:        #0E2238;
  --pm-muted:       #6B7C8F;
  --pm-hero-from:   #3B84EB;
  --pm-hero-to:     #2F73CE;
  --pm-card-shadow: 0 16px 34px rgba(14, 34, 56, 0.10);
  --pm-card-border: 1px solid rgba(31, 111, 174, 0.14);
  --pm-radius-lg:   10px;
  --pm-radius-md:   8px;
  --pm-radius-sm:   6px;
}

/* -- Base -- */
html {
  font-size: 15px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html,
body {
  position: relative;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin-bottom: 0;
  background: var(--pm-surface);
  color: var(--pm-deep);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  letter-spacing: 0.005em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  line-height: 1.72;
}

.container {
  max-width: 1160px;
}

/* -- Focus rings -- */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #577399;
}

/* -- Buttons -- */
.btn-primary {
  background: linear-gradient(135deg, var(--pm-primary) 0%, var(--pm-primary-dk) 100%);
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  box-shadow: 0 8px 18px rgba(31, 111, 174, 0.28);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--pm-primary-dk) 0%, #134b78 100%);
  box-shadow: 0 12px 24px rgba(31, 111, 174, 0.32);
  transform: translateY(-1px);
  color: #fff;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(31, 111, 174, 0.24);
  color: #fff;
}

.btn-primary:disabled {
  background: rgba(31, 111, 174, 0.35);
  border: none;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-outline-primary {
  color: var(--pm-secondary);
  border: 2px solid var(--pm-secondary);
  border-radius: 10px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  background: transparent;
  transition: all 0.2s ease;
}

.btn-outline-primary:hover {
  background: var(--pm-secondary);
  border-color: var(--pm-secondary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(87, 115, 153, 0.3);
  transform: translateY(-1px);
}

/* -- Navbar -- */
header .navbar {
  position: relative;
  background: var(--pm-hero-from) !important;
  border-bottom: none;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  box-shadow: none;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: #fff !important;
  padding: 0;
}

.brand-logo {
  color: #ffffff;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-logo-img--footer {
  height: 26px;
}

.brand-name {
  color: #fff;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.navbar-brand__logo {
  width: 32px;
  height: 32px;
  display: block;
  box-sizing: border-box;
  border: 2px solid #ffffff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.brand-ai {
  color: #ffffff;
}

header .navbar .navbar-brand {
  color: #fff !important;
}

header .navbar .nav-link,
header .navbar .btn-link.nav-link {
  color: rgba(247, 247, 255, 0.82) !important;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.015em;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: all 0.15s ease;
}

header .navbar .nav-link:hover,
header .navbar .btn-link.nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
}

header .navbar .nav-link,
header .navbar .btn-link.nav-link {
  position: relative;
}

header .navbar .nav-link::after,
header .navbar .btn-link.nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.2rem;
  height: 2px;
  background: #8EDBFF;
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

header .navbar .nav-link:hover::after,
header .navbar .btn-link.nav-link:hover::after,
header .navbar .nav-link.active::after,
header .navbar .btn-link.nav-link.active::after {
  transform: scaleX(1);
}

header .navbar .nav-link.active::after,
header .navbar .btn-link.nav-link.active::after {
  background: #ffffff;
}

header .navbar .nav-link.active,
header .navbar .btn-link.nav-link.active {
  color: #ffffff !important;
}

header .navbar-toggler {
  border-color: rgba(189, 213, 234, 0.4);
}

header .navbar-toggler-icon {
  filter: invert(1);
}

/* -- Site Footer -- */
.site-footer {
  background: linear-gradient(135deg, var(--pm-hero-from) 0%, var(--pm-hero-to) 100%);
  color: rgba(247, 247, 255, 0.74);
  padding: 3.5rem 0 1.5rem;
  border-top: 1px solid rgba(217, 236, 250, 0.12);
  margin-top: 4rem;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

.site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.site-footer__brand-row .brand-logo {
  color: #ffffff;
}

.site-footer__tagline {
  font-size: 0.87rem;
  color: rgba(247, 247, 255, 0.74);
  line-height: 1.65;
  max-width: 280px;
  margin: 0 0 0.7rem;
}

.site-footer__col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: none;
  color: rgba(247, 247, 255, 0.74);
  margin-bottom: 1rem;
  margin-top: 0;
}

.site-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.site-footer__col ul a {
  color: rgba(247, 247, 255, 0.74);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.site-footer__col ul a:hover {
  color: #fff;
}

.site-footer__bottom {
  border-top: 1px solid rgba(189, 213, 234, 0.07);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(247, 247, 255, 0.52);
}

.site-footer__trademark {
  font-size: 0.84rem;
  color: rgba(247, 247, 255, 0.74);
  line-height: 1.5;
  margin: 0 0 0.15rem;
}

.site-footer__canada {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(247, 247, 255, 0.74);
  font-size: 0.84rem;
}

.site-footer__canada-flag {
  width: 20px;
  height: 15px;
  display: inline-block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
  flex: 0 0 auto;
}

.site-footer__bottom a {
  color: rgba(247, 247, 255, 0.66);
  text-decoration: none;
}

.site-footer__bottom a:hover {
  color: rgba(247, 247, 255, 0.8);
}

.site-footer__disclaimer {
  margin-top: 0.7rem;
  font-size: 0.76rem;
  color: rgba(247, 247, 255, 0.58);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* Hide legacy footer */
.footer {
  display: none;
}

/* -- Auth pages -- */
.auth-page {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem 4rem;
}

.auth-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 2.75rem;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 30px 60px rgba(73, 88, 103, 0.14), 0 0 0 1px rgba(87, 115, 153, 0.08);
}

.auth-header h1 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--pm-deep);
  letter-spacing: -0.025em;
}

.auth-header p {
  color: rgba(73, 88, 103, 0.6);
  margin-bottom: 2rem;
}

.auth-form .form-control {
  border-radius: var(--pm-radius-sm);
  border: 1.5px solid rgba(87, 115, 153, 0.2);
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  background: #fafbfc;
  transition: all 0.2s;
}

.auth-form .form-control:focus {
  border-color: var(--pm-secondary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(87, 115, 153, 0.12);
}

.form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--pm-deep);
  margin-bottom: 0.4rem;
}

.auth-footer {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: rgba(73, 88, 103, 0.6);
}

.auth-footer a {
  color: var(--pm-secondary);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  color: var(--pm-deep);
}

.auth-footer a.auth-cta-btn,
.auth-footer a.auth-cta-btn:hover,
.auth-footer a.auth-cta-btn:focus,
.auth-footer a.auth-cta-btn:active {
  color: #ffffff !important;
}

/* -- Password requirements checklist -- */
.pw-requirements {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  line-height: 1.7;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.25s ease, max-height 0.3s ease;
}

.pw-requirements.pw-visible {
  opacity: 1;
  max-height: 200px;
}

.pw-requirements li {
  color: var(--pm-deep);
  opacity: 0.55;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.pw-requirements li .pw-icon {
  display: inline-block;
  width: 1.2em;
  text-align: center;
  margin-right: 0.25rem;
  font-weight: 700;
}

.pw-requirements li.pw-met {
  opacity: 1;
  color: #2e7d32;
}

.pw-requirements li.pw-met .pw-icon {
  color: #2e7d32;
}

.pw-requirements li.pw-unmet {
  opacity: 0.55;
  color: var(--pm-deep);
}

.pw-match-status {
  font-size: 0.85rem;
  margin-top: 0.4rem;
  min-height: 1.3em;
  font-weight: 600;
}

.pw-match-ok {
  color: #2e7d32;
}

.pw-match-fail {
  color: var(--pm-primary);
}

/* -- Terms agreement checkbox -- */
.terms-agree {
  margin-top: 0.25rem;
}

.terms-agree__label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--pm-deep);
  cursor: pointer;
  line-height: 1.45;
}

.terms-agree__checkbox {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--pm-secondary);
  cursor: pointer;
}

.terms-agree__label a {
  color: var(--pm-secondary);
  font-weight: 600;
  text-decoration: none;
}

.terms-agree__label a:hover {
  color: var(--pm-deep);
  text-decoration: underline;
}

/* -- HOME: Hero -- */
.home-hero {
  padding: 8rem 2rem 8.25rem;
  text-align: center;
  background: var(--pm-hero-from);
  margin-top: calc(-1rem - 2px);
  margin-bottom: 3.5rem;
  margin-left: calc(50% - 50vw);
  width: 100vw;
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 62% 34% at 50% 64%, rgba(14, 34, 56, 0.16) 0%, rgba(14, 34, 56, 0.06) 48%, rgba(14, 34, 56, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/images/A320.png');
  background-repeat: no-repeat;
  background-position: center calc(50%);
  background-size: contain;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.home-cta--mid {
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.home-hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.home-hero__content h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.14;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.25rem;
  color: #fff;
  text-shadow:
    -1px -1px 0 #3a4a5c,
     1px -1px 0 #3a4a5c,
    -1px  1px 0 #3a4a5c,
     1px  1px 0 #3a4a5c,
     0   -1px 0 #3a4a5c,
     0    1px 0 #3a4a5c,
    -1px  0   0 #3a4a5c,
     1px  0   0 #3a4a5c,
     0 3px 9px rgba(0, 0, 0, 0.46);
  letter-spacing: -0.03em;
  text-align: center;
  text-wrap: balance;
}

.home-hero__content h2 {
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-weight: 500;
    line-height: 1.35;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow:
      -1px -1px 0 #3a4a5c,
       1px -1px 0 #3a4a5c,
      -1px  1px 0 #3a4a5c,
       1px  1px 0 #3a4a5c,
       0   -1px 0 #3a4a5c,
       0    1px 0 #3a4a5c,
      -1px  0   0 #3a4a5c,
       1px  0   0 #3a4a5c,
       0 3px 9px rgba(0, 0, 0, 0.44);
    letter-spacing: -0.03em;
    text-align: center;
    text-wrap: balance;
}

.home-hero__content p {
  font-size: 1.06rem;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3), 0 0 1px rgba(14, 34, 56, 0.4);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.78;
}

.home-hero__detail-rail {
  max-width: 760px;
  margin: 1.35rem auto 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.home-hero__detail-rail p {
  max-width: none;
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  text-align: left;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
}

.home-hero__detail-rail p + p {
  margin-top: 0.85rem;
}

.home-hero__keyword {
  color: #FFFFFF;
  font-weight: 700;
}

.home-hero__capability {
  color: #eaf8ff;
  font-weight: inherit;
  letter-spacing: 0.01em;
  text-shadow: none;
  opacity: 1;
  animation: none;
}

.home-hero__capability--green {
  color: #9BFFAE;
  text-shadow: none;
}

.home-hero__capability--cyan {
  color: #8EDBFF;
  text-shadow: none;
}

.home-hero__capability--amber {
  color: #FFD98B;
  text-shadow: none;
}

.home-hero__eyebrow {
  display: block;
  padding: 0;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.25rem;
  text-align: center;
}

.home-hero__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: fit-content;
  margin: 0 auto 1.25rem;
  padding: 0.6rem 0.75rem;
  background: transparent;
  border-radius: 0;
}

.home-hero__logo {
  display: block;
  width: 96px;
  height: 96px;
  box-sizing: border-box;
  border: 2px solid #ffffff;
}

.home-hero__ea-badge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  box-sizing: border-box;
  padding: 0.32rem 0.25rem;
  border: 2px solid #ffffff;
  background: #ED1D25;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  border-radius: 0;
}

.home-hero__ea-badge::before {
  content: "";
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  background: linear-gradient(315deg, #ffffff 0%, #e4e4e4 100%);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.home-hero__ea-badge-num {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0;
}

@media (max-width: 575px) {
  .home-hero__brand {
    gap: 0.6rem;
    margin-bottom: 1rem;
  }

  .home-hero__logo {
    width: 72px;
    height: 72px;
  }

  .home-hero__ea-badge {
    width: 72px;
    height: 72px;
    font-size: 0.82rem;
  }
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2.5rem 0 0;
}

.home-hero__actions .btn {
  min-width: 210px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-hero__actions .btn-primary {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: none;
  font-size: 1rem;
  padding: 0.85rem 2rem;
}

.home-hero__actions .btn-primary:hover {
  background: #fff;
  border-color: #fff;
  color: var(--pm-deep);
  box-shadow: none;
  transform: none;
}

.home-hero__actions .btn-outline-primary {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  padding: 0.8rem 2rem;
  background: rgba(255, 255, 255, 0.08);
}

.home-hero__actions .btn-outline-primary:hover {
  background: #fff;
  border-color: #fff;
  color: var(--pm-deep);
  box-shadow: none;
  transform: none;
}

/* -- HOME: PM chat (PM speaks to you) -- */
.home-pm-chat {
  max-width: 640px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-pm-chat__status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(14, 34, 56, 0.55);
  padding: 0 0.15rem 0.25rem;
}

.home-pm-chat__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

.home-pm-chat__mute {
  appearance: none;
  background: transparent;
  border: none;
  color: rgba(14, 34, 56, 0.42);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1;
  transition: color 160ms ease, background 160ms ease;
}
.home-pm-chat__mute:hover,
.home-pm-chat__mute:focus-visible {
  color: var(--pm-primary);
  background: rgba(59, 132, 235, 0.08);
  outline: none;
}
.home-pm-chat__mute[aria-pressed="true"] {
  color: var(--pm-primary);
}

.home-pm-chat__play {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid rgba(31, 111, 174, 0.28);
  color: var(--pm-primary);
  padding: 0.3rem 0.7rem 0.3rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  gap: 0.4rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  align-items: center;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.home-pm-chat__play.is-visible {
  display: inline-flex;
}
.home-pm-chat__play-icon { font-size: 0.72rem; }
.home-pm-chat__play:hover,
.home-pm-chat__play:focus-visible {
  background: rgba(59, 132, 235, 0.10);
  border-color: var(--pm-primary);
  outline: none;
}
.home-pm-chat__play.needs-attention {
  animation: home-pm-chat-play-pulse 1.8s ease-in-out infinite;
}

@keyframes home-pm-chat-play-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 132, 235, 0); }
  50%      { box-shadow: 0 0 0 5px rgba(59, 132, 235, 0.22); }
}

.home-pm-chat__listen {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid rgba(31, 111, 174, 0.28);
  color: var(--pm-primary);
  padding: 0.32rem 0.7rem 0.32rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  gap: 0.35rem;
  align-items: center;
  align-self: flex-start;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.home-pm-chat__listen i { font-size: 0.75rem; }
.home-pm-chat__listen:hover,
.home-pm-chat__listen:focus-visible {
  background: rgba(59, 132, 235, 0.08);
  border-color: var(--pm-primary);
  outline: none;
}
.home-pm-chat__msg.needs-listen .home-pm-chat__listen {
  display: inline-flex;
}

.home-pm-chat__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.35);
  animation: home-pm-chat-status 2.2s ease-out infinite;
}

@keyframes home-pm-chat-status {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.35); }
  75%  { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.home-pm-chat__thread {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.home-pm-chat__msg {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.65rem;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(6px);
}

.home-pm-chat__msg.is-in {
  animation: home-pm-chat-msg-in 380ms cubic-bezier(0.22, 0.68, 0.22, 1) forwards;
}

@keyframes home-pm-chat-msg-in {
  to { opacity: 1; transform: translateY(0); }
}

.home-pm-chat__avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pm-primary) 0%, var(--pm-primary-dk) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(31, 111, 174, 0.25);
  flex-shrink: 0;
  align-self: flex-end;
}

.home-pm-chat__avatar i {
  font-size: 1rem;
  color: #fff;
}

.home-pm-chat__bubble {
  position: relative;
  background: #EDF3FB;
  color: var(--pm-deep);
  border: 1px solid rgba(31, 111, 174, 0.16);
  border-radius: 14px 14px 14px 4px;
  padding: 0.9rem 1.05rem 0.75rem;
  box-shadow: 0 12px 26px rgba(14, 34, 56, 0.08);
  min-height: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.home-pm-chat__typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
  height: 1.3rem;
}

.home-pm-chat__typing span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--pm-primary);
  opacity: 0.45;
  animation: home-pm-chat-typing 1.1s ease-in-out infinite;
}

.home-pm-chat__typing span:nth-child(2) { animation-delay: 0.15s; }
.home-pm-chat__typing span:nth-child(3) { animation-delay: 0.30s; }

@keyframes home-pm-chat-typing {
  0%, 60%, 100% { transform: translateY(0);    opacity: 0.35; }
  30%           { transform: translateY(-4px); opacity: 0.9;  }
}

.home-pm-chat__msg.is-typing .home-pm-chat__text,
.home-pm-chat__msg.is-typing .home-pm-chat__wave {
  display: none;
}

.home-pm-chat__msg:not(.is-typing) .home-pm-chat__typing {
  display: none;
}

.home-pm-chat__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(14, 34, 56, 0.82);
  animation: home-pm-chat-text-in 260ms ease-out;
}

@keyframes home-pm-chat-text-in {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: translateY(0); }
}

.home-pm-chat__wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 12px;
  padding-top: 1px;
  opacity: 0.7;
}

.home-pm-chat__wave i {
  display: block;
  width: 3px;
  height: 30%;
  background: rgba(59, 132, 235, 0.55);
  border-radius: 2px;
  transform-origin: center bottom;
  animation: home-pm-chat-wave 1.2s ease-in-out;
}

.home-pm-chat__wave i:nth-child(1)  { animation-delay: 0.00s; height: 30%; }
.home-pm-chat__wave i:nth-child(2)  { animation-delay: 0.06s; height: 70%; }
.home-pm-chat__wave i:nth-child(3)  { animation-delay: 0.12s; height: 45%; }
.home-pm-chat__wave i:nth-child(4)  { animation-delay: 0.18s; height: 90%; }
.home-pm-chat__wave i:nth-child(5)  { animation-delay: 0.24s; height: 55%; }
.home-pm-chat__wave i:nth-child(6)  { animation-delay: 0.30s; height: 75%; }
.home-pm-chat__wave i:nth-child(7)  { animation-delay: 0.36s; height: 40%; }
.home-pm-chat__wave i:nth-child(8)  { animation-delay: 0.42s; height: 65%; }
.home-pm-chat__wave i:nth-child(9)  { animation-delay: 0.48s; height: 35%; }
.home-pm-chat__wave i:nth-child(10) { animation-delay: 0.54s; height: 50%; }
.home-pm-chat__wave i:nth-child(11) { animation-delay: 0.60s; height: 30%; }
.home-pm-chat__wave i:nth-child(12) { animation-delay: 0.66s; height: 20%; }

@keyframes home-pm-chat-wave {
  0%   { transform: scaleY(0.3); opacity: 0.35; }
  25%  { transform: scaleY(1);   opacity: 1;    }
  100% { transform: scaleY(0.5); opacity: 0.5;  }
}

@media (max-width: 640px) {
  .home-pm-chat__msg {
    grid-template-columns: 34px 1fr;
    gap: 0.55rem;
  }
  .home-pm-chat__avatar { width: 34px; height: 34px; }
  .home-pm-chat__avatar i { font-size: 0.85rem; }
  .home-pm-chat__bubble { padding: 0.8rem 0.95rem 0.7rem; }
  .home-pm-chat__text { font-size: 0.98rem; }
}

@media (prefers-reduced-motion: reduce) {
  .home-pm-chat__msg,
  .home-pm-chat__msg.is-in {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .home-pm-chat__typing span,
  .home-pm-chat__dot,
  .home-pm-chat__wave i,
  .home-pm-chat__text,
  .home-pm-chat__play.needs-attention {
    animation: none !important;
  }
}

/* -- HOME: Contrast (rotating pair carousel) -- */
.home-contrast {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  max-width: 900px;
  margin: 0 auto 1.2rem;
  border-radius: var(--pm-radius-lg);
  overflow: hidden;
  border: var(--pm-card-border);
  box-shadow: var(--pm-card-shadow);
  background: #fff;
  outline: none;
}

.home-contrast__progress {
  position: relative;
  height: 20px;
  margin: 0 auto 0.6rem;
  overflow: visible;
  pointer-events: none;
}

.home-contrast__progress-fill {
  position: absolute;
  top: 4px;
  left: 0;
  display: block;
  height: 12px;
  width: 0;
  /* Two contrails painted onto ::before (upper engine) and ::after (lower
     engine) to represent the A320's two wing-mounted engines. The fill itself
     is just a positioning box; the pseudo-elements carry the visuals so the
     plane child stays crisp regardless of contrail blur. */
}

.home-contrast__progress-fill::before,
.home-contrast__progress-fill::after {
  content: '';
  position: absolute;
  left: 0;
  right: 4px; /* Pull the trail slightly back from the wings so it reads as
                 vapor forming a moment after leaving the engines. */
  height: 3px;
  /* Contrail: individual puff clouds at the tail (fixed pixel positions so they
     stay put as the fill grows), then a continuous but soft trail near the plane
     (percentage-based so it stretches with the animation). */
  background:
    radial-gradient(ellipse 7px 2px at 8px 50%,  rgba(200, 205, 215, 0.4), transparent 70%),
    radial-gradient(ellipse 9px 2px at 24px 50%, rgba(200, 205, 215, 0.55), transparent 70%),
    radial-gradient(ellipse 10px 3px at 46px 50%, rgba(195, 200, 210, 0.6), transparent 70%),
    radial-gradient(ellipse 9px 3px at 68px 50%, rgba(190, 195, 210, 0.65), transparent 70%),
    linear-gradient(90deg,
      transparent 0%,
      transparent 40%,
      rgba(185, 190, 205, 0.5) 60%,
      rgba(175, 180, 195, 0.7) 85%,
      rgba(170, 175, 195, 0.8) 100%);
  background-repeat: no-repeat;
  border-radius: 3px;
  filter: blur(0.4px);
}

.home-contrast__progress-fill::before {
  top: 0;
}

.home-contrast__progress-fill::after {
  bottom: 0;
}

.home-contrast__progress-plane {
  /* Plane rides the tip of the growing fill, keeps its natural 45° climb angle */
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  color: #e63946;
  font-size: 18px;
  line-height: 1;
}

.home-contrast__progress-fill.run {
  animation: home-contrast-fill 5500ms linear forwards;
}

@keyframes home-contrast-fill {
  from { width: 0; }
  to   { width: 100%; }
}

.home-contrast__progress-fill.paused { animation-play-state: paused; }

.home-contrast__nav-group {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 3.5rem;
}

.home-contrast__side {
  padding: 2.2rem 2.4rem 2.4rem;
  min-height: 15.5rem;
  display: flex;
  flex-direction: column;
}

.home-contrast__side h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.35rem;
}

.home-contrast__before { background: rgba(14, 34, 56, 0.04); }
.home-contrast__before h3 { color: rgba(14, 34, 56, 0.52); }

.home-contrast__after { background: #fff; }
.home-contrast__after h3 { color: var(--pm-secondary); }

.home-contrast__pair {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
  color: rgba(14, 34, 56, 0.72);
}

.home-contrast__pair.anim {
  animation: home-contrast-pair-in 420ms cubic-bezier(0.22, 0.68, 0.22, 1);
}

@keyframes home-contrast-pair-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.home-contrast__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(14, 34, 56, 0.52);
}

.home-contrast__eyebrow--after { color: var(--pm-secondary); }

.home-contrast__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0;
}

.home-contrast__eyebrow--before .home-contrast__mark {
  background: rgba(237, 29, 37, 0.10);
  color: #ED1D25;
}

.home-contrast__eyebrow--after .home-contrast__mark {
  color: var(--pm-primary);
  background: transparent;
  width: 22px;
  height: 22px;
}

.home-contrast__eyebrow--after .home-contrast__mark svg {
  width: 20px;
  height: 20px;
  display: block;
}

.home-contrast__body {
  margin: 0;
  color: rgba(14, 34, 56, 0.72);
  font-size: 1rem;
  line-height: 1.65;
}

.home-contrast__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  background: rgba(31, 111, 174, 0.08);
  color: var(--pm-secondary);
}

.home-contrast__arrow {
  width: 22px;
  height: 22px;
}

.home-contrast__divider.pulse .home-contrast__arrow {
  animation: home-contrast-arrow-nudge 520ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes home-contrast-arrow-nudge {
  0%   { transform: translateX(-6px); opacity: 0.5; }
  55%  { transform: translateX(3px);  opacity: 1;   }
  100% { transform: translateX(0);    opacity: 1;   }
}

.home-contrast__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.home-contrast__ctrl {
  appearance: none;
  background: transparent;
  color: rgba(14, 34, 56, 0.52);
  border: 1px solid transparent;
  padding: 0.45rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.home-contrast__ctrl svg { width: 18px; height: 18px; display: block; }

.home-contrast__ctrl:hover,
.home-contrast__ctrl:focus-visible {
  color: var(--pm-primary);
  background: var(--pm-accent);
  outline: none;
}

.home-contrast__ctrl:focus-visible { border-color: var(--pm-primary); }

.home-contrast__dots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.home-contrast__dot {
  appearance: none;
  background: rgba(14, 34, 56, 0.18);
  border: none;
  padding: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease, width 240ms ease;
}

.home-contrast__dot:hover { transform: scale(1.2); }

.home-contrast__dot[aria-selected="true"] {
  background: var(--pm-primary);
  width: 24px;
}

.home-contrast__dot:focus-visible {
  outline: 2px solid var(--pm-primary);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .home-contrast {
    grid-template-columns: 1fr;
  }

  .home-contrast__divider {
    height: 2.5rem;
    width: 100%;
  }

  .home-contrast__divider.pulse .home-contrast__arrow {
    animation: none;
  }

  .home-contrast__side {
    min-height: 12rem;
    padding: 1.85rem 1.6rem 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-contrast__pair.anim,
  .home-contrast__divider.pulse .home-contrast__arrow,
  .home-contrast__progress-fill.run {
    animation: none !important;
  }

  .home-contrast__progress-fill.run { width: 100%; }
}

/* -- HOME: Sections (shared) -- */
.home-section {
  padding: 3.5rem 0 4.5rem;
}

.home-section__header {
  text-align: center;
  margin-bottom: 3.25rem;
}

.home-section__header h2 {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
  color: var(--pm-deep);
}

.home-section__header p {
  color: var(--pm-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1rem;
}

/* -- HOME: Pillars -- */
.home-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 980px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .home-pillars {
    grid-template-columns: 1fr;
    max-width: 460px;
  }
}

.home-pillar {
  text-align: left;
  padding: 1.7rem 1.6rem 1.6rem;
  border-radius: var(--pm-radius-lg);
  background: #fff;
  border: var(--pm-card-border);
  box-shadow: 0 10px 24px rgba(14, 34, 56, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.home-pillar--full {
  grid-column: 1 / -1;
}

.home-pillar:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px rgba(14, 34, 56, 0.15);
}

.home-pillar__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.home-pillar__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(217, 236, 250, 0.85) 0%, rgba(31, 111, 174, 0.12) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pm-secondary);
  flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease;
}

.home-pillar:hover .home-pillar__icon {
  background: linear-gradient(135deg, rgba(189, 213, 234, 0.5) 0%, rgba(87, 115, 153, 0.18) 100%);
  color: var(--pm-deep);
}

.home-pillar__icon svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.home-pillar h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--pm-deep);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.home-pillar__lead {
  color: var(--pm-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.home-pillar__group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.home-pillar__group-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--pm-secondary);
}

.home-pillar__group-note {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--pm-muted);
}

.home-pillar__chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  padding: 0.55rem 0.8rem;
  background: rgba(14, 34, 56, 0.03);
  border-left: 3px solid var(--pm-secondary);
  border-radius: 0 6px 6px 0;
}

.home-pillar__chip {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: transparent;
  color: var(--pm-deep);
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  white-space: nowrap;
  line-height: 1.3;
}

.home-pillar__exchange {
  display: grid;
  grid-template-columns: auto auto auto auto auto;
  justify-content: center;
  align-items: center;
  column-gap: 0.5rem;
  row-gap: 0.4rem;
  font-size: 0.85rem;
  line-height: 1.35;
  padding: 0.65rem 0.8rem;
  background: rgba(14, 34, 56, 0.03);
  border-left: 3px solid var(--pm-primary);
  border-radius: 0 6px 6px 0;
  margin-top: 0.15rem;
}

.home-pillar__exchange-you {
  color: var(--pm-muted);
  font-style: italic;
  text-align: left;
}

.home-pillar__exchange-arrows {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 0.75;
  color: var(--pm-primary);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0 0.05rem;
}

.home-pillar__exchange-arrow-top,
.home-pillar__exchange-arrow-bot {
  display: block;
}

.home-pillar__exchange-arrow-bot {
  margin-top: -0.15rem;
}

.home-pillar__exchange-pm {
  color: var(--pm-deep);
  font-weight: 600;
  text-align: right;
}

.home-pillar__exchange-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  padding: 0.1rem 0.4rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 4px;
  line-height: 1.25;
}

.home-pillar__exchange-badge--pf {
  background: transparent;
  color: var(--pm-muted);
  border: none;
}

.home-pillar__exchange-badge--pm {
  background: transparent;
  color: var(--pm-primary);
  border: none;
}

.home-pillar__quotes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.home-pillar__quotes li {
  font-size: 0.88rem;
  color: var(--pm-deep);
  padding: 0.5rem 0.75rem;
  background: rgba(14, 34, 56, 0.03);
  border-left: 3px solid var(--pm-secondary);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  line-height: 1.4;
}

/* -- HOME: Demo -- */
.home-demo__embed {
  max-width: 720px;
  margin: 0 auto 1.5rem;
}

.home-demo__placeholder {
  background: linear-gradient(160deg, var(--pm-hero-from) 0%, var(--pm-hero-to) 100%);
  border-radius: 10px;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(247, 247, 255, 0.55);
  border: 1px solid rgba(189, 213, 234, 0.08);
  position: relative;
  overflow: hidden;
}

.home-demo__placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(189, 213, 234, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(189, 213, 234, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.home-demo__placeholder span {
  position: relative;
  font-size: 3rem;
  margin-bottom: 0.5rem;
  opacity: 0.55;
}

.home-demo__placeholder p {
  position: relative;
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0;
  opacity: 0.45;
}

.home-demo__proof {
  text-align: center;
  color: var(--pm-muted);
  font-weight: 500;
  font-size: 0.88rem;
  max-width: 560px;
  margin: 0 auto;
}

/* -- HOME: Flows spotlight -- */
/* -- HOME: Flow spotlight (THE AIRBUS WAY - flow strip) -- */
.home-flows__inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 900px) {
  .home-flows__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Left: text + PM quote */
.home-flows__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-flows__eyebrow {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pm-primary);
}

.home-flows__text h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--pm-deep);
  font-weight: 700;
}

.home-flows__text p {
  margin: 0;
  color: rgba(14, 34, 56, 0.72);
  font-size: 1rem;
  line-height: 1.7;
}

.home-flows__quote {
  margin: 0.6rem 0 0;
  padding: 1rem 1.15rem 0.85rem;
  background: #F7FAFD;
  border: 1px solid rgba(31, 111, 174, 0.12);
  border-left: 3px solid var(--pm-primary);
  border-radius: var(--pm-radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.home-flows__quote blockquote {
  margin: 0;
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--pm-deep);
}

.home-flows__quote-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.home-flows__quote-attr {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(14, 34, 56, 0.52);
}

/* Right: flow strip */
.home-flows__strip {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}

.home-flows__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

/* Each step: header (num + title) always visible; detail block collapses/expands */
.home-flows__step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 1rem;
  padding: 0.5rem 0 0.75rem;
  position: relative;
}

/* Dashed connector between step badges - grows via scaleY when step is 'passed' */
.home-flows__step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 46px;
  bottom: 0;
  width: 2px;
  background-image: linear-gradient(to bottom, rgba(59, 132, 235, 0.32) 60%, transparent 60%);
  background-size: 2px 8px;
  background-repeat: repeat-y;
  z-index: 0;
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}
.home-flows__step.is-passed:not(:last-child)::after {
  transform: scaleY(1);
}

.home-flows__step-num {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pm-primary) 0%, var(--pm-primary-dk) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(31, 111, 174, 0.25);
  position: relative;
  z-index: 1;
  transition: box-shadow 300ms ease;
}
.home-flows__step.is-active .home-flows__step-num {
  box-shadow: 0 4px 10px rgba(31, 111, 174, 0.28),
              0 0 0 4px rgba(59, 132, 235, 0.14);
}

.home-flows__step-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 0.35rem;
}

.home-flows__step-body strong {
  font-size: 1.05rem;
  color: var(--pm-deep);
  font-weight: 700;
  transition: color 240ms ease;
}
.home-flows__step:not(.is-active):not(.is-passed) .home-flows__step-body strong {
  color: rgba(14, 34, 56, 0.62);
}

.home-flows__step-body p {
  margin: 0;
  color: rgba(14, 34, 56, 0.72);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Collapsible detail block: description + mini demo */
.home-flows__step-detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: max-height 500ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 300ms ease,
              margin-top 400ms ease;
}
.home-flows__step.is-active .home-flows__step-detail {
  max-height: 420px;
  opacity: 1;
  margin-top: 0.5rem;
}

.home-flows__demo {
  margin-top: 0.2rem;
  background: #F7FAFD;
  border: 1px solid rgba(31, 111, 174, 0.12);
  border-radius: var(--pm-radius-sm);
  padding: 0.85rem 1rem;
}

/* Demo 1: switches */
.home-flows__demo--switches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}
.home-flows__switch {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.home-flows__switch-body {
  width: 100%;
  height: 30px;
  border-radius: 5px;
  background: rgba(14, 34, 56, 0.08);
  border: 1px solid rgba(14, 34, 56, 0.10);
  position: relative;
  overflow: hidden;
  transition: background 260ms ease, border-color 260ms ease, transform 220ms cubic-bezier(0.2, 1.5, 0.2, 1);
}
.home-flows__switch-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: rgba(14, 34, 56, 0.52);
  text-transform: uppercase;
}
.home-flows__switch-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(14, 34, 56, 0.52);
  text-transform: uppercase;
  transition: color 260ms ease;
}
.home-flows__switch.is-on .home-flows__switch-body {
  background: linear-gradient(135deg, var(--pm-primary) 0%, var(--pm-primary-dk) 100%);
  border-color: transparent;
  transform: scale(1.03);
}
.home-flows__switch.is-on .home-flows__switch-state { color: #fff; }
.home-flows__switch.is-on .home-flows__switch-body::after {
  content: '';
  position: absolute;
  right: 5px;
  top: 5px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22C55E;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
  animation: home-flows-switch-led 1800ms ease-out;
}
@keyframes home-flows-switch-led {
  0%   { opacity: 0; transform: scale(0.6); background: #FFD84D; box-shadow: 0 0 6px rgba(255, 216, 77, 0.6); }
  15%  { opacity: 1; transform: scale(1);   background: #FFD84D; box-shadow: 0 0 8px rgba(255, 216, 77, 0.7); }
  55%  { opacity: 1; transform: scale(1);   background: #FFD84D; box-shadow: 0 0 8px rgba(255, 216, 77, 0.7); }
  100% { opacity: 1; transform: scale(1);   background: #22C55E; box-shadow: 0 0 6px rgba(34, 197, 94, 0.5); }
}

/* A320 pushbutton variant (EXT PWR — others to follow) */
.home-flows__switch--pushbutton .home-flows__switch-body {
  background: transparent;
  border: none;
  padding: 0;
  height: auto;
  overflow: visible;
  transform: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
.home-flows__switch--pushbutton.is-on .home-flows__switch-body {
  background: transparent;
  border-color: transparent;
  transform: none;
}
.home-flows__switch--pushbutton.is-on .home-flows__switch-body::after {
  display: none;
}

.home-flows__pushbutton {
  width: 48px;
  height: 48px;
  background: #0F0F0F;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.25);
}

.home-flows__pushbutton-cell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home-flows__pushbutton-cell--on,
.home-flows__pushbutton-cell--off {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* AVAIL: green + backlit glow by default, extinguishes on .is-on */
.home-flows__pushbutton-cell--avail {
  color: #22E082;
  text-shadow: 0 0 6px rgba(34, 224, 130, 0.65);
}
.home-flows__switch.is-on .home-flows__pushbutton-cell--avail {
  animation: home-flows-pb-avail-off 1600ms ease-out forwards;
}
@keyframes home-flows-pb-avail-off {
  0%   { color: #22E082; text-shadow: 0 0 6px rgba(34, 224, 130, 0.65); }
  30%  { color: #22E082; text-shadow: 0 0 6px rgba(34, 224, 130, 0.65); }
  100% { color: #3A3A3A; text-shadow: none; }
}

/* ON: dim grey by default, illuminates blue on .is-on */
.home-flows__pushbutton-cell--on {
  color: #7A7A7A;
  text-shadow: none;
}
.home-flows__switch.is-on .home-flows__pushbutton-cell--on {
  animation: home-flows-pb-on-lit 1600ms ease-out forwards;
}
@keyframes home-flows-pb-on-lit {
  0%   { color: #7A7A7A; text-shadow: none; }
  40%  { color: #7A7A7A; text-shadow: none; }
  100% { color: #40C4FF; text-shadow: 0 0 6px rgba(64, 196, 255, 0.7); }
}

/* BAT 1 / BAT 2 paired pushbuttons */
.home-flows__switch--bat-pair .home-flows__switch-body {
  background: transparent;
  border: none;
  padding: 0;
  height: auto;
  overflow: visible;
  transform: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.home-flows__switch--bat-pair.is-on .home-flows__switch-body {
  background: transparent;
  border-color: transparent;
  transform: none;
}
.home-flows__switch--bat-pair.is-on .home-flows__switch-body::after {
  display: none;
}

.home-flows__pair-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.home-flows__pushbutton--bat {
  width: 44px;
  height: 44px;
}
.home-flows__pushbutton--bat .home-flows__pushbutton-cell {
  font-size: 9px;
}

/* FAULT: dim grey — stays at rest throughout our demo (never illuminates amber in normal cockpit prep) */
.home-flows__pushbutton-cell--fault {
  color: #7A7A7A;
  text-shadow: none;
}

/* OFF: white lit by default (battery is out); extinguishes on .is-on (button pressed in, battery online) */
.home-flows__pushbutton-cell--off {
  color: #FFFFFF;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.65);
}
.home-flows__switch.is-on .home-flows__pushbutton-cell--off {
  animation: home-flows-pb-off-extinguish 1400ms ease-out forwards;
}
@keyframes home-flows-pb-off-extinguish {
  0%   { color: #FFFFFF; text-shadow: 0 0 6px rgba(255, 255, 255, 0.65); }
  30%  { color: #FFFFFF; text-shadow: 0 0 6px rgba(255, 255, 255, 0.65); }
  100% { color: #3A3A3A; text-shadow: none; }
}

/* ADIRS rotary selector */
.home-flows__switch--rotary .home-flows__switch-body {
  background: transparent;
  border: none;
  padding: 0;
  height: auto;
  overflow: visible;
  transform: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
.home-flows__switch--rotary.is-on .home-flows__switch-body {
  background: transparent;
  border-color: transparent;
  transform: none;
}
.home-flows__switch--rotary.is-on .home-flows__switch-body::after {
  display: none;
}

.home-flows__rotary {
  position: relative;
  width: 72px;
  height: 58px;
}

.home-flows__rotary-marker {
  position: absolute;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(14, 34, 56, 0.68);
  white-space: nowrap;
  text-transform: uppercase;
}
.home-flows__rotary-marker--off { top: 4px; left: 2px; }
.home-flows__rotary-marker--nav { top: 0; left: 50%; transform: translateX(-50%); }
.home-flows__rotary-marker--att { top: 4px; right: 2px; }

.home-flows__rotary-knob {
  /* Base disc: silvery metallic ring behind the elongated knob body */
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #C8C4B5 0%, #A69F8C 55%, #7A7364 100%);
  border: 1px solid rgba(50, 45, 35, 0.55);
  box-shadow:
    inset 0 -2px 3px rgba(0, 0, 0, 0.25),
    0 1px 2px rgba(0, 0, 0, 0.3);
  overflow: visible;
}

.home-flows__rotary-knob-top {
  /* Rotation container - rotates around base center; the elongated knob child extends past on the pointer side */
  position: absolute;
  inset: 0;
  transform: rotate(-60deg);
  transform-origin: center center;
}

.home-flows__rotary-knob-pointer {
  /* Elongated knob body: wider at the back, tapers to a narrow front where the marker is.
     The front tip protrudes ~4px above the base disc, and the back extends ~4px below it. */
  position: absolute;
  top: -4px;
  left: 50%;
  width: 22px;
  height: 52px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #F4F0E4 0%, #E4DCCA 35%, #CCC3AC 70%, #A89F89 100%);
  clip-path: polygon(
    50% 0%,       /* sharp tip */
    72% 8%,       /* narrow section right shoulder */
    72% 22%,      /* end of narrow (marker) section - taper begins here */
    100% 30%,     /* full-width wider back begins */
    100% 90%,     /* lower right of wide section */
    85% 97%,      /* rounded back right */
    50% 100%,     /* rounded back center */
    15% 97%,      /* rounded back left */
    0% 90%,       /* lower left of wide section */
    0% 30%,       /* full-width wider back begins */
    28% 22%,      /* end of narrow (marker) section left */
    28% 8%        /* narrow section left shoulder */
  );
  filter: drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.3)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25)) drop-shadow(1px 0 0.5px rgba(0, 0, 0, 0.15));
}

.home-flows__rotary-indicator {
  /* Double black indicator lines along the narrow front section of the knob */
  position: absolute;
  top: 2px;
  left: 50%;
  width: 4px;
  height: 8px;
  transform: translateX(-50%);
  border-left: 1px solid #1A1A1A;
  border-right: 1px solid #1A1A1A;
}

/* A320 overhead-panel styling for the step-1 switch demo:
   dark blue-grey ("Airbus cockpit blue") background,
   amber-yellow backlit engravings for panel labels */
.home-flows__demo--switches {
  background: linear-gradient(135deg, #4B5462 0%, #3F4854 100%);
  border: 1px solid rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 2px rgba(0, 0, 0, 0.25);
}

.home-flows__demo--switches .home-flows__switch-label {
  color: #FFC72C;
  text-shadow: 0 0 3px rgba(255, 199, 44, 0.55);
}

.home-flows__demo--switches .home-flows__rotary-marker {
  color: #FFC72C;
  text-shadow: 0 0 3px rgba(255, 199, 44, 0.55);
}

.home-flows__switch.is-on .home-flows__rotary-knob-top {
  animation: home-flows-rotary-turn 1700ms cubic-bezier(0.5, 0, 0.2, 1) forwards;
}
@keyframes home-flows-rotary-turn {
  0%   { transform: rotate(-60deg); }
  100% { transform: rotate(0deg); }
}

/* Demo 2: PM voice callout */
.home-flows__demo--callout {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.home-flows__callout-avatar {
  width: 34px; height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pm-primary) 0%, var(--pm-primary-dk) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(31, 111, 174, 0.25);
}
.home-flows__callout-avatar i { font-size: 0.9rem; }
.home-flows__callout-bubble {
  background: #fff;
  color: var(--pm-deep);
  border: 1px solid rgba(31, 111, 174, 0.12);
  border-radius: 12px 12px 12px 3px;
  padding: 0.65rem 0.85rem;
  font-size: 0.92rem;
  line-height: 1.5;
  font-style: italic;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 320ms ease, transform 320ms ease;
}
.home-flows__step[data-step="2"].is-active .home-flows__callout-bubble {
  opacity: 1;
  transform: translateX(0);
}
.home-flows__callout-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  margin-left: 0.35rem;
  vertical-align: middle;
  height: 10px;
}
.home-flows__callout-wave i {
  display: block;
  width: 2px;
  background: var(--pm-primary);
  border-radius: 1px;
  opacity: 0.65;
  animation: home-flows-callout-wave 1.1s ease-in-out infinite;
}
.home-flows__callout-wave i:nth-child(1) { height: 40%; animation-delay: 0.00s; }
.home-flows__callout-wave i:nth-child(2) { height: 80%; animation-delay: 0.08s; }
.home-flows__callout-wave i:nth-child(3) { height: 55%; animation-delay: 0.16s; }
.home-flows__callout-wave i:nth-child(4) { height: 90%; animation-delay: 0.24s; }
.home-flows__callout-wave i:nth-child(5) { height: 50%; animation-delay: 0.32s; }
@keyframes home-flows-callout-wave {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1); }
}

/* Demo 3: checklist */
.home-flows__demo--checklist {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.home-flows__check-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: rgba(14, 34, 56, 0.72);
  padding: 0.15rem 0;
}
.home-flows__check-tick {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: 1.5px solid var(--pm-deep);
  background: transparent;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pm-deep);
}
.home-flows__check-tick svg {
  width: 12px;
  height: 12px;
  display: block;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 220ms ease, transform 220ms cubic-bezier(0.2, 1.6, 0.2, 1);
}
.home-flows__check-row.is-checked .home-flows__check-tick svg {
  opacity: 1;
  transform: scale(1);
}
.home-flows__check-row.is-checked {
  color: var(--pm-deep);
}

/* Aside card: configurability */
.home-flows__aside {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: start;
  background: #F7FAFD;
  border: 1px solid rgba(31, 111, 174, 0.12);
  border-radius: var(--pm-radius-sm);
  padding: 1.15rem 1.25rem;
  margin-top: 0.6rem;
  position: relative;
}
.home-flows__aside::before {
  content: 'CUSTOMISE';
  position: absolute;
  top: -0.55rem;
  left: 1rem;
  background: var(--pm-surface, #fff);
  padding: 0 0.4rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--pm-primary);
}
.home-flows__aside-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--pm-radius-sm);
  background: rgba(59, 132, 235, 0.10);
  color: var(--pm-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.home-flows__aside-icon i { font-size: 1.15rem; }
.home-flows__aside-body { display: flex; flex-direction: column; gap: 0.25rem; }
.home-flows__aside-body strong { font-size: 1.02rem; color: var(--pm-deep); font-weight: 700; }
.home-flows__aside-body p { margin: 0; color: rgba(14, 34, 56, 0.72); font-size: 0.94rem; line-height: 1.55; }

@media (prefers-reduced-motion: reduce) {
  .home-flows__step-detail {
    max-height: none !important;
    opacity: 1 !important;
    margin-top: 0.5rem !important;
    transition: none !important;
  }
  .home-flows__step:not(:last-child)::after {
    transform: scaleY(1) !important;
    transition: none !important;
  }
  .home-flows__step.is-active .home-flows__step-num {
    box-shadow: 0 4px 10px rgba(31, 111, 174, 0.25) !important;
  }
  .home-flows__switch,
  .home-flows__switch-body,
  .home-flows__callout-bubble,
  .home-flows__callout-wave i,
  .home-flows__check-tick,
  .home-flows__check-tick svg {
    animation: none !important;
    transition: none !important;
  }
  .home-flows__switch.is-on .home-flows__switch-body::after {
    animation: none !important;
    background: #22C55E !important;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5) !important;
    opacity: 1 !important;
    transform: scale(1) !important;
  }
  .home-flows__pushbutton-cell {
    animation: none !important;
    transition: none !important;
  }
  .home-flows__switch.is-on .home-flows__pushbutton-cell--avail {
    color: #3A3A3A !important;
    text-shadow: none !important;
    animation: none !important;
  }
  .home-flows__switch.is-on .home-flows__pushbutton-cell--on {
    color: #40C4FF !important;
    text-shadow: 0 0 6px rgba(64, 196, 255, 0.7) !important;
    animation: none !important;
  }
  .home-flows__switch.is-on .home-flows__pushbutton-cell--off {
    color: #3A3A3A !important;
    text-shadow: none !important;
    animation: none !important;
  }
  .home-flows__switch.is-on .home-flows__rotary-knob-top {
    animation: none !important;
    transform: rotate(0deg) !important;
  }
}

/* -- HOME: Vision -- */
.home-vision {
  text-align: left;
  padding: 3rem 2rem;
}

.home-vision__content {
  margin: 0 auto;
  max-width: 980px;
}

.home-vision__content h2 {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
  color: var(--pm-deep);
}

.home-vision__content p {
  color: var(--pm-muted);
  font-size: 1.05rem;
  line-height: 1.72;
  margin: 0;
}

/* -- HOME: Final CTA -- */
.home-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  padding: 3.2rem 2.9rem;
  background: linear-gradient(135deg, var(--pm-hero-from) 0%, var(--pm-hero-to) 100%);
  color: #fff;
  border-radius: 10px;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.home-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(189, 213, 234, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(189, 213, 234, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.home-cta h2 {
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.55rem;
  font-size: 1.5rem;
  position: relative;
}

.home-cta p {
  margin: 0;
  color: rgba(247, 251, 255, 0.72);
  position: relative;
}

.home-cta .btn-light {
  background: #fff;
  color: var(--pm-deep);
  border-radius: 10px;
  font-weight: 700;
  padding: 0.8rem 1.8rem;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: all 0.2s;
  position: relative;
}

.home-cta .btn-light:hover {
  background: var(--pm-surface);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  color: var(--pm-deep);
}

.home-cta .btn-outline-light {
  border-radius: 10px;
  font-weight: 700;
  padding: 0.8rem 1.8rem;
  border: 1px solid rgba(247, 247, 255, 0.6);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  transition: all 0.2s;
  position: relative;
}

.home-cta .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(247, 247, 255, 0.95);
  color: #fff;
  transform: translateY(-1px);
}

/* -- PRICING: Hero -- */
.pricing-hero {
  padding: 4.5rem 2rem 3.5rem;
  min-height: 18rem;
  text-align: center;
  background: var(--pm-hero-from);
  margin-top: calc(-1rem - 2px);
  margin-bottom: 3.5rem;
  margin-left: calc(50% - 50vw);
  width: 100vw;
  position: relative;
  overflow: hidden;
}

.pricing-hero > div {
  position: relative;
  z-index: 1;
}

/* Banners inside the pricing hero span the full hero width edge-to-edge
   and drop rounded corners. Negative margin cancels the hero's 2rem
   horizontal padding. Background is a lighter grade of the hero
   (translucent white overlay on --pm-hero-from) so all Bootstrap
   alert variants read as part of the hero, less blue than the base. */
.pricing-hero .alert {
  border-radius: 0;
  margin-left: -2rem;
  margin-right: -2rem;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(247, 247, 255, 0.92);
}

.pricing-hero .alert strong {
  color: #fff;
}

.pricing-hero .alert .alert-link {
  color: #fff;
  text-decoration: underline;
}

/* Seat-ready congratulations banner: two lines, heading twice the
   size of the body copy. No display change - inherits centered layout
   from the hero. */
.pricing-hero__banner-heading {
  font-size: 2em;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.pricing-hero__banner-heading i {
  margin-right: 0.5rem;
}

.pricing-hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 0.75rem;
}

.pricing-hero p {
  color: rgba(247, 247, 255, 0.72);
  font-size: 1.1rem;
}

/* Shared page-title eyebrow used across Plans, Support, Dashboard, Admin, etc. */
.page-eyebrow {
  display: inline-block;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

/* -- PRICING: Cards -- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.2rem;
  padding-bottom: 3rem;
  align-items: start;
}

.pricing-card {
  background: #fff;
  border-radius: 10px;
  padding: 2.5rem;
  border: var(--pm-card-border);
  box-shadow: 0 18px 36px rgba(14, 34, 56, 0.10);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 56px rgba(14, 34, 56, 0.15);
}

.pricing-card--highlight {
  box-shadow: 0 18px 36px rgba(14, 34, 56, 0.10);
}

.pricing-card--highlight:hover {
  box-shadow: 0 28px 56px rgba(14, 34, 56, 0.15);
}

.pricing-card__badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--pm-primary) 0%, var(--pm-primary-dk) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 1.4rem;
  border-radius: 0;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(31, 111, 174, 0.3);
}

.pricing-card__badge--secondary {
  background: #16A34A;
  box-shadow: 0 8px 16px rgba(22, 163, 74, 0.32);
}

.pricing-card--highlight .pricing-card__amount {
  color: #16A34A;
}

.pricing-card__header h2 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
  color: var(--pm-deep);
}

.pricing-card__header p {
  color: var(--pm-muted);
  font-size: 0.93rem;
  margin: 0;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.pricing-card__amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--pm-hero-from);
  letter-spacing: -0.04em;
  line-height: 1;
}

.pricing-card__period {
  color: var(--pm-muted);
  font-size: 0.9rem;
}

.pricing-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: rgba(14, 34, 56, 0.8);
  font-size: 0.95rem;
}

.pricing-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.4;
}

.pricing-card__list li::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  /* Default (Standard plan): blue check matching the SOP Essentials badge
     (#3B84EB = var(--pm-primary)). Stroked SVG with stroke-width 2.8 gives a
     heavier visual weight than the previous filled-path check. */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%233B84EB' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5 L8 14.5 L16 6.5'/%3E%3C/svg%3E") center/contain no-repeat;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

/* Mentor plan: first item ("Everything in Standard") gets a green check to
   signal parity; every item below uses a green plus sign to signal additions.
   Green matches the Most Popular badge (#16A34A). */
.pricing-card--highlight .pricing-card__list li:first-child::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2316A34A' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5 L8 14.5 L16 6.5'/%3E%3C/svg%3E") center/contain no-repeat;
}

.pricing-card--highlight .pricing-card__list li:not(:first-child)::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2316A34A' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 4 V16 M4 10 H16'/%3E%3C/svg%3E") center/contain no-repeat;
}

.pricing-card_amount {
    font-size: 32px; /* main price size */
    font-weight: 600;
}

.pricing-card_cents {
    margin-left: 2px;
    font-size: 0.5em;
    vertical-align: super;
}

.pricing-card__strike {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--pm-muted);
    text-decoration: line-through;
    margin-bottom: 0.4rem;
}

.pricing-card__promo-badge {
    display: inline-block;
    background: var(--pm-accent);
    color: var(--pm-primary-dk);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    margin-top: 0.6rem;
}

.plan-downgrade-panel {
  border-radius: 10px;
  border: 1px solid rgba(31, 111, 174, 0.24);
  box-shadow: 0 12px 24px rgba(14, 34, 56, 0.12);
  padding: 1rem;
  background: #fff;
}

.plan-downgrade-panel__lead {
  color: var(--pm-deep);
  margin-bottom: 0.5rem;
}

.plan-downgrade-panel__billing {
  color: rgba(14, 34, 56, 0.76);
  margin-bottom: 0.95rem;
}

.plan-downgrade-panel__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.95rem;
}

.plan-downgrade-panel__actions form {
  margin: 0;
}

.plan-downgrade-panel__actions .btn {
  white-space: nowrap;
}

/* -- PRICING: Footer / CTA -- */
/* -- Two-up wrapper for "Why a subscription?" + "Support the Future of..." -- */
.pricing-why-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  max-width: 1280px;
  margin: 1.5rem auto 3rem;
  align-items: start;
}

.pricing-why-row > .pricing-why {
  max-width: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  .pricing-why-row {
    grid-template-columns: 1fr;
  }
}

.pricing-why {
  text-align: center;
  padding: 2.5rem 2rem;
  max-width: 620px;
  margin: 0 auto;
}

.pricing-why h2 {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--pm-deep);
}

.pricing-why p {
  color: var(--pm-muted);
  font-size: 0.92rem;
  line-height: 1.75;
  margin: 0;
}

.pricing-why p + p {
  margin-top: 0.95rem;
}

.pricing-why--impact {
  max-width: 620px;
  padding: 0;
  margin: 1.5rem auto;
  text-align: left;
}

.pricing-why--subscription {
  max-width: 620px;
  padding: 0;
  margin: 1.5rem auto;
  text-align: left;
}

.pricing-why--impact h2 {
  text-align: center;
}

.pricing-why--subscription h2 {
  text-align: center;
  margin-bottom: 0.85rem;
}

.pricing-why__content {
  background: #fff;
  border: 1px solid rgba(31, 111, 174, 0.18);
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(14, 34, 56, 0.1);
  padding: 1.75rem 1.9rem;
}

.pricing-why__content h5 {
  color: var(--pm-deep);
  margin-bottom: 0.75rem;
}

.pricing-why__content--subscription {
  padding: 1.5rem 1.75rem;
}

.pricing-why__list {
  margin: 1rem 0;
  padding: 0;
  list-style: none;
  color: rgba(14, 34, 56, 0.72);
}

.pricing-why__list li {
  display: grid;
  grid-template-columns: 1.4rem minmax(165px, 190px) 1fr;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.65;
}

.pricing-why__list li::before {
  content: "•";
  width: 1.4rem;
  height: 1.4rem;
  min-width: 1.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(87, 115, 153, 0.14);
  color: var(--pm-deep);
  font-size: 0.85rem;
  line-height: 1;
  margin-top: 0.12rem;
}

.pricing-why__list li:nth-child(1)::before {
  content: "✈";
}

.pricing-why__list li:nth-child(2)::before {
  content: "💬";
}

.pricing-why__list li:nth-child(3)::before {
  content: "❤";
}

.pricing-why__list li + li {
  margin-top: 0.6rem;
}

.pricing-why__support-title {
  grid-column: 2;
}

.pricing-why__support-reason {
  grid-column: 3;
}

@media (max-width: 640px) {
  .pricing-why__list li {
    grid-template-columns: 1.4rem 1fr;
  }

  .pricing-why__support-title,
  .pricing-why__support-reason {
    grid-column: 2;
  }

  .pricing-why__support-reason {
    margin-top: 0.15rem;
  }
}

.pricing-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  padding: 2.5rem;
  background: #fff;
  color: var(--pm-deep);
  border: var(--pm-card-border);
  border-radius: 10px;
  box-shadow: 0 18px 36px rgba(14, 34, 56, 0.10);
  margin-bottom: 3rem;
}

.pricing-footer h2 {
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--pm-deep);
}

.pricing-footer p {
  margin: 0;
  color: var(--pm-muted);
}

.pricing-footer .btn-light {
  background: #fff;
  color: var(--pm-deep);
  border-radius: 10px;
  font-weight: 700;
  padding: 0.8rem 1.8rem;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: all 0.2s;
}

.pricing-footer .btn-light:hover {
  background: var(--pm-surface);
  transform: translateY(-1px);
  color: var(--pm-deep);
}

/* -- Two-up wrapper for the info sections (Need help choosing? + sysreq + Early Access + Subscriptions) -- */
.pricing-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    margin-bottom: 3rem;
}

.pricing-info-row > .pricing-footer,
.pricing-info-row > .before-you-buy-footer {
    margin-bottom: 0;
    height: 100%;
}

@media (max-width: 768px) {
    .pricing-info-row {
        grid-template-columns: 1fr;
    }
}

/* -- Before You Buy*/
.before-you-buy-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.75rem;
    padding: 2.5rem;
    background: #fff;
    color: var(--pm-deep);
    border: var(--pm-card-border);
    border-radius: 10px;
    box-shadow: 0 18px 36px rgba(14, 34, 56, 0.10);
    margin-bottom: 3rem;
}

.before-you-buy-footer h2 {
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--pm-deep);
}

.before-you-buy-footer h5 {
    color: var(--pm-deep);
}

.before-you-buy-footer p {
    margin: 0;
    color: var(--pm-muted);
}

.before-you-buy-footer .btn-light {
    background: #fff;
    color: var(--pm-deep);
    border-radius: 10px;
    font-weight: 700;
    padding: 0.8rem 1.8rem;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: all 0.2s;
}

.before-you-buy-footer .btn-light:hover {
    background: var(--pm-surface);
    transform: translateY(-1px);
    color: var(--pm-deep);
}

/* Clickable variant — used by the "Make sure your system meets the requirements"
   card that anchors to #system-requirements. Matches the .pricing-card hover lift. */
.before-you-buy-footer--link {
    text-decoration: none;
    color: var(--pm-deep);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.before-you-buy-footer--link:hover,
.before-you-buy-footer--link:focus-visible {
    color: var(--pm-deep);
    text-decoration: none;
    transform: translateY(-4px);
    box-shadow: 0 28px 56px rgba(14, 34, 56, 0.15);
}

.before-you-buy-footer--link:focus-visible {
    outline: 2px solid var(--pm-primary);
    outline-offset: 3px;
}


/* -- System Requirements -- */
.sysreq-section {
  padding: 0 0 2.75rem;
  text-align: center;
}

.sysreq-section h2 {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--pm-deep);
}

.sysreq-subtitle {
  color: var(--pm-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.sysreq-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  max-width: 1280px;
  margin: 0 auto 1.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .sysreq-stack {
    grid-template-columns: 1fr;
    max-width: 620px;
  }
}

.sysreq-card {
  position: relative;
  background: #fff;
  border-radius: var(--pm-radius-lg);
  padding: 2rem;
  border: var(--pm-card-border);
  box-shadow: 0 12px 28px rgba(14, 34, 56, 0.1);
  text-align: left;
}

.sysreq-card--vr {
  border: 1px solid rgba(31, 111, 174, 0.2);
}

.sysreq-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--pm-deep);
}

.sysreq-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.4rem;
  display: inline-flex;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--pm-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.sysreq-table td {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(87, 115, 153, 0.08);
  vertical-align: top;
  font-size: 0.91rem;
  color: var(--pm-deep);
}

.sysreq-table tr:last-child td {
  border-bottom: none;
}

.sysreq-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
  width: 5.5rem;
  color: var(--pm-secondary);
}

.sysreq-note {
  display: block;
  font-size: 0.78rem;
  color: var(--pm-muted);
  margin-top: 0.15rem;
}

.sysreq-footnote {
  font-size: 0.82rem;
  color: var(--pm-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* -- DASHBOARD: Hero -- */
.dashboard-hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 4.5rem 0 3.5rem;
  min-height: 18rem;
  margin-top: calc(-1rem - 2px);
  margin-bottom: 3.5rem;
}

.dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  background: var(--pm-hero-from);
}

.dashboard-hero > * {
  position: relative;
  z-index: 1;
}

.dashboard-hero h1 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.3rem;
  color: #fff;
}

.dashboard-hero p {
  color: rgba(247, 247, 255, 0.72);
}

.dashboard-tier {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--pm-radius-lg);
  padding: 1.75rem 2rem;
  border: 1px solid rgba(189, 213, 234, 0.22);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  width: 280px;
  height: 10rem;
  flex-shrink: 0;
}

.dashboard-tier h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0.5rem 0 0.25rem;
  letter-spacing: -0.01em;
  color: #fff;
}

.dashboard-tier p {
  color: rgba(247, 247, 255, 0.62);
  font-size: 0.88rem;
  margin: 0;
}

.dashboard-tier .status-pill {
  background: rgba(189, 213, 234, 0.18);
  color: var(--pm-accent);
}

.dashboard-tier .status-pill--active {
  background: rgba(46, 204, 113, 0.18);
  color: #7deba8;
}

.dashboard-tier .status-pill--past {
  background: rgba(247, 247, 255, 0.10);
  color: rgba(247, 247, 255, 0.45);
}

/* -- Tier-colored status pills -- */
.status-pill {
  display: inline-flex;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  background: rgba(87, 115, 153, 0.1);
  color: var(--pm-secondary);
}

.status-pill--active {
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
}

.status-pill--past {
  background: rgba(73, 88, 103, 0.08);
  color: rgba(73, 88, 103, 0.52);
}

/* -- DASHBOARD: Grid -- */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding-bottom: 2.5rem;
}

.dashboard-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.8rem;
  border: var(--pm-card-border);
  box-shadow: 0 8px 24px rgba(73, 88, 103, 0.065);
  transition: box-shadow 0.2s ease;
}

.dashboard-card:hover {
  box-shadow: 0 16px 36px rgba(73, 88, 103, 0.1);
}

.dashboard-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  color: var(--pm-deep);
}

.dashboard-card h3:first-child {
  margin-top: 0;
}

.dashboard-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(73, 88, 103, 0.72);
  margin-bottom: 0;
}

.dashboard-metric {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  color: var(--pm-deep);
  letter-spacing: -0.025em;
}

.dashboard-subtext {
  color: rgba(73, 88, 103, 0.58);
  margin-bottom: 0.3rem;
  font-size: 0.88rem;
}

/* -- DASHBOARD: Usage bar -- */
.usage-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(87, 115, 153, 0.1);
  overflow: hidden;
  margin: 1rem 0 0.75rem;
}

.usage-bar__fill {
  height: 100%;
  background: #3db86c;
  border-radius: 999px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease;
}

.usage-bar__fill--amber {
  background: #f59e0b;
}

.usage-bar__fill--red {
  background: #e64c46;
}

.usage-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: rgba(73, 88, 103, 0.58);
  font-size: 0.85rem;
}

/* -- DASHBOARD: Usage cap / grace notice line --
   Sits under the usage bar on the Usage overview card, above the CTA. Two
   variants: grace (amber, still-working) and cap (red, terminal). Colors
   reuse the same amber / red tokens as the usage bar fill for consistency. */
.dashboard-notice {
  margin-top: 0.9rem;
  margin-bottom: 0.25rem;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

.dashboard-notice--grace {
  background: rgba(245, 158, 11, 0.1);
  color: #b26a00;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.dashboard-notice--cap {
  background: rgba(230, 76, 70, 0.1);
  color: #a5261f;
  border: 1px solid rgba(230, 76, 70, 0.35);
}

/* -- DASHBOARD: CTA -- */
.dashboard-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.75rem 2.75rem;
  background: linear-gradient(135deg, var(--pm-hero-from) 0%, var(--pm-hero-to) 100%);
  color: #fff;
  border-radius: 10px;
  margin-bottom: 3rem;
}

.dashboard-cta h2 {
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.4rem;
}

.dashboard-cta p {
  margin: 0;
  color: rgba(247, 247, 255, 0.68);
  font-size: 0.95rem;
}

/* -- DASHBOARD: Downgrade notice -- */
.dashboard-downgrade-notice {
  margin-bottom: 1.5rem;
}

.downgrade-notice__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: rgba(189, 213, 234, 0.14);
  color: var(--pm-deep);
  border: 1px solid rgba(87, 115, 153, 0.18);
  border-radius: 18px;
}

.downgrade-notice__content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pm-deep);
  margin-bottom: 0.3rem;
}

.downgrade-notice__content p {
  font-size: 0.9rem;
  color: rgba(73, 88, 103, 0.68);
  margin: 0;
}

.btn-outline-keep {
  background: transparent;
  color: var(--pm-teal-dark);
  border: 2px solid var(--pm-teal-dark);
  padding: 0.5rem 1.2rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.btn-outline-keep:hover {
  background: var(--pm-teal-dark);
  color: #fff;
}

/* -- Cancel subscription link -- */
.cancel-sub-link {
  color: rgba(73, 88, 103, 0.38);
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 1px dashed rgba(73, 88, 103, 0.2);
  padding-bottom: 1px;
  transition: all 0.2s;
}

.cancel-sub-link:hover {
  color: var(--pm-primary);
  border-bottom-color: var(--pm-primary);
}

/* -- Device management -- */
.dashboard-device {
  background: #fff;
  border-radius: 18px;
  padding: 1.8rem;
  border: var(--pm-card-border);
  box-shadow: 0 8px 24px rgba(73, 88, 103, 0.065);
  margin-bottom: 3rem;
}

.dashboard-device h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--pm-deep);
}

.device-info__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(87, 115, 153, 0.07);
}

.device-info__row:last-child {
  border-bottom: none;
}

.device-info__label {
  color: rgba(73, 88, 103, 0.52);
  font-size: 0.88rem;
}

.device-info__value {
  font-weight: 600;
  font-size: 0.88rem;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  color: var(--pm-deep);
  text-align: right;
  max-width: 60%;
  word-break: break-all;
}

.device-empty {
  text-align: center;
  padding: 1.5rem 0;
}

.device-empty__title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: rgba(73, 88, 103, 0.58);
}

.device-empty__hint {
  font-size: 0.88rem;
  color: rgba(73, 88, 103, 0.43);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.device-unbind-form {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(87, 115, 153, 0.08);
}

.device-unbind-warning {
  font-size: 0.88rem;
  color: rgba(73, 88, 103, 0.52);
  margin-bottom: 0.8rem;
}

.device-unbind-exhausted {
  font-size: 0.88rem;
  color: rgba(254, 95, 85, 0.78);
  margin-top: 1rem;
  font-style: italic;
}

.btn-outline-danger {
  background: transparent;
  color: var(--pm-primary);
  border: 2px solid var(--pm-primary);
  padding: 0.5rem 1.2rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline-danger:hover {
  background: var(--pm-primary);
  color: #fff;
}

.device-alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.device-alert--success {
  background: rgba(46, 204, 113, 0.08);
  color: #1a7d42;
  border: 1px solid rgba(46, 204, 113, 0.22);
}

.device-alert--error {
  background: rgba(254, 95, 85, 0.06);
  color: #d94a40;
  border: 1px solid rgba(254, 95, 85, 0.18);
}

/* -- Support / Contact page -- */
.support-hero {
  padding: 4.5rem 0 3.5rem;
  min-height: 18rem;
  margin-top: calc(-1rem - 2px);
  margin-bottom: 3.5rem;
  position: relative;
}

.support-hero::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  background: var(--pm-hero-from);
  pointer-events: none;
}

.support-hero > div {
  position: relative;
  z-index: 1;
}

.support-hero h1 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 0.75rem;
}

.support-hero p,
.support-hero .dashboard-subtext {
  color: rgba(247, 247, 255, 0.72);
  font-size: 1.1rem;
}

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.faq-item {
  border: 1.5px solid rgba(87, 115, 153, 0.1);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item[open] {
  border-color: rgba(87, 115, 153, 0.22);
  box-shadow: 0 4px 16px rgba(73, 88, 103, 0.06);
}

.faq-question {
  padding: 1.1rem 1.3rem;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--pm-deep);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  transition: background 0.15s;
}

.faq-question:hover {
  background: rgba(189, 213, 234, 0.05);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--pm-secondary);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] .faq-question::after {
  content: "\2212";
}

.faq-answer {
  padding: 0 1.3rem 1.1rem;
  color: rgba(73, 88, 103, 0.68);
  line-height: 1.7;
  font-size: 0.92rem;
  background: #fff;
}

.faq-answer p {
  margin: 0;
}

/* Contact form */
.support-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.support-form .btn {
  align-self: flex-start;
}

.support-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.support-form__group label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--pm-deep);
}

.support-form__group select,
.support-form__group input,
.support-form__group textarea {
  border-radius: var(--pm-radius-sm);
  border: 1.5px solid rgba(87, 115, 153, 0.18);
  padding: 0.75rem 0.9rem;
  font-size: 0.93rem;
  font-family: inherit;
  background: #fafbfc;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.support-form__group select:focus,
.support-form__group input:focus,
.support-form__group textarea:focus {
  outline: none;
  border-color: var(--pm-secondary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(87, 115, 153, 0.1);
}

.support-form__group textarea {
  resize: vertical;
  min-height: 120px;
}

.support-form__context {
  font-size: 0.88rem;
  color: rgba(73, 88, 103, 0.58);
  padding: 0.5rem 0;
}

.support-success {
  text-align: center;
  padding: 2rem 1rem;
}

.support-success__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.support-success h3 {
  font-weight: 700;
  color: var(--pm-deep);
  margin-bottom: 0.5rem;
}

.support-success p {
  color: rgba(73, 88, 103, 0.62);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.6;
}

.support-signin-nudge {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  background: rgba(189, 213, 234, 0.14);
  border: 1px solid rgba(87, 115, 153, 0.14);
  font-size: 0.92rem;
  color: var(--pm-deep);
  line-height: 1.55;
}

.support-signin-nudge__icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.support-signin-nudge__actions {
  margin-top: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.support-signin-nudge__or {
  font-size: 0.85rem;
  color: rgba(73, 88, 103, 0.48);
}

/* -- Cancellation flow -- */
.cancel-flow {
  display: flex;
  justify-content: center;
  padding: 3rem 1rem;
  min-height: 70vh;
}

.cancel-flow__card {
  background: #fff;
  border-radius: 24px;
  padding: 3rem 2.5rem;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(73, 88, 103, 0.1);
  text-align: center;
}

.cancel-flow__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.cancel-flow__card h1 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--pm-deep);
  margin-bottom: 0.5rem;
}

.cancel-flow__subtitle {
  color: rgba(73, 88, 103, 0.62);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.cancel-reasons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

.cancel-reason-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border: 2px solid rgba(87, 115, 153, 0.12);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.93rem;
  color: var(--pm-deep);
}

.cancel-reason-option:hover {
  border-color: var(--pm-teal);
  background: rgba(189, 213, 234, 0.07);
}

.cancel-reason-option input[type="radio"] {
  accent-color: var(--pm-teal);
  width: 18px;
  height: 18px;
}

.cancel-reason-option input[type="radio"]:checked + span {
  font-weight: 600;
}

.cancel-feedback-group {
  text-align: left;
  margin-bottom: 2rem;
}

.cancel-feedback-group label {
  display: block;
  font-size: 0.88rem;
  color: rgba(73, 88, 103, 0.52);
  margin-bottom: 0.5rem;
}

.cancel-feedback-group textarea {
  width: 100%;
  border: 1.5px solid rgba(87, 115, 153, 0.14);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.93rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s;
}

.cancel-feedback-group textarea:focus {
  outline: none;
  border-color: var(--pm-secondary);
}

.cancel-flow__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn-ghost-danger {
  background: transparent;
  color: var(--pm-primary);
  border: 2px solid transparent;
  padding: 0.6rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-ghost-danger:hover {
  border-color: var(--pm-primary);
  background: rgba(254, 95, 85, 0.05);
  color: var(--pm-primary);
}

.btn-danger {
  background: var(--pm-primary);
  color: #fff;
  border: 2px solid var(--pm-primary);
  padding: 0.6rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-danger:hover {
  background: #d94a40;
  border-color: #d94a40;
}

.cancel-offer-box {
  background: rgba(189, 213, 234, 0.1);
  border: 2px solid var(--pm-teal);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: center;
}

.cancel-offer-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pm-deep);
  margin-bottom: 0.3rem;
}

.cancel-offer-box p {
  font-size: 0.9rem;
  color: rgba(73, 88, 103, 0.62);
  margin-bottom: 1rem;
}

.cancel-confirm-details {
  text-align: left;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cancel-confirm-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 14px;
}

.cancel-confirm-item--keep {
  background: rgba(46, 204, 113, 0.07);
  border: 1px solid rgba(46, 204, 113, 0.18);
}

.cancel-confirm-item--lose {
  background: rgba(254, 95, 85, 0.04);
  border: 1px solid rgba(254, 95, 85, 0.13);
}

.cancel-confirm-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.cancel-confirm-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--pm-deep);
  margin-bottom: 0.3rem;
}

.cancel-confirm-item p,
.cancel-confirm-item ul {
  font-size: 0.88rem;
  color: rgba(73, 88, 103, 0.62);
  margin: 0;
  line-height: 1.5;
}

.cancel-confirm-item ul {
  padding-left: 1.2rem;
  margin-top: 0.3rem;
}

.cancel-confirm-item li {
  margin-bottom: 0.2rem;
}

/* -- Floating form elements -- */
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* -- Scroll entrance animations -- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.10s; }
.fade-up-delay-2 { transition-delay: 0.20s; }
.fade-up-delay-3 { transition-delay: 0.30s; }
.fade-up-delay-4 { transition-delay: 0.40s; }
.fade-up-delay-5 { transition-delay: 0.55s; }

/* -- Sided slide-in for chat-bubble sequences --
   Container gets [data-slide-in-group]; children get .slide-in +
   .slide-in--left/--right + .slide-in-delay-N. When the container
   enters the viewport, all children reveal together with staggered
   transition-delays, mimicking a chat thread being sent. */
.slide-in {
  opacity: 0;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.slide-in--left  { transform: translateX(-40px) scale(0.94); }
.slide-in--right { transform: translateX( 40px) scale(0.94); }

.slide-in.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.slide-in-delay-1 { transition-delay: 0s;    }
.slide-in-delay-2 { transition-delay: 0.40s; }
.slide-in-delay-3 { transition-delay: 0.80s; }

@media (prefers-reduced-motion: reduce) {
  .slide-in,
  .slide-in--left,
  .slide-in--right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =====================================================
   Admin shell - dedicated /admin/* layout
   ===================================================== */

.admin-hero {
  position: relative;
  padding: 3.5rem 0 2.75rem;
  margin-top: calc(-1rem - 2px);
  margin-bottom: 2.5rem;
}

.admin-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  background: var(--pm-hero-from);
}

.admin-hero > * {
  position: relative;
  z-index: 1;
}

.admin-hero h1 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.3rem;
  color: #fff;
}

.admin-hero p {
  color: rgba(247, 247, 255, 0.72);
  max-width: 42rem;
  margin: 0;
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding: 0 0 3rem;
  align-items: start;
}

.admin-sidebar {
  background: var(--pm-surface);
  border: var(--pm-card-border);
  border-radius: var(--pm-radius-lg);
  padding: 1.25rem 0.75rem;
  box-shadow: var(--pm-card-shadow);
  position: sticky;
  top: 1rem;
}

.admin-sidebar__header {
  padding: 0 0.75rem 0.75rem;
  border-bottom: 1px solid rgba(14, 34, 56, 0.08);
  margin-bottom: 0.5rem;
}

.admin-sidebar__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pm-muted);
}

.admin-sidebar__nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--pm-radius-md);
  color: var(--pm-deep);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-sidebar__link i {
  width: 1.1rem;
  color: var(--pm-muted);
  font-size: 0.95rem;
}

.admin-sidebar__link:hover {
  background: var(--pm-accent);
  color: var(--pm-primary-dk);
  text-decoration: none;
}

.admin-sidebar__link:hover i {
  color: var(--pm-primary-dk);
}

.admin-sidebar__link.is-active {
  background: var(--pm-accent);
  color: var(--pm-primary-dk);
  font-weight: 600;
}

.admin-sidebar__link.is-active i {
  color: var(--pm-primary-dk);
}

.admin-content {
  min-width: 0;
}

@media (max-width: 768px) {
  .admin-shell {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .admin-sidebar {
    position: static;
  }
}

/* Admin users filter row */
.admin-users-filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 0.75rem;
  align-items: end;
}

@media (max-width: 768px) {
  .admin-users-filters {
    grid-template-columns: 1fr;
  }
}

/* Admin status tabs (used on /admin/creators) */
.admin-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid rgba(14, 34, 56, 0.08);
}

.admin-tab {
  display: inline-block;
  padding: 0.65rem 1rem;
  color: var(--pm-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  font-weight: 500;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.admin-tab:hover {
  color: var(--pm-primary-dk);
  text-decoration: none;
}

.admin-tab.is-active {
  color: var(--pm-primary-dk);
  border-bottom-color: var(--pm-primary);
  font-weight: 600;
}

/* Creator grant notice, shown on Plans page pricing cards during a creator trial */
.pricing-card__creator-notice {
  background: rgba(217, 236, 250, 0.35);
  border: 1px solid rgba(31, 111, 174, 0.18);
  border-radius: var(--pm-radius-md);
  padding: 0.7rem 0.9rem;
  margin: 0.5rem 0 0.9rem 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--pm-deep);
}

.pricing-card__creator-notice strong {
  color: var(--pm-primary-dk);
  display: block;
  margin-bottom: 0.2rem;
}
