/* ===== 랜딩 페이지 ===== */
.landing { scroll-behavior: smooth; }
.lnav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 20px; padding: 12px max(16px, calc(50% - 560px));
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.lnav .brand { text-decoration: none; }
.lnav nav { flex: 1; display: flex; gap: 22px; justify-content: center; }
.lnav nav a { text-decoration: none; font-weight: 700; color: var(--ink-2); }
.lnav nav a:hover { color: var(--coral-d); }
.btn.big { min-height: 58px; padding: 0 28px; font-size: 18px; border-radius: 18px; }

.lhero { max-width: 1120px; margin: 0 auto; padding: 56px 16px 40px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.lhero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.1; margin: 16px 0; letter-spacing: -0.01em; }
.lhero h1 em { font-style: normal; color: var(--coral); background: linear-gradient(transparent 62%, var(--sun-t) 62%); padding: 0 4px; }
.lhero p { font-size: 19px; line-height: 1.65; color: var(--ink-2); max-width: 520px; }
.lcta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 28px; flex-wrap: wrap; }
.stats b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 38px; line-height: 1; }
.stats span { color: var(--muted); font-weight: 700; font-size: 14px; }

.lhero-art { position: relative; min-height: 420px; display: grid; place-items: center; }
.lhero-art::before { content: ''; position: absolute; inset: 6% 2%; border-radius: 48% 52% 46% 54%; background: radial-gradient(circle at 30% 30%, var(--sun-t), var(--coral-t) 70%); }
.tablet { position: relative; width: min(100%, 470px); background: var(--surface); border-radius: 30px; padding: 20px; box-shadow: 0 30px 60px rgba(70, 40, 20, .18), 0 0 0 10px #2b2420; display: grid; gap: 14px; transform: rotate(-2deg); }
.tablet-top { display: flex; justify-content: space-between; gap: 8px; }
.pill { font-size: 13px; font-weight: 800; padding: 7px 12px; border-radius: 999px; background: var(--surface-2); }
.pill.play { background: var(--ink); color: var(--bg); }
.demo-row .textrow { width: 100%; }
.demo-row .textrow .cell { flex: 1; width: auto; font-size: clamp(22px, 3vw, 34px); }
.demo-row.ghost { opacity: .35; }
.float { position: absolute; }
.lhero-art .char { position: absolute; }
.lhero-art .char:nth-of-type(1) { left: -10px; bottom: 14px; width: 130px; height: 120px; }
.lhero-art .char:nth-of-type(2) { right: -6px; top: 0; width: 110px; height: 100px; }
.lhero-art .char:nth-of-type(3) { right: 26px; bottom: -6px; width: 110px; height: 100px; }

.lsec { max-width: 1120px; margin: 0 auto; padding: 64px 16px; }
.lsec h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 4.4vw, 48px); margin: 12px 0 10px; }
.lead { font-size: 18px; line-height: 1.7; color: var(--ink-2); max-width: 640px; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.how article { background: var(--surface); border-radius: 28px; padding: 26px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.how h3 { font-family: var(--font-display); font-weight: 400; font-size: 28px; margin: 14px 0 6px; }
.how p { color: var(--ink-2); line-height: 1.6; margin: 0; }
.hn { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-size: 26px; }
.how .s1 .hn { background: var(--sun); } .how .s2 .hn { background: var(--sky); } .how .s3 .hn { background: var(--coral); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.ticks { list-style: none; padding: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; color: var(--ink-2); font-weight: 600; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: #fff; display: grid; place-items: center; font-size: 13px; }
.trypad { background: var(--surface); border-radius: 28px; padding: 20px; box-shadow: var(--shadow); display: grid; gap: 12px; justify-items: start; }
.trypad #demo-pad { width: 100%; }
.try-label { margin: 0; font-weight: 800; color: var(--coral-d); }

.notes-mock { background: var(--surface); border-radius: 28px; padding: 22px; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.nm-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1.5px dashed var(--line); }
.nm-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.nm-meta { margin: 6px 0 14px; font-size: 13px; color: var(--muted); }
.nm-meta.ok { color: var(--ok); font-weight: 800; }

.cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 26px; }
.castcard { background: var(--surface); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); display: grid; justify-items: center; text-align: center; gap: 2px; transition: transform .2s; }
.castcard:hover { transform: translateY(-4px) rotate(-1deg); }
.castcard b { font-family: var(--font-display); font-weight: 400; font-size: 22px; margin-top: 6px; }
.castcard span { color: var(--coral-d); font-weight: 800; font-size: 13px; }
.castcard p { font-size: 14px; color: var(--ink-2); line-height: 1.5; margin: 8px 0 0; }

.tgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 22px; }
.tgrid article { background: var(--surface); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.tgrid h3 { margin: 0 0 8px; font-size: 19px; }
.tgrid p { margin: 0; color: var(--ink-2); line-height: 1.6; }

.lcta-band { max-width: 1088px; margin: 20px auto 40px; padding: 30px; border-radius: 32px; display: flex; align-items: center; gap: 22px;
  background: linear-gradient(135deg, var(--coral), #ffae5c); color: #fff; box-shadow: 0 20px 40px color-mix(in srgb, var(--coral) 35%, transparent); }
.lcta-band > div { flex: 1; }
.lcta-band h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3.6vw, 38px); margin: 0 0 4px; }
.lcta-band p { margin: 0; opacity: .9; }
.lcta-band .btn3d { color: var(--coral-d); font-size: 18px; }
.lfoot { text-align: center; padding: 30px 16px 50px; color: var(--ink-2); font-size: 14px; }

@media (max-width: 860px) {
  .lnav nav { display: none; }
  .lnav { justify-content: space-between; }
  .lhero, .split { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 2; }
  .how { grid-template-columns: 1fr; }
  .lhero-art { min-height: 340px; }
  .lcta-band { flex-direction: column; text-align: center; }
}

/* 공책 테마 보정 */
.lhero-art::before { inset: 10% 6%; border-radius: 6px; background: var(--surface); box-shadow: 0 2px 0 var(--line); transform: rotate(3deg);
  background-image: linear-gradient(90deg, transparent 38px, rgba(232, 66, 63, .25) 38px, rgba(232, 66, 63, .25) 40px, transparent 40px); }
.how article { border-radius: 6px 22px 22px 22px; }
.tgrid article { border-radius: 6px 20px 20px 20px; }
.tgrid article .char { margin-bottom: 6px; }
.notes-mock, .trypad { border-radius: 6px 24px 24px 24px; }
.lcta-band { background: var(--coral); border-radius: 10px 30px 12px 28px; }
.stats b { color: var(--coral-d); }
.lhero h1 em { background: linear-gradient(transparent 58%, #ffe08a 58%, #ffe08a 90%, transparent 90%); }

/* 채점 미리보기 */
.grade-mock { background: var(--surface); border-radius: 6px 24px 24px 24px; padding: 20px; box-shadow: var(--shadow); display: grid; gap: 10px; transform: rotate(-1deg); }
.gm-head { display: flex; align-items: center; gap: 10px; }
.gm-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--coral-t); color: var(--coral-d); font-weight: 800; }
.gm-res { font-family: var(--font-display); font-weight: 400; font-size: 20px; color: var(--red-pen); }
.gm-head.ok .gm-res { color: var(--ok); }
.gm-btns { margin-left: auto; display: flex; gap: 6px; }
.gm-btns i { font-style: normal; font-size: 13px; font-weight: 800; padding: 6px 10px; border-radius: 12px; border: 2px solid var(--line); color: var(--ink-2); }
.gm-head:not(.ok) .gm-btns i.on { border-color: var(--red-pen); color: var(--red-pen); background: #ffecea; }
.gm-head.ok .gm-btns i.on { border-color: var(--ok); color: var(--mint-d); background: var(--ok-bg); }
.gm-row { display: grid; gap: 0; margin-bottom: 8px; }
.gm-row .textrow { width: 100%; }
.gm-row .textrow .cell { flex: 1; width: auto; font-size: clamp(18px, 2.4vw, 28px); }
.gm-row .textrow.mine .cell { font-family: 'Jua', sans-serif; color: var(--ink); }
.gm-row .textrow.ans { border-top: 0; border-radius: 0 0 6px 6px; }
.gm-row .textrow.ans .cell { background: var(--sun-t); color: var(--ink-2); font-size: clamp(15px, 2vw, 22px); }
