/* Conversation Club site-wide chrome. The page-reset rules (font/background/sizing) are scoped to body.cc-site, used by the Welcome-controller public pages only -- Games/Manager keep their own look (own header files), untouched. The .cc-nav* rules below are NOT scoped to body.cc-site: the members area also uses them (members/header.php) for its nav band, while keeping members.css for everything below the nav. */
:root {
  --cc-butter: #FEE782;
  --cc-indigo-band: #3838B0;
  --cc-indigo-card: #5150C8;
  --cc-coral: #F37662;
  --cc-ink: #1A1A1A;
  --cc-bg-light: #FFFDF8;
}

/* restore the browser's real root sizing + base typeface on every Welcome-controller
   page — site-wide Bootstrap sets html{font-size:10px}, which silently shrinks every
   rem-based value here by 62.5%; :has() scopes the fix to pages that carry
   body.cc-site so Members/Games/Manager (own header files, no cc-site class) are untouched. */
html:has(body.cc-site) {
  font-size: 16px;
}

/* neutralize the site-wide Bootstrap container/background on every Welcome-controller page */
body.cc-site {
  background: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: var(--cc-ink);
}
body.cc-site > .container {
  background: none;
  padding: 0;
  max-width: none;
  width: 100%;
}

/* ---- compact nav band for every non-home Welcome page (about/contact/signup/login/
   checkout/reset/set-password) -- same cc-nav, no hero beneath it, so the butter field
   is just a top band rather than the continuous nav+hero wash the homepage has ---- */
.cc-hero-field--compact { padding-bottom: 0; }

/* ---- plain content wrapper for every non-home page, replacing the old
   semi-opaque map-background .container treatment ---- */
.cc-page {
  max-width: 48rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 1.5rem) clamp(3rem, 6vw, 4.5rem);
}
.cc-page h1, .cc-page h2, .cc-page h3, .cc-page legend {
  font-family: 'Bricolage Grotesque', sans-serif;
  color: var(--cc-ink);
}
.cc-page a { color: var(--cc-indigo-band); }
.cc-nav-cta.active { background: var(--cc-coral); }

.cc-hero-field, .cc-features, .cc-footer { box-sizing: border-box; }
.cc-hero-field *, .cc-features *, .cc-footer * { box-sizing: border-box; }

/* ---- nav + hero share one continuous yellow field ---- */
.cc-hero-field { background: var(--cc-butter); }
.cc-nav { padding: 0.9rem 1.5rem; }
.cc-nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.cc-nav-brand {
  /* the approved wordmark is a real extracted image, not a reproduced font --
     no font/weight approximation matches it exactly, so the actual artwork
     is used here instead. */
  display: inline-flex;
  align-items: center;
}
.cc-nav-brand img { display: block; }
.cc-nav-links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.cc-nav-links a {
  color: var(--cc-ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.cc-nav-links a.active, .cc-nav-links a:hover {
  border-bottom-color: var(--cc-indigo-band);
  color: var(--cc-indigo-band);
}
.cc-nav-cta {
  background: var(--cc-indigo-band);
  color: #fff !important;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
}

/* ---- mobile nav: collapse behind a toggle instead of letting brand/links/CTA
   flex-wrap onto their own stacked lines (reported: nav was taking 2-3 lines
   on a phone). Desktop (>639px) is untouched -- .cc-nav-menu is `display:
   contents` there, so its children (.cc-nav-links, .cc-nav-cta) are still
   direct flex items of .cc-nav-inner exactly as before. ---- */
.cc-nav-menu { display: contents; }
.cc-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
}
.cc-nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--cc-ink);
}
@media (max-width: 639px) {
  .cc-nav-toggle { display: flex; }
  .cc-nav-menu {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
    margin-top: 0.75rem;
  }
  .cc-nav-menu.cc-nav-open { display: flex; }
  .cc-nav-links { flex-direction: column; gap: 0.6rem; }
  .cc-nav-cta { text-align: center; }
}

/* explicit rather than inherited from body.cc-site, so the nav reads identically
   wherever it's used -- Welcome pages (body.cc-site) and members/header.php (no
   body.cc-site, keeps members.css for the page below the nav) alike */
.cc-nav { font-family: 'DM Sans', sans-serif; }

/* ---- members-area dropdowns (Learn Spanish submenu, Account submenu): same
   cc-nav visual language: Bootstrap's own dropdown-menu JS/positioning/.open
   toggle is kept as-is, only restyled to match ---- */
