/* --------------------------------------------------------------------------
   MachoSuit public pages polish
   - Public landing / notice / FAQ / policy pages
   - Keeps service logic untouched and only normalizes visual presentation.
   -------------------------------------------------------------------------- */
:root {
    --msp-bg: #f5f7fb;
    --msp-card: #ffffff;
    --msp-ink: #111827;
    --msp-muted: #64748b;
    --msp-soft: #f8fafc;
    --msp-line: #e5e7eb;
    --msp-line-strong: #cbd5e1;
    --msp-teal: #0f766e;
    --msp-teal-2: #0d9488;
    --msp-gold: #b8892d;
    --msp-blue: #2563eb;
    --msp-radius: 18px;
    --msp-shadow: 0 10px 28px rgba(15, 23, 42, .065);
}

body.ms-public-body,
body.ms-public-modal-body,
body.ms-policy-modal-body {
    margin: 0;
    color: var(--msp-ink);
    font-family: Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    font-size: 13px;
    line-height: 1.56;
    letter-spacing: -0.018em;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

body.ms-public-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, .12), transparent 32rem),
        radial-gradient(circle at top right, rgba(184, 137, 45, .12), transparent 28rem),
        linear-gradient(180deg, #f9fbff 0%, var(--msp-bg) 100%);
}

body.ms-public-modal-body,
body.ms-policy-modal-body {
    min-height: 100vh;
    padding: 14px;
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, .08), transparent 24rem),
        #f8fafc;
}

.ms-modal-content-only,
.policy-doc.is-modal {
    max-width: 920px;
    margin: 0 auto;
}

.ms-public-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ms-public-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(248, 250, 252, .88);
    border-bottom: 1px solid rgba(203, 213, 225, .72);
    backdrop-filter: blur(14px);
}

.ms-public-header-inner {
    width: min(1080px, calc(100% - 28px));
    min-height: 58px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.ms-public-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
}

.ms-public-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #0f766e, #d2a03e);
    box-shadow: 0 10px 22px rgba(15, 118, 110, .18);
    font-size: 16px;
}

.ms-public-brand strong {
    display: block;
    font-size: 15px;
    line-height: 1.1;
}

.ms-public-brand span:last-child {
    display: block;
    margin-top: 2px;
    color: var(--msp-muted);
    font-size: 11px;
    font-weight: 800;
}

.ms-public-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.ms-public-nav a {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 11px;
    border-radius: 999px;
    color: #334155;
    background: rgba(255, 255, 255, .64);
    border: 1px solid rgba(226, 232, 240, .9);
    font-size: 12px;
    font-weight: 900;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.ms-public-nav a:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, .06);
}

.ms-public-nav a.is-active {
    background: linear-gradient(135deg, #111827, #1f2937);
    border-color: #111827;
    color: #fff;
}

.ms-public-main {
    width: min(1080px, calc(100% - 28px));
    margin: 0 auto;
    padding: 24px 0 42px;
    flex: 1;
}

.ms-public-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    padding: 22px;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 214, 102, .24), transparent 16rem),
        linear-gradient(135deg, #111827 0%, #134e4a 58%, #0f766e 100%);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .14);
}

.ms-public-hero::after {
    content: "✨";
    position: absolute;
    right: 22px;
    top: 18px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .18);
    font-size: 19px;
}

.ms-public-hero small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 25px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .76);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
}

.ms-public-hero h1 {
    max-width: 760px;
    margin: 10px 0 7px;
    font-size: clamp(23px, 3.4vw, 34px);
    line-height: 1.14;
    letter-spacing: -0.045em;
}

.ms-public-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    line-height: 1.62;
}

.ms-public-footer {
    border-top: 1px solid rgba(203, 213, 225, .72);
    padding: 17px 0;
    color: var(--msp-muted);
    font-size: 11px;
}

