/* Fasti student guides: accessible editorial pages built around the real product. */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  background: #f5f6fa;
}

body.guide-page {
  --guide-ink: #18181f;
  --guide-muted: #626571;
  --guide-soft: #eef0f5;
  --guide-line: #dcdfe7;
  --guide-white: #fff;
  --guide-accent: #6557e8;
  --guide-accent-dark: #5042c9;
  --guide-tint: #eeecff;
  --guide-contrast: #18213a;
  --guide-max: 1180px;
  min-width: 320px;
  overflow-x: hidden;
  background: #f5f6fa;
  color: var(--guide-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body[data-page="class-schedule-planner"] {
  --guide-accent: #008f82;
  --guide-accent-dark: #006e65;
  --guide-tint: #e1f5f1;
}

body[data-page="syllabus-to-calendar"] {
  --guide-accent: #e64f5d;
  --guide-accent-dark: #bd3543;
  --guide-tint: #ffeaed;
}

body[data-page="study-planner"] {
  --guide-accent: #b47600;
  --guide-accent-dark: #855800;
  --guide-tint: #fff2ce;
}

body[data-page="student-budget-planner"] {
  --guide-accent: #16865e;
  --guide-accent-dark: #0b6444;
  --guide-tint: #e2f5ec;
}

body[data-page="shared-student-calendar"] {
  --guide-accent: #d54876;
  --guide-accent-dark: #ad2d57;
  --guide-tint: #ffe7ef;
}

body.guide-page main {
  overflow: hidden;
}

body.guide-page a {
  color: inherit;
  text-decoration: none;
}

body.guide-page img,
body.guide-page svg {
  display: block;
  max-width: 100%;
}

body.guide-page button {
  font: inherit;
}

body.guide-page :focus-visible {
  outline: 3px solid var(--guide-accent);
  outline-offset: 3px;
}

body.guide-page .wrap {
  width: 100%;
  max-width: var(--guide-max);
  margin-inline: auto;
  padding-inline: 28px;
}

.skip {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 120;
  padding: 10px 16px;
  background: var(--guide-ink);
  color: #fff !important;
}

.skip:focus {
  left: 0;
}

.guide-scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 120;
  width: 100%;
  height: 3px;
  pointer-events: none;
  transform: scaleX(var(--guide-scroll, 0));
  transform-origin: left;
  background: var(--guide-accent);
}

/* Navigation */
body.guide-page header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(24, 24, 31, .09);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

body.guide-page .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

body.guide-page .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--guide-ink);
  font-size: 20px;
  font-weight: 850;
}

body.guide-page .brand img {
  border-radius: 8px;
  transition: transform .3s ease;
}

body.guide-page .brand:hover img {
  transform: rotate(-5deg) scale(1.06);
}

body.guide-page .nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

body.guide-page .nav-links a {
  color: #555762;
  font-size: 14px;
  font-weight: 700;
  transition: color .2s ease, transform .2s ease;
}

body.guide-page .nav-links a:hover {
  color: var(--guide-ink);
  transform: translateY(-1px);
}

body.guide-page .nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid var(--guide-ink);
  border-radius: 8px;
  background: var(--guide-ink);
  color: #fff !important;
}

body.guide-page .menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  gap: 4px;
  border: 1px solid var(--guide-line);
  border-radius: 8px;
  background: #fff;
  color: var(--guide-ink);
}

body.guide-page .menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

body.guide-page.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.guide-page.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.guide-page.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Guide hero */
.guide-breadcrumbs {
  padding-top: 24px;
  background: #fff;
  color: #747681;
  font-size: 12px;
  font-weight: 700;
}

.guide-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.guide-breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #adafba;
}

.guide-breadcrumbs a:hover {
  color: var(--guide-accent-dark);
}

.guide-hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  padding: 64px 0 100px;
  border-bottom: 1px solid var(--guide-line);
  background: #fff;
  isolation: isolate;
}

.guide-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 62%;
  z-index: -2;
  background: var(--guide-tint);
}

.guide-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 38%;
  height: 10px;
  background: var(--guide-accent);
}

.guide-hero-copy {
  position: relative;
  z-index: 2;
  width: 58%;
  max-width: 640px;
}

.guide-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--guide-accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.guide-kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--guide-accent);
  transform: rotate(45deg);
}

.guide-hero h1 {
  max-width: 660px;
  color: var(--guide-ink);
  font-size: 64px;
  font-weight: 900;
  line-height: 1.01;
  letter-spacing: 0;
}

