@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

/* =========================
   Design tokens / globals
   ========================= */
:root {
  --bg: #070A10;
  --panel: rgba(255,255,255,.04);
  --border: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --faint: rgba(255,255,255,.55);
  --btn: #4169E1;
  --btn-hover: #4169E1;
  --danger: #ef4444;
  --good: #22c55e;
  --shadow-lg: 0 20px 60px rgba(0,0,0,.35);
  --shadow-btn: 0 14px 40px rgba(65,105,225,.25);
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 999px;
  --site-width: 1100px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

.page-auth,
.page-checkout,
.page-account,
.page-members,
.page-auth-callback {
  display: flex;
  flex-direction: column;
}

.page-auth .wrap,
.page-checkout .wrap,
.page-account .wrap,
.page-members .wrap {
  flex: 1 0 auto;
  width: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--bg);
}

.page-home::before {
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(37,99,235,.22), transparent 55%),
    radial-gradient(900px 500px at 80% 10%, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(180deg, rgba(12,16,26,.42) 0%, rgba(7,10,16,.96) 48%, #05070b 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.wrap {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 24px;
}

.hidden { display: none !important; }
.muted { color: var(--muted); }
.tiny {
  font-size: 12px;
  color: var(--faint);
  line-height: 1.5;
}
.ghost { opacity: .7; }
.err {
  margin-top: 10px;
  color: var(--danger);
  font-size: 13px;
}
.ok {
  margin-top: 10px;
  color: var(--good);
  font-size: 13px;
}
.sub {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.text-link {
  text-decoration: underline;
  color: rgba(255,255,255,.75);
}
.text-measure { max-width: 70ch; }
.title-reset { margin: 0; }

/* =========================
   Shared components
   ========================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(7,10,16,.65);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

body {
  padding-top: 72px;
}


.nav-inner {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  font-weight: 800;
  letter-spacing: .2px;
  justify-self: start;
}

.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37,99,235,.9), rgba(37,99,235,.35));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 30px rgba(37,99,235,.18);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  justify-self: center;
}

.nav-links a {
  padding: 10px;
  border-radius: 10px;
}

.nav-links a:hover {
  background: rgba(255,255,255,.06);
  color: var(--text);
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
}

.nav-toggle:hover {
  background: rgba(255,255,255,.1);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: currentColor;
}

.nav-toggle-bar + .nav-toggle-bar {
  margin-top: 4px;
}

.nav-mobile {
  display: none;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(7,10,16,.94);
}

.nav-mobile-inner {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 16px 24px 20px;
}

.nav-mobile-links,
.nav-mobile-cta {
  display: grid;
  gap: 10px;
}

.nav-mobile-links a {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
}

.nav-mobile-links a:hover {
  background: rgba(255,255,255,.06);
  color: var(--text);
}

.nav-mobile-cta {
  margin-top: 14px;
}

.nav-mobile-cta .btn {
  width: 100%;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  background: rgba(255,255,255,.10);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: transparent;
}

.btn:disabled {
  opacity: .7;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--btn);
  border-color: rgba(37,99,235,.35);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--btn-hover);
}

.btn-danger {
  border-color: rgba(239,68,68,.35);
}

.btn-danger:hover {
  background: rgba(239,68,68,.12);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.card {
  border: 1px solid rgba(255,255,255,.10);
  background: transparent;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: -.2px;
}

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

.row .btn {
  flex: 1;
}

label {
  display: block;
  margin: 12px 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color: var(--text);
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(37,99,235,.55);
}

.msg {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.msg.error { color: var(--danger); }
.msg.success { color: var(--good); }

.footerline {
  margin-top: 14px;
  color: var(--faint);
  font-size: 13px;
}

.footerline a,
.helper-line a {
  text-decoration: underline;
  color: rgba(255,255,255,.75);
}

.topbar {
  padding: 22px 0 8px;
}

.topbar h1 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -.4px;
}

.page-enter {
  --page-enter-offset: 26px;
  --page-enter-duration: 760ms;
  --page-enter-step: 90ms;
}

.page-enter > * {
  opacity: 0;
  transform: translate3d(0, var(--page-enter-offset), 0);
  transform-origin: top center;
  animation: page-enter-rise var(--page-enter-duration) cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: calc(var(--page-enter-index, 0) * var(--page-enter-step) + 80ms);
  will-change: opacity, transform;
}

.page-enter > .page-enter-fade {
  transform: none;
  animation-name: page-enter-fade;
  will-change: opacity;
}

.page-enter > *:nth-child(1) { --page-enter-index: 0; }
.page-enter > *:nth-child(2) { --page-enter-index: 1; }
.page-enter > *:nth-child(3) { --page-enter-index: 2; }
.page-enter > *:nth-child(4) { --page-enter-index: 3; }
.page-enter > *:nth-child(5) { --page-enter-index: 4; }
.page-enter > *:nth-child(6) { --page-enter-index: 5; }
.page-enter > *:nth-child(7) { --page-enter-index: 6; }
.page-enter > *:nth-child(8) { --page-enter-index: 7; }
.page-enter > *:nth-child(9) { --page-enter-index: 8; }
.page-enter > *:nth-child(10) { --page-enter-index: 9; }

@keyframes page-enter-rise {
  from {
    opacity: 0;
    transform: translate3d(0, var(--page-enter-offset), 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes page-enter-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-enter > * {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (max-width: 900px) {
  .nav-inner {
    display: flex;
    justify-content: space-between;
  }
  .nav-links,
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-mobile:not(.hidden) { display: block; }
}

/* =========================
   Home page
   ========================= */
.page-home .hero {
  padding: clamp(72px, 10vw, 104px) 0 40px;
}

.page-home .pill {
  max-width: fit-content;
  margin: 0 auto 22px;
}

.page-home .pill b {
  color: var(--text);
}

.page-home .hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -1.2px;
  margin: 0 0 16px;
  text-align: center;
}

.page-home .hero > p {
  max-width: 1460px;
  margin: 0 auto 26px;
  text-align: center;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.45;
  letter-spacing: -.5px;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.hero-ctas--top {
  margin-top: 18px;
}

.subtext {
  text-align: center;
  color: var(--faint);
  font-size: 13px;
}

.preview-shell {
  max-width: 760px;
  margin: 34px auto 0;
  width: 100%;
}

.preview-header {
  text-align: center;
  margin-bottom: 12px;
}

.preview-eyebrow {
  margin: 0;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11px;
  font-weight: 700;
}

.preview-card {
  border: 1px solid rgba(255,255,255,.1);
  background: transparent;
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
}

.preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--faint);
  font-size: 11px;
}

