/* =========================================================
   SLP Student Hub — shared site styles
   Brand-aligned with Speech Shelf (pink/salmon/teal/gold)
   ========================================================= */

:root {
  --pink: #FFA6A6;
  --pink2: #F08585;
  --pink-lt: #FFD9D9;
  --pink-bg: #FFA6A6;
  --teal: #5B9E9E;
  --teal2: #4A8585;
  --teal-lt: #EAF4F4;
  --salmon: #E8736B;
  --salmon2: #D05E56;
  --navy: #1A1A2E;
  --navy-soft: #2C2C3E;
  --gold: #E8C04A;
  --gold-lt: #FEF7E0;
  --cream: #FAFAF8;
  --cream-2: #F0F0EE;
  --paper: #FFFFFF;
  --ink: #1A1A2E;
  --ink-soft: #5A5A6E;
  --ink-faint: #9898A8;
  --line: #E8DDD0;
  --danger: #E8736B;
  --success: #5B9E9E;
  --warning: #E8C04A;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: 'Fraunces', Georgia, serif; }
.display { font-family: 'Fredoka', system-ui, sans-serif; font-weight: 600; }
a { color: var(--salmon); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ═══ NAV ═══ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--salmon) 0%, var(--pink2) 100%);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px; font-weight: 700;
  font-family: 'Fraunces', serif;
  box-shadow: 0 4px 12px rgba(232,115,107,0.3);
  transform: rotate(-4deg);
}
.logo-text { display: flex; flex-direction: column; line-height: 1; gap: 2px; }
.logo-text .lt-main { color: var(--navy); }
.logo-text .lt-sub { font-size: 11px; font-weight: 500; color: var(--salmon); letter-spacing: 0.05em; text-transform: uppercase; font-family: 'Nunito', sans-serif; }
.nav-links {
  display: flex; gap: 28px; align-items: center;
}
.nav-links a {
  color: var(--ink-soft); text-decoration: none;
  font-weight: 700; font-size: 14px;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--salmon); text-decoration: none; }
.nav-cta {
  padding: 10px 20px;
  background: var(--navy);
  color: white !important;
  border-radius: 100px;
  font-size: 13px !important;
  font-weight: 700 !important;
  transition: all 0.2s;
}
.nav-cta:hover {
  background: var(--salmon) !important;
  transform: translateY(-1px);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: none; border: none;
  font-size: 22px; cursor: pointer; color: var(--navy);
  padding: 4px 8px;
}
@media (max-width: 820px) {
  .nav-inner { padding: 14px 20px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: white; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; border-radius: 10px; }
  .nav-links a:hover { background: var(--cream); }
  .nav-cta { text-align: center; margin-top: 4px; }
}

