/* =========================================================================
   분양마루 — Sub-page styles (스킨 소개 · 스킨 상세 · 제작 프로세스 · 요금 안내)
   Loaded AFTER styles.css. Reuses the same tokens & components.
   ========================================================================= */

/* ---- sub-page hero banner ---- */
.subhero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  padding: 138px 0 0;
}
.subhero::before {
  content: "";
  position: absolute;
  width: 640px; height: 640px;
  right: -160px; top: -220px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 62%);
  pointer-events: none;
}
.subhero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  pointer-events: none;
}
.subhero-inner { position: relative; z-index: 2; padding-bottom: 46px; }
.subhero .crumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,.5); font-weight: 500;
  margin-bottom: 18px;
}
.subhero .crumb a { color: rgba(255,255,255,.5); transition: color .2s; }
.subhero .crumb a:hover { color: var(--gold); }
.subhero .crumb .sep { opacity: .5; }
.subhero h1 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.18;
}
.subhero h1 .hl { color: var(--gold); }
.subhero .sub-desc {
  margin-top: 16px;
  font-size: 17px;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  max-width: 560px;
}

/* tab strip */
.subtabs {
  position: relative; z-index: 2;
  background: rgba(255,255,255,.04);
  border-top: 1px solid rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.subtabs .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subtabs .wrap::-webkit-scrollbar { display: none; }
.subtabs a {
  position: relative;
  padding: 20px 26px;
  font-size: 15px; font-weight: 600;
  color: rgba(255,255,255,.55);
  white-space: nowrap;
  transition: color .2s;
}
.subtabs a:hover { color: #fff; }
.subtabs a.on { color: #fff; }
.subtabs a.on::after {
  content: ""; position: absolute; left: 26px; right: 26px; bottom: -1px;
  height: 2.5px; background: var(--gold);
}
@media (max-width: 560px) { .subtabs a { padding: 16px 16px; font-size: 14px; } }

/* center section heads used on sub-pages */
.sub-section { padding: 104px 0; }
.sub-section.beige { background: var(--beige); }
.center-head { max-width: 720px; margin: 0 auto; text-align: center; }
.center-head .eyebrow { justify-content: center; }
.center-head .eyebrow::before { display: none; }
.center-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800; letter-spacing: -0.028em; line-height: 1.22;
  margin-top: 14px; color: var(--navy);
}
.center-head h2 .hl { color: var(--accent); }
.center-head p { margin-top: 16px; font-size: 17px; color: var(--ink-soft); line-height: 1.7; }

/* ---- CTA band (bottom of sub-pages) ---- */
.cta-band {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute;
  width: 520px; height: 520px; left: -150px; bottom: -240px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%);
}
.cta-band .wrap {
  position: relative; z-index: 2;
  padding: 88px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 36px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.24; }
.cta-band p { margin-top: 12px; font-size: 16px; color: rgba(255,255,255,.7); }
.cta-band .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* =========================================================================
   스킨 소개 — overview cards with actions
   ========================================================================= */
.skin-actions { display: flex; gap: 10px; margin-top: 20px; }
.skin-actions .btn { flex: 1; }
.skin-feats { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.skin-feats span {
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  background: var(--beige); border: 1px solid var(--line-soft);
  padding: 5px 11px; border-radius: 999px;
}
.skins-grid.tall .skin-prev { height: 270px; }

/* =========================================================================
   스킨 상세 — big preview + feature cards + highlights
   ========================================================================= */
.detail-top { padding: 100px 0 90px; background: var(--paper); }
.detail-top .wrap { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: center; }
.detail-spec .code-lg { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--accent); }
.detail-spec h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; margin-top: 14px; color: var(--navy); }
.detail-spec .lead { margin-top: 18px; font-size: 17px; color: var(--ink-soft); line-height: 1.75; }
.detail-spec .spec-list { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.detail-spec .spec-list .r { display: flex; gap: 13px; align-items: flex-start; }
.detail-spec .spec-list .r .ck { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-100); color: var(--gold-600); display: grid; place-items: center; font-size: 11px; font-weight: 900; margin-top: 1px; }
.detail-spec .spec-list .r b { font-size: 15.5px; color: var(--navy); font-weight: 700; }
.detail-spec .spec-list .r span { font-size: 14.5px; color: var(--ink-soft); }
.detail-spec .palette-row { margin-top: 26px; display: flex; align-items: center; gap: 12px; }
.detail-spec .palette-row .lab { font-size: 13px; color: var(--ink-faint); font-weight: 600; }
.detail-spec .palette-row i { width: 26px; height: 26px; border-radius: 7px; border: 1px solid rgba(0,0,0,.08); }
.detail-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

.detail-frame {
  border-radius: 14px; overflow: hidden; background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 44px 90px -44px rgba(28,45,74,.5);
}
.detail-frame .aw-bar { height: 38px; }
.detail-shot { display: block; width: 100%; height: 440px; background: var(--beige-deep); }
@media (max-width: 940px) { .detail-top .wrap { grid-template-columns: 1fr; gap: 40px; } .detail-shot { height: 300px; } }

