* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, #08111f, #102038 58%, #07130d);
  color: #f8fafc;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.page {
  min-height: 100vh;
}

.hero {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(320px, 680px) 390px;
  align-items: start;
  justify-content: center;
  gap: 56px;
  padding: 86px 32px 68px;
}

.eyebrow {
  margin: 0;
  color: #86efac;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  max-width: 100%;
  margin: 10px 0 18px;
  font-size: 58px;
  line-height: 1.04;
  overflow-wrap: normal;
}

.lead {
  max-width: 590px;
  color: #cbd5e1;
  font-size: 19px;
  line-height: 1.6;
}

.feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.feature-strip span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #263449;
  background: rgba(15, 23, 42, 0.74);
  border-radius: 999px;
  padding: 0 14px;
  color: #dbeafe;
  font-weight: 700;
}

.auth-card,
.price-card {
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid #263449;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #0b1220;
  border: 1px solid #24324a;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 18px;
}

.toggle button {
  height: 38px;
  border-radius: 6px;
  color: #94a3b8;
  background: transparent;
}

.toggle button.active {
  background: #2563eb;
  color: white;
}

label {
  display: block;
  margin: 14px 0 8px;
  color: #dbeafe;
  font-weight: 700;
  font-size: 14px;
}

input {
  width: 100%;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #08111f;
  color: white;
  padding: 12px 14px;
  outline: none;
}

input:focus {
  border-color: #60a5fa;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 82px;
}

#togglePassword {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  min-width: 58px;
  height: 32px;
  border-radius: 6px;
  padding: 0 10px;
  background: #1f2937;
  color: #dbeafe;
}

#submitBtn {
  display: block;
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
  margin-top: 18px;
  background: #22c55e;
  color: #052e16;
  font-weight: 800;
}

#message {
  min-height: 22px;
  color: #cbd5e1;
}

.turnstile-slot {
  width: 100%;
  max-width: 100%;
  min-height: 72px;
  margin: 14px 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.turnstile-slot > div,
.turnstile-slot iframe {
  max-width: 100% !important;
}

.turnstile-slot iframe {
  border-radius: 8px;
}

.pricing-section {
  padding: 32px 32px 72px;
}

.section-heading {
  width: min(1080px, 100%);
  margin: 0 auto 22px;
}

.section-heading h2 {
  margin: 8px 0 10px;
  font-size: 38px;
}

.section-heading p {
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.5;
}

.pricing-grid {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.price-card {
  position: relative;
  box-shadow: none;
}

.price-card.featured {
  border-color: #22c55e;
}

.price-card.muted {
  opacity: 0.84;
}

.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  min-height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  background: #22c55e;
  color: #052e16;
  font-size: 12px;
  font-weight: 900;
}

.price-header h3 {
  margin: 0;
  font-size: 25px;
}

.price-header p {
  color: #94a3b8;
  line-height: 1.5;
}

.price {
  margin: 18px 0;
  font-size: 36px;
  font-weight: 900;
}

.price span {
  color: #94a3b8;
  font-size: 16px;
  font-weight: 700;
}

ul {
  margin: 0;
  padding-left: 20px;
  color: #dbeafe;
  line-height: 1.9;
}

.plan-link {
  min-height: 42px;
  border-radius: 8px;
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: #1f2937;
  color: white;
  text-decoration: none;
  font-weight: 800;
}

.plan-link.primary {
  background: #22c55e;
  color: #052e16;
}

.plan-link.disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

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

  .hero {
    min-height: auto;
    align-items: start;
    padding: 28px 24px;
    gap: 28px;
  }

  .auth-card {
    width: 100%;
    max-width: 460px;
  }

  h1 {
    font-size: 42px;
  }
}

@media (max-width: 540px) {
  .hero,
  .pricing-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: 34px;
  }

  .lead,
  .section-heading p {
    font-size: 16px;
  }

  .section-heading h2 {
    font-size: 30px;
  }

  .auth-card,
  .price-card {
    padding: 18px;
  }
}

@media (max-width: 540px) {
  .hero {
    gap: 18px;
    padding-top: 22px;
    padding-bottom: 20px;
  }

  .feature-strip {
    margin-top: 18px;
    gap: 8px;
  }

  .feature-strip span {
    min-height: 32px;
    font-size: 13px;
    padding: 0 10px;
  }

  .auth-card {
    margin-top: 4px;
  }

  .pricing-section {
    padding-top: 18px;
    padding-bottom: 42px;
  }

  .pricing-grid {
    gap: 12px;
  }

  .price {
    margin: 12px 0;
  }

  ul {
    line-height: 1.65;
  }

  .plan-link {
    margin-top: 16px;
  }
}

@media (max-width: 540px) {
  .hero {
    gap: 18px;
    padding-top: 22px;
    padding-bottom: 20px;
  }

  .feature-strip {
    margin-top: 18px;
    gap: 8px;
  }

  .feature-strip span {
    min-height: 32px;
    font-size: 13px;
    padding: 0 10px;
  }

  .auth-card {
    margin-top: 4px;
  }

  .pricing-section {
    padding-top: 18px;
    padding-bottom: 42px;
  }

  .pricing-grid {
    gap: 12px;
  }

  .price {
    margin: 12px 0;
  }

  ul {
    line-height: 1.65;
  }

  .plan-link {
    margin-top: 16px;
  }
}

@media (max-width: 540px) {
  .hero {
    min-height: 0 !important;
    display: block;
    padding-top: 18px;
    padding-bottom: 14px;
  }

  .hero-copy {
    margin-bottom: 16px;
  }

  .pricing-section {
    padding-top: 10px;
  }
}

