:root {
  --page: #f5f5f5;
  --surface: #ffffff;
  --surface-soft: #efefef;
  --ink: #55585d;
  --ink-deep: #35383d;
  --muted: #8d9299;
  --line: #e4e6e8;
  --accent: #76c6e9;
  --accent-deep: #3e99bf;
  --shadow: 0 20px 60px rgba(28, 34, 40, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Jost", sans-serif;
}

a {
  color: inherit;
}

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

.page-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px 10px 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: inline-grid;
  gap: 4px;
  width: 31px;
}

.brand-mark span {
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-deep) 100%);
}

.brand-mark span:nth-child(1) {
  width: 100%;
}

.brand-mark span:nth-child(2) {
  width: 78%;
}

.brand-mark span:nth-child(3) {
  width: 56%;
}

.brand-copy strong,
h1,
h2,
h3 {
  font-family: "League Spartan", sans-serif;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: clamp(2rem, 3vw, 2.5rem);
  letter-spacing: 0.03em;
  line-height: 0.9;
  color: #92979f;
}

.brand-copy strong span {
  color: var(--accent-deep);
}

.brand-copy small {
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.nav-left {
  justify-self: start;
}

.nav-right {
  justify-self: end;
}

.nav-link,
.button {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  line-height: 1;
}

.nav-link {
  color: var(--ink-deep);
}

.nav-link.ghost {
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.inline-form {
  margin: 0;
}

.flash {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.hero-stage,
.image-band {
  margin-bottom: 24px;
}

.hero-surface,
.band-surface {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background:
    linear-gradient(rgba(231, 233, 236, 0.8), rgba(231, 233, 236, 0.8)),
    url("/hero-scene.svg") center/cover no-repeat;
}

.band-surface {
  min-height: 620px;
  background:
    linear-gradient(rgba(231, 233, 236, 0.82), rgba(231, 233, 236, 0.82)),
    url("/hero-scene.svg") center 68% / cover no-repeat;
}

.hero-overlay,
.band-copy {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 50px));
  text-align: center;
}

.hero-overlay {
  bottom: 90px;
}

.band-copy {
  bottom: 80px;
}

.eyebrow {
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--ink-deep);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.92;
  font-weight: 800;
}

h1 {
  font-size: clamp(4.2rem, 8vw, 7.5rem);
  color: var(--accent);
  text-transform: lowercase;
}

h2 {
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  color: var(--accent);
  text-transform: lowercase;
}

h3 {
  font-size: 1.5rem;
  color: var(--ink-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

p,
li,
dd,
input,
textarea,
button,
blockquote {
  font-size: 1.08rem;
  line-height: 1.7;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.story-panel,
.service-card,
.dashboard-panel,
.auth-panel,
.message-card,
.stat-card,
.cta-band {
  background: var(--surface);
  box-shadow: var(--shadow);
}

.story-panel,
.service-card,
.dashboard-panel,
.auth-panel,
.message-card,
.stat-card {
  padding: 38px;
}

.story-panel h2 {
  margin-bottom: 18px;
  color: var(--ink-deep);
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.story-panel blockquote {
  margin: 0 0 16px;
  color: var(--ink-deep);
  font-size: 1.45rem;
  line-height: 1.3;
}

.band-copy p {
  width: min(620px, 100%);
  margin: 20px auto 0;
  color: var(--ink-deep);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 18px 26px 16px;
  border: 1px solid var(--ink-deep);
  background: var(--ink-deep);
  color: white;
  cursor: pointer;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink-deep);
}

.services-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.service-card p {
  margin-bottom: 0;
}

.cta-band {
  padding: 56px 30px;
  text-align: center;
}

.cta-band .button {
  margin-top: 28px;
}

.auth-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
}

.auth-panel {
  width: min(720px, 100%);
}

.auth-panel h1 {
  margin-bottom: 22px;
  font-size: clamp(3rem, 6vw, 4.6rem);
}

.stack {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--ink-deep);
}

input,
textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: #fbfbfb;
  color: var(--ink-deep);
  font: inherit;
}

textarea {
  resize: vertical;
}

.helper-copy {
  margin: 18px 0 0;
  color: var(--muted);
}

.dashboard-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin: 8px 0 24px;
}

.dashboard-head h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
}

.dashboard-head .lede {
  max-width: 720px;
}

.stat-card {
  min-width: 230px;
  text-align: center;
}

.stat-card strong {
  display: block;
  margin-bottom: 6px;
  font-family: "League Spartan", sans-serif;
  font-size: 4.2rem;
  line-height: 0.9;
  color: var(--accent);
}

.dashboard-grid,
.coach-grid {
  display: grid;
  gap: 24px;
}

.dashboard-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.coach-grid {
  grid-template-columns: 0.82fr 1.18fr;
}

.dashboard-panel-muted {
  background: var(--surface-soft);
}

.account-list,
.member-list,
.message-column {
  display: grid;
  gap: 14px;
}