/* feature cards (반응형/관리자/SEO/옵션) */
.feat-cards { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.fcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.fcard:hover { transform: translateY(-5px); box-shadow: 0 26px 52px -36px rgba(28,45,74,.36); }
.fcard .fic { width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-size: 19px; font-weight: 800; }
.fcard h3 { margin-top: 20px; font-size: 18px; font-weight: 700; color: var(--navy); }
.fcard p { margin-top: 9px; font-size: 14px; color: var(--ink-soft); line-height: 1.65; }
@media (max-width: 900px) { .feat-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .feat-cards { grid-template-columns: 1fr; } }

/* highlight rows */
.highlights { margin-top: 30px; display: flex; flex-direction: column; gap: 22px; }
.hl-row { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 38px; }
.hl-row .hl-k { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--accent); }
.hl-row .hl-t { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); margin-top: 8px; }
.hl-row p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.7; }
@media (max-width: 760px) { .hl-row { grid-template-columns: 1fr; gap: 12px; padding: 28px 26px; } }

/* =========================================================================
   제작 프로세스 — detailed vertical timeline
   ========================================================================= */
.proc-list { max-width: 880px; margin: 60px auto 0; display: flex; flex-direction: column; }
.proc-item { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 30px; padding: 0 0 46px 0; }
.proc-item:last-child { padding-bottom: 0; }
.proc-item .pn {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--navy); color: #fff;
  display: grid; place-items: center; font-size: 22px; font-weight: 800;
  position: relative; z-index: 2;
}
.proc-item.accent .pn { background: var(--accent); }
.proc-item::before {
  content: ""; position: absolute; left: 31px; top: 64px; bottom: 0;
  width: 2px; background: var(--line);
}
.proc-item:last-child::before { display: none; }
.proc-body { padding-top: 4px; }
.proc-body h3 { font-size: 21px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.proc-body .lead { margin-top: 8px; font-size: 15.5px; color: var(--ink-soft); line-height: 1.7; }
.proc-body .tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.proc-body .tags span { font-size: 13px; font-weight: 600; color: var(--navy); background: var(--beige); border: 1px solid var(--line-soft); padding: 6px 13px; border-radius: 8px; }
@media (max-width: 560px) {
  .proc-item { grid-template-columns: 54px 1fr; gap: 20px; }
  .proc-item .pn { width: 54px; height: 54px; font-size: 19px; }
  .proc-item::before { left: 26px; top: 54px; }
}

/* prep / note strip */
.note-strip { margin-top: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.note-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px; }
.note-card .nk { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--accent); }
.note-card h3 { margin-top: 10px; font-size: 19px; font-weight: 800; color: var(--navy); }
.note-card p { margin-top: 10px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.7; }
@media (max-width: 680px) { .note-strip { grid-template-columns: 1fr; } }

/* =========================================================================
   요금 안내 — comparison table
   ========================================================================= */
