:root {
  color-scheme: light;
  --ink: #161b22;
  --muted: #5b6572;
  --line: #dde1e6;
  --paper: #f6f6f4;
  --panel: #ffffff;
  --mist: #eef1ee;
  --green: #0b5c44;
  --green-2: #1f8f66;
  --blue: #1f3a66;
  --coral: #c85d48;
  --gold: #a9782f;
  --charcoal: #101a2c;
  --shadow: 0 10px 28px rgba(16, 26, 44, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Noto Sans KR", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(220, 229, 223, 0.78);
  background: rgba(247, 246, 241, 0.92);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.top-actions,
.hero-actions,
.trust-strip,
.canvas-toolbar,
.metric-row,
.plan-options,
.payment-topline,
.final-cta,
.site-footer,
.library-header {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--charcoal);
  border-radius: 8px;
}

.nav-links {
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.top-actions {
  gap: 10px;
}

.primary-button,
.secondary-button,
.ghost-button,
.dark-button,
.plan-chip {
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-button {
  min-height: 42px;
  padding: 0 18px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 6px 16px rgba(11, 92, 68, 0.16);
}

.secondary-button,
.ghost-button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--mist);
}

.dark-button {
  min-height: 46px;
  padding: 0 18px;
  color: #fff;
  background: var(--charcoal);
  box-shadow: 0 6px 16px rgba(16, 26, 44, 0.18);
}

.full {
  width: 100%;
}

.large {
  min-height: 50px;
  padding: 0 24px;
}

.primary-button:hover,
.secondary-button:hover,
.dark-button:hover {
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(360px, 0.92fr);
  gap: 32px;
  width: min(1500px, calc(100% - 48px));
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: 32px 0 40px;
  align-items: center;
}

.hero-media {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(16, 26, 44, 0.68));
}

.media-badge {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  background: rgba(16, 26, 44, 0.62);
  backdrop-filter: blur(14px);
}

.media-badge strong {
  font-size: 18px;
}

.media-badge span {
  color: #d5eee3;
  font-weight: 700;
}

.hero-copy {
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  word-break: keep-all;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.006em;
  word-break: keep-all;
}

h3 {
  margin-bottom: 16px;
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1.22;
  letter-spacing: -0.003em;
  word-break: keep-all;
}

.hero-text,
.section-heading p,
.photo-story p,
.calculator-band p,
.payment-section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  gap: 12px;
  margin: 30px 0;
}

.trust-strip {
  flex-wrap: wrap;
  gap: 10px;
}

.trust-strip span {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted);
  font-size: 13px;
}

.trust-strip strong {
  color: var(--ink);
}

.photo-story,
.workspace-grid,
.pricing-section,
.templates-section,
.security-section,
.operations-section,
.payment-section,
.faq-section,
.legal-summary,
.calculator-band,
.final-cta,
.site-footer {
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
}

.photo-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 96px;
}

.photo-story article {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.photo-story article div {
  padding: 32px;
  align-self: center;
}

.workspace-grid,
.pricing-section,
.templates-section,
.security-section,
.operations-section,
.payment-section,
.faq-section,
.calculator-band {
  margin-bottom: 96px;
}

.section-heading {
  max-width: 880px;
  margin-bottom: 28px;
}

.section-heading.compact {
  max-width: 780px;
}

.builder-layout {
  display: grid;
  grid-template-columns: 260px minmax(360px, 1fr) 280px;
  gap: 16px;
}

.block-library,
.editor-canvas,
.insight-panel,
.calculator,
.pricing-card,
.template-card,
.security-list article,
.operations-grid article,
.lead-form,
.payment-widget-card,
.faq-list details,
.legal-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.block-library,
.insight-panel {
  padding: 16px;
}

.library-header {
  justify-content: space-between;
  margin-bottom: 12px;
}

.library-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.block-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  margin-bottom: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  text-align: left;
  font-weight: 900;
}

.block-item span {
  color: var(--green);
}

