/* BDS 플랫폼 landing — production styles (from mock D: docs/mockups/bds-platform-variants/toss-reel).
   Order: base (Toss-style) → reel elements → product chapters → story. */

/* ===== style.css ===== */
/* Variant 2 — Toss-style: white, huge stacked headlines, short friendly copy, soft gray cards.
   Toss-like grays with the BDS teal as the single brand colour. */
:root {
  --ink: #191f28;
  --ink-2: #333d4b;
  --sub: #4e5968;
  --mute: #8b95a1;
  --gray: #f2f4f6;
  --gray-2: #f9fafb;
  --line: #e5e8eb;
  --teal: #00a59f;
  --teal-strong: #008c89;
  --teal-press: #00706d;
  --teal-tint: #e6f6f5;
  --blue: #3182f6;
  --green: #15b37a;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Noto Sans KR", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font); line-height: 1.6; word-break: keep-all; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid rgba(0, 165, 159, 0.55); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 99; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; }
.skip:focus { top: 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 16px; font: 700 17px/1 var(--font); cursor: pointer; text-decoration: none; transition: background 150ms, transform 150ms; }
.btn:active { transform: scale(0.97); }
.btn-s { min-height: 38px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
.btn-l { min-height: 56px; padding: 0 28px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--teal-strong); color: #fff; }
.btn-primary:hover { background: var(--teal-press); }
.btn-gray { background: var(--gray); color: var(--ink-2); }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(180%) blur(12px); transition: box-shadow 200ms; }
.top.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.top-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }
.top-nav { display: none; gap: 4px; margin-left: auto; }
.top-nav a { padding: 8px 12px; border-radius: 10px; color: var(--sub); font-size: 15px; font-weight: 600; text-decoration: none; }
.top-nav a:hover { background: var(--gray); color: var(--ink); }
.top .btn { margin-left: auto; }
@media (min-width: 820px) { .top-nav { display: flex; } .top .btn { margin-left: 0; } }

/* hero */
.hero { padding: 72px 0 40px; text-align: center; overflow: hidden; }
.hero-title { margin: 0; display: grid; gap: 4px; font-size: clamp(44px, 9vw, 96px); line-height: 1.15; font-weight: 800; letter-spacing: -0.04em; }
.hero-title span { display: block; }
.hero-title .sub { font-size: clamp(22px, 3.2vw, 34px); font-weight: 700; color: var(--sub); letter-spacing: -0.02em; margin-bottom: 8px; }
.hero-title .accent { color: var(--teal-strong); }
.js:not(.reduce) .hero-title span { animation: up 1.1s var(--ease) both; }
.js:not(.reduce) .hero-title span:nth-child(2) { animation-delay: 120ms; }
.js:not(.reduce) .hero-title span:nth-child(3) { animation-delay: 240ms; }
.js:not(.reduce) .hero-stage { animation: up 1.2s 420ms var(--ease) both; }
@keyframes up { from { opacity: 0; transform: translateY(48px); } }
.hero-stage { position: relative; display: flex; justify-content: center; margin-top: 56px; }
.phone { position: relative; width: min(300px, 74vw); padding: 12px; border-radius: 48px; background: #111; box-shadow: 0 40px 80px rgba(25, 31, 40, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06); }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 76px; height: 22px; margin-left: -38px; border-radius: 12px; background: #111; z-index: 2; }
.phone video { width: 100%; aspect-ratio: 540 / 1176; object-fit: cover; border-radius: 38px; background: var(--gray); }
.float-card { position: absolute; top: 34%; display: none; align-items: center; gap: 12px; padding: 14px 18px 14px 14px; border-radius: 20px; background: #fff; box-shadow: 0 16px 40px rgba(25, 31, 40, 0.12); text-align: left; }
.float-card b { display: block; font-size: 15px; }
.float-card small { color: var(--mute); font-size: 13px; }
.fc-left { right: calc(50% + 170px); }
.fc-right { left: calc(50% + 170px); top: 58%; }
.fc-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; font-size: 18px; }
.fc-icon.teal { background: var(--teal); }
.fc-icon.blue { background: var(--blue); }
@media (min-width: 900px) { .float-card { display: flex; } .js:not(.reduce) .float-card { animation: float 6s ease-in-out infinite; } .js:not(.reduce) .fc-right { animation-delay: -3s; } }
@keyframes float { 50% { transform: translateY(-12px); } }
.caption { margin: 20px 0 0; color: var(--mute); font-size: 13px; }

/* feature sections */
.feature { padding: 120px 0; }
.feature.alt { background: var(--gray-2); }
.feature-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .feature { padding: 160px 0; } .feature-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; } .feature-grid.reverse .copy { order: 2; } }
.label { margin: 0 0 14px; color: var(--teal-strong); font-size: 17px; font-weight: 700; }
.copy h2 { margin: 0; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.3; font-weight: 800; letter-spacing: -0.035em; }
.copy p:not(.label) { margin: 22px 0 0; color: var(--sub); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.7; }
.screen { overflow: hidden; border-radius: 28px; background: var(--gray); box-shadow: 0 30px 60px rgba(25, 31, 40, 0.08); }
.screen video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* centered titles */
.center-title { margin: 0; text-align: center; font-size: clamp(32px, 5vw, 56px); line-height: 1.3; font-weight: 800; letter-spacing: -0.035em; }
.center-sub { margin: 18px 0 0; text-align: center; color: var(--sub); font-size: 19px; }

