/* หน้า /business — PlengMa สำหรับร้านค้า / ธุรกิจ (ใช้ร่วมกับ market.css) */
.biz { --biz-teal: #0f3d3e; --biz-amber: #f2a93b; }
.biz [hidden] { display: none !important; }
.biz .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Hero */
.biz-hero {
    padding: 72px 0 80px;
    color: #fff;
    background:
        radial-gradient(900px 400px at 85% 10%, rgba(242, 169, 59, 0.28), transparent 60%),
        linear-gradient(140deg, var(--night) 0%, #123b3c 100%);
}
.biz-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.biz-hero h1 { margin: 14px 0 18px; font-size: clamp(2rem, 5vw, 3.3rem); }
.biz-hero h1 em { font-style: normal; color: var(--biz-amber); }
.biz-lead { max-width: 560px; color: rgba(255, 255, 255, 0.82); font-size: 1.08rem; }
.biz-lead strong { color: #fff; }
.biz-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.biz-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; color: rgba(255, 255, 255, 0.75); font-size: 0.92rem; }
.biz-points li::before { content: '✓ '; color: var(--biz-amber); font-weight: 700; }
.biz-hero-card { display: flex; justify-content: center; }
.mini-lyric {
    width: min(360px, 100%);
    padding: 22px 24px 24px;
    border-radius: 16px;
    background: #fffaf0;
    color: var(--ink);
    transform: rotate(2deg);
    box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.55);
    background-image: repeating-linear-gradient(transparent 0 33px, rgba(15, 61, 62, 0.12) 33px 34px);
}
.mini-lyric small { display: block; margin-bottom: 8px; color: var(--biz-teal); font: 600 0.78rem var(--font-head); letter-spacing: 0.06em; }
.mini-lyric p { font-size: 1.08rem; line-height: 34px; }

/* Sections */
.biz-section { padding: 72px 0; }
.biz-alt { background: #f5efe4; }
.biz-head { max-width: 760px; margin-bottom: 32px; }
.biz-head h2 { margin: 10px 0 10px; font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.biz-head p { color: var(--muted); }
.biz-sub { margin: 36px 0 4px; font-size: 1.15rem; }
.biz-note { margin-bottom: 14px; color: var(--muted); font-size: 0.93rem; }

.biz-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.biz-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.biz-card .ico { display: block; margin-bottom: 10px; font-size: 1.7rem; }
.biz-card h3 { margin-bottom: 6px; font-size: 1.05rem; }
.biz-card p { color: var(--muted); font-size: 0.93rem; }

/* ตัวอย่างเสียง */
.biz-audio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.biz-audio { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); text-decoration: none; }
.biz-audio small { color: var(--muted); }
.biz-audio audio { width: 100%; margin-top: 8px; }
.biz-audio-link { justify-content: space-between; background: linear-gradient(140deg, #1b1330, #14243a); color: #fff; }
.biz-audio-link small { color: rgba(255, 255, 255, 0.7); }
.biz-audio-link .btn { align-self: flex-start; margin-top: 10px; }

/* ตัวอย่างร่างเนื้อเพลง */
.biz-examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.biz-ex { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: var(--radius); background: #fffaf0; border: 1px solid #ecdcb9; box-shadow: var(--shadow); }
.biz-ex-head { display: flex; flex-direction: column; }
.biz-ex-head small { color: var(--muted); }
.biz-ex .btn { margin-top: auto; align-self: flex-start; }
.lyric-sec { margin: 0; }
.lyric-sec p { margin: 0; line-height: 1.7; }
.lyric-tag { display: inline-block; margin-bottom: 2px; padding: 0 8px; border-radius: 999px; background: rgba(15, 61, 62, 0.1); color: var(--biz-teal); font: 600 0.72rem var(--font-head); letter-spacing: 0.06em; }

/* แม่แบบทำนอง */
.biz-tpls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.biz-tpl { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.biz-tpl-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.biz-tpl .pill { padding: 3px 10px; border-radius: 999px; background: linear-gradient(120deg, var(--c1), var(--c2)); color: #fff; font: 600 0.74rem var(--font-head); letter-spacing: 0.06em; }
.biz-tpl h4 { margin: 0; font: 600 1rem var(--font-head); }
.biz-tpl small { color: var(--muted); }
.biz-tpl p { flex: 1; color: var(--muted); font-size: 0.88rem; }
.biz-tpl a { font-weight: 600; font-size: 0.9rem; text-decoration: none; color: var(--accent-deep); }
.biz-tpl a.biz-tpl-brief { margin-top: 6px; padding: 7px 12px; text-align: center; border-radius: 999px; background: var(--biz-teal); color: #fff; }
.biz-tpl a.biz-tpl-brief:hover { background: #1a5c5d; }
.biz-play { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.85rem; cursor: pointer; }
.biz-play:hover, .biz-play.on { background: var(--accent); }

/* ขั้นตอน + FAQ */
.biz-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.biz-steps li { position: relative; padding: 22px 20px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.biz-steps b { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; background: var(--biz-teal); color: #fff; font: 700 1rem var(--font-head); }
.biz-steps h3 { margin-bottom: 4px; font-size: 1.02rem; }
.biz-steps p { color: var(--muted); font-size: 0.92rem; }
.biz-faq { display: grid; gap: 10px; max-width: 760px; margin-top: 36px; }
.biz-faq details { padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.biz-faq summary { cursor: pointer; font-weight: 600; }
.biz-faq p { margin-top: 8px; color: var(--muted); }

/* เครื่องมือ + บรีฟ */
.biz-tool { background: linear-gradient(180deg, #123b3c 0%, var(--night) 100%); color: #fff; padding-bottom: 96px; }
.biz-head-dark p { color: rgba(255, 255, 255, 0.75); }
.biz-head-dark .eyebrow { color: var(--biz-amber); }
.presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 0.92rem; color: rgba(255, 255, 255, 0.8); }
.tool-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; }
.tool-main { padding: 26px; border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.6); }

.dots { display: flex; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; }
.dots li { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dots span { height: 6px; border-radius: 6px; background: var(--line); }
.dots .past span, .dots .cur span { background: var(--accent); }
.dots small { color: var(--muted); font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dots .cur small { color: var(--ink); font-weight: 600; }

.bstep h3 { margin-bottom: 4px; font-size: 1.3rem; }
.bstep .hint, .hint { margin: 2px 0 14px; color: var(--muted); font-size: 0.92rem; }
.bstep label { display: block; margin-top: 14px; font-weight: 600; font-size: 0.93rem; }
.bstep input[type="text"], .bstep input[type="date"], .bstep select, .bstep textarea,
.addrow input {
    width: 100%; margin-top: 6px; padding: 12px 14px;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: #fff; color: var(--ink); font: inherit; font-weight: 400;
}
.bstep input:focus, .bstep select:focus, .bstep textarea:focus, .addrow input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.15); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chips.big { display: grid; grid-template-columns: repeat(2, 1fr); }
.chip {
    padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px;
    background: #fff; color: var(--ink); font: 500 0.95rem var(--font-body); cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.chips.big .chip { padding: 14px 16px; border-radius: var(--radius-sm); text-align: left; }
.chip:hover { border-color: var(--ink); }
.chip.on { border-color: var(--accent); background: #fff1ed; color: var(--accent-deep); font-weight: 600; }
.chip.sm { padding: 6px 12px; font-size: 0.82rem; }
.presets .chip { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); color: #fff; }
.presets .chip:hover { border-color: #fff; }
.addrow { display: flex; gap: 8px; align-items: center; }
.addrow input { margin-top: 0; }

.form-msg { margin: 14px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: #fde8e4; color: #8b1f15; font-size: 0.92rem; }
.tool-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 22px; }
.tool-nav .btn { flex: 0 0 auto; }
#nextBtn, #sendBtn { margin-left: auto; }
#sendBtn { flex: 1; }

.done { padding: 10px 4px 6px; }
.done h3 { margin-bottom: 8px; font-size: 1.4rem; }
.done code { padding: 2px 8px; border-radius: 6px; background: #f3efe6; }

/* การ์ดเนื้อเพลง */
.lyric-card {
    position: sticky; top: 88px;
    padding: 22px 24px 20px; border-radius: 20px;
    background: #fffaf0; color: var(--ink);
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.6);
    border: 1px solid #ecdcb9;
}
.lyric-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.lyric-badge { padding: 3px 12px; border-radius: 999px; background: var(--biz-teal); color: #fff; font: 600 0.75rem var(--font-head); letter-spacing: 0.08em; }
.lyric-tools { display: flex; gap: 6px; }
.lyric-title { margin-bottom: 12px; font-size: 1.2rem; }
.lyric-body { display: grid; gap: 12px; max-height: 480px; overflow: auto; padding-right: 4px; }
.lyric-empty { color: var(--muted); }
.lyric-foot { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #d9c79d; color: var(--muted); font-size: 0.82rem; }
.lyric-card.big .lyric-body { max-height: none; }

@media (max-width: 960px) {
    .biz-hero-grid, .tool-grid { grid-template-columns: 1fr; }
    .biz-hero-card { display: none; }
    .biz-cards, .biz-tpls, .biz-steps { grid-template-columns: repeat(2, 1fr); }
    .biz-audio-grid, .biz-examples { grid-template-columns: 1fr; }
    .lyric-card { position: static; }
}
@media (max-width: 560px) {
    .biz-hero { padding: 48px 0 56px; }
    .biz-section { padding: 52px 0; }
    .biz-cards, .biz-tpls, .biz-steps { grid-template-columns: 1fr; }
    .tool-main { padding: 18px; }
    .chips.big { grid-template-columns: 1fr; }
    .dots small { display: none; }
    .tool-nav { flex-wrap: wrap; }
    #sendBtn { flex-basis: 100%; }
    .biz-actions .btn { flex: 1 1 100%; }
}

/* เวิร์กช็อปเนื้อเพลง: เคล็ดลับ เช็กลิสต์ ตัวแก้เนื้อ */
.biz-cards-5 { grid-template-columns: repeat(3, 1fr); }
.biz-card .tagline { display: inline-block; margin-top: 12px; padding: 3px 10px; border-radius: 999px; background: #fff1ed; color: var(--accent-deep); font: 600 0.78rem var(--font-head); }
.coach { margin-bottom: 18px; padding: 12px 16px; border-left: 4px solid var(--biz-amber); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: #fff8e8; }
.coach b { display: block; margin-bottom: 4px; font: 600 0.85rem var(--font-head); color: #7a4a00; }
.coach p { color: #5c4a22; font-size: 0.92rem; line-height: 1.6; }
.hint.rec { margin: -6px 0 14px; color: var(--biz-teal); font-weight: 600; }
#formatChips { grid-template-columns: 1fr; }
#formatChips .chip { line-height: 1.5; }
.checks { display: grid; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.checks li { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 0.92rem; }
.checks li.ok { background: #e8f6ec; color: #1b5e2b; }
.checks li.warn { background: #fff4e0; color: #7a4a00; }
.checks small { font-size: 0.82rem; opacity: 0.9; }
.checks-score { margin: 0 0 14px; font: 600 0.9rem var(--font-head); color: var(--muted); }
.lyric-edit {
    width: 100%; padding: 12px 14px; resize: vertical;
    border: 1.5px solid #d9c79d; border-radius: var(--radius-sm); background: #fffdf6;
    color: var(--ink); font: 400 1rem/1.7 var(--font-body);
}
.lyric-edit:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.15); }
.lyric-meta { margin-top: 8px; color: var(--muted); font-size: 0.82rem; }
@media (max-width: 1100px) { .biz-cards-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px) { .biz-cards-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .biz-cards-5 { grid-template-columns: 1fr; } }

/* สไตล์เพลง / ตัวเลือกเสริม / เวอร์ชันสั้น */
.bstep h3.sub { margin: 18px 0 6px; font-size: 1.05rem; }
.social { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fbf8f3; }
.social summary { cursor: pointer; font-weight: 600; font-size: 0.95rem; }
.social pre { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px dashed #d9c79d; white-space: pre-wrap; font: 400 0.95rem/1.7 var(--font-body); }

/* Brand Bible ของร้าน */
.shop-banner { margin: 0 0 18px; padding: 12px 16px; border-radius: var(--radius-sm); background: rgba(255, 182, 39, 0.14); border: 1px solid rgba(255, 182, 39, 0.5); color: #fff; font-size: 0.95rem; }
.shop-banner a { color: var(--biz-amber); font-weight: 600; }
.done-shop { margin: 14px 0; padding: 14px 16px; border-radius: var(--radius-sm); background: #fff8e8; border: 1px solid #f0d9a0; }
.done-shop p { margin: 4px 0 10px; color: #5c4a22; font-size: 0.92rem; }
.shop-hero { padding: 56px 0 60px; }
.shop-hero h1 { margin: 12px 0; font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
.shop-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 36px; align-items: start; }
.shop-h { margin: 0 0 12px; font-size: 1.25rem; }
.shop-grid .shop-h:not(:first-child) { margin-top: 32px; }
.shop-facts { display: grid; gap: 0; margin: 0 0 8px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.shop-facts div { display: grid; grid-template-columns: 190px 1fr; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.shop-facts div:last-child { border-bottom: 0; }
.shop-facts dt { color: var(--muted); font-size: 0.9rem; }
.shop-facts dd { margin: 0; font-weight: 500; }
.shop-hook { margin-top: 20px; padding: 16px 18px; border-radius: var(--radius); background: #fffaf0; border: 1px solid #ecdcb9; }
.shop-hook p { margin: 10px 0 6px; font-size: 1.1rem; line-height: 1.8; }
.shop-hook small { color: var(--muted); }
.shop-songs { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.shop-songs li { padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.shop-songs strong { display: block; }
.shop-songs small { color: var(--muted); }
.shop-songs p { margin: 8px 0 0; padding-left: 10px; border-left: 3px solid var(--biz-amber); color: #5c4a22; line-height: 1.7; }
.shop-side { position: sticky; top: 88px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.shop-campaigns { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.shop-campaigns .chip { text-decoration: none; }
.shop-save { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line); }
.shop-save p { margin: 4px 0 10px; color: var(--muted); font-size: 0.85rem; }
.shop-save input { width: 100%; margin-bottom: 8px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: 0.82rem; }
@media (max-width: 860px) {
    .shop-grid { grid-template-columns: 1fr; }
    .shop-side { position: static; }
    .shop-facts div { grid-template-columns: 1fr; gap: 2px; }
}

/* การ์ดเสียงตัวอย่างแม่แบบ (BIZ-05 / BIZ-06) */
.biz-code { align-self: flex-start; margin-bottom: 4px; padding: 2px 10px; border-radius: 999px; background: linear-gradient(120deg, var(--biz-teal), var(--biz-amber)); color: #fff; font: 600 0.72rem var(--font-head); letter-spacing: 0.06em; }
.biz-audio-more { margin-top: 8px; font-size: 0.88rem; font-weight: 600; text-decoration: none; color: var(--accent-deep); }

/* ส่วนประกอบที่เลือกไว้จากหน้าลองฟัง (ในเวิร์กช็อปขั้นรูปแบบ) */
.comp-notice { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: #fff1ed; border: 1px solid #ffc9bb; }
.comp-notice p { margin: 4px 0 10px; color: #6b3a2c; font-size: 0.9rem; }
.comp-notice .chip { text-decoration: none; margin-right: 6px; }