.block-item.active {
  color: var(--ink);
  border-color: var(--green-2);
  background: #edf8f3;
}

.editor-canvas {
  overflow: hidden;
}

.canvas-toolbar {
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.segmented-control {
  display: inline-flex;
  padding: 4px;
  border-radius: 8px;
  background: var(--mist);
}

.segmented-control button {
  min-width: 74px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.segmented-control button.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 2px 6px rgba(22, 27, 34, 0.08);
}

.live-section {
  min-height: 450px;
  padding: 34px;
  background:
    linear-gradient(90deg, rgba(31, 58, 102, 0.06), transparent 58%),
    #fff;
}

.live-section p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.metric-row {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.metric-row span {
  min-width: 162px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf9;
  color: var(--muted);
}

.metric-row strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
}

.panel-title {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.intent-score {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  margin: 18px 0;
  border-radius: 999px;
  background: conic-gradient(var(--green-2) 84%, #e0e9e3 0);
}

.intent-score strong {
  font-size: 56px;
  line-height: 1;
}

.intent-score span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.activity-list p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 13px;
}

.activity-list span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green-2);
}

.calculator-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1fr);
  gap: 32px;
  align-items: center;
  padding: 40px;
  border-radius: 8px;
  color: #fff;
  background: var(--charcoal);
}

.calculator-band .eyebrow,
.calculator-band p {
  color: #aee9d0;
}

.calculator {
  display: grid;
  gap: 18px;
  padding: 22px;
  color: var(--ink);
}

.range-group {
  display: grid;
  gap: 10px;
}

.range-group label {
  font-weight: 900;
}

.range-group span,
.quote-summary p,
.quote-summary span {
  color: var(--muted);
  font-weight: 800;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}

.plan-options {
  flex-wrap: wrap;
  gap: 8px;
}

.plan-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.plan-chip.active {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.quote-summary {
  padding: 16px;
  border-radius: 8px;
  background: #f4f8f6;
}

.quote-summary strong {
  display: block;
  margin-bottom: 4px;
  font-size: 44px;
}

.pricing-grid,
.operations-grid {
  display: grid;
  gap: 16px;
}

.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
}

.pricing-card {
  display: grid;
  gap: 12px;
  min-height: 320px;
  padding: 24px;
}

.pricing-card.featured {
  border-color: rgba(31, 58, 102, 0.3);
  background:
    linear-gradient(180deg, rgba(31, 58, 102, 0.06), transparent 48%),
    #fff;
  box-shadow: 0 8px 20px rgba(31, 58, 102, 0.1);
}