/* ═══ HERO ═══ */
.hero {
  position: relative;
  padding: 80px 32px 90px;
  overflow: hidden;
}
.hero-blob-1 {
  position: absolute; top: -120px; right: -180px;
  width: 540px; height: 540px;
  background: radial-gradient(circle, var(--pink-lt) 0%, transparent 70%);
  border-radius: 50%; z-index: 0;
}
.hero-blob-2 {
  position: absolute; bottom: -240px; left: -220px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, var(--teal-lt) 0%, transparent 70%);
  border-radius: 50%; z-index: 0;
}
.hero-inner {
  max-width: 1100px; margin: 0 auto;
  position: relative; z-index: 1;
  text-align: center;
}
.hero-inner.split {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 64px; align-items: center; text-align: left;
  max-width: 1240px;
}
@media (max-width: 960px) {
  .hero { padding: 56px 24px 70px; }
  .hero-inner.split { grid-template-columns: 1fr; gap: 40px; text-align: center; }
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  background: var(--salmon);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}
.hero-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 22px;
}
.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--salmon);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.hero-title .underline {
  position: relative; display: inline-block;
}
.hero-title .underline::after {
  content: '';
  position: absolute;
  bottom: 4px; left: -4px; right: -4px;
  height: 14px;
  background: var(--gold);
  z-index: -1;
  opacity: 0.55;
  transform: skew(-3deg);
}
.hero-sub {
  font-size: 19px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-inner.split .hero-sub { margin-left: 0; margin-right: 0; }
.hero-cta-row {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}
.hero-inner.split .hero-cta-row { justify-content: flex-start; }
@media (max-width: 960px) {
  .hero-inner.split .hero-cta-row { justify-content: center; }
}
.hero-trust {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: 13px; color: var(--ink-faint);
  flex-wrap: wrap; justify-content: center;
}
.hero-trust .stars { color: var(--gold); font-size: 16px; letter-spacing: 1px; }
.hero-trust .dot-sep { width: 4px; height: 4px; background: var(--ink-faint); border-radius: 50%; opacity: 0.5; }

/* ═══ BUTTONS ═══ */
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-family: 'Nunito', sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--salmon);
  color: white;
  box-shadow: 0 8px 20px rgba(232,115,107,0.32);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(232,115,107,0.42);
  background: var(--salmon2);
  text-decoration: none;
}
.btn-secondary {
  background: white;
  color: var(--navy);
  border-color: var(--line);
}
.btn-secondary:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--cream); text-decoration: none; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-danger {
  background: white;
  color: var(--salmon);
  border-color: var(--line);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  border-radius: 100px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px; font-weight: 700;
  cursor: pointer; text-decoration: none;
  border-width: 1.5px; border-style: solid;
  transition: all 0.15s;
}
.btn-danger:hover { background: var(--salmon); color: white; border-color: var(--salmon); text-decoration: none; }

/* ═══ SECTIONS ═══ */
.section {
  padding: 80px 32px;
  position: relative;
}
.section.section-tight { padding: 50px 32px; }
.section.section-cream { background: var(--cream); }
.section.section-navy { background: var(--navy); color: white; }
.section.section-navy .section-title { color: white; }
.section.section-navy .section-sub { color: rgba(255,255,255,0.75); }
.section-head {
  max-width: 780px; margin: 0 auto 48px;
  text-align: center;
}
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--salmon);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 16px;
}
.section-title em { font-style: italic; font-weight: 500; color: var(--salmon); }
.section-sub {
  font-size: 17.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ═══ FEATURE GRID ═══ */
.features-grid {
  max-width: 1240px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.features-grid.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 1000px; }
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid.cols-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
}
.feature {
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(26,26,46,0.15);
  border-color: var(--salmon);
  text-decoration: none;
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
  background: var(--pink-lt);
}
.feature-icon.ic-teal { background: var(--teal-lt); }
.feature-icon.ic-gold { background: var(--gold-lt); }
.feature-icon.ic-pink { background: var(--pink-lt); }
.feature-title {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature-desc {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 14px;
}
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.feature-list li {
  font-size: 13px;
  color: var(--ink-soft);
  display: flex; align-items: flex-start; gap: 8px;
}
.feature-list li::before {
  content: '✓';
  color: var(--salmon);
  font-weight: 800;
  flex-shrink: 0;
}
.feature-link {
  margin-top: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 800;
  color: var(--salmon);
}
.feature:hover .feature-link { gap: 10px; }

/* Category badge */
.cat-badge {
  display: inline-block;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--pink-lt);
  color: var(--salmon2);
  margin-bottom: 14px;
}
.cat-badge.cb-teal { background: var(--teal-lt); color: var(--teal2); }
.cat-badge.cb-gold { background: var(--gold-lt); color: #a78a20; }
.cat-badge.cb-navy { background: rgba(26,26,46,0.08); color: var(--navy); }

/* ═══ CATEGORY TABS (resources) ═══ */
.cat-tabs {
  max-width: 1240px; margin: 0 auto 40px;
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
}
.cat-tabs button {
  background: white;
  border: 1.5px solid var(--line);
  padding: 9px 18px;
  border-radius: 100px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: all 0.15s;
}
.cat-tabs button:hover { border-color: var(--salmon); color: var(--salmon); }
.cat-tabs button.active {
  background: var(--navy); border-color: var(--navy); color: white;
}

/* ═══ CLASS CARDS ═══ */
.class-card { position: relative; overflow: hidden; padding-left: 32px; }
.class-card .stripe {
  position: absolute; top: 0; left: 0;
  width: 6px; height: 100%;
  background: var(--salmon);
}
.class-card .meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.class-card .meta span { font-size: 12px; color: var(--ink-faint); }
.class-card .resource-list {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line);
}
.class-card .resource-list a {
  display: block; font-size: 13.5px;
  padding: 4px 0; color: var(--ink-soft); font-weight: 600;
}
.class-card .resource-list a:hover { color: var(--salmon); }