.guide-intro {
  max-width: 620px;
  margin-top: 22px;
  color: var(--guide-muted);
  font-size: 19px;
  line-height: 1.62;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.guide-actions .btn,
.guide-actions .badge {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.guide-actions .btn:hover,
.guide-actions .badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px -24px rgba(24, 24, 31, .72);
}

.guide-actions .badge,
.guide-actions .btn-primary {
  background: var(--guide-ink);
  color: #fff;
}

.guide-actions .badge > span {
  display: grid;
  text-align: left;
}

.guide-actions .badge .small {
  font-size: 8px;
  letter-spacing: .06em;
}

.guide-actions .badge .big {
  margin-top: 2px;
  font-size: 16px;
}

.guide-actions .btn-ghost {
  border-color: #cfd2dc;
  background: #fff;
  color: var(--guide-ink);
}

.guide-media {
  position: relative;
  z-index: 3;
  margin-top: -620px;
  padding-bottom: 50px;
  pointer-events: none;
}

.guide-media .wrap {
  display: flex;
  justify-content: flex-end;
  padding-right: 64px;
}

.guide-media-frame {
  position: relative;
  width: 360px;
  height: 570px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(24, 24, 31, .14);
  border-radius: 8px;
  background: var(--guide-contrast);
  box-shadow: 0 42px 80px -42px rgba(24, 24, 31, .7);
  pointer-events: auto;
  transform: perspective(1100px) rotateX(var(--guide-tilt-x, 0deg)) rotateY(var(--guide-tilt-y, 0deg));
  transition: transform .2s ease-out, box-shadow .3s ease;
}

.guide-media-frame::before {
  content: "Product view";
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .9);
  color: var(--guide-ink);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.guide-media-frame:hover {
  box-shadow: 0 52px 90px -42px rgba(24, 24, 31, .78);
}

.guide-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 5px;
}

.guide-facts {
  position: relative;
  z-index: 5;
  border-block: 1px solid var(--guide-line);
  background: var(--guide-tint);
}

.guide-facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-facts p {
  display: flex;
  min-height: 144px;
  flex-direction: column;
  justify-content: center;
  padding: 26px 28px;
  border-right: 1px solid rgba(24, 24, 31, .12);
  color: #50535d;
  font-size: 14px;
  line-height: 1.55;
  transition: background .25s ease, transform .25s ease;
}

.guide-facts p:first-child {
  padding-left: 0;
}

.guide-facts p:last-child {
  border-right: 0;
}

.guide-facts p:hover {
  background: rgba(255, 255, 255, .38);
  transform: translateY(-3px);
}

.guide-facts strong {
  display: block;
  margin-bottom: 5px;
  color: var(--guide-ink);
  font-size: 16px;
}

/* Long-form guide */
.guide-article {
  padding: 96px 0;
  background: #fff;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 250px;
  justify-content: space-between;
  gap: 72px;
  align-items: start;
}

.guide-copy section {
  scroll-margin-top: 100px;
}

.guide-copy section + section {
  margin-top: 72px;
  padding-top: 72px;
  border-top: 1px solid var(--guide-line);
}

.guide-copy h2 {
  max-width: 700px;
  margin-bottom: 20px;
  color: var(--guide-ink);
  font-size: 40px;
  font-weight: 880;
  line-height: 1.12;
  letter-spacing: 0;
}

.guide-copy h3 {
  margin: 32px 0 10px;
  color: var(--guide-ink);
  font-size: 21px;
  line-height: 1.3;
}

.guide-copy p,
.guide-copy li {
  color: #555862;
  font-size: 17px;
  line-height: 1.78;
}

.guide-copy p + p {
  margin-top: 18px;
}

.guide-copy ul,
.guide-copy ol {
  display: grid;
  gap: 13px;
  margin-top: 22px;
  list-style: none;
  counter-reset: guide-step;
}

.guide-copy li {
  position: relative;
  padding: 15px 16px 15px 54px;
  border-top: 1px solid var(--guide-line);
}

.guide-copy ol li {
  counter-increment: guide-step;
}

.guide-copy ol li::before {
  content: counter(guide-step, decimal-leading-zero);
  position: absolute;
  top: 18px;
  left: 8px;
  color: var(--guide-accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.guide-copy ul li::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 14px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--guide-accent);
}

.guide-copy strong {
  color: var(--guide-ink);
}

.guide-copy a {
  color: var(--guide-accent-dark);
  font-weight: 720;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--guide-accent), transparent 55%);
  text-underline-offset: 4px;
}

