/* Polish pass on the AI demo, the student card, the weekly planner and every button.
   One neutral ramp, one green accent, Manrope, sentence case, Phosphor icons at 16px. */
:root {
  --p-ink: #0f1a14; --p-text: #2b332e; --p-muted: #5f6862; --p-faint: #8a918b;
  --p-surface: #ffffff; --p-raise: #f6f4ee; --p-line: rgba(15, 26, 20, 0.08);
  --p-green: #0b4a33; --p-green-hover: #0e5c40; --p-green-soft: #e6f0e8; --p-leaf: #3fa654;
  --p-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Shared resets inside the three blocks ---------- */
.demo-zoom-card, .student-card, .lesson-planner, .lesson-week-switch { font-family: Manrope, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.demo-zoom-card *, .student-card *, .lesson-planner * { letter-spacing: 0; font-style: normal; }
.demo-zoom-card .ph, .student-card .ph, .lesson-planner .ph, .lesson-week-switch .ph { font-size: 16px; line-height: 1; }

/* ---------- Buttons: one system everywhere ---------- */
.button, .lesson-week-switch button, .planner-filter, .assignment-board .board-heading button, .footer-top-btn {
  font-family: Manrope, system-ui, sans-serif; font-weight: 600; letter-spacing: 0; transition: background-color 300ms var(--p-ease), border-color 300ms var(--p-ease), color 300ms var(--p-ease), transform 300ms var(--p-ease);
}
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border-radius: 8px; border: 1px solid transparent; font-size: 16px; line-height: 24px; min-height: 0; height: auto; box-shadow: none; background: var(--p-green); color: #fff; }
.button:hover { background: var(--p-green-hover); transform: none; }
.button:active, .footer-top-btn:active, .planner-filter:active { transform: scale(0.98); }
.button::before, .button::after { content: none !important; }
.final-cta .button-light { background: #fff; color: var(--p-green); border-color: transparent; }
.final-cta .button-light:hover { background: var(--p-green-soft); }
.button .ph { font-size: 16px; transition: transform 300ms var(--p-ease); }
.button:hover .ph-arrow-right { transform: translateX(4px); }
.footer-top-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.16); color: inherit; font-size: 14px; line-height: 20px; }
.footer-top-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.28); }
.footer-links a { transition: color 300ms var(--p-ease); }