.preview-label {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
}

.preview-counter {
  white-space: nowrap;
}

.preview-body {
  padding: 4px 0 0;
  min-height: 150px;
}

.page-home .preview-question {
  margin: 0;
  font-size: clamp(13px, 1.35vw, 16px);
  line-height: 1.5;
  letter-spacing: -.2px;
  color: var(--text);
  text-align: left;
  max-width: none;
}

.page-home .preview-answer {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.78);
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  text-align: left;
  max-width: none;
}

.answer-reveal-line {
  display: block;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 280ms ease, transform 280ms ease;
  will-change: opacity, transform;
}

.answer-reveal-line.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.preview-btn {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 13px;
}

.home-info-section {
  margin-top: 110px;
}

.home-section-head {
  text-align: center;
}

.home-section-title {
  margin: 0;
  text-align: center;
  font-size: 32px;
  letter-spacing: -.3px;
  color: var(--text);
}

.home-section-subtitle {
  max-width: 860px;
  margin: 12px auto 0;
  text-align: center;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  line-height: 1.7;
}

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

.home-info-section .grid {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.page-home .grid > .card {
  grid-column: span 6;
  min-height: 320px;
  padding: 28px;
}

.home-info-section .grid > .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text);
}

.page-home .grid > .card p,
.page-home .grid > .card ul {
  margin: 0;
  color: inherit;
  font-size: 14px;
  line-height: 1.6;
}

