:root {
  --bg: #f7f8f6;
  --bg-elevated: #ffffff;
  --ink: #1c2421;
  --ink-soft: #4a5651;
  --line: #d9e0dc;
  --accent: #1f4e45;
  --accent-soft: #7cb8a8;
  --accent-wash: #e8f2ef;
  --warn: #9b4d3a;
  --ok: #2f6b4f;
  --shadow: 0 18px 40px rgba(28, 36, 33, 0.06);
  --radius: 2px;
  --font-display: "Hahmlet", "Noto Serif KR", serif;
  --font-body: "Noto Sans KR", sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(124, 184, 168, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(31, 78, 69, 0.08), transparent 50%),
    var(--bg);
  line-height: 1.7;
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #163a34;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(247, 248, 246, 0.88);
  border-bottom: 1px solid rgba(217, 224, 220, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.logo span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent);
  color: #f4faf8;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: #163a34;
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--light {
  background: #fff;
  color: var(--accent);
}

.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f4faf8;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 32, 28, 0.82) 0%, rgba(15, 32, 28, 0.45) 48%, rgba(15, 32, 28, 0.2) 100%),
    linear-gradient(0deg, rgba(15, 32, 28, 0.55), transparent 45%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 12vh, 7rem) 0 clamp(3rem, 8vh, 5rem);
  max-width: 36rem;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 1.25rem;
  color: #fff;
  letter-spacing: -0.04em;
}

.hero__lede {
  font-size: 1.08rem;
  color: rgba(244, 250, 248, 0.9);
  margin-bottom: 1.75rem;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section--tight {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.section__label {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  max-width: 18ch;
}

.section__lead {
  max-width: 42rem;
  font-size: 1.05rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.metric {
  background: var(--bg-elevated);
  padding: 1.5rem 1.25rem;
}

.metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.metric span {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1.25rem;
}

.feature-list li {
  padding-left: 1.1rem;
  border-left: 2px solid var(--accent-soft);
}

.feature-list h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.course-grid,
.blog-grid,
.tier-grid,
.review-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.course-grid,
.blog-grid {
  grid-template-columns: repeat(3, 1fr);
}

.tier-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.review-grid {
  grid-template-columns: 1.2fr 1fr;
}

.media-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.25s ease;
}

.media-tile:hover {
  border-color: var(--accent-soft);
  transform: translateY(-3px);
}

.media-tile__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.media-tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.media-tile:hover .media-tile__img img {
  transform: scale(1.04);
}

.media-tile__body {
  padding: 1.25rem 1.2rem 1.4rem;
}

.media-tile__body h3 {
  font-size: 1.15rem;
  color: var(--ink);
}

.media-tile__meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.quote {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.5rem;
}

.quote p {
  font-size: 1.02rem;
  color: var(--ink);
}

.quote footer {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.quote--wide {
  grid-column: 1 / -1;
}

.tier {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.tier--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-wash), #fff 40%);
}

.tier h3 {
  font-size: 1.35rem;
}

.tier .price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  margin: 0.75rem 0 1rem;
}

.tier ul {
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  flex: 1;
}

.tier li + li {
  margin-top: 0.45rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #eef3f0;
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-grid h2 {
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li + li {
  margin-top: 0.4rem;
}

.footer-grid a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-meta {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.legal {
  max-width: 48rem;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.92rem;
}

.legal th,
.legal td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--accent-wash);
}

.page-hero {
  padding: clamp(3rem, 8vw, 5rem) 0 1rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  max-width: 16ch;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

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

.form {
  display: grid;
  gap: 1rem;
}

.field label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent-soft);
  outline-offset: 1px;
}

.field-error {
  min-height: 1.2em;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--warn);
}

.form-status {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
}

.form-status--ok {
  background: var(--accent-wash);
  border-color: var(--accent-soft);
  color: var(--ok);
}

.form-status--err {
  background: #f8ebe7;
  border-color: #e2b5a8;
  color: var(--warn);
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 640px;
  margin-inline: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
}

.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner__text {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.92rem;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
}

.inline-error {
  background: #f8ebe7;
  color: var(--warn);
  padding: 0.75rem 1rem;
  margin: 0;
  border-bottom: 1px solid #e2b5a8;
}

.modules {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0;
}

.module {
  border: 1px solid var(--line);
  background: #fff;
  padding: 1rem 1.1rem;
}

.module h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.avatar-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}

.avatar-row img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent-wash);
}

.cta-band {
  background: var(--accent);
  color: #f4faf8;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  margin-top: 1rem;
}

.cta-band h2 {
  color: #fff;
  max-width: 16ch;
}

.cta-band p {
  color: rgba(244, 250, 248, 0.88);
  max-width: 36rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease var(--reveal-delay, 0ms), transform 0.7s ease var(--reveal-delay, 0ms);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

.prose-wide {
  max-width: 42rem;
}

.case-study {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  margin-top: 1.5rem;
}

.case-study + .case-study {
  margin-top: 1.25rem;
}

.rating {
  letter-spacing: 0.08em;
  color: var(--accent);
  font-size: 0.9rem;
}

.not-found {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.not-found h1 {
  font-size: clamp(3rem, 10vw, 5rem);
  margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
  .split,
  .course-grid,
  .blog-grid,
  .tier-grid,
  .review-grid,
  .footer-grid,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(247, 248, 246, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.85rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-inner {
    position: relative;
  }
}
