/* ==========================================================
   Side Skill Academy — token system (light)
   Palette taken from the logo: deep navy primary (#1F3468)
   with a brighter navy accent (#2F55A4) on a clean white base.
   Ink variants are used for text so contrast holds on light.
   ========================================================== */
:root{
  --bg:            #FFFFFF;
  --bg-alt:        #F5F7FC;
  --surface:       #FFFFFF;
  --surface-2:     #EEF2FA;
  --border:        rgba(18,23,43,0.09);
  --border-strong: rgba(31,52,104,0.20);

  --text:          #12172B;
  --text-muted:    #5B6178;
  --text-faint:    #8C92A6;

  --navy:          #1F3468;
  --navy-deep:     #16264D;
  --navy-ink:      #1B2D5C;
  --accent:        #2F55A4;
  --accent-ink:    #24457F;
  --navy-soft:     rgba(31,52,104,0.10);
  --accent-soft:   rgba(47,85,164,0.12);

  --ok:            #15803D;
  --ok-soft:       rgba(21,128,61,0.10);
  --warn:          #B45309;
  --warn-soft:     rgba(180,83,9,0.10);
  --danger:        #B3261E;
  --danger-soft:   rgba(179,38,30,0.08);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-card: 0 1px 0 rgba(18,23,43,0.02) inset, 0 14px 30px rgba(18,23,43,0.07);
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; }

body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; }

h1,h2,h3{
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.text-accent{ color: var(--navy); }

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- layout helpers ---------- */
.section{ padding: 100px 24px; }
.section-alt{ background: var(--bg-alt); }
.section-inner{ max-width: 1140px; margin: 0 auto; }

.section-head{
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}
.section-head h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; margin-bottom: 14px; }
.section-head p{ color: var(--text-muted); font-size: 1.02rem; }

.grid-4{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }

.btn:disabled,
.btn[disabled]{
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.35);
}
.btn:disabled:hover,
.btn[disabled]:hover{ transform: none; }

.btn-primary{
  background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(31,52,104,0.26);
}
.btn-primary:hover{ opacity: .93; }

.btn-sm{ padding: 10px 20px; font-size: 0.88rem; }

.btn-text{
  background: transparent;
  color: var(--text-muted);
  padding: 10px 6px;
}
.btn-text:hover{ color: var(--text); }

.btn-ghost{
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover{ border-color: var(--accent); background: var(--accent-soft); }

.play-dot{ font-size: 0.7rem; color: var(--accent-ink); }

/* used on the navy CTA banner */
.btn-dark{
  background: #FFFFFF;
  color: var(--navy-deep);
}
.btn-dark:hover{ background: #EEF2FA; }

.btn-outline-light{
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #FFFFFF;
}
.btn-outline-light:hover{ background: rgba(255,255,255,0.12); }

/* ==========================================================
   NAV
   ========================================================== */
.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-deep);
}
.brand-logo{ height: 54px; width: auto; }
.brand-footer .brand-logo{ height: 36px; }

.nav-links{ display: flex; gap: 32px; }
.nav-links a{
  font-size: 0.94rem;
  color: var(--text-muted);
  transition: color .15s ease;
}
.nav-links a:hover{ color: var(--navy); }

.nav-actions{ display: flex; align-items: center; gap: 6px; }

/* ==========================================================
   HERO
   ========================================================== */
