:root {
    color-scheme: dark;
    --bg: #0d0e0f;
    --surface: #171819;
    --ink: #f1efe9;
    --muted: #b4b3ad;
    --line: #343534;
    --accent: #e6af84;
    --nav: 68px;
    font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav) + 20px); }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.65; word-break: keep-all; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shell { width: min(1200px, calc(100% - 88px)); margin-inline: auto; }
header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: #0d0e0fed; backdrop-filter: blur(14px); }
.nav { min-height: var(--nav); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 850; }
.brand span { width: 13px; height: 16px; border: 1px solid var(--accent); border-radius: 60% 50% 58% 45%; transform: rotate(38deg); }
nav { display: flex; gap: clamp(12px, 2vw, 29px); font-size: 14px; color: var(--muted); }
nav a:hover { color: var(--ink); }
.button, .kakao-float {
    --button-top: #343738;
    --button-face: #222526;
    --button-edge: #585c5c;
    --indicator: #f4c5a5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 9px 16px;
    border: 1px solid var(--button-edge);
    border-radius: 11px;
    background: linear-gradient(174deg, var(--button-top), var(--button-face) 70%);
    color: #faf7f0;
    box-shadow: inset 0 1px #fff3, inset 0 0 0 2px #1011126b, 0 3px #090a0a, 0 5px 13px #0005;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}
.button:not(.kakao)::before {
    content: "";
    flex: 0 0 10px;
    height: 3px;
    border-radius: 4px;
    background: var(--indicator);
    box-shadow: 0 0 7px var(--indicator);
}
.button:hover:not(:disabled), .kakao-float:hover { filter: brightness(1.13); transform: translateY(-1px); }
.button:active:not(:disabled), .kakao-float:active {
    transform: translateY(2px);
    box-shadow: inset 0 2px 5px #0006, 0 1px #080909;
}
.coral { --button-top: #654b3b; --button-face: #3a2a22; --button-edge: #98765d; }
.pale { --indicator: #d3dddc; }
.kakao, .kakao-float {
    --button-top: #fff276;
    --button-face: #e6c82e;
    --button-edge: #c5a921;
    color: #261e0c;
}
.muted, .panel p, .rows p { color: var(--muted); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.16; letter-spacing: -.055em; }
h1 { font-size: clamp(40px, 7.3vw, 105px); font-weight: 850; }
h2 { font-size: clamp(31px, 4.6vw, 60px); margin-bottom: 20px; font-weight: 780; }
h3 { font-size: 21px; margin-bottom: 9px; }
.kicker { color: var(--accent); font: 700 11px/1.5 ui-monospace, Consolas, monospace; letter-spacing: .17em; margin-bottom: 15px; }
.kicker::before { content: ""; display: inline-block; width: 18px; height: 1px; margin-right: 9px; background: currentColor; vertical-align: 4px; }
.muted, .panel p, .rows p { color: var(--muted); }

.story.is-animated { height: 770vh; height: 770svh; }
.stage { position: sticky; top: var(--nav); height: calc(100vh - var(--nav)); height: calc(100svh - var(--nav)); min-height: 300px; overflow: hidden; background: radial-gradient(ellipse at 55% 48%, #262421, #101112 70%); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro, .line-copy { position: relative; pointer-events: none; }
.intro { padding-top: clamp(36px, 13vh, 125px); text-shadow: 0 2px 22px #08090a; }
.intro h1 { max-width: 11ch; }
.intro p:not(.kicker) { margin: 19px 0 23px; color: #e0dcd5; }
.intro a { pointer-events: auto; text-shadow: none; }
.line-copy { position: absolute; inset: 7% 0 auto; text-shadow: 0 2px 15px #070809; }

.section { padding-block: clamp(55px, 8vw, 108px); border-top: 1px solid var(--line); }
.mist { background: #111213; }
.dark { background: #171614; }
.grid { display: grid; gap: 13px; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(22px, 5vw, 68px); }
.panel { min-width: 0; padding: clamp(17px, 2.9vw, 34px); border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.pricing, .terms, .library { margin-top: 20px; }
.pricing .panel { border-top: 2px solid #936e54; }
.pricing .panel p { font-size: clamp(18px, 2vw, 26px); font-weight: 750; color: var(--accent); }
.capability { min-height: 196px; }
.number { display: block; color: var(--accent); font: 600 12px/1.5 ui-monospace, monospace; margin-bottom: 22px; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; margin: 26px 0 0; padding-left: 20px; }
.steps li { border-top: 1px solid var(--line); padding-block: 12px; }
.steps li::marker { color: var(--accent); font-weight: 750; }
.rows article, details { border-top: 1px solid var(--line); padding-block: 16px; }
summary { cursor: pointer; font-weight: 720; }
details p { margin-top: 8px; }
.chips, .filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chips { padding: 0; list-style: none; }
.chips li, .filters button { border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; background: #1b1c1d; color: var(--muted); font: inherit; font-size: 13px; }
.filters { margin: 16px 0; }
.filters button { cursor: pointer; }
.filters button[aria-pressed=true] { border-color: var(--accent); color: var(--accent); background: #29211c; }
.search { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.search label { width: min(100%, 440px); }
#flavour-empty { margin-top: 12px; }
#partners { border-top-color: #785844; }
#partners .panel { background: #201e1b; }
#partners .seller { margin-top: 20px; }

form { display: grid; gap: 14px; }
label { display: block; min-width: 0; font-size: 14px; font-weight: 700; }
input:not([type=checkbox]), select, textarea { display: block; width: 100%; margin-top: 5px; padding: 10px 11px; border: 1px solid #4b4a46; border-radius: 4px; background: #101112; color: var(--ink); font: inherit; }
input::placeholder, textarea::placeholder { color: #92928c; }
textarea { resize: vertical; }
form button { justify-self: start; }
.consent { display: flex; align-items: flex-start; gap: 7px; }
button:disabled { opacity: .6; cursor: default; }
#contact .kakao, #kakao-status { margin-top: 12px; }
footer { border-top: 1px solid var(--line); font-size: 14px; }
.kakao-float { position: fixed; bottom: 18px; right: 18px; z-index: 6; font-size: 13px; }
.bubble-icon { position: relative; width: 17px; height: 13px; border-radius: 50%; background: #29220f; }
.bubble-icon::after { content: ""; position: absolute; left: 2px; bottom: -2px; border-top: 5px solid #29220f; border-right: 5px solid transparent; }

@media(max-width: 850px) {
    nav { display: none; }
    .shell { width: calc(100% - 40px); }
    .three, .four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split { grid-template-columns: 1fr; }
    .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media(max-width: 470px) {
    .two, .three, .four { grid-template-columns: 1fr; }
    .search { display: grid; }
    .intro { padding-top: 8vh; }
    .kakao-float { bottom: 12px; right: 12px; }
}
@media(prefers-reduced-motion: reduce) {
    .story.is-animated { height: auto; }
    .stage { position: relative; top: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .button, .kakao-float { transition: none; }
    .button:hover:not(:disabled), .button:active:not(:disabled), .kakao-float:hover, .kakao-float:active { transform: none; }
}

/* Raised metal surfaces for content cards. */
article.panel, .rows article {
    border: 1px solid #465359;
    border-radius: 11px;
    background: linear-gradient(172deg, #2b363c, #1e272d 40%, #181f24 85%);
    box-shadow: inset 0 1px #b7c9d337, inset 0 0 0 2px #131a2070,
        0 3px #0a0d10, 0 7px 15px #0004;
}
.rows article { padding: 18px 22px; }
.rows article + article { margin-top: 12px; }
#partners article.panel { background: linear-gradient(172deg, #303943, #1b242c 75%); }
.pricing article.panel { border-top-color: #788e9a; }
.pricing article.panel p, article.panel .number { color: #bdd4e2; }
article.panel p, .rows article p { color: #c1ccd2; }

.delete-panel { margin-top: 10px; border-color: #5f3b39; }
.button.danger {
    --button-top: #683c3b;
    --button-face: #3f2526;
    --button-edge: #926360;
    --indicator: #f6a19b;
}
.admin-filters { margin-block: 18px 10px; }
#admin-count { color: var(--muted); margin-bottom: 10px; }

/* Give content cards and library controls the same raised metal finish. */
#flavours .library {
    background: linear-gradient(155deg, #212b31, #161d22 58%);
    border-color: #465359;
    border-radius: 14px;
    box-shadow: inset 0 1px #b7c9d337, 0 4px #0b0f12, 0 10px 22px #0005;
}
#flavours .filters button {
    min-height: 42px;
    padding: 7px 14px;
    border-color: #52616a;
    border-radius: 9px;
    background: linear-gradient(174deg, #344047, #232c32 72%);
    box-shadow: inset 0 1px #c7d9e040, inset 0 0 0 2px #12181b70, 0 3px #090c0e;
    color: #e5edf0;
    font-weight: 700;
}
#flavours .filters button[aria-pressed="true"] {
    border-color: #92b8b5;
    background: linear-gradient(174deg, #405a60, #293e45 72%);
    color: #f1fcfa;
}
#flavours .filters button[aria-pressed="true"]::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: #a8e1d6;
    box-shadow: 0 0 7px #a8e1d698;
    vertical-align: 2px;
}
#flavours .filters button:active {
    box-shadow: inset 0 2px 4px #0006, 0 1px #090c0e;
}
#flavour-count {
    color: #bcd5db;
    font-variant-numeric: tabular-nums;
}
@media (hover: hover) and (pointer: fine) {
    article.panel:hover, .rows article:hover {
        border-color: #86a8a8;
        box-shadow: inset 0 1px #bed6dd52, inset 0 0 0 2px #131a2070,
            0 4px #0a0d10, 0 14px 26px #0007;
    }
    #flavours .filters button:hover { border-color: #9ab6bd; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    article.panel, .rows article, #flavours .filters button {
        transition: transform 220ms cubic-bezier(.2, .8, .3, 1.25),
            border-color 180ms ease, box-shadow 180ms ease;
    }
    article.panel:hover, .rows article:hover { transform: translateY(-6px); }
    #flavours .filters button:hover { transform: translateY(-2px); }
    #flavours .filters button:active { transform: translateY(2px); }
}
