/* ============================================================
   CurryStudio — Common Stylesheet
   Shared across all pages
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design tokens ── */
:root {
  --teal:   #00CEC9;
  --purple: #6C5CE7;
  --pink:   #FD79A8;
  --gold:   #FDCB6E;
  --black:  #1A1A1A;
  --mid:    #666;
  --subtle: #999;
  --border: rgba(0,0,0,0.08);
  --white:  #fff;
  --surface:#F9F8F6;

  --grad-brand:    linear-gradient(90deg,  #00CEC9 0%, #6C5CE7 50%, #FD79A8 100%);
  --grad-diagonal: linear-gradient(135deg, #6C5CE7 0%, #FD79A8 100%);

  --font-display: Optima, Candara, 'Gill Sans', 'Segoe UI', sans-serif;
  --font-body:    'Nunito', sans-serif;

  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  16px;
  --sp-lg:  24px;
  --sp-xl:  40px;
  --sp-2xl: 64px;
  --sp-3xl: 96px;

  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-pill: 100px;

  --rail:    56px;
  --bot-nav: 56px;
}

/* ── Base ── */
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--white); color: var(--black); }

/* ── Layout utility ── */
.page { position: relative; z-index: 1; }

/* ── Logo ─────────────────────────────────────────────────── */
.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.5px;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}
/* span variants used by most pages */
.logo .lc        { color: var(--black); }
.logo .ls {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* legacy variants used by landing page */
.logo-curry  { color: var(--black); }
.logo-studio {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Public top navigation ────────────────────────────────── */
/* nav.public-nav  = explicit class on <nav> (most pages)     */
/* .nav            = landing page uses class="nav" on <nav>   */
nav.public-nav, .nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  height: 60px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

/* ── Nav logo (landing page variant) ─────────────────────── */
.nav-logo {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.5px;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}
.nav-logo .lc { color: var(--black); }
.nav-logo .ls {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links   { display: flex; align-items: center; gap: 4px; }

.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--mid);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-link:hover  { background: rgba(0,0,0,.05); color: var(--black); }
.nav-link.active { color: var(--purple); }

.nav-cta {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  background: var(--black);
  border: none;
  padding: 9px 20px;
  border-radius: var(--r-sm);
  cursor: pointer;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
  white-space: nowrap;
}
.nav-cta:hover { opacity: .82; transform: translateY(-1px); }

/* ── Google sign-in button ────────────────────────────────── */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-md);
  width: 100%;
  padding: 15px var(--sp-xl);
  border-radius: var(--r-md);
  border: 1.5px solid rgba(0,0,0,.11);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  cursor: pointer;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  transition: box-shadow .2s, transform .15s, border-color .2s;
}
.btn-google:hover { box-shadow: 0 6px 28px rgba(0,0,0,.12); transform: translateY(-2px); border-color: rgba(0,0,0,.18); }
.btn-google svg   { width: 20px; height: 20px; flex-shrink: 0; }

/* ── OR divider (sign-in flows) ───────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  color: #ddd;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
}
.divider::before,
.divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-md) var(--sp-lg);
  flex-direction: column;
  gap: 4px;
  z-index: 99;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.nav-drawer.open              { display: flex; }
.nav-drawer .nav-link         { padding: 12px var(--sp-md); font-size: 15px; }
.nav-drawer .nav-cta          { text-align: center; padding: 13px; border-radius: var(--r-md); margin-top: var(--sp-sm); }

/* ── Rail navigation (app pages) ──────────────────────────── */
.rail {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--rail);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--sp-md) 0 var(--sp-lg);
  gap: 2px;
  background: var(--white);
  border-right: 1px solid var(--border);
}