.home-info-section .grid > .card h3 {
  margin: 0 0 16px;
  text-align: center;
  color: var(--text);
}

.page-home .grid > .card ul {
  width: fit-content;
  max-width: 100%;
  margin-top: 0;
  padding-left: 18px;
  text-align: left;
}

.home-info-section .grid > .home-help-card .home-topic-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 20px;
  width: min(34rem, 100%);
  max-width: none;
  margin: 28px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.home-info-section .grid > .home-help-card .home-topic-list li {
  position: relative;
  padding-left: 20px;
}

.home-info-section .grid > .home-help-card .home-topic-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #56c271;
  font-weight: 700;
}

.home-info-section .grid > .home-help-card .home-help-points {
  width: min(34rem, 100%);
  max-width: none;
  margin: 28px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.home-info-section .grid > .home-help-card .home-help-points li {
  position: relative;
  padding-left: 14px;
}

.home-info-section .grid > .home-help-card .home-help-points li::before {
  content: "-";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text);
}

.home-info-section .grid > .home-help-card .home-help-points li + li {
  margin-top: 10px;
}

.home-info-section .grid > .home-help-card,
.home-info-section .grid > .home-inline-testimonial {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 40px !important;
}

.home-info-section .grid > .home-help-card h3,
.home-info-section .grid > .home-inline-testimonial h3 {
  width: min(34rem, 100%);
  margin: 0;
  text-align: center;
  color: var(--text);
}

.home-info-section .grid > .home-inline-testimonial .home-testimonial-quote,
.home-info-section .grid > .home-inline-testimonial .home-testimonial-author {
  width: min(35ch, 100%);
  text-align: left;
  color: var(--text);
  margin: 0;
}

.home-info-section .grid > .home-inline-testimonial .home-testimonial-quote {
  max-width: none;
  margin-top: 28px;
}

.home-info-section .grid > .home-inline-testimonial .home-testimonial-author {
  margin-top: 28px;
}

.home-help-card {
  border-color: rgba(255,255,255,.10);
}

.home-testimonials {
  margin-top: 34px;
}

.home-testimonials-title {
  margin: 0;
  text-align: center;
  font-size: 16px;
  letter-spacing: -.2px;
  color: var(--text);
}

.home-testimonials-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(280px, 360px);
  gap: 16px;
  margin-top: 22px;
  justify-content: center;
  align-items: stretch;
}

.home-testimonial-card {
  padding: 24px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-testimonial-card-featured {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.home-testimonial-quote {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
}

.home-testimonial-author {
  margin: 18px 0 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
}

.home-proof-stat {
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1;
}

.home-proof-subtitle {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

.home-proof-logos {
  width: 100%;
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 24px;
  align-items: center;
  justify-items: center;
}

.home-proof-logos img {
  width: 100%;
  max-width: 92px;
  height: 34px;
  display: block;
  object-fit: contain;
  object-position: center;
  filter: brightness(0) invert(1);
  opacity: .92;
}

.home-divider-section {
  margin-top: 64px;
}

.home-divider-title {
  margin: 0;
  text-align: center;
  font-size: 22px;
  letter-spacing: -.3px;
}

.logo-marquee {
  margin-top: 18px;
}

.logo-marquee-window {
  position: relative;
  overflow: hidden;
}

.logo-marquee-window::before,
.logo-marquee-window::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  z-index: 1;
  pointer-events: none;
}

.logo-marquee-window::before {
  left: 0;
  background: linear-gradient(90deg, rgba(5,7,11,.96), rgba(5,7,11,0));
}

.logo-marquee-window::after {
  right: 0;
  background: linear-gradient(270deg, rgba(5,7,11,.96), rgba(5,7,11,0));
}

.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 88px;
  width: max-content;
  padding: 8px 16px;
  opacity: 0;
  transition: opacity 260ms ease;
  will-change: transform;
}

.logo-marquee-track.is-ready {
  opacity: 1;
}

.logo-tile {
  width: 112px;
  height: 38px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: brightness(0) invert(1);
  opacity: .95;
}

.page-home .section {
  margin-top: 54px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 34px;
}

.page-home .section h2 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -.3px;
  text-align: center;
}