.cc-nav-links li.dropdown { position: relative; }
.cc-nav-dropdown-toggle,
.cc-nav-account-toggle {
  display: inline-flex;
  align-items: center;
  color: var(--cc-ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0.1rem;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.cc-nav-links li.dropdown.active > .cc-nav-dropdown-toggle,
.cc-nav-dropdown-toggle:hover,
.cc-nav-dropdown-toggle:focus,
.cc-nav-account-toggle:hover,
.cc-nav-account-toggle:focus {
  border-bottom-color: var(--cc-indigo-band);
  color: var(--cc-indigo-band);
}
.cc-nav-caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.35rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle;
}
.cc-nav-account {
  position: relative;
  display: flex;
  align-items: center;
}
.cc-nav .dropdown-menu {
  font-family: 'DM Sans', sans-serif;
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}
.cc-nav .dropdown-menu > li > a {
  color: var(--cc-ink);
  padding: 0.5rem 1.1rem;
  font-weight: 500;
}
.cc-nav .dropdown-menu > li > a:hover,
.cc-nav .dropdown-menu > li > a:focus {
  background: var(--cc-butter);
  color: var(--cc-ink);
}

/* ---- hero ---- */
.cc-hero { padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem) clamp(2.5rem, 7vw, 5rem); }
.cc-hero-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.cc-hero-copy h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.05;
  margin: 0 0 1.1rem;
  color: var(--cc-ink);
}
.cc-hero-copy p.lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 400;
  line-height: 1.6;
  margin: 0 0 1.75rem;
  max-width: 38rem;
  color: var(--cc-ink);
}
.cc-hero-cta {
  display: inline-block;
  background: var(--cc-indigo-band);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  text-decoration: none;
}
.cc-hero-cta:hover { background: #2c2c8c; }
/* when the homepage CTA class is reused inside .cc-page (about.php's expanded
   pattern), .cc-page a's generic link color would otherwise override this button's
   white text with the same indigo as its background -- scope back to white here. */
.cc-page a.cc-hero-cta { color: #fff; }
.cc-hero-art { min-width: 0; }
.cc-hero-art img { width: 100%; max-width: 560px; height: auto; display: block; margin: 0 auto; }
@media (max-width: 760px) {
  .cc-hero-inner { grid-template-columns: minmax(0, 1fr); }
}

/* ---- features: deep-indigo band, lighter-indigo rounded cards, yellow headings ---- */
.cc-features {
  background: var(--cc-indigo-band);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
}
.cc-features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  max-width: 72rem;
  margin: 0 auto;
}
.cc-features-card {
  min-width: 0;
  background: var(--cc-indigo-card);
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow-wrap: anywhere;
}
.cc-features-icon {
  /* real vector icons now (video/flashcards/articles svgs), not a glyph badge --
     they carry their own yellow/indigo/coral fills, so no background box */
  display: block;
  width: 3.5rem;
  height: 3.5rem;
}
.cc-features-heading {
  margin: 1.25rem 0 0.75rem;
  color: var(--cc-butter);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}
.cc-features-description { margin: 0; font-size: 1.125rem; line-height: 1.6; color: #fff; }
@media (max-width: 639px) {
  .cc-features-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- footer ---- */
.cc-footer {
  background: var(--cc-indigo-band);
  color: #fff;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.95rem;
}
.cc-footer a { color: var(--cc-butter); text-decoration: underline; }

/* ---- page content: forms (login, signup, contact, reset-password) ----
   Shared form treatment for login/contact/signup/reset — mirrors the
   pattern established on login.php, reused verbatim by the other bodies. */
.cc-form {
  background: var(--cc-bg-light);
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}
.cc-form-legend {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--cc-ink);
  border: none;
  margin: 0 0 0.75rem;
}
.cc-form-notice {
  background: rgba(254, 231, 130, 0.35);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}
.cc-form-notice p { margin: 0 0 0.5rem; }
.cc-form-notice p:last-child { margin-bottom: 0; }
.cc-form-notice a { text-decoration: underline; }
.cc-form-error {
  color: var(--cc-coral);
  font-weight: 600;
  margin: 0 0 1rem;
}
.cc-text-emphasis {
  color: var(--cc-indigo-band);
  font-weight: 600;
}
.cc-form-group { margin: 0 0 1.1rem; }
.cc-input {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(26, 26, 26, 0.2);
  border-radius: 0.6rem;
  box-sizing: border-box;
}
.cc-input:focus { outline: none; border-color: var(--cc-indigo-band); }
.cc-btn {
  display: inline-block;
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-align: center;
}
.cc-btn-primary { background: var(--cc-indigo-band); color: #fff; }
.cc-btn-primary:hover { background: #2c2c8c; }
.cc-form-footer { margin-top: 0.5rem; text-align: center; }
.cc-form-footer a { color: var(--cc-indigo-band); text-decoration: underline; }

/* ---- about/signup extensions: existing tokens only, no new colors ---- */
.cc-course-table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid #dfdbe8;
  border-radius: 18px;
  -webkit-overflow-scrolling: touch;
}
.cc-course-table {
  width: 100%;
  min-width: 784px;
  border-collapse: collapse;
  font-family: 'DM Sans', sans-serif;
  color: var(--cc-ink);
}
.cc-course-table th, .cc-course-table td {
  text-align: left;
  border-bottom: 1px solid rgba(26, 26, 26, 0.12);
  white-space: nowrap;
}
.cc-course-table th {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  color: #fff;
  background: var(--cc-indigo-band);
  padding: 14px;
}
.cc-course-table td {
  padding: 12px 14px;
}
.cc-course-table tbody tr:nth-child(even) { background: rgba(254, 231, 130, 0.25); }

.cc-about-portrait {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  float: left;
  margin: 0 1.25rem 0.75rem 0;
}
@media (max-width: 639px) {
  .cc-about-portrait { float: none; display: block; margin: 0 auto 1.25rem; }
}

.cc-signup-illustration {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin: 0 auto 1.25rem;
  float: left;
  margin-right: 1.5rem;
}
@media (max-width: 639px) {
  .cc-signup-illustration { float: none; margin: 0 auto 1.25rem; }
}


/* ---- login: glass/clay "high-five" illustrated panel treatment. Scoped entirely
   under cc-login-* names and the .cc-login-card modifier on top of the existing
   .cc-form/.cc-input/.cc-btn-primary classes, so about/contact/signup/reset-password
   (which share those same base classes) are completely unaffected. ---- */
.cc-login-stage {
  position: relative;
  isolation: isolate;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  background:
    radial-gradient(ellipse at 85% 20%, #fff7d7 0%, transparent 48%),
    radial-gradient(ellipse at 65% 90%, #e7b65f 0%, transparent 56%),
    var(--cc-butter);
  box-shadow: 0 24px 50px rgba(118, 91, 36, 0.13);
  border-radius: 62px 28px 64px 28px;
  padding: 38px;
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 30px;
}
.cc-login-stage::after {
  content: '';
  position: absolute;
  inset: 8% 1% 6% 43%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 90% 15%, #9fb6d8 0%, transparent 60%),
    radial-gradient(ellipse at 10% 90%, #e7b65f 0%, transparent 65%);
  filter: blur(12px);
}
.cc-login-scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding-top: 54px;
}
.cc-login-scene-art {
  width: 100%;
  height: auto;
  border-radius: 30px;
  display: block;
}
.cc-login-bubble {
  position: absolute;
  z-index: 1;
  top: 18%;
  padding: 13px 23px;
  border-radius: 50% 50% 45% 48%;
  font: 700 23px/1.15 'DM Sans', sans-serif;
  color: #fff;
  box-shadow:
    inset 0 3px 4px rgba(255, 255, 255, 0.208),
    inset 0 -4px 6px rgba(0, 0, 0, 0.08),
    0 8px 12px rgba(120, 85, 40, 0.145);
  white-space: nowrap;
}
.cc-login-bubble::after {
  content: '';
  position: absolute;
  bottom: -7px;
  width: 18px;
  height: 19px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 35% 100%);
}
.cc-login-bubble--hola { left: 3%; background: #a8431b; }
.cc-login-bubble--hola::after { right: 18px; }
.cc-login-bubble--hello { right: 0; top: 12%; background: #192844; }
.cc-login-bubble--hello::after { left: 18px; }

.cc-login-card {
  position: relative;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.42);
  border-right-color: rgba(255, 255, 255, 0.55);
  border-radius: 26px;
  padding: 36px;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.937),
    0 22px 36px -12px rgba(112, 87, 40, 0.333),
    0 4px 12px rgba(112, 87, 40, 0.07);
  overflow: hidden;
}
.cc-login-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 40%, rgba(255, 255, 255, 0.04));
  z-index: -1;
}
.cc-login-card .cc-form-legend,
.cc-login-card p:not(.cc-form-error),
.cc-login-card .cc-form-footer a {
  color: #192844;
}
.cc-login-card .cc-form-footer {
  font-size: 15px;
  line-height: 20px;
  margin-top: 19px;
}
.cc-login-card .cc-form-group {
  margin-bottom: 17px;
}
.cc-login-card .cc-form-legend {
  margin-bottom: 16px;
  font-size: 34px;
  line-height: 1.12;
}
.cc-login-card p:not(.cc-form-error) {
  line-height: 1.5;
  font-size: 16px;
  margin: 0 0 26px;
}
.cc-login-card .cc-input {
  height: 50px;
  background: var(--cc-bg-light);
  border: 1px solid #fff;
  box-shadow: inset 0 0 0 1px #c8ccd1, inset 0 2px 4px rgba(163, 170, 180, 0.28);
  padding: 14px 16px;
  border-radius: 10px;
  color: #192844;
}
.cc-login-card .cc-input::placeholder {
  color: #192844;
  opacity: 1;
}
.cc-login-card .cc-btn-primary {
  position: relative;
  padding: 17px 16px;
  font-size: 1rem;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.07), transparent),
    linear-gradient(180deg, #5892ff 0%, #2769f0 7%, #1b5eec 16%, #1556e8 35%, #114fe2 60%, #0e47db 90%, #1851dd 96%, #3b73eb 100%);
  border: 0;
  box-shadow: 0 7px 12px rgba(36, 59, 122, 0.28);
  text-shadow: 0 1px 1px rgba(0, 0, 80, 0.25);
}
.cc-login-card .cc-btn-primary:hover {
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.05), transparent),
    linear-gradient(180deg, #3f72d6 0%, #1f58d0 16%, #154ec9 35%, #0c3ebc 60%, #0937b5 90%, #1240b8 100%);
}

