/* =============================================================================
 * SCALE BUILD — 첫 화면 히어로 (건물주 대상 · 2026-10-10 전달본 통합)
 * 출처: handoff/scale-build-hero-2026-10-10.zip 의 tokens.css + hero.css 를 그대로 합친 것.
 * 모든 규칙은 .sb-hero 아래에만 적용된다(사이트 공통 모노 테마와 분리). 끝의 '통합 브리지' 만 이 앱 전용 추가.
 * ========================================================================== */
/* Actual current preview values, scoped to this component. No webfont is downloaded. */
.sb-hero {
  color-scheme: light;
  --ink: #171a19;
  --line: #dce1de;
  --accent: #294d40;
  --owner-muted: #59635a;
  --hero-background: #fafbf8;
  --hero-accent-hover: #1c3d30;
  --hero-focus: #6c927b;
  --hero-image-background: #e7e8e3;
  --hero-tag-background: #17201ddb;
  --hero-selected-background: #edf1e9;
  --hero-white: #ffffff;
  --hero-translucent-black: #00000022;
  --hero-swatch-white: #e5e0d1;
  --hero-swatch-clay: #a3563f;
  --hero-font-family: "Spoqa Han Sans Neo", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;   /* 사이트 공통 글꼴로 통일(사장님 결정) */
}

/* Hero-only extraction of beta.css + beta-landing.css; no global selectors. */
.sb-hero {
  background: var(--hero-background);
  color: var(--ink);
  font-family: var(--hero-font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
}
.sb-hero *, .sb-hero *::before, .sb-hero *::after { box-sizing: border-box; }
.sb-hero > .owner-landing { max-width: 1320px; margin: auto; padding: 0 40px 30px; }
.sb-hero a { color: inherit; }
.sb-hero p { margin: 12px 0; }
.sb-hero button, .sb-hero input { font: inherit; }
.sb-hero button {
  cursor: pointer; border: 1px solid var(--line); background: var(--hero-white);
  padding: 10px 15px; min-height: 44px; border-radius: 7px; color: var(--ink);
}
.sb-hero button:hover { border-color: var(--ink); }
.sb-hero button:focus-visible, .sb-hero a:focus-visible, .sb-hero input:focus-visible {
  outline: 3px solid var(--hero-focus); outline-offset: 3px;
}
.sb-hero .eyebrow { color: var(--accent); font-weight: 700; }
.sb-hero label { display: block; font-size: 14px; margin: 13px 0 5px; }
.sb-hero input { width: 100%; min-width: 0; color: var(--ink); border-radius: 6px; }
.sb-hero [hidden] { display: none !important; }
.sb-hero .owner-text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.sb-hero .owner-landing section, .sb-hero #examples { scroll-margin-top: 24px; }
.sb-hero .owner-hero { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 64px; padding: 48px 0 64px; }
.sb-hero .owner-hero-copy { padding-bottom: 40px; }
.sb-hero .owner-landing .eyebrow { font-size: 12px; letter-spacing: .09em; margin: 0 0 26px; }
.sb-hero .owner-landing h1 { font-size: clamp(40px, 4.5vw, 62px); font-weight: 650; line-height: 1.18; letter-spacing: -.065em; margin: 0 0 28px; word-break: keep-all; }
.sb-hero .owner-lead { color: var(--owner-muted); font-size: 17px; line-height: 1.85; max-width: 490px; word-break: keep-all; }
.sb-hero .owner-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin: 32px 0 16px; }
.sb-hero .owner-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 36px; padding: 16px 23px; min-height: 54px; background: var(--accent); color: var(--hero-white); text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid var(--accent); border-radius: 3px; }
.sb-hero .owner-cta:hover { background: var(--hero-accent-hover); }
.sb-hero .owner-cta > span { font-size: 21px; line-height: 1; }
.sb-hero .owner-text-link { font-size: 14px; text-decoration: none; padding-block: 10px; }
.sb-hero .owner-small { font-size: 13px; color: var(--owner-muted); line-height: 1.7; }
.sb-hero .owner-hero-note { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 20px; display: flex; gap: 26px; align-items: flex-start; max-width: 390px; }
.sb-hero .owner-hero-note > span { font-size: 11px; letter-spacing: .04em; margin-top: 5px; color: var(--owner-muted); }
.sb-hero .owner-hero-note p { margin: 0; font-size: 14px; line-height: 1.8; }
.sb-hero .owner-example { margin: 0; width: 100%; max-width: 450px; justify-self: end; min-width: 0; }
.sb-hero .owner-example-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 10px; letter-spacing: .06em; color: var(--owner-muted); }
.sb-hero .owner-example-top > span:first-child { color: var(--ink); font-weight: 700; }
.sb-hero .owner-compare { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--hero-image-background); touch-action: pan-y; cursor: ew-resize; }
.sb-hero .owner-compare img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.sb-hero .owner-compare .owner-after { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.sb-hero .owner-photo-tag { position: absolute; top: 16px; color: var(--hero-white); background: var(--hero-tag-background); font-size: 10px; letter-spacing: .04em; padding: 5px 9px; pointer-events: none; }
.sb-hero .owner-before-tag { left: 14px; }.sb-hero .owner-after-tag { right: 14px; }
.sb-hero .owner-divider { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--hero-white); pointer-events: none; transform: translateX(-50%); }
.sb-hero .owner-divider > span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--hero-white); box-shadow: 0 1px 12px var(--hero-translucent-black); font-size: 20px; }
.sb-hero .owner-range-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; font-size: 11px; color: var(--owner-muted); }
.sb-hero .owner-range-label label { font-size: 12px; margin: 0; }
.sb-hero input.owner-range { display: block; appearance: auto; accent-color: var(--accent); min-height: 32px; padding: 0; margin: 0 0 8px; border: 0; background: transparent; cursor: ew-resize; }
.sb-hero .owner-variants { display: flex; gap: 8px; }
.sb-hero .owner-variants button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 1; font-size: 12px; padding: 10px 8px; border-radius: 3px; background: transparent; }
.sb-hero .owner-variants button[aria-pressed=true] { border-color: var(--accent); background: var(--hero-selected-background); font-weight: 650; }
.sb-hero .owner-swatch { width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--hero-translucent-black); flex-shrink: 0; }
.sb-hero .owner-swatch-white { background: var(--hero-swatch-white); }.sb-hero .owner-swatch-clay { background: var(--hero-swatch-clay); }
.sb-hero .owner-example figcaption { font-size: 12px; color: var(--owner-muted); line-height: 1.75; margin-top: 13px; word-break: keep-all; }
.sb-hero #exampleStatus:empty { display: none; }