.compare { margin-top: 56px; max-width: 980px; margin-left: auto; margin-right: auto; }
.compare-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.compare-grid .ch { padding: 30px 28px; border-bottom: 1px solid var(--line); }
.compare-grid .ch.plan-col { border-left: 1px solid var(--line-soft); }
.compare-grid .ch.feat-on { background: var(--navy); color: #fff; }
.ch .tier { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: var(--accent); }
.ch .pn { margin-top: 8px; font-size: 21px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.ch.feat-on .pn { color: #fff; }
.ch .pp { margin-top: 14px; display: flex; align-items: baseline; gap: 6px; }
.ch .pp b { font-size: 30px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.ch.feat-on .pp b { color: #fff; }
.ch .pp .u { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.ch.feat-on .pp .u { color: rgba(255,255,255,.65); }
.ch .pp .from { font-size: 15px; color: var(--gold); font-weight: 700; }
.compare-grid .rowlab,
.compare-grid .cell {
  padding: 18px 28px; border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px; display: flex; align-items: center;
}
.compare-grid .rowlab { font-weight: 700; color: var(--navy); background: var(--beige); }
.compare-grid .cell { color: var(--ink-soft); border-left: 1px solid var(--line-soft); justify-content: center; text-align: center; }
.compare-grid .cell.yes { color: var(--gold-600); font-weight: 800; }
.compare-grid .cell.no { color: var(--ink-faint); }
.compare-grid .frow:last-child .rowlab,
.compare-grid .frow:last-child .cell { border-bottom: 0; }
.compare-grid .ch.last { border-bottom: 1px solid var(--line); }
.compare-foot { display: grid; grid-template-columns: 1.2fr 1fr 1fr; }
.compare-foot .fc { padding: 24px 28px; border-left: 1px solid var(--line-soft); }
.compare-foot .fc:first-child { border-left: 0; }
.compare-foot .fc .btn { width: 100%; }
.compare-grid .foot { border-bottom: 0 !important; }
.free-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 auto 0; padding: 9px 16px; border-radius: 999px;
  background: var(--gold-100); color: var(--gold-600);
  font-size: 13.5px; font-weight: 700;
}
.price-note { margin-top: 24px; text-align: center; font-size: 13.5px; color: var(--ink-faint); }
@media (max-width: 760px) {
  .compare-grid, .compare-foot { grid-template-columns: 1fr; }
  .compare-grid .cell { justify-content: space-between; }
  .compare-grid .ch.plan-col, .compare-foot .fc { border-left: 0; }
}

/* ── 팔레트 피커 ── */
.pal-picker { margin: 20px 0; }
.pal-picker .lab { font-size: 12px; color: #888; display: block; margin-bottom: 10px; }
.pal-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.pal-btn { border: 2px solid #e5e7eb; border-radius: 8px; padding: 6px; cursor: pointer; background: #fff; display: flex; gap: 4px; transition: border-color .2s; }
.pal-btn i { width: 20px; height: 20px; border-radius: 4px; display: block; }
.pal-btn:hover, .pal-btn.active { border-color: #1c2d4a; }

/* ── 데모 미리보기 ── */
.detail-top .wrap { display: flex; gap: 48px; align-items: flex-start; }
.detail-spec { flex: 1; min-width: 0; }
.demo-preview {
  width: 320px; min-width: 280px; border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.18); flex-shrink: 0;
  font-family: 'Pretendard Variable', sans-serif;
  transition: all .4s ease;
}
.dm-nav {
  background: var(--dm-primary, #1c2d4a);
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; gap: 8px;
  transition: background .4s;
}
.dm-logo { color: #fff; font-weight: 700; font-size: 13px; }
.dm-links { display: flex; gap: 10px; }
.dm-links span { color: rgba(255,255,255,.7); font-size: 10px; }
.dm-cta {
  background: var(--dm-accent, #b9967b);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 5px 10px; border-radius: 4px; white-space: nowrap;
  transition: background .4s;
}
.dm-hero {
  background: var(--dm-primary, #1c2d4a);
  min-height: 180px; display: flex; align-items: center; justify-content: center;
  position: relative; transition: background .4s;
}
.dm-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.3) 0%, transparent 100%);
}
.dm-hero-inner { position: relative; z-index: 1; text-align: center; padding: 24px; }
.dm-eyebrow { color: var(--dm-accent, #b9967b); font-size: 9px; letter-spacing: 2px; margin-bottom: 8px; transition: color .4s; }
.dm-title { color: #fff; font-size: 22px; font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
.dm-sub { color: rgba(255,255,255,.7); font-size: 10px; margin-bottom: 16px; }
.dm-btn {
  background: var(--dm-accent, #b9967b); color: #fff; border: none;
  padding: 8px 18px; border-radius: 6px; font-size: 11px; font-weight: 700; cursor: pointer;
  transition: background .4s;
}
.dm-tabs {
  background: var(--dm-bg, #ffffff); display: flex;
  border-top: 1px solid rgba(0,0,0,.08);
}
.dm-tab {
  flex: 1; text-align: center; padding: 10px 4px; font-size: 10px;
  color: #888; cursor: pointer; transition: color .2s, border-color .2s;
  border-bottom: 2px solid transparent;
}
.dm-tab.active { color: var(--dm-primary, #1c2d4a); border-bottom-color: var(--dm-accent, #b9967b); font-weight: 700; transition: color .4s, border-color .4s; }
.dm-hint { text-align: center; font-size: 11px; color: #aaa; padding: 10px; background: var(--dm-bg, #fff); }

@media (max-width: 900px) {
  .detail-top .wrap { flex-direction: column; }
  .demo-preview { width: 100%; }
}

/* ── Legal Pages ── */
.legal-hero {
  position: relative;
  background: #1c2d4a;
  color: #fff;
  padding: 138px 0 64px;
  overflow: hidden;
}
.legal-hero::before {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  right: -100px; top: -180px;
  background: radial-gradient(circle, rgba(185,150,123,.18), transparent 62%);
  pointer-events: none;
}
.legal-hero > .wrap { position: relative; z-index: 2; }
.legal-hero-eyebrow { font-size: 11px; letter-spacing: 4px; color: #b9967b; font-weight: 700; margin-bottom: 14px; }
.legal-hero h1 { font-size: clamp(28px,4vw,48px); font-weight: 900; color: #fff; line-height: 1.1; }
.legal-hero .legal-date { margin-top: 12px; font-size: 13px; color: rgba(255,255,255,.45); }

.legal-body { padding: 72px 0 100px; background: #fff; }
.legal-body .wrap { max-width: 760px; }
.legal-article { font-size: 15px; line-height: 1.9; color: #374151; }
.legal-article h2 { font-size: 18px; font-weight: 700; color: #1c2d4a; margin: 40px 0 12px; padding-bottom: 8px; border-bottom: 2px solid #e5e7eb; }
.legal-article h2:first-child { margin-top: 0; }
.legal-article p { margin-bottom: 12px; }
.legal-article ul { padding-left: 20px; margin-bottom: 12px; }
.legal-article ul li { margin-bottom: 6px; }
.legal-article .highlight { background: #fef9ec; border-left: 3px solid #b9967b; padding: 12px 16px; border-radius: 0 6px 6px 0; margin: 20px 0; font-size: 14px; color: #92400e; }
.legal-article a { color: #b9967b; text-decoration: underline; }