/* Button shape tuned to the client's approved Grok reference crop (button-direction.png,
   "Proposed live-text CSS") -- height, radius, type size and the text-indent/padding-top
   nudge were fit by minimizing pixel error against that one static image at desktop width
   for the literal "Sign in!" label. Those sub-pixel values only hold for this exact text at
   this exact size, so they're scoped to the width they were measured at; phone keeps its own
   geometry above (padding: 15px 16px) with just the flatter color/shadow applied. */
@media (min-width: 640px) {
  .cc-login-card .cc-btn-primary {
    min-height: 62.651px;
    padding: 0 16px;
    border-radius: 19.006px;
    font-size: 21.118px;
    line-height: 1;
    text-indent: -4.224px;
    padding-top: 2.816px;
    font-weight: 700;
  }
}

/* widen the shared page wrapper only on the page that carries the login stage --
   same :has()-scoping technique already used above for body.cc-home's font-size fix.
   .cc-page's own clamp() horizontal padding would otherwise eat into the stage's
   1040px budget (992px measured instead of 1040px) -- override the padding too,
   sized so the stage still reaches its own max-width exactly, matching the approved
   target's own main{padding:64px 32px 72px} / mobile main{padding:26px 16px 34px}. */
main.cc-page:has(.cc-login-stage) {
  max-width: 1104px; /* 1040 (stage) + 32px padding each side */
  padding-left: 32px;
  padding-right: 32px;
}