@media (max-width: 1100px) {
  .hero {
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: start !important;
    gap: 16px !important;
    padding: 18px !important;
  }

  .hero-copy {
    margin: 0 !important;
  }

  .auth-card {
    max-width: none !important;
    width: 100% !important;
  }

  .pricing-section {
    padding-top: 12px !important;
  }
}

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr !important;
  }

  .price-card {
    padding: 16px !important;
  }

  .price-header h3 {
    font-size: 22px;
  }

  .price {
    font-size: 30px;
  }
}

@media screen and (max-width: 900px) {
  .pricing-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
  }

  .price-card {
    width: 100% !important;
  }
}


/* Product center selector */
.center-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 18px;
}

.center-option {
  min-height: 72px;
  border-radius: 8px;
  border: 1px solid #263449;
  background: #0b1220;
  color: #cbd5e1;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 12px;
  text-align: left;
}

.center-option strong,
.center-option span {
  display: block;
}

.center-option strong {
  color: #f8fafc;
}

.center-option span {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.3;
}

.center-option.active {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
}

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


/* Brand navigation and About page */
.site-nav {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-brand img {
  width: 390px;
  max-width: min(58vw, 390px);
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  min-height: 38px;
  border: 1px solid #263449;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.72);
  text-decoration: none;
  font-weight: 800;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-color: #22c55e;
  color: #f8fafc;
  background: rgba(34, 197, 94, 0.14);
}

.about-page {
  padding-bottom: 72px;
}

.about-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 420px;
  gap: 48px;
  align-items: center;
  padding: 46px 0 32px;
}

.about-copy h1 {
  margin: 10px 0 18px;
  font-size: 54px;
  line-height: 1.05;
  max-width: 760px;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.about-actions .plan-link {
  margin-top: 0;
}

.founder-card {
  border: 1px solid #263449;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.founder-card img {
  width: 100%;
  height: clamp(420px, 44vw, 560px);
  object-fit: cover;
  object-position: center top;
  display: block;
}

.founder-card div {
  padding: 20px;
}

.founder-card h2,
.founder-card p {
  margin: 0;
}

.founder-card h2 {
  font-size: 26px;
}

.founder-card p {
  color: #cbd5e1;
  line-height: 1.6;
}

.mission-band,
.story-grid,
.platform-grid,
.trust-section {
  width: min(1180px, calc(100% - 40px));
  margin: 22px auto 0;
}

.mission-band {
  border: 1px solid #263449;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.86);
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 1.2fr;
  gap: 28px;
  align-items: start;
}

.mission-band h2,
.trust-section h2,
.story-grid h2,
.platform-grid h3 {
  margin: 8px 0 12px;
}

.mission-band p,
.story-grid p,
.platform-grid p,
.trust-section p {
  color: #cbd5e1;
  line-height: 1.7;
  font-size: 16px;
}

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

.story-grid article,
.trust-section {
  border: 1px solid #263449;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.74);
  padding: 26px;
}

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

.platform-grid .price-card {
  min-height: 220px;
}

.trust-section {
  max-width: none;
}

@media (max-width: 980px) {
  .about-hero,
  .mission-band,
  .story-grid,
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .about-hero {
    min-height: 0;
    padding-top: 34px;
  }

  .founder-card {
    max-width: 520px;
  }

  .about-copy h1 {
    font-size: 42px;
  }
}

@media (max-width: 620px) {
  .site-nav {
    width: min(100% - 28px, 1180px);
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-brand img {
    width: 300px;
    max-width: 100%;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-links a {
    min-height: 36px;
    padding: 0 12px;
    font-size: 14px;
  }

  .about-hero,
  .mission-band,
  .story-grid,
  .platform-grid,
  .trust-section {
    width: min(100% - 28px, 1180px);
  }

  .about-copy h1 {
    font-size: 34px;
  }

  .about-actions .plan-link {
    width: 100%;
  }

  .mission-band,
  .story-grid article,
  .trust-section {
    padding: 20px;
  }
}




/* Homepage experience showcase */
.experience-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 4px 0 42px;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.experience-card {
  min-height: 260px;
  border: 1px solid #263449;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(8, 17, 31, 0.92)),
    #0f172a;
  padding: 22px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
}

.experience-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #22c55e, #38bdf8);
}

.experience-learning::before {
  background: linear-gradient(90deg, #f59e0b, #22c55e);
}

.experience-support::before {
  background: linear-gradient(90deg, #38bdf8, #818cf8);
}

.experience-progress::before {
  background: linear-gradient(90deg, #fb7185, #f59e0b);
}

.experience-mark {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(96, 165, 250, 0.14);
  color: #dbeafe;
  font-weight: 900;
}

.experience-card h3 {
  margin: 18px 0 10px;
  font-size: 22px;
}

.experience-card p {
  color: #cbd5e1;
  line-height: 1.65;
  margin: 0;
}

.experience-meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  margin-top: 20px;
  overflow: hidden;
}

.experience-meter span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #38bdf8);
}

@media (max-width: 1040px) {
  .experience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .experience-section {
    width: min(100% - 28px, 1180px);
    padding-bottom: 28px;
  }

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

  .experience-card {
    min-height: 0;
  }
}


/* Selectable pricing cards */
.price-card.featured {
  border-color: #263449;
}

.selectable-price {
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.selectable-price:hover,
.selectable-price:focus-visible {
  border-color: #60a5fa;
  transform: translateY(-2px);
  outline: none;
}

.selectable-price.selected {
  border-color: #22c55e;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2), 0 24px 80px rgba(0, 0, 0, 0.24);
}

.selectable-price.selected .price-header h3::after {
  content: "Selected";
  min-height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 0 9px;
  background: #22c55e;
  color: #052e16;
  font-size: 12px;
  font-weight: 900;
  vertical-align: middle;
}

.nav-links a.active {
  border-color: #22c55e;
  color: #f8fafc;
  background: rgba(34, 197, 94, 0.14);
}


/* Public legal and trust footer */
.public-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 34px auto 0;
  border-top: 1px solid #263449;
  padding: 22px 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #94a3b8;
}

.public-footer span {
  color: #f8fafc;
  font-weight: 900;
}

.public-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

.public-footer a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 800;
}

.public-footer a:hover {
  color: #86efac;
}

.legal-page {
  padding-bottom: 48px;
}

.legal-document {
  width: min(900px, calc(100% - 40px));
  margin: 44px auto 0;
  border: 1px solid #263449;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.92);
  padding: 34px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.legal-document h1 {
  font-size: 44px;
}

.legal-updated {
  color: #86efac;
  font-weight: 800;
}

.legal-section {
  border-top: 1px solid #263449;
  margin-top: 24px;
  padding-top: 22px;
}

.legal-section h2 {
  margin: 0 0 10px;
  font-size: 25px;
}

.legal-section p {
  color: #cbd5e1;
  line-height: 1.7;
  font-size: 16px;
}

@media (max-width: 640px) {
  .public-footer {
    width: min(100% - 28px, 1180px);
    align-items: flex-start;
    flex-direction: column;
  }

  .public-footer nav {
    justify-content: flex-start;
  }

  .legal-document {
    width: min(100% - 28px, 900px);
    padding: 22px;
  }

  .legal-document h1 {
    font-size: 34px;
  }
}


/* Support page */
.support-page {
  padding-bottom: 48px;
}

.support-hero,
.support-grid,
.support-contact,
.support-note {
  width: min(1180px, calc(100% - 40px));
  margin: 34px auto 0;
}

.support-hero h1 {
  max-width: 760px;
}

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

.support-grid article,
.support-contact,
.support-note {
  border: 1px solid #263449;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.88);
  padding: 24px;
}

.support-grid h2,
.support-contact h2,
.support-note h2 {
  margin: 0 0 10px;
}

.support-grid p,
.support-contact p,
.support-note p {
  color: #cbd5e1;
  line-height: 1.7;
}

.support-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.support-email {
  min-height: 44px;
  border-radius: 8px;
  background: #22c55e;
  color: #052e16;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .support-grid,
  .support-contact {
    grid-template-columns: 1fr;
  }

  .support-contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .support-hero,
  .support-grid,
  .support-contact,
  .support-note {
    width: min(100% - 28px, 1180px);
  }
}


/* Password reset pages */
.auth-help-link {
  display: inline-flex;
  margin-top: 12px;
  color: #93c5fd;
  font-weight: 800;
  text-decoration: none;
}

.auth-help-link:hover {
  color: #86efac;
}

.single-auth {
  width: min(980px, calc(100% - 40px));
  margin: 34px auto 0;
}

#resetRequestBtn,
#resetConfirmBtn {
  display: block;
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
  margin-top: 18px;
  background: #22c55e;
  color: #052e16;
  font-weight: 800;
}

#resetMessage {
  min-height: 22px;
  color: #cbd5e1;
}

#resetMessage a {
  color: #86efac;
  font-weight: 900;
}