.rail-logo {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -.5px;
  text-decoration: none;
  line-height: 1;
  margin-bottom: var(--sp-md);
}
.rail-logo .lc { color: var(--black); }
.rail-logo .ls {
  background: var(--grad-diagonal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rb {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--subtle);
  position: relative;
  transition: background .15s, color .15s;
}
.rb:hover     { background: var(--surface); color: var(--black); }
.rb.on        { background: rgba(108,92,231,.1); color: var(--purple); }
.rb svg       { width: 18px; height: 18px; }

/* Tooltip */
.rb::after,
.rav::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  z-index: 999;
}
.rb:hover::after,
.rav:hover::after { opacity: 1; }

.rail-sp  { flex: 1; }
.rail-div { width: 24px; height: 1px; background: var(--border); margin: 6px 0; }

.rav {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-diagonal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--white);
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  transition: border-color .15s;
}
.rav:hover { border-color: var(--purple); }

/* ── App layout shell ─────────────────────────────────────── */
.main {
  position: fixed;
  inset: 0;
  left: var(--rail);
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.topbar {
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 var(--sp-xl);
  border-bottom: 1px solid var(--border);
  background: var(--white);
  flex-shrink: 0;
  gap: var(--sp-md);
}

.topbar-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--subtle);
  text-decoration: none;
  padding: 6px var(--sp-sm);
  border-radius: var(--r-sm);
  transition: background .15s, color .15s;
}
.topbar-back:hover { background: var(--surface); color: var(--black); }
.topbar-back svg   { width: 15px; height: 15px; }

.topbar-divider { width: 1px; height: 18px; background: var(--border); }
.topbar-title   { font-size: 14px; font-weight: 700; color: var(--black); }
.topbar-sp      { flex: 1; }

.content-area { flex: 1; overflow: hidden; display: flex; }

/* Sub-navigation sidebar (settings/account/billing) */
.snav {
  width: 220px;
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: var(--sp-xl) var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}
.snav::-webkit-scrollbar { display: none; }

.snav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #ccc;
  padding: var(--sp-md) var(--sp-sm) var(--sp-sm);
  margin-top: var(--sp-sm);
}
.snav-label:first-child { margin-top: 0; }

.snav-item {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 9px var(--sp-md);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.snav-item:hover        { background: var(--surface); color: var(--black); }
.snav-item.active       { background: rgba(108,92,231,.08); color: var(--purple); font-weight: 700; }
.snav-item svg          { width: 16px; height: 16px; flex-shrink: 0; }
.snav-item.danger       { color: #E74C3C; }
.snav-item.danger:hover { background: rgba(231,76,60,.06); }

.snav-divider { height: 1px; background: var(--border); margin: var(--sp-sm); }

/* Main scroll area */
.page-scroll { flex: 1; overflow-y: auto; padding: var(--sp-2xl); }
.page-scroll::-webkit-scrollbar        { width: 4px; }
.page-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,.08); border-radius: 4px; }
.page-max { max-width: 720px; }

/* ── Typography ───────────────────────────────────────────── */
.section-eyebrow,
.page-eyebrow,
.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--purple);
  opacity: .65;
  margin-bottom: var(--sp-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--black);
  line-height: 1.1;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--black);
  margin-bottom: var(--sp-sm);
}

.page-sub {
  font-size: 16px;
  color: var(--subtle);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto var(--sp-xl);
}

/* Gradient highlight */
.hl {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  background: var(--grad-diagonal);
  border: none;
  padding: 13px 28px;
  border-radius: var(--r-md);
  cursor: pointer;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }

.btn-secondary {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--mid);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  transition: all .15s;
  cursor: pointer;
  background: none;
}
.btn-secondary:hover { border-color: rgba(0,0,0,.18); color: var(--black); }

.btn-outline {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--mid);
  background: none;
  border: 1.5px solid var(--border);
  padding: 9px 20px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all .15s;
}
.btn-outline:hover { border-color: rgba(0,0,0,.2); color: var(--black); }

