:root {
  --ink: #2a2421;
  --cream: #fffaf0;
  --paper: #ffffff;
  --muted: #6f645d;
  --coral: #ed6652;
  --coral-soft: #ffe7df;
  --blue: #4c88e9;
  --blue-soft: #e4efff;
  --green: #3f9d61;
  --green-soft: #e3f4e8;
  --yellow: #ffd66e;
  --line: 2px solid var(--ink);
  --shadow: 7px 7px 0 var(--ink);
  --radius-lg: 24px;
  --radius-md: 15px;
  color-scheme: light;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(42, 36, 33, 0.11) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border: var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.page-shell {
  position: relative;
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: 54px 48px 36px;
}

.doodle {
  position: absolute;
  z-index: -1;
  opacity: 0.92;
  pointer-events: none;
}

.doodle--one {
  top: 138px;
  left: 2.5%;
  width: 74px;
  height: 74px;
  border: 3px solid var(--blue);
  border-radius: 44% 56% 47% 53%;
  transform: rotate(18deg);
}

.doodle--one::after {
  position: absolute;
  inset: 12px;
  border: 3px solid var(--blue);
  border-radius: 50%;
  content: "";
}

.doodle--two {
  top: 88px;
  right: 7%;
  width: 76px;
  height: 34px;
  border-top: 4px solid var(--coral);
  border-bottom: 4px solid var(--coral);
  transform: rotate(-23deg) skewX(-18deg);
}

.doodle--three {
  top: 330px;
  right: 3.5%;
  width: 55px;
  height: 55px;
  background: repeating-linear-gradient(
    135deg,
    transparent 0 8px,
    var(--green) 9px 12px,
    transparent 13px 19px
  );
  transform: rotate(9deg);
}

.hero {
  display: flex;
  min-height: 540px;
  max-width: 940px;
  margin: 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.school-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 17px;
  border: var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 0.93rem;
  font-weight: 800;
}

.school-badge__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}

.school-badge__times {
  color: #aaa098;
  font-weight: 600;
}