@media (max-width: 1050px) {
  .sb-hero .owner-hero { gap: 35px; }
  .sb-hero .owner-hero-copy { padding: 0; }
  .sb-hero .owner-actions { gap: 15px; }
  .sb-hero .owner-wide-only { display: none; }
}
@media (max-width: 850px) {
  .sb-hero > .owner-landing { padding: 0 20px 20px; }
  .sb-hero .owner-hero { grid-template-columns: 1fr; gap: 36px; padding: 40px 0 56px; }
  .sb-hero .owner-hero-copy { max-width: 620px; }
  .sb-hero .owner-landing h1 { font-size: clamp(40px, 7vw, 56px); }
  .sb-hero .owner-lead { font-size: 16px; }
  .sb-hero .owner-hero-note { display: none; }
  .sb-hero .owner-example { justify-self: center; max-width: 480px; }
  .sb-hero .owner-landing .eyebrow { margin-bottom: 20px; }
}
@media (max-width: 420px) {
  .sb-hero .owner-landing h1 { font-size: 39px; }
  .sb-hero .owner-lead { font-size: 15px; }
  .sb-hero .owner-actions { gap: 8px 20px; }
  .sb-hero .owner-actions .owner-cta { width: 100%; }
  .sb-hero .owner-example-top { font-size: 11px; }   /* 9px 는 휴대폰에서 읽기 어렵다 */
  .sb-hero .owner-range-label { font-size: 10px; }
  .sb-hero .owner-variants button { font-size: 11px; gap: 6px; }
  .sb-hero .owner-photo-tag { font-size: 9px; }
}
@media (prefers-reduced-motion: no-preference) {
  .sb-hero .owner-cta, .sb-hero .owner-variants button { transition: background-color .15s ease; }
}

