/* ============================================================
   MOONGI STUDIO — Link Hub
   Design language: cream paper + ink black + orange cheek,
   hand-drawn rounded, bilingual EN/KR
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Jua&family=Gaegu:wght@700&display=swap');

:root {
  /* palette */
  --paper:      #F4EEE1;
  --paper-2:    #EFE7D6;
  --surface:    #FBF7EE;
  --ink:        #1C1B19;
  --ink-soft:   #4A4741;
  --peach:      #FBE3CE;
  --orange:     #F3944B;
  --orange-ink: #E07A2E;
  --shadow:     rgba(28,27,25,.14);

  /* type */
  --display: 'Fredoka','Jua',system-ui,sans-serif;
  --body:    'Pretendard','Fredoka','Apple SD Gothic Neo',system-ui,sans-serif;

  --radius: 20px;
  --stroke: 2.5px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  background:
    radial-gradient(circle at 18% -5%, #FBF3E4 0%, transparent 45%),
    radial-gradient(circle at 90% 8%, #F6EAD6 0%, transparent 40%),
    var(--paper);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 40px 18px 72px;
  line-height: 1.45;
}

/* subtle paper dots */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: radial-gradient(var(--paper-2) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
}

/* ---------- HERO ---------- */
.hero { text-align: center; margin-bottom: 30px; }

.mascot {
  width: 150px; height: 150px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 8px 18px var(--shadow));
}
.mascot svg { width: 100%; height: 100%; display: block; }
.mascot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-missing {
  font-family: var(--display); font-size: 12px; color: var(--ink-soft);
  border: 2px dashed var(--ink); border-radius: 50%;
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center;
  padding: 12px;
}
.logo-missing code { font-size: 10px; color: var(--orange-ink); }

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: .5px;
  line-height: 1.05;
}
.hero .kr { font-family: var(--display); font-size: 18px; color: var(--ink-soft); margin-top: 4px; }
.hero .tagline {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 340px;
  margin-left: auto; margin-right: auto;
}

/* ---------- SECTION ---------- */
.section { margin-top: 26px; }
.section-label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 4px 12px;
}
.section-label .kr { color: var(--orange-ink); letter-spacing: 0; font-size: 13px; }
.section-label::after {
  content: '';
  flex: 1; height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px);
  opacity: .25;
}

/* ---------- LINK CARD ---------- */
.links { display: flex; flex-direction: column; gap: 12px; }

.card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius);
  padding: 13px 16px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 4px 5px 0 var(--ink);
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.card:hover, .card:focus-visible {
  transform: translate(-2px,-2px);
  box-shadow: 6px 7px 0 var(--ink);
  background: #fff;
  outline: none;
}
.card:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }

.card.disabled {
  opacity: .62;
  box-shadow: 3px 4px 0 rgba(28,27,25,.4);
  cursor: default;
  pointer-events: none;
}

.ic {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--peach);
  border: var(--stroke) solid var(--ink);
  border-radius: 14px;
}
.ic svg { width: 26px; height: 26px; }

