@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #1e293b;
  --navy-deep: #0f172a;
  --navy-soft: #334155;
  --text: #1e293b;
  --muted: #64748b;

  --page-bg: #f8fafc;
  --paper: #ffffff;
  --rule: #e2e8f0;
  --rule-strong: #cbd5e1;

  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --blue-bg: #eff6ff;
  --blue-text: #1e40af;

  --green-bg: #ecfdf5;
  --green-text: #065f46;
  --purple-bg: #f5f3ff;
  --purple-text: #5b21b6;
  --orange-bg: #fff7ed;
  --orange-text: #9a3412;
  --rose-bg: #fff1f2;
  --rose-text: #9f1239;

  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-premium: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-frame: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--page-bg);
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

/* ---------- Shell / frame ---------- */
.app-shell {
  padding: 0;
  display: flex;
  justify-content: center;
}

.app-frame {
  width: 100%;
  max-width: 100%;
  background: #ffffff;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ---------- Nav ---------- */
.app-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: #ffffff;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.brand__mark svg {
  width: 22px;
  height: 22px;
}

.brand__name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__sub {
  font-weight: 600;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.tabs {
  display: flex;
  gap: 8px;
}

.tab {
  background: none;
  border: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}

.tab:hover {
  color: var(--navy);
  background: var(--page-bg);
}

.tab.is-active {
  color: var(--blue-text);
  background: var(--blue-bg);
}

.account {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account__chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--page-bg);
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text);
}

.account__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.account__signout {
  background: none;
  border: 1px solid var(--rule-strong);
  color: var(--muted);
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  transition: all .2s ease;
}

.account__signout:hover {
  background: var(--page-bg);
  color: var(--navy);
  border-color: var(--muted);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(circle at 80% 20%, #eff6ff 0%, #ffffff 50%);
  padding: 80px 40px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__inner {
  max-width: 800px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--blue-text);
  margin: 0 0 20px;
  font-weight: 700;
  background: var(--blue-bg);
  padding: 6px 16px;
  border-radius: 9999px;
  border: 1px solid #dbeafe;
}

.hero__title {
  font-weight: 800;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.03em;
  color: var(--navy-deep);
}

.hero__lede {
  color: var(--muted);
  font-size: 16.5px;
  max-width: 65ch;
  margin: 0 auto 32px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
}

.stat-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.stat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}

.stat-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-premium);
}

.stat-chip__val {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy-deep);
  margin-bottom: 4px;
}

.stat-chip__label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- Sections ---------- */
.section {
  padding: 80px 40px;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.section--alt {
  background: #ffffff;
  max-width: 100%;
}

.section__head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

.section__title {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy-deep);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.section__subtitle {
  color: var(--muted);
  font-size: 15.5px;
  margin: 0;
}

/* ---------- Grid Layouts ---------- */
.features-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: stretch;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 20px;
  background: #ffffff;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  transition: all .2s ease;
}

.feature-item:hover {
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-bg);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.feature-content h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0 0 6px;
}

.feature-content p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.commitment-card {
  background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.commitment-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--blue-text);
  margin: 0 0 20px;
}

.commitment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.commitment-list li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--blue-text);
}

.commitment-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-size: 16px;
}

/* ---------- Subjects ---------- */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.subject-card {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all .2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subject-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-premium);
  border-color: var(--rule-strong);
}

.subject-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--blue-bg);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.subject-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner__inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.cta-banner p {
  color: #94a3b8;
  font-size: 16px;
  margin: 0 0 36px;
}

.cta-contact-info {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.cta-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: #cbd5e1;
}

.cta-info-item svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 90%;
  max-width: 450px;
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast .toast__bar {
  background: var(--rose-bg);
  color: var(--rose-text);
  border: 1px solid #ffe4e6;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-premium);
  text-align: center;
}

.toast.is-success .toast__bar {
  background: var(--green-bg);
  color: var(--green-text);
  border-color: #d1fae5;
}

@keyframes slideDown {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Page Views ---------- */
.page {
  padding: 40px;
  background: var(--page-bg);
  flex: 1;
}

.view-head {
  margin-bottom: 30px;
}

.view-head h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
}

.muted {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

/* ---------- Card ---------- */
.card {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--rule);
  padding: 32px;
}

#bookingsWrap {
  padding: 0;
  overflow: hidden;
}

/* ---------- Table ---------- */
.table-scroll {
  overflow-x: auto;
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 800px;
}

.ledger-table thead th {
  text-align: left;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding: 18px 24px;
  border-bottom: 1px solid var(--rule-strong);
  background: var(--page-bg);
}

.ledger-table tbody td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.ledger-table tbody tr:last-child td {
  border-bottom: none;
}

.ledger-table tbody tr:hover {
  background: #f8fafc;
}

.cell-title {
  font-weight: 700;
  color: var(--navy-deep);
  font-size: 14.5px;
}

.cell-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.cell-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue-text);
  font-weight: 500;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: .02em;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.badge--requested { background: var(--purple-bg); color: var(--purple-text); }
.badge--booked { background: var(--blue-bg); color: var(--blue-text); }
.badge--confirmed { background: var(--green-bg); color: var(--green-text); }
.badge--pending { background: var(--rose-bg); color: var(--rose-text); }
.badge--partial { background: var(--orange-bg); color: var(--orange-text); }
.badge--cleared { background: var(--green-bg); color: var(--green-text); }