@media (max-width: 639px) {
  main.cc-page:has(.cc-login-stage) {
    padding-left: 16px;
    padding-right: 16px;
  }
  .cc-login-stage {
    display: block;
    padding: 0 10px 14px;
    gap: 0;
    border-radius: 30px 16px 30px 16px;
  }
  .cc-login-stage::after { inset: 23% 0 0 0; }
  .cc-login-scene {
    height: 192px;
    padding-top: 30px;
    overflow: visible;
  }
  .cc-login-scene-art {
    width: auto;
    height: 160px;
    max-width: 100%;
    border-radius: 22px;
  }
  .cc-login-bubble {
    font-size: 17px;
    padding: 9px 16px;
    top: 14px;
  }
  .cc-login-bubble--hola { left: 11px; }
  .cc-login-bubble--hello { right: 8px; top: 5px; }
  .cc-login-card {
    padding: 24px 20px;
    border-radius: 24px;
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.937),
      0 15px 23px -10px rgba(112, 87, 40, 0.333);
  }
  .cc-login-card .cc-form-legend { font-size: 28px; margin-bottom: 12px; line-height: 1.12; }
  .cc-login-card p:not(.cc-form-error) { font-size: 15px; margin-bottom: 20px; }
  .cc-login-card .cc-input { height: 47px; font-size: 15px; padding: 13px 14px; border-radius: 10px; }
  .cc-login-card .cc-form-group { margin-bottom: 14px; }
  .cc-login-card .cc-btn-primary { padding: 15px 16px; }
  .cc-login-card .cc-form-footer { margin-top: 17px; }
}

/* ---- reset-password: same glass/clay grid treatment as login (.cc-login-*),
   scoped entirely under cc-reset-* names so about/contact/signup (which share
   the base .cc-form/.cc-input/.cc-btn-primary classes) are unaffected. Card,
   button and grid proportions are deliberately identical to login's own
   --  the two real differences are the illustration (feathered/masked into
   the stage background instead of a hard-edged rectangle, per client
   feedback) and a single Spanish thought bubble instead of the hola/hello
   pair. ---- */