/* ── 서비스 소개 · 이용 방법 · 디자인 탐색기 (2026-10-11 · beta-landing.css / beta-visual.css 발췌, .sb-hero 범위) ── */
.sb-hero .owner-section { padding: 80px 0; border-top: 1px solid var(--line); }
.sb-hero .owner-section h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 600; line-height: 1.35; letter-spacing: -.055em; margin: 0 0 24px; word-break: keep-all; }
.sb-hero .owner-section-heading > p:last-child { font-size: 15px; color: var(--owner-muted); line-height: 1.9; word-break: keep-all; }
.sb-hero .owner-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 48px; }
.sb-hero .owner-benefits article { border-top: 2px solid #cbd2c6; padding-top: 22px; }
.sb-hero .owner-index { font-size: 11px; letter-spacing: .1em; color: var(--owner-muted); }
.sb-hero .owner-benefits h3 { font-size: 23px; font-weight: 600; line-height: 1.5; letter-spacing: -.04em; margin: 20px 0 16px; }
.sb-hero .owner-benefits p { font-size: 15px; color: var(--owner-muted); line-height: 1.9; word-break: keep-all; }
.sb-hero .owner-deliverable { display: block; margin-top: 25px; color: var(--accent); font-size: 12px; font-weight: 600; }
.sb-hero .owner-disclaimer { border-left: 2px solid #b8c4b1; padding-left: 16px; margin: 40px 0 0; max-width: 850px; font-size: 12px; color: var(--owner-muted); }
.sb-hero .owner-how { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; }
.sb-hero .owner-step-list { list-style: none; padding: 0; margin: 0; }
.sb-hero .owner-step-list li { display: grid; grid-template-columns: 35px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.sb-hero .owner-step-list li:first-child { padding-top: 0; border: 0; }
.sb-hero .owner-step-list li > span { font-size: 12px; color: var(--accent); padding-top: 4px; }
.sb-hero .owner-step-list h3 { font-size: 19px; font-weight: 600; margin: 0 0 12px; letter-spacing: -.03em; }
.sb-hero .owner-step-list p { margin: 0; font-size: 14px; line-height: 1.9; color: var(--owner-muted); word-break: keep-all; }
/* 디자인 탐색기 — 비교 슬라이더는 사이트 공통 .ba, 카드는 가로 스크롤. 외관 3:4 / 실내(.ex-wide) 4:3 */
.sb-hero .owner-explore { padding-top: 64px; }
.sb-hero .ex-tabs { display: flex; gap: 8px; margin: 0 0 24px; flex-wrap: wrap; }
.sb-hero .ex-tabs button { border-radius: 3px; font-size: 14px; padding: 10px 16px; }
.sb-hero .ex-tabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--hero-white); }
.sb-hero .ex-layout { display: grid; grid-template-columns: minmax(0, 450px) minmax(260px, 1fr); gap: 48px; align-items: start; }
.sb-hero .ex-wide .ex-layout { grid-template-columns: minmax(0, 600px) minmax(260px, 1fr); }
.sb-hero .ex-stage { min-width: 0; }
.sb-hero .ex-stage .ba { aspect-ratio: 3/4; width: 100%; }
.sb-hero .ex-wide .ex-stage .ba { aspect-ratio: 4/3; }
.sb-hero .ex-captions { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 12px; color: var(--owner-muted); }
.sb-hero .ex-controls h3 { font-size: 21px; font-weight: 600; letter-spacing: -.03em; line-height: 1.5; margin: 6px 0 12px; }
.sb-hero .ex-controls .owner-small { margin: 0 0 12px; }
.sb-hero .ex-controls .owner-cta { margin-top: 12px; }
.sb-hero .ex-cards { display: flex; gap: 12px; overflow-x: auto; padding: 4px; margin-top: 28px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.sb-hero .ex-cards button { flex: 0 0 150px; scroll-snap-align: start; padding: 0; overflow: hidden; text-align: left; border: 1px solid var(--line); background: var(--hero-white); border-radius: 3px; min-height: 0; }
.sb-hero .ex-wide .ex-cards button { flex-basis: 190px; }
.sb-hero .ex-cards img { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.sb-hero .ex-wide .ex-cards img { aspect-ratio: 4/3; }
.sb-hero .ex-cards span { display: block; padding: 9px 10px; font-size: 12px; }
.sb-hero .ex-cards button[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: -2px; border-color: var(--accent); }
/* 장점 2가지(메인 카피 아래 · 2026-10-11) — 예전 '01 — 03' 노트 자리. 모바일에서도 보인다 */
.sb-hero .owner-benefit-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0; margin: 22px 0 0; }
.sb-hero .owner-benefit-list li { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.sb-hero .owner-benefit-list li span { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--hero-white); display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; }
@media (max-width: 420px) { .sb-hero .owner-benefit-list li { font-size: 15px; } }

/* 무드 카드(외관 탭) — 퍼널 1단계의 스타일 카드와 같은 레퍼런스 사진 · 이름 · 한 줄 설명. 5장이 한 줄을 채운다 */
.sb-hero .ex-cards.ex-moods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; overflow: visible; padding: 0; }
.sb-hero .ex-cards.ex-moods button { position: relative; flex: none; padding: 0; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--hero-image-background); }
.sb-hero .ex-cards.ex-moods img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.sb-hero .ex-cards.ex-moods .em-n { position: absolute; left: 0; right: 0; bottom: 0; display: block; padding: 30px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.74)); color: var(--hero-white); font-size: 17px; font-weight: 700; line-height: 1.3; text-align: left; }
.sb-hero .ex-cards.ex-moods .em-n small { display: block; font-size: 12.5px; font-weight: 500; opacity: .92; margin-top: 2px; }
.sb-hero .ex-cards.ex-moods button[aria-pressed="true"] { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(41,77,64,.28); }
.sb-hero .ex-cards.ex-moods button:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: no-preference) { .sb-hero .ex-cards.ex-moods img { transition: transform .35s ease; } }
@media (max-width: 850px) {
  .sb-hero .ex-cards.ex-moods { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 4px; scroll-snap-type: x proximity; }
  .sb-hero .ex-cards.ex-moods button { flex: 0 0 210px; scroll-snap-align: start; }
}
@media (max-width: 1050px) {
  .sb-hero .owner-benefits { gap: 24px; }
  .sb-hero .owner-how { gap: 40px; }
}
@media (max-width: 850px) {
  .sb-hero .owner-index { font-size: 12px; }
  .sb-hero .owner-section { padding: 56px 0; }
  .sb-hero .owner-how { grid-template-columns: 1fr; gap: 32px; }
  .sb-hero .owner-benefits { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }
  .sb-hero .owner-benefits h3 br { display: none; }
  .sb-hero .owner-benefits h3 { font-size: 21px; margin-top: 12px; }
  .sb-hero .owner-benefits p { max-width: 600px; }
  .sb-hero .owner-deliverable { margin-top: 16px; }
  .sb-hero .ex-layout, .sb-hero .ex-wide .ex-layout { grid-template-columns: 1fr; gap: 28px; }
  .sb-hero .ex-stage { max-width: 480px; }
  .sb-hero .ex-cards button { flex-basis: 130px; }
  .sb-hero .ex-wide .ex-cards button { flex-basis: 160px; }
}

