:root {
  color-scheme: light;
  --ink: #17345f;
  --ink-soft: #3f5680;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.24);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --glass-border: rgba(255, 255, 255, 0.42);
  --blue: #5d9bef;
  --sky: #82c8f8;
  --violet: #8d6be8;
  --lavender: #b178ee;
  --aqua: #6be7e9;
  --amber: #ffd36d;
  --coral: #ff8a91;
  --shadow: 0 26px 70px rgba(24, 39, 92, 0.3);
  font-family: Inter, "SF Pro Display", "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #5d9bef;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 14%, rgba(107, 231, 233, 0.45), transparent 19rem),
    radial-gradient(circle at 88% 12%, rgba(255, 211, 109, 0.22), transparent 17rem),
    linear-gradient(150deg, #5d9bef 0%, #687ee9 42%, #8d6be8 72%, #b178ee 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.prototype-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0;
}

.phone {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: max(16px, env(safe-area-inset-top)) 18px calc(252px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.02) 28%),
    linear-gradient(155deg, #5d9bef 0%, #7876eb 50%, #9b68e5 100%);
}

.app-bar,
.class-card,
.journey,
.context-card,
.action-dock,
.drawer {
  border: 1px solid var(--glass-border);
  background: var(--glass);
  box-shadow: 0 18px 44px rgba(19, 42, 91, 0.18);
  backdrop-filter: blur(18px);
}

.app-bar {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 999px;
}

.app-bar div {
  text-align: center;
}

.app-bar p,
.eyebrow,
.section-heading p,
.drawer-title p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-bar h1 {
  margin: 1px 0 0;
  font-size: 1.02rem;
  line-height: 1.1;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  color: var(--white);
  background: rgba(23, 52, 95, 0.16);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.class-card {
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(23, 52, 95, 0.26), rgba(255, 255, 255, 0.17)),
    rgba(255, 255, 255, 0.2);
}

.class-card__top,
.section-heading,
.drawer-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

h2,
p {
  margin-top: 0;
}

.class-card h2 {
  max-width: 12ch;
  margin: 6px 0 0;
  font-size: 1.85rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.time-pill,
.section-heading span {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
}

.focus-strip {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
}

.focus-strip > span {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background:
    linear-gradient(135deg, var(--aqua), var(--amber));
  box-shadow: inset 0 1px 10px rgba(255, 255, 255, 0.55);
}

.focus-strip p,
.focus-strip strong,
.signal-grid span,
.step-list small,
.context-card small,
.skill-list small,
.student-list small,
.recommendation p,
.privacy-note {
  color: rgba(255, 255, 255, 0.82);
}

.focus-strip p {
  margin: 0 0 3px;
  font-size: 0.8rem;
  font-weight: 800;
}

.focus-strip strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.25;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.signal-grid article {
  min-width: 0;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
}

.signal-grid strong,
.signal-grid span {
  display: block;
}

.signal-grid strong {
  font-size: 1.18rem;
}

.signal-grid span {
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 700;
}

.journey {
  padding: 15px;
  border-radius: 18px;
}

.section-heading {
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 3px 0 0;
  font-size: 1.14rem;
}

.step-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.step-list button,
.context-card,
.dock-button,
.tap-grid button,
.capture-row button {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.step-list button {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  text-align: left;
}

.step-list .is-current button {
  background: rgba(255, 255, 255, 0.24);
}

.step-marker {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--aqua);
  font-weight: 900;
}

.step-list strong,
.step-list small,
.context-card strong,
.context-card small,
.dock-button strong,
.dock-button span {
  display: block;
}

.step-list strong {
  margin-bottom: 3px;
  font-size: 0.98rem;
}

.step-list small {
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.25;
}

.context-stack {
  display: grid;
  gap: 10px;
}

.context-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  text-align: left;
}

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--ink);
  background: var(--glass-strong);
  font-weight: 900;
}

.card-icon.notes {
  background: linear-gradient(135deg, var(--amber), var(--coral));
}

.action-dock {
  position: fixed;
  right: 18px;
  bottom: calc(188px + env(safe-area-inset-bottom));
  left: 18px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 394px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 999px;
}

.dock-button {
  min-height: 48px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 850;
}

.dock-button.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
}

.drawer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  max-width: 430px;
  min-height: 178px;
  max-height: 46vh;
  margin: 0 auto;
  overflow: auto;
  padding: 10px 18px max(18px, env(safe-area-inset-bottom));
  border-width: 1px 1px 0;
  border-radius: 24px 24px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.22)),
    rgba(53, 81, 166, 0.76);
}

.drawer-handle {
  width: 42px;
  height: 5px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.drawer-panel h2 {
  margin: 3px 0 0;
  font-size: 1.2rem;
}

.skill-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.skill-list label {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
}

.skill-list input {
  width: 22px;
  height: 22px;
  accent-color: var(--aqua);
}

.skill-list strong,
.skill-list small {
  display: block;
}

.primary-action {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: var(--aqua);
  font-weight: 900;
}

.tap-grid,
.capture-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.tap-grid button,
.capture-row button {
  border-radius: 14px;
  font-weight: 850;
}

.mini-timeline,
.recommendation,
.privacy-note {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
}

.mini-timeline p,
.recommendation p,
.privacy-note {
  margin-bottom: 0;
  line-height: 1.35;
}

.student-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.student-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
}

.student-list span {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--glass-strong);
  font-size: 0.78rem;
  font-weight: 900;
}

.student-list strong,
.student-list small {
  min-width: 0;
}

[hidden] {
  display: none !important;
}

@media (min-width: 760px) {
  .prototype-shell {
    padding: 30px;
  }

  .phone {
    min-height: 860px;
    max-height: 920px;
    border: 10px solid #15223f;
    border-radius: 42px;
    box-shadow: var(--shadow);
  }

  .action-dock,
  .drawer {
    max-width: 410px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .drawer-panel {
    animation: panel-in 180ms ease-out;
  }

  .dock-button,
  .step-list button,
  .context-card {
    transition: transform 160ms ease, background-color 160ms ease;
  }

  .dock-button:active,
  .step-list button:active,
  .context-card:active {
    transform: scale(0.98);
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