.account-list {
  margin: 0;
}

.account-list div,
.member-row {
  padding: 0 0 14px;
  border-bottom: 1px solid #dadde0;
}

dt {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  color: var(--ink-deep);
}

dd {
  margin: 6px 0 0;
}

.count-copy {
  margin: 0 0 16px;
  color: var(--muted);
}

.message-card {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.message-meta p {
  margin: 0;
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .nav {
    justify-content: center;
  }

  .story-grid,
  .services-strip,
  .dashboard-grid,
  .coach-grid,
  .dashboard-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .page-shell {
    width: min(100% - 18px, 1240px);
    padding-top: 16px;
  }

  .hero-surface,
  .band-surface {
    min-height: 560px;
  }

  .hero-overlay,
  .band-copy {
    width: min(100% - 24px, 760px);
    bottom: 42px;
  }

  .story-panel,
  .service-card,
  .dashboard-panel,
  .auth-panel,
  .message-card,
  .stat-card,
  .cta-band {
    padding: 26px;
  }

  h1 {
    font-size: clamp(2.9rem, 14vw, 4.5rem);
  }

  h2 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }
}


.student-dashboard-head {
  align-items: center;
}

.student-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 24px;
}

.action-tile {
  min-height: 210px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 30px;
  background: var(--surface);
  color: var(--ink-deep);
  text-decoration: none;
  box-shadow: var(--shadow);
  border: 1px solid rgba(62, 153, 191, 0.18);
}

.action-tile strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "League Spartan", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.action-tile small {
  max-width: 300px;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.45;
}

.action-icon {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--accent-deep);
  font-size: 1.65rem;
}

.unread-badge {
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #d94f45;
  color: white;
  font-family: "Jost", sans-serif;
  font-size: 0.9rem;
  line-height: 1;
}

.student-workspace {
  grid-template-columns: 1.25fr 0.75fr;
  align-items: start;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.panel-title-row h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.compact-title-row {
  align-items: start;
}

.calendar-shell {
  border: 1px solid var(--line);
  background: #fbfbfb;
}

.calendar-days,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-days span {
  padding: 12px 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--muted);
}

.calendar-days span:last-child {
  border-right: none;
}

.calendar-grid > div {
  min-height: 92px;
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-deep);
}

.calendar-grid > div:nth-child(7n) {
  border-right: none;
}

.calendar-grid > div:nth-last-child(-n + 7) {
  border-bottom: none;
}

.muted-day {
  color: var(--muted) !important;
  background: #f1f2f3;
}

.session-day {
  display: grid;
  align-content: start;
  gap: 8px;
  background: rgba(118, 198, 233, 0.18);
  border: 2px solid var(--accent-deep) !important;
}

.session-day strong {
  display: block;
  padding: 7px 8px;
  background: var(--accent-deep);
  color: white;
  font-size: 0.78rem;
  line-height: 1.2;
}

.session-detail {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 18px;
  border-left: 3px solid var(--accent-deep);
  background: var(--surface-soft);
}

.session-detail strong {
  color: var(--ink-deep);
}

.session-detail p {
  margin: 6px 0 0;
}

.coach-only-note {
  margin-top: 24px;
}

.coach-only-note h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.helper-bot {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10;
  width: min(330px, calc(100% - 44px));
}

.helper-bot details {
  background: var(--ink-deep);
  color: white;
  box-shadow: var(--shadow);
}

.helper-bot summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.helper-bot summary::-webkit-details-marker {
  display: none;
}

.bot-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(118, 198, 233, 0.18);
}

.bot-panel {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
}

.bot-panel p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.45;
}

@media (max-width: 1020px) {
  .student-actions,
  .student-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .action-tile {
    min-height: 172px;
    padding: 24px;
  }

  .panel-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-grid > div {
    min-height: 70px;
    padding: 7px;
    font-size: 0.9rem;
  }

  .session-day strong {
    padding: 5px;
    font-size: 0.68rem;
  }

  .helper-bot {
    right: 12px;
    bottom: 12px;
    width: min(320px, calc(100% - 24px));
  }
}


.message-app-grid,
.call-room-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 24px;
  align-items: start;
}

.message-thread-list,
.call-notes-list,
.coach-replies {
  display: grid;
  gap: 16px;
}