.pricing-card p,
.pricing-card span {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.pricing-card p {
  color: var(--blue);
  font-size: 13px;
  text-transform: uppercase;
}

.pricing-card strong {
  font-size: 28px;
  line-height: 1.15;
}

.pricing-card ul {
  display: grid;
  gap: 10px;
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.template-card {
  overflow: hidden;
}

.template-card img {
  height: 170px;
}

.template-card p,
.template-card strong,
.template-card small {
  display: block;
  margin-left: 18px;
  margin-right: 18px;
}

.template-card p {
  margin-top: 18px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.template-card strong {
  margin-bottom: 10px;
  font-size: 23px;
  line-height: 1.2;
}

.template-card small {
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.security-section {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(420px, 1fr);
  gap: 32px;
  align-items: center;
}

.security-photo {
  min-height: 600px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.security-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.security-list article {
  min-height: 170px;
  padding: 18px;
}

.security-list strong {
  font-size: 20px;
}

.security-list p {
  color: var(--muted);
  line-height: 1.65;
}

.operations-grid {
  grid-template-columns: repeat(4, 1fr);
}

.operations-grid article {
  min-height: 220px;
  padding: 24px;
}

.operations-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 22px;
  border-radius: 8px;
  color: #fff;
  background: var(--charcoal);
  font-size: 13px;
  font-weight: 900;
}

.operations-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.operations-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.payment-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.65fr) minmax(420px, 1fr);
  gap: 16px;
}

.lead-form,
.payment-widget-card {
  padding: 24px;
}

.lead-form {
  display: grid;
  gap: 16px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.lead-form select {
  appearance: none;
}

.lead-form textarea {
  min-height: 106px;
  padding-top: 12px;
  resize: vertical;
}

.consent-row {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.consent-row input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 2px;
  accent-color: var(--green);
}

.form-note,
.payment-disclaimer {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.form-note[data-tone="success"] {
  color: var(--green);
  font-weight: 800;
}

.form-note[data-tone="error"] {
  color: var(--coral);
  font-weight: 800;
}

.payment-topline {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.payment-topline p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.payment-topline strong {
  font-size: 34px;
}

.payment-topline small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.payment-topline span {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green);
  background: #e5f5ee;
  font-size: 12px;
  font-weight: 900;
}

.payment-box {
  min-height: 72px;
  margin-bottom: 12px;
  border-radius: 8px;
}

.amount-panel {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 8px;
  background: #f4f8f6;
}

.amount-panel p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.amount-panel strong {
  font-size: 38px;
  line-height: 1;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 16px 24px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.faq-list p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.legal-summary {
  display: grid;
  grid-template-columns: minmax(280px, 0.45fr) 1fr;
  gap: 24px;
  margin-bottom: 40px;
  padding: 32px;
}

.legal-summary dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0;
}

.legal-summary div {
  min-width: 0;
}

.legal-summary dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.legal-summary dd {
  margin: 6px 0 0;
  font-weight: 800;
  line-height: 1.45;
}

.final-cta {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.final-cta h2 {
  margin-bottom: 0;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 38px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 16px;
  font-weight: 800;
}

.policy-page {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0;
}

.policy-page h1 {
  font-size: clamp(38px, 5vw, 64px);
}

.policy-card {
  margin-bottom: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.policy-card p,
.policy-card li,
.policy-card dd {
  color: var(--muted);
  line-height: 1.75;
}

.policy-card dt {
  margin-top: 14px;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .hero,
  .photo-story,
  .builder-layout,
  .calculator-band,
  .security-section,
  .payment-grid,
  .legal-summary {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media,
  .security-photo {
    min-height: 520px;
  }

  .template-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid,
  .operations-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    position: static;
    flex-wrap: wrap;
    padding: 14px 18px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .top-actions .ghost-button {
    display: none;
  }

  .hero,
  .photo-story,
  .workspace-grid,
  .pricing-section,
  .templates-section,
  .security-section,
  .operations-section,
  .payment-section,
  .faq-section,
  .legal-summary,
  .calculator-band,
  .final-cta,
  .site-footer,
  .policy-page {
    width: min(100% - 28px, 1500px);
  }

  .hero-media,
  .security-photo {
    min-height: 410px;
  }

  .media-badge,
  .hero-actions,
  .canvas-toolbar,
  .final-cta,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .photo-story article,
  .pricing-grid,
  .security-list,
  .operations-grid,
  .template-grid,
  .legal-summary dl {
    grid-template-columns: 1fr;
  }

  .calculator-band {
    padding: 24px;
  }

  .live-section {
    padding: 22px;
  }

  h1 {
    font-size: clamp(40px, 13vw, 58px);
  }
}

/* ============ builder.html 전용 (기존 규칙은 건드리지 않고 추가만) ============ */

.builder-body {
  background: var(--paper);
}

.builder-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  margin: 0 16px;
}

.builder-title-input {
  flex: 1;
  min-width: 0;
  max-width: 420px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
  font-size: 16px;
}

.builder-title-input:hover,
.builder-title-input:focus {
  border-color: var(--line);
  background: #fff;
  outline: none;
}

.builder-save-status {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.builder-save-status[data-tone="saving"] {
  color: var(--blue);
  background: #e7ebf1;
}

.builder-save-status[data-tone="saved"] {
  color: var(--green);
  background: #e5f5ee;
}

.builder-save-status[data-tone="error"] {
  color: var(--coral);
  background: #fbeae5;
}

.builder-save-status[data-tone="offline"] {
  color: var(--gold);
  background: #faf1e0;
}

.builder-usage-badge {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.builder-shell {
  display: grid;
  grid-template-columns: 260px minmax(420px, 1fr) 300px;
  gap: 16px;
  width: min(1600px, calc(100% - 48px));
  margin: 24px auto 60px;
  align-items: start;
}

.builder-palette {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.builder-palette-list {
  display: grid;
  gap: 8px;
}

.builder-palette-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  font-weight: 800;
  font-size: 13px;
}

.builder-palette-btn:hover {
  border-color: var(--green-2);
  background: #edf8f3;
}

.builder-palette-btn .bp-emoji {
  font-size: 16px;
}

.builder-canvas {
  min-height: 70vh;
}

.builder-canvas-meta {
  color: var(--muted);
  font-size: 12px;
}

.builder-canvas-body {
  display: grid;
  gap: 0;
  padding: 16px;
  background: #fff;
}

.bp-block-wrap {
  position: relative;
  margin-bottom: 14px;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: border-color 120ms ease;
}

.bp-block-wrap:hover {
  border-color: var(--line);
}

.bp-block-wrap.selected {
  border-color: var(--green-2);
}

.bp-block-toolbar {
  position: absolute;
  top: -14px;
  right: 10px;
  z-index: 2;
  display: none;
  gap: 6px;
}

.bp-block-wrap:hover .bp-block-toolbar,
.bp-block-wrap.selected .bp-block-toolbar {
  display: flex;
}

.bp-block-toolbar button {
  min-width: 26px;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(22, 27, 34, 0.1);
}

.bp-block-toolbar button:hover {
  color: var(--ink);
  border-color: var(--green-2);
}

.bp-block-body {
  pointer-events: none;
  padding: 4px;
}

.bp-block-body * {
  pointer-events: none;
}

.bp-empty-canvas {
  display: grid;
  place-items: center;
  min-height: 320px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  padding: 24px;
}

.builder-inspector {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.builder-inspector-body {
  display: grid;
  gap: 12px;
}

.bp-field {
  display: grid;
  gap: 6px;
}

.bp-field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.bp-field input[type="text"],
.bp-field input[type="url"],
.bp-field input[type="number"],
.bp-field input[type="date"],
.bp-field select,
.bp-field textarea {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

.bp-field textarea {
  min-height: 72px;
  padding-top: 8px;
  resize: vertical;
}

.bp-repeat-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf9;
}

.bp-repeat-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.bp-repeat-item-head strong {
  font-size: 12px;
  color: var(--muted);
}

.bp-mini-btn {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.bp-mini-btn:hover {
  color: var(--ink);
  border-color: var(--green-2);
}

.bp-inspector-section-title {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.builder-publish-card {
  max-width: 440px;
  width: 100%;
}

@media (max-width: 1180px) {
  .builder-shell {
    grid-template-columns: 1fr;
  }

  .builder-palette,
  .builder-inspector {
    position: static;
    max-height: none;
  }
}

@media (max-width: 760px) {
  .builder-titlebar {
    margin: 0 8px;
  }

  .builder-title-input {
    max-width: none;
  }

  .builder-usage-badge {
    display: none;
  }
}

/* ==== dashboard.html 전용 ==== */
.bp-dash-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.bp-dash-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.bp-dash-card-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.bp-dash-card-value {
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
}

.bp-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: var(--mist);
  color: var(--muted);
}

.bp-status-badge[data-tone="success"] {
  background: #e4f6ee;
  color: var(--green);
}

@media (max-width: 760px) {
  .bp-dash-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============ bzint- : 랜딩 통합 퍼널(사업 찾기 → 아이디어 → 제안서 빌더) 카드 — Agent A append ============ */
.bzint-funnel {
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto 96px;
}

.bzint-funnel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bzint-funnel-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.bzint-funnel-step {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bzint-funnel-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
}

.bzint-funnel-card p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.bzint-funnel-card .secondary-button {
  margin-top: auto;
}

@media (max-width: 900px) {
  .bzint-funnel-grid {
    grid-template-columns: 1fr;
  }
}

/* ==== 인터랙션 디자인시스템 (클릭가능 vs 정보전용) — 전 페이지 공용 표준 클래스 ====
   다른 페이지(search/idea/templates/builder/dashboard/contacts/admin)에서도 이 두 클래스를
   그대로 재사용합니다. 이름을 바꾸면 페이지 간 기준이 어긋나니 그대로 쓰세요.
   - .bz-clickable : 실제로 클릭하면 이동/동작하는 요소(<a href>, 폼 제출, 진짜 JS 핸들러가 붙은 토글 등)
   - .bz-static    : 클릭해도 아무 일도 일어나지 않는 정보 표시 전용 요소(통계, 배지, 설명 패널, 목업 화면 등) */

.bz-clickable {
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.bz-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 27, 34, 0.1);
  border-color: var(--green-2);
}

.bz-clickable:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(22, 27, 34, 0.1);
}

.bz-clickable:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* 정보 전용 박스. !important는 의도적입니다 — 이 사이트 곳곳의 카드류가 이미 자체 border/background
   규칙(동일하거나 더 높은 specificity)을 갖고 있어서, 어떤 컴포넌트에 .bz-static을 붙이든 항상
   "이건 정보성"이라는 점선 테두리 신호가 이기도록 강제합니다. */
.bz-static {
  cursor: default !important;
  background: var(--mist) !important;
  border: 1px dashed var(--line) !important;
}

/* 클릭은 되지만 실제 페이지 이동 없이 화면 안 미리보기만 바뀌는 요소(빌더 목업의 블록 버튼 등)에
   붙이는 보조 배지. bz-clickable과 함께 사용해 "이동 아님"을 명시합니다. */
.bz-preview-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: middle;
}

@media (prefers-reduced-motion: reduce) {
  .bz-clickable {
    transition: none;
  }

  .bz-clickable:hover,
  .bz-clickable:active {
    transform: none;
  }
}

/* ==== index.html 히어로 축소 + 3대 진입 카드(bzint-funnel) 강조 ====
   운영자 요청: 마케팅 데모처럼 히어로가 화면을 다 차지하지 않게 줄이고, 실사용 진입(사업 찾기/
   아이디어 스튜디오/제안서 빌더)을 우선 노출한다. */
.hero {
  grid-template-columns: minmax(360px, 1fr) minmax(280px, 0.8fr);
  gap: 24px;
  min-height: auto;
  padding: 24px 0 28px;
}

.hero-media {
  min-height: 300px;
}

.hero h1 {
  margin-bottom: 12px;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.1;
}

.hero-text {
  font-size: 16px;
  line-height: 1.6;
}

.hero-actions {
  margin: 16px 0;
}

.trust-strip {
  margin-top: 2px;
}

.trust-strip span {
  padding: 9px 11px;
  font-size: 12px;
}

.bzint-funnel {
  margin-bottom: 72px;
}

.bzint-funnel-card {
  padding: 32px 24px;
}

.bzint-funnel-card h3 {
  font-size: 24px;
}

@media (max-width: 1180px) {
  .hero-media {
    min-height: 240px;
  }
}

@media (max-width: 760px) {
  .hero-media {
    min-height: 220px;
  }
}

/* ============ 11.legal-safety 위젯 연동 (2026-07-21) ============
   이 사이트는 이미 자체 footer(.site-footer)를 갖추고 있어, legal-widget.js가 body 끝에
   자동 주입하는 #ls-footer(중복 법적 고지 푸터)는 화면에서 숨긴다.
   쿠키 동의 배너(#ls-banner)는 이 사이트에 없던 기능이므로 그대로 노출한다. */
.builder-body #ls-footer,
#ls-footer {
  display: none;
}
