/* ── tokens ─────────────────────────────── */
:root {
  --paper: #FAFAF7;
  --ink: #16232E;
  --steel: #5B6B78;
  --cobalt: #2352D1;
  --cobalt-dark: #1B41A8;
  --marker: #FFD84D;
  --line: #E3E2DC;
  --card: #FFFFFF;
  --serif: 'Noto Serif KR', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
mark { background: linear-gradient(transparent 55%, var(--marker) 55%); color: inherit; padding: 0 2px; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; border-radius: 2px; }

/* ── header ─────────────────────────────── */
.top { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.brand { font-size: 17px; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 10px; }
.brand b { color: var(--cobalt); }
.brand-co {
  font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--steel); text-decoration: none;
}
.brand-co:hover { color: var(--cobalt); }
.brand-co i { font-style: normal; color: var(--marker); }
.brand-sep { color: var(--line); }
.top-note { font-family: var(--mono); font-size: 12px; color: var(--steel); background: var(--marker); color: var(--ink); padding: 3px 10px; border-radius: 99px; font-weight: 600; }

/* ── hero ───────────────────────────────── */
.hero { padding: 88px 0 72px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: center; }
.hero-art img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; filter: drop-shadow(0 18px 26px rgba(22, 35, 46, 0.12)); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { display: none; } }
.hero-eyebrow { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--cobalt); letter-spacing: 0.08em; margin: 0 0 20px; }
.hero-quote {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(34px, 6vw, 52px); line-height: 1.28;
  letter-spacing: -0.02em; margin: 0 0 24px; max-width: 720px; word-break: keep-all;
}
.hero-sub { font-size: 18px; color: var(--steel); margin: 0 0 36px; }
.hero-sub b { color: var(--ink); }
.hero-cta {
  display: inline-block; background: var(--cobalt); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 16px; padding: 14px 28px; border-radius: 8px;
  transition: background 0.15s;
}
.hero-cta:hover { background: var(--cobalt-dark); }

/* ── category sections ──────────────────── */
.cat { padding: 72px 0 8px; }
.cat-label { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--steel); letter-spacing: 0.1em; margin: 0 0 14px; text-transform: uppercase; }
.cat-cep {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(24px, 3.6vw, 36px); line-height: 1.3;
  letter-spacing: -0.015em; margin: 0 0 32px; max-width: 640px; word-break: keep-all;
}
.cat-cep::before { content: '“'; color: var(--cobalt); }
.cat-cep::after { content: '”'; color: var(--cobalt); }

.cat-desc { font-size: 15.5px; color: var(--steel); margin: -16px 0 28px; max-width: 580px; word-break: keep-all; }