/* Compact password reset layout */
.auth-page .single-auth {
  width: min(720px, calc(100% - 40px));
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  justify-content: start;
  gap: 18px;
  margin-top: 34px;
}

.auth-page .auth-copy h2 {
  max-width: 680px;
  font-size: 31px;
  line-height: 1.15;
}

.auth-page .auth-copy p {
  max-width: 680px;
}

.auth-page .auth-card {
  width: min(100%, 520px);
  padding: 22px;
}

#resetRequestBtn,
#resetConfirmBtn {
  width: auto;
  min-width: 210px;
  padding: 0 20px;
}

@media (max-width: 620px) {
  .auth-page .single-auth {
    width: min(100% - 28px, 720px);
  }

  .auth-page .auth-card {
    width: 100%;
  }

  #resetRequestBtn,
  #resetConfirmBtn {
    width: 100%;
  }
}


.verify-action {
  margin-top: 10px;
  text-decoration: none;
}


/* Support request form */
.support-form-section {
  align-items: flex-start;
}

.support-form {
  width: min(720px, 100%);
  border: 1px solid #263449;
  border-radius: 8px;
  background: rgba(8, 17, 31, 0.7);
  padding: 18px;
}

.support-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 12px;
}

.support-form select,
.support-form textarea {
  width: 100%;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #08111f;
  color: white;
  padding: 12px 14px;
  outline: none;
  font: inherit;
}

.support-form textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.5;
}

.support-form select:focus,
.support-form textarea:focus {
  border-color: #60a5fa;
}

.support-form .primary-button {
  width: 100%;
  margin-top: 16px;
}

.support-message-status {
  min-height: 22px;
  color: #cbd5e1;
}

@media (max-width: 720px) {
  .support-form-grid {
    grid-template-columns: 1fr;
  }
}


/* Account management page */
.account-page {
  padding-bottom: 56px;
}

.account-hero {
  width: min(1120px, calc(100% - 40px));
  margin: 36px auto 22px;
}

.account-hero h1 {
  max-width: 780px;
}

