:root {
  color-scheme: light;
  --ink: #112231;
  --muted: #4c5c62;
  --paper: #f9f8f1;
  --line: #dfe2d8;
  --navy: #101d29;
  --lime: #dcf299;
  --mint: #c8e7d7;
  --display-width: 1216px;
  --gutter: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.64 Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a { color: inherit; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #2d7165; outline-offset: 4px; }
.codex-hero :focus-visible, .codex-footer :focus-visible { outline-color: var(--lime); }
.codex-shell { width: min(var(--display-width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.codex-skip {
  position: fixed;
  inset: 10px auto auto 10px;
  z-index: 20;
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
}
.codex-skip:focus { transform: none; }

.codex-topbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.codex-topbar-inner {
  min-height: 67px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.codex-logotype {
  color: var(--ink);
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.055em;
  text-decoration: none;
}
.codex-logotype span { color: #285e51; }
.codex-back {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 7px 0;
  font-size: .88rem;
  font-weight: 670;
  text-decoration: none;
}
.codex-back:hover { text-decoration: underline; text-underline-offset: 4px; }

.codex-hero {
  position: relative;
  overflow: clip;
  isolation: isolate;
  color: #f8fbf6;
  background: radial-gradient(ellipse at 89% 60%, #203d42, transparent 67%), var(--navy);
}
.codex-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(#a3c8c811 1px, transparent 1px), linear-gradient(90deg, #a3c8c811 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(110deg, #000, transparent 72%);
}
.codex-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  gap: clamp(28px, 5vw, 65px);
  align-items: center;
  padding-block: clamp(49px, 6vw, 90px) 0;
}
.codex-tag {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 20px;
  color: var(--lime);
  font-size: .85rem;
  font-weight: 670;
  letter-spacing: .05em;
}
.codex-tag span { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.codex-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.7rem, 5.4vw, 5.2rem);
  line-height: 1.07;
  font-weight: 820;
  letter-spacing: -.071em;
}
.codex-hero-lead { margin: 24px 0 0; color: #d5e3e6; font-size: clamp(1rem, 1.56vw, 1.24rem); line-height: 1.65; }
.codex-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 23px; margin-top: 25px; }
.codex-button {
  display: inline-flex;
  min-height: 49px;
  justify-content: center;
  align-items: center;
  gap: 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 9px 16px;
  font-size: .92rem;
  font-weight: 780;
  text-align: center;
  text-decoration: none;
  line-height: 1.35;
  transition: background-color .2s, color .2s, translate .2s;
}
.codex-button:hover { translate: 0 -2px; }
.codex-button:disabled { opacity: .64; cursor: wait; translate: none; }
.codex-button--lime { color: #17261c; background: var(--lime); }
.codex-button--lime:hover { background: #eefabf; }
.codex-button--ink { color: #fff; background: #172a2e; }
.codex-button--ink:hover { background: #2e504b; }
.codex-jump { font-size: .92rem; font-weight: 650; color: #edf4ee; text-decoration: none; }
.codex-jump span { margin-left: 7px; color: var(--lime); }
.codex-jump:hover { text-decoration: underline; text-underline-offset: 5px; }

.codex-cover {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid #a3c8c84e;
  border-radius: 18px 18px 3px 18px;
  background: #152d39;
  box-shadow: 0 19px 54px #08151067;
}
.codex-cover img { width: 100%; height: auto; aspect-ratio: 3 / 2; display: block; object-fit: cover; }
.codex-cover figcaption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  background: #0e2028eb;
  color: #e0eeed;
  font: 600 clamp(.58rem, 1.08vw, .72rem)/1.4 ui-monospace, monospace;
  letter-spacing: .07em;
}
.codex-cover time { color: var(--lime); }
.codex-hero-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid #b2d8d43b;
}
.codex-hero-facts > div { padding: 20px 14px 23px; border-right: 1px solid #b2d8d43b; }
.codex-hero-facts > div:first-child { padding-left: 0; }
.codex-hero-facts > div:last-child { border-right: 0; }
.codex-hero-facts dt { color: #b8d5d3; font-size: .76rem; font-weight: 650; }
.codex-hero-facts dd { margin: 3px 0 0; font-size: clamp(.91rem, 1.6vw, 1.1rem); font-weight: 735; }

.codex-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: #f9f8f1f5;
  backdrop-filter: blur(13px);
}
.codex-tabs-inner { display: flex; gap: clamp(18px, 4vw, 42px); overflow: auto; scrollbar-width: thin; }
.codex-tabs a {
  flex: none;
  padding: 14px 0 12px;
  border-bottom: 3px solid transparent;
  color: #435350;
  font-size: .93rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.codex-tabs a[aria-current="location"] { color: #183e32; border-color: #2c6b58; }
.codex-tabs a:focus-visible { outline-offset: -1px; }

.codex-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 308px);
  align-items: start;
  gap: clamp(30px, 6vw, 78px);
  padding-block: clamp(42px, 7vw, 86px);
}
.codex-body { min-width: 0; }
.codex-section { padding-bottom: clamp(44px, 7vw, 82px); scroll-margin-top: 76px; }
.codex-section:last-child { padding-bottom: 0; }
.codex-section + .codex-section { padding-top: clamp(34px, 5.5vw, 65px); border-top: 1px solid var(--line); }
.codex-section-kicker { margin: 0 0 12px; color: #376451; font-size: .82rem; font-weight: 800; }
.codex-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4.1vw, 3.45rem);
  line-height: 1.17;
  font-weight: 790;
  letter-spacing: -.061em;
  text-wrap: balance;
}
.codex-section-lead { max-width: 620px; margin: 17px 0 0; color: var(--muted); font-size: 1.05rem; }
.codex-section-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.codex-outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.codex-outcomes article { min-width: 0; min-height: 174px; padding: 17px; border-radius: 10px; background: #e5e9d8; }
.codex-outcomes article:nth-child(2) { background: #f0e8cf; }
.codex-outcomes article:nth-child(3) { background: #dceae4; }
.codex-outcome-index { display: block; margin-bottom: 9px; color: #466151; font: 700 .75rem/1.4 ui-monospace, monospace; }
.codex-outcomes h3, .codex-notice-grid h3, .codex-register h3 { margin: 0; font-size: 1.06rem; line-height: 1.4; }
.codex-outcomes p, .codex-notice-grid p { margin: 7px 0 0; color: #374c4b; font-size: .93rem; }

.codex-workfile {
  margin-top: 20px;
  padding: 17px clamp(12px, 4vw, 26px);
  border-radius: 10px;
  color: #e1ede8;
  background: #172c2e;
}
.codex-workfile-head { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0 9px; }
.codex-workfile-head span { color: #b9dac9; font-size: .75rem; }
.codex-workfile-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 20px minmax(0, 1.1fr);
  align-items: center;
  gap: 6px;
  min-height: 45px;
  border-top: 1px solid #bfe8d039;
}
.codex-workfile-row > span { color: var(--lime); font: 650 .72rem/1.4 ui-monospace, monospace; }
.codex-workfile-row code { color: #f1f7ef; font: 590 .84rem/1.5 Pretendard, sans-serif; }

.codex-text-button {
  border: 1px solid #9fb7a9;
  border-radius: 6px;
  background: #f1f5e9;
  color: #294d40;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 5px 12px;
  font-size: .85rem;
  font-weight: 720;
  text-decoration: none;
}
.codex-text-button:hover { background: #e6efdb; }
.codex-accordions { margin-top: 20px; border-top: 1px solid #bfcabf; }
.codex-accordions details, .codex-break { border-bottom: 1px solid #cfd6cb; }
.codex-accordions summary {
  position: relative;
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  align-items: center;
  gap: 4px 10px;
  min-height: 63px;
  padding: 12px 27px 12px 0;
  font-size: 1rem;
  line-height: 1.38;
  list-style: none;
}
.codex-accordions summary::-webkit-details-marker, .codex-terms summary::-webkit-details-marker { display: none; }
.codex-accordions summary::after { content: "+"; position: absolute; right: 6px; top: 50%; translate: 0 -50%; color: #325448; font-weight: 500; font-size: 1.35rem; }
.codex-accordions details[open] summary::after { content: "−"; }
.codex-accordions summary:hover { color: #285f50; }
.codex-accordions time, .codex-break span { color: #395e50; font-size: .82rem; font-variant-numeric: tabular-nums; font-weight: 720; }
.codex-accordions details > p { margin: 0; padding: 0 22px 18px 132px; color: var(--muted); }
.codex-break { display: flex; gap: 23px; color: #45554c; padding: 11px 0; font-size: .85rem; }
.codex-faq summary { grid-template-columns: minmax(0, 1fr); }
.codex-faq details > p { padding-left: 0; }
.codex-notice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.codex-notice-grid article { padding: 17px; border: 1px solid var(--line); border-radius: 8px; }

.codex-seat {
  position: sticky;
  top: 72px;
  padding: 19px;
  border: 1px solid #c5cebf;
  border-radius: 12px;
  background: #fffcf2;
  box-shadow: 0 15px 45px #19362c10;
}
.codex-seat-date {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
  color: #193229;
  background: #dcebd1;
}
.codex-seat-date div { display: grid; gap: 1px; }
.codex-seat-date div:first-child { padding-right: 14px; border-right: 1px solid #64806b67; }
.codex-seat-date div:first-child span { font: 720 .66rem/1.3 ui-monospace, monospace; }
.codex-seat-date time { color: #122b22; font-size: 2.9rem; font-weight: 820; line-height: 1; letter-spacing: -.08em; }
.codex-seat-date div:last-child span { color: #38554a; font-size: .9rem; }
.codex-seat dl { margin: 14px 0 0; }
.codex-seat dl > div { display: flex; justify-content: space-between; gap: 10px; margin-top: 5px; }
.codex-seat dt { color: var(--muted); font-size: .86rem; }
.codex-seat dd { margin: 0; font-weight: 700; font-size: .88rem; text-align: end; }
.codex-seat-price { margin: 17px 0 12px; font-size: 2rem; letter-spacing: -.045em; font-weight: 850; line-height: 1.25; }
.codex-seat-price span { margin-left: 4px; font-size: 1rem; font-weight: 740; }
.codex-seat .codex-button { width: 100%; }
.codex-seat-contact { display: block; margin: 11px 0 0; color: #3a5549; font-size: .86rem; text-align: center; text-underline-offset: 3px; }
.codex-mobile-seat { display: none; }

.codex-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0 16px;
  padding: 0;
  list-style-position: inside;
}
.codex-flow li { padding: 12px; border: 1px solid var(--line); border-radius: 7px; font-size: .85rem; }
.codex-flow li::marker { color: #39684f; font-weight: 800; }
.codex-flow span { display: block; margin-top: 4px; color: var(--muted); }
.codex-status { padding: 12px 14px; margin: 0 0 13px; border-radius: 6px; background: #e2eedf; color: #1e4a35; font-weight: 650; font-size: .94rem; }
.codex-status[data-status="error"] { background: #f4e1d8; color: #72382f; }
.codex-form {
  display: grid;
  gap: 12px;
  padding: clamp(14px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf5;
}
.codex-form label { display: grid; gap: 3px; font-weight: 720; font-size: .92rem; }
.codex-form input:not([type="checkbox"]) { width: 100%; min-height: 46px; padding: 8px 11px; background: #fff; color: var(--ink); border: 1px solid #acbbae; border-radius: 5px; font-size: 1rem; }
.codex-form .codex-check { display: flex; gap: 8px; align-items: start; font-weight: 620; }
.codex-check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: #2e6856; }
.codex-form .codex-button { justify-self: start; }
.codex-form-hint, .codex-terms { margin: 0; color: var(--muted); font-size: .88rem; }
.codex-terms p { margin: 6px 0 0; }
.codex-terms summary { color: #345748; font-weight: 700; }
.codex-order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 13px; }
.codex-refund { margin-top: 18px; scroll-margin-top: 72px; }
.codex-refund h3 { font-size: .98rem; }
.codex-refund p { margin: 5px 0 0; color: var(--muted); font-size: .88rem; white-space: pre-line; }

.codex-footer { padding-block: 30px; color: #d6e4df; background: var(--navy); }
.codex-footer .codex-shell { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.codex-footer .codex-logotype { color: #f0f7f1; }
.codex-footer .codex-logotype span { color: var(--lime); }
.codex-footer p { margin: 7px 0 0; font-size: .86rem; }
.codex-footer address { display: grid; gap: 2px; font-style: normal; font-size: .88rem; text-align: end; }

@media (prefers-reduced-motion: no-preference) {
  .codex-hero-copy { animation: codex-enter .56s ease-out both; }
  .codex-cover { animation: codex-enter .67s .08s ease-out both; }
  .codex-section.codex-in-view > :is(.codex-section-head, h2, .codex-outcomes, .codex-notice-grid) {
    animation: codex-enter .58s cubic-bezier(.16, .65, .32, 1) both;
  }
}

@keyframes codex-enter {
  from { opacity: .74; translate: 0 16px; }
  to { opacity: 1; translate: 0 0; }
}

@media (max-width: 890px) {
  .codex-body-grid { grid-template-columns: minmax(0, 1fr); }
  .codex-seat { display: none; }
  .codex-mobile-seat {
    position: fixed;
    inset: auto 0 0;
    z-index: 6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 9px;
    padding: 9px var(--gutter) max(9px, env(safe-area-inset-bottom));
    border-top: 1px solid #cbd6c8;
    background: #fffdf4;
    box-shadow: 0 -9px 28px #1c392f15;
  }
  .codex-mobile-seat div { display: grid; }
  .codex-mobile-seat small { color: #47605a; font-size: .72rem; font-weight: 675; }
  .codex-mobile-seat strong { font-size: 1.16rem; line-height: 1.3; }
  .codex-mobile-seat .codex-button { min-height: 43px; padding-inline: 12px; }
  .codex-footer { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
}

@media (max-width: 650px) {
  .codex-topbar-inner { min-height: 54px; }
  .codex-logotype { font-size: 21px; }
  .codex-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 30px; }
  .codex-tag { margin-bottom: 12px; font-size: .76rem; }
  .codex-hero h1 { font-size: clamp(2.5rem, 9.5vw, 3.6rem); }
  .codex-hero-lead { margin-top: 15px; }
  .codex-hero-actions { margin-top: 18px; }
  .codex-hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .codex-hero-facts > div { padding: 10px 8px 12px 0; min-width: 0; }
  .codex-hero-facts > div:nth-child(even) { border-right: 0; padding-left: 12px; }
  .codex-hero-facts > div:nth-child(n+3) { border-top: 1px solid #b2d8d43b; }
  .codex-tabs-inner { width: 100%; padding-inline: var(--gutter); gap: 16px; }
  .codex-tabs a { font-size: .82rem; }
  .codex-hero-facts dd { font-size: .87rem; }
  .codex-outcomes, .codex-flow { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .codex-outcomes article { min-height: 0; padding: 14px; }
  .codex-accordions summary { grid-template-columns: minmax(0, 1fr); }
  .codex-accordions details > p { padding-left: 0; }
  .codex-footer .codex-shell { align-items: start; flex-direction: column; }
  .codex-footer address { text-align: start; }
}

@media (max-width: 365px) {
  .codex-notice-grid { grid-template-columns: minmax(0, 1fr); }
  .codex-workfile-row { grid-template-columns: 24px minmax(0, 1fr) 13px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .codex-button { transition: none; }
  .codex-button:hover { translate: none; }
}
