/* Talkdari — mobile-first, no build step */
:root {
  --teal: #0B5D57; --teal-2: #0e7068; --coral: #FF6B57; --cream: #FFF6EC; --ink: #12201F;
  --paper: #ffffff; --muted: #5b6b69; --line: #e7ddd0; --soft: #f6ecdf;
  --r: 18px; --r-sm: 12px; --pill: 999px; --tap: 46px;
  --shadow: 0 8px 28px rgba(18, 32, 31, .08);
  --font: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans Lao", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.6 var(--font); }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 7vw, 46px); }
h2 { font-size: clamp(22px, 5vw, 30px); }
h3 { font-size: 17px; }
p { margin: 0 0 .6em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 18px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 246, 236, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 10px; min-height: 62px; }
.top .logo img { height: 32px; width: auto; }
.top nav { display: none; gap: 18px; margin-left: auto; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover { color: var(--teal); }
.lang { margin-left: auto; font: 600 14px var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--pill); min-height: 40px; padding: 0 12px; }
@media (min-width: 860px) { .top nav { display: flex; } .lang { margin-left: 0; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--tap); padding: 0 20px; border: 0; border-radius: var(--pill); background: var(--coral); color: var(--ink); font: 700 16px var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(.96); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.teal { background: var(--teal); color: #fff; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn.danger { background: #fff; color: #b42318; border: 1px solid #f3c1bc; }
.btn.block { width: 100%; }

/* hero */
.hero { padding: 22px 0 10px; }
.hero .grid { display: grid; gap: 18px; }
.hero img { border-radius: var(--r); width: 100%; aspect-ratio: 16/10; object-fit: cover; box-shadow: var(--shadow); }
.eyebrow { color: var(--teal); font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.hero .sub { color: var(--muted); font-size: 17px; }
.callout { background: var(--teal); color: #fff; border-radius: var(--r); padding: 20px; }
.callout .head { color: var(--coral); font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.callout p { color: #e9f3f2; }
.callout strong { color: #fff; }
@media (min-width: 860px) { .hero .grid { grid-template-columns: 1.1fr .9fr; align-items: center; } .hero .copy { order: -1; } }

/* sections */
.section { padding: 34px 0; }
.section .lead { color: var(--muted); }
.cards { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 14px; }
@media (min-width: 560px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .cards.c3 { grid-template-columns: repeat(3, 1fr); } .cards.c4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card p:last-child { margin-bottom: 0; }
.card .muted, .muted { color: var(--muted); }
.steps { display: grid; gap: 10px; margin-top: 14px; counter-reset: s; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.step .num { font: 800 13px var(--font); color: var(--coral); }
.step .num small { color: var(--muted); font-weight: 600; margin-left: 6px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: var(--pill); background: var(--soft); font-size: 13px; font-weight: 600; margin: 0 4px 4px 0; }
.badge { display: inline-block; padding: 2px 10px; border-radius: var(--pill); background: var(--coral); color: var(--ink); font-size: 12px; font-weight: 800; }
.badge.demo { background: #ffe3a3; }
.badge.teal { background: var(--teal); color: #fff; }

/* teachers */
.tcard { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; }
.tcard:hover { box-shadow: var(--shadow); }
.trow { display: flex; gap: 12px; align-items: center; }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 84px; height: 84px; font-size: 30px; }

/* prices */
.ptable { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); margin-top: 14px; }
.ptable th, .ptable td { padding: 14px; text-align: left; border-bottom: 1px solid var(--line); }
.ptable tr:last-child th, .ptable tr:last-child td { border-bottom: 0; }
.ptable td.num { text-align: right; font-weight: 800; white-space: nowrap; }
.ptable tr.hl { background: #fff1e8; }
.fine { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* faq */
details.card { padding: 0; }
details.card summary { padding: 16px 18px; font-weight: 700; cursor: pointer; list-style: none; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary::after { content: "+"; float: right; color: var(--teal); font-weight: 800; }
details.card[open] summary::after { content: "–"; }
details.card .a { padding: 0 18px 16px; color: var(--muted); }

/* forms */
form .field, .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
label { font-weight: 700; font-size: 14px; }
input, select, textarea { font: 16px var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 12px; min-height: var(--tap); width: 100%; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 3px solid rgba(11, 93, 87, .25); outline-offset: 1px; border-color: var(--teal); }
.row2 { display: grid; gap: 0 12px; }
@media (min-width: 600px) { .row2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; min-height: 20px; height: 20px; margin-top: 3px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hint { font-size: 13px; color: var(--muted); font-weight: 400; }
.msg { padding: 12px 14px; border-radius: var(--r-sm); margin: 10px 0; font-weight: 600; }
.msg.err { background: #fde8e6; color: #8a1c12; }
.msg.ok { background: #e3f3ef; color: #0b4b45; }

/* slots */
.days { display: flex; flex-direction: column; gap: 12px; }
.day h3 { font-size: 15px; margin-bottom: 6px; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { min-height: 44px; padding: 6px 12px; border: 1px solid var(--line); background: #fff; border-radius: var(--r-sm); font: 600 14px var(--font); color: var(--ink); cursor: pointer; text-align: left; line-height: 1.3; }
.slot small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.slot[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.slot[aria-pressed="true"] small { color: #d6ecea; }
.types { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .types { grid-template-columns: 1fr 1fr; } }
.type { display: flex; gap: 10px; align-items: center; justify-content: space-between; border: 1px solid var(--line); background: #fff; border-radius: var(--r-sm); padding: 12px 14px; cursor: pointer; }
.type input { width: 18px; min-height: 18px; height: 18px; flex: none; }
.type:has(input:checked) { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.type b { white-space: nowrap; }

/* status */
.status { display: inline-block; padding: 2px 10px; border-radius: var(--pill); font-size: 13px; font-weight: 800; }
.st-입금대기 { background: #fff1c2; color: #6b4e00; }
.st-확정 { background: #d7f0ea; color: #0b4b45; }
.st-취소 { background: #f1e3e1; color: #7a2a20; }
.st-완료 { background: #e4e7f5; color: #2d3570; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; }
.kv dt { color: var(--muted); font-size: 14px; }
.kv dd { margin: 0; font-weight: 600; word-break: break-all; }
.codebox { font: 800 28px/1.2 ui-monospace, Menlo, monospace; letter-spacing: .12em; color: var(--teal); }

/* lesson */
.meet { width: 100%; height: min(78vh, 720px); border: 0; border-radius: var(--r); background: #000; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; margin-top: 30px; font-size: 13px; color: var(--muted); }
.foot img { height: 26px; width: auto; margin-bottom: 10px; }
.foot a { color: var(--muted); }
.foot .links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* mobile bottom bar */
.mbar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 246, 236, .95); border-top: 1px solid var(--line); }
.mbar .btn { flex: 1; }
body.has-mbar { padding-bottom: 76px; }
@media (min-width: 860px) { .mbar { display: none; } body.has-mbar { padding-bottom: 0; } }

.doc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin: 22px 0; }
.doc h2 { font-size: 19px; margin-top: 1.2em; }
.draft { background: #fff1c2; color: #6b4e00; padding: 8px 12px; border-radius: var(--r-sm); font-weight: 700; display: inline-block; }
.center { text-align: center; }
.spinner { padding: 30px; text-align: center; color: var(--muted); }