/* ═══ FORMS ═══ */
.form-label {
  display: block;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 6px;
  font-family: 'Nunito', sans-serif;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 14.5px;
  background: white;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--salmon);
  box-shadow: 0 0 0 4px rgba(232,115,107,0.12);
}
.form-textarea {
  resize: vertical; min-height: 200px;
  font-family: ui-monospace, "SF Mono", Monaco, monospace;
  font-size: 13.5px; line-height: 1.55;
}
.form-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.form-row .spacer { flex: 1; }

/* ═══ TABLES ═══ */
.table-wrap {
  background: white;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  overflow: hidden; overflow-x: auto;
  box-shadow: 0 2px 8px rgba(26,26,46,0.04);
}
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.tbl th {
  background: var(--cream);
  font-weight: 800;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.tbl tr:last-child td { border-bottom: none; }
.tbl td input, .tbl td select {
  padding: 6px 10px;
  font-size: 14px;
  border: 1.5px solid transparent;
  background: transparent;
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  color: var(--ink);
  width: 100%;
}
.tbl td input:focus, .tbl td select:focus {
  outline: none;
  border-color: var(--salmon);
  background: white;
}
.tbl td input[type="date"] { font-weight: 600; color: var(--salmon2); white-space: nowrap; min-width: 130px; }

.row-delete {
  background: transparent; border: none;
  color: var(--ink-faint); cursor: pointer;
  font-size: 16px; padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.15s;
}
.row-delete:hover { color: var(--salmon); background: var(--pink-lt); }

/* ═══ TOOL PAGE LAYOUT ═══ */
.tool-shell {
  max-width: 1240px; margin: 0 auto;
  padding: 40px 32px 80px;
}
.tool-header { margin-bottom: 32px; }
.tool-header .back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--ink-soft);
  margin-bottom: 16px;
}
.tool-header .back-link:hover { color: var(--salmon); text-decoration: none; }
.tool-header h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 600; letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.1;
}
.tool-header h1 em { font-style: italic; color: var(--salmon); font-weight: 500; }
.tool-header .subtitle { color: var(--ink-soft); font-size: 17px; max-width: 680px; line-height: 1.6; }
.tool-toolbar {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  margin-bottom: 16px;
}
.tool-toolbar .spacer { flex: 1; }
.tool-status {
  font-size: 13px; font-weight: 700; color: var(--ink-soft);
  padding: 8px 14px; background: var(--cream); border-radius: 100px;
}