.cc-reset-stage {
  position: relative;
  isolation: isolate;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  background:
    radial-gradient(ellipse at 85% 20%, #fff7d7 0%, transparent 48%),
    radial-gradient(ellipse at 65% 90%, #e7b65f 0%, transparent 56%),
    var(--cc-butter);
  box-shadow: 0 24px 50px rgba(118, 91, 36, 0.13);
  border-radius: 62px 28px 64px 28px;
  padding: 38px;
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 30px;
}
.cc-reset-stage::after {
  content: '';
  position: absolute;
  inset: 8% 1% 6% 43%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 90% 15%, #9fb6d8 0%, transparent 60%),
    radial-gradient(ellipse at 10% 90%, #e7b65f 0%, transparent 65%);
  filter: blur(12px);
}
.cc-reset-scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 54px 0 0;
}
.cc-reset-scene-art {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  /* feather the illustration into the stage background so its edges blend
     instead of cutting off sharp -- this is the fix for the client's "sharp
     cut off" feedback on the earlier direction. */
  mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 55%, transparent 100%);
}
.cc-reset-thought {
  position: absolute;
  z-index: 2;
  top: 5%;
  right: 0;
  color: #fff;
  background: #192844;
  border-radius: 45% 48% 44% 46%;
  padding: 13px 20px;
  font: 700 18px/1.2 'DM Sans', sans-serif;
  text-align: center;
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.145),
    0 6px 12px rgba(25, 40, 68, 0.125);
}
.cc-reset-thought::after,
.cc-reset-thought::before {
  content: '';
  position: absolute;
  background: #192844;
  border-radius: 50%;
}
.cc-reset-thought::after { width: 10px; height: 10px; left: 12px; bottom: -10px; }
.cc-reset-thought::before { width: 5px; height: 5px; left: 3px; bottom: -18px; }

.cc-reset-card {
  position: relative;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.42);
  border-right-color: rgba(255, 255, 255, 0.55);
  border-radius: 26px;
  padding: 36px;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.937),
    0 22px 36px -12px rgba(112, 87, 40, 0.333),
    0 4px 12px rgba(112, 87, 40, 0.07);
  overflow: hidden;
}
.cc-reset-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 40%, rgba(255, 255, 255, 0.04));
  z-index: -1;
}
.cc-reset-card .cc-form-legend,
.cc-reset-card p:not(.cc-form-error),
.cc-reset-card .cc-form-footer a {
  color: #192844;
}
.cc-reset-card .cc-form-footer {
  font-size: 15px;
  line-height: 20px;
  margin-top: 19px;
}
.cc-reset-card .cc-form-group {
  margin-bottom: 17px;
}
.cc-reset-card .cc-form-legend {
  margin-bottom: 16px;
  font-size: 34px;
  line-height: 1.12;
}
.cc-reset-card p:not(.cc-form-error) {
  line-height: 1.5;
  font-size: 16px;
  margin: 0 0 26px;
}
/* .cc-form-notice is also a <p>, so the rule above would otherwise override
   its own font-size/margin -- keep its shared sizing (inherited navy color
   from the rule above is fine and matches the card's text treatment). */
.cc-reset-card .cc-form-notice {
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
}
.cc-reset-card .cc-input {
  height: 50px;
  background: var(--cc-bg-light);
  border: 1px solid #fff;
  box-shadow: inset 0 0 0 1px #c8ccd1, inset 0 2px 4px rgba(163, 170, 180, 0.28);
  padding: 14px 16px;
  border-radius: 10px;
  color: #192844;
}
.cc-reset-card .cc-input::placeholder {
  color: #192844;
  opacity: 1;
}
.cc-reset-card .cc-btn-primary {
  position: relative;
  padding: 17px 16px;
  font-size: 1rem;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.07), transparent),
    linear-gradient(180deg, #5892ff 0%, #2769f0 7%, #1b5eec 16%, #1556e8 35%, #114fe2 60%, #0e47db 90%, #1851dd 96%, #3b73eb 100%);
  border: 0;
  box-shadow: 0 7px 12px rgba(36, 59, 122, 0.28);
  text-shadow: 0 1px 1px rgba(0, 0, 80, 0.25);
}
.cc-reset-card .cc-btn-primary:hover {
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.05), transparent),
    linear-gradient(180deg, #3f72d6 0%, #1f58d0 16%, #154ec9 35%, #0c3ebc 60%, #0937b5 90%, #1240b8 100%);
}

/* Button shape tuned to the client's approved Grok reference crop (button-direction.png,
   "Proposed live-text CSS") -- height, radius, type size and the text-indent/padding-top
   nudge were fit by minimizing pixel error against that one static image at desktop width
   for the literal "Sign in!" label. Those sub-pixel values only hold for this exact text at
   this exact size, so they're scoped to the width they were measured at; phone keeps its own
   geometry above (padding: 15px 16px) with just the flatter color/shadow applied. */
@media (min-width: 640px) {
  .cc-reset-card .cc-btn-primary {
    min-height: 62.651px;
    padding: 0 16px;
    border-radius: 19.006px;
    font-size: 21.118px;
    line-height: 1;
    text-indent: -4.224px;
    padding-top: 2.816px;
    font-weight: 700;
  }
}

/* widen the shared page wrapper only on the page that carries the reset stage --
   same :has()-scoping technique already used for the login stage above. */