.ms-public-footer-inner {
    width: min(1080px, calc(100% - 28px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.ms-public-footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ms-public-footer-links a {
    font-weight: 800;
    color: #475569;
}

/* Compact public cards */
.ms-public-main .ms-card,
.ms-modal-content-only .ms-card,
.policy-doc.ms-card,
.policy-doc.is-modal {
    border-radius: var(--msp-radius);
    border-color: rgba(226, 232, 240, .94);
    box-shadow: var(--msp-shadow);
    overflow: hidden;
}

.ms-public-main .ms-card-head,
.ms-modal-content-only .ms-card-head {
    padding: 14px 16px;
    background: linear-gradient(180deg, #fff, #f8fafc);
}

.ms-public-main .ms-card-title,
.ms-modal-content-only .ms-card-title {
    font-size: 15px;
    letter-spacing: -0.02em;
}

.ms-public-main .ms-card-desc,
.ms-modal-content-only .ms-card-desc {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.5;
}

.ms-public-main .ms-card-body,
.ms-modal-content-only .ms-card-body {
    padding: 15px;
}

.ms-public-main .ms-card-foot,
.ms-modal-content-only .ms-card-foot {
    padding: 12px 15px;
}

/* Notice / FAQ list */
.support-list {
    display: grid;
    gap: 9px;
}

.support-item {
    position: relative;
    display: block;
    padding: 14px 15px;
    border: 1px solid var(--msp-line);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .92));
    box-shadow: 0 6px 18px rgba(15, 23, 42, .045);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.support-item:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 118, 110, .24);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
}

.support-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
    color: var(--msp-muted);
    font-size: 11px;
    font-weight: 900;
}

.support-title {
    margin: 0;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.38;
    letter-spacing: -0.025em;
}

.support-excerpt {
    margin: 5px 0 0;
    color: var(--msp-muted);
    font-size: 12px;
    line-height: 1.55;
}

.faq-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.faq-category-tabs .ms-btn {
    min-height: 33px;
    border-radius: 999px;
    font-size: 12px;
}

.faq-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-left: 4px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .08);
    font-size: 11px;
    line-height: 1;
    opacity: .82;
}

.ms-btn.is-primary .faq-category-count {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.faq-item {
    border: 1px solid var(--msp-line);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .045);
}

.faq-item summary {
    position: relative;
    cursor: pointer;
    padding: 13px 42px 13px 15px;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 900;
    list-style: none;
}

.faq-item summary::after {
    content: "＋";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--msp-teal);
    font-weight: 900;
}