.panel {
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(26,26,46,0.04);
}
.two-col {
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media (min-width: 980px) { .two-col { grid-template-columns: 1fr 1.6fr; } }

.hint-list {
  background: var(--cream);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 16px;
}
.hint-list strong { color: var(--ink); }
.hint-list ul { margin: 6px 0 0 0; padding-left: 18px; }
.hint-list li { margin: 3px 0; }
.hint-list em { color: var(--salmon); font-style: italic; font-family: 'Fraunces', serif; font-weight: 500; }

.empty-state {
  padding: 56px 24px;
  text-align: center;
  color: var(--ink-soft);
}
.empty-state .icon { font-size: 42px; margin-bottom: 12px; }
.empty-state h3 { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }

.placeholder-note {
  background: var(--gold-lt);
  border: 1.5px dashed var(--gold);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 13.5px;
  color: #8a6a18;
}
.placeholder-note code { background: rgba(255,255,255,0.6); padding: 1px 6px; border-radius: 4px; font-size: 12.5px; }

/* ═══ KANBAN ═══ */
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 12px; }
@media (max-width: 920px) { .kanban { grid-template-columns: 1fr; } }
.kanban .col {
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  min-height: 440px;
  display: flex; flex-direction: column;
}
.kanban .col-header {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 14px;
  border-bottom: 1.5px solid var(--line);
  margin-bottom: 14px;
}
.kanban .col-header .dot { width: 10px; height: 10px; border-radius: 50%; }
.kanban .col-header h3 {
  margin: 0; font-size: 14px; font-weight: 800;
  font-family: 'Nunito', sans-serif;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink);
}
.kanban .col-header .count {
  margin-left: auto; font-size: 12px; font-weight: 800;
  color: var(--ink-soft);
  background: white; border: 1.5px solid var(--line);
  padding: 2px 10px; border-radius: 100px;
}
.kanban .col[data-status="not_started"] .col-header .dot { background: var(--ink-faint); }
.kanban .col[data-status="in_progress"] .col-header .dot { background: var(--gold); }
.kanban .col[data-status="completed"] .col-header .dot { background: var(--teal); }
.tasks { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 60px; }
.task {
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: grab;
  box-shadow: 0 1px 3px rgba(26,26,46,0.04);
  transition: all 0.15s ease;
  position: relative;
}
.task:hover { box-shadow: 0 10px 20px -8px rgba(26,26,46,0.12); border-color: var(--salmon); transform: translateY(-1px); }
.task.dragging { opacity: 0.45; cursor: grabbing; }
.task .title {
  font-weight: 700; font-size: 14.5px;
  color: var(--navy);
  margin: 0 0 6px 0;
  padding-right: 18px;
  line-height: 1.35;
}
.task .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--ink-soft); }
.task .tag { background: var(--cream); padding: 2px 10px; border-radius: 100px; font-weight: 700; }
.task .due { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.task .due.overdue { color: var(--salmon); font-weight: 800; }
.task .due.soon { color: #a78a20; font-weight: 800; }
.task.priority-high { border-left: 3.5px solid var(--salmon); }
.task.priority-med  { border-left: 3.5px solid var(--gold); }
.task.priority-low  { border-left: 3.5px solid var(--teal); }
.task-delete {
  position: absolute; top: 8px; right: 8px;
  background: transparent; border: none; color: var(--ink-faint);
  cursor: pointer; font-size: 14px; padding: 2px 6px;
  border-radius: 6px; opacity: 0; transition: opacity 0.15s;
}
.task:hover .task-delete { opacity: 1; }
.task-delete:hover { color: var(--salmon); background: var(--pink-lt); }
.tasks.drag-over {
  background: rgba(232,115,107,0.06);
  border-radius: 12px;
  outline: 2px dashed var(--salmon);
  outline-offset: -4px;
}
.add-task-btn {
  width: 100%;
  padding: 10px;
  background: transparent;
  color: var(--ink-soft);
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.15s;
}
.add-task-btn:hover {
  color: var(--salmon); border-color: var(--salmon);
  background: rgba(232,115,107,0.04);
}

/* ═══ MODAL ═══ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(26,26,46,0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100; padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: white;
  border-radius: 20px;
  padding: 28px;
  width: 100%; max-width: 480px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.4);
  border: 1.5px solid var(--line);
}
.modal h3 {
  margin-top: 0; margin-bottom: 18px;
  font-family: 'Fraunces', serif;
  font-size: 24px; font-weight: 600;
  color: var(--navy);
}
.modal .form-label { margin-top: 14px; }
.modal .form-label:first-of-type { margin-top: 0; }
.modal .form-row { margin-top: 22px; justify-content: flex-end; }

/* ═══ GRADES LAYOUT ═══ */
.grade-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
@media (max-width: 920px) { .grade-layout { grid-template-columns: 1fr; } }

.course-list { display: flex; flex-direction: column; gap: 8px; }
.course-item {
  padding: 12px 14px;
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex; align-items: center; gap: 8px;
}
.course-item:hover { border-color: var(--salmon); }
.course-item.active {
  background: var(--pink-lt);
  border-color: var(--salmon);
}
.course-item .name { flex: 1; font-weight: 700; font-size: 14px; color: var(--navy); }
.course-item .grade-pill {
  font-size: 12px; font-weight: 800;
  padding: 3px 10px;
  background: var(--cream); border-radius: 100px;
  color: var(--ink);
}
.course-item.active .grade-pill { background: var(--salmon); color: white; }

.summary-card {
  background: linear-gradient(135deg, var(--salmon) 0%, var(--pink2) 100%);
  color: white;
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  box-shadow: 0 12px 30px -10px rgba(232,115,107,0.45);
}
.summary-card .big-grade {
  font-family: 'Fraunces', serif;
  font-size: 56px; font-weight: 600; line-height: 1;
  letter-spacing: -0.02em;
}
.summary-card .letter {
  font-family: 'Fraunces', serif; font-size: 32px; font-weight: 500;
  font-style: italic; opacity: 0.9; margin-left: 6px;
}
.summary-card .label {
  font-size: 11.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.15em;
  opacity: 0.85; margin-bottom: 6px;
}
.summary-card .breakdown { flex: 1; min-width: 220px; font-size: 14px; opacity: 0.96; line-height: 1.7; }
.summary-card .breakdown strong { font-weight: 800; }
.summary-card.whatif {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal2) 100%);
  box-shadow: 0 12px 30px -10px rgba(91,158,158,0.45);
}