/* ---------- Student card ---------- */
.student-section .student-card { border-radius: 16px; border: 1px solid var(--p-line); background: var(--p-surface); box-shadow: 0 1px 2px rgba(15, 26, 20, 0.04), 0 24px 64px rgba(15, 26, 20, 0.08); }
.student-section .student-avatar { border-radius: 12px; background: #e8e5dc; color: var(--p-ink); font-weight: 600; box-shadow: none; }
.student-section .student-card .more { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--p-muted); }
.student-section .student-card h3 { font-family: Manrope, system-ui, sans-serif; font-size: 20px; line-height: 28px; font-weight: 600; color: var(--p-ink); }
.student-section .student-card > p { font-size: 14px; line-height: 20px; color: var(--p-muted); }
.student-section .student-stats > div span { font-size: 12px; line-height: 16px; font-weight: 400; color: var(--p-muted); text-transform: none; letter-spacing: 0; }
.student-section .student-stats b { font-size: 24px; line-height: 32px; font-weight: 600; color: var(--p-ink); }
.student-section .student-stats b small { font-size: 14px; font-weight: 500; color: var(--p-muted); }
.student-section .student-stats .bar { height: 4px; border-radius: 2px; background: #ebe8df; }
.student-section .student-stats .bar u { border-radius: 2px; background: var(--p-ink) !important; opacity: 0.55; }
.student-section .student-stats > div:first-child .bar u { background: #c7772a !important; opacity: 1; }
.student-section .ai-review { border-radius: 12px; border: 1px solid var(--p-line); background: var(--p-raise); box-shadow: none; }
.student-section .ai-review::before, .student-section .ai-review::after { content: none; }
.student-section .review-head b { font-size: 14px; font-weight: 600; color: var(--p-ink); }
.student-section .review-period { font-size: 12px; line-height: 16px; font-weight: 400; color: var(--p-muted); text-transform: none; letter-spacing: 0; background: transparent; border: 0; padding: 0; }
.student-section .ai-star { background: var(--p-green); border-radius: 6px; box-shadow: none; }
.student-section .ai-review p { font-size: 14px; line-height: 22px; color: var(--p-text); }
.student-section .review-foot span:first-child { font-size: 12px; color: var(--p-muted); text-transform: none; letter-spacing: 0; }
.student-section .review-chart i { background: #d9d5ca !important; border-radius: 2px; opacity: 1; box-shadow: none; }
.student-section .review-chart i:nth-last-child(-n+3) { background: #c7772a !important; }

/* ---------- Weekly planner ---------- */
.lesson-section .lesson-week-switch { gap: 8px; font-size: 14px; color: rgba(255, 255, 255, 0.82); text-transform: none; letter-spacing: 0; }
.lesson-section .lesson-week-switch span { text-transform: none; letter-spacing: 0; font-weight: 500; }
.lesson-section .lesson-week-switch button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.2); background: transparent; color: #fff; }
.lesson-section .lesson-week-switch button:hover { background: rgba(255, 255, 255, 0.08); }
.lesson-section .lesson-planner { border-radius: 16px; border: 1px solid var(--p-line); background: var(--p-surface); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18); }
.lesson-section .planner-top { padding: 16px 20px; border-bottom: 1px solid var(--p-line); }
.lesson-section .planner-top strong { font-size: 16px; font-weight: 600; color: var(--p-ink); }
.lesson-section .planner-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--p-raise); color: var(--p-ink); box-shadow: none; }
.lesson-section .planner-class { padding: 2px 8px; border-radius: 6px; border: 1px solid var(--p-line); background: transparent; font-size: 12px; line-height: 16px; color: var(--p-muted); }
.lesson-section .planner-filter { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--p-line); background: var(--p-surface); color: var(--p-ink); font-size: 14px; line-height: 20px; box-shadow: none; }
.lesson-section .planner-filter:hover { border-color: rgba(11, 74, 51, 0.4); }
.lesson-section .board-heading { padding-bottom: 12px; }
.lesson-section .board-heading span { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--p-muted); text-transform: none; letter-spacing: 0; }
.lesson-section .board-heading button { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--p-green); font-size: 12px; line-height: 16px; }
.lesson-section .board-heading button:hover { background: var(--p-green-soft); }
.lesson-section .lesson-row { gap: 16px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--p-line); background: var(--p-surface); box-shadow: none; }
.lesson-section .lesson-row + .lesson-row { margin-top: 8px; }
.lesson-section .lesson-row.lesson-current { background: var(--p-raise); border-color: rgba(11, 74, 51, 0.24); }
.lesson-section .lesson-row time b { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--p-ink); }
.lesson-section .lesson-row time small { font-size: 12px; color: var(--p-faint); }
.lesson-section .lesson-color { width: 3px; border-radius: 2px; background: #d9d5ca !important; box-shadow: none; }
.lesson-section .lesson-current .lesson-color { background: var(--p-green) !important; }
.lesson-section .lesson-row-copy h3 { font-family: Manrope, system-ui, sans-serif; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--p-ink); }
.lesson-section .lesson-row-copy p { font-size: 12px; line-height: 16px; color: var(--p-muted); }
.lesson-section .lesson-live { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; background: var(--p-green-soft); color: var(--p-green); font-size: 12px; line-height: 16px; font-weight: 500; border: 0; box-shadow: none; animation: none; }
.lesson-section .lesson-live::before { content: ""; width: 6px; height: 6px; border-radius: 9999px; background: var(--p-leaf); }
.lesson-section .lesson-room { padding: 2px 8px; border-radius: 6px; border: 1px solid var(--p-line); background: transparent; color: var(--p-muted); font-size: 12px; line-height: 16px; }
.lesson-section .planner-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 12px 16px; border-radius: 12px; border: 1px dashed rgba(15, 26, 20, 0.16); background: transparent; color: var(--p-text); font-size: 13px; line-height: 20px; }
.lesson-section .planner-note .ph { margin-top: 2px; color: var(--p-muted); }
.lesson-section .planner-note b { font-weight: 600; color: var(--p-ink); }
.lesson-section .assignment-board { border-left: 1px solid var(--p-line); background: transparent; }
.lesson-section .task-row { gap: 12px; padding: 12px 0; border-top: 1px solid var(--p-line); background: transparent; box-shadow: none; border-radius: 0; }
.lesson-section .task-row h3 { font-family: Manrope, system-ui, sans-serif; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--p-ink); }
.lesson-section .task-row p, .lesson-section .task-row small { font-size: 12px; line-height: 16px; color: var(--p-muted); }
.lesson-section .task-row time { font-size: 12px; color: var(--p-muted); }
.lesson-section .task-check { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; border: 1px solid rgba(15, 26, 20, 0.2); background: transparent; color: transparent; box-shadow: none; }
.lesson-section .task-check.done { background: var(--p-green); border-color: var(--p-green); color: #fff; }
.lesson-section .task-check .ph { font-size: 12px; }
.lesson-section .task-progress { height: 4px; border-radius: 2px; background: #ebe8df; }
.lesson-section .task-progress i { border-radius: 2px; background: var(--p-ink) !important; opacity: 0.55; }
.lesson-section .task-row:first-of-type .task-progress i { background: var(--p-green) !important; opacity: 1; }
.lesson-section .assignment-footer { font-size: 12px; line-height: 16px; color: var(--p-muted); border-top: 1px solid var(--p-line); }
.lesson-section .assignment-footer i { width: 6px; height: 6px; border-radius: 9999px; background: #c7772a; box-shadow: none; animation: none; }
.lesson-section .assignment-footer b { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--p-green); }
.lesson-section .planner-bottom { padding: 12px 20px; border-top: 1px solid var(--p-line); font-size: 12px; color: var(--p-faint); text-transform: none; letter-spacing: 0; }
.lesson-section .planner-bottom i { width: 6px; height: 6px; border-radius: 9999px; background: var(--p-leaf); box-shadow: none; animation: none; }

/* ---------- Final CTA button: same metrics as every other button ---------- */
.final-cta .button.button-light { padding: 8px 12px; border-radius: 8px; font-size: 16px; line-height: 24px; height: auto; min-height: 0; gap: 8px; }

/* ---------- Footer ---------- */
.footer .footer-links a { font-size: 14px; line-height: 20px; }
.footer .footer-bottom { align-items: center; }
.footer .footer-copy { font-size: 13px; line-height: 20px; }
.footer .footer-top-btn { padding: 4px 10px; font-size: 13px; line-height: 20px; gap: 6px; border-radius: 6px; }
.footer .footer-top-btn .ph { font-size: 14px; }

/* ---------- Steps: no numbers, one icon tile colour ---------- */
.steps-section .step { grid-template-columns: 48px 1fr auto; }
.steps-section .step-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #e6f0e8 !important; color: #0b4a33 !important; border: 0; box-shadow: none; font-size: 20px; font-weight: 400; }
.steps-section .step-icon .ph { font-size: 20px; }
@media (max-width: 700px) { .steps-section .step { grid-template-columns: 40px 1fr auto; } .steps-section .step-icon { width: 36px; height: 36px; border-radius: 10px; } .steps-section .step-icon .ph { font-size: 18px; } }

/* ---------- AI demo: a copy of the real app (sidebar, page header, composer) ---------- */
.demo-section .demo-zoom-card { padding: 0; border-radius: 16px; border: 1px solid var(--p-line); background: #fff; box-shadow: 0 1px 2px rgba(15, 26, 20, 0.04), 0 24px 64px rgba(15, 26, 20, 0.08); font-family: Manrope, system-ui, sans-serif; }
.demo-section .demo-zoom-card .demo-wrap { border: 0; border-radius: 0; background: #fff; grid-template-columns: 248px minmax(0, 1fr); }
.demo-section .dsb { display: flex; flex-direction: column; gap: 2px; padding: 12px; background: #f7f6f2; border-right: 1px solid var(--p-line); position: relative; }
.demo-section .dsb .ph { font-size: 16px; line-height: 1; }
.dsb-brand { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 6px; font-size: 15px; font-weight: 600; color: var(--p-ink); }
.dsb-tile { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #0b4a33; }
.dsb-tile img { width: 18px; height: 18px; }
.dsb-collapse { margin-left: auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--p-muted); }
.dsb-ws { display: flex; align-items: center; gap: 8px; height: 40px; margin: 8px 0 12px; padding: 0 8px; border: 1px solid var(--p-line); border-radius: 10px; background: #fff; font-size: 13px; font-weight: 500; color: var(--p-ink); }
.dsb-ws-mark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: #0b4a33; color: #fff; font-size: 10px; font-weight: 600; }
.dsb-ws .ph { margin-left: auto; color: var(--p-muted); }
.dsb-cap { padding: 12px 8px 4px; font-size: 12px; line-height: 16px; color: var(--p-faint); }
.dsb-sep { height: 1px; margin: 8px 8px 0; background: var(--p-line); }
.dsb-link { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 8px; border-radius: 8px; font-size: 14px; color: var(--p-text); }
.dsb-link .ph { width: 16px; color: var(--p-muted); }
.dsb-link.is-active { background: #ebe9e2; color: var(--p-ink); font-weight: 500; }
.dsb-link.is-active .ph { color: var(--p-ink); }
.dsb-user { margin-top: auto; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px; border-top: 1px solid var(--p-line); font-size: 13px; font-weight: 500; color: var(--p-ink); }
.dsb-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9999px; background: #e3e0d7; font-size: 11px; font-weight: 600; color: var(--p-ink); }
.demo-section .dch { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff; }
.dch-top { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 24px; border-bottom: 1px solid var(--p-line); flex: none; }
.dch-top b { font-size: 16px; font-weight: 600; color: var(--p-ink); }
.dch-tools { display: flex; align-items: center; gap: 8px; }
.dch-new { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 8px; background: #0b4a33; color: #fff; font-size: 13px; font-weight: 600; }
.dch-icon { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--p-line); color: var(--p-muted); }
.dch-icon em { position: absolute; top: 6px; right: 7px; width: 6px; height: 6px; border-radius: 9999px; background: #c7772a; }
.dch .ph { font-size: 16px; line-height: 1; }
.demo-section .chat-messages { flex: 1 1 0; min-height: 0; max-height: none; overflow-y: auto; overscroll-behavior: auto; padding: 24px 32px 12px; align-items: stretch; justify-content: flex-start; }
.demo-section .chat-welcome { margin: auto 0 24px; text-align: center; }
.demo-section .chat-welcome h3 { margin: 0 0 4px; font-family: Manrope, system-ui, sans-serif; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; color: var(--p-ink); }
.demo-section .chat-welcome p { margin: 0; font-size: 15px; line-height: 22px; color: var(--p-muted); }
.demo-section .suggestions { width: min(100%, 640px); margin: 0 auto auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.demo-section .suggestion { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--p-line); background: #fff; color: var(--p-text); font-family: Manrope, system-ui, sans-serif; font-size: 13px; line-height: 18px; font-weight: 500; text-align: left; transition: border-color 300ms var(--p-ease), background-color 300ms var(--p-ease); }
.demo-section .suggestion:hover { border-color: rgba(11, 74, 51, 0.35); background: #f6f8f4; transform: none; }
.demo-section .chat-message { align-self: flex-end; max-width: 72%; margin: 0 0 12px; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: #f1efe9; color: var(--p-ink); font-size: 14px; line-height: 20px; box-shadow: none; }
.demo-section .chat-response { align-self: flex-start; max-width: 86%; margin: 0 0 12px; padding: 0; background: transparent; border: 0; color: var(--p-ink); font-size: 14px; line-height: 22px; box-shadow: none; }
.demo-section .chat-response strong { font-weight: 600; }
.demo-section .response-label { display: block; margin-bottom: 4px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--p-muted); text-transform: none; letter-spacing: 0; }
.demo-section .typing { align-self: flex-start; color: var(--p-muted); font-size: 13px; }
.dc-form { flex: none; padding: 0 32px 24px; }
.dc-box { border: 1px solid rgba(15, 26, 20, 0.12); border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(15, 26, 20, 0.04), 0 8px 24px rgba(15, 26, 20, 0.05); transition: border-color 300ms var(--p-ease); }
.dc-box:focus-within { border-color: rgba(11, 74, 51, 0.45); }
.dc-box input { display: block; width: 100%; height: 48px; padding: 0 16px; border: 0; outline: 0; background: transparent; font-family: Manrope, system-ui, sans-serif; font-size: 16px; color: var(--p-ink); }
.dc-box input::placeholder { color: var(--p-faint); }
.dc-tools { display: flex; align-items: center; gap: 4px; padding: 0 8px 8px; }
.dc-class { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 9999px; border: 1px solid var(--p-line); background: #f7f6f2; font-size: 13px; font-weight: 500; color: var(--p-ink); }
.dc-class .ph { font-size: 12px; color: var(--p-muted); }
.dc-spacer { flex: 1; }
.dc-tool { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px; border-radius: 8px; font-size: 13px; color: var(--p-muted); }
.dc-icon { width: 32px; padding: 0; justify-content: center; }
.dc-send { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 9999px; background: #0b4a33; color: #fff; cursor: pointer; transition: background-color 300ms var(--p-ease), transform 300ms var(--p-ease); }
.dc-send:hover { background: #0e5c40; }
.dc-send:active { transform: scale(0.96); }
@media (max-width: 1020px) { .demo-section .demo-zoom-card .demo-wrap { grid-template-columns: 200px minmax(0, 1fr); } }
@media (max-width: 700px) {
  .demo-section .demo-zoom-card .demo-wrap { grid-template-columns: minmax(0, 1fr); }
  .demo-section .dsb { display: none; }
  .dch-top { padding: 0 16px; height: 48px; }
  .demo-section .chat-messages { padding: 16px; }
  .demo-section .suggestions { grid-template-columns: 1fr; }
  .dc-form { padding: 0 12px 12px; }
  .dc-tool:not(.dc-icon) { display: none; }
}
