/* 데모 첫 화면 (Filament 밖) — 데모마다 :root 변수로 색·글꼴만 바뀐다 */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font);
    color: #0f172a;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    word-break: keep-all;
    overflow-wrap: anywhere;
}
a { color: inherit; }
button { font: inherit; color: inherit; }

.entry {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(440px, .88fr);
    min-height: 100vh;
    min-height: 100dvh;
}

/* ── 왼쪽: 제품 ─────────────────────────── */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: 36px 56px 44px;
    color: #fff;
    background-color: var(--pri-ink);
    background-image:
        linear-gradient(165deg, color-mix(in srgb, var(--pri-ink) 35%, transparent) 0%, color-mix(in srgb, var(--pri-ink) 92%, #000) 78%),
        var(--hero, none);
    background-size: cover;
    background-position: center;
    isolation: isolate;
    overflow: hidden;
}
.hero::after {
    /* 아주 옅은 격자: 사진이 없을 때도 밋밋하지 않게 */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
}
/* 사진이 있으면: 무채색 그라데이션 + 아래쪽에만 주색 빛 (사진이 흐려지지 않게) */
.hero.has-photo {
    background-image:
        linear-gradient(180deg, rgb(0 0 0 / .42) 0%, rgb(0 0 0 / .38) 38%, rgb(0 0 0 / .82) 100%),
        radial-gradient(110% 70% at 0% 100%, color-mix(in srgb, var(--pri) 34%, transparent) 0%, transparent 62%),
        var(--hero);
}
.hero.has-photo::after { display: none; }
.dt-mark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -.01em;
    text-decoration: none;
    opacity: .88;
}
.dt-mark:hover { opacity: 1; }
.dt-mark svg { width: 14px; height: 14px; color: color-mix(in srgb, var(--pri) 55%, #fff); }

.hero-body { max-width: 620px; }
.system {
    display: inline-block;
    padding: 5px 11px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    backdrop-filter: blur(6px);
}
.hero h1 {
    margin: 18px 0 10px;
    font-size: clamp(40px, 5.2vw, 68px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.035em;
}
.hero .for {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    opacity: .78;
}
.hero .tagline {
    margin: 22px 0 0;
    font-size: clamp(18px, 1.6vw, 22px);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -.02em;
}
.hero-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: 620px;
}
.hero-points li {
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,.18);
    font-size: 14px;
    font-weight: 500;
    opacity: .9;
}

/* ── 오른쪽: 역할 ─────────────────────────── */
.panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
    background: #fff;
}
.panel-inner { width: 100%; max-width: 460px; }
.notice {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 13.5px;
    line-height: 1.5;
}
.panel-head h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 750;
    letter-spacing: -.03em;
}
.panel-head p {
    margin: 6px 0 22px;
    font-size: 14px;
    color: #64748b;
}
.roles { display: grid; gap: 10px; }
.roles form { margin: 0; }
.role {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: var(--r);
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.role:hover, .role:focus-visible {
    outline: none;
    border-color: var(--pri);
    box-shadow: 0 0 0 4px var(--pri-soft);
}
.role:active { transform: translateY(1px); }
.role.is-current { border-color: var(--pri-line); background: var(--pri-soft); }
.role-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: calc(var(--r) - 2px);
    background: var(--pri-soft);
    color: var(--pri);
}
.role-icon svg { width: 22px; height: 22px; }
.role-text { display: grid; gap: 3px; min-width: 0; flex: 1; }
.role-label { font-size: 15.5px; font-weight: 700; letter-spacing: -.02em; }
.role-label em { margin-left: 4px; font-style: normal; font-weight: 500; font-size: 13px; color: #94a3b8; }
.role-desc {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.role-go { flex: none; width: 18px; height: 18px; color: #cbd5e1; transition: color .15s, transform .15s; }
.role:hover .role-go { color: var(--pri); transform: translateX(2px); }

.tour {
    margin-top: 18px;
    border: 1px solid #eef2f7;
    border-radius: var(--r);
    background: #f8fafc;
}
.tour summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
}
.tour summary::-webkit-details-marker { display: none; }
.tour summary span { margin-left: 8px; margin-right: auto; font-size: 12.5px; font-weight: 500; color: #94a3b8; }
.tour summary::after { content: "+"; margin-left: 10px; color: #94a3b8; font-weight: 500; }
.tour[open] summary::after { content: "−"; }
.tour ol {
    margin: 0;
    padding: 0 16px 14px 34px;
    font-size: 13.5px;
    line-height: 1.55;
    color: #334155;
}
.tour li { padding: 3px 0; }
.tour li b { color: var(--pri); font-weight: 650; margin-right: 4px; }

.privacy {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 18px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: #64748b;
}
.privacy svg { flex: none; width: 15px; height: 15px; margin-top: 1px; }
.panel-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1px solid #eef2f7;
    font-size: 12.5px;
    color: #94a3b8;
}
.panel-foot a { color: var(--pri); font-weight: 600; text-decoration: none; }
.panel-foot a:hover { text-decoration: underline; }

@media (max-width: 980px) {
    .entry { grid-template-columns: 1fr; }
    .hero { min-height: 360px; padding: 24px 22px 28px; gap: 28px; }
    .hero-points { display: none; }
    .panel { padding: 28px 20px 40px; align-items: flex-start; }
    .panel-inner { max-width: 560px; }
}
