/* My Magic UW website. Structure and content are the marketing draft (marketing/Website
   Directions.dc.html 2a and the About Us, FAQ and Pricing drafts). Brand colours follow the
   wizard palette built on UW–Madison cardinal (marketing/logo-design-elements/README.md), so the
   page, the wizard and the product's warm shell read as one family. Ink, surfaces, lines and
   fonts come from the product (docs/design/tokens.css, loaded as /assets/tokens.css). White stays
   white. Fonts: Karma Medium 500 for editorial roles, Geist and Geist Mono for interface roles. */
@font-face {
  font-family: "Karma";
  src: url("/assets/fonts/Karma-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
:root {
  /* Wizard palette */
  --cardinal: #c5050c; /* UW cardinal: robe, primary actions, brand marks */
  --deep-red: #9b0000; /* hat; start of the dark rooms */
  --night-cardinal: #5c0b10; /* dark tiles; headings on tinted rooms */
  --star-yellow: #f7c440; /* stars and the vivid yellow rooms */
  --blush: #faebec; /* 8% cardinal on white: pale rooms and chips */
  --rose: #f6d9da; /* 15% cardinal on white: Know */
  --peach: #fde6d8; /* 15% ember orange on white: Act */
  /* The wizard's whole outfit (hat, robe, sleeves) reads this one variable; set it on :root to
     theme the wizard. Dark-background marks and tiles derive from it below. */
  --wizard-robe: var(--cardinal);

  --ink: var(--magic-ink);
  --navy: var(--night-cardinal); /* headings on tinted rooms, 13.9:1 on white; draft #1e2757 */
  --blue: var(--cardinal); /* brand marks and wordmark, 6.2:1 on white; draft #2c55b8 */
  --blue-fill: var(--cardinal); /* white text 6.2:1; draft #2c55b8 */
  --gold-fill: var(--star-yellow); /* ink text 9.5:1; draft #f7c440 */
  --dark-fill: linear-gradient(135deg, var(--deep-red), var(--night-cardinal)); /* white 8.7:1 or more; draft navy */
  --accent-on-dark: var(--star-yellow); /* 5.4:1 or more on the dark rooms */
  --focus: var(--ink);
  --focus-on-dark: #fff;
  --sky: var(--blush); /* draft #e8eefc */
  --butter: var(--magic-fill-schedule-event); /* draft #fdf0c8 */
  --paper: var(--magic-surface-quiet); /* draft #f5f2ea */
  --mist: var(--magic-surface-quiet); /* draft #f3f3f1 */
  --rule: var(--magic-line-quiet); /* draft #e3dccb */
  --serif: var(--magic-font-editorial);
  --serif-weight: 500;
  --sans: "Geist", var(--magic-font-interface);
  --mono: "Geist Mono", ui-monospace, monospace;
  --round: var(--serif);
  --radius-room: 36px;
  --pad-room: clamp(28px, 5vw, 64px);
}

/* Derived wizard colours follow --wizard-robe where color-mix is supported; otherwise the SVGs'
   own fallbacks apply (#d44449 and #5c0b10, the cardinal values). */
@supports (color: color-mix(in srgb, red, blue)) {
  :root {
    --wizard-robe-on-dark: color-mix(in srgb, var(--wizard-robe) 75%, #fff);
    --wizard-tile: color-mix(in srgb, var(--wizard-robe) 47%, #000);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  opacity: 0.8;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
img,
svg {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
  color: inherit;
}
/* Inside the dark rooms the ink ring would vanish, so focus turns white there. */
.bg-navy :focus-visible,
.plan :focus-visible,
.ask :focus-visible {
  outline-color: var(--focus-on-dark);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.page,
.rooms {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  padding: 8px 20px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .wizard {
  height: 38px;
  width: auto;
}
.brand span {
  font-family: var(--round);
  font-weight: var(--serif-weight);
  font-size: 24px;
  color: var(--blue);
}
.site-nav {
  display: flex;
  gap: 8px 28px;
  font-size: 16px;
  font-weight: 500;
  flex-wrap: wrap;
}
.site-nav a[aria-current="page"] {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
}

/* Header account button: an outlined person when signed out (links to sign in), filled when
   signed in (opens a small menu). */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-menu {
  position: relative;
}
.account-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--rule);
  background: #fff;
  color: var(--blue);
  cursor: pointer;
  padding: 0;
}
.account-button[aria-current="page"] {
  border-color: var(--blue);
}
.account-button[data-signed-in] {
  background: var(--blue-fill);
  border-color: transparent;
  color: #fff;
}
.account-button[hidden],
.account-popover[hidden] {
  display: none;
}
.account-button:focus-visible,
.account-popover :focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.account-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  min-width: 220px;
  max-width: min(300px, calc(100vw - 32px));
  background: #fff;
  border-radius: 18px;
  padding: 6px;
  box-shadow: 0 20px 40px -16px rgba(41, 35, 31, 0.3);
  display: flex;
  flex-direction: column;
}
.account-popover-email {
  margin: 0 0 4px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  color: var(--magic-ink-muted);
  overflow-wrap: anywhere;
}
.account-popover a,
.account-popover button {
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.account-popover a:hover,
.account-popover button:hover {
  background: var(--blush);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 18px;
  padding: 18px 30px;
  cursor: pointer;
  text-align: center;
}
.btn-sm {
  font-size: 15px;
  padding: 12px 22px;
}
.btn-blue {
  background: var(--blue-fill);
  color: #fff;
}
.btn-navy {
  background: var(--dark-fill);
  color: #fff;
}
.btn-white {
  background: #fff;
  font-weight: 500;
  padding: 18px 26px;
}
.btn-yellow {
  background: var(--gold-fill);
  color: var(--ink);
}
.btn-sky {
  background: var(--sky);
  color: var(--navy);
}
.btn-soon {
  cursor: default;
}
.btn-soon:hover {
  opacity: 1;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.note {
  font-size: 15px;
  line-height: 1.5;
}

/* Shared room and type */
.room {
  border-radius: var(--radius-room);
  padding: var(--pad-room);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.display {
  font-family: var(--serif);
  font-weight: var(--serif-weight);
  font-size: clamp(44px, 6.6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
.title {
  font-family: var(--serif);
  font-weight: var(--serif-weight);
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.05;
  color: var(--navy);
  margin: 0;
  text-wrap: balance;
}
.lede {
  font-size: 20px;
  line-height: 1.5;
  margin: 0;
  text-wrap: pretty;
}
.body {
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
  text-wrap: pretty;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bg-yellow {
  background: var(--gold-fill);
}
.bg-sky {
  background: var(--sky);
}
.bg-rose {
  background: var(--rose);
}
.bg-peach {
  background: var(--peach);
}
.bg-butter {
  background: var(--butter);
}
.bg-paper {
  background: var(--paper);
}
.bg-navy {
  background: var(--dark-fill);
  color: #fff;
}
.bg-navy .title {
  color: #fff;
}

/* Home: hero */
.hero {
  padding: 72px var(--pad-room) 0;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  overflow: hidden;
  min-height: 560px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 72px;
}
.hero-copy .lede {
  max-width: 480px;
}
.hero-art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-art .wizard {
  height: 500px;
  width: auto;
  margin-bottom: -30px;
}

/* Home: Know / Act / Practice */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pillar {
  border-radius: var(--radius-room);
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pillar h2 {
  font-family: var(--serif);
  font-weight: var(--serif-weight);
  font-size: 40px;
  margin: 0;
  color: var(--navy);
}
.pillar.bg-blue {
  background: var(--blue-fill);
  color: #fff;
}
.pillar.bg-blue h2 {
  color: #fff;
}

/* Home: product card (illustrative) */
.today {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 20px 40px -20px rgba(41, 35, 31, 0.2);
}
.today-label {
  font-family: var(--mono);
  font-size: 13px;
}
.today-row {
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 14px 16px;
}
.today-row strong {
  display: block;
}
.today-row span {
  font-size: 14px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  padding: 56px var(--pad-room);
}
.split .stack {
  gap: 18px;
}

/* Home: assignment spaces demo */
.spaces {
  padding: 56px var(--pad-room);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.spaces-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 48px;
  align-items: end;
}
.stage {
  position: relative;
  height: 420px;
}
.stage .today {
  position: absolute;
  left: 0;
  top: 40px;
  width: 340px;
  padding: 20px;
}
.stage .today-row.pick {
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.stage[data-step="2"] .today-row.pick,
.stage[data-step="3"] .today-row.pick {
  background: var(--blue-fill);
  color: #fff;
}
.stage[data-step="2"] .today-row.pick {
  transform: scale(0.98);
}
.win {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 50px -20px rgba(41, 35, 31, 0.35);
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition: opacity 0.4s, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.stage[data-step="3"] .win {
  opacity: 1;
  transform: none;
}
.win-canvas {
  left: 396px;
  top: 0;
  width: 352px;
  height: 200px;
}
.win-book {
  left: 396px;
  top: 216px;
  width: 352px;
  height: 204px;
  background: var(--magic-surface-raised);
  transition-delay: 0.15s;
}
.win-tex {
  left: 764px;
  top: 0;
  width: 348px;
  height: 420px;
  box-shadow: 0 24px 50px -20px rgba(41, 35, 31, 0.45);
  transition-delay: 0.3s;
}
.tex {
  margin: 0;
  padding: 14px 16px 14px 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink);
  counter-reset: line;
  overflow: hidden;
  white-space: pre;
}
.tex-line {
  display: block;
  counter-increment: line;
}
.tex-line::before {
  content: counter(line);
  display: inline-block;
  width: 36px;
  padding-right: 12px;
  text-align: right;
  color: var(--magic-ink-muted);
}
.tex-cmd {
  color: var(--cardinal);
}
.tex-comment {
  color: var(--magic-ink-muted);
  font-style: italic;
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  font-weight: 500;
}
.win-book .win-bar {
  background: var(--magic-fill-tag-candidate);
  border-bottom: 0;
}
.win-dot {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}
.win-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.win-body strong {
  font-size: 17px;
}
.win-book .win-body {
  font-family: var(--serif);
  font-size: 15px;
}
.win-book .win-body strong {
  font-weight: 500;
  font-size: 19px;
}
.cursor {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  left: 520px;
  top: 380px;
  transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1), top 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.15s;
}
.stage:not([data-step="0"]) .cursor {
  left: 250px;
  top: 190px;
}
.stage[data-step="2"] .cursor {
  transform: scale(0.85);
}

/* Home: study notebook carousel */
.notebook {
  padding: 56px 0 56px var(--pad-room);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.notebook-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding-right: var(--pad-room);
}
.arrows {
  display: flex;
  gap: 10px;
}
.arrow {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: var(--navy);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.arrow img { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .arrow:hover { box-shadow: inset 0 0 0 1px var(--magic-line-quiet); } }
.cards {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 var(--pad-room) 0 0;
  margin: 0;
  list-style: none;
  scrollbar-width: none;
}
.cards::-webkit-scrollbar {
  display: none;
}
.card {
  flex: 0 0 250px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 28px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-art {
  height: 170px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-text {
  padding: 0 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card h3 {
  font-family: var(--serif);
  font-weight: var(--serif-weight);
  font-size: 22px;
  color: var(--navy);
  margin: 0;
}
.card p {
  font-size: 15px;
  margin: 0;
}

/* Home: AI providers */
.ai {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  align-items: center;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.chip {
  background: rgba(255, 255, 255, 0.12);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chip img {
  width: 22px;
  height: 22px;
}
.ai .body {
  width: 100%;
  font-size: 17px;
  margin-top: 10px;
}

/* Closing call to action */
.closer {
  border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, var(--gold-fill) border-box;
  border-radius: var(--radius-room);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  scroll-margin-top: 20px;
}
.wizard-stage {
  position: relative;
  width: 81px;
  height: 130px;
  animation: wizStroll 7s ease-in-out infinite;
}
.closer .wizard {
  height: 130px;
  width: auto;
}
.wizard-stage .arm-left {
  animation: wizWaveLoop 7s ease-in-out infinite;
}
.wizard-stage .arm-right {
  animation: wizCastLoop 7s ease-in-out infinite;
}
.spell {
  position: absolute;
  left: 58px;
  top: 34px;
  width: 44px;
  height: 44px;
  pointer-events: none;
}
.spell svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.spark {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  fill: var(--star-yellow);
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.spark.s1 {
  animation: wizSpark 7s infinite;
  transform: translate(6px, -6px) scale(0.5);
}
.spark.s2 {
  animation: wizSpark 7s 0.18s infinite;
  fill: var(--cardinal);
}
/* On the dark FAQ panel the wizard stage centres itself and the red spark turns white. */
.ask .wizard-stage {
  align-self: center;
}
.ask .spark {
  stroke: #1a0d0b;
}
.ask .spark.s2 {
  fill: #fff;
}
.spark.s3 {
  animation: wizSpark 7s 0.36s infinite;
}
/* 0-26% stroll side to side, 26-46% wave, 52-80% raise the right arm and cast, then settle. */
@keyframes wizStroll {
  0%,
  100% {
    transform: translateX(0) rotate(0);
  }
  6% {
    transform: translateX(-12px) translateY(-3px) rotate(-3deg);
  }
  12% {
    transform: translateX(-18px) rotate(0);
  }
  19% {
    transform: translateX(12px) translateY(-3px) rotate(3deg);
  }
  26% {
    transform: translateX(0) rotate(0);
  }
  60% {
    transform: translateY(0);
  }
  64% {
    transform: translateY(-6px);
  }
  68% {
    transform: translateY(0);
  }
}
@keyframes wizWaveLoop {
  0%,
  26%,
  46%,
  100% {
    transform: rotate(-40deg);
  }
  30%,
  38% {
    transform: rotate(25deg);
  }
  34%,
  42% {
    transform: rotate(-10deg);
  }
}
@keyframes wizCastLoop {
  0%,
  50%,
  84%,
  100% {
    transform: rotate(40deg);
  }
  58%,
  76% {
    transform: rotate(-55deg);
  }
  64% {
    transform: rotate(-70deg);
  }
}
@keyframes wizSpark {
  0%,
  61% {
    opacity: 0;
    transform: translate(0, 0) scale(0.2) rotate(0);
  }
  65% {
    opacity: 1;
    transform: translate(4px, -10px) scale(0.55) rotate(45deg);
  }
  72% {
    opacity: 1;
    transform: translate(14px, -22px) scale(0.35) rotate(120deg);
  }
  78%,
  100% {
    opacity: 0;
    transform: translate(20px, -30px) scale(0.1) rotate(180deg);
  }
}
.closer h2 {
  font-family: var(--serif);
  font-weight: var(--serif-weight);
  font-size: clamp(34px, 4vw, 48px);
  margin: 0;
  text-wrap: balance;
}
.closer.navy h2 {
  color: var(--navy);
}
.closer .body {
  max-width: 520px;
}
.closer .btn-row {
  justify-content: center;
}

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 16px;
  flex-wrap: wrap;
  padding: 12px 20px 20px;
  font-size: 14px;
}
.site-footer nav {
  display: flex;
  gap: 24px;
}
.site-footer small {
  display: block;
  font-size: 13px;
  color: var(--magic-ink-muted);
  margin-top: 4px;
}

/* Page heroes */
.page-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.page-hero .display {
  font-size: clamp(44px, 5.6vw, 72px);
  color: var(--navy);
  max-width: 880px;
}
.page-hero .lede {
  max-width: 620px;
}
.pill {
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
}

/* Pricing */
.pricing {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 64px var(--pad-room) 56px;
}
.plan {
  background: var(--dark-fill);
  color: #fff;
  border-radius: 32px;
  padding: clamp(32px, 4vw, 48px) clamp(24px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 40px;
  align-items: start;
}
.plan h2 {
  font-family: var(--serif);
  font-weight: var(--serif-weight);
  font-size: 44px;
  line-height: 1.05;
  margin: 0;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.price b {
  font-family: var(--serif);
  font-weight: var(--serif-weight);
  font-size: 88px;
  line-height: 1;
}
.price span {
  font-size: 17px;
}
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 17px;
  line-height: 1.45;
}
.checks li {
  display: flex;
  gap: 12px;
}
.checks li::before {
  content: "✓";
  color: var(--accent-on-dark);
  font-weight: 700;
}
.wiz-cta {
  position: relative;
  margin-top: 112px;
  max-width: 360px;
}
.wiz-peek {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 180px;
  height: 180px;
  margin-left: -90px;
  overflow: hidden;
  pointer-events: none;
}
.wiz-peek > div {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: center;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.wiz-peek svg {
  width: 81px;
  height: 130px;
}
.wiz-cta:hover .wiz-peek > div {
  transform: translateY(-30px);
}
.wiz-cta:hover .arm-left {
  animation: wizWaveL 0.24s 0.3s ease-in-out infinite;
}
.wiz-cta:hover .arm-right {
  animation: wizWaveR 0.24s 0.3s ease-in-out infinite;
}
.wiz-cta .btn {
  position: relative;
  width: 100%;
}
.pipeline {
  background: var(--mist);
  border-radius: 28px;
  padding: 36px clamp(24px, 3.5vw, 44px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 36px;
  align-items: start;
  color: var(--magic-ink-prose);
  scroll-margin-top: 20px;
}
.pipeline h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.pipeline .checks {
  font-size: 15px;
  gap: 10px;
}
.pipeline .checks li::before {
  color: inherit;
  font-weight: 400;
}
.btn-outline {
  align-self: flex-start;
  border: 1.5px solid var(--magic-ink-muted);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
}

/* About */
.about-hero {
  padding: 72px var(--pad-room) 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
  overflow: hidden;
}
.about-hero .display {
  font-size: clamp(44px, 5.4vw, 68px);
  line-height: 1.03;
}
.about-hero .hero-copy {
  gap: 24px;
}
.about-hero .lede {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.55;
}
.about-hero .lede + .lede {
  margin-top: -8px;
}
.about-hero .hero-art .wizard {
  height: 380px;
  margin-bottom: -24px;
}
.team {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 44px 20px 24px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.person {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.person img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 28px;
  background: var(--sky);
}
.person h3 {
  font-family: var(--serif);
  font-weight: var(--serif-weight);
  font-size: 24px;
  color: var(--navy);
  margin: 0;
}
.person-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px;
}
.person-info p {
  margin: 0;
  font-size: 15px;
}
.person-info .major {
  font-size: 16px;
  font-weight: 500;
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 4px;
}
.links a {
  background: var(--sky);
  color: var(--navy);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}
.entries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.entry {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.entry .eyebrow {
  font-size: 12px;
  color: var(--accent-on-dark);
}
.entry.lead {
  background: var(--gold-fill);
  color: var(--ink);
}
.entry.lead .eyebrow {
  color: inherit;
}
.entry h3 {
  font-family: var(--serif);
  font-weight: var(--serif-weight);
  font-size: 28px;
  line-height: 1.1;
  margin: 0;
}
.entry p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
.head-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 32px;
  align-items: end;
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.faq-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.faq-head .display {
  font-size: clamp(44px, 5.6vw, 72px);
  color: var(--navy);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter {
  border: 0;
  cursor: pointer;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  background: #fff;
  color: var(--navy);
}
.filter[aria-pressed="true"] {
  background: var(--dark-fill);
  color: #fff;
}
.faq-body {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 20px;
  align-items: start;
}
.questions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qa {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
}
.qa[hidden] {
  display: none;
}
.qa summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  list-style: none;
  font-family: var(--serif);
  font-weight: var(--serif-weight);
  font-size: 22px;
  line-height: 1.25;
  color: var(--navy);
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary::after {
  content: "+";
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 22px;
  background: var(--sky);
  transition: transform 0.2s, background 0.2s;
}
.qa[open] summary::after {
  background: var(--gold-fill);
  transform: rotate(45deg);
}
.qa p {
  margin: 0;
  padding: 0 28px 26px;
  font-size: 17px;
  line-height: 1.6;
  max-width: 680px;
  text-wrap: pretty;
}
.ask {
  background: var(--dark-fill);
  color: #fff;
  border-radius: 28px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  position: sticky;
  top: 20px;
}
.ask .wizard {
  height: 130px;
  width: auto;
  align-self: center;
}
.ask h2 {
  font-family: var(--serif);
  font-weight: var(--serif-weight);
  font-size: 28px;
  line-height: 1.15;
  margin: 0;
}
.ask p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
.ask .btn {
  font-size: 16px;
  padding: 14px 22px;
}
.ask .underline {
  font-size: 15px;
  text-decoration: underline;
}

/* Illustration motion from the design export */
@keyframes mcDraw {
  0%,
  12% {
    stroke-dashoffset: 30;
  }
  32%,
  85% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 30;
  }
}
@keyframes mcFlip {
  0%,
  38% {
    transform: scaleX(1);
  }
  48% {
    transform: scaleX(0);
  }
  58%,
  88% {
    transform: scaleX(1);
  }
  98% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}
@keyframes mcFaceA {
  0%,
  47% {
    opacity: 1;
  }
  48%,
  97% {
    opacity: 0;
  }
  98%,
  100% {
    opacity: 1;
  }
}
@keyframes mcFaceB {
  0%,
  47% {
    opacity: 0;
  }
  48%,
  97% {
    opacity: 1;
  }
  98%,
  100% {
    opacity: 0;
  }
}
@keyframes mcBar {
  0%,
  100% {
    transform: scaleY(0.3);
  }
  50% {
    transform: scaleY(1);
  }
}
@keyframes mcSweep {
  0%,
  10% {
    transform: scaleX(0);
  }
  40%,
  85% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}
@keyframes mcPop {
  0%,
  20% {
    transform: scale(0) rotate(-40deg);
  }
  34% {
    transform: scale(1.25) rotate(0);
  }
  44%,
  85% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes wizWaveL {
  0%,
  100% {
    transform: rotate(-40deg);
  }
  50% {
    transform: rotate(25deg);
  }
}
@keyframes wizWaveR {
  0%,
  100% {
    transform: rotate(40deg);
  }
  50% {
    transform: rotate(-25deg);
  }
}

/* Tablet and phone */
@media (max-width: 1180px) {
  .stage {
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .stage .today,
  .win {
    position: static;
    width: auto;
    height: auto;
    opacity: 1;
    transform: none;
  }
  .stage .today {
    grid-row: span 2;
  }
  .win-tex {
    grid-column: 1 / -1;
  }
  .cursor {
    display: none;
  }
}
@media (max-width: 900px) {
  .hero,
  .split,
  .spaces-head,
  .ai,
  .faq-body {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 48px;
    min-height: 0;
  }
  .hero-copy {
    padding-bottom: 0;
  }
  .hero-art .wizard {
    height: 300px;
  }
  .pillars {
    grid-template-columns: 1fr;
  }
  .split {
    gap: 32px;
  }
  .split .today {
    order: 2;
  }
  .ask {
    position: static;
  }
}
/* Account page */
.account-card {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.account-card .display {
  font-size: clamp(40px, 5vw, 64px);
}
.account-card [hidden] {
  display: none !important; /* the view rules below set display, so hidden must win */
}
.account-form,
.account-card [data-view="sent"],
.account-card [data-view="confirm"],
.account-card [data-view="signed-in"] {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.code-form {
  align-self: stretch;
}
.account-form label {
  font-weight: 600;
  font-size: 15px;
}
.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}
.field-row input {
  flex: 1 1 240px;
  min-height: 56px;
  padding: 0 22px;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}
.field-row input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.status-card {
  align-self: stretch;
  background: #fff;
  border-radius: 24px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.status-line {
  margin: 0;
  font-family: var(--serif);
  font-weight: var(--serif-weight);
  font-size: 28px;
  line-height: 1.15;
  color: var(--navy);
}
.status-card .note {
  margin: 0;
  max-width: 34em;
}
.account-message:empty {
  display: none;
}
.account-message {
  margin: 0;
  font-weight: 500;
}

@media (max-width: 640px) {
  .page,
  .rooms {
    gap: 12px;
  }
  .page {
    padding: 12px;
  }
  .site-header {
    padding: 8px 4px;
    gap: 12px;
  }
  /* Brand, Download and the account button share the first row on a phone. */
  .brand span {
    font-size: 21px;
  }
  .header-actions {
    gap: 8px;
    margin-left: auto;
  }
  .header-actions .btn-sm {
    font-size: 15px;
    padding: 10px 16px;
  }
  .account-button {
    width: 40px;
    height: 40px;
  }
  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 6px 12px;
    font-size: 15px;
  }
  .stage {
    grid-template-columns: 1fr;
  }
  .stage .today {
    grid-row: auto;
  }
  :root {
    --radius-room: 28px;
  }
  .btn {
    font-size: 16px;
    padding: 16px 22px;
  }
  .price b {
    font-size: 72px;
  }
  .about-hero .hero-art .wizard {
    height: 260px;
  }
  .notebook-head {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