.faq-item[open] summary::after {
    content: "－";
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-answer,
.notice-rich-content {
    color: #334155;
    font-size: 13px;
    line-height: 1.62;
    white-space: normal !important;
}

.faq-answer {
    padding: 0 15px 15px;
}

.notice-rich-content {
    padding: 0;
}

/* Override old inline notice/FAQ HTML blocks saved in DB */
.notice-content,
.faq-answer .notice-content {
    color: #334155;
    font-size: 13px;
    line-height: 1.62;
    letter-spacing: -0.018em;
    white-space: normal !important;
}

.notice-content p,
.notice-content li,
.notice-content div,
.notice-content span,
.faq-answer p,
.faq-answer li,
.faq-answer div,
.faq-answer span {
    font-size: 13px !important;
    line-height: 1.62 !important;
}

.notice-content p,
.faq-answer p {
    margin: 0 0 10px !important;
}

.notice-content section,
.faq-answer section {
    margin-bottom: 13px !important;
}

.notice-content .notice-hero,
.faq-answer .notice-hero {
    position: relative;
    padding: 17px !important;
    margin-bottom: 15px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(226, 232, 240, .98) !important;
    background:
        radial-gradient(circle at top right, rgba(15, 118, 110, .08), transparent 16rem),
        linear-gradient(180deg, #ffffff, #f8fafc) !important;
}

.notice-content .notice-hero::before,
.faq-answer .notice-hero::before {
    content: "🧵";
    position: absolute;
    right: 15px;
    top: 15px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #ecfdf5;
    border: 1px solid #ccfbf1;
    font-size: 16px;
}

.notice-content .notice-hero p:first-child,
.faq-answer .notice-hero p:first-child {
    margin-bottom: 8px !important;
    color: #0f766e !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    font-weight: 900 !important;
}

.notice-content .notice-hero h2,
.faq-answer .notice-hero h2 {
    max-width: calc(100% - 48px);
    margin: 0 !important;
    color: #0f172a !important;
    font-size: 20px !important;
    line-height: 1.32 !important;
    letter-spacing: -0.035em !important;
}

.notice-content .notice-hero h2 + p,
.faq-answer .notice-hero h2 + p {
    margin-top: 10px !important;
    color: #475569 !important;
    font-size: 13px !important;
    line-height: 1.62 !important;
}

.notice-content h3,
.faq-answer h3 {
    margin: 0 0 8px !important;
    color: #0f172a !important;
    font-size: 16px !important;
    line-height: 1.36 !important;
    letter-spacing: -0.025em !important;
}

.notice-content section > div[style*="display:grid"],
.faq-answer section > div[style*="display:grid"] {
    gap: 8px !important;
}

.notice-content section > div[style*="display:grid"] > div,
.faq-answer section > div[style*="display:grid"] > div {
    padding: 12px 13px !important;
    border-radius: 15px !important;
    background: #fff !important;
    border-color: #e5e7eb !important;
}

.notice-content strong,
.faq-answer strong {
    color: #0f172a !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

.notice-content section[style*="background:#111827"],
.faq-answer section[style*="background:#111827"],
.notice-content section[style*="background: #111827"],
.faq-answer section[style*="background: #111827"] {
    padding: 15px !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #111827, #134e4a) !important;
}

.notice-content section[style*="background:#111827"] h3,
.faq-answer section[style*="background:#111827"] h3,
.notice-content section[style*="background: #111827"] h3,
.faq-answer section[style*="background: #111827"] h3 {
    color: #fff !important;
}

.notice-content section[style*="background:#111827"] p,
.faq-answer section[style*="background:#111827"] p,
.notice-content section[style*="background: #111827"] p,
.faq-answer section[style*="background: #111827"] p {
    color: rgba(255, 255, 255, .82) !important;
}

.faq-tip {
    display: grid;
    gap: 5px;
    padding: 12px 13px;
    border-radius: 15px;
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    color: #134e4a;
}

.faq-tip strong {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #0f766e !important;
}

.faq-tip strong::before {
    content: "💡";
}

.faq-tip span {
    color: #134e4a !important;
}

/* Landing page */
.landing-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    padding: clamp(22px, 4.2vw, 42px);
    border-radius: 26px;
    color: #fff;
    background:
        radial-gradient(circle at 76% 16%, rgba(255, 220, 125, .28), transparent 20rem),
        linear-gradient(135deg, #111827 0%, #0f2f2f 54%, #0f766e 100%);
    box-shadow: 0 22px 54px rgba(15, 23, 42, .18);
}

.landing-hero::after {
    content: "👔";
    position: absolute;
    right: 22px;
    bottom: 20px;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .17);
    font-size: 26px;
}

.landing-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: 22px;
    align-items: center;
}

.landing-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .82);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
}

.landing-title {
    margin: 15px 0 11px;
    font-size: clamp(29px, 4.6vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.landing-desc {
    max-width: 700px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    line-height: 1.68;
}

.landing-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.landing-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 15px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.landing-btn.primary {
    color: #111827;
    background: #fff;
}

.landing-btn.ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .08);
}

.landing-preview {
    border-radius: 22px;
    padding: 14px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
}

.landing-preview-card {
    border-radius: 18px;
    padding: 15px;
    color: #111827;
    background: rgba(255, 255, 255, .96);
}

.landing-preview-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
}

.landing-preview-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-top: 1px solid #e5e7eb;
    color: #475569;
    font-size: 12px;
}

.landing-preview-row strong {
    color: var(--msp-teal);
}

.landing-section {
    margin-top: 18px;
}

.landing-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
}

.landing-section-head h2 {
    margin: 0;
    font-size: 21px;
    letter-spacing: -0.04em;
}

.landing-section-head p {
    margin: 5px 0 0;
    color: var(--msp-muted);
    font-size: 12px;
    line-height: 1.58;
}