.hero{
  position: relative;
  overflow: hidden;
  padding: 96px 24px 100px;
}
.hero-glow{
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 640px;
  background:
    radial-gradient(560px 340px at 22% 25%, rgba(31,52,104,0.13), transparent 62%),
    radial-gradient(520px 360px at 80% 15%, rgba(47,85,164,0.12), transparent 62%);
  pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift{
  from{ transform: translateY(0) scale(1); }
  to{ transform: translateY(20px) scale(1.03); }
}

.hero-inner{ position: relative; max-width: 1180px; margin: 0 auto; }
.hero-inner-center{
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
}
.eyebrow-dot{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero-title{
  font-size: clamp(2.2rem, 4.6vw, 3.3rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-sub{
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 520px;
  margin: 0 auto 34px;
}

.hero-cta{ display: flex; gap: 14px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-cta-center{ justify-content: center; }

.hero-trust{ display: flex; align-items: center; gap: 14px; }
.hero-trust p{ color: var(--text-faint); font-size: 0.9rem; }
.hero-trust strong{ color: var(--text); }
.trust-avatars{ display: flex; }
.trust-avatars span{
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -10px;
  background: linear-gradient(135deg, var(--accent), var(--navy));
}
.trust-avatars span:first-child{ margin-left: 0; }

/* ==========================================================
   FEATURE / FORMAT CARDS
   ========================================================== */
.card, .course-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-card);
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover, .course-card:hover{
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.card-icon{
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--navy-soft);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon-lg{
  width: 48px; height: 48px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.card h3, .course-card h3{ font-size: 1.05rem; margin-bottom: 8px; }
.card p, .course-card p{ color: var(--text-muted); font-size: 0.92rem; }

.format-card{ padding: 34px; }
.format-card h3{ font-size: 1.25rem; margin-bottom: 10px; }
.format-list{ margin-top: 20px; }
.format-list li{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 10px;
}
.format-list svg{ color: var(--accent-ink); flex-shrink: 0; margin-top: 4px; }

.course-foot{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.course-price{
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.02rem;
}
.course-weeks{ font-size: 0.78rem; color: var(--text-faint); }

.catalog-note{
  margin-top: 34px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.94rem;
}
.catalog-note a{ color: var(--navy); font-weight: 600; text-decoration: underline; }

/* ==========================================================
   PROCESS
   ========================================================== */
.process-step{ text-align: center; }
.step-num{
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  width: 40px; height: 40px;
  line-height: 40px;
  border-radius: 50%;
  margin-bottom: 18px;
}
.process-step h3{ font-size: 1.1rem; margin-bottom: 10px; }
.process-step p{ color: var(--text-muted); font-size: 0.94rem; max-width: 300px; margin: 0 auto; }

/* ==========================================================
   PRICING TEASER
   ========================================================== */
.pricing-box{
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.pricing-copy h2{ font-size: 1.7rem; margin-bottom: 12px; }
.pricing-copy p{ color: var(--text-muted); max-width: 440px; margin-bottom: 20px; }
.check-list li{
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.check-list svg{ color: var(--accent-ink); flex-shrink: 0; }

/* ==========================================================
   FAQ
   ========================================================== */
.faq-list{ max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.faq-item summary{
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: '+';
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 400;
  margin-left: 12px;
}
.faq-item[open] summary::after{ content: '−'; }
.faq-item p{ color: var(--text-muted); font-size: 0.92rem; margin-top: 12px; line-height: 1.6; }

/* ==========================================================
   FINAL CTA
   ========================================================== */
.cta-banner{
  background: linear-gradient(120deg, var(--navy-deep) 0%, var(--accent) 120%);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
}
.cta-banner h2{
  color: #FFFFFF;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 12px;
}
.cta-banner p{
  color: rgba(255,255,255,0.80);
  max-width: 500px;
  margin: 0 auto 28px;
  font-size: 1rem;
}
.cta-buttons{ display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer{ border-top: 1px solid var(--border); padding: 36px 24px 28px; }
.footer-inner{
  max-width: 1140px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.brand-footer{ font-size: 1rem; }
.footer-links{ display: flex; gap: 26px; }
.footer-links a{ color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover{ color: var(--navy); }
.footer-copy{ text-align: center; color: var(--text-faint); font-size: 0.82rem; }

/* ==========================================================
   AUTH PAGES (login / register)
   ========================================================== */
.auth-main{
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
}
.auth-main .hero-glow{ height: 100%; inset: 0; }

.auth-card{
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-card);
}
.auth-card-wide{ max-width: 560px; }

.auth-head{ text-align: center; margin-bottom: 30px; }
.auth-head .auth-logo{
  height: 68px;
  width: auto;
  margin: 0 auto 18px;
}
.auth-head h1{ font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.auth-head p{ color: var(--text-muted); font-size: 0.94rem; }

.form-alert{
  background: var(--danger-soft);
  border: 1px solid rgba(179,38,30,0.28);
  color: var(--danger);
  font-size: 0.86rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.form-alert-ok{
  background: var(--ok-soft);
  border-color: rgba(21,128,61,0.28);
  color: var(--ok);
}

.form-field{ margin-bottom: 18px; }
.form-field label{
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="number"],
.form-field input[type="date"],
.form-field input[type="tel"]{
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color .15s ease, background .15s ease;
}
.form-field input::placeholder{ color: var(--text-faint); }
.form-field input:focus{
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}
.field-note{
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-faint);
}

.form-grid-2{ display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.input-wrap{ position: relative; }
.input-wrap input{ padding-right: 46px !important; }
.eye-btn{
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  padding: 6px 10px;
  color: var(--text-faint);
  line-height: 1;
}

.form-row-between{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 0.86rem;
  gap: 12px;
}
.form-check{
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-muted);
  cursor: pointer;
}
.form-check input{ margin-top: 3px; accent-color: var(--navy); }
.form-link{ color: var(--navy); font-weight: 600; }
.form-link:hover{ text-decoration: underline; }

.btn-block{ width: 100%; justify-content: center; padding: 13px 26px; }

.auth-foot{ text-align: center; margin-top: 22px; font-size: 0.9rem; color: var(--text-muted); }
.auth-terms{
  text-align: center;
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--text-faint);
  line-height: 1.5;
}
.auth-terms a{ color: var(--text-muted); text-decoration: underline; }

/* ── portal-closed notice ── */
.closed-badge{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--warn-soft);
  border: 1px solid rgba(180,83,9,0.24);
  color: var(--warn);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.closed-badge svg{ flex-shrink: 0; }

/* ── credentials handed out after registration ── */
.cred-box{
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 22px;
}
.cred-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.cred-row:last-child{ border-bottom: none; }
.cred-row span{ font-size: 0.84rem; color: var(--text-muted); }
.cred-row strong{
  font-family: var(--font-mono);
  font-size: 1.02rem;
  color: var(--navy-deep);
  letter-spacing: 0.04em;
}
.cred-warn{
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--warn);
  background: var(--warn-soft);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 980px){
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
  .grid-3{ grid-template-columns: 1fr; gap: 36px; }
  .grid-2{ grid-template-columns: 1fr; }
  .nav-links{ display: none; }
  .pricing-box{ flex-direction: column; text-align: center; }
  .pricing-copy p{ margin-left: auto; margin-right: auto; }
  .check-list li{ justify-content: center; }
}

@media (max-width: 560px){
  .section{ padding: 70px 20px; }
  .grid-4{ grid-template-columns: 1fr; }
  .hero{ padding-top: 56px; }
  .cta-banner{ padding: 44px 24px; }
  .auth-card{ padding: 32px 24px; }
  .form-grid-2{ grid-template-columns: 1fr; }
  .brand-logo{ height: 38px; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .hero-glow{ animation: none; }
}