.page-home .section .lead {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.6;
}

.page-home footer {
  margin: 70px 0 24px;
  color: rgba(255,255,255,.45);
  text-align: center;
  font-size: 13px;
}

.site-footer {
  margin: auto 0 24px;
  color: rgba(255,255,255,.45);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 900px) {
  .page-home .grid > .card { grid-column: span 12; }
  .home-topic-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-testimonials-grid {
    grid-template-columns: 1fr;
  }
  .home-proof-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-testimonial-card-featured {
    min-height: 0;
  }
  .preview-actions {
    justify-content: space-between;
  }
  .preview-body { min-height: 0; }
  .logo-marquee-track {
    gap: 56px;
    padding: 8px 10px;
  }
  .logo-tile {
    width: 96px;
    height: 34px;
  }
  .logo-tile img {
    width: 100%;
    height: 100%;
  }
}

/* =========================
   About page
   ========================= */
.page-about .about-page {
  padding-top: 48px;
  padding-bottom: 40px;
}

.about-hero {
  max-width: 860px;
  margin: 0 auto 34px;
  text-align: center;
}

.about-eyebrow,
.about-kicker {
  margin: 0 0 12px;
  color: rgba(255,255,255,.56);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  font-weight: 700;
}

.page-about h1 {
  margin: 0;
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.04;
  letter-spacing: -1px;
}

.about-lead {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.65;
}

.about-story {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 30px;
  align-items: center;
  margin-top: 88px;
}

.about-story-reverse {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
}

.about-media {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  min-height: 0;
}

.about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,10,16,0) 45%, rgba(7,10,16,.2) 100%);
  pointer-events: none;
}