/* film */
.film { padding: 140px 0; }
.film-card { position: relative; display: block; width: 100%; margin-top: 48px; padding: 0; border: 0; border-radius: 32px; overflow: hidden; background: var(--gray); cursor: pointer; }
.film-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 800ms var(--ease); }
.film-card:hover img { transform: scale(1.03); }
.film-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; padding: 16px 24px; border-radius: 999px; background: rgba(25, 31, 40, 0.82); color: #fff; font: 700 17px var(--font); backdrop-filter: blur(8px); }
.film-play i { font-size: 22px; }
.film-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--gray); color: var(--ink-2); font: 600 15px var(--font); cursor: pointer; }
.chip:hover { background: var(--line); }

/* products */
.products { padding: 140px 0; background: var(--gray-2); }
.cards { display: grid; gap: 16px; margin-top: 56px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { padding: 32px 28px 24px; border-radius: 28px; background: #fff; }
.squircle { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; color: #fff; font-size: 26px; }
.squircle.teal { background: linear-gradient(135deg, #20c2ba, #008c89); }
.squircle.blue { background: linear-gradient(135deg, #5aa2ff, #1f6ed4); }
.squircle.green { background: linear-gradient(135deg, #3fd39b, #0a9b72); }
.card-label { margin: 24px 0 2px; color: var(--mute); font-size: 15px; font-weight: 600; }
.card h3 { margin: 0; font-size: 26px; letter-spacing: -0.03em; }
.card ul { margin: 16px 0 20px; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--sub); font-size: 16px; }
.card li::before { content: "✓"; margin-right: 8px; color: var(--teal-strong); font-weight: 800; }
.card-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--teal-strong); font: 700 16px var(--font); cursor: pointer; }
.one-account { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 22px 26px; border-radius: 24px; background: var(--teal-tint); }
.one-account i { font-size: 28px; color: var(--teal-strong); }
.one-account p { margin: 0; color: var(--ink-2); font-size: 17px; }

/* start */
.start { padding: 140px 0; }
.options { display: grid; gap: 16px; margin: 56px 0 8px; }
@media (min-width: 760px) { .options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.option { padding: 32px; border-radius: 28px; background: var(--gray); }
.option-num { display: grid; place-items: center; width: 36px; height: 36px; margin: 0 0 20px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; }
.option h3 { margin: 0 0 8px; font-size: 24px; letter-spacing: -0.03em; }
.option p { margin: 0; color: var(--sub); font-size: 17px; }

/* final */
.final { padding: 140px 0 160px; text-align: center; }
.final .wrap { display: grid; justify-items: center; gap: 28px; }
.final h2 { margin: 0; font-size: clamp(34px, 5.6vw, 64px); line-height: 1.25; font-weight: 800; letter-spacing: -0.04em; }

/* footer */
.foot { padding: 40px 0 120px; background: var(--gray-2); color: var(--mute); font-size: 14px; }
.foot p { margin: 0 0 6px; }
.foot b { color: var(--sub); }
@media (min-width: 820px) { .foot { padding-bottom: 48px; } }

/* sticky CTA (mobile) */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(255, 255, 255, 0), #fff 30%); transform: translateY(110%); transition: transform 300ms var(--ease); }
.sticky-cta.is-shown { transform: none; }
@media (min-width: 820px) { .sticky-cta { display: none; } }

/* dialogs as bottom sheets on mobile */
.sheet { width: min(560px, 100vw); max-height: 92vh; padding: 0; border: 0; border-radius: 28px; color: var(--ink); background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2); }
.sheet::backdrop { background: rgba(0, 12, 30, 0.5); }
@media (max-width: 640px) { .sheet { margin: auto 0 0; border-radius: 28px 28px 0 0; } }
.film-dlg { width: min(960px, 100vw); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 10px 26px; }
.sheet-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.sheet-head form { margin: 0; }
.close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--gray); color: var(--sub); cursor: pointer; }
.film-dlg video { width: 100%; background: #000; }
.sheet-note { margin: 0; padding: 14px 26px 22px; color: var(--mute); font-size: 14px; }
.notice { margin: 0 26px 16px; padding: 12px 14px; border-radius: 12px; background: var(--gray); color: var(--sub); font-size: 14px; }
.consult-dlg form, .done { padding: 0 26px 26px; }
.field { margin: 0 0 18px; padding: 0; border: 0; }
.field label, .field legend { display: block; margin-bottom: 8px; color: var(--sub); font-size: 15px; font-weight: 600; }
.field small { color: var(--mute); font-weight: 500; }
.field input:not([type="checkbox"]), .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 0; border-radius: 14px; background: var(--gray); color: var(--ink); font: 17px var(--font); }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--teal); background: #fff; }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 2px #f04452 !important; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick legend { width: 100%; }
.pick label { margin: 0; cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--gray); color: var(--ink-2); font-weight: 700; font-size: 15px; }
.pick input:checked + span { background: var(--teal-tint); color: var(--teal-press); box-shadow: inset 0 0 0 2px var(--teal); }
.pick input:focus-visible + span { outline: 3px solid rgba(0, 165, 159, 0.55); outline-offset: 2px; }
.pick .err { width: 100%; }
.err { margin: 6px 2px 0; color: #f04452; font-size: 14px; font-weight: 600; }
.done { text-align: center; }
.done-check { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-top: 10px; border-radius: 50%; background: var(--teal-tint); color: var(--teal-strong); font-size: 32px; }
.done h3 { margin: 16px 0 6px; font-size: 24px; letter-spacing: -0.03em; }
.done h3:focus { outline: none; }
.done p { margin: 0 0 12px; color: var(--sub); }
.done .notice { margin: 8px 0 20px; }

/* reveal */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(56px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }
.reveal-ready .feature .visual[data-reveal] { transition-delay: 120ms; }
.reveal-ready .cards [data-reveal]:nth-child(2), .reveal-ready .options [data-reveal]:nth-child(2) { transition-delay: 100ms; }
.reveal-ready .cards [data-reveal]:nth-child(3) { transition-delay: 200ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== reel.css ===== */
/* Variant D — Toss style + Reel. Additions on top of style.css (a copy of B's toss/style.css). */

.label.center { text-align: center; }
.on-dark { color: #9aa4b2 !important; }
.label.on-dark { color: #3fd6cf !important; }
.hero { padding-bottom: 56px; }

/* full-width band: the "lifestyle photo" slot */
.band { padding: 0 0 24px; }
.band-frame { position: relative; width: min(1280px, calc(100% - 32px)); margin: 0 auto; overflow: hidden; border-radius: 32px; background: var(--gray); }
.band-frame video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.band-frame figcaption { position: absolute; left: 20px; bottom: 18px; padding: 6px 12px; border-radius: 999px; background: rgba(25, 31, 40, 0.55); color: #fff; font-size: 13px; backdrop-filter: blur(6px); }
@media (min-width: 768px) { .band-frame { width: min(1280px, calc(100% - 48px)); } .band-frame video { aspect-ratio: 21 / 9; } }

/* sticky story */
.story { padding: 120px 0 80px; }
.story .center-title { margin-bottom: 48px; }
.story-grid { display: grid; gap: 0; }
.story-media { position: sticky; top: 60px; z-index: 2; padding: 8px 0 16px; background: #fff; }
.story-card { position: relative; overflow: hidden; border-radius: 24px; background: var(--gray); box-shadow: 0 24px 48px rgba(25, 31, 40, 0.1); }
.story-card video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.story-count { position: absolute; top: 14px; right: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--ink-2); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.story-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, 0.5); }
.story-progress span { display: block; height: 100%; background: var(--teal); transform: scaleX(0.2); transform-origin: 0 50%; transition: transform 500ms var(--ease); }
.story-steps { margin: 0; padding: 0; list-style: none; }
.story-steps li { display: flex; flex-direction: column; justify-content: center; min-height: 52vh; padding: 24px 0; }
.story-steps button { padding: 0; border: 0; background: none; color: #b0b8c1; font: 800 clamp(28px, 3.6vw, 44px)/1.3 var(--font); letter-spacing: -0.035em; text-align: left; cursor: pointer; transition: color 400ms var(--ease); }
.story-steps p { max-width: 26em; margin: 14px 0 0; color: var(--mute); font-size: 18px; opacity: 0.5; transition: opacity 400ms var(--ease); }
.story-steps li.is-active button { color: var(--ink); }
.story-steps li.is-active p { color: var(--sub); opacity: 1; }
@media (min-width: 900px) {
  .story { padding: 160px 0 120px; }
  .story-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; }
  .story-media { order: 2; top: calc(50vh - 180px); align-self: start; padding: 0; background: none; }
  .story-steps li { min-height: 76vh; }
}
@media (max-width: 899px) {
  .story-card { max-width: calc(34vh * 16 / 9); margin: 0 auto; }
  .story-steps li { min-height: 46vh; }
  .story-steps li:last-child { min-height: 60vh; }
}

/* the one dark section */
.dark { padding: 140px 0; background: #101318; color: #fff; }
.dark .center-title { color: #fff; }
.steps-pill { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 36px auto 0; padding: 0; list-style: none; counter-reset: s; }
.steps-pill li { counter-increment: s; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #d1d6db; font-size: 15px; font-weight: 700; }
.steps-pill li::before { content: counter(s); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); font-size: 12px; }
.steps-pill li.is-key { background: var(--teal-strong); color: #fff; }
.steps-pill li.is-key::before { background: rgba(255, 255, 255, 0.25); }
.dark-media { margin-top: 48px; overflow: hidden; border-radius: 28px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45); }
.dark-media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* team + trace pair */
.pair { padding: 140px 0; }
.pair-grid { display: grid; gap: 24px; margin-top: 56px; }
@media (min-width: 900px) { .pair-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pair-card { margin: 0; }
.pair-card figcaption { margin-top: 18px; color: var(--sub); font-size: 17px; }
.pair-card figcaption b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 21px; letter-spacing: -0.02em; }

/* product card with video */
.card-video .card-media { margin: -32px -28px 0; overflow: hidden; border-radius: 28px 28px 0 0; background: #0f1a24; }
.card-video .card-media video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-video .card-label { margin-top: 22px; }
.cards { align-items: start; }

/* film rail: swipe on small screens, three columns on desktop */
.films { padding: 140px 0; }
.film-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(80vw, 420px); gap: 16px;
  margin: 48px 0 0; padding: 0 24px 8px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; scrollbar-width: none;
}
.film-rail::-webkit-scrollbar { display: none; }
.film-rail li { scroll-snap-align: start; }
@media (min-width: 1100px) {
  .film-rail { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1080px; margin-inline: auto; overflow: visible; }
}
.film-tile { display: block; width: 100%; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; font-family: var(--font); }
.film-thumb { position: relative; display: block; overflow: hidden; border-radius: 24px; background: var(--gray); }
.film-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 700ms var(--ease); }
.film-tile:hover .film-thumb img { transform: scale(1.04); }
.film-play-s { position: absolute; left: 14px; bottom: 14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(25, 31, 40, 0.78); color: #fff; font-size: 22px; backdrop-filter: blur(6px); }
.film-text { display: grid; gap: 2px; padding: 14px 4px 0; }
.film-text b { font-size: 19px; letter-spacing: -0.02em; }
.film-text small { color: var(--mute); font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  .story-steps li { min-height: auto; padding: 32px 0; }
}

/* desktop: BDSFlow becomes a full-width horizontal card, ERP and Monitoring sit below */
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .card-video { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; padding: 0; overflow: hidden; }
  .card-video .card-media { height: 100%; margin: 0; border-radius: 0; }
  .card-video .card-media video { height: 100%; min-height: 340px; aspect-ratio: auto; }
  .card-video .card-body { padding: 36px 40px; }
  .card-video .card-label { margin-top: 0; }
}

/* ===== chapters.css ===== */
/* Variant D v2 — platform-balanced structure: three equal product chapters.
   Loaded after style.css and reel.css. */
.logo span { white-space: nowrap; }

/* hero: one floating card per product */
.fc-icon.green { background: var(--green); }
.fc-icon.red { background: #f04452; }
.fc-flow { right: calc(50% + 170px); top: 20%; }
.fc-erp { right: calc(50% + 170px); top: 60%; }
.fc-mon { left: calc(50% + 170px); top: 42%; }
.js:not(.reduce) .fc-erp { animation-delay: -2s; }
.js:not(.reduce) .fc-mon { animation-delay: -4s; }
@media (max-width: 899px) {
  .hero-stage { flex-direction: column; align-items: center; gap: 10px; }
  .hero-stage .phone { order: -1; margin-bottom: 14px; }
  .hero-stage .float-card { position: static; display: flex; width: min(340px, 100%); }
}

/* overview: three equal entries */
.overview { padding: 120px 0 40px; }
.pick-cards { display: grid; gap: 16px; margin: 56px 0 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .pick-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pick-card { display: grid; justify-items: start; gap: 4px; height: 100%; padding: 30px 28px 26px; border-radius: 28px; background: var(--gray); text-decoration: none; transition: transform 250ms var(--ease), background 250ms; }
.pick-card:hover { transform: translateY(-4px); background: var(--line); }
.pick-card .squircle { margin-bottom: 18px; }
.pick-area { color: var(--mute); font-size: 15px; font-weight: 600; }
.pick-card b { font-size: 26px; letter-spacing: -0.03em; }
.pick-desc { color: var(--sub); font-size: 17px; }
.pick-go { margin-top: 14px; color: var(--teal-strong); font-weight: 700; }

/* chapters */
.chapter { padding: 140px 0 0; }
.chapter-erp { padding-bottom: 100px; background: #f7f9fc; }
.chapter-mon { padding-bottom: 100px; }
.chapter-head { margin-bottom: 56px; }
.chapter-tag { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 18px; font-weight: 700; }
.chapter-tag.teal { color: var(--teal-strong); }
.chapter-tag.blue { color: #1b64da; }
.chapter-tag.green { color: #0a8a65; }
.squircle-s { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #fff; font-size: 16px; }
.squircle-s.teal { background: linear-gradient(135deg, #20c2ba, #008c89); }
.squircle-s.blue { background: linear-gradient(135deg, #5aa2ff, #1f6ed4); }
.squircle-s.green { background: linear-gradient(135deg, #3fd39b, #0a9b72); }
.squircle.gray { background: linear-gradient(135deg, #6b7684, #4e5968); }
.story { padding-top: 64px; }
.chapter .feature-grid { padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 900px) { .chapter .feature-grid { padding-top: 96px; padding-bottom: 96px; } }
.feature-title { margin: 0; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.3; font-weight: 800; letter-spacing: -0.035em; }
.label.blue-text { color: #1b64da; }
.label.green-text { color: #0a8a65; }
.chapter-cta { margin: 8px 0 0; text-align: center; }
.dark .chapter-cta { margin-top: 40px; }
.ghost-link { display: inline-flex; align-items: center; gap: 4px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 14px; background: var(--gray); color: var(--ink-2); font: 700 17px var(--font); cursor: pointer; }
.ghost-link:hover { background: var(--line); }
.chapter-erp .ghost-link { background: #e9eef5; }
.ghost-link.on-dark-link { background: rgba(255, 255, 255, 0.1); color: #fff; }
.ghost-link.on-dark-link:hover { background: rgba(255, 255, 255, 0.18); }

/* UI card visuals for ERP / Monitoring (no footage exists for these products) */
.ui-stage { position: relative; padding: 28px 18px; border-radius: 32px; }
@media (min-width: 900px) { .ui-stage { padding: 48px 44px 56px; } }
.blue-stage { background: linear-gradient(160deg, #e3eeff, #f3f7ff); }
.green-stage { background: linear-gradient(160deg, #dff5ec, #f2fbf7); }
.ui-card { padding: 22px; border-radius: 22px; background: #fff; box-shadow: 0 20px 48px rgba(25, 31, 40, 0.08); }
@media (min-width: 900px) { .ui-card { padding: 26px; } }
.ui-kicker { margin: 0 0 16px; color: var(--mute); font-size: 14px; font-weight: 700; }
.ui-note { margin: 12px 0 0; color: var(--mute); font-size: 13px; text-align: right; }
@media (min-width: 900px) { .ui-note { margin-top: 30px; } }
.ui-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.ui-kpis small { display: block; color: var(--mute); font-size: 13px; }
.ui-kpis b { font-size: clamp(16px, 2vw, 22px); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ui-kpis em { display: block; color: #f04452; font-size: 12px; font-style: normal; font-weight: 700; }
.c-teal { color: var(--teal-strong); }
.c-red { color: #f04452; }
.ui-bars { display: grid; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.ui-bars div { display: grid; grid-template-columns: 104px minmax(0, 1fr) 52px; align-items: center; gap: 10px; font-size: 14px; color: var(--sub); }
.ui-bars i { position: relative; height: 10px; border-radius: 5px; background: #edf1f6; overflow: hidden; }
.ui-bars i::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: var(--w); border-radius: 5px; background: #3182f6; transform-origin: 0 50%; }
.ui-bars b { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.reveal-ready .ui-bars i::after { transform: scaleX(0); transition: transform 1.1s 0.35s var(--ease); }
.reveal-ready .is-in .ui-bars i::after { transform: none; }
.ui-toast { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px 18px 14px 14px; border-radius: 18px; background: #fff; box-shadow: 0 16px 36px rgba(25, 31, 40, 0.14); }
.ui-toast b { display: block; font-size: 15px; }
.ui-toast small { color: var(--mute); font-size: 13px; }
@media (min-width: 900px) { .ui-toast { position: absolute; right: -18px; bottom: 6px; margin: 0; max-width: 320px; } }
.reveal-ready .ui-toast { opacity: 0; transform: translateY(16px); transition: opacity 700ms 0.7s var(--ease), transform 700ms 0.7s var(--ease); }
.reveal-ready .is-in .ui-toast { opacity: 1; transform: none; }

.hr-today { padding: 18px; border-radius: 16px; background: var(--gray); }
.hr-today .ui-kicker { margin-bottom: 10px; }
.hr-times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hr-times small { display: block; color: var(--mute); font-size: 13px; }
.hr-times b { font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hr-btn { display: inline-flex; margin-top: 14px; padding: 10px 16px; border-radius: 12px; background: #1f6ed4; color: #fff; font-size: 14px; font-weight: 700; }
.hr-rows { margin-top: 10px; }
.hr-rows div { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 10px; padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--sub); }
.hr-rows div:last-child { border-bottom: 0; }
.hr-rows b { color: var(--ink); }
.dot-s { width: 8px; height: 8px; border-radius: 50%; }
.dot-s.blue { background: #3182f6; }
.dot-s.amber { background: #f59e0b; }
.dot-s.teal { background: var(--teal); }

.svc-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.svc-list li { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.svc-list li:last-child { border-bottom: 0; }
.svc-list .st { grid-row: span 2; justify-self: start; }
.svc-list b { font-size: 16px; }
.svc-list small { color: var(--mute); font-size: 13px; font-variant-numeric: tabular-nums; }
.st { display: inline-flex; padding: 4px 9px; border-radius: 8px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.st-ok { background: #e8f7f1; color: #087557; }
.st-warn { background: #fff4df; color: #9a5404; }
.st-down { background: #feedef; color: #b7232b; }
.st-mt { background: #eef2f6; color: #5e6f83; }
.js:not(.reduce) .st-down { animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 4px rgba(240, 68, 82, 0.18); } }

.inc-progress { display: flex; align-items: center; gap: 12px; padding: 6px 0 18px; }
.inc-progress div { display: grid; grid-template-columns: 14px auto; column-gap: 8px; align-items: center; }
.inc-progress div span { grid-row: span 2; width: 14px; height: 14px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #e2f6ee; }
.inc-progress b { font-size: 15px; }
.inc-progress small { color: var(--mute); font-size: 13px; font-variant-numeric: tabular-nums; }
.inc-progress > i { flex: 1; height: 3px; border-radius: 2px; background: var(--green); }
.reveal-ready .inc-progress > i { transform: scaleX(0); transform-origin: 0 50%; transition: transform 900ms 0.4s var(--ease); }
.reveal-ready .is-in .inc-progress > i { transform: none; }
.inc-notes { margin: 0; border-top: 1px solid var(--line); }
.inc-notes div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.inc-notes div:last-child { border-bottom: 0; }
.inc-notes dt { color: var(--mute); font-size: 14px; }
.inc-notes dd { margin: 0; color: var(--ink-2); }

/* connection */
.connect { padding: 140px 0; }
.connect-grid { display: grid; gap: 16px; margin-top: 56px; }
@media (min-width: 900px) { .connect-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.connect-item { padding: 32px 28px; border-radius: 28px; background: var(--gray); }
.connect-item h3 { margin: 22px 0 8px; font-size: 24px; letter-spacing: -0.03em; }
.connect-item p { margin: 0; color: var(--sub); font-size: 16px; }
.connect-item .apps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; }
.app { padding: 4px 10px; border-radius: 8px; font-size: 13px; font-weight: 700; }
.app.teal { background: var(--teal-tint); color: var(--teal-press); }
.app.blue { background: #e8f3ff; color: #1b64da; }
.app.green { background: #e8f7f1; color: #087557; }
.films { background: var(--gray-2); }

/* reversed rows: keep the visual in the wide column */
@media (min-width: 900px) { .feature-grid.reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

/* live-action BDSFlow film (user-started, with sound; no autoplay or muted loop) */
.live-film { background: #000; }
.live-film video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }
.band-frame.live-film figcaption { position: static; display: block; padding: 12px 20px 14px; border-radius: 0; background: #fff; color: var(--mute); font-size: 13px; backdrop-filter: none; }
.live-play { position: absolute; left: 50%; top: calc(50% - 22px); transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 14px; padding: 12px 22px 12px 12px; border: 0; border-radius: 999px; background: rgba(25, 31, 40, 0.78); color: #fff; text-align: left; cursor: pointer; backdrop-filter: blur(8px); font-family: var(--font); transition: background 200ms, transform 200ms var(--ease); }
.live-play:hover { background: rgba(25, 31, 40, 0.9); transform: translate(-50%, -50%) scale(1.03); }
.live-play[hidden] { display: none; }
.live-play-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--ink); font-size: 26px; }
.live-play-text b { display: block; font-size: 17px; }
.live-play-text small { color: #d1d6db; font-size: 13px; }
@media (max-width: 560px) { .live-play { padding: 8px; } .live-play-text { display: none; } }

/* story card shows stills from the live-action film */
.story-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: 0; transition: opacity 450ms var(--ease); }
.story-card img.is-shown { opacity: 1; }
.scene-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 10px; padding: 0; border: 0; background: none; color: var(--teal-strong); font: 700 16px var(--font); cursor: pointer; opacity: 0.6; transition: opacity 300ms; }
.story-steps li.is-active .scene-btn, .scene-btn:focus-visible, .scene-btn:hover { opacity: 1; }
.story-steps .scene-btn { color: var(--teal-strong); font-size: 16px; letter-spacing: 0; }

/* film rail now has two items */
@media (min-width: 1100px) { .film-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; } }
.story-steps li .scene-btn, .story-steps li.is-active .scene-btn { color: var(--teal-strong); font: 700 16px/1.4 var(--font); letter-spacing: 0; }
.story-card img { height: auto; }

/* ===== story.css ===== */
/* 5-scene story, v3. Loaded last; overrides the earlier story rules in reel.css / chapters.css.
   Desktop: sticky card on the right, stills crossfade (all five stacked, no blank frame).
   Below 900px: no sticky card; each step shows its own photo above the text. */

.story { padding: 120px 0 72px; }
.story-intro { margin-bottom: 8px; }
.story-title { margin: 0; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.3; font-weight: 800; letter-spacing: -0.035em; }

/* ---------- stacked (mobile / tablet) ---------- */
.story-grid { display: block; }
.story-media { display: none; }
.story-steps li,
.story-steps li:last-child { display: block; min-height: auto; padding: 44px 0 4px; }
.step-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 22px; border-radius: 20px; background: var(--gray); box-shadow: 0 16px 36px rgba(25, 31, 40, 0.08); }
.step-no { display: block; margin-bottom: 6px; color: var(--teal-strong); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.story-steps li > button:not(.scene-btn),
.story-steps li.is-active > button:not(.scene-btn) { color: var(--ink); font-size: clamp(26px, 6.4vw, 36px); }
.story-steps li p,
.story-steps li.is-active p { opacity: 1; color: var(--sub); }
.story-steps li .scene-btn { opacity: 1; }

/* ---------- sticky crossfade (desktop) ---------- */
@media (min-width: 900px) {
  .story { padding: 160px 0 96px; }
  .story-intro { margin-bottom: 0; }
  .story-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; }
  .story-media { display: block; order: 2; position: sticky; top: calc(50vh - 190px); padding: 0; background: none; }
  .step-img { display: none; }

  .story-steps li,
  .story-steps li:last-child { display: flex; flex-direction: column; justify-content: center; min-height: 64vh; padding: 0; }
  .story-steps li:last-child { min-height: 72vh; }
  .story-steps li > button:not(.scene-btn) { color: #c4cad1; font-size: clamp(30px, 3.4vw, 44px); transition: color 450ms var(--ease); }
  .story-steps li.is-active > button:not(.scene-btn) { color: var(--ink); }
  .story-steps li .step-no { color: #c4cad1; transition: color 450ms var(--ease); }
  .story-steps li.is-active .step-no { color: var(--teal-strong); }
  .story-steps li p { opacity: 0.4; transition: opacity 450ms var(--ease); }
  .story-steps li.is-active p { opacity: 1; }
  .story-steps li .scene-btn { opacity: 0; transition: opacity 450ms var(--ease); }
  .story-steps li.is-active .scene-btn, .story-steps li .scene-btn:focus-visible { opacity: 1; }
}

.story-card { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 24px; background: #e9edf1; box-shadow: 0 28px 56px rgba(25, 31, 40, 0.12); }
.story-card .story-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.035); transition: opacity 700ms var(--ease), transform 1600ms var(--ease); }
.story-card .story-frame.is-active { opacity: 1; transform: none; }
.story-count { z-index: 2; }

.story-dots { display: flex; justify-content: center; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
.story-dots li { width: 6px; height: 6px; border-radius: 3px; background: #d1d6db; transition: width 350ms var(--ease), background 350ms var(--ease); }
.story-dots li.is-done { background: #9fd9d6; }
.story-dots li.is-active { width: 24px; background: var(--teal); }
.story-note { margin: 12px 0 0; color: var(--mute); font-size: 13px; text-align: center; }

/* mobile note under the stacked list */
@media (max-width: 899px) {
  .story-steps::after { content: "BDSFlow 소개 영상 장면 · AI로 생성한 연출 장면이며 화면은 예시입니다"; display: block; margin-top: 28px; color: var(--mute); font-size: 13px; }
}

/* ===== production additions (real consultation form) ===== */
/* Thymeleaf adds a hidden "_selectedSolutions" input after each checkbox, so use ~ instead of + */
.pick input:checked ~ span { background: var(--teal-tint); color: var(--teal-press); box-shadow: inset 0 0 0 2px var(--teal); }
.pick input:focus-visible ~ span { outline: 3px solid rgba(0, 165, 159, 0.55); outline-offset: 2px; }
.consult-form { padding: 0 26px 26px; }
.form-alert { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: #fff0f1; color: #c4232f; font-size: 14px; font-weight: 700; }
.consult-form .btn[disabled] { opacity: 0.6; cursor: progress; }
.consult-form textarea { resize: vertical; }
.foot a { color: var(--sub); }
.complete-page { min-height: calc(100vh - 60px - 160px); display: grid; align-items: center; }
.complete-page h1 { margin: 8px 0 0; font-size: clamp(32px, 5vw, 52px); line-height: 1.3; font-weight: 800; letter-spacing: -0.04em; }
.complete-page .center-sub { margin: 0 0 12px; }
/* radio chips: keep the native input visually hidden (the text-input width rule must not apply) */
.field.pick input[type] { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: 0; opacity: 0; }
.consult-dlg { overflow-x: hidden; }

/* ===== privacy consent (draft) ===== */
.consent { margin: 4px 0 20px; padding: 16px; border-radius: 16px; background: var(--gray); }
.consent-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; color: var(--ink-2); font-size: 16px; }
.consent-check input { flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--teal-strong); }
.consent-check input[aria-invalid="true"] { outline: 2px solid #f04452; outline-offset: 2px; }
.consent-detail { margin-top: 8px; color: var(--sub); font-size: 14px; }
.consent-detail summary { display: inline-flex; align-items: center; min-height: 36px; cursor: pointer; font-weight: 600; }
.consent-detail dl { margin: 6px 0 10px; }
.consent-detail dl div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.consent-detail dt { color: var(--ink-2); font-weight: 700; }
.consent-detail dd { margin: 0; }
.consent-detail p { margin: 6px 0 0; }
.consent .err { margin-top: 8px; }
/* Draft values awaiting confirmation. Remove the <mark class="tbd"> wrappers once confirmed. */
mark.tbd { padding: 0 2px; border-radius: 3px; background: #fff3bf; color: inherit; box-shadow: inset 0 -2px 0 #f59f00; }
.consult-form textarea { overflow-x: hidden; overflow-wrap: anywhere; word-break: normal; }