.hero__eyebrow,
.section-heading__kicker,
.note__eyebrow {
  margin: 29px 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: Jua, "Pretendard Variable", sans-serif;
  font-size: clamp(3.5rem, 7vw, 6.1rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.highlight {
  position: relative;
  display: inline-block;
  margin-top: 9px;
  color: var(--coral);
  isolation: isolate;
}

.highlight::before {
  position: absolute;
  right: -8px;
  bottom: 9px;
  left: -8px;
  z-index: -1;
  height: 0.34em;
  border-radius: 5px;
  background: var(--yellow);
  content: "";
  transform: rotate(-1.2deg);
}

.hero__description {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.75;
  text-wrap: balance;
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
  padding: 10px 15px;
  border-bottom: 2px solid var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.hero__scroll span {
  transition: transform 160ms ease;
}

.hero__scroll:hover span {
  transform: translateY(3px);
}

.services {
  padding-top: 70px;
  scroll-margin-top: 12px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 44px;
  max-width: 1280px;
  margin: 0 auto 30px;
}

.section-heading__kicker {
  margin: 0 0 9px;
}

.section-heading h2,
.note h2 {
  margin: 0;
  font-family: Jua, "Pretendard Variable", sans-serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section-heading > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
  text-align: right;
}

.service-grid {
  display: grid;
  max-width: 1280px;
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.service-card {
  display: flex;
  min-width: 0;
  border: var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
  flex-direction: column;
  overflow: hidden;
  opacity: 1;
  transform: none;
  transition:
    opacity 450ms ease,
    transform 450ms ease,
    box-shadow 160ms ease;
}

.service-card.is-pending {
  opacity: 0;
  transform: translateY(24px);
}

.service-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  box-shadow: 10px 10px 0 var(--ink);
  transform: translate(-3px, -3px);
}

.service-card__visual {
  position: relative;
  padding: 26px 22px 0;
  border-bottom: var(--line);
  overflow: hidden;
}

.service-card--grade5 .service-card__visual {
  background: var(--coral-soft);
}

.service-card--planner .service-card__visual {
  background: var(--blue-soft);
}

.service-card--navigation .service-card__visual {
  background: var(--green-soft);
}

.team-label {
  position: absolute;
  top: 14px;
  left: 15px;
  z-index: 2;
  padding: 5px 11px;
  border: var(--line);
  border-radius: 999px;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  transform: rotate(-4deg);
}

.service-card--grade5 .team-label,
.service-card--grade5 .service-link {
  background: var(--coral);
}

.service-card--planner .team-label,
.service-card--planner .service-link {
  background: var(--blue);
}

.service-card--navigation .team-label,
.service-card--navigation .service-link {
  background: var(--green);
}

.service-card__number {
  position: absolute;
  top: 4px;
  right: 15px;
  color: rgba(42, 36, 33, 0.09);
  font-family: Jua, sans-serif;
  font-size: 4.9rem;
  line-height: 1;
}

.browser-frame {
  position: relative;
  border: var(--line);
  border-bottom: 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--paper);
  overflow: hidden;
}

.browser-frame__bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.browser-frame__bar span {
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

.browser-frame__bar span:nth-child(1) {
  background: var(--coral);
}

.browser-frame__bar span:nth-child(2) {
  background: var(--yellow);
}

.browser-frame__bar span:nth-child(3) {
  background: #75c68d;
}

.browser-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 13 / 7;
  object-fit: cover;
}

.service-card--grade5 .browser-frame img {
  object-fit: contain;
  background: #fff;
}

.service-card__body {
  display: flex;
  padding: 23px 24px 25px;
  flex: 1;
  flex-direction: column;
}

.service-card__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.service-card h3 {
  margin: 0;
  font-family: Jua, "Pretendard Variable", sans-serif;
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.service-status {
  padding: 4px 8px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: #f3eee8;
  color: #746961;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.service-status.is-live {
  background: #dff6e6;
  color: #267443;
}

.service-card__body > p {
  margin: 10px 0 21px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.66;
  text-wrap: pretty;
}

.service-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 51px;
  margin-top: auto;
  padding: 0 15px 0 17px;
  border: var(--line);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  color: #fff;
  font-size: 0.96rem;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    filter 140ms ease;
}

.service-link:not([aria-disabled="true"]):hover,
.service-link:not([aria-disabled="true"]):focus-visible {
  box-shadow: 5px 5px 0 var(--ink);
  filter: saturate(1.08);
  transform: translate(-2px, -2px);
}

.service-link[aria-disabled="true"] {
  cursor: not-allowed;
  filter: grayscale(0.25);
  opacity: 0.64;
}

.service-link__arrow {
  display: grid;
  width: 26px;
  height: 26px;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  place-items: center;
}

.note {
  position: relative;
  max-width: 880px;
  margin: 110px auto 104px;
  padding: 46px 60px;
  border: var(--line);
  background: #fff3bd;
  box-shadow: 8px 8px 0 var(--ink);
  text-align: center;
  transform: rotate(-0.6deg);
}

.note::before {
  position: absolute;
  top: 13px;
  right: 17px;
  bottom: 13px;
  left: 17px;
  border: 1.5px dashed rgba(42, 36, 33, 0.28);
  content: "";
  pointer-events: none;
}

.note__pin {
  position: absolute;
  top: -15px;
  left: 50%;
  z-index: 1;
  width: 29px;
  height: 29px;
  border: var(--line);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 2px 3px 0 var(--ink);
  transform: translateX(-50%);
}

.note__eyebrow {
  position: relative;
  margin: 0 0 9px;
}

.note h2,
.note > p:last-child {
  position: relative;
}

.note > p:last-child {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: var(--line);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__mark {
  display: grid;
  width: 43px;
  height: 43px;
  border: var(--line);
  border-radius: 11px;
  background: var(--coral);
  box-shadow: 3px 3px 0 var(--ink);
  color: #fff;
  font-family: Jua, sans-serif;
  font-size: 1.65rem;
  place-items: center;
  transform: rotate(-3deg);
}

.footer__brand div {
  display: flex;
  flex-direction: column;
}

.footer__brand strong {
  font-size: 0.94rem;
}

.footer__brand span,
footer > p {
  color: var(--muted);
  font-size: 0.79rem;
}

footer > p {
  margin: 0;
  text-align: right;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .page-shell {
    padding-right: 30px;
    padding-left: 30px;
  }

  .service-grid {
    max-width: 780px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 13px);
    justify-self: center;
  }

  .doodle--one,
  .doodle--three {
    display: none;
  }
}

@media (max-width: 700px) {
  .page-shell {
    padding: 34px 18px 26px;
  }

  .hero {
    min-height: 570px;
  }

  .school-badge {
    gap: 7px;
    padding: 7px 12px;
    font-size: 0.76rem;
  }

  .hero__break {
    display: none;
  }

  .hero h1 {
    max-width: 520px;
    font-size: clamp(3rem, 14.5vw, 4.5rem);
    line-height: 1.07;
  }

  .highlight {
    display: block;
  }

  .hero__description br,
  .section-heading > p br,
  .note > p:last-child br {
    display: none;
  }

  .doodle--two {
    top: 78px;
    right: 3%;
    width: 48px;
  }

  .services {
    padding-top: 48px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .section-heading > p {
    text-align: left;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 23px;
  }

  .service-card:last-child {
    width: auto;
    grid-column: auto;
  }

  .service-card:hover {
    box-shadow: var(--shadow);
    transform: none;
  }

  .note {
    margin: 86px auto 78px;
    padding: 40px 25px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  footer > p {
    text-align: left;
  }
}

@media (max-width: 390px) {
  .school-badge__times,
  .school-badge span:last-child {
    display: none;
  }

  .hero {
    min-height: 530px;
  }

  .service-card__visual {
    padding-right: 16px;
    padding-left: 16px;
  }

  .service-card__body {
    padding-right: 19px;
    padding-left: 19px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .service-card {
    opacity: 1;
    transform: none;
  }
}