.about-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.about-copy {
  position: relative;
  z-index: 1;
  padding: 32px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background: rgba(255,255,255,.045);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.about-copy-free {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.about-story .about-copy {
  margin-left: -54px;
}

.about-story-reverse .about-copy {
  margin-left: 0;
  margin-right: -54px;
}

.about-copy h2,
.about-values h2,
.about-cta h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -.6px;
}

.about-copy p,
.about-value-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.about-copy p + p,
.about-value-card p + p {
  margin-top: 14px;
}

.about-values {
  margin-top: 60px;
}

.about-impact {
  margin-top: 60px;
  padding: 30px 34px;
  text-align: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.about-impact h2 {
  margin: 0 auto 14px;
  max-width: 840px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.16;
  letter-spacing: -.7px;
  font-variant-numeric: tabular-nums;
}

.about-impact .sub {
  max-width: 760px;
  margin: 0 auto;
}

.about-values-head {
  max-width: 640px;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.about-value-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
  height: 100%;
  padding: 24px;
  background: transparent;
  box-shadow: none;
}

.about-value-card h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.about-cta {
  margin-top: 58px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: transparent;
  box-shadow: none;
}

.about-cta .row {
  margin-top: 0;
  flex-shrink: 0;
}

.about-footer {
  margin: 66px 0 20px;
  color: rgba(255,255,255,.45);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 980px) {
  .about-story,
  .about-story-reverse {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-story .about-copy,
  .about-story-reverse .about-copy {
    margin-left: 0;
    margin-right: 0;
  }

  .about-values-grid {
    grid-template-columns: 1fr;
  }

  .about-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-impact {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .page-about .about-page {
    padding-top: 32px;
  }

  .about-copy,
  .about-value-card,
  .about-cta {
    padding: 22px;
  }

  .about-footer {
    margin-top: 52px;
  }
}

/* =========================
   Auth pages (login/signup/reset)
   ========================= */
.page-auth .card,
.page-auth-callback .status-card {
  max-width: 520px;
  margin: 48px auto 0;
  padding: 18px;
}

.page-auth .card > h1,
.page-auth-callback .status-card > h1 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -.3px;
}

.page-auth .sub,
.page-auth-callback .sub {
  margin: 0 0 18px;
}

.page-auth .site-footer,
.page-auth-callback .site-footer {
  margin-top: 48px;
}

.helper-line {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* =========================
   Checkout page
   ========================= */
.page-checkout .topbar h1 {
  font-size: 30px;
}

.page-checkout .topbar {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.page-checkout .topbar .sub {
  max-width: 760px;
  margin: 0 auto;
}

.checkout-unified {
  max-width: 1080px;
  margin-top: 60px;
}

.checkout-card-top {
  display: flex;
  flex-direction: column;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: end;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
  padding: 30px 24px 24px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.08);
  background: transparent;
  box-shadow: 0 10px 28px rgba(58,91,190,.08), 0 14px 34px rgba(0,0,0,.16);
  overflow: visible;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.pricing-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 12px 32px rgba(58,91,190,.11), 0 18px 40px rgba(0,0,0,.2);
}

.pricing-card-featured {
  transform: translateY(-16px);
  border-color: rgba(65,105,225,.24);
  background: transparent;
  box-shadow: 0 14px 36px rgba(65,105,225,.16), 0 22px 52px rgba(16,24,40,.26);
}

.pricing-card-featured:hover {
  transform: translateY(-18px);
  border-color: rgba(65,105,225,.34);
  box-shadow: 0 16px 40px rgba(65,105,225,.2), 0 26px 58px rgba(16,24,40,.3);
}

.pricing-featured-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4d7ef4, #3a6fe8);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: 0 10px 28px rgba(65,105,225,.32);
}

.pricing-card-head {
  position: relative;
  display: grid;
  gap: 6px;
  text-align: center;
}

.pricing-plan-name {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
}

.pricing-label {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: var(--radius-xl);
  background: rgba(34,197,94,.14);
  color: rgba(134,239,172,.98);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.plan-badge-save {
  background: rgba(34,197,94,.14);
  color: rgba(134,239,172,.98);
}

.pricing-card-price {
  margin-top: 28px;
  text-align: center;
}

.pricing-card-price .price {
  margin: 0;
  line-height: 1;
}

.pricing-card-price .price span {
  margin-left: 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--muted);
}

.pricing-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.pricing-badge-row {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.price {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -.4px;
  margin: 0;
}

.list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  line-height: 1.7;
}

.list li {
  margin: 8px 0;
  padding-left: 20px;
  position: relative;
}

.list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(34,197,94,.95);
  font-weight: 900;
}

.pricing-features {
  margin-top: 14px;
  flex: 1;
}

.pricing-features li {
  margin: 14px 0;
  padding-left: 20px;
  color: rgba(255,255,255,.84);
}

.pricing-features li::before {
  top: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: rgba(34,197,94,.95);
  font-size: 1em;
}

.pricing-cta {
  width: 100%;
  margin-top: 20px;
  min-height: 48px;
  border-radius: 14px;
}

.pricing-note {
  margin: 22px 0 0;
  text-align: center;
}

.faq-section {
  max-width: 980px;
  margin-top: 56px;
}

.faq-head .section-title {
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.faq-item {
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  background: transparent;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.faq-icon {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  transition: transform .2s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.aText.faq-answer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.62);
  font-size: 14px;
  line-height: 1.6;
}

.divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 14px 0;
}

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

  .pricing-card,
  .pricing-card-featured,
  .pricing-card:hover,
  .pricing-card-featured:hover {
    transform: none;
  }
}

/* =========================
   Account page
   ========================= */
.page-account .topbar .sub {
  max-width: 60ch;
}

.page-account .site-footer,
.page-members .site-footer,
.page-checkout .site-footer {
  margin-top: 56px;
}

.account-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.account-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 480px;
}

.account-pill {
  margin: 0;
  text-align: left;
  white-space: normal;
  line-height: 1.4;
}

.account-pill-active {
  color: #86efac;
  border-color: rgba(34,197,94,.35);
  background: rgba(34,197,94,.1);
}

.account-pill-inactive {
  color: rgba(255,255,255,.78);
}

.page-account .card {
  max-width: 720px;
  margin-top: 16px;
}

.account-feedback {
  max-width: 720px;
  margin-top: 14px;
}