.cat-block {
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 18px 22px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(26,26,46,0.04);
}
.cat-block .cat-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px; flex-wrap: wrap;
}
.cat-name-input {
  font-family: 'Fraunces', serif;
  font-size: 19px; font-weight: 600;
  color: var(--navy);
  flex: 1; min-width: 180px;
  border: 1.5px solid transparent;
  background: transparent;
  padding: 6px 10px;
  border-radius: 10px;
}
.cat-name-input:hover { border-color: var(--line); background: var(--cream); }
.cat-name-input:focus { outline: none; border-color: var(--salmon); background: white; }
.weight-input {
  width: 86px; text-align: center; font-weight: 800;
  padding: 8px 10px;
  border: 1.5px solid var(--line);
  border-radius: 100px; background: white;
  font-family: 'Nunito', sans-serif; font-size: 14px;
  color: var(--ink);
}
.weight-input:focus { outline: none; border-color: var(--salmon); box-shadow: 0 0 0 3px rgba(232,115,107,0.12); }
.cat-avg {
  font-size: 12.5px; font-weight: 700; color: var(--ink-soft);
  padding: 5px 12px; background: var(--cream); border-radius: 100px;
}
.cat-delete {
  background: transparent; border: none;
  color: var(--ink-faint); cursor: pointer;
  font-size: 16px; padding: 6px 10px;
  border-radius: 8px;
}
.cat-delete:hover { color: var(--salmon); background: var(--pink-lt); }

.assignments-table th { font-size: 11px; }
.assignments-table .num-input { width: 88px !important; text-align: right; font-weight: 700; }
.assignments-table .pct-cell { font-weight: 700; color: var(--ink-soft); text-align: right; width: 64px; }
.assignments-table tr.hypothetical { background: var(--teal-lt); }
.assignments-table .hypothetical-badge {
  font-size: 9.5px; font-weight: 800;
  background: var(--teal); color: white;
  padding: 2px 7px;
  border-radius: 100px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase; letter-spacing: 0.05em;
}