/* ── cards ──────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; padding-bottom: 24px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 20px 18px 16px; text-align: left; cursor: pointer; font: inherit; color: inherit;
  display: flex; flex-direction: column; gap: 8px; min-height: 150px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.card:hover { border-color: var(--cobalt); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(22, 35, 46, 0.07); }
.card .thumb { width: 100%; height: 52px; display: block; margin-bottom: 2px; }
.card-media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: #F1F0EA; margin-bottom: 6px; }
.card-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-no {
  position: absolute; top: 8px; left: 8px; font-family: var(--mono);
  font-size: 10.5px; font-weight: 600; background: var(--marker); color: var(--ink);
  padding: 2px 7px; border-radius: 4px;
}
.card-suite .card-media { background: #0F1820; }
.m-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; display: block; margin-bottom: 18px; }
.m-effect {
  font-size: 14.5px; color: var(--ink); border-left: 3px solid var(--marker);
  padding: 2px 0 2px 12px; margin: 0 0 20px; word-break: keep-all;
}
.card-name { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.card-suite { background: var(--ink); border-color: var(--ink); color: #fff; }
.card-suite .card-hook { color: #A7B4BF; }
.card-suite .card-foot { border-top-color: rgba(255, 255, 255, 0.22); }
.card-suite .card-more { color: var(--marker); }
.card-suite:hover { border-color: var(--marker); box-shadow: 0 6px 18px rgba(22, 35, 46, 0.25); }
.card-hook { font-size: 13.5px; color: var(--steel); flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); padding-top: 10px; }
.card-price { font-family: var(--mono); font-weight: 600; font-size: 14px; }
.card-price small { font-weight: 500; color: var(--steel); }
.card-more { font-size: 12.5px; color: var(--cobalt); font-weight: 600; }

/* ── modal ──────────────────────────────── */
.modal-back {
  position: fixed; inset: 0; background: rgba(22, 35, 46, 0.45);
  display: flex; align-items: flex-end; justify-content: center; z-index: 50; padding: 0;
}
.modal-back[hidden] { display: none; }
.modal {
  background: var(--paper); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  border-radius: 16px 16px 0 0; padding: 32px 28px 28px; position: relative;
  animation: rise 0.22s ease-out;
}
@media (min-width: 640px) {
  .modal-back { align-items: center; padding: 24px; }
  .modal { border-radius: 16px; }
}
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-x {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
  border: none; background: none; font-size: 26px; color: var(--steel); cursor: pointer; line-height: 1;
}
.m-cat { font-family: var(--mono); font-size: 12px; color: var(--cobalt); font-weight: 600; letter-spacing: 0.08em; margin: 0 0 8px; }
.m-name { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 18px; }
.m-lines { margin: 0 0 20px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.m-lines li { padding-left: 26px; position: relative; font-size: 15px; }
.m-lines li::before {
  content: counter(ln); counter-increment: ln;
  position: absolute; left: 0; top: 3px; width: 18px; height: 18px;
  background: var(--ink); color: #fff; border-radius: 50%;
  font-family: var(--mono); font-size: 11px; display: flex; align-items: center; justify-content: center;
}
.m-lines { counter-reset: ln; }

/* tier toggle */
.m-tier { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.m-tier button {
  flex: 1; padding: 10px; border: none; background: var(--card); font: inherit; font-weight: 600;
  color: var(--steel); cursor: pointer;
}
.m-tier button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.m-tierdesc { font-size: 14px; color: var(--steel); background: var(--card); border: 1px dashed var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 20px; }
.m-tierdesc b { color: var(--ink); }

/* price */
.m-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; font-family: var(--mono); }
.m-price .now { font-size: 26px; font-weight: 600; }
.m-price .was { color: var(--steel); text-decoration: line-through; font-size: 15px; }
.m-price .tag { font-family: var(--sans); font-size: 12px; font-weight: 700; background: var(--marker); padding: 2px 8px; border-radius: 4px; }

.m-own { font-size: 13.5px; color: var(--steel); margin: -12px 0 20px; }

/* delivery */
.m-dl { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.m-dl label {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px;
  padding: 11px 14px; cursor: pointer; font-size: 14.5px; background: var(--card);
}
.m-dl label:has(input:checked) { border-color: var(--cobalt); box-shadow: inset 0 0 0 1px var(--cobalt); }
.m-dl .dl-price { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--steel); }

/* actions */
.m-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-eb {
  background: var(--cobalt); color: #fff; border: none; border-radius: 8px; padding: 15px;
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; transition: background 0.15s;
}
.btn-eb:hover { background: var(--cobalt-dark); }
.m-notify { display: flex; gap: 8px; }
.m-notify input {
  flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font: inherit; font-size: 15px; background: var(--card); min-width: 0;
}
.m-notify button {
  border: 1.5px solid var(--ink); background: none; border-radius: 8px; padding: 12px 18px;
  font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.m-notify button:hover { background: var(--ink); color: #fff; }
.m-msg { font-size: 14px; margin: 10px 0 0; min-height: 20px; }
.m-msg.ok { color: #1A7F37; font-weight: 600; }
.m-msg.err { color: #C0392B; }

/* earlybird notice */
.m-honest {
  background: #FFF9E3; border: 1px solid #F0DFA0; border-radius: 10px; padding: 18px; margin-top: 4px;
}
.m-honest h4 { margin: 0 0 8px; font-size: 15.5px; }
.m-honest p { margin: 0 0 14px; font-size: 14px; color: var(--steel); }

/* ── footer ─────────────────────────────── */
.foot { border-top: 1px solid var(--line); margin-top: 64px; padding: 40px 0 48px; }
.foot p { margin: 0 0 6px; font-size: 14px; }
.foot-grid { display: flex; justify-content: space-between; gap: 32px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 22px; }
.foot-brand { font-size: 17px; }
.foot-brand b { color: var(--cobalt); }
.foot-co a { color: var(--ink); text-decoration: none; }
.foot-co a:hover { color: var(--cobalt); }
.foot-tagline { color: var(--steel); font-size: 13.5px !important; word-break: keep-all; }
.foot-side { text-align: right; }
.foot-side a { color: var(--steel); text-decoration: none; font-size: 13.5px; }
.foot-side a:hover { color: var(--cobalt); }
.foot-fine { color: var(--steel); font-size: 12.5px !important; border-top: 1px dashed var(--line); padding-top: 18px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .modal { animation: none; }
  .card, .card:hover { transition: none; transform: none; }
}