.account-feedback .err,
.account-feedback .ok {
  margin-top: 0;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.account-feedback .err {
  border-color: rgba(239,68,68,.28);
  background: rgba(239,68,68,.08);
}

.account-feedback .ok {
  border-color: rgba(34,197,94,.28);
  background: rgba(34,197,94,.08);
}

@media (max-width: 900px) {
  .account-card-head {
    flex-direction: column;
  }

  .account-pills {
    max-width: 100%;
    justify-content: flex-start;
  }
}

/* =========================
   Members page
   ========================= */
.nocopy {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.page-members .dashboard {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.page-members .topbar h1 {
  font-size: 30px;
}

.page-members .topbar .sub {
  font-size: 14px;
}

.page-members .card h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.filter-panel {
  padding: 0;
}

.filter-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 12px;
}

.filter-panel-head > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.filter-panel-head h3 {
  margin: 0;
}

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

.filter-field {
  min-width: 0;
}

.filter-dropdown {
  position: relative;
}

.filter-trigger {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.12);
  background: transparent;
  color: rgba(255,255,255,.92);
  text-align: left;
  font-size: 13px;
  cursor: pointer;
}

.filter-dropdown::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255,255,255,.6);
  border-bottom: 2px solid rgba(255,255,255,.6);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.filter-trigger[aria-expanded="true"] {
  border-color: rgba(255,255,255,.24);
}

.filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  padding: 6px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.1);
  background: #05070b;
  box-shadow: var(--shadow-lg);
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.filter-menu.hidden {
  display: block !important;
}

.filter-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 10px;
  color: rgba(255,255,255,.9);
  cursor: pointer;
}

.checkbox-option:hover {
  background: rgba(255,255,255,.06);
}

.filter-divider {
  height: 1px;
  margin: 6px 8px;
  background: rgba(255,255,255,.14);
}

.checkbox-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-mark {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.02);
  flex: 0 0 auto;
  position: relative;
}

.checkbox-option.is-active .checkbox-mark {
  background: rgba(255,255,255,.95);
  border-color: rgba(255,255,255,.95);
}

.checkbox-option.is-active .checkbox-mark::after {
  content: none;
}

.checkbox-label {
  min-width: 0;
  font-size: 13px;
}

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

.flashTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 5px 9px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.counter {
  color: var(--faint);
  font-size: 11px;
}

.question-meta {
  text-align: right;
}

.qBox {
  padding: 8px 0 0;
  min-height: 300px;
}

.qText {
  font-size: 20px;
  line-height: 1.45;
  margin: 0 0 14px;
  white-space: pre-wrap;
}

.aText {
  white-space: pre-wrap;
  color: rgba(255,255,255,.86);
  line-height: 1.55;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 16px;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.flashcard-panel {
  padding: 16px;
}

.page-members label {
  font-size: 12px;
  margin: 0 0 6px;
}

.page-members .btn {
  font-size: 13px;
  padding: 9px 12px;
}

.page-members .btn:focus,
.page-members .btn:focus-visible {
  outline: none;
  box-shadow: none;
}

.controls .left,
.controls .right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.paywall-card {
  max-width: 720px;
}

.paywall-actions {
  margin-top: 12px;
}

.paywall-note {
  margin-top: 10px;
}

.empty-hint {
  margin-top: 12px;
  display: none;
}

@media (max-width: 980px) {
  .member-filters { grid-template-columns: 1fr; }
  .filter-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================
   Auth callback page
   ========================= */
.page-auth-callback {
  min-height: 100vh;
}

.page-auth-callback > p {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}


/* =========================
   Something extra
   ========================= */
.text-link {
  text-decoration: underline;
  color: rgba(255,255,255,.75);
}

.forgot-row {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.text-link {
  text-decoration: underline;
  color: rgba(255,255,255,.75);
}

.text-link {
  text-decoration: underline;
  color: rgba(255,255,255,.75);
}

.section-title {
  margin: 0 0 10px;
}

.no-margin {
  margin: 0;
}

.section-title {
  margin: 0 0 10px;
}

.billing-copy {
  max-width: 70ch;
}