.account-dashboard,
.account-card {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.account-dashboard {
  display: grid;
  gap: 18px;
}

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

.account-card {
  border: 1px solid #263449;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.92);
  padding: 22px;
}

.account-grid .account-card {
  width: 100%;
  margin: 0;
}

.account-overview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.account-card h2,
.account-card p {
  margin: 0;
}

.account-card h2 {
  margin-top: 6px;
}

.account-card p:not(.eyebrow):not(.account-card-label) {
  margin-top: 8px;
  color: #cbd5e1;
  line-height: 1.5;
}

.account-card-label {
  color: #86efac;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.account-action {
  min-height: 42px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
}

.account-action.primary {
  background: #22c55e;
  color: #052e16;
}

.account-action.secondary {
  background: #1f2937;
  color: #dbeafe;
}

.account-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.account-message {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 24px;
  color: #cbd5e1;
}

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

  .account-overview-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-hero,
  .account-dashboard,
  .account-card,
  .account-message {
    width: min(100% - 28px, 1120px);
  }
}

/* Account hub polish */
.account-hub-hero {
  margin-top: 42px;
}

.account-hub-overview {
  border-color: #2c7a54;
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.12), transparent 40%),
    rgba(15, 23, 42, 0.94);
}

.account-overview-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.account-status-chip,
.account-plan-chip {
  min-height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #334155;
  color: #cbd5e1;
  background: #101827;
  font-size: 13px;
  font-weight: 900;
}

.account-status-chip.active,
.account-plan-chip.active {
  border-color: #245b37;
  color: #86efac;
  background: #13251b;
}

.account-status-chip.attention,
.account-plan-chip.attention {
  border-color: #92400e;
  color: #fde68a;
  background: #3d2f0d;
}

.account-status-grid {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.account-stat {
  border: 1px solid #263449;
  border-radius: 8px;
  background: rgba(8, 17, 31, 0.68);
  padding: 16px;
}

.account-stat span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  color: #f8fafc;
}

.account-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-feature-list,
.account-security-list {
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
  color: #cbd5e1;
  line-height: 1.45;
}

.account-feature-list {
  list-style: none;
}

.account-feature-list li,
.account-security-list span {
  border: 1px solid #223047;
  border-radius: 8px;
  background: #08111f;
  padding: 10px 12px;
}

.account-next-steps {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(320px, 1.3fr);
  gap: 18px;
  align-items: center;
}

.account-link-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.account-link-grid a {
  min-height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  background: #111827;
  border: 1px solid #263449;
  color: #dbeafe;
  text-decoration: none;
  font-weight: 800;
}

.account-link-grid a:hover {
  border-color: #60a5fa;
  color: #86efac;
}

@media (max-width: 900px) {
  .account-status-grid,
  .account-next-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .account-status-grid {
    width: min(100% - 28px, 1120px);
    grid-template-columns: 1fr;
  }

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

  .account-overview-actions,
  .account-card-topline {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Mobile/tablet polish */
@media (max-width: 900px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .nav-links {
    width: 100%;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .nav-links a {
    flex: 0 0 auto;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
  }

  .hero {
    align-items: stretch;
  }

  .feature-strip,
  .account-actions-row,
  .account-link-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    overflow-x: hidden;
  }

  .page {
    min-width: 0;
  }

  .hero-copy h1,
  .account-hero h1,
  .support-hero h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .lead {
    font-size: 16px;
  }

  .auth-card,
  .price-card,
  .account-card,
  .support-contact,
  .support-note,
  .support-grid article {
    padding: 18px;
  }

  .center-picker,
  .pricing-grid,
  .support-form-grid {
    grid-template-columns: 1fr;
  }

  .password-field {
    grid-template-columns: 1fr;
  }

  .password-field button,
  .account-action,
  .support-email,
  #submitBtn {
    width: 100%;
  }

  .account-stat strong {
    font-size: 21px;
  }
}


/* Public UX polish pass - 2026-05-09 */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

.site-nav,
.hero,
.pricing-section,
.public-footer,
.account-hero,
.account-dashboard,
.account-card,
.account-message {
  min-width: 0;
}

.hero-copy,
.auth-card,
.price-card,
.account-card,
.account-stat {
  min-width: 0;
}

.site-nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.nav-links a,
.plan-link,
.account-action,
.auth-help-link,
.center-option,
#submitBtn {
  min-height: 42px;
}

.hero-copy h1,
.account-hero h1,
.support-hero h1,
.section-heading h2,
.account-card h2,
.price-header h3 {
  overflow-wrap: anywhere;
}

.auth-card {
  width: 100%;
}