.message-thread {
  display: grid;
  gap: 14px;
  padding: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.thread-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.thread-head h3 {
  margin: 0 0 4px;
}

.thread-head p,
.empty-copy {
  margin: 0;
  color: var(--muted);
}

.chat-bubble,
.coach-reply-row,
.call-note {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fbfbfb;
}

.chat-bubble span,
.coach-reply-row strong,
.call-note strong {
  color: var(--ink-deep);
  font-weight: 700;
}

.chat-bubble p,
.coach-reply-row p,
.call-note p {
  margin: 0;
}

.chat-bubble small,
.coach-reply-row small,
.call-note small {
  color: var(--muted);
}

.coach-bubble {
  margin-left: 34px;
  border-left: 4px solid var(--accent-deep);
}

.student-bubble {
  margin-right: 34px;
  border-left: 4px solid var(--ink-deep);
}

.call-room-card {
  min-height: 340px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
}

.reply-form {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.coach-message-column {
  margin-top: 24px;
}

.coach-transcription-panel {
  display: grid;
  gap: 18px;
}

.transcript-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.transcript-controls .button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.dashboard-shortcuts {
  justify-content: flex-start;
}

@media (max-width: 1020px) {
  .message-app-grid,
  .call-room-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .message-thread {
    padding: 20px;
  }

  .coach-bubble,
  .student-bubble {
    margin-left: 0;
    margin-right: 0;
  }
}


.assignment-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(53, 56, 61, 0.42);
}

.assignment-modal-panel {
  width: min(620px, 100%);
  padding: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.assignment-modal-panel h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.member-tutorial-modal {
  z-index: 30;
}

.app-tutorial-panel {
  width: min(860px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.app-tutorial-panel h2 {
  font-size: clamp(2.4rem, 5vw, 3.7rem);
}

.assignment-modal[hidden],
.app-tutorial-step[hidden],
.app-tutorial-modal[hidden] {
  display: none;
}

.app-tutorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.app-tutorial-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  background: #fbfbfb;
}

.app-tutorial-grid h3 {
  font-size: 1rem;
}

.app-tutorial-grid ol {
  margin: 12px 0 0;
  padding-left: 22px;
}

.app-tutorial-grid li {
  margin: 0 0 7px;
  font-size: 0.98rem;
  line-height: 1.45;
}

.app-tutorial-actions {
  justify-content: flex-start;
}

@media (max-width: 900px) {
  .app-tutorial-grid {
    grid-template-columns: 1fr;
  }
}

.assignment-list,
.assessment-form,
.admin-grid {
  display: grid;
  gap: 24px;
}

.assignment-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.assignment-card,
.assessment-question {
  display: grid;
  gap: 16px;
  padding: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.assignment-card.completed {
  background: var(--surface-soft);
}

.assessment-question {
  border: 1px solid var(--line);
}

.assessment-question legend {
  color: var(--ink-deep);
  font-weight: 700;
  line-height: 1.4;
}

.choice-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  text-transform: none;
  letter-spacing: 0;
}

.choice-row input {
  width: auto;
}

.admin-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
}

.json-editor {
  min-height: 560px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre;
}

.builder-tools,
.member-actions,
.mini-message-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.builder-tools {
  margin: 14px 0;
}

.client-search {
  margin: 12px 0 16px;
}

.searchable-client {
  display: grid;
  gap: 14px;
}

.member-actions {
  justify-content: flex-start;
}

.mini-message-form input {
  width: min(180px, 100%);
  padding: 10px 12px;
  font-size: 0.95rem;
}

.compact-button {
  min-width: 0;
  padding: 12px 15px 10px;
  font-size: 0.68rem;
}

@media (min-width: 1021px) {
  .student-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .assignment-list,
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .assignment-modal-panel,
  .assignment-card,
  .assessment-question {
    padding: 22px;
  }

  .mini-message-form input {
    width: 100%;
  }
}


.install-app-banner {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 11;
  min-width: 0;
  padding: 14px 18px 12px;
  border: 1px solid var(--ink-deep);
  background: var(--accent-deep);
  color: white;
  box-shadow: var(--shadow);
  font: inherit;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.install-app-banner[hidden] {
  display: none;
}

@media (max-width: 700px) {
  .install-app-banner {
    left: 12px;
    bottom: 78px;
  }
}


.worksheet-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.worksheet-tab {
  padding: 12px 14px 10px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink-deep);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.2;
}

.worksheet-tab.active {
  border-color: var(--accent-deep);
  background: var(--accent-deep);
  color: white;
}

.worksheet-editor {
  display: none;
  gap: 18px;
}

.worksheet-editor.active {
  display: grid;
}

.visual-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.question-list {
  display: grid;
  gap: 16px;
}

.question-editor {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fbfbfb;
}

.question-editor-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.question-editor select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink-deep);
  font: inherit;
}

.option-editor[hidden] {
  display: none;
}

@media (max-width: 700px) {
  .question-editor-head {
    grid-template-columns: 1fr;
  }
}


.admin-file-list,
.admin-single-editor {
  display: grid;
  gap: 18px;
}

.admin-file-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.admin-file-row h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.admin-file-row p {
  margin-bottom: 8px;
}

.admin-file-row span {
  color: var(--muted);
}

@media (max-width: 700px) {
  .admin-file-row {
    grid-template-columns: 1fr;
  }
}


.button.danger {
  border-color: #9f3028;
  background: #9f3028;
  color: white;
}

.delete-chain-form {
  display: flex;
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.worksheet-preview-panel {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid var(--line);
}

.preview-form {
  gap: 16px;
}