.weight-warning {
  background: var(--gold-lt);
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px; font-weight: 600;
  color: #8a6a18;
  margin-bottom: 16px;
}
.weight-ok {
  background: var(--teal-lt);
  border: 1.5px solid var(--teal);
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 13px; font-weight: 600;
  color: var(--teal2);
  margin-bottom: 16px;
}

/* ═══ FOOTER ═══ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 56px 32px 32px;
}
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-brand .logo { color: white; }
.footer-brand .logo .lt-main { color: white; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 14px; line-height: 1.6; margin-top: 14px; max-width: 320px; }
.footer-col h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: white; margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  padding: 4px 0;
  text-decoration: none;
}
.footer-col a:hover { color: white; text-decoration: none; }
.footer-bottom {
  max-width: 1240px; margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ═══ MISC HELPERS ═══ */
.text-muted { color: var(--ink-soft); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.hidden { display: none !important; }

/* ═══ HERO PRODUCT MOCK ═══ */
.product-card {
  background: white;
  border-radius: 22px;
  border: 1.5px solid var(--line);
  box-shadow: 0 30px 80px -20px rgba(26,26,46,0.25), 0 0 0 1px rgba(255,255,255,0.5) inset;
  overflow: hidden;
  transform: rotate(1.5deg);
  transition: transform 0.4s ease;
}
.product-card:hover { transform: rotate(0deg) translateY(-4px); }
.pc-topbar {
  background: var(--navy);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 3px solid var(--pink);
}
.pc-dot { width: 11px; height: 11px; border-radius: 50%; }
.pc-dot:nth-child(1) { background: #FF5F56; }
.pc-dot:nth-child(2) { background: #FFBD2E; }
.pc-dot:nth-child(3) { background: #27C93F; }
.pc-url {
  margin-left: auto;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  font-family: ui-monospace, monospace;
}
.pc-body {
  padding: 24px;
  background: var(--paper);
  min-height: 360px;
}
.pc-hero-mini {
  background: var(--pink);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
  position: relative; overflow: hidden;
}
.pc-hero-mini::before {
  content: '✨';
  position: absolute; top: 10px; right: 14px; font-size: 22px;
}
.pc-hero-mini h4 {
  font-family: 'Fredoka', sans-serif; font-weight: 600;
  font-size: 17px; color: var(--navy); margin-bottom: 4px;
}
.pc-hero-mini p { font-size: 12px; color: var(--navy-soft); opacity: 0.75; margin: 0; }
.pc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pc-tile {
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
  transition: all 0.2s;
}
.pc-tile:hover {
  transform: translateY(-3px);
  border-color: var(--salmon);
  box-shadow: 0 8px 16px rgba(232,115,107,0.15);
}
.pc-tile-icon { font-size: 22px; margin-bottom: 4px; }
.pc-tile-name { font-size: 10.5px; font-weight: 800; color: var(--navy); }

/* Floating badges */
.float-badge {
  position: absolute;
  background: white;
  border-radius: 100px;
  padding: 9px 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  font-size: 12.5px;
  font-weight: 800;
  display: flex; align-items: center; gap: 7px;
  z-index: 2;
}
.float-badge.fb-1 {
  top: -18px; left: -22px;
  border: 1.5px solid var(--teal);
  color: var(--teal2);
  transform: rotate(-6deg);
  animation: float 4s ease-in-out infinite;
}
.float-badge.fb-2 {
  bottom: 30px; right: -18px;
  border: 1.5px solid var(--salmon);
  color: var(--salmon);
  transform: rotate(4deg);
  animation: float2 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-10px) rotate(-6deg); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0) rotate(4deg); }
  50% { transform: translateY(-10px) rotate(4deg); }
}
@media (max-width: 960px) {
  .float-badge { display: none; }
  .product-card { transform: rotate(0); }
}

/* ═══ PRINT ═══ */
@media print {
  .nav, .site-footer, .no-print { display: none !important; }
  body { background: white; }
  .tool-shell { padding: 0; max-width: none; }
  .panel, .table-wrap { box-shadow: none; border: 1px solid #ccc; }
  .tbl th { background: #f0f0f0 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