@media (max-width: 960px) {
  .site-nav {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding-top: 16px;
  }

  .nav-brand img {
    max-width: min(58vw, 270px);
  }

  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }

  .nav-links a {
    min-width: 0;
    border: 1px solid #263449;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.74);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    text-align: center;
  }

  .hero {
    width: min(760px, 100%);
    justify-items: stretch;
  }

  .auth-card {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .site-nav {
    width: calc(100% - 28px);
  }

  .nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links a:last-child {
    grid-column: 1 / -1;
  }

  .hero,
  .pricing-section {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .hero {
    gap: 20px;
  }

  .hero-copy h1,
  .account-hero h1,
  .support-hero h1 {
    font-size: 32px !important;
    line-height: 1.08;
  }

  .lead,
  .section-heading p {
    font-size: 16px;
  }

  .feature-strip span {
    flex: 1 1 100%;
    justify-content: center;
    text-align: center;
  }

  .auth-card,
  .price-card,
  .account-card {
    padding: 16px !important;
  }

  .center-picker {
    grid-template-columns: 1fr !important;
  }

  .center-option {
    align-items: flex-start;
  }

  .pricing-grid,
  .account-status-grid,
  .account-grid,
  .account-link-grid,
  .account-actions-row {
    grid-template-columns: 1fr !important;
  }

  .plan-link,
  .account-action,
  #submitBtn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .account-overview-actions,
  .account-card-topline {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .account-status-chip,
  .account-plan-chip {
    justify-content: center;
    width: 100%;
  }

  .public-footer {
    padding: 18px 14px !important;
  }

  .public-footer nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 8px 12px !important;
  }

  .public-footer a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 420px) {
  .nav-links,
  .public-footer nav {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .account-hero h1,
  .support-hero h1 {
    font-size: 28px !important;
  }

  .price {
    font-size: 32px;
  }
}



@media (min-width: 1101px) {
  .hero-copy {
    padding-top: 22px;
  }

  .auth-card {
    margin-top: 0;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 31px;
    line-height: 1.12;
  }

  .hero {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .lead {
    max-width: 100%;
  }

  .password-field input {
    padding-right: 78px;
  }
}


@media (max-width: 430px) {
  .page,
  .site-nav,
  .hero,
  .hero-copy,
  .auth-card,
  .feature-strip,
  .experience-section,
  .pricing-section {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .hero-copy h1 {
    max-width: calc(100vw - 28px);
    font-size: 29px;
    overflow-wrap: break-word;
  }

  .lead,
  .feature-strip span,
  .auth-card {
    max-width: calc(100vw - 28px) !important;
  }

  .feature-strip span {
    width: 100%;
    justify-content: center;
  }

  #togglePassword {
    right: 6px;
    min-width: 48px;
    padding: 0 8px;
    font-size: 14px;
  }
}


@media (max-width: 430px) {
  .hero-copy h1 {
    max-width: 340px !important;
    font-size: 28px !important;
    line-height: 1.12 !important;
  }

  .password-field #togglePassword {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
  }
}


@media (max-width: 430px) {
  .hero,
  .hero-copy,
  .lead,
  .feature-strip,
  .auth-card {
    width: 100% !important;
    max-width: 330px !important;
    justify-self: start !important;
  }

  .hero-copy h1 {
    max-width: 320px !important;
  }

  .auth-card input {
    max-width: 100%;
  }
}


@media (max-width: 520px) {
  .site-nav,
  .hero,
  .hero-copy,
  .lead,
  .feature-strip,
  .auth-card,
  .pricing-section,
  .experience-section {
    width: 100% !important;
    max-width: 340px !important;
    margin-left: 14px !important;
    margin-right: auto !important;
  }

  .site-nav {
    margin-top: 0 !important;
  }

  .nav-links,
  .feature-strip {
    max-width: 340px !important;
  }

  .hero-copy h1 {
    max-width: 320px !important;
    font-size: 28px !important;
    line-height: 1.12 !important;
  }

  .password-field #togglePassword {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
  }
}


.billing-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 1160px;
  margin: 20px auto 0;
}

.billing-trust-strip span {
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: linear-gradient(140deg, rgba(14, 165, 233, 0.14), rgba(34, 197, 94, 0.08)), rgba(15, 23, 42, 0.76);
  color: #dbeafe;
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .billing-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .billing-trust-strip {
    grid-template-columns: 1fr;
  }
}


/* Production support polish */
.support-promise-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.support-promise-row span {
  border: 1px solid #245b37;
  border-radius: 999px;
  background: rgba(19, 37, 27, 0.9);
  color: #bbf7d0;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  font-weight: 900;
  font-size: 13px;
}

.support-quick-panel {
  width: min(1180px, calc(100% - 40px));
  margin: 20px auto 0;
  border: 1px solid #28405e;
  border-radius: 8px;
  background: linear-gradient(135deg, #0b1220 0%, #0e1b2e 58%, #10261d 100%);
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1.4fr;
  gap: 16px;
  align-items: center;
}

.support-quick-panel h2,
.support-quick-panel p {
  margin: 0;
}

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

.support-quick-grid button {
  min-height: 46px;
  border-radius: 8px;
  background: #13251b;
  color: #bbf7d0;
  border: 1px solid #245b37;
  font-weight: 900;
}

.support-quick-grid button:hover {
  background: #1e3a2b;
}

.support-form-helper {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.35;
}

#supportCounter {
  white-space: nowrap;
  font-weight: 900;
  color: #93c5fd;
}

@media (max-width: 860px) {
  .support-quick-panel {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 1180px);
  }

  .support-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .support-quick-grid,
  .support-form-helper {
    grid-template-columns: 1fr;
    display: grid;
  }

  .support-promise-row span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* Daily polish 2026-05-13: richer color without adding clutter. */
.hero {
  background: linear-gradient(135deg, rgba(8,17,31,0.98) 0%, rgba(15,35,54,0.96) 52%, rgba(7,49,39,0.94) 100%);
}

.feature-strip span:nth-child(1),
.experience-career .experience-mark {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.42);
  color: #bbf7d0;
}

.feature-strip span:nth-child(2),
.experience-learning .experience-mark {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.42);
  color: #bae6fd;
}

.feature-strip span:nth-child(3),
.experience-support .experience-mark,
.experience-progress .experience-mark {
  background: rgba(167, 139, 250, 0.16);
  border-color: rgba(167, 139, 250, 0.42);
  color: #ddd6fe;
}

.experience-card,
.price-card,
.auth-card {
  border-top: 3px solid rgba(56, 189, 248, 0.72);
}

.experience-card:nth-child(2),
.price-card:nth-child(2) {
  border-top-color: rgba(34, 197, 94, 0.78);
}

.experience-card:nth-child(3),
.price-card:nth-child(3) {
  border-top-color: rgba(168, 85, 247, 0.78);
}

.selectable-price.selected {
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.38), 0 18px 42px rgba(8, 47, 73, 0.28);
}