main.cc-page:has(.cc-reset-stage) {
  max-width: 1104px; /* 1040 (stage) + 32px padding each side */
  padding-left: 32px;
  padding-right: 32px;
}

@media (max-width: 639px) {
  main.cc-page:has(.cc-reset-stage) {
    padding-left: 16px;
    padding-right: 16px;
  }
  .cc-reset-stage {
    display: block;
    padding: 0 10px 14px;
    gap: 0;
    border-radius: 30px 16px 30px 16px;
  }
  .cc-reset-stage::after { inset: 23% 0 0 0; }
  .cc-reset-scene {
    height: 192px;
    padding-top: 30px;
    overflow: visible;
  }
  .cc-reset-scene-art {
    width: auto;
    height: 160px;
    max-width: 100%;
  }
  .cc-reset-thought {
    font-size: 14px;
    padding: 10px 14px;
    top: 5px;
    right: 0;
  }
  .cc-reset-card {
    padding: 24px 20px;
    border-radius: 24px;
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.937),
      0 15px 23px -10px rgba(112, 87, 40, 0.333);
  }
  .cc-reset-card .cc-form-legend { font-size: 28px; margin-bottom: 12px; line-height: 1.12; }
  .cc-reset-card p:not(.cc-form-error) { font-size: 15px; margin-bottom: 20px; }
  .cc-reset-card .cc-form-notice { font-size: 0.95rem; margin-bottom: 1.5rem; }
  .cc-reset-card .cc-input { height: 47px; font-size: 15px; padding: 13px 14px; border-radius: 10px; }
  .cc-reset-card .cc-form-group { margin-bottom: 14px; }
  .cc-reset-card .cc-btn-primary { padding: 15px 16px; }
  .cc-reset-card .cc-form-footer { margin-top: 17px; }
}

/* ---- about: illustrated glass-card interior treatment, matching the
   approved design direction. Scoped entirely under .cc-about-page so
   contact/signup/login/reset-password (which share the base .cc-form/
   .cc-input/.cc-btn-primary/.cc-course-table/.cc-about-portrait classes) are
   unaffected. Same :has() widening technique already used for login/reset. ---- */
main.cc-page:has(.cc-about-page) {
  max-width: 1184px;
  padding: 48px 32px 80px;
  margin: 0 auto;
}
.cc-about-page, .cc-about-page * { box-sizing: border-box; }
/* matches the approved direction's body-text baseline (16px/1.65, 20px paragraph spacing);
   headings/legends keep their own explicit line-height/margin and are unaffected --
   this only reaches plain paragraphs, which were otherwise falling back to the
   legacy Bootstrap base (10px p margin, browser-default line-height) */