.fee-bar {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--rule);
  margin-top: 8px;
  overflow: hidden;
}

.fee-bar__fill {
  height: 100%;
  background: var(--blue);
  border-radius: 3px;
}

.row-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

/* ---------- Empty state ---------- */
.empty-state {
  padding: 80px 40px;
  text-align: center;
}

.empty-state__title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--navy-deep);
}

.empty-state .muted {
  max-width: 40ch;
  margin: 0 auto 24px;
}

/* ---------- Summary bar: dark navy CTA band ---------- */
.summary-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 20px 40px;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-bar__stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: auto;
}

.summary-bar__label {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #94a3b8;
}

#summaryText {
  font-weight: 700;
  font-size: 15.5px;
}

.summary-bar__progress {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 320px;
}

.summary-bar__track {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.summary-bar__fill {
  height: 100%;
  background: #3b82f6;
  border-radius: 3px;
}

.summary-bar #summaryProgressLabel {
  font-size: 12.5px;
  color: #cbd5e1;
  white-space: nowrap;
}

.summary-bar .btn--accent {
  background: #ffffff;
  color: var(--navy-deep);
}

.summary-bar .btn--accent:hover:not(:disabled) {
  background: #f1f5f9;
}

/* ---------- Modals ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  animation: fadeIn 0.2s ease-out;
}

.modal-card {
  position: relative;
  max-width: 520px;
  width: 100%;
  padding: 36px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--rule);
  animation: modalScale 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}

.modal-close:hover {
  background: var(--page-bg);
  color: var(--navy-deep);
}

.modal-card h3 {
  font-weight: 800;
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--navy-deep);
}

.modal-card form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.reschedule-log {
  margin-top: 24px;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}

.reschedule-log__item {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  padding: 8px 12px;
  background: var(--page-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
}

.reschedule-log__item strong {
  color: var(--navy-deep);
  font-weight: 700;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .15s ease;
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--navy);
  color: #ffffff;
}

.btn--primary:hover:not(:disabled) {
  background: var(--navy-deep);
}

.btn--secondary {
  background: #ffffff;
  border: 1px solid var(--rule-strong);
  color: var(--text);
}

.btn--secondary:hover:not(:disabled) {
  background: var(--page-bg);
  border-color: var(--muted);
}

.btn--accent {
  background: var(--blue-bg);
  color: var(--blue-deep);
  box-shadow: none;
}

.btn--accent:hover:not(:disabled) {
  background: #dbeafe;
}

.btn--ghost {
  background: #ffffff;
  border: 1px solid var(--rule-strong);
  color: var(--text);
  width: 100%;
}

.btn--ghost:hover:not(:disabled) {
  border-color: var(--muted);
  background: var(--page-bg);
}

.btn--text {
  background: none;
  border: none;
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
  transition: color .15s ease;
}

.btn--text:hover:not(:disabled) {
  color: var(--blue-deep);
}

.btn--text:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

/* ---------- Forms ---------- */
.form-card {
  max-width: 700px;
  margin: 0 auto;
}

.form-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}

.form-section:first-of-type {
  padding-top: 0;
}

.form-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.form-section__title {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-text);
  font-weight: 700;
  margin: 0 0 20px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--3 { grid-template-columns: 1fr 1fr 1fr; }

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.field input[type="text"],
.field input[type="number"],
.field input[type="date"],
.field select {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: #ffffff;
  outline: none;
  width: 100%;
  transition: all .15s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.field input:hover, .field select:hover {
  border-color: #94a3b8;
}

.field input:focus, .field select:focus {
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px #dbeafe, inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.field--checkbox {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  cursor: pointer;
}

.field--checkbox input {
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
}

.form-actions {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ---------- Signin View ---------- */
.signin-gate {
  max-width: 480px;
  margin: 40px auto;
  text-align: center;
}

.signin-gate h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--navy-deep);
}

.signin-gate .muted {
  margin-bottom: 30px;
  line-height: 1.6;
}

.google-btn-holder {
  min-height: 48px;
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.google-btn-holder > div {
  width: 100% !important;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}

.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ---------- Footer ---------- */
.app-footer {
  background: #f8fafc;
  border-top: 1px solid var(--rule);
  padding: 60px 40px 40px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1120px;
  margin: 0 auto 40px;
}

.footer-brand h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-deep);
  margin: 0 0 12px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
  max-width: 32ch;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-deep);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 20px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul li {
  font-size: 13.5px;
  color: var(--muted);
}

.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 30px;
  text-align: center;
  max-width: 1120px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .stat-chips {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .subjects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .app-nav {
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 16px;
  }
  .tabs {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .hero {
    padding: 60px 20px 40px;
  }
  .hero__ctas {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 32px;
  }
  .hero__ctas .btn {
    width: 100%;
  }
  .stat-chips {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .section {
    padding: 60px 20px;
  }
  .subjects-grid {
    grid-template-columns: 1fr;
  }
  .cta-contact-info {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page {
    padding: 24px 16px;
  }
  .grid--2, .grid--3 {
    grid-template-columns: 1fr;
  }
  .modal-card {
    padding: 24px;
  }
}