.plan-link.primary,
.auth-card button[type="submit"] {
  background: linear-gradient(135deg, #22c55e 0%, #38bdf8 100%);
  color: #052e16;
}

/* Public homepage color polish 2026-05-16. */
body {
  background:
    linear-gradient(90deg, rgba(56, 189, 248, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(34, 197, 94, 0.032) 1px, transparent 1px),
    linear-gradient(135deg, #07111f 0%, #0d1f36 42%, #10261d 72%, #11142c 100%);
  background-size: 68px 68px, 68px 68px, auto;
}

.site-nav {
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(15, 35, 54, 0.9), rgba(8, 17, 31, 0.86)),
    linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(168, 85, 247, 0.08));
  box-shadow: 0 18px 56px rgba(2, 6, 23, 0.24);
}

.nav-links a {
  border-color: rgba(56, 189, 248, 0.24);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(14, 35, 54, 0.76));
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.nav-links a.active {
  border-color: rgba(34, 197, 94, 0.72);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(56, 189, 248, 0.13));
}

.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 0;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 17, 31, 0.98) 0%, rgba(13, 37, 60, 0.96) 46%, rgba(8, 58, 44, 0.92) 100%),
    linear-gradient(90deg, rgba(34, 197, 94, 0.12), rgba(56, 189, 248, 0.1), rgba(168, 85, 247, 0.08));
  box-shadow: 0 24px 90px rgba(2, 6, 23, 0.28);
}

.eyebrow {
  color: #a7f3d0;
}

.hero-copy h1 {
  color: #ffffff;
  text-shadow: 0 12px 36px rgba(2, 6, 23, 0.26);
}

.lead {
  color: #dbeafe;
}

.feature-strip span {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-card,
.price-card,
.experience-card {
  background:
    linear-gradient(180deg, rgba(15, 35, 54, 0.96), rgba(8, 17, 31, 0.95)),
    linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(34, 197, 94, 0.06));
  border-color: rgba(56, 189, 248, 0.24);
}

.auth-card {
  border-top-color: rgba(34, 197, 94, 0.78);
}

.toggle {
  background: rgba(8, 17, 31, 0.78);
  border-color: rgba(56, 189, 248, 0.22);
}

.toggle button.active {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
}

.center-option.active {
  border-color: rgba(34, 197, 94, 0.74);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(56, 189, 248, 0.08));
}

input {
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(5, 13, 25, 0.86);
}

input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.pricing-section {
  background:
    linear-gradient(180deg, transparent 0%, rgba(56, 189, 248, 0.045) 46%, transparent 100%);
}

.price-card:nth-child(1) {
  border-top-color: rgba(56, 189, 248, 0.78);
}

.price-card:nth-child(2) {
  border-top-color: rgba(34, 197, 94, 0.82);
}

.price-card:nth-child(3) {
  border-top-color: rgba(168, 85, 247, 0.82);
}

.badge,
#submitBtn,
.plan-link.primary,
.auth-card button[type="submit"] {
  background: linear-gradient(135deg, #22c55e 0%, #38bdf8 100%);
  color: #052e16;
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.16);
}

.experience-section {
  padding-top: 20px;
}

.experience-card::after {
  content: "";
  position: absolute;
  inset: 5px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.public-footer {
  border-color: rgba(56, 189, 248, 0.22);
}

@media (max-width: 640px) {
  .site-nav,
  .hero {
    width: min(100% - 20px, 1180px);
  }

  .site-nav {
    margin-top: 10px;
  }
}

/* Homepage scale polish: match the calmer 80% zoom feel at normal browser zoom. */
@media (min-width: 961px) {
  body.home-page .site-nav {
    width: min(1120px, calc(100% - 52px));
    padding-top: 12px;
  }

  body.home-page .nav-brand img {
    width: 330px;
    max-width: 330px;
  }

  body.home-page .nav-links {
    gap: 8px;
  }

  body.home-page .nav-links a {
    min-height: 34px;
    padding: 0 12px;
    font-size: 15px;
  }

  body.home-page .hero {
    width: min(1120px, calc(100% - 52px));
    margin: 18px auto 0;
    grid-template-columns: minmax(360px, 1fr) 350px;
    gap: 38px;
    padding: 54px 28px 48px;
  }

  body.home-page .hero-copy {
    padding-top: 10px;
  }

  body.home-page .hero-copy h1 {
    max-width: 620px;
    margin: 8px 0 14px;
    font-size: 44px;
    line-height: 1.07;
  }

  body.home-page .lead {
    max-width: 560px;
    font-size: 17px;
    line-height: 1.48;
  }

  body.home-page .feature-strip {
    gap: 8px;
    margin-top: 20px;
  }

  body.home-page .feature-strip span {
    min-height: 30px;
    padding: 0 12px;
    font-size: 14px;
  }

  body.home-page .auth-card {
    width: 350px;
    padding: 18px;
  }

  body.home-page .toggle {
    margin-bottom: 14px;
  }

  body.home-page .toggle button {
    height: 34px;
  }

  body.home-page .center-picker {
    gap: 8px;
    margin-bottom: 10px;
  }

  body.home-page .center-option {
    min-height: 56px;
    padding: 10px 12px;
  }

  body.home-page label {
    margin: 10px 0 6px;
  }

  body.home-page input {
    padding: 10px 12px;
  }

  body.home-page .password-field input {
    padding-right: 76px;
  }

  body.home-page .turnstile-slot {
    min-height: 62px !important;
    margin: 10px 0 10px !important;
  }

  body.home-page #submitBtn {
    min-height: 40px;
    margin-top: 12px;
  }
}