.landing-feature-grid,
.landing-stats,
.landing-support-grid {
    display: grid;
    gap: 11px;
}

.landing-feature-grid,
.landing-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-feature {
    padding: 16px;
    border-radius: 19px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

.landing-feature-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--msp-teal);
    background: #ecfdf5;
    font-size: 17px;
    font-weight: 900;
}

.landing-feature h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.landing-feature p {
    margin: 0;
    color: var(--msp-muted);
    font-size: 12px;
    line-height: 1.58;
}

.landing-stat {
    padding: 15px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.landing-stat span {
    display: block;
    color: rgba(255, 255, 255, .62);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
}

.landing-stat strong {
    display: block;
    margin-top: 6px;
    font-size: 25px;
    line-height: 1;
    letter-spacing: -0.04em;
}

/* Policy pages */
.policy-doc {
    color: #334155;
    font-size: 13px;
    line-height: 1.65;
}

.policy-doc .ms-card-body,
.policy-doc.is-modal {
    padding: 18px;
}

.policy-doc h2 {
    margin: 22px 0 8px;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.35;
    letter-spacing: -0.025em;
}

.policy-doc p {
    margin: 7px 0;
}

.policy-doc ul,
.policy-doc ol {
    padding-left: 20px;
    margin: 7px 0;
}

.policy-doc li {
    margin: 4px 0;
}

.policy-table,
.policy-doc table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
}

.policy-table th,
.policy-table td,
.policy-doc table th,
.policy-doc table td {
    border: 1px solid #e5e7eb;
    padding: 9px;
    text-align: left;
    vertical-align: top;
    font-size: 12px;
    line-height: 1.55;
}

.policy-table th,
.policy-doc table th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 900;
}

.policy-notice,
.policy-warning {
    padding: 13px 14px;
    border-radius: 16px;
    font-size: 12px;
    line-height: 1.6;
}

.policy-notice {
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    color: #134e4a;
}

.policy-warning {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #7c2d12;
}

@media (max-width: 860px) {
    body.ms-public-modal-body,
    body.ms-policy-modal-body {
        padding: 10px;
    }

    .ms-public-header-inner {
        min-height: auto;
        align-items: flex-start;
        padding: 10px 0;
        flex-direction: column;
    }

    .ms-public-nav {
        justify-content: flex-start;
    }

    .ms-public-main {
        width: min(100% - 22px, 1080px);
        padding: 18px 0 32px;
    }

    .ms-public-hero {
        padding: 18px;
        border-radius: 20px;
    }

    .ms-public-hero::after {
        display: none;
    }

    .landing-hero-grid,
    .landing-feature-grid,
    .landing-stats,
    .landing-support-grid {
        grid-template-columns: 1fr;
    }

    .landing-hero {
        border-radius: 22px;
    }

    .landing-hero::after {
        display: none;
    }

    .landing-title {
        font-size: 28px;
    }

    .ms-public-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .notice-content .notice-hero h2,
    .faq-answer .notice-hero h2 {
        max-width: 100%;
        font-size: 18px !important;
    }

    .notice-content .notice-hero::before,
    .faq-answer .notice-hero::before {
        display: none;
    }

    .policy-doc table,
    .policy-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 560px) {
    body.ms-public-body,
    body.ms-public-modal-body,
    body.ms-policy-modal-body {
        font-size: 12px;
    }

    .ms-public-nav a {
        min-height: 30px;
        padding: 0 9px;
        font-size: 11px;
    }

    .ms-public-brand-logo {
        width: 32px;
        height: 32px;
        border-radius: 12px;
    }

    .ms-public-main .ms-card-body,
    .ms-modal-content-only .ms-card-body {
        padding: 12px;
    }

    .support-item,
    .faq-item summary {
        padding-left: 12px;
    }

    .faq-answer {
        padding: 0 12px 12px;
    }

    .notice-content .notice-hero,
    .faq-answer .notice-hero {
        padding: 14px !important;
    }

    .landing-actions .landing-btn {
        width: 100%;
    }
}

.ms-public-brand-logo.is-image {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0px;
}

.ms-public-brand-logo.is-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}