.btn-save {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  background: var(--grad-diagonal);
  border: none;
  padding: 10px 24px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.btn-save:hover { opacity: .88; transform: translateY(-1px); }

.btn-danger {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: #E74C3C;
  background: rgba(231,76,60,.08);
  border: 1.5px solid rgba(231,76,60,.2);
  padding: 9px 20px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all .15s;
}
.btn-danger:hover { background: rgba(231,76,60,.14); }

.btn-white {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  background: var(--white);
  border: none;
  padding: 13px 28px;
  border-radius: var(--r-md);
  cursor: pointer;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
  display: inline-block;
}
.btn-white:hover { opacity: .9; transform: translateY(-1px); }

.btn-row {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  margin-top: var(--sp-lg);
}

/* ── Card ─────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
}
.card + .card  { margin-top: var(--sp-md); }
.card-title    { font-size: 13px; font-weight: 800; color: var(--black); margin-bottom: var(--sp-lg); }

/* ── Form fields ──────────────────────────────────────────── */
.field { margin-bottom: var(--sp-md); }
.field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px var(--sp-md);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  caret-color: var(--purple);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(108,92,231,.08);
}
.field input[type=checkbox] { width: auto; }

/* ── Site footer (public pages) ───────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--sp-xl) 52px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-2xl);
  flex-wrap: wrap;
}
.footer-logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.5px;
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
}
.footer-logo .fc { color: var(--black); }
.footer-logo .fs {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-tag      { font-size: 12px; color: var(--subtle); font-style: italic; }
.footer-cols     { display: flex; gap: var(--sp-2xl); }
.footer-col-head {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: var(--sp-md);
}
.footer-link {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #bbb;
  text-decoration: none;
  margin-bottom: 6px;
  transition: color .15s;
}
.footer-link:hover  { color: var(--black); }
.footer-link.active { color: var(--purple); }

.footer-bottom {
  max-width: 1100px;
  margin: var(--sp-lg) auto 0;
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}
.footer-copy,
.footer-loc { font-size: 12px; font-weight: 600; color: #ccc; }

/* Site footer (app pages - compact) */
.site-footer.app {
  padding: var(--sp-lg) var(--sp-2xl);
  background: var(--white);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-md);
}
.footer-links   { display: flex; gap: var(--sp-lg); }
.footer-links a {
  font-size: 12px;
  font-weight: 600;
  color: #bbb;
  text-decoration: none;
  transition: color .15s;
}
.footer-links a:hover { color: var(--black); }

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ── Responsive ───────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1023px) {
  .snav        { width: 180px; }
  .page-scroll { padding: var(--sp-xl) var(--sp-lg); }
  .rb::after,
  .rav::after  { display: none; }
}

/* Mobile */
@media (max-width: 767px) {
  /* Public nav */
  nav.public-nav, .nav { padding: 0 var(--sp-md); }
  .nav-links            { display: none; }
  .nav-hamburger        { display: flex; }

  /* App rail → bottom nav */
  :root         { --rail: 0px; }
  .rail {
    top: auto; left: 0; right: 0; bottom: 0;
    width: 100%; height: var(--bot-nav);
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 0 var(--sp-md);
    border-right: none;
    border-top: 1px solid var(--border);
  }
  .rail-logo,
  .rail-sp,
  .rail-div { display: none; }
  .rb       { width: 44px; height: 44px; }
  .rb svg   { width: 20px; height: 20px; }
  .rav      { width: 36px; height: 36px; font-size: 13px; }

  .main         { left: 0; bottom: var(--bot-nav); }
  .topbar       { padding: 0 var(--sp-md); }
  .content-area { flex-direction: column; }

  .snav {
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: var(--sp-sm) var(--sp-md);
    border-right: none;
    border-bottom: 1px solid var(--border);
    gap: var(--sp-xs);
  }
  .snav-label,
  .snav-divider     { display: none; }
  .snav-item        { white-space: nowrap; flex-shrink: 0; padding: 7px var(--sp-md); }
  .snav-item svg    { display: none; }
  .page-scroll      { padding: var(--sp-lg) var(--sp-md); }

  /* Footer */
  .site-footer         { padding: var(--sp-xl) var(--sp-md); }
  .site-footer.app     { padding: var(--sp-lg) var(--sp-md); }
  .footer-cols         { flex-direction: column; gap: var(--sp-xl); }
}