.guide-aside {
  position: sticky;
  top: 92px;
  overflow: hidden;
  border: 1px solid var(--guide-line);
  border-radius: 8px;
  background: #f7f8fb;
}

.guide-aside h2 {
  padding: 16px 16px 12px;
  color: #777a85;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.guide-aside a {
  display: block;
  padding: 12px 16px;
  border-top: 1px solid var(--guide-line);
  color: #61636e;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  transition: background .2s ease, color .2s ease, padding .2s ease;
}

.guide-aside a:hover,
.guide-aside a.is-active {
  padding-left: 21px;
  background: var(--guide-tint);
  color: var(--guide-accent-dark);
}

/* Related guides and install */
.guide-related {
  padding: 88px 0;
  border-top: 1px solid var(--guide-line);
  background: #f5f6fa;
}

.guide-related h2 {
  max-width: 760px;
  margin-bottom: 34px;
  color: var(--guide-ink);
  font-size: 40px;
  line-height: 1.12;
}

.guide-related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.guide-related-list a {
  position: relative;
  min-width: 0;
  min-height: 154px;
  padding: 22px 48px 22px 22px;
  border: 1px solid var(--guide-line);
  border-radius: 8px;
  background: #fff;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.guide-related-list a::after {
  content: "→";
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--guide-accent);
  font-size: 21px;
  transition: transform .25s ease;
}

.guide-related-list a:hover {
  border-color: var(--guide-accent);
  box-shadow: 0 20px 40px -34px rgba(24, 24, 31, .62);
  transform: translateY(-5px);
}

.guide-related-list a:hover::after {
  transform: translateX(5px);
}

.guide-related-list strong,
.guide-related-list span {
  display: block;
}

.guide-related-list strong {
  margin-bottom: 7px;
  color: var(--guide-ink);
  font-size: 16px;
}

.guide-related-list span {
  color: var(--guide-muted);
  font-size: 14px;
  line-height: 1.5;
}

.guide-install {
  padding: 0;
  border-top: 1px solid rgba(24, 24, 31, .14);
  background: var(--guide-tint);
}

.guide-install-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.guide-install h2 {
  grid-column: 1;
  max-width: 680px;
  color: var(--guide-ink);
  font-size: 44px;
  line-height: 1.08;
}

.guide-install p {
  grid-column: 1;
  max-width: 620px;
  margin-top: -22px;
  color: #555862;
  font-size: 16px;
}

.guide-install .guide-actions {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  min-width: 210px;
  margin-top: 0;
}

.guide-install .guide-actions .btn {
  width: 100%;
}

/* Footer */
body.guide-page footer {
  padding: 62px 0 30px;
  background: #18181f;
  color: #fff;
}

body.guide-page footer .brand {
  color: #fff;
}

body.guide-page .foot {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 2.2fr);
  gap: 70px;
}

body.guide-page .foot > div:first-child p {
  max-width: 260px;
  margin-top: 14px;
  color: #aaacb7;
  font-size: 13px;
  line-height: 1.6;
}

body.guide-page .foot-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

body.guide-page .foot-col h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.guide-page .foot-col a {
  display: block;
  margin-bottom: 8px;
  color: #aaacb7;
  font-size: 12.5px;
}

body.guide-page .foot-col a:hover {
  color: #fff;
}

body.guide-page .foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #aaacb7;
  font-size: 12px;
}

/* Motion */
.guide-motion {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .72s cubic-bezier(.2, .8, .2, 1), transform .72s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--guide-delay, 0ms);
}

.guide-motion[data-motion="left"] { transform: translateX(-34px); }
.guide-motion[data-motion="right"] { transform: translateX(34px); }
.guide-motion[data-motion="scale"] { transform: scale(.96); }
.guide-motion.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .guide-hero-copy > * {
    opacity: 0;
    animation: guide-rise-in .72s cubic-bezier(.2, .8, .2, 1) forwards;
  }

  .guide-hero-copy > :nth-child(1) { animation-delay: .05s; }
  .guide-hero-copy > :nth-child(2) { animation-delay: .13s; }
  .guide-hero-copy > :nth-child(3) { animation-delay: .21s; }
  .guide-hero-copy > :nth-child(4) { animation-delay: .29s; }

  .guide-media-frame {
    animation: guide-device-in .9s .25s cubic-bezier(.16, 1, .3, 1) both,
      guide-device-float 8s 1.3s ease-in-out infinite;
  }
}