/* 헤더 소개 메뉴(첫 화면에서만 · gotoStep 이 켜고 끈다) — 로고 가운데 정렬을 건드리지 않게 절대 배치 */
.topnav .wrap { position: relative; }
#heroNav { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); display: flex; gap: 22px; }
#heroNav a { font-size: 14px; color: var(--ink); text-decoration: none; padding: 10px 0; }
#heroNav a:hover { text-decoration: underline; text-underline-offset: 5px; }
#heroNav[hidden] { display: none; }
@media (max-width: 760px) { #heroNav { display: none; } }

/* ── 통합 브리지 (이 앱 전용) ─────────────────────────────────────────────────
 * #screen0 은 gotoStep(0) 이 켜고 끄는 첫 화면. 스테이지를 세로로 채우되 내용 폭은 100% 를 쓴다. */
#screen0.sb-hero { min-height: 100%; display: flex; align-items: center; }
.sb-hero > .owner-landing { width: 100%; }
/* 오른쪽 비포/애프터 = 사이트 공통 비교 슬라이더(.ba · scale-build.css) — 3:4 세로, 가격 칩·태그는 공통 스타일 */
.sb-hero .owner-example .ba { aspect-ratio: 3/4; width: 100%; }
.sb-hero .ba-cap { margin-top: 10px; font-size: 12px; color: var(--owner-muted); text-align: center; }
.sb-hero .owner-example figcaption { margin-top: 10px; }
/* '지난 진단 결과 다시 보기' — 기존 기능. CTA 줄 아래 텍스트 링크로 둔다(저장된 프로젝트가 있을 때만 보인다) */
.sb-hero .hero-recent { display: inline-block; margin-top: 4px; font-size: 13px; color: var(--owner-muted); text-decoration: underline; text-underline-offset: 4px; }
.sb-hero .hero-recent:hover { color: var(--ink); }
@media (max-width: 640px) {
  #screen0.sb-hero { min-height: 0; align-items: flex-start; }
}