/* Small mobile */
@media (max-width: 600px) {
  .btn-primary,
  .btn-secondary { width: 100%; text-align: center; }
}

/* ════════════════════════════════════════════════════════════
   PAGE — Login  (currystudio_login.html)
   Scope: body.pg-login  for rules that could conflict globally
   ════════════════════════════════════════════════════════════ */

body.pg-login {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background-image: url('images/Login Background.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Subtle wash so the card and nav stay legible over the photo */
body.pg-login::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.18);
  z-index: 0;
  pointer-events: none;
}

/* Relative-positioned nav — login uses a flex-column body, not a scrolling page */
body.pg-login nav {
  position: relative;
  z-index: 10;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-shrink: 0;
}

/* Page wrapper — flex-centred vertically */
body.pg-login .page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-xl) var(--sp-md);
}

/* Frosted-glass card (overrides common .card) */
body.pg-login .card {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1.5px solid rgba(255,255,255,.6);
  border-radius: 20px;
  padding: var(--sp-2xl) var(--sp-xl);
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 80px rgba(0,0,0,.14);
  animation: fadeUp .5s ease both;
}

/* Per-page spacing overrides for shared components */
body.pg-login .btn-google { margin-bottom: var(--sp-lg); }
body.pg-login .divider    { margin-bottom: var(--sp-md); }

/* Login-specific components (unique class names — no scope needed) */
.step-view    { animation: fadeUp .35s ease both; }

