/* ============================================================
   overtly — design system
   Mint & pink palette, sharp ~3px corners, Inter typeface.
   ============================================================ */

:root {
  --mint: #2DEDA6;
  --mint-soft: #E8FBF3;
  --pink: #FF3B81;
  --pink-soft: #FCE7F3;
  --ink: #0F172A;
  --muted: #6B7280;
  --line: #E5E7EB;
  --bg-soft: #F9FAFB;
}

html, body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: white;
}

/* -------- Square / near-square corners across the system -------- */
.rounded, .rounded-md, .rounded-lg, .rounded-xl, .rounded-2xl,
button, input, .frame { border-radius: 3px !important; }
.rounded-sm { border-radius: 2px !important; }
/* Allow circles for dots, avatars, progress bars */
.rounded-full, .progress-bar, .progress-fill { border-radius: 999px !important; }

/* -------- Logo -------- */
.logo { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; line-height: 1; }
.logo svg { flex-shrink: 0; }
.logo .wordmark { letter-spacing: -0.01em; }
.logo.lg .wordmark { font-size: 1.75rem; }

/* -------- Site chrome -------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: white; border-bottom: 1px solid var(--line);
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.site-header .header-nav { display: flex; gap: .25rem; align-items: center; }
.site-header .header-nav a {
  font-size: .875rem; color: #4B5563; font-weight: 500;
  padding: .5rem .9rem;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .35rem;
  border-radius: 3px;
}
.site-header .header-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.site-header .header-nav a.active { color: var(--ink); font-weight: 700; background: var(--mint-soft); }
.site-header .learner-avatar {
  width: 32px; height: 32px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: .8rem;
  margin-left: .5rem;
}

.update-link { position: relative; }
.update-link .update-dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--pink); border-radius: 999px;
  margin-left: .25rem;
}

.site-footer {
  background: var(--ink); color: rgba(255,255,255,0.65);
  padding: 2.5rem 2rem;
  margin-top: 4rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .75rem;
}
.site-footer .logo { color: white; }

/* -------- Pills -------- */
.pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .6rem; border-radius: 2px !important;
  font-size: .7rem; font-weight: 600; line-height: 1;
  white-space: nowrap;
}
.pill-mint { background: var(--mint); color: var(--ink); }
.pill-pink { background: var(--pink-soft); color: #BE185D; }
.pill-soft { background: white; border: 1px solid var(--line); color: #374151; }
.pill-verified { background: #DBEAFE; color: #1E40AF; }
.pill-free { background: var(--mint); color: var(--ink); }
.pill-paid { background: var(--pink-soft); color: #BE185D; }
.pill-static { background: #F3F4F6; color: #374151; }
.pill-ink { background: var(--ink); color: white; }

/* -------- Frames -------- */
.frame {
  border: 1px solid var(--line); border-radius: 3px;
  background: white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

/* -------- Progress -------- */
.progress-bar { height: 6px; background: #E5E7EB; overflow: hidden; }
.progress-fill { height: 100%; background: var(--mint); }
.glow-mint { box-shadow: 0 0 0 3px rgba(45, 237, 166, 0.15); border-color: var(--mint); }

/* -------- Headings -------- */
.heading-xl { font-size: 4.5rem; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.heading-lg { font-size: 3rem; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.heading-md { font-size: 2rem; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
.heading-sm { font-size: 1.25rem; line-height: 1.3; font-weight: 700; }
.accent-pink { color: var(--pink); }

/* -------- Layout -------- */
.container-x { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 960px; margin: 0 auto; padding: 0 2rem; }
.section-pad { padding: 4rem 0; }
.section-pad-lg { padding: 6rem 0; }

/* -------- Buttons (defaults) -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .65rem 1.1rem;
  font-size: .9rem; font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  background: white; color: var(--ink);
  text-decoration: none;
}
.btn-primary { background: var(--pink); color: white; }
.btn-primary:hover { background: #E12B6F; }
.btn-mint { background: var(--mint); color: var(--ink); }
.btn-mint:hover { background: #20D896; }
.btn-ghost { background: white; border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-ink { background: var(--ink); color: white; }
.btn-block { width: 100%; }

/* -------- Inputs -------- */
.input {
  border: 1px solid var(--line);
  padding: .65rem .9rem;
  background: white;
  font-size: .9rem;
  color: var(--ink);
  border-radius: 3px;
  outline: none;
}
.input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(45,237,166,0.2); }

/* -------- Course cards -------- */
.course-card {
  display: flex; flex-direction: column; gap: .75rem;
  padding: 1.25rem;
  border: 1px solid var(--line); border-radius: 3px;
  background: white;
  transition: border-color .15s, box-shadow .15s;
  text-decoration: none;
  color: inherit;
}
.course-card:hover { border-color: var(--mint); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.course-card .meta { font-size: .75rem; color: var(--muted); display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.course-card .creator-row { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; color: var(--muted); }

/* -------- Avatar -------- */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: white; font-weight: 700; }
.avatar-sm { width: 24px; height: 24px; font-size: .65rem; }
.avatar-md { width: 32px; height: 32px; font-size: .75rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.1rem; }
.avatar-xl { width: 128px; height: 128px; font-size: 2.5rem; }

.gradient-pink-emerald { background: linear-gradient(135deg, #F472B6 0%, #34D399 100%); }
.gradient-pink-purple-emerald { background: linear-gradient(135deg, #F472B6 0%, #A78BFA 50%, #34D399 100%); }
.gradient-orange-red { background: linear-gradient(135deg, #FB923C 0%, #EF4444 100%); }
.gradient-blue-emerald { background: linear-gradient(135deg, #60A5FA 0%, #34D399 100%); }
.gradient-purple-pink { background: linear-gradient(135deg, #A78BFA 0%, #F472B6 100%); }

/* -------- Lesson body typography -------- */
.lesson-p { margin-top: 1rem; font-size: 1rem; line-height: 1.65; color: #1F2937; }
.lesson-p strong { color: var(--ink); }
.lesson-section { padding: 2rem 0; border-top: 1px solid var(--line); }
.lesson-section:first-child { border-top: none; padding-top: 0; }
.lesson-h2 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.lesson-meta { font-size: .8rem; color: var(--muted); margin-top: .35rem; }
.try-it-now { margin-top: 1.5rem; padding: 1rem 1.25rem; background: var(--mint-soft); border-left: 3px solid var(--mint); }
.try-it-now-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #047857; font-weight: 700; }
.try-it-now-body { margin-top: .35rem; font-size: .95rem; line-height: 1.55; color: var(--ink); }
.cite-list { margin-top: 1.5rem; padding: 1rem; background: var(--bg-soft); border-radius: 3px; font-size: .75rem; }
.cite-list .label { text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; font-size: .7rem; }
.cite-list ul { margin-top: .5rem; }
.cite-list li { padding: .15rem 0; color: #4B5563; }
.cite-list .marker { color: var(--pink); font-weight: 700; margin-right: .25rem; }

/* -------- Quiz cards -------- */
.quiz-card { border: 1px solid var(--line); padding: 1.25rem; background: white; margin-top: .75rem; }
.quiz-kind { display: inline-block; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.quiz-prompt { margin-top: .5rem; font-size: 1rem; font-weight: 600; color: var(--ink); line-height: 1.45; }
.quiz-answer { margin-top: .75rem; padding-top: .75rem; border-top: 1px dashed var(--line); font-size: .85rem; color: #4B5563; line-height: 1.5; display: none; }
.quiz-card.show-answer .quiz-answer { display: block; }
.quiz-toggle { margin-top: .75rem; font-size: .75rem; color: var(--pink); font-weight: 600; cursor: pointer; background: none; border: none; padding: 0; }

/* -------- Lesson sidebar (module page) -------- */
.lesson-list { display: flex; flex-direction: column; gap: .35rem; font-size: .875rem; }
.lesson-list .lesson-item {
  padding: .55rem .65rem;
  color: #4B5563;
  cursor: pointer;
  border-radius: 3px;
  display: flex; justify-content: space-between; align-items: center;
}
.lesson-list .lesson-item:hover { background: var(--bg-soft); color: var(--ink); }
.lesson-list .lesson-item.current { background: var(--mint-soft); border: 1px solid #6EE7B7; color: var(--ink); font-weight: 600; }
.lesson-list .lesson-item.completed { color: #4B5563; }

/* -------- Anchor offset for sticky header -------- */
:target { scroll-margin-top: 80px; }

/* -------- Utilities -------- */
.text-muted { color: var(--muted); }
.divider { height: 1px; background: var(--line); }
.bg-mint-soft { background: var(--mint-soft); }
.bg-pink-soft { background: var(--pink-soft); }
.border-mint { border-color: var(--mint) !important; }
.border-pink { border-color: var(--pink) !important; }