@keyframes guide-rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes guide-device-in {
  from { opacity: 0; transform: translate3d(46px, 70px, 0) rotate(3deg); }
  to { opacity: 1; transform: perspective(1100px) translate3d(0, 0, 0) rotateX(var(--guide-tilt-x, 0deg)) rotateY(var(--guide-tilt-y, 0deg)); }
}

@keyframes guide-device-float {
  0%, 100% { transform: perspective(1100px) translateY(0) rotateX(var(--guide-tilt-x, 0deg)) rotateY(var(--guide-tilt-y, 0deg)); }
  50% { transform: perspective(1100px) translateY(-8px) rotateX(var(--guide-tilt-x, 0deg)) rotateY(var(--guide-tilt-y, 0deg)); }
}

@media (max-width: 980px) {
  body.guide-page .menu-toggle {
    display: grid;
  }

  body.guide-page .nav-links {
    position: fixed;
    top: 76px;
    right: 18px;
    left: 18px;
    display: grid;
    gap: 7px;
    padding: 10px;
    border: 1px solid var(--guide-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 24px 60px -34px rgba(24, 24, 31, .45);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease;
  }

  body.guide-page.nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  body.guide-page .nav-links a {
    padding: 11px 12px;
    border-radius: 6px;
    background: #f3f4f8;
    color: var(--guide-ink);
  }

  body.guide-page .nav-cta {
    justify-content: center;
  }

  .guide-hero {
    min-height: 620px;
  }

  .guide-hero-copy {
    width: 61%;
  }

  .guide-hero h1 {
    font-size: 52px;
  }

  .guide-media {
    margin-top: -560px;
  }

  .guide-media .wrap {
    padding-right: 28px;
  }

  .guide-media-frame {
    width: 310px;
    height: 500px;
  }

  .guide-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 46px;
  }

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

@media (max-width: 760px) {
  body.guide-page .wrap {
    padding-inline: 20px;
  }

  .guide-breadcrumbs {
    padding-top: 18px;
  }

  .guide-hero {
    min-height: 0;
    padding: 44px 0 52px;
  }

  .guide-hero::before {
    inset: 72% 0 0 0;
  }

  .guide-hero::after {
    width: 100%;
    height: 7px;
  }

  .guide-hero-copy {
    width: 100%;
    max-width: 640px;
  }

  .guide-hero h1 {
    font-size: 44px;
  }

  .guide-intro {
    font-size: 17px;
  }

  .guide-media {
    margin-top: 0;
    padding: 42px 0;
    background: var(--guide-tint);
  }

  .guide-media .wrap {
    justify-content: center;
    padding-right: 20px;
  }

  .guide-media-frame {
    width: min(100%, 340px);
    height: 520px;
  }

  .guide-facts-grid {
    grid-template-columns: 1fr;
  }

  .guide-facts p,
  .guide-facts p:first-child {
    min-height: 0;
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(24, 24, 31, .12);
  }

  .guide-facts p:last-child {
    border-bottom: 0;
  }

  .guide-article,
  .guide-related {
    padding: 68px 0;
  }

  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-aside {
    position: static;
    order: -1;
  }

  .guide-copy section + section {
    margin-top: 56px;
    padding-top: 56px;
  }

  .guide-copy h2,
  .guide-related h2 {
    font-size: 34px;
  }

  .guide-related-list {
    grid-template-columns: 1fr;
  }

  .guide-related-list a {
    min-height: 132px;
  }

  .guide-install-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .guide-install h2,
  .guide-install p,
  .guide-install .guide-actions {
    grid-column: 1;
    grid-row: auto;
  }

  .guide-install h2 {
    font-size: 38px;
  }

  .guide-install p {
    margin-top: 0;
  }

  .guide-install .guide-actions {
    display: flex;
    margin-top: 8px;
  }

  body.guide-page .foot {
    grid-template-columns: 1fr;
    gap: 38px;
  }
}

@media (max-width: 520px) {
  .guide-hero h1 {
    font-size: 38px;
  }

  .guide-actions .badge,
  .guide-actions .btn {
    width: 100%;
  }

  .guide-media-frame {
    height: 470px;
  }

  .guide-copy p,
  .guide-copy li {
    font-size: 16px;
  }

  .guide-copy li {
    padding-right: 4px;
  }

  .guide-install .guide-actions {
    display: grid;
  }

  body.guide-page .foot-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .guide-motion {
    opacity: 1;
    transform: none;
  }
}