.card-logo      { font-weight: 800; font-size: 22px; letter-spacing: -.5px; text-align: center; display: block; margin-bottom: var(--sp-sm); }
.card-logo .lc  { color: var(--black); }
.card-logo .ls  { background: var(--grad-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.card-eyebrow   { font-size: 11px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--purple); opacity: .65; text-align: center; margin-bottom: var(--sp-sm); }
.card-title     { font-family: var(--font-display); font-size: clamp(22px,4vw,28px); font-weight: 700; letter-spacing: -.8px; color: var(--black); text-align: center; margin-bottom: var(--sp-sm); line-height: 1.15; }
.card-sub       { font-size: 14px; font-weight: 400; color: var(--subtle); text-align: center; line-height: 1.65; margin-bottom: var(--sp-xl); }

.coming-soon    { font-size: 12px; font-weight: 600; color: #C0C0C0; text-align: center; line-height: 1.6; margin-bottom: var(--sp-xl); }
.terms-note     { font-size: 11px; font-weight: 600; color: #C0C0C0; text-align: center; line-height: 1.65; }
.terms-note a   { color: var(--purple); opacity: .8; text-decoration: none; }
.terms-note a:hover { opacity: 1; }

.avatar-wrap    { display: flex; justify-content: center; margin-bottom: var(--sp-xl); }
.avatar-ring    { width: 64px; height: 64px; border-radius: 50%; background: var(--grad-brand); padding: 2px; display: flex; align-items: center; justify-content: center; }
.avatar-inner   { width: 100%; height: 100%; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-body); font-size: 22px; font-weight: 800; color: var(--purple); }

.name-input              { width: 100%; font-family: var(--font-display); font-size: clamp(24px,5vw,32px); font-weight: 700; letter-spacing: -.8px; color: var(--black); background: transparent; border: none; border-bottom: 2px solid var(--border); padding: var(--sp-sm) 0; outline: none; caret-color: var(--purple); transition: border-color .2s; text-align: center; margin-bottom: var(--sp-xl); }
.name-input:focus        { border-color: var(--purple); }
.name-input::placeholder { color: #DDD; }

.ready-check      { width: 72px; height: 72px; border-radius: 50%; background: rgba(0,206,201,.1); border: 2px solid rgba(0,206,201,.2); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--sp-xl); }
.ready-check svg  { width: 32px; height: 32px; }
.ready-name       { background: var(--grad-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.ready-sub        { font-size: 14px; color: var(--subtle); text-align: center; line-height: 1.7; margin-bottom: var(--sp-xl); }

.btn-launch       { width: 100%; font-family: var(--font-body); font-size: 16px; font-weight: 700; color: var(--white); background: var(--grad-diagonal); border: none; padding: 16px; border-radius: var(--r-md); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: var(--sp-sm); transition: opacity .2s, transform .15s; }
.btn-launch:hover { opacity: .88; transform: translateY(-1px); }
.btn-launch svg   { width: 18px; height: 18px; }

.back-link        { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--subtle); cursor: pointer; background: none; border: none; width: 100%; margin-top: var(--sp-lg); transition: color .15s; }
.back-link:hover  { color: var(--black); }

@media (max-width: 767px) {
  body.pg-login nav   { padding: 0 var(--sp-md); }
  body.pg-login .card { padding: var(--sp-xl) var(--sp-lg); border-radius: var(--r-lg); }
  body.pg-login { background-position: bottom center; background-attachment: scroll; background-size: cover; min-height: 100dvh; }
}

/* ════════════════════════════════════════════════════════════
   PAGE — Landing  (currystudio_landing_final.html)
   Scope: body.pg-landing  for rules that could conflict globally
   ════════════════════════════════════════════════════════════ */

/* Two-column layout */
.layout { display: grid; grid-template-columns: 1fr 1fr; height: 100vh; padding-top: 60px; }

/* Left panel */
.left                    { display: flex; flex-direction: column; padding: var(--sp-2xl) 52px var(--sp-xl); border-right: 1px solid var(--border); overflow-y: auto; min-height: calc(100vh - 60px); }
.left::-webkit-scrollbar { display: none; }
.left-body               { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: var(--sp-xl) 0 var(--sp-lg); }

/* Mobile-only brand logo inside left panel */
.brand-logo     { font-family: var(--font-body); font-weight: 800; font-size: 22px; letter-spacing: -.5px; text-decoration: none; line-height: 1; flex-shrink: 0; display: none; margin-bottom: var(--sp-xl); }
.brand-logo .lc { color: var(--black); }
.brand-logo .ls { background: var(--grad-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Hero copy */
.eyebrow  { font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--purple); opacity: .65; margin-bottom: var(--sp-md); animation: fadeUp .5s ease both; }
.headline { font-family: var(--font-display); font-size: clamp(36px,4vw,64px); font-weight: 700; letter-spacing: -2px; line-height: 1.05; color: var(--black); margin-bottom: var(--sp-md); animation: fadeUp .5s .08s ease both; }
.subline  { font-size: 16px; font-weight: 400; line-height: 1.72; color: var(--subtle); max-width: 380px; margin-bottom: var(--sp-xl); animation: fadeUp .5s .15s ease both; }

/* Per-page overrides for shared components */
body.pg-landing .btn-google { max-width: 340px; animation: fadeUp .5s .22s ease both; }
body.pg-landing .divider    { margin: var(--sp-md) 0; max-width: 340px; animation: fadeUp .5s .26s ease both; }

/* Sign-in note & social proof */
.signin-note       { font-size: 12px; font-weight: 600; color: #C0C0C0; max-width: 340px; line-height: 1.65; animation: fadeUp .5s .3s ease both; }
.signin-note a     { color: var(--purple); opacity: .8; text-decoration: none; transition: opacity .15s; }
.signin-note a:hover { opacity: 1; }
.proof             { display: flex; align-items: center; gap: var(--sp-sm); margin-top: var(--sp-xl); font-size: 13px; font-weight: 600; color: var(--subtle); animation: fadeUp .5s .35s ease both; }
.proof-avs         { display: flex; }
.proof-av          { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--white); margin-right: -8px; flex-shrink: 0; }
.proof-av:last-child { margin-right: 0; }

/* Left footer */
.left-footer         { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-sm); padding-top: var(--sp-lg); border-top: 1px solid var(--border); font-size: 12px; font-weight: 600; color: #ccc; flex-shrink: 0; }
.left-footer-links   { display: flex; flex-wrap: wrap; gap: var(--sp-lg); }
.left-footer-links a { color: #bbb; text-decoration: none; transition: color .15s; }
.left-footer-links a:hover { color: var(--black); }

/* Right panel — interactive demo */
.right { background: var(--surface); display: flex; flex-direction: column; overflow: hidden; }

.slide-header       { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-lg) var(--sp-xl) var(--sp-md); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.slide-header-left  { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.slide-eyebrow      { font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--subtle); }
.slide-title-text   { font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: -.3px; color: var(--black); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slide-dots         { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.sd                 { width: 7px; height: 7px; border-radius: 50%; cursor: pointer; transition: all .2s; }
.sd.active          { background: var(--purple); transform: scale(1.3); }
.sd.done            { background: var(--teal); }
.sd.pending         { background: rgba(0,0,0,.12); }

.slides-viewport         { flex: 1; overflow: hidden; position: relative; }
.slides-track            { display: flex; height: 100%; transition: transform .42s cubic-bezier(.4,0,.2,1); }
.slide                   { flex: 0 0 100%; height: 100%; padding: var(--sp-xl); display: flex; flex-direction: column; gap: var(--sp-sm); overflow-y: auto; }
.slide::-webkit-scrollbar       { width: 3px; }
.slide::-webkit-scrollbar-thumb { background: rgba(0,0,0,.1); border-radius: 3px; }
.stag    { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--r-pill); align-self: flex-start; }
.slide-h { font-family: var(--font-display); font-size: clamp(17px,2vw,22px); font-weight: 700; letter-spacing: -.4px; color: var(--black); line-height: 1.2; }
.slide-d { font-size: 13px; font-weight: 400; color: var(--subtle); line-height: 1.6; max-width: 480px; }

.slide-nav    { display: flex; align-items: center; gap: var(--sp-sm); padding: var(--sp-md) var(--sp-xl); border-top: 1px solid var(--border); background: var(--surface); flex-shrink: 0; }
.snav-btn     { width: 36px; height: 36px; border-radius: var(--r-sm); border: 1.5px solid var(--border); background: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--mid); transition: all .15s; flex-shrink: 0; }
.snav-btn:hover:not(:disabled) { border-color: var(--purple); color: var(--purple); }
.snav-btn:disabled { opacity: .3; cursor: default; }
.snav-btn svg  { width: 16px; height: 16px; }
.snav-counter  { font-size: 12px; font-weight: 700; color: var(--subtle); flex-shrink: 0; min-width: 40px; text-align: center; }
.snav-cta      { flex: 1; display: flex; align-items: center; justify-content: center; gap: var(--sp-sm); font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--white); background: var(--grad-diagonal); border: none; padding: 10px; border-radius: var(--r-sm); cursor: pointer; transition: opacity .2s, transform .15s; }
.snav-cta:hover { opacity: .88; transform: translateY(-1px); }
.snav-cta svg  { width: 14px; height: 14px; }

/* Demo — layered concepts */
.demo-layers { display: flex; flex-direction: column; gap: var(--sp-sm); margin-top: var(--sp-sm); }
.dl          { border-radius: var(--r-sm); display: flex; align-items: center; padding: 0 var(--sp-md); font-size: 13px; font-weight: 700; gap: var(--sp-sm); cursor: pointer; height: 44px; overflow: hidden; transition: transform .18s, height .25s, padding .25s; }
.dl:hover    { transform: translateX(5px); }
.dl.open     { height: auto; padding-top: 12px; padding-bottom: 12px; align-items: flex-start; }
.dl-n        { font-size: 10px; font-weight: 800; opacity: .45; min-width: 16px; flex-shrink: 0; margin-top: 2px; }
.dl-content  { flex: 1; }
.dl-name     { font-size: 13px; font-weight: 700; }
.dl-detail   { font-size: 12px; font-weight: 600; opacity: .75; margin-top: 5px; line-height: 1.55; display: none; }
.dl.open .dl-detail { display: block; }
.dl-hint     { font-size: 11px; opacity: .35; margin-left: auto; flex-shrink: 0; font-weight: 600; }
.dl.open .dl-hint { display: none; }
.dl-1 { background: rgba(0,206,201,.12); color: #007f7c; }
.dl-2 { background: rgba(108,92,231,.12); color: #4C3CBB; }
.dl-3 { background: rgba(253,121,168,.12); color: #C0356A; }
.dl-4 { background: rgba(253,203,110,.2);  color: #A07000; }

/* Demo — timeline */
.demo-timeline { display: flex; flex-direction: column; gap: var(--sp-md); margin-top: var(--sp-sm); }
.tl-item       { display: flex; align-items: flex-start; gap: var(--sp-md); }
.tl-dot        { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.tl-date       { font-size: 11px; font-weight: 800; color: var(--subtle); margin-bottom: 2px; letter-spacing: .08em; }
.tl-text       { font-size: 13px; font-weight: 700; color: var(--black); margin-bottom: 2px; line-height: 1.3; }
.tl-sub        { font-size: 12px; font-weight: 400; color: var(--subtle); line-height: 1.55; }

/* Demo — concept map */
.demo-concept  { margin-top: var(--sp-sm); }
.cc            { display: inline-block; font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--purple); border: 2px solid rgba(108,92,231,.3); background: rgba(108,92,231,.06); padding: 8px 20px; border-radius: var(--r-pill); margin-bottom: var(--sp-sm); }
.concept-line  { height: 2px; background: var(--border); width: 32px; margin: 0 0 var(--sp-sm) 0; }
.concept-nodes { display: flex; flex-wrap: wrap; gap: var(--sp-sm); margin-bottom: var(--sp-sm); }
.cn            { display: inline-block; font-size: 12px; font-weight: 700; padding: 7px 14px; border-radius: var(--r-pill); border: 1.5px solid var(--border); cursor: pointer; transition: all .15s; }
.cn:hover      { border-color: var(--purple); color: var(--purple); }
.concept-info  { font-size: 12px; font-weight: 400; color: var(--subtle); line-height: 1.6; font-style: italic; }

/* Demo — quiz */
.quiz-q    { font-size: 14px; font-weight: 700; color: var(--black); line-height: 1.45; margin-top: var(--sp-sm); margin-bottom: var(--sp-md); }
.quiz-opts { display: flex; flex-direction: column; gap: var(--sp-sm); }
.qo        { font-family: var(--font-body); font-size: 13px; font-weight: 600; text-align: left; padding: 11px var(--sp-md); border-radius: var(--r-sm); border: 1.5px solid var(--border); background: var(--white); cursor: pointer; transition: all .15s; }
.qo:hover:not(:disabled) { border-color: rgba(108,92,231,.4); color: var(--purple); }
.qo.correct { border-color: var(--teal); background: rgba(0,206,201,.07); color: #007f7c; font-weight: 700; }
.qo.wrong   { border-color: rgba(231,76,60,.4); background: rgba(231,76,60,.05); color: #C0392B; }
.quiz-fb    { font-size: 12px; font-weight: 600; color: var(--mid); line-height: 1.6; padding: var(--sp-sm) var(--sp-md); border-radius: var(--r-sm); margin-top: var(--sp-sm); display: none; }
.quiz-fb.show { display: block; }
.quiz-fb.good { background: rgba(0,206,201,.08); color: #007f7c; }
.quiz-fb.bad  { background: rgba(231,76,60,.06); color: #C0392B; }

/* Demo — progress bars */
.prog-item { margin-top: var(--sp-sm); }
.pi-head   { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; gap: var(--sp-sm); }
.pi-name   { font-size: 12px; font-weight: 700; color: var(--black); }
.pi-pct    { font-size: 12px; font-weight: 800; color: var(--mid); flex-shrink: 0; }
.pi-bar    { height: 8px; background: rgba(0,0,0,.07); border-radius: var(--r-pill); overflow: hidden; }
.pi-fill   { height: 100%; border-radius: var(--r-pill); width: 0; transition: width 1s cubic-bezier(.4,0,.2,1); }

/* Demo — flashcard */
.fc-wrap         { margin-top: var(--sp-sm); perspective: 1000px; cursor: pointer; }
.fc-card         { position: relative; width: 100%; height: 140px; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.fc-card.flipped { transform: rotateY(180deg); }
.fc-face         { position: absolute; inset: 0; border-radius: var(--r-lg); border: 1.5px solid var(--border); padding: var(--sp-md) var(--sp-lg); display: flex; flex-direction: column; justify-content: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fc-front        { background: var(--white); }
.fc-back         { background: rgba(108,92,231,.05); border-color: rgba(108,92,231,.2); transform: rotateY(180deg); }
.fc-lbl          { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--subtle); margin-bottom: var(--sp-sm); }
.fc-text         { font-size: 14px; font-weight: 700; color: var(--black); line-height: 1.45; }
.fc-hint         { font-size: 11px; color: #C0C0C0; margin-top: var(--sp-sm); font-weight: 600; }
.fc-next         { margin-top: var(--sp-sm); background: var(--surface); border-radius: var(--r-sm); padding: var(--sp-sm) var(--sp-md); }
.fc-next-label   { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--subtle); margin-bottom: 3px; }
.fc-next-text    { font-size: 12px; font-weight: 600; color: var(--mid); line-height: 1.45; }

/* Landing responsive */
@media (max-width: 1023px) {
  body.pg-landing      { height: auto; overflow: auto; }
  .layout              { display: flex; flex-direction: column; height: auto; min-height: 100vh; padding-top: 60px; }
  .left                { border-right: none; border-bottom: 1px solid var(--border); padding: var(--sp-2xl) var(--sp-xl) var(--sp-xl); }
  .left-body           { padding: var(--sp-xl) 0 var(--sp-lg); justify-content: flex-start; }
  .right               { min-height: 520px; height: auto; flex-direction: column; }
  .slides-viewport     { flex: none; height: 380px; }
  .left-footer         { margin-top: var(--sp-lg); }
}

@media (max-width: 767px) {
  body.pg-landing         { height: auto; overflow: auto; }
  .layout                 { display: flex; flex-direction: column; height: auto; padding-top: 60px; }
  .left                   { border-right: none; border-bottom: 1px solid var(--border); padding: var(--sp-xl) var(--sp-lg) var(--sp-lg); }
  .left-body              { padding: var(--sp-lg) 0; }
  .brand-logo             { display: block; }
  .headline               { font-size: clamp(32px,9vw,44px); letter-spacing: -1.5px; }
  .subline                { font-size: 15px; max-width: 100%; }
  body.pg-landing .btn-google { max-width: 100%; }
  body.pg-landing .divider    { max-width: 100%; }
  .signin-note            { max-width: 100%; }
  .right                  { min-height: 460px; }
  .slides-viewport        { height: 320px; }
  .slide                  { padding: var(--sp-md); gap: var(--sp-xs); }
  .slide-header           { padding: var(--sp-md) var(--sp-md) var(--sp-sm); }
  .slide-title-text       { font-size: 14px; }
  .slide-nav              { padding: var(--sp-sm) var(--sp-md); gap: var(--sp-sm); }
  .snav-cta               { font-size: 12px; padding: 9px; }
  .fc-card                { height: 120px; }
  .left-footer            { flex-direction: column; align-items: flex-start; gap: var(--sp-md); }
  .left-footer-links      { gap: var(--sp-md); }
}

@media (max-width: 379px) {
  .headline          { font-size: 30px; }
  .slide-title-text  { display: none; }
  .concept-nodes .cn { font-size: 11px; padding: 5px 10px; }
}
