/* =========================================================
   CSS VARIABLES
   ========================================================= */
:root {
  --brand-blue: #4F7BAA;
  --brand-path: #E2F0FE;
  --brand-red: #FF5A5A;
  --brand-green: #BFDDB5;

  --ink: #16202c;
  --muted: #556170;
  --bg: #ffffff;
  --bg-soft: #f6fbff;

  --card: #ffffff;
  --card-border: rgba(79, 123, 170, .18);
  --shadow: 0 18px 45px rgba(21, 45, 74, .10);
  --shadow-soft: 0 12px 28px rgba(21, 45, 74, .08);
  --shadow-btn: 0 14px 30px rgba(79, 123, 170, .22);
  --radius: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --wrap: 1120px;
}

/* =========================================================
   BASE STYLES
   ========================================================= */
* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
}

a {
  color: inherit
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 72px 0;
  position: relative;
  isolation: isolate;
}

.section--tight {
  padding: 44px 0;
}

.section--soft {
  background: var(--bg-soft);
  overflow: hidden;
}

.section--soft::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 90px;
  background: linear-gradient(to bottom, #fff 0%, rgba(255, 255, 255, 0) 100%);
  z-index: -1;
  pointer-events: none;
}

.section--soft::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(to top, #fff 0%, rgba(255, 255, 255, 0) 100%);
  z-index: -1;
  pointer-events: none;
}

.section--journey {
  background: var(--bg-soft);
  padding-top: 52px;
  padding-bottom: 52px;
  overflow: hidden;
}

.section--journey::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 90px;
  background: linear-gradient(to bottom, #fff 0%, rgba(255, 255, 255, 0) 100%);
  z-index: -1;
  pointer-events: none;
}

.section--journey::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(to top, #fff 0%, rgba(255, 255, 255, 0) 100%);
  z-index: -1;
  pointer-events: none;
}


.h2-wrapper {
  margin: 14px auto 10px;
  position: relative;
  max-width: 74ch;
  text-align: center;
}

/* Keep h2 centered and define the visual width */
.h2 {
  margin: 0 auto;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -.02em;
  text-align: center;
  max-width: 100%;
}

.h3 {
  margin: 0;
  font-size: clamp(16px, 1.8vw, 20px);
  letter-spacing: -.01em;
}

/* =========================================================
   H2 WHISPER (parenthetical, calm)
   ========================================================= */
.h2-whisper {
  font-size: .48em;
  font-weight: 500;
  font-style: italic;
  letter-spacing: .01em;
  opacity: .55;
  margin-left: .35ch;
  white-space: nowrap;
  position: relative;
  top: -0.05em;
  /* subtle lift */
}

/* Optional: slightly stronger on hover (desktop only) */
@media (hover:hover) {
  .h2-wrapper:hover .h2-whisper {
    opacity: .7;
  }
}


.p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 16px;
}

/* =========================================================
   HEADER / TOPBAR
   ========================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 5px 0 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(79, 123, 170, 0.10);
}

/* Keep the complete admin navigation stack visible without a fixed-height offset. */
.admin-sticky-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-sticky-header > .topbar {
  position: relative;
  top: auto;
  z-index: 2;
  overflow: visible;
  transition: opacity .16s ease, transform .22s ease, border-color .22s ease;
}

.admin-sticky-header > .admin-page-actions {
  z-index: 1;
}

.admin-sticky-header.is-compact {
  position: relative;
  top: auto;
  min-height: var(--admin-header-stack-height, 140px);
}

.admin-sticky-header.is-compact > .topbar {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  border-bottom-color: transparent;
}

.admin-sticky-header.is-compact > .admin-page-actions {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
}

.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

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

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

@media (max-width: 900px) {
  .topbar-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .topbar-actions {
    width: 100%;
    padding-bottom: 6px;
    flex-wrap: wrap;
    overflow: visible;
  }

  .brand-logo {
    height: 52px;
  }
}

/* Authenticated nav links (compact, text-style) */
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s ease, background .15s ease;
}

.nav-dropdown-trigger {
  border: 0;
  background: transparent;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(79, 123, 170, .08);
}

.nav-link--active {
  color: var(--brand-blue);
  background: rgba(79, 123, 170, .10);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 150px;
  padding-top: 6px;
  background: #fff;
  z-index: 100;
}

.nav-dropdown-menu::before {
  content: "";
  display: block;
  height: 6px;
}

.nav-dropdown-menu-inner {
  padding: 6px 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(16, 24, 40, .12);
}

.nav-dropdown:has(.nav-dropdown-trigger:focus-visible) .nav-dropdown-menu,
.nav-dropdown:has(.nav-dropdown-item:focus-visible) .nav-dropdown-menu {
  display: block;
}

@media (hover: hover) {
  .nav-dropdown:hover .nav-dropdown-menu {
    display: block;
  }
}

.nav-dropdown-item {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s ease, background .15s ease;
}

.nav-dropdown-item:hover {
  color: var(--ink);
  background: rgba(79, 123, 170, .08);
}

.nav-divider {
  width: 1px;
  height: 20px;
  flex: 0 0 1px;
  background: rgba(16, 24, 40, .12);
}

.admin-page-actions {
  position: relative;
  z-index: 35;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(79, 123, 170, .12);
}

@media (prefers-reduced-motion: reduce) {
  .admin-sticky-header > .topbar {
    transition: none;
  }
}

.admin-page-actions__items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
}

.admin-page-actions__pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid rgba(79, 123, 170, .24);
  border-radius: 999px;
  background: rgba(79, 123, 170, .08);
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease, border-color .15s ease, transform .15s ease;
}

.admin-page-actions__pill:hover,
.admin-page-actions__pill:focus-visible {
  color: #fff;
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  outline: none;
  transform: translateY(-1px);
}

.admin-page-actions__pill--primary {
  color: #fff;
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  box-shadow: 0 4px 10px rgba(79, 123, 170, .18);
}

.admin-page-actions__pill--primary:hover,
.admin-page-actions__pill--primary:focus-visible {
  background: #3f6894;
  border-color: #3f6894;
}

