:root {
  --bg: #fff6f1;
  --bg-soft: #fdeee6;
  --bg-mint: #e8f5f0;
  --surface: #fffaf7;
  --surface-2: #fff1ea;
  --ink: #3a322e;
  --ink-soft: #6b5e57;
  --muted: #8f8179;
  --line: rgba(90, 70, 60, 0.12);
  --coral: #e39a8a;
  --coral-deep: #c97868;
  --peach: #f3c4b0;
  --mint: #8fc4b3;
  --mint-deep: #6aa894;
  --blush: #f2d2c8;
  --sand: #f7e2d4;
  --shadow: 0 12px 32px rgba(90, 55, 40, 0.08);
  --shadow-soft: 0 6px 18px rgba(90, 55, 40, 0.06);
  --radius: 1.35rem;
  --radius-sm: 0.85rem;
  --radius-pill: 999px;
  --font-display: "Noto Serif KR", "Iowan Old Style", serif;
  --font-body: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  --max: 1120px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::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%, #f8d9ce 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 5%, #d8efe6 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #fff9f5 40%, var(--bg-mint) 100%);
  background-attachment: fixed;
  line-height: 1.7;
  min-height: 100vh;
}

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

a {
  color: var(--coral-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--mint-deep);
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255, 246, 241, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  background:
    radial-gradient(circle at 35% 35%, #fff8f5 0%, transparent 45%),
    linear-gradient(145deg, var(--peach), var(--mint));
  box-shadow: var(--shadow-soft);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease);
}

.nav-toggle-bar { top: 50%; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

.site-footer {
  margin-top: 5rem;
  background: linear-gradient(180deg, transparent, rgba(232, 245, 240, 0.7));
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.footer-tag {
  max-width: 28ch;
  font-size: 0.95rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr) 1.4fr;
  gap: 2rem;
  margin-top: 2rem;
}

.footer-col h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 600;
}

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

.footer-col li {
  margin-bottom: 0.45rem;
}

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

.footer-contact p {
  font-size: 0.88rem;
  margin-bottom: 0.55rem;
}

.footer-copy {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.45rem;
  border-radius: var(--radius-pill);
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  color: #fffaf7;
  box-shadow: 0 10px 24px rgba(201, 120, 104, 0.28);
}

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

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.btn-ghost:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin: 0 0 0.65rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint-deep);
  margin-bottom: 0.6rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.hero-home {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-home-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-home-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: softZoom 18s var(--ease) infinite alternate;
}

.hero-home-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(255, 246, 241, 0.92) 0%, rgba(255, 246, 241, 0.72) 42%, rgba(255, 246, 241, 0.18) 100%),
    linear-gradient(0deg, rgba(255, 246, 241, 0.88) 0%, transparent 45%);
}

.hero-home-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 4rem 0 3.5rem;
  max-width: 40rem;
  animation: riseIn 0.9s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  color: var(--ink);
}

.hero-home-content h1 {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
  max-width: 28ch;
  line-height: 1.55;
}

.hero-home-content .lede {
  font-size: 1.02rem;
  max-width: 36ch;
  margin-bottom: 1.75rem;
}

.page-hero {
  padding: 3.5rem 0 2rem;
  animation: riseIn 0.7s var(--ease) both;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.75rem;
}

.page-hero p {
  max-width: 42ch;
  font-size: 1.05rem;
}

.benefit {
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.3s var(--ease);
}

.benefit:hover {
  transform: translateY(-4px);
}

.benefit-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
  background: linear-gradient(145deg, var(--blush), var(--mint));
}

.benefit h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.quote-block {
  background: linear-gradient(145deg, var(--surface), var(--bg-soft));
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}

.quote-block blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.55;
}

.quote-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

.stars {
  color: var(--coral-deep);
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  align-items: stretch;
}

.price-card {
  padding: 1.75rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--coral);
  background: linear-gradient(180deg, #fff7f3, var(--surface));
  transform: scale(1.02);
}

.price-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

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

.price-amount span {
  font-size: 0.95rem;
  color: var(--muted);
  font-family: var(--font-body);
}

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

.price-card li {
  margin-bottom: 0.45rem;
}

.form-card {
  max-width: 36rem;
  padding: 1.75rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(143, 196, 179, 0.25);
}

.field-error {
  display: none;
  color: #b54a3c;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.form-group.is-invalid .field-error {
  display: block;
}

.form-group.is-invalid input,
.form-group.is-invalid select,
.form-group.is-invalid textarea {
  border-color: #d98b7e;
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.form-status.is-success {
  display: block;
  background: var(--bg-mint);
  color: #2f6b58;
}

.form-status.is-error {
  display: block;
  background: #fde8e4;
  color: #8f3d32;
}

.inline-error {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: #fde8e4;
  color: #8f3d32;
  border-radius: var(--radius-sm);
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 420px;
  margin-left: auto;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(70, 40, 30, 0.16);
  border: 1px solid var(--line);
  animation: riseIn 0.5s var(--ease) both;
}

.cookie-banner p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cookie-actions .btn {
  padding: 0.65rem 1.1rem;
  font-size: 0.88rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2.25rem;
  font-size: 1.45rem;
}

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.15rem;
}

.prose ul, .prose ol {
  color: var(--ink-soft);
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.92rem;
}

th, td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--ink);
}

.module-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.module-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.module-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--peach), var(--blush));
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

.faq details {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-soft);
}

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

.faq details p {
  margin: 0.75rem 0 0;
}

.case-study {
  padding: 2rem;
  background: linear-gradient(160deg, var(--surface), var(--bg-mint));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.instructor {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.blog-meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.soft-band {
  background: linear-gradient(120deg, rgba(243, 196, 176, 0.35), rgba(143, 196, 179, 0.28));
  border-radius: calc(var(--radius) + 0.4rem);
  padding: 2.5rem 2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.illust-float {
  animation: floaty 5.5s ease-in-out infinite;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes softZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  font-size: clamp(3rem, 10vw, 5.5rem);
  margin: 0;
  background: linear-gradient(135deg, var(--coral), var(--mint-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 960px) {
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: calc(var(--header-h) + 0.35rem);
    left: 1rem;
    right: 1rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    display: none;
    border: 1px solid var(--line);
  }

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

  .nav-list {
    flex-direction: column;
    gap: 0.15rem;
  }

  .nav-list a {
    display: block;
    padding: 0.65rem 0.5rem;
  }

  .header-inner {
    position: relative;
  }
}

@media (max-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }

  .instructor {
    flex-direction: column;
  }

  .hero-home {
    min-height: 85vh;
  }
}
