:root {
  --bg: #f4f7f2;
  --ink: #111827;
  --muted: #667085;
  --paper: #ffffff;
  --soft: #e9f0e6;
  --teal: #0f766e;
  --blue: #2563eb;
  --lime: #c8f24a;
  --line: rgba(17, 24, 39, 0.14);
  --shadow: 0 28px 70px rgba(17, 24, 39, 0.14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans KR",
    sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0 clamp(20px, 4vw, 56px);
  border-bottom: 1px solid transparent;
  color: var(--ink);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(244, 247, 242, 0.88);
  box-shadow: 0 10px 40px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}

.desktop-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 800;
}

.header-cta {
  justify-self: end;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 900;
}

.hero {
  min-height: 100svh;
  padding: 112px clamp(20px, 4vw, 56px) 44px;
}

.hero-layout {
  display: grid;
  min-height: calc(100svh - 156px);
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}

.hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 4vw, 54px) 0;
}

.kicker,
.eyebrow {
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.15em;
}

h1 {
  display: grid;
  gap: 4px;
  max-width: 600px;
  margin: 18px 0 24px;
  font-size: clamp(58px, 7.4vw, 116px);
  font-weight: 950;
  line-height: 0.96;
}

h1 span {
  display: block;
  word-break: keep-all;
}

.hero-copy p {
  display: grid;
  gap: 4px;
  max-width: 570px;
  margin-bottom: 30px;
  color: #3f4a5a;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.7;
  word-break: keep-all;
}

.hero-copy p span {
  display: block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.25);
}

.button.secondary,
.button.outline {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.hero-media {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.hero-media img {
  object-position: center;
}

.availability {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 6px;
  width: min(320px, calc(100% - 44px));
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  padding: 18px;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.14);
  backdrop-filter: blur(16px);
}

.availability strong {
  font-size: 19px;
}

.availability span {
  color: var(--muted);
  font-size: 14px;
}

.trial-strip,
.program,
.flow,
.space,
.booking,
.notice,
.visit {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.trial-strip {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 24px;
  align-items: end;
  padding: 52px 0 80px;
}

h2 {
  margin: 10px 0 0;
  font-size: clamp(34px, 4vw, 64px);
  font-weight: 950;
  line-height: 1.08;
  word-break: keep-all;
}

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

.trial-cards article {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  padding: 20px;
}

.trial-cards strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 28px;
}

.trial-cards span,
.section-head p,
.space-copy p,
.booking-copy p {
  color: var(--muted);
  line-height: 1.72;
  word-break: keep-all;
}

.program,
.notice {
  padding: 92px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 34px;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.program-grid article {
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  padding: 24px;
}

.program-grid span {
  display: inline-flex;
  margin-bottom: 44px;
  border-radius: 999px;
  background: var(--soft);
  padding: 7px 11px;
  color: var(--teal);
  font-weight: 950;
}

.program-grid h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.program-grid p {
  color: var(--muted);
  line-height: 1.68;
  word-break: keep-all;
}

.flow {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 28px;
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 64px 0;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  position: relative;
  min-height: 138px;
  border-left: 1px solid var(--line);
  padding: 8px 20px;
}

.flow-list strong {
  display: block;
  margin-bottom: 12px;
  font-size: 22px;
}

.flow-list span {
  color: var(--muted);
  line-height: 1.65;
}

.space {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  grid-template-areas:
    "image copy"
    "image detail";
  gap: 22px;
  padding: 96px 0;
}

.primary-image {
  grid-area: image;
  min-height: 680px;
}

.detail-image {
  grid-area: detail;
  min-height: 300px;
}

.space-image {
  overflow: hidden;
  border-radius: 26px;
  background: var(--soft);
}

.space-copy {
  grid-area: copy;
  border-radius: 26px;
  background: var(--paper);
  padding: clamp(26px, 4vw, 44px);
}

.space-copy ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.space-copy li {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-weight: 850;
}

.booking {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 26px;
  align-items: start;
  padding: 34px 0 96px;
}

.booking-copy {
  position: sticky;
  top: 96px;
}

.booking-copy img {
  height: 360px;
  margin-top: 26px;
  border-radius: 26px;
}

.booking-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  padding: clamp(20px, 3vw, 34px);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 850;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 14px 15px;
}

textarea {
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.notice-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.notice-list a {
  display: grid;
  grid-template-columns: 90px 1fr 90px;
  gap: 22px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.notice-list time,
.notice-list span {
  color: var(--muted);
}

.notice-list strong {
  font-size: 20px;
  word-break: keep-all;
}

.visit {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 28px;
  align-items: center;
  padding: 76px 0 106px;
}

.visit dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.visit dl div {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.visit dt {
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 950;
}

.visit dd {
  margin: 0;
  color: #344054;
  line-height: 1.6;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 30px 20px 38px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer span {
  color: var(--ink);
  font-weight: 900;
}

.mobile-book {
  display: none;
}

.section-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 64px;
    padding: 0 18px;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 78px 18px 36px;
  }

  .hero-layout,
  .trial-strip,
  .flow,
  .space,
  .booking,
  .visit {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    min-height: auto;
    gap: 18px;
  }

  .hero-copy {
    order: 2;
    padding: 6px 0 0;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(48px, 17vw, 72px);
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-copy p span {
    display: inline;
  }

  .hero-media {
    min-height: 54svh;
    border-radius: 22px;
  }

  .hero-media img {
    object-position: 58% center;
  }

  .availability {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    border-radius: 16px;
  }

  .hero-actions .button {
    width: calc(50% - 6px);
    padding: 0 12px;
    font-size: 14px;
  }

  .trial-strip,
  .program,
  .flow,
  .space,
  .booking,
  .notice,
  .visit {
    width: min(100% - 36px, 680px);
    padding-top: 58px;
    padding-bottom: 58px;
  }

  h2 {
    font-size: clamp(32px, 11vw, 48px);
  }

  .trial-cards,
  .program-grid,
  .flow-list,
  .booking-panel,
  .visit dl {
    grid-template-columns: 1fr;
  }

  .program-grid article {
    min-height: auto;
  }

  .program-grid span {
    margin-bottom: 22px;
  }

  .flow-list li {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 18px 0;
  }

  .space {
    grid-template-areas:
      "copy"
      "image"
      "detail";
    gap: 14px;
  }

  .primary-image,
  .detail-image,
  .booking-copy img {
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .booking-copy {
    position: static;
  }

  .notice-list a {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .visit .button {
    width: 100%;
  }

  .site-footer {
    flex-wrap: wrap;
    padding-bottom: 94px;
  }

  .mobile-book {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 90;
    display: inline-flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--blue);
    color: #fff;
    font-weight: 950;
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.32);
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .mobile-book.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (max-width: 420px) {
  .brand span:last-child {
    font-size: 15px;
  }

  h1 {
    font-size: clamp(44px, 15.5vw, 58px);
  }

  .button {
    min-height: 50px;
    padding: 0 18px;
  }
}