@media (max-width: 760px) {
  .admin-page-actions .wrap {
    width: 100%;
  }

  .admin-page-actions__items {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 9px 16px;
    scrollbar-width: thin;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
}

.nav-account {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-avatar {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(79, 123, 170, .22);
  border-radius: 50%;
  background: rgba(79, 123, 170, .12);
  color: var(--brand-blue);
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  overflow: hidden;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.nav-avatar__image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.nav-avatar:hover,
.nav-avatar:focus-visible,
.nav-account:focus-within .nav-avatar {
  outline: none;
  background: rgba(79, 123, 170, .18);
  box-shadow: 0 0 0 4px rgba(79, 123, 170, .10);
}

.nav-account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  width: min(280px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid rgba(16, 24, 40, .10);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(16, 24, 40, .16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}

.nav-account-menu::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  width: 100%;
  height: 10px;
}

.nav-account:hover .nav-account-menu,
.nav-account:focus-within .nav-account-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-account-menu__identity {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px 11px;
  border-bottom: 1px solid rgba(16, 24, 40, .08);
  margin-bottom: 5px;
}

.nav-account-menu__identity span {
  color: var(--muted);
  font-size: 12px;
}

.nav-account-menu__identity strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-account-menu__item {
  appearance: none;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.nav-account-menu__item:hover,
.nav-account-menu__item:focus-visible {
  outline: none;
  background: rgba(79, 123, 170, .09);
}

.nav-account-menu__form {
  margin: 4px 0 0;
  padding-top: 4px;
  border-top: 1px solid rgba(201, 54, 54, .14);
}

.nav-account-menu__item--danger {
  color: #b72e2e;
}

.nav-account-menu__item--danger:hover,
.nav-account-menu__item--danger:focus-visible {
  background: rgba(201, 54, 54, .10);
  color: #9f2424;
}

.logo {
  height: 26px;
  width: auto;
  display: block;
}

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

button.nav-link {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
  box-shadow: 0 18px 40px rgba(79, 123, 170, .26);
}

.btn--ghost {
  background: rgba(79, 123, 170, .10);
  color: var(--brand-blue);
  border-color: rgba(79, 123, 170, .18);
}

.btn--red {
  background: var(--brand-red);
  color: #fff;
  box-shadow: 0 14px 30px rgba(255, 90, 90, .28);
}

.btn--red:hover {
  box-shadow: 0 18px 40px rgba(255, 90, 90, .34);
}

.btn--danger-outline {
  align-self: flex-start;
  background: #fff;
  border-color: rgba(201, 54, 54, .35);
  color: #b72e2e;
  box-shadow: none;
}

.btn--danger-outline:hover,
.btn--danger-outline:focus-visible {
  background: rgba(201, 54, 54, .08);
  border-color: rgba(201, 54, 54, .5);
}

.btn-primary {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  box-shadow: 0 18px 40px rgba(79, 123, 170, .26);
}

.btn-ghost {
  background: rgba(79, 123, 170, .10);
  color: var(--brand-blue);
  border-color: rgba(79, 123, 170, .18);
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  background: linear-gradient(#ffffff, var(--bg-soft));
}

.hero::before {
  content: "";
  position: absolute;
  inset: -120px -80px auto -80px;
  height: 520px;
  background: radial-gradient(900px 420px at 55% 10%, rgba(79, 123, 170, .14), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.hero-wrap {
  display: block;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
}

.hero-content {
  position: relative;
  padding: 18px 18px;
  border-radius: var(--radius-xl);
}

.hero-content h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 3.4vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  font-weight: 800;
}

.hero-tagline {
  margin: 0 auto 16px;
  font-size: clamp(16px, 2vw, 16px);
  font-weight: 600;
  font-style: italic;
  color: var(--brand-blue);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.hero-sub {
  max-width: 70ch;
  margin: 0 auto 18px;
  color: var(--muted);
  line-height: 1.55;
  font-size: clamp(15px, 1.5vw, 18px);
}

.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
  justify-content: center;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
  justify-content: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(79, 123, 170, .14);
  box-shadow: 0 10px 30px rgba(20, 45, 75, .06);
  color: rgba(31, 42, 55, .88);
  font-size: 13.5px;
}

.pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(79, 123, 170, .45);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.hero-house {
  width: min(520px, 92vw);
  max-height: 400px;
  height: auto;
  display: block;
  filter: drop-shadow(0 22px 40px rgba(20, 45, 75, .12));
}

.family-house {
  width: min(500px, 85vw);
  max-height: 350px;
  height: auto;
  display: block;
  filter: drop-shadow(0 22px 40px rgba(20, 45, 75, .12));
}

.hero-start-dot {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  margin: 10px auto 0;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--brand-red);
  box-shadow: 0 18px 30px rgba(255, 90, 90, .28);
}

@media (max-width:900px) {
  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
    max-width: 60ch;
  }

  .hero-cta {
    justify-content: center;
  }

  .trust-pills {
    justify-content: center;
  }

  .hero-start-dot {
    bottom: -12px;
  }
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how {
  margin-top: 22px;
}

.how__grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.how__card {
  background: #fff;
  border: 1px solid rgba(79, 123, 170, .14);
  border-radius: 18px;
  padding: 16px 14px 14px;
  box-shadow: var(--shadow-soft);
}

.how__no {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: rgba(79, 123, 170, .95);
  background: rgba(79, 123, 170, .10);
  margin-bottom: 10px;
}

.how__title {
  margin: 0 0 6px;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.how__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.how__cta {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width:960px) {
  .how__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:520px) {
  .how__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   DASHBOARD SECTION
   ========================================================= */
.dash {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: start;
}

.dash__card {
  background: #fff;
  border: 1px solid rgba(79, 123, 170, .14);
  border-radius: 20px;
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
}

.dash__title {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.dash__list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14.5px;
}

.dash__list li {
  margin: 8px 0;
}

.dash__list strong {
  color: var(--ink);
}

.dash__cta {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dash__mini {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dash__miniCard {
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(79, 123, 170, .12);
  border-radius: 18px;
  padding: 12px 12px;
  box-shadow: 0 10px 24px rgba(21, 45, 74, .06);
}

.dash__miniK {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.dash__miniV {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.dash__shots {
  display: grid;
  gap: 14px;
}

.shot {
  margin: 0;
}

.shot__frame {
  background: #fff;
  border: 1px solid rgba(79, 123, 170, .14);
  border-radius: 22px;
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.shot__placeholder {
  border-radius: 16px;
  min-height: 220px;
  background:
    radial-gradient(520px 240px at 30% 10%, rgba(79, 123, 170, .16), transparent 60%),
    linear-gradient(180deg, rgba(226, 240, 254, .95), rgba(255, 255, 255, .95));
  border: 1px dashed rgba(79, 123, 170, .22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 18px;
}

.shot__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.shot__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(79, 123, 170, .16);
  font-weight: 800;
  font-size: 12.5px;
  color: rgba(79, 123, 170, .95);
}

.shot__hint {
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-size: 14px;
}

.shot__cap {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
  text-align: center;
}

@media (max-width:980px) {
  .dash {
    grid-template-columns: 1fr;
  }

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

  .shot__placeholder {
    min-height: 200px;
  }
}

/* =========================================================
   BEFORE vs AFTER
   ========================================================= */
.cmp {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

@media (max-width:880px) {
  .cmp {
    grid-template-columns: 1fr;
  }
}

.beforeAfter-row {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.beforeAfter-row--reverse {
  grid-template-columns: 1fr 1fr;
}

.beforeAfter-image {
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, .08);
  box-shadow: 0 12px 26px rgba(16, 24, 40, .06);
  min-height: 0;
  height: 100%;
}

.beforeAfter-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.beforeAfter-image--fill img {
  object-fit: cover;
  object-position: center;
}

@media (max-width:880px) {

  .beforeAfter-row,
  .beforeAfter-row--reverse {
    grid-template-columns: 1fr;
  }

  .beforeAfter-row--reverse {
    display: flex;
    flex-direction: column-reverse;
  }

  .beforeAfter-image {
    min-height: 300px;
  }
}

.cmpCard {
  border-radius: 18px;
  padding: 22px 22px 18px;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, .08);
  box-shadow: 0 12px 26px rgba(16, 24, 40, .06);
  position: relative;
  overflow: hidden;
  color: var(--ink, #1f2a37);
}

.cmpCard>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

.cmpCard:has(> img) {
  padding: 0;
  display: flex;
  align-items: stretch;
}

.cmpCard__head {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(16, 24, 40, .08);
  margin-bottom: 14px;
}

.cmpCard__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  border: 1px solid rgba(16, 24, 40, .10);
  background: rgba(16, 24, 40, .04);
  margin-bottom: 10px;
  color: var(--ink, #1f2a37);
}

.cmpCard__title {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.2;
  color: var(--ink, #1f2a37);
}

.cmpCard__sub {
  margin: 0;
  opacity: .82;
  color: var(--muted, #526072);
}

.cmpList {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.cmpList li {
  position: relative;
  padding-left: 30px;
  line-height: 1.45;
  color: var(--muted, #526072);
}

.cmpList li::before {
  content: "";
  width: 20px;
  height: 20px;
  position: absolute;
  left: 0;
  top: .15em;
  border-radius: 999px;
  border: 1px solid rgba(16, 24, 40, .14);
  background: rgba(16, 24, 40, .04);
}

.cmpList--plus li::after,
.cmpList--minus li::after {
  position: absolute;
  left: 6px;
  top: .08em;
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
}

.cmpList--plus li::after {
  content: "✓";
}

.cmpList--minus li::after {
  content: "–";
}

.cmpCard--before {
  background: rgba(255, 255, 255, .78);
}

.cmpCard--before::after {
  content: "";
  position: absolute;
  inset: -40px -80px auto auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(242, 82, 82, .10);
  filter: blur(2px);
}

.cmpCard--after {
  background: rgba(255, 255, 255, .92);
}

.cmpCard--after::after {
  content: "";
  position: absolute;
  inset: -50px auto auto -90px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: rgba(84, 134, 177, .12);
  filter: blur(2px);
}

.cmpMini {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(16, 24, 40, .08);
  background: rgba(16, 24, 40, .03);
}

.cmpMini__k {
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 3px;
  color: var(--ink, #1f2a37);
}

.cmpMini__v {
  font-size: 14px;
  opacity: .85;
  color: var(--muted, #526072);
}

.cmpCta {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================================
   SOCIAL PROOF
   ========================================================= */
.proofGrid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width:980px) {
  .proofGrid {
    grid-template-columns: 1fr;
  }
}

.proofCard {
  border-radius: 18px;
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, .08);
  box-shadow: 0 12px 26px rgba(16, 24, 40, .06);
}

.proofIcon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  border: 1px solid rgba(16, 24, 40, .12);
  background: rgba(16, 24, 40, .04);
  margin-bottom: 10px;
}

.proofTitle {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.2;
}

.proofText {
  margin: 0;
  opacity: .85;
  line-height: 1.5;
}

.proofStats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width:980px) {
  .proofStats {
    grid-template-columns: 1fr;
  }
}

.proofStat {
  border-radius: 16px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(16, 24, 40, .08);
  background: rgba(16, 24, 40, .03);
  text-align: center;
}

.proofStat__num {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.proofStat__label {
  margin-top: 6px;
  font-size: 14px;
  opacity: .82;
}

.proofLogos {
  margin-top: 18px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(16, 24, 40, .08);
  background: rgba(255, 255, 255, .70);
}

.proofLogos__label {
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
  opacity: .85;
}

.proofLogos__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.logoChip {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px dashed rgba(16, 24, 40, .18);
  background: rgba(16, 24, 40, .03);
  font-size: 13px;
  opacity: .82;
}

.proofLogos__hint {
  margin-top: 10px;
  font-size: 12px;
  opacity: .7;
}

.proofCta {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================================
   WHO THIS IS FOR
   ========================================================= */
.fit {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: stretch;
}

@media (max-width:980px) {
  .fit {
    grid-template-columns: 1fr;
  }
}

.fitCard {
  border-radius: 18px;
  padding: 22px 22px 18px;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, .08);
  box-shadow: 0 12px 26px rgba(16, 24, 40, .06);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.fitSide {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}

.fitSide__box {
  border-radius: 18px;
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, .08);
  box-shadow: 0 10px 22px rgba(16, 24, 40, .05);
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.fitCard--good::after {
  content: "";
  position: absolute;
  inset: -55px -90px auto auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(84, 134, 177, .12);
  filter: blur(2px);
}

.fitCard__head {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(16, 24, 40, .08);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.fitBadge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  border: 1px solid rgba(16, 24, 40, .10);
  background: rgba(16, 24, 40, .04);
  margin-bottom: 10px;
}

.fitBadge--good {
  background: rgba(84, 134, 177, .12);
}

.fitBadge--neutral {
  background: rgba(16, 24, 40, .04);
}

.fitCard__title {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.2;
}

.fitCard__sub {
  margin: 0;
  opacity: .82;
}

.fitList {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.fitList li {
  position: relative;
  padding-left: 30px;
  line-height: 1.45;
}

.fitList--check li::before,
.fitList--dot li::before {
  content: "";
  width: 20px;
  height: 20px;
  position: absolute;
  left: 0;
  top: .15em;
  border-radius: 999px;
  border: 1px solid rgba(16, 24, 40, .14);
  background: rgba(16, 24, 40, .04);
}

.fitList--check li::after {
  content: "✓";
  position: absolute;
  left: 6px;
  top: .08em;
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
}

.fitList--dot li::after {
  content: "•";
  position: absolute;
  left: 8px;
  top: .02em;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  opacity: .9;
}

.fitMini {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(16, 24, 40, .08);
  background: rgba(16, 24, 40, .03);
  position: relative;
  z-index: 1;
}

.fitMini__k {
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 3px;
}

.fitMini__v {
  font-size: 14px;
  opacity: .85;
}

.fitSide__title {
  margin: 8px 0 6px;
  font-size: 16px;
  line-height: 1.25;
}

.fitSide__text {
  margin: 0 0 10px;
  opacity: .85;
  line-height: 1.5;
}

.fitDivider {
  height: 1px;
  background: rgba(16, 24, 40, .10);
  margin: 14px 0;
}

.fitToggleWrap {
  margin-top: 12px;
}

.fitToggle {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--card-border, rgba(79, 123, 170, .18));
  background: rgba(79, 123, 170, .06);
  color: var(--ink, #16202c);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, transform 100ms ease;
  font-family: inherit;
}

.fitToggle:hover {
  background: rgba(79, 123, 170, .10);
  border-color: rgba(79, 123, 170, .24);
}

.fitToggle:active {
  transform: translateY(1px);
}

.fitToggle:focus {
  outline: 2px solid rgba(79, 123, 170, .30);
  outline-offset: 2px;
}

.fitToggle__chev {
  transition: transform 220ms ease;
  color: var(--brand-blue, #4F7BAA);
  font-size: 16px;
  flex-shrink: 0;
}

.fitToggle[aria-expanded="true"] .fitToggle__chev {
  transform: rotate(180deg);
}

.fitMore {
  margin-top: 10px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(79, 123, 170, .14);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 4px 12px rgba(16, 24, 40, .04);
  color: var(--muted, #526072);
  animation: slideDown 300ms ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fitMore[hidden] {
  display: none;
}

.fitMore .fitList {
  margin-top: 0;
}

.fitMore .fitList li {
  color: var(--muted, #526072);
  font-size: 14px;
}

.fitCTA {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

/* =========================================================
   JOURNEY — SHARED
   ========================================================= */
.pathBullets {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.pathBullets li {
  margin: 6px 0;
}

.journeyEnd--compact {
  position: static;
  left: auto;
  top: auto;
  transform: none;
  width: min(640px, 100%);
  margin: 28px auto 0;
  text-align: center;
}

.journeyEnd__card {
  background: #fff;
  border: 1px solid rgba(79, 123, 170, .14);
  border-radius: 22px;
  padding: 20px 18px;
  box-shadow: var(--shadow-soft);
}

.journeyEnd__title {
  margin: 0 0 8px;
  font-size: 18px;
}

.journeyEnd__text {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* =========================================================
   JOURNEY — Vertical progress rail
   ========================================================= */
.journeyV2 {
  margin-top: 28px;
  width: 100%;
}

.pathV {
  position: relative;
  display: grid;
  gap: 10px;
  padding-left: 8px;
}

.pathV__rail {
  position: absolute;
  left: 29px;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 999px;
  background: rgba(79, 123, 170, .14);
  z-index: 0;
  overflow: hidden;
}

.pathV__fill {
  width: 100%;
  height: 0%;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--brand-blue), #7aa3cc);
  transition: height .35s ease;
}

.pathV__item {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.pathV__item.is-active {
  background: #fff;
  border-color: rgba(79, 123, 170, .16);
  box-shadow: var(--shadow-soft);
}

.pathV__head {
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr 64px 24px;
  gap: 12px;
  align-items: center;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 14px 14px 14px 8px;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

.pathV__dot {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .04em;
  background: #fff;
  border: 2px solid rgba(79, 123, 170, .28);
  color: var(--brand-blue);
  box-shadow: 0 8px 16px rgba(21, 45, 74, .06);
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.pathV__item.is-active .pathV__dot,
.pathV__item.is-done .pathV__dot {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

.pathV__line {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.pathV__title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
}

.pathV__one {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted);
}

.pathV__sticker {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 14px rgba(16, 24, 40, .10));
  transition: transform .25s ease, opacity .25s ease;
  opacity: .88;
}

.pathV__sticker img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.pathV__item.is-active .pathV__sticker {
  opacity: 1;
  animation: pathStickerFloat 4.5s ease-in-out infinite;
}

.pathV__chev {
  color: var(--brand-blue);
  transition: transform .2s ease;
  justify-self: end;
  align-self: center;
}

.pathV__item.is-open .pathV__chev {
  transform: rotate(180deg);
}

.pathV__body {
  padding: 0 16px 16px 64px;
  animation: pathPanelIn .25s ease;
}

@keyframes pathPanelIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pathStickerFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-5px) rotate(2deg);
  }
}

@media (max-width:560px) {
  .pathV__head {
    grid-template-columns: 36px 1fr 48px 18px;
    gap: 8px;
    padding-left: 4px;
  }

  .pathV__dot {
    width: 36px;
    height: 36px;
    font-size: 11px;
  }

  .pathV__rail {
    left: 21px;
  }

  .pathV__sticker {
    width: 44px;
    height: 44px;
  }

  .pathV__body {
    padding-left: 50px;
  }

  .pathV__one {
    font-size: 13.5px;
  }
}

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.js-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 600ms ease, transform 600ms ease;
  will-change: opacity, transform;
}

.js-reveal-left {
  transition-delay: 0ms;
}

.js-reveal-right {
  transition-delay: 300ms;
}

.js-reveal.is-visible {
  opacity: 1 !important;
  transform: translateY(0);
}

.js-reveal:not(.is-visible) {
  animation: fadeInFallback 0.1s ease 0.8s forwards;
}

.js-reveal-left:not(.is-visible) {
  animation-delay: 0.8s;
}

.js-reveal-right:not(.is-visible) {
  animation-delay: 1.1s;
}

@keyframes fadeInFallback {
  to {
    opacity: 1 !important;
    transform: translateY(0);
  }
}

.js-proofReveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 520ms ease, transform 520ms ease;
  will-change: opacity, transform;
}

.js-proofReveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-fitReveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 520ms ease, transform 520ms ease;
  will-change: opacity, transform;
}

.js-fitReveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   MICRO-INTERACTIONS (desktop only)
   ========================================================= */
@media (hover:hover) and (pointer:fine) {
  .pathV__item:not(.is-active):hover {
    background: rgba(255, 255, 255, .92);
    border-color: rgba(79, 123, 170, .10);
  }

  .pathV__item:not(.is-active):hover .pathV__sticker {
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion:reduce) {
  .js-reveal {
    transition: none;
    transform: none;
    opacity: 1 !important;
    transition-delay: 0ms !important;
  }

  .js-reveal:not(.is-visible) {
    animation: none;
    opacity: 1 !important;
    transform: none;
  }

  .js-proofReveal {
    transition: none;
    transform: none;
    opacity: 1;
  }

  .js-fitReveal {
    transition: none;
    transform: none;
    opacity: 1;
  }

  .fitToggle__chev {
    transition: none;
  }

  .pathV__fill,
  .pathV__dot,
  .pathV__chev,
  .pathV__sticker,
  .pathV__body {
    transition: none !important;
    animation: none !important;
  }
}

/* =========================================================
   LEGAL / FAQ PAGES
   ========================================================= */
.legalDoc {
  width: 100%;
  max-width: none;
  margin: 0;
}

.legalDoc > .p + .p,
.legalDoc > .dash__title {
  margin-top: 10pt;
}

.legalDoc a {
  color: var(--brand-blue);
}

.legalTable {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 14.5px;
}

.legalTable th,
.legalTable td {
  text-align: left;
  padding: 10px 12px;
  vertical-align: top;
  border-bottom: 1px solid rgba(16, 24, 40, .08);
}

.legalTable th {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  border-bottom: 2px solid rgba(16, 24, 40, .12);
}

.faqPageGrid {
  margin-top: 26px;
  display: grid;
  gap: 12px;
}

.faqItem {
  cursor: pointer;
}

.faqQ {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.faqChev {
  opacity: .7;
  flex-shrink: 0;
  transition: transform .2s ease;
}

.faqItem.is-open .faqChev {
  transform: rotate(180deg);
}

.faqA {
  margin-top: .55rem;
}

.faqPageCta {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid rgba(16, 24, 40, .08);
}

.site-footer__inner {
  padding: 40px 0 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.site-footer__logo {
  font-weight: 900;
  font-size: 18px;
  display: inline-block;
  margin-bottom: 6px;
  height: 80px;
}

.site-footer__tagline {
  margin: 0;
  opacity: .8;
  max-width: 40ch;
}

.site-footer__nav ul,
.site-footer__legal ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.site-footer a {
  text-decoration: none;
  color: inherit;
  opacity: .75;
}

.site-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

.site-footer__bottom {
  border-top: 1px solid rgba(16, 24, 40, .08);
  padding: 14px 0;
  text-align: center;
  font-size: 14px;
  opacity: .75;
}

/* =========================================================
   REGISTRATION / AUTH FORMS
   ========================================================= */

/* Narrow centered wrapper */
.wrap--narrow {
  max-width: 640px;
}

.wrap--account {
  max-width: 820px;
}

.account-page {
  display: grid;
  gap: 20px;
  padding: 36px 0 56px;
}

.account-hero {
  display: flex;
  align-items: center;
  gap: 18px;
}

.account-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
  background: rgba(79, 123, 170, .12);
  color: var(--brand-blue);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .04em;
}

.account-hero__avatar {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(16, 24, 40, .1);
  background: rgba(79, 123, 170, .08);
}

.profile-edit-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(16, 24, 40, .1);
  background: rgba(79, 123, 170, .08);
}

.account-hero__copy .eyebrow {
  margin-bottom: 8px;
}

.account-hero__copy .h2 {
  margin: 0 0 5px;
  text-align: left;
}

.account-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border: 1px solid rgba(16, 24, 40, .08);
  border-radius: 16px;
  overflow: hidden;
}

.account-details__item {
  min-width: 0;
  padding: 16px 18px;
  background: rgba(246, 251, 255, .55);
  border-bottom: 1px solid rgba(16, 24, 40, .07);
}

.account-details__item:nth-child(odd) {
  border-right: 1px solid rgba(16, 24, 40, .07);
}

.account-details__item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.account-details dt {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.account-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 650;
}

.account-page .card__body + .card__body {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(16, 24, 40, .08);
}

.account-danger-zone {
  border-color: rgba(201, 54, 54, .22);
  background: linear-gradient(180deg, rgba(255, 250, 250, .95), #fff);
}

.account-danger-zone > .p {
  margin-top: 0;
}

@media (max-width: 600px) {
  .account-page {
    padding-top: 24px;
  }

  .account-details {
    grid-template-columns: 1fr;
  }

  .account-details__item,
  .account-details__item:nth-child(odd),
  .account-details__item:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid rgba(16, 24, 40, .07);
  }

  .account-details__item:last-child {
    border-bottom: 0;
  }

}

/* Card container */
.card {
  background: #fff;
  border: 1px solid rgba(16, 24, 40, .08);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 12px 26px rgba(16, 24, 40, .06);
  position: relative;
  overflow: hidden;
}

.card--lg {
  padding: 32px clamp(22px, 4vw, 40px);
}

/* Card header */
.card__head {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(16, 24, 40, .08);
  margin-bottom: 24px;
}

.card__head .h2 {
  margin: 0 0 8px;
  text-align: left;
}

.card__head .p {
  margin: 0;
  max-width: 72ch;
}

.card__head .h3 {
  margin: 0 0 8px;
  text-align: left;
}

/* Card body */
.card__body {
  display: grid;
  gap: 12px;
}

/* Eyebrow label */
.eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  line-height: 1;
  border: 1px solid rgba(79, 123, 170, .18);
  background: rgba(79, 123, 170, .08);
  color: var(--brand-blue);
  margin: 0 0 12px;
}

/* Form layout */
.form {
  display: grid;
  gap: 20px;
}

/* Grid helpers */
.grid {
  display: grid;
  gap: 16px;
}

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

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

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

@media (max-width: 900px) {
  .grid--3 {
    grid-template-columns: 1fr;
  }

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

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

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

/* Spacing between stacked sections */
.wrap>.card+.card,
.wrap>.card+.grid,
.wrap>.grid+.grid {
  margin-top: 1.25rem;
}

/* Data tables */
.table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: .75rem;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.table th {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
  border-bottom: 2px solid rgba(16, 24, 40, .08);
}

.table td {
  border-bottom: 1px solid rgba(16, 24, 40, .06);
}

.table td:first-child {
  font-weight: 600;
}

.table .input,
.table .select,
.table textarea {
  min-width: 0;
  max-width: 100%;
}

.table .table-cell--compact {
  width: 1%;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.table .table-cell--long {
  min-width: 160px;
}

.table .table-cell--actions {
  width: 1%;
  min-width: 210px;
}

.table .table-cell--actions .rowActions,
.table .table-cell--actions .actions {
  min-width: 0;
}

/* Shared responsive-table presentation, applied and labelled by responsive-tables.js. */
@media (max-width: 900px) {
  .table--responsive {
    width: 100%;
    min-width: 0 !important;
  }

  .table--responsive,
  .table--responsive tbody,
  .table--responsive tr,
  .table--responsive td {
    display: block;
    width: 100%;
  }

  .table--responsive thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .table--responsive tbody {
    display: grid;
    gap: 12px;
  }

  .table--responsive tr {
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid rgba(79, 123, 170, .16);
    border-radius: 14px;
    background: rgba(255, 255, 255, .72);
  }

  .table--responsive td {
    display: grid;
    grid-template-columns: minmax(96px, 30%) minmax(0, 1fr);
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(16, 24, 40, .06);
    white-space: normal !important;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .table--responsive td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
  }

  .table--responsive td:last-child {
    border-bottom: 0;
  }

  .table--responsive .table-cell--compact,
  .table--responsive .table-cell--long,
  .table--responsive .table-cell--actions {
    width: 100%;
    min-width: 0;
  }

  .table--responsive .table-cell--long {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .table--responsive td[colspan] {
    display: block;
    padding: 10px 0;
    border-bottom: 0;
  }

  .table--responsive td[colspan]::before {
    content: none;
  }

  .table--responsive .actions {
    justify-content: flex-start;
    flex-wrap: wrap !important;
  }
}

@media (max-width: 520px) {
  .table--responsive td {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Host purchased-course inventory: keep assignment controls contained. */
.host-course-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

#purchased-courses {
  overflow: visible;
}

.section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.section-title-row > div {
  min-width: 0;
}

.section-title-row .btn {
  flex: 0 0 auto;
}

.au-pairs-section,
.au-pair-card {
  overflow: visible;
}

.au-pair-card {
  margin-top: 12px;
  box-shadow: none;
}

.au-pair-card--pending {
  background: rgba(79, 123, 170, .035);
  border-style: dashed;
}

.au-pair-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .section-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .section-title-row .btn {
    align-self: flex-start;
  }
}

.host-course-table th,
.host-course-table td {
  white-space: normal;
  vertical-align: top;
}

.host-course-table td:last-child {
  min-width: 0;
}

@media (max-width: 1200px) {
  .host-course-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .host-course-table,
  .host-course-table tbody {
    display: block;
    width: 100%;
  }

  .host-course-table tbody {
    display: grid;
    gap: 14px;
  }

  .host-course-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
    padding: 18px;
    border: 1px solid rgba(16, 24, 40, .09);
    border-radius: 16px;
    background: #fff;
  }

  .host-course-table td,
  .host-course-table td:first-child {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    font-weight: inherit;
    overflow-wrap: anywhere;
  }

  .host-course-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
  }

  .host-course-table td[data-label="Action"] {
    grid-column: 1 / -1;
    padding-top: 14px;
    border-top: 1px solid rgba(16, 24, 40, .08);
  }

}

@media (max-width: 700px) {
  .host-course-table tr {
    grid-template-columns: 1fr;
  }
}

.course-action-menu {
  position: relative;
  display: inline-block;
}

.course-action-menu[open] {
  z-index: 1000;
}

.course-action-menu summary {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(79, 123, 170, .2);
  border-radius: 12px;
  background: rgba(79, 123, 170, .08);
  color: var(--brand-blue);
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  list-style: none;
}

.course-action-menu summary::-webkit-details-marker {
  display: none;
}

.course-action-menu summary:hover,
.course-action-menu summary:focus-visible,
.course-action-menu[open] summary {
  background: rgba(79, 123, 170, .15);
}

.course-action-menu__panel {
  position: fixed;
  z-index: 1000;
  top: var(--context-menu-top, 0);
  left: var(--context-menu-left, 0);
  width: max-content;
  min-width: 190px;
  max-width: calc(100vw - 24px);
  padding: 6px;
  border: 1px solid rgba(16, 24, 40, .11);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(16, 24, 40, .18);
}

@media (min-width: 701px) {
  .course-action-menu__panel {
    visibility: hidden;
  }

  .course-action-menu.is-positioned .course-action-menu__panel {
    visibility: visible;
  }
}

.course-action-menu__panel a,
.course-action-menu__panel button {
  width: 100%;
  display: block;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.course-action-menu__panel a:hover,
.course-action-menu__panel a:focus-visible,
.course-action-menu__panel button:hover,
.course-action-menu__panel button:focus-visible {
  background: rgba(79, 123, 170, .1);
}

.course-action-menu__panel .course-action-menu__danger {
  color: var(--brand-red);
}

.course-action-menu__panel form {
  margin: 0;
}

@media (max-width: 700px) {
  .course-action-menu__panel {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-top: 8px;
    box-shadow: none;
  }

  .course-action-menu__panel a,
  .course-action-menu__panel button {
    white-space: normal;
  }

  .host-course-table .course-action-menu[open],
  .au-pair-card__actions .course-action-menu[open] {
    display: block;
    width: 100%;
  }
}

.course-invite-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid rgba(16, 24, 40, .12);
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(16, 24, 40, .24);
}

.course-invite-dialog::backdrop {
  background: rgba(16, 24, 40, .52);
  backdrop-filter: blur(3px);
}

.course-invite-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(16, 24, 40, .08);
}

.course-invite-dialog__head .h3,
.course-invite-dialog__head .p {
  margin-top: 0;
}

.course-invite-dialog__close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 24, 40, .07);
  color: var(--ink);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.course-invite-dialog__close:hover,
.course-invite-dialog__close:focus-visible {
  background: rgba(16, 24, 40, .12);
}

.dashboard-detail-dialog {
  width: min(820px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid rgba(16, 24, 40, .12);
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(16, 24, 40, .24);
}

.dashboard-detail-dialog::backdrop {
  background: rgba(16, 24, 40, .52);
  backdrop-filter: blur(3px);
}

.dashboard-detail-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(16, 24, 40, .08);
}

.dashboard-detail-dialog__head .h3,
.dashboard-detail-dialog__head .p {
  margin-top: 0;
}

.dashboard-detail-dialog__close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 24, 40, .07);
  color: var(--ink);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.dashboard-detail-dialog__close:hover,
.dashboard-detail-dialog__close:focus-visible {
  background: rgba(16, 24, 40, .12);
}

.dashboard-detail-dialog__section {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(16, 24, 40, .08);
}

/* Shared administration create/edit dialogs. */
.admin-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 24px);
  max-height: min(900px, calc(100dvh - 24px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: var(--ink, #17243d);
  background: #fff;
  box-shadow: 0 28px 80px rgba(16, 35, 65, .24);
  overflow: hidden;
}
.admin-dialog[open] { display: flex; flex-direction: column; }
.admin-dialog--wide { width: min(920px, calc(100vw - 32px)); }
.admin-dialog::backdrop { background: rgba(13, 29, 52, .58); backdrop-filter: blur(3px); }
.admin-dialog__head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid rgba(28, 52, 84, .11);
}
.admin-dialog__head .h3, .admin-dialog__head .p { margin: 0; }
.admin-dialog__head .p { margin-top: 5px; }
.admin-dialog__body { flex: 1 1 auto; min-height: 0; padding: 24px 26px 28px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.admin-dialog__close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(28, 52, 84, .16);
  border-radius: 50%;
  background: #fff;
  color: inherit;
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.admin-dialog__actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.admin-page-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin-record-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.commerce-page-header { align-items: center; gap: 28px; }
.commerce-page-header__copy { min-width: 0; }
.commerce-page-header .eyebrow { margin: 0 0 12px; }
.commerce-page-header .h2 { margin: 0 0 8px; letter-spacing: -.02em; line-height: 1.12; }
.commerce-page-header .p { margin: 0; max-width: 760px; }
.commerce-page-header > .btn { flex: 0 0 auto; }
.course-price-list, .promotion-list, .dashboard-record-list { display: grid; gap: 10px; }
.course-price-row, .promotion-row, .dashboard-record-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(28, 52, 84, .11);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(16, 35, 65, .045);
}
.commerce-clickable-row {
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background-color .16s ease;
}
.commerce-clickable-row:hover {
  border-color: rgba(49, 95, 135, .34);
  background: #fbfdff;
  box-shadow: 0 9px 24px rgba(16, 35, 65, .09);
  transform: translateY(-1px);
}
.commerce-clickable-row:focus-visible {
  outline: 3px solid rgba(79, 123, 170, .22);
  outline-offset: 2px;
  border-color: var(--brand-blue);
}
.is-clickable-record { cursor: pointer; }
.admin-record-list { display: grid; gap: 10px; }
.admin-record-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(120px, auto) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(28, 52, 84, .11);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(16, 35, 65, .045);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background-color .16s ease;
}
.admin-record-row:hover { border-color: rgba(49, 95, 135, .34); background:#fbfdff; box-shadow:0 9px 24px rgba(16,35,65,.09); transform:translateY(-1px); }
.admin-record-row:focus-visible { outline:3px solid rgba(79,123,170,.22); outline-offset:2px; border-color:var(--brand-blue); }
.admin-record-row__identity { min-width: 0; }
.admin-record-row__title { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.admin-record-row__title h3 { margin:0; font-size:1rem; line-height:1.3; }
.admin-record-row__identity p { margin:4px 0 0; color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
.admin-record-row__metrics { display:flex; align-items:center; justify-content:flex-end; gap:14px; color:var(--muted); font-size:12px; text-align:right; }
.admin-record-row__metrics strong { display:block; color:var(--ink); font-size:.95rem; }
.admin-record-row__subinfo { color:#718096; font-size:11px; line-height:1.35; }
.admin-record-row__subinfo strong { color:#536579; font-size:12px; font-weight:650; }
.admin-record-row__status { display:flex; align-items:center; justify-content:flex-end; gap:6px; flex-wrap:wrap; }

.course-workspace { margin:0 0 18px; border:1px solid rgba(28,52,84,.11); border-radius:16px; background:#fff; box-shadow:0 6px 20px rgba(16,35,65,.045); overflow:hidden; }
.course-workspace__context { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:16px 18px; }
.course-workspace__context > div { display:grid; gap:3px; }
.course-workspace__context strong { font-size:14px; }
.course-workspace__eyebrow { color:var(--muted); font-size:11px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.course-workspace__context form { display:flex; align-items:center; gap:10px; margin:0; }
.course-workspace__context .label { margin:0; white-space:nowrap; }
.course-workspace__context .select { min-width:min(330px, 42vw); }
.course-workspace__tabs { display:flex; gap:4px; padding:0 12px; border-top:1px solid rgba(28,52,84,.09); overflow-x:auto; }
.course-workspace__tab { position:relative; padding:13px 14px 12px; color:#5d6d80; font-size:13px; font-weight:750; text-decoration:none; white-space:nowrap; }
.course-workspace__tab:hover { color:var(--ink); }
.course-workspace__tab.is-active { color:var(--brand-blue); }
.course-workspace__tab.is-active::after { content:""; position:absolute; right:10px; bottom:0; left:10px; height:3px; border-radius:3px 3px 0 0; background:var(--brand-blue); }

.clone-course-form { display:grid; gap:16px; }
.clone-course-hero { margin-bottom:16px; }
.clone-safety-options { display:flex; align-items:center; gap:12px 22px; flex-wrap:wrap; margin-top:16px; padding-top:15px; border-top:1px solid rgba(28,52,84,.09); }
.clone-publishing-warning { color:#a23a32; }
.clone-builder-head { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.clone-presets { display:flex; gap:8px; flex-wrap:wrap; }
.clone-presets .btn { padding:8px 11px; font-size:12px; }
.clone-summary { margin-bottom:14px; padding:11px 13px; border-radius:11px; background:#f2f7fb; color:#536579; font-size:12px; font-weight:700; }
.clone-tree { display:grid; gap:9px; }
.clone-tree-node { border:1px solid rgba(28,52,84,.11); border-radius:13px; background:#fff; overflow:hidden; }
.clone-tree-node--nested { margin-top:8px; box-shadow:none; }
.clone-tree-node > summary { display:flex; align-items:center; gap:10px; padding:12px 14px; background:#fafcfe; cursor:pointer; list-style:none; }
.clone-tree-node > summary::-webkit-details-marker { display:none; }
.clone-tree-node > summary::before { content:"›"; flex:0 0 auto; color:#718096; font-size:18px; transform:rotate(0); transition:transform .15s ease; }
.clone-tree-node[open] > summary::before { transform:rotate(90deg); }
.clone-tree-node > summary > strong { flex:1; }
.clone-tree-node > summary > span { color:var(--muted); font-size:11px; }
.clone-tree-parent { display:flex; align-items:flex-start; gap:10px; flex:1; cursor:pointer; }
.clone-tree-parent input, .clone-tree-item input { flex:0 0 auto; margin-top:3px; accent-color:var(--brand-blue); }
.clone-tree-parent span, .clone-tree-item span { display:grid; gap:2px; min-width:0; }
.clone-tree-parent strong, .clone-tree-item strong { color:var(--ink); font-size:13px; }
.clone-tree-parent small, .clone-tree-item small { color:var(--muted); font-size:11px; overflow-wrap:anywhere; }
.clone-tree-children { display:grid; gap:7px; padding:10px 13px 13px 38px; border-top:1px solid rgba(28,52,84,.075); }
.clone-tree-item { display:flex; align-items:flex-start; gap:10px; padding:8px 10px; border-radius:9px; background:#f8fafc; cursor:pointer; }
.clone-tree-item:hover { background:#f1f6fa; }
.clone-tree-item--compact { padding:5px 8px; font-size:11px; }
.clone-field-grid { display:flex; align-items:center; gap:7px 16px; flex-wrap:wrap; padding:8px 10px; border:1px dashed rgba(28,52,84,.13); border-radius:9px; background:#fcfdff; }
.clone-field-grid--nested { margin:5px 0 6px 24px; }
.clone-field-grid label { display:inline-flex; align-items:center; gap:6px; color:#607186; font-size:11px; cursor:pointer; }
.clone-field-grid input { accent-color:var(--brand-blue); }
.clone-option-row { border-left:2px solid rgba(79,123,170,.16); padding-left:8px; }
.clone-option-row > .clone-tree-children { margin-left:24px; padding:5px 0 7px 8px; border:0; }
.clone-submit-bar { position:sticky; bottom:12px; z-index:10; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:14px 16px; border:1px solid rgba(28,52,84,.13); border-radius:15px; background:rgba(255,255,255,.96); box-shadow:0 14px 38px rgba(16,35,65,.16); backdrop-filter:blur(10px); }
.clone-submit-bar > div { display:grid; gap:2px; }
.clone-submit-bar span { color:var(--muted); font-size:11px; }

.chapter-handout-manager { margin-top:24px; padding-top:22px; border-top:1px solid rgba(28,52,84,.11); }
.chapter-handout-manager__head { margin-bottom:14px; }
.chapter-handout-manager__head .h3 { display:flex; align-items:center; gap:9px; margin:0; }
.chapter-handout-manager__head .p { margin:5px 0 0; }
.chapter-handout-upload { padding:14px; border:1px solid rgba(28,52,84,.1); border-radius:13px; background:#f8fbfd; }
.chapter-handout-list { display:grid; gap:8px; margin-top:14px; }
.chapter-handout-empty { margin:0; padding:14px; border:1px dashed rgba(28,52,84,.16); border-radius:12px; color:var(--muted); font-size:12px; text-align:center; }
.chapter-handout-row { display:grid; grid-template-columns:minmax(200px,1fr) auto auto auto; align-items:center; gap:14px; padding:11px 12px; border:1px solid rgba(28,52,84,.1); border-radius:12px; background:#fff; }
.chapter-handout-row__identity, .chapter-handout-row__usage { display:grid; gap:2px; min-width:0; }
.chapter-handout-row__identity strong { font-size:13px; }
.chapter-handout-row__identity span, .chapter-handout-row__usage span { color:var(--muted); font-size:11px; overflow-wrap:anywhere; }
.chapter-handout-row__usage { text-align:right; }
.chapter-handout-row__usage strong { font-size:13px; }
.chapter-handout-row form { margin:0; }
.chapter-handout-row .btn { padding:7px 10px; font-size:11px; }
.chapter-handout-row__actions { display:flex; align-items:center; justify-content:flex-end; gap:6px; }
.chapter-handout-row__actions .btn:disabled { opacity:.48; cursor:not-allowed; transform:none; }
.chapter-handout-edit { grid-column:1/-1; border-top:1px solid rgba(28,52,84,.08); padding-top:9px; }
.chapter-handout-edit > summary { width:max-content; color:var(--brand-blue); font-size:11px; font-weight:750; cursor:pointer; list-style:none; }
.chapter-handout-edit > summary::-webkit-details-marker { display:none; }
.chapter-handout-edit > summary::after { content:" +"; }
.chapter-handout-edit[open] > summary::after { content:" −"; }
.chapter-handout-edit__form { display:grid; grid-template-columns:minmax(160px,1fr) minmax(130px,.55fr) minmax(200px,1fr) auto; align-items:end; gap:10px; margin-top:10px !important; padding:12px; border-radius:10px; background:#f8fbfd; }
.chapter-handout-edit__form .field { margin:0; }
.chapter-handout-downloads { margin-top:16px; border-top:1px solid rgba(28,52,84,.09); padding-top:14px; }
.chapter-handout-downloads > summary { display:flex; justify-content:space-between; gap:12px; margin-bottom:10px; color:var(--ink); font-size:12px; font-weight:750; cursor:pointer; }
.chapter-handout-downloads > summary span { color:var(--muted); font-weight:600; }

.modern-data-table-wrap { overflow:auto; border:1px solid rgba(28,52,84,.1); border-radius:14px; background:#fff; }
.table.modern-data-table { margin:0; border:1px solid rgba(28,52,84,.1); border-radius:14px; border-collapse:separate; border-spacing:0; overflow:hidden; background:#fff; }
.modern-data-table-wrap .table.modern-data-table { border:0; border-radius:0; }
.table.modern-data-table thead th { padding:11px 13px; background:#f5f8fb; color:#536579; font-size:11px; letter-spacing:.045em; text-transform:uppercase; border-bottom:1px solid rgba(28,52,84,.12); }
.modern-data-table-wrap .table.modern-data-table thead th { position:sticky; top:0; z-index:1; }
.table.modern-data-table tbody td { padding:12px 13px; border-bottom:1px solid rgba(28,52,84,.075); vertical-align:middle; }
.table.modern-data-table tbody tr:last-child td { border-bottom:0; }
.table.modern-data-table tbody tr { transition:background-color .15s ease; }
.table.modern-data-table tbody tr:hover { background:#f8fbfe; }
.table.modern-data-table tbody tr.is-clickable-record:focus-visible { outline:3px solid rgba(79,123,170,.22); outline-offset:-3px; }
.course-price-row__identity, .promotion-row__identity, .dashboard-record-row__identity { min-width: 0; }
.course-price-row__title-line, .promotion-row__title-line, .dashboard-record-row__title-line { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.course-price-row__title-line h3, .promotion-row__title-line h3, .dashboard-record-row__title-line h3 { margin: 0; font-size: 1rem; line-height: 1.3; }
.course-price-row__identity p, .promotion-row__identity p, .dashboard-record-row__identity p { margin: 4px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.course-price-row__price, .promotion-row__value, .dashboard-record-row__value { display: grid; gap: 2px; min-width: 120px; text-align: right; }
.course-price-row__price strong, .promotion-row__value strong, .dashboard-record-row__value strong { color: var(--ink); font-size: 1rem; }
.course-price-row__price span, .promotion-row__value span, .dashboard-record-row__value span { color: var(--muted); font-size: 12px; }
.course-price-row__status, .promotion-row__status, .dashboard-record-row__status { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.course-price-detail > .h3, .course-price-detail__section > .h3, .promotion-detail__section > .h3 { margin: 0 0 14px; }
.course-price-detail__grid, .promotion-detail__grid, .dashboard-record-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(28, 52, 84, .1);
  border-radius: 14px;
  background: rgba(28, 52, 84, .1);
}
.course-price-detail__grid > div, .promotion-detail__grid > div, .dashboard-record-detail-grid > div { min-width: 0; padding: 12px 14px; background: #fff; }
.course-price-detail__grid dt, .promotion-detail__grid dt, .dashboard-record-detail-grid dt { margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.course-price-detail__grid dd, .promotion-detail__grid dd, .dashboard-record-detail-grid dd { margin: 0; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.course-price-detail__wide, .promotion-detail__wide { grid-column: 1 / -1; }
.course-price-detail__section, .promotion-detail__section { margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(28, 52, 84, .1); }
.course-price-history, .promotion-code-list { display: grid; gap: 8px; }
.course-price-history__row, .promotion-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 11px 13px;
  border: 1px solid rgba(28, 52, 84, .1);
  border-radius: 12px;
}
.course-price-history__row > div { display: grid; gap: 3px; min-width: 0; }
.course-price-history__row code, .promotion-code-row code { overflow-wrap: anywhere; }
.course-price-history__row > div > span, .promotion-code-row__meta { color: var(--muted); font-size: 12px; }
.promotion-code-row__actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.promotion-add-code { margin-top: 18px; }
body.has-open-dialog { overflow: hidden; }
@media (max-width: 640px) {
  .chapter-handout-row { grid-template-columns:1fr auto; }
  .chapter-handout-row__usage { text-align:left; }
  .chapter-handout-row__actions { justify-content:flex-start; }
  .chapter-handout-edit__form { grid-template-columns:1fr; }
  .clone-builder-head { align-items:stretch; }
  .clone-presets { display:grid; grid-template-columns:1fr 1fr; width:100%; }
  .clone-tree-children { padding-left:18px; }
  .clone-submit-bar { align-items:stretch; flex-direction:column; bottom:8px; }
  .clone-submit-bar .btn { width:100%; }
  .course-workspace__context { align-items:stretch; flex-direction:column; gap:12px; }
  .course-workspace__context form { align-items:stretch; flex-direction:column; gap:6px; }
  .course-workspace__context .select { min-width:0; width:100%; }
  .admin-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); border-radius: 16px; }
  .admin-dialog__head { padding: 20px 18px 15px; }
  .admin-dialog__body { padding: 20px 18px 24px; }
  .admin-dialog__actions { align-items: stretch; flex-direction: column-reverse; }
  .admin-dialog__actions .btn { width: 100%; }
  .commerce-page-header { align-items: stretch; }
  .commerce-page-header > .btn { width: 100%; }
  .course-price-row, .promotion-row, .dashboard-record-row { grid-template-columns: 1fr auto; gap: 12px; }
  .admin-record-row { grid-template-columns:1fr auto; gap:12px; }
  .admin-record-row__metrics { grid-row:2; grid-column:1; justify-content:flex-start; text-align:left; }
  .admin-record-row__status { grid-row:1 / span 2; grid-column:2; }
  .course-price-row__price, .promotion-row__value, .dashboard-record-row__value { min-width: 0; }
  .course-price-row__status, .promotion-row__status, .dashboard-record-row__status { grid-column: 1 / -1; justify-content: flex-start; }
  .course-price-detail__grid, .promotion-detail__grid, .dashboard-record-detail-grid { grid-template-columns: 1fr; }
  .course-price-detail__wide, .promotion-detail__wide { grid-column: auto; }
  .course-price-history__row, .promotion-code-row { grid-template-columns: 1fr; align-items: start; }
  .promotion-code-row__actions { justify-content: flex-start; }
}

.dashboard-detail-list {
  display: grid;
  gap: 10px;
}

.dashboard-detail-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(16, 24, 40, .08);
  border-radius: 14px;
  background: rgba(79, 123, 170, .035);
}

.dashboard-detail-list__item > div:first-child {
  min-width: 0;
}

.dashboard-detail-list__item h6 {
  margin: 3px 0 5px;
  font-size: 15px;
}

.dashboard-detail-list__meta {
  flex: 0 1 320px;
  text-align: right;
  overflow-wrap: anywhere;
}

@media (max-width: 620px) {
  .dashboard-detail-dialog,
  .course-invite-dialog {
    padding: 18px;
  }

  .dashboard-detail-list__item {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-detail-list__item .btn {
    width: 100%;
  }

  .dashboard-detail-list__meta {
    flex-basis: auto;
    text-align: left;
  }
}

/* Keep wide data tables inside their card and make horizontal scrolling usable. */
.table-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.table-scroll--quiz-overview .quiz-overview-table {
  min-width: 860px;
}

.billing-table {
  min-width: 760px;
}

.billing-table td:nth-child(4),
.billing-table td:nth-child(5) {
  white-space: nowrap;
}

.course-progress-module .eyebrow {
  margin: 0 0 8px;
}

.course-progress-quiz {
  margin-top: 6px;
  background: rgba(34, 154, 72, .035);
}

.quiz-overview-table th:nth-child(1),
.quiz-overview-table td:nth-child(1),
.quiz-overview-table th:nth-child(2),
.quiz-overview-table td:nth-child(2) {
  min-width: 170px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.quiz-overview-table td:last-child .btn {
  white-space: nowrap;
}

.quiz-answer-panel {
  display: grid;
  gap: 16px;
}

.quiz-answer-panel[hidden] {
  display: none;
}

/* Quiz question pool: wrap content instead of hiding it behind horizontal scrolling. */
.question-pool-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.question-pool-table {
  width: 100%;
  table-layout: fixed;
}

.question-pool-table th,
.question-pool-table td {
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}

.question-pool-table th:nth-child(1) { width: 58px; }
.question-pool-table th:nth-child(2) { width: 150px; }
.question-pool-table th:nth-child(4) { width: 155px; }
.question-pool-table th:nth-child(5) { width: 78px; }
.question-pool-table th:nth-child(6) { width: 150px; }

.question-pool-table code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.question-pool-table__actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  margin: 0;
}

@media (max-width: 820px) {
  .question-pool-table,
  .question-pool-table tbody,
  .question-pool-table tr,
  .question-pool-table td {
    display: block;
    width: 100%;
  }

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

  .question-pool-table tbody {
    display: grid;
    gap: 12px;
  }

  .question-pool-table tr {
    padding: 10px 14px;
    border: 1px solid rgba(79, 123, 170, .16);
    border-radius: 14px;
    background: rgba(255, 255, 255, .72);
  }

  .question-pool-table td {
    display: grid;
    grid-template-columns: minmax(88px, 28%) minmax(0, 1fr);
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(16, 24, 40, .06);
  }

  .question-pool-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
  }

  .question-pool-table td:last-child {
    border-bottom: 0;
  }

  .question-pool-table__actions {
    justify-content: flex-start;
  }

  .question-pool-table__empty {
    display: block !important;
    padding: 10px 0 !important;
    border: 0 !important;
  }

  .question-pool-table__empty::before {
    content: none !important;
  }
}

/* Form field */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.label {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.input,
.select {
  padding: 10px 14px;
  border: 1px solid rgba(16, 24, 40, .16);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}

.input:focus,
.select:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(79, 123, 170, .15);
}

.input[type="checkbox"] {
  width: 22px;
  height: 22px;
  padding: 0;
  margin: 9px 0;
  cursor: pointer;
  accent-color: var(--brand-blue);
  border-radius: 6px;
}

.input::placeholder {
  color: var(--muted);
  opacity: .55;
}

.field__hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.field__error {
  margin: 0;
  font-size: 13px;
  color: var(--brand-red);
  font-weight: 600;
  line-height: 1.4;
}

/* Invitation response and app handoff */
.invitation-card,
.invitation-result {
  display: grid;
  gap: 18px;
}

.invitation-card .h2,
.invitation-result .h2,
.invitation-result .h3 {
  margin: 0;
  text-align: left;
}

.invitation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.invitation-result {
  max-width: 920px;
  margin: 0 auto;
}

.invitation-result__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(30, 142, 82, .12);
  color: #187647;
  font-size: 30px;
  font-weight: 800;
}

.invitation-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 24px;
  color: var(--ink);
  line-height: 1.55;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.store-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(16, 24, 40, .09);
  border-radius: 18px;
  background: rgba(246, 251, 255, .65);
  text-align: center;
}

.store-card__qr {
  width: 190px;
  height: 190px;
  max-width: 100%;
  border-radius: 10px;
  background: #fff;
}

@media (max-width: 650px) {
  .store-grid {
    grid-template-columns: 1fr;
  }
}

/* Checkbox / check label */
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
  color: var(--muted);
}

.check input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--brand-blue);
  flex-shrink: 0;
}

.check a {
  color: var(--brand-blue);
  text-decoration: underline;
}

/* Actions bar */
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 4px;
}

/* Horizontal rule */
.hr {
  border: none;
  height: 1px;
  background: rgba(16, 24, 40, .10);
  margin: 18px 0;
}

/* Alert */
.alert {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.alert--spaced {
  margin-block: 1.25rem;
}

.flash-toast-container {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(420px, calc(100vw - 36px));
  pointer-events: none;
}

.flash-toast-container .alert--dismissible {
  width: 100%;
  margin: 0 !important;
  box-shadow: 0 14px 40px rgba(16, 36, 58, .2);
  pointer-events: auto;
}

.alert--dismissible {
  transition: opacity .22s ease, transform .22s ease;
}

.alert--dismissible.is-entering,
.alert--dismissible.is-dismissing {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .alert--dismissible {
    transition: none;
  }
}

@media (max-width: 520px) {
  .flash-toast-container {
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    left: 12px;
    width: auto;
  }
}

.alert--success {
  background: rgba(34, 154, 72, .08);
  border: 1px solid rgba(34, 154, 72, .22);
  color: #1a7a3a;
}

.alert--danger {
  background: rgba(255, 90, 90, .08);
  border: 1px solid rgba(255, 90, 90, .22);
  color: #c42b2b;
}

/* Form footer text */
.form__footer {
  margin: 0;
  max-width: 75ch;
}

/* Dashboard top bar */
.dashTop {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .02em;
  border: 1px solid rgba(16, 24, 40, .10);
  background: rgba(16, 24, 40, .04);
  color: rgba(31, 42, 55, .9);
  white-space: nowrap;
}

.badge--ok {
  background: rgba(34, 154, 72, .10);
  border-color: rgba(34, 154, 72, .20);
  color: #1a7a3a;
}

.badge--progress {
  background: rgba(211, 112, 0, .10);
  border-color: rgba(211, 112, 0, .24);
  color: #d37000;
}

.badge--warn {
  background: rgba(255, 90, 90, .08);
  border-color: rgba(255, 90, 90, .22);
  color: #c42b2b;
}

.progress-status-text {
  font-weight: 700;
}

.progress-status-text--in-progress {
  color: #d37000;
}

.progress-status-text--completed {
  color: #1a7a3a;
}

/* Progress cards */
.progressWrap {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.progressRow {
  border: 1px solid rgba(16, 24, 40, .08);
  background: rgba(255, 255, 255, .92);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 8px 18px rgba(16, 24, 40, .05);
}

.au-pairs-section .progressRow {
  box-shadow: none;
}

.progressHead {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  align-items: baseline;
}

.progressTitle {
  margin: 0;
  font-weight: 900;
  letter-spacing: -.01em;
}

.progressMeta {
  color: var(--muted);
  font-size: 13.5px;
}

.progress-course-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.progress-course-actions .btn {
  padding: 7px 12px;
}

@media (max-width: 620px) {
  .progress-course-actions {
    width: 100%;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
  }

  .progress-course-actions .btn {
    width: 100%;
  }
}

/* Progress bar */
.bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(79, 123, 170, .12);
  border: 1px solid rgba(79, 123, 170, .18);
  overflow: hidden;
  margin-top: 10px;
}

.bar>i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--brand-blue);
  border-radius: 999px;
}

/* Consent grid / mini forms */
.consentGrid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}

.miniForm {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.miniForm .select {
  max-width: 220px;
}

/* Small helper text */
.small {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* =========================================================
   HELP SECTIONS
   ========================================================= */

.helpSteps {
  display: grid;
  gap: 12px;
}

.step {
  border: 1px solid rgba(16, 24, 40, .08);
  background: rgba(255, 255, 255, .92);
  border-radius: 18px;
  padding: 14px 14px;
  box-shadow: 0 10px 22px rgba(16, 24, 40, .06);
}

.stepHead {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.stepNum {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  background: rgba(79, 123, 170, .12);
  border: 1px solid rgba(79, 123, 170, .18);
  color: rgba(31, 42, 55, .9);
  flex: 0 0 auto;
}

.kpiGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 900px) {
  .kpiGrid {
    grid-template-columns: 1fr;
  }
}

.kpi {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(16, 24, 40, .08);
  background: rgba(255, 255, 255, .92);
}

.kpi b {
  display: block;
  font-size: 15px;
}

.kpi span {
  color: var(--muted);
  font-size: 13.5px;
}

.stats-kpi-grid .kpi {
  padding: 18px;
}

.stats-kpi-grid .kpi b {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.1;
}

.callout {
  border-left: 4px solid var(--brand-blue);
  padding: 12px 12px;
  background: rgba(79, 123, 170, .08);
  border-radius: 12px;
}

.small {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* =========================================================
   AU PAIR DASHBOARD SECTIONS
   ========================================================= */

/* Tiny dashboard additions; your journey.css already includes most components */
.dashHero {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.dashHero h1 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -.02em;
}

.muted {
  color: var(--muted);
}

.cardTight .card__head {
  margin-bottom: 14px;
  padding-bottom: 12px;
}

.familyGrid {
  display: grid;
  gap: 12px;
}

.familyRow {
  border: 1px solid rgba(16, 24, 40, .08);
  background: rgba(255, 255, 255, .92);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 8px 18px rgba(16, 24, 40, .05);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.familyMeta {
  font-size: 13.5px;
  color: var(--muted);
}

.pillTiny {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(79, 123, 170, .18);
  background: rgba(79, 123, 170, .08);
  font-weight: 800;
  font-size: 12px;
  color: var(--brand-blue);
  white-space: nowrap;
}

/* =========================================================
   Courses Dashboard SECTIONS
   ========================================================= */
.dashHero {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.muted {
  color: var(--muted);
}

.rowActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pillTiny {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(79, 123, 170, .18);
  background: rgba(79, 123, 170, .08);
  font-weight: 800;
  font-size: 12px;
  color: var(--brand-blue);
  white-space: nowrap;
  text-decoration: none;
}

.split {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.35fr .95fr;
}

@media (max-width: 980px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.mini {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}


/* =========================================================
   Chapters Dashboard SECTIONS
   ========================================================= */
.miniForm {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
}

.miniForm .label {
  margin: 0;
}

.quiz-language-form {
  justify-content: flex-start;
  align-items: flex-end;
  margin-top: .75rem;
}

.quiz-language-form__control {
  flex: 0 1 260px;
  width: 260px;
  min-width: 0;
}

.quiz-language-form .field__hint {
  flex: 1 1 320px;
  align-self: center;
}

@media (max-width: 600px) {
  .quiz-language-form__control {
    flex-basis: 100%;
    width: 100%;
  }
}

.courseMeta {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 6px;
}

/* =========================================================
   Lessons Dashboard SECTIONS
   ========================================================= */
.ctxMeta {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 6px;
}

.tinyCode {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12.5px;
}

/* =========================================================
   Professional checkout
   ========================================================= */
.checkout-page { background:linear-gradient(180deg,#f4f8fc 0,#fff 620px); }
.checkout-shell { padding:44px 0 72px; min-height:72vh; }
.checkout-heading { display:flex; justify-content:space-between; gap:28px; align-items:flex-end; margin-bottom:24px; }
.checkout-heading h1 { margin:5px 0 8px; max-width:720px; font-size:clamp(2rem,4vw,3.2rem); line-height:1.04; letter-spacing:-.04em; color:#10243b; }
.checkout-heading p:not(.eyebrow) { margin:0; color:var(--muted); font-size:1.05rem; max-width:680px; }
.checkout-secure-mark { flex:none; display:flex; align-items:center; gap:9px; padding:10px 14px; border:1px solid rgba(79,123,170,.2); border-radius:999px; background:rgba(255,255,255,.8); color:#24415f; font-size:.86rem; font-weight:700; box-shadow:0 8px 24px rgba(21,45,74,.06); }
.checkout-secure-mark span { color:#3f9367; font-size:.7rem; }
.checkout-layout { display:grid; grid-template-columns:minmax(0,1fr) 390px; gap:24px; align-items:start; }
.checkout-main-card,.checkout-summary,.checkout-empty { background:#fff; border:1px solid rgba(79,123,170,.17); border-radius:24px; box-shadow:0 22px 60px rgba(21,45,74,.09); }
.checkout-main-card { padding:30px; }
.checkout-step { display:flex; gap:14px; align-items:flex-start; }
.checkout-step>span { display:grid; place-items:center; width:32px; height:32px; flex:none; border-radius:50%; background:#173958; color:#fff; font-weight:800; }
.checkout-step h2 { margin:1px 0 4px; color:#142b42; font-size:1.25rem; }
.checkout-step p { margin:0; color:var(--muted); }
.checkout-course-form { margin:22px 0 18px 46px; }
.checkout-select { min-height:52px; font-weight:700; color:#173958; background-color:#fbfdff; }
.checkout-course-detail { display:flex; gap:15px; margin-left:46px; padding:20px; border-radius:18px; background:#f6faff; border:1px solid rgba(79,123,170,.14); }
.checkout-course-icon { display:grid; place-items:center; width:36px; height:36px; flex:none; border-radius:12px; color:#246948; background:#dff2e7; font-weight:900; }
.checkout-course-detail strong { color:#16344f; font-size:1.03rem; }
.checkout-course-detail p { color:var(--muted); margin:4px 0 10px; }
.checkout-course-detail ul { margin:0; padding-left:18px; color:#3f5265; font-size:.92rem; }
.checkout-course-detail li+li { margin-top:4px; }
.checkout-divider { border:0; border-top:1px solid rgba(79,123,170,.16); margin:30px 0; }
.checkout-promo-form { margin:20px 0 0 46px; }
.checkout-promo-form>div { display:flex; gap:10px; }
.checkout-promo-form .input { min-height:48px; text-transform:uppercase; letter-spacing:.04em; }
.checkout-promo-form .btn { flex:none; }
.checkout-promo-applied { display:flex; justify-content:space-between; align-items:center; gap:18px; margin:20px 0 0 46px; padding:16px 18px; border:1px solid rgba(61,145,101,.28); background:#f0faf4; border-radius:16px; }
.checkout-promo-applied strong,.checkout-promo-applied span { display:block; }
.checkout-promo-applied strong { color:#205f40; }
.checkout-promo-applied span { margin-top:2px; color:#4c6658; font-size:.9rem; }
.checkout-text-button { border:0; background:transparent; color:#315f87; text-decoration:underline; cursor:pointer; font:inherit; font-weight:700; }
.checkout-public-promos { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:12px 0 0 46px; color:var(--muted); font-size:.88rem; }
.checkout-public-promos code { padding:4px 8px; border-radius:7px; background:#edf4fb; color:#214a70; font-weight:800; }
.checkout-assurance { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:30px 0 0 46px; }
.checkout-assurance>div { padding:15px; border-radius:14px; border:1px solid rgba(79,123,170,.13); }
.checkout-assurance strong,.checkout-assurance span { display:block; }
.checkout-assurance strong { color:#203c56; font-size:.91rem; }
.checkout-assurance span { color:var(--muted); font-size:.82rem; margin-top:3px; line-height:1.45; }
.checkout-summary { position:sticky; top:24px; overflow:hidden; }
.checkout-summary__top { padding:26px 26px 22px; background:linear-gradient(135deg,#183b5c,#315f87); color:#fff; }
.checkout-summary__top .eyebrow { color:#cfe3f5; }
.checkout-summary__top h2 { margin:7px 0; font-size:1.35rem; line-height:1.25; }
.checkout-summary__top>span { color:#dcebf7; font-size:.88rem; }
.checkout-summary__lines { padding:24px 26px 16px; }
.checkout-summary__lines>div,.checkout-summary__total { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.checkout-summary__lines>div { color:#46596c; }
.checkout-summary__lines>div+div { margin-top:13px; }
.checkout-summary__lines strong { color:#1c354e; }
.checkout-summary__lines .is-discount,.checkout-summary__lines .is-discount strong { color:#26734d; }
.checkout-summary__total { margin:0 26px; padding:19px 0 21px; border-top:1px solid rgba(79,123,170,.17); color:#173958; }
.checkout-summary__total span { font-weight:800; }
.checkout-summary__total strong { font-size:1.55rem; letter-spacing:-.025em; }
.checkout-free-note { margin:0 26px 20px; padding:14px; border-radius:14px; background:#edf8f1; color:#225e40; }
.checkout-free-note strong,.checkout-free-note span { display:block; }
.checkout-free-note span { font-size:.84rem; margin-top:3px; color:#547060; }
.checkout-local-note { margin:0 26px 20px; color:var(--muted); font-size:.85rem; line-height:1.5; }
.checkout-summary form { padding:0 26px; }
.checkout-submit { width:100%; min-height:54px; display:flex; align-items:center; justify-content:center; gap:12px; font-weight:850; }
.checkout-submit span { font-size:1.2rem; }
.checkout-summary__footer { display:flex; justify-content:center; gap:8px; padding:17px 20px 22px; color:#7a8794; font-size:.75rem; }
.checkout-empty { padding:40px; text-align:center; }
.checkout-empty h2 { margin-top:0; color:#173958; }
@media(max-width:900px){.checkout-heading{align-items:flex-start;flex-direction:column}.checkout-layout{grid-template-columns:1fr}.checkout-summary{position:static;order:-1}.checkout-main-card{padding:24px}.checkout-course-form,.checkout-course-detail,.checkout-promo-form,.checkout-promo-applied,.checkout-public-promos,.checkout-assurance{margin-left:0}}
@media(max-width:560px){.checkout-shell{padding:28px 0 48px}.checkout-main-card{padding:20px;border-radius:18px}.checkout-summary{border-radius:18px}.checkout-promo-form>div{align-items:stretch;flex-direction:column}.checkout-assurance{grid-template-columns:1fr}.checkout-heading h1{font-size:2.15rem}.checkout-secure-mark{font-size:.78rem}}

/* Shared dynamic course catalogue cards. */
.catalog-page { min-height:72vh; }
.catalog-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:24px; }
.catalog-heading .h2 { margin:5px 0 8px; text-align:left; }
.catalog-heading .p { margin:0; max-width:720px; }
.catalog-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:20px; }
.catalog-card { display:flex; flex-direction:column; min-width:0; overflow:hidden; border:1px solid rgba(79,123,170,.17); border-radius:22px; background:#fff; box-shadow:0 18px 48px rgba(21,45,74,.08); }
.catalog-card__body { flex:1 1 auto; padding:26px 26px 20px; }
.catalog-card__body .eyebrow { margin:0 0 9px; }
.catalog-card__body h2 { margin:0; color:#15334f; font-size:1.35rem; line-height:1.25; }
.catalog-card__option { display:inline-flex; margin:10px 0 0; padding:4px 9px; border-radius:999px; background:#edf4fb; color:#315f87; font-size:.78rem; font-weight:800; }
.catalog-card__description { margin:14px 0 0; color:var(--muted); line-height:1.6; }
.catalog-card__features { margin:18px 0 0; padding-left:19px; color:#3f5265; font-size:.92rem; }
.catalog-card__features li+li { margin-top:7px; }
.catalog-card__footer { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:20px 26px 24px; border-top:1px solid rgba(79,123,170,.12); background:#fbfdff; }
.catalog-card__footer>div { display:grid; gap:2px; }
.catalog-card__footer span { color:var(--muted); font-size:.78rem; font-weight:750; text-transform:uppercase; letter-spacing:.04em; }
.catalog-card__footer strong { color:#15334f; font-size:1.45rem; letter-spacing:-.025em; }
.catalog-price-note { margin:18px 0 0; text-align:center; }
@media(max-width:700px){.catalog-heading{align-items:flex-start;flex-direction:column}.catalog-card__footer{align-items:stretch;flex-direction:column}.catalog-card__footer .btn{width:100%;text-align:center}}