/* Mobile PWA header polish 2026-05-22: match the cleaner Bible Study menu rhythm. */
@media (max-width: 640px) {
  body.home-page .site-nav {
    width: min(100% - 20px, 1180px) !important;
    max-width: none !important;
    margin: 10px auto 0 !important;
    padding: 16px 18px 18px !important;
    align-items: flex-start !important;
    gap: 18px !important;
    border-color: rgba(56, 189, 248, 0.26) !important;
    background:
      linear-gradient(90deg, rgba(15, 35, 54, 0.96), rgba(8, 17, 31, 0.94)),
      linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(56, 189, 248, 0.08)) !important;
  }

  body.home-page .nav-brand {
    width: auto !important;
    max-width: 100% !important;
  }

  body.home-page .nav-brand img {
    width: min(275px, 100%) !important;
    max-width: min(275px, 100%) !important;
  }

  body.home-page .nav-links {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 12px 28px !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  body.home-page .nav-links a,
  body.home-page .nav-links a:last-child {
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 36px !important;
    grid-column: auto !important;
    padding: 5px 4px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #eaf6ff !important;
    font-size: clamp(18px, 5.3vw, 22px) !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    text-align: left !important;
  }

  body.home-page .nav-links a:hover,
  body.home-page .nav-links a:focus-visible,
  body.home-page .nav-links a[aria-current="page"],
  body.home-page .nav-links a.active {
    color: #86efac !important;
    text-decoration: underline;
    text-underline-offset: 5px;
  }
}

@media (max-width: 380px) {
  body.home-page .nav-links {
    gap: 10px 22px !important;
  }

  body.home-page .nav-links a,
  body.home-page .nav-links a:last-child {
    font-size: 18px !important;
  }
}

/* PWA phone alignment fix: keep hero, login, feature buttons, and Turnstile inside 360px screens. */
@media (max-width: 430px) {
  html,
  body,
  body.home-page,
  body.home-page .page {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body.home-page .site-nav,
  body.home-page .hero,
  body.home-page .pricing-section,
  body.home-page .experience-section,
  body.home-page .public-footer {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.home-page .hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: stretch !important;
    gap: 18px !important;
    padding: 20px 10px 24px !important;
  }

  body.home-page .hero-copy,
  body.home-page .lead,
  body.home-page .feature-strip,
  body.home-page .auth-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-self: stretch !important;
  }

  body.home-page .hero-copy h1 {
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(27px, 8vw, 30px) !important;
  }

  body.home-page .feature-strip {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  body.home-page .feature-strip span {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 38px !important;
    padding: 0 10px !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 14px !important;
  }

  body.home-page .auth-card {
    padding: 12px !important;
    overflow: hidden !important;
  }

  body.home-page .toggle,
  body.home-page .center-picker,
  body.home-page .center-option,
  body.home-page input,
  body.home-page .password-field,
  body.home-page #submitBtn {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.home-page .toggle button {
    min-width: 0 !important;
    font-size: 16px !important;
  }

  body.home-page .center-option {
    padding: 10px 12px !important;
  }

  body.home-page .password-field {
    position: relative !important;
    display: block !important;
  }

  body.home-page .password-field input {
    padding-right: 66px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 15px !important;
  }

  body.home-page .password-field #togglePassword {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    height: calc(100% - 12px) !important;
    padding: 0 !important;
    font-size: 14px !important;
  }

  body.home-page .turnstile-slot {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 72px !important;
    overflow: visible !important;
    justify-content: center !important;
  }

  body.home-page .turnstile-slot > div {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
  }

  body.home-page .turnstile-slot iframe {
    max-width: 100% !important;
  }
}

@media (max-width: 370px) {
  body.home-page .auth-card {
    padding: 10px !important;
  }

  body.home-page .turnstile-slot {
    min-height: 72px !important;
  }
}

/* Final phone alignment override: no clipped nav labels or oversized feature pills. */
@media (max-width: 430px) {
  body.home-page .site-nav {
    overflow: hidden !important;
  }

  body.home-page .nav-links {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px 14px !important;
  }

  body.home-page .nav-links a,
  body.home-page .nav-links a:last-child {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    font-size: clamp(17px, 4.9vw, 20px) !important;
  }

  body.home-page .feature-strip span {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    line-height: 1.2 !important;
  }

  body.home-page .auth-card,
  body.home-page .auth-card * {
    min-width: 0 !important;
  }
}

@media (max-width: 370px) {
  body.home-page .nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Safer PWA column: narrow enough for 360px Android browser chrome and app shells. */
@media (max-width: 640px) {
  body.home-page .site-nav,
  body.home-page .hero,
  body.home-page .pricing-section,
  body.home-page .experience-section,
  body.home-page .public-footer {
    width: min(calc(100vw - 22px), 330px) !important;
    max-width: min(calc(100vw - 22px), 330px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.home-page .nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px 16px !important;
  }

  body.home-page .nav-links a,
  body.home-page .nav-links a:last-child {
    font-size: 18px !important;
    justify-content: center !important;
  }

  body.home-page .nav-links a:last-child {
    grid-column: 1 / -1 !important;
  }

  body.home-page .hero {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  body.home-page .feature-strip span {
    font-size: 13px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

/* Public conversion polish 2026-05-26: stronger outcomes, product previews, and trust. */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-actions a,
.sticky-start-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
}

.hero-primary-action {
  background: linear-gradient(135deg, #22c55e, #38bdf8);
  color: #052e16;
  box-shadow: 0 16px 34px rgba(34, 197, 94, 0.16);
}

.hero-secondary-action {
  border: 1px solid rgba(125, 211, 252, 0.38);
  background: rgba(15, 23, 42, 0.72);
  color: #dbeafe;
}

.workspace-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.workspace-choice {
  min-height: 132px;
  border: 1px solid rgba(125, 211, 252, 0.25);
  border-radius: 10px;
  background: linear-gradient(150deg, rgba(15, 23, 42, 0.9), rgba(8, 17, 31, 0.82));
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: space-between;
  padding: 14px;
  text-decoration: none;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.workspace-choice:hover,
.workspace-choice:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.75);
  outline: none;
}

.workspace-career {
  background: linear-gradient(150deg, rgba(20, 83, 45, 0.62), rgba(15, 23, 42, 0.9));
}

.workspace-education {
  background: linear-gradient(150deg, rgba(14, 116, 144, 0.54), rgba(15, 23, 42, 0.9));
}

.workspace-tech {
  background: linear-gradient(150deg, rgba(67, 56, 202, 0.48), rgba(15, 23, 42, 0.9));
}

.workspace-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.09);
  color: #86efac;
  font-weight: 900;
  font-size: 13px;
}

.workspace-choice strong {
  font-size: 17px;
  line-height: 1.15;
}

.workspace-choice small {
  color: #cbd5e1;
  line-height: 1.35;
  font-weight: 700;
}

.proof-section,
.product-preview-section,
.founder-trust-section {
  width: min(1120px, calc(100% - 52px));
  margin: 24px auto 0;
}

.proof-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: stretch;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(22, 163, 74, 0.12), rgba(14, 165, 233, 0.08)),
    rgba(8, 17, 31, 0.78);
  padding: clamp(20px, 3vw, 30px);
}