.cc-about-page { line-height: 1.65; color: #192844; }
.cc-about-page p { margin: 0 0 20px; }
.cc-about-page .glass {
  background: linear-gradient(135deg, #ffffffad, #ffffff66);
  border: 2px solid #fffffff0;
  border-right-color: #ffffff88;
  border-bottom-color: #ffffff66;
  box-shadow: inset 0 1px 1px #fff, 0 18px 32px -16px #70572855;
  backdrop-filter: blur(22px) saturate(1.15);
  border-radius: 28px;
  padding: 32px;
}
.cc-about-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 32px;
  align-items: center;
  padding: 34px;
  background: radial-gradient(ellipse at 80% 10%, #fff5c3, transparent 65%), var(--cc-butter);
  border-radius: 56px 24px 56px 24px;
  box-shadow: 0 20px 48px #79562b18;
  margin-bottom: 44px;
}
.cc-about-hero > .glass {
  background: linear-gradient(135deg, #ffffffb8, #ffffff70) !important;
  border: 2px solid #fffffff0 !important;
  border-right-color: #ffffff88 !important;
  border-bottom-color: #ffffff66 !important;
  box-shadow: inset 0 1px 1px #fff, 0 18px 32px -16px #70572855 !important;
  padding: 32px !important;
  margin: 0;
  min-width: 0;
}
.cc-about-hero .cc-form { background: none; border: 0; box-shadow: none; padding: 0; }
.cc-about-hero .cc-form-legend { padding: 0 2px; }
.cc-about-art { margin: 0; position: relative; min-width: 0; display: flex; align-items: center; justify-content: center; }
.cc-about-art img { width: 100%; height: auto; display: block; mask-image: radial-gradient(ellipse closest-side, #000 72%, transparent 100%); }
.cc-about-art::before {
  content: '';
  position: absolute;
  inset: 14% 6%;
  background: #e8b25d66;
  filter: blur(30px);
  z-index: -1;
  border-radius: 50%;
}
.cc-about-chapter {
  background: linear-gradient(135deg, #ffffffad, #ffffff66);
  border: 2px solid #fffffff0;
  border-right-color: #ffffff88;
  border-bottom-color: #ffffff66;
  box-shadow: inset 0 1px 1px #fff, 0 18px 32px -16px #70572855;
  backdrop-filter: blur(22px) saturate(1.15);
  border-radius: 28px;
  margin: 0 0 26px;
  padding: 36px;
}
.cc-about-chapter > .cc-form {
  background: #fffdf8;
  border: 1px solid #ffffffc9;
  border-radius: 22px;
  padding: 24px;
  margin-top: 20px;
}
.cc-about-chapter > h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 29px;
  line-height: 1.12;
  margin: 0 0 20px;
  color: #192844;
}
.cc-about-chapter:nth-of-type(3n) { background: #f4f1ff; border-color: #fff; }
.cc-about-chapter--step { border-left: 8px solid var(--cc-coral); padding-left: 32px; }
/* two classes, same reason as the curriculum/testimonials fixes below: outranks
   :nth-of-type(3n) above (same specificity, declared later) whenever this chapter
   lands on a 3n position and loses its coral border to the alternating-background rule */
.cc-about-chapter.cc-about-chapter--step { border-left-color: #f37662; }
.cc-about-chapter--step h3 { display: flex; gap: 18px; align-items: center; }
.cc-about-step-icon { width: 54px; height: 54px; object-fit: contain; flex: none; }
.cc-about-chapter--quote { background: #f5f0ff !important; border-color: #fff !important; }
.cc-about-quote-intro { font-weight: 700; margin-bottom: 0.75rem; }
/* two classes to outrank :nth-of-type(3n) above (same specificity, declared later) --
   a plain single-class rule here lost to the alternating-background rule whenever
   curriculum happened to land on a 3n position */
.cc-about-chapter.cc-about-chapter--curriculum { background: #fffdf8; }
/* the shared .cc-form-group class (also on these member-quote cards) adds a 1.1rem
   bottom margin; the direction's curriculum-chapter cards carry none */
.cc-about-chapter--curriculum .cc-form { margin: 0; }
/* two classes, same reason as the curriculum fix above: merging member-quotes out of its
   own section shifted every later chapter's ordinal by one, so testimonials can now land
   on a 3n position and lose its indigo background to the alternating-lavender rule */
.cc-about-chapter.cc-about-chapter--testimonials { background: var(--cc-indigo-band); color: #fff; }
.cc-about-chapter--testimonials > h3, .cc-about-chapter--testimonials > p { color: #fff; }
.cc-about-chapter--testimonials .cc-form { background: #f8f4ff; color: #192844; box-shadow: 0 8px 22px #12174d22; }
.cc-about-chapter--testimonials .cc-about-portrait { border: 4px solid var(--cc-butter); }
/* the shared .cc-form-group class (also on this element) adds a 1.1rem bottom margin;
   the direction's testimonial cards carry none */
.cc-about-chapter--testimonials > .cc-form { margin: 20px 0 0; }

@media (max-width: 639px) {
  main.cc-page:has(.cc-about-page) { padding: 24px 16px 44px; }
  .cc-about-hero {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 12px;
    border-radius: 32px 16px 32px 16px;
    margin-bottom: 26px;
  }
  .cc-about-hero > .glass { width: 100%; padding: 24px 20px !important; border-radius: 24px; }
  .cc-about-art { width: 100%; max-width: 300px; align-self: center; order: -1; }
  .cc-about-art img { max-height: 214px; object-fit: contain; }
  .cc-about-chapter { padding: 24px 20px; border-radius: 24px; margin-bottom: 20px; }
  .cc-about-chapter h3 { font-size: 25px; }
  .cc-about-chapter--step { padding-left: 20px; }
  .cc-about-step-icon { width: 38px; height: 38px; }
}
/* About's "Start Studying Now" CTAs reuse the homepage's .cc-hero-cta class name, but the
   approved direction gives them the same gradient/shadow button used on Login/Reset/Contact,
   not the homepage's flat indigo pill -- scoped so welcome.php's own hero CTA is untouched */
.cc-about-page .cc-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(110deg, #ffffff12, transparent), linear-gradient(#5892ff, #1b5eec 16%, #114fe2 60%, #0e47db 90%, #3b73eb);
  box-shadow: 0 7px 12px #243b7a47;
  padding: 13px 24px;
  margin: 10px 0;
  font: 700 17px/1.3 'DM Sans', sans-serif;
  color: #fff;
}

/* ---- signup: illustrated glass-card interior treatment, matching the
   approved design direction. Scoped entirely under .cc-signup-page so
   about/contact/login/reset-password (which share the base .cc-form/
   .cc-input/.cc-btn-primary/.cc-signup-illustration classes) are
   unaffected. Same :has() widening technique already used for login/reset/about. ---- */
main.cc-page:has(.cc-signup-page) {
  max-width: 1184px;
  padding: 48px 32px 80px;
  margin: 0 auto;
}
.cc-signup-page, .cc-signup-page * { box-sizing: border-box; }
/* matches the approved direction's body-text baseline (16px/1.65, 20px paragraph spacing);
   headings/legends keep their own explicit line-height/margin and are unaffected --
   this only reaches plain paragraphs, which were otherwise falling back to the
   legacy Bootstrap base (10px p margin, browser-default line-height) */
.cc-signup-page { line-height: 1.65; color: #192844; }
.cc-signup-page .cc-form-legend { padding: 0 2px; }
.cc-signup-page p { margin: 0 0 20px; }
.cc-signup-page .glass {
  background: linear-gradient(135deg, #ffffffad, #ffffff66);
  border: 2px solid #fffffff0;
  border-right-color: #ffffff88;
  border-bottom-color: #ffffff66;
  box-shadow: inset 0 1px 1px #fff, 0 18px 32px -16px #70572855;
  backdrop-filter: blur(22px) saturate(1.15);
  border-radius: 28px;
  padding: 32px;
}
.cc-signup-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 34px;
  background: radial-gradient(ellipse at 80% 10%, #fff5c3, transparent 65%), var(--cc-butter);
  border-radius: 56px 24px 56px 24px;
  box-shadow: 0 20px 48px #79562b18;
  margin-bottom: 44px;
}
.cc-signup-hero .hero-copy > .cc-form-legend { font-size: 43px; margin: 0 0 24px; }
.cc-signup-hero .hero-copy > .cc-form { padding: 0; background: none; border: 0; box-shadow: none; }
.cc-signup-hero .hero-copy .cc-form-group { margin: 0; }
.cc-signup-hero .checkout {
  background: #fffdf8d9;
  border: 1px solid #fff;
  border-radius: 20px;
  padding: 20px;
  margin-top: 24px;
}
.cc-signup-hero .checkout .stripe-button-el {
  width: 100%;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(110deg, #ffffff12, transparent), linear-gradient(#5892ff, #1b5eec 16%, #114fe2 60%, #0e47db 90%, #3b73eb);
  box-shadow: 0 7px 12px #243b7a47;
  padding: 13px 24px;
  font: 700 17px/1.3 'DM Sans', sans-serif;
  color: #fff;
}
/* Stripe.js sets min-height:30px as an INLINE style on this span -- only an !important
   author rule can beat that, a plain declaration here would lose to it */
.cc-signup-hero .checkout .stripe-button-el span {
  display: inline;
  height: auto;
  min-height: 0 !important;
  font: inherit;
  color: inherit;
  background: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.cc-signup-hero .checkout .cc-text-emphasis { display: block; color: #192844; font-weight: 700; }
.cc-signup-art { margin: 0; position: relative; min-width: 0; display: flex; align-items: center; justify-content: center; }
.cc-signup-art img { width: 100%; height: auto; display: block; mask-image: radial-gradient(ellipse closest-side, #000 72%, transparent 100%); }
.cc-signup-art::before {
  content: '';
  position: absolute;
  inset: 14% 6%;
  background: #e8b25d66;
  filter: blur(30px);
  z-index: -1;
  border-radius: 50%;
}
.product-preview { display: flex; justify-content: center; padding: 26px; background: #f4f1ff; border-radius: 28px; margin: 28px 0; }
.product-preview .cc-signup-illustration { max-width: 440px; width: 100%; height: auto; float: none; margin: 0; }
.benefit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 32px; }
.benefit-grid .benefit {
  margin: 0;
  background: linear-gradient(135deg, #ffffffad, #ffffff66);
  border: 2px solid #fffffff0;
  border-right-color: #ffffff88;
  border-bottom-color: #ffffff66;
  box-shadow: inset 0 1px 1px #fff, 0 18px 32px -16px #70572855;
  backdrop-filter: blur(22px) saturate(1.15);
  border-radius: 28px;
  padding: 32px;
}
.benefit-grid .benefit:nth-child(2n) { background: #efebff; }

@media (max-width: 639px) {
  main.cc-page:has(.cc-signup-page) { padding: 24px 16px 44px; }
  .cc-signup-hero {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 12px;
    border-radius: 32px 16px 32px 16px;
    margin-bottom: 26px;
  }
  .cc-signup-hero .glass { width: 100%; padding: 24px 20px; border-radius: 24px; }
  .cc-signup-hero .hero-copy .cc-form-legend { font-size: 31px; }
  .cc-signup-art { width: 100%; max-width: 310px; align-self: center; order: -1; }
  .cc-signup-art img { max-height: 214px; object-fit: contain; }
  .benefit-grid { grid-template-columns: 1fr; gap: 18px; }
  .benefit-grid .benefit { padding: 24px; }
  .product-preview { padding: 18px; }
}