.card .txt { flex: 1; min-width: 0; }
.card .en {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.1;
}
.card .kr {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.badge {
  font-family: var(--display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .5px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  white-space: nowrap;
}
.badge.new  { background: var(--orange); color: #fff; }
.badge.soon { background: var(--paper-2); color: var(--ink-soft); }

.arrow { flex: 0 0 auto; font-size: 18px; color: var(--ink); opacity: .55; }

/* channels: compact grid */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid2 .card { box-shadow: 4px 5px 0 var(--ink); }

/* ---------- FOOTER ---------- */
.foot {
  text-align: center;
  margin-top: 40px;
  font-family: var(--display);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: .3px;
}
.foot a { color: var(--orange-ink); text-decoration: none; }

/* ---------- SUBPAGE ---------- */
.back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--display); font-weight: 600; font-size: 14px;
  color: var(--ink); text-decoration: none;
  margin-bottom: 22px;
}
.back:hover { color: var(--orange-ink); }

.page-head { text-align: center; margin-bottom: 26px; }
.page-head .mini-mascot { width: 66px; height: 66px; margin: 0 auto 10px; }
.page-head .mini-mascot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.page-head h1 { font-family: var(--display); font-weight: 700; font-size: 26px; }
.page-head .kr { font-family: var(--display); color: var(--ink-soft); font-size: 15px; margin-top: 2px; }
.page-head p { font-size: 13.5px; color: var(--ink-soft); margin-top: 10px; }

/* ---------- FORM ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field label {
  display: block;
  font-family: var(--display); font-weight: 600; font-size: 14px;
  margin-bottom: 6px;
}
.field label .req { color: var(--orange-ink); }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: var(--stroke) solid var(--ink);
  border-radius: 14px;
  padding: 12px 14px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  box-shadow: 3px 4px 0 var(--orange);
  background: #fff;
}
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--display); font-weight: 500; font-size: 13.5px;
  padding: 8px 14px;
  background: var(--surface);
  border: var(--stroke) solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: transform .1s ease;
}
.chip input { display: none; }
.chip:has(input:checked) { background: var(--orange); color: #fff; }
.chip:active { transform: scale(.96); }

.submit {
  font-family: var(--display); font-weight: 700; font-size: 17px;
  color: #fff; background: var(--ink);
  border: var(--stroke) solid var(--ink);
  border-radius: 16px;
  padding: 15px;
  cursor: pointer;
  box-shadow: 4px 5px 0 var(--orange);
  transition: transform .12s ease, box-shadow .12s ease;
}
.submit:hover { transform: translate(-2px,-2px); box-shadow: 6px 7px 0 var(--orange); }
.submit:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--orange); }

.form-note { font-size: 12px; color: var(--ink-soft); text-align: center; }

/* ---------- TOOLS / COURSES CARDS ---------- */
.stack { display: flex; flex-direction: column; gap: 16px; }
.tile {
  background: var(--surface);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 5px 0 var(--ink);
  padding: 18px;
}
.tile h3 { font-family: var(--display); font-weight: 700; font-size: 18px; }
.tile .sub { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
.tile p { font-size: 13.5px; margin-top: 10px; }
.promo {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px;
  font-family: var(--display); font-weight: 600; font-size: 14px;
  background: var(--peach);
  border: 2px dashed var(--orange-ink);
  border-radius: 10px;
  padding: 6px 12px;
  color: var(--orange-ink);
}
.tile .go {
  display: inline-block; margin-top: 14px;
  font-family: var(--display); font-weight: 600; font-size: 14px;
  color: #fff; background: var(--ink);
  border-radius: 12px; padding: 9px 18px;
  text-decoration: none;
}
.tile .go:hover { background: var(--orange-ink); }

/* ---------- WHY ME ---------- */
.why {
  background: #fff;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 6px 0 var(--orange);
  padding: 18px 18px 16px;
  margin-bottom: 26px;
}
.why .glabel {
  font-family: var(--display); font-weight: 700; font-size: 13px;
  letter-spacing: 1px; text-transform: uppercase; color: var(--orange-ink);
  margin-bottom: 12px;
}
.why ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.why li { display: flex; gap: 9px; align-items: flex-start; }
.why li::before { content: '●'; color: var(--orange); font-size: 9px; line-height: 1.7; flex: 0 0 auto; }
.why b { font-family: var(--display); font-weight: 600; font-size: 14.5px; display: block; }
.why span { font-size: 12.5px; color: var(--ink-soft); }

/* ---------- PRICING TIERS ---------- */
.tiers { display: flex; flex-direction: column; gap: 24px; margin-bottom: 30px; }
.tier-group { display: flex; flex-direction: column; gap: 12px; }
.tier-group > .glabel {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 600; font-size: 12px;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--orange-ink);
  margin: 2px 4px 0;
}
.tier {
  background: var(--surface);
  border: var(--stroke) solid var(--ink);
  border-radius: 16px;
  box-shadow: 4px 5px 0 var(--ink);
  padding: 15px 16px;
}
.tier.hero-tier { background: #fff; box-shadow: 5px 6px 0 var(--orange); }
.tier .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tier .name { font-family: var(--display); font-weight: 700; font-size: 15.5px; line-height: 1.15; }
.tier .name small { display: block; font-family: var(--body); font-weight: 500; font-size: 11px; color: var(--ink-soft); letter-spacing: .2px; margin-top: 2px; }
.tier .price { font-family: var(--display); font-weight: 700; font-size: 18px; white-space: nowrap; }
.tier .price small { font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.tier .desc { font-size: 12.5px; color: var(--ink-soft); margin-top: 7px; }
.tier .tag {
  display: inline-block; margin-top: 8px;
  font-family: var(--display); font-weight: 600; font-size: 10px; letter-spacing: .5px;
  padding: 3px 8px; border-radius: 999px;
  background: var(--peach); color: var(--orange-ink); border: 1.5px solid var(--orange-ink);
}
.tiers-note { font-size: 12px; color: var(--ink-soft); text-align: center; margin: -8px 0 26px; }

.coming {
  text-align: center; padding: 50px 20px;
  background: var(--surface);
  border: var(--stroke) dashed var(--ink);
  border-radius: var(--radius);
}
.coming .big { font-family: var(--display); font-weight: 700; font-size: 22px; }
.coming p { font-size: 14px; color: var(--ink-soft); margin-top: 10px; }

@media (max-width: 420px) {
  .hero h1 { font-size: 26px; }
  .grid2 { grid-template-columns: 1fr; }
}