.proof-copy h2,
.product-preview-section h2,
.founder-card h2 {
  margin: 8px 0 10px;
  color: #f8fafc;
}

.proof-copy p,
.product-preview-section p,
.founder-card p {
  color: #cbd5e1;
  line-height: 1.65;
}

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

.proof-grid article {
  border: 1px solid rgba(125, 211, 252, 0.25);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.78);
  padding: 14px;
}

.proof-grid strong {
  display: block;
  color: #86efac;
  font-size: 34px;
  line-height: 1;
}

.proof-grid span {
  display: block;
  margin-top: 8px;
  color: #dbeafe;
  font-weight: 800;
  line-height: 1.35;
}

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

.preview-card {
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 12px;
  background: rgba(8, 17, 31, 0.82);
  padding: 18px;
  min-height: 330px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

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

.preview-topline span {
  color: #86efac;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-topline strong {
  color: #dbeafe;
}

.preview-window,
.ticket-preview {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.74));
  padding: 16px;
}

.preview-title {
  color: #f8fafc !important;
  font-weight: 900;
  margin-top: 0;
}

.preview-window ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.preview-window li {
  border-left: 3px solid #22c55e;
  padding-left: 10px;
  color: #dbeafe;
  font-weight: 800;
}

.sample-flashcard {
  border-radius: 12px;
  background: linear-gradient(135deg, #dcfce7, #e0f2fe);
  color: #061525;
  padding: 18px;
  min-height: 245px;
}

.sample-flashcard > span {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  padding: 6px 10px;
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sample-flashcard h3 {
  margin: 16px 0;
  font-size: 25px;
}

.sample-picture {
  height: 92px;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.sample-picture span {
  width: 48px;
  height: 48px;
  border-radius: 50% 50% 46% 46%;
  background: linear-gradient(135deg, #f97316, #facc15);
  box-shadow: inset 0 -7px 0 rgba(15, 23, 42, 0.12);
}

.sample-flashcard p {
  margin: 14px 0 0;
  color: #0f172a;
  font-weight: 900;
}

.ticket-preview p {
  margin: 0 0 12px;
}

.ticket-meter {
  height: 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  overflow: hidden;
}

.ticket-meter span {
  display: block;
  width: 82%;
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #38bdf8);
}

.founder-trust-section {
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 12px;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 34%),
    rgba(15, 23, 42, 0.82);
  padding: clamp(18px, 3vw, 26px);
}

.founder-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.founder-card img {
  width: 118px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(56, 189, 248, 0.55);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.trust-list span,
.best-for {
  border: 1px solid rgba(134, 239, 172, 0.25);
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: #bbf7d0;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.best-for {
  display: inline-flex;
  margin: 2px 0 12px;
  text-align: left;
}

.sticky-start-cta {
  display: none;
}

@media (max-width: 980px) {
  .workspace-card-grid,
  .preview-grid,
  .trust-list {
    grid-template-columns: 1fr;
  }

  .proof-section,
  .founder-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  body.home-page .proof-section,
  body.home-page .product-preview-section,
  body.home-page .founder-trust-section {
    width: min(calc(100vw - 22px), 330px) !important;
    max-width: min(calc(100vw - 22px), 330px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.home-page .hero-copy h1 {
    font-size: clamp(28px, 9vw, 34px) !important;
  }

  body.home-page .hero-actions a {
    width: 100%;
  }

  body.home-page .proof-grid {
    grid-template-columns: 1fr;
  }

  body.home-page .preview-card {
    min-height: 0;
  }

  body.home-page .founder-card {
    text-align: left;
  }

  body.home-page .founder-card img {
    width: 92px;
  }

  body.home-page .sticky-start-cta {
    position: sticky;
    bottom: 12px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: min(calc(100vw - 22px), 330px);
    margin: 18px auto 0;
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 999px;
    background: rgba(8, 17, 31, 0.94);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    padding: 8px 8px 8px 14px;
  }

  body.home-page .sticky-start-cta span {
    color: #dbeafe;
    font-size: 13px;
    font-weight: 900;
  }

  body.home-page .sticky-start-cta a {
    min-height: 36px;
    padding: 0 13px;
    background: linear-gradient(135deg, #22c55e, #38bdf8);
    color: #052e16;
    white-space: nowrap;
  }
}
