:root {
  --ink: #17202a;
  --muted: #667085;
  --line: #d9e2ec;
  --paper: #fbfcfe;
  --surface: #ffffff;
  --navy: #193b59;
  --teal: #0f766e;
  --gold: #b7791f;
  --red: #b42318;
  --green-soft: #ecfdf3;
  --blue-soft: #eef6ff;
  --gold-soft: #fff7e6;
  --shadow: 0 18px 50px rgba(23, 32, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "Pretendard",
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    system-ui,
    sans-serif;
  line-height: 1.55;
}

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

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

input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  padding: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(251, 252, 254, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: white;
  background: var(--navy);
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #334155;
  font-size: 15px;
}

.desktop-nav a:hover {
  color: var(--teal);
}

.header-cta,
.primary-button,
.secondary-button,
.accent-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.header-cta,
.primary-button {
  color: white;
  background: var(--teal);
}

.secondary-button {
  color: var(--navy);
  background: white;
  border-color: var(--line);
}

.accent-button {
  color: white;
  background: var(--gold);
}

.header-cta:hover,
.primary-button:hover,
.secondary-button:hover,
.accent-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(23, 32, 42, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 8vh 5vw 7vh;
  background:
    linear-gradient(120deg, rgba(238, 246, 255, 0.95), rgba(255, 255, 255, 0.7)),
    url("https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1600&q=80") center/cover;
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.25;
}

.hero-text {
  max-width: 620px;
  color: #344054;
  font-size: 19px;
}

.hero-actions,
.preview-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-panel {
  padding: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(217, 226, 236, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.process-list {
  display: grid;
  gap: 22px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
}

.process-list span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  background: var(--navy);
  border-radius: 50%;
  font-weight: 800;
}

.process-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.notice-band {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 22px 5vw;
  color: #592c00;
  background: var(--gold-soft);
  border-block: 1px solid #f7d488;
}

.notice-band p {
  margin-bottom: 0;
}

.workspace-section,
.pricing-section,
.faq-section {
  padding: 86px 5vw;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.builder-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
  gap: 28px;
  align-items: start;
}

.builder-form,
.preview-panel,
.price-card,
.faq-section details,
.modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(23, 32, 42, 0.06);
}

.builder-form {
  padding: 22px;
}

fieldset {
  padding: 0 0 24px;
  margin: 0 0 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

fieldset:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

legend {
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 800;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: #344054;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.preview-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.status-pill {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: #067647;
  background: var(--green-soft);
  border: 1px solid #abefc6;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.document-preview {
  min-height: 520px;
  max-height: 68vh;
  padding: 34px;
  overflow: auto;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  white-space: pre-wrap;
  box-shadow: inset 0 0 0 1px rgba(23, 32, 42, 0.02);
}

.document-preview h4 {
  margin: 0 0 24px;
  text-align: center;
  font-size: 25px;
}

.document-preview p {
  margin-bottom: 14px;
}

.document-preview .doc-meta {
  display: grid;
  gap: 4px;
  margin-bottom: 24px;
}

.preview-actions {
  margin-top: 18px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.price-card {
  padding: 24px;
}

.price-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 30px;
}

.price-card p {
  color: var(--muted);
}

.price-card.featured {
  border-color: var(--teal);
  box-shadow: 0 16px 36px rgba(15, 118, 110, 0.14);
}

.faq-section {
  padding-top: 48px;
}

.faq-section details {
  padding: 20px 24px;
  margin-bottom: 12px;
}

.faq-section summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-section details p {
  margin: 14px 0 0;
  color: var(--muted);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.55);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  padding: 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 24px;
}

.request-summary {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.request-summary div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.request-summary dt {
  color: var(--muted);
  font-weight: 800;
}

.request-summary dd {
  margin: 0;
}

.review-contact-form {
  display: grid;
  gap: 12px;
}

.checkbox-label {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  color: #475467;
  font-size: 14px;
  font-weight: 600;
}

.api-hint {
  display: none;
  gap: 6px;
  margin: 18px 0 0;
  padding: 14px;
  color: #344054;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}

.api-hint strong {
  color: var(--navy);
}

.api-hint span {
  font-family:
    Consolas,
    "SFMono-Regular",
    monospace;
}

.modal-actions {
  position: sticky;
  bottom: -28px;
  z-index: 2;
  padding: 14px 0 0;
  margin-top: 16px;
  background: linear-gradient(rgba(255, 255, 255, 0.86), #fff 28%);
}

.modal-actions .primary-button,
.modal-actions .secondary-button {
  flex: 1 1 180px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  max-width: min(380px, calc(100vw - 48px));
  padding: 14px 16px;
  color: white;
  background: var(--navy);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1060px) {
  .hero,
  .builder-layout {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    position: static;
  }

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

@media (max-width: 720px) {
  .site-header {
    min-height: auto;
    padding: 14px 18px;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 54px 18px 42px;
  }

  h1 {
    font-size: 38px;
  }

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

  .notice-band,
  .workspace-section,
  .pricing-section,
  .faq-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .document-preview {
    padding: 22px;
    max-height: none;
  }

  .modal {
    padding: 22px;
  }

  .modal-actions {
    bottom: -22px;
  }

  .primary-button,
  .secondary-button,
  .accent-button {
    width: 100%;
  }
}

@media print {
  body > *:not(.print-document) {
    display: none !important;
  }

  .print-document {
    display: block !important;
    padding: 40px;
    color: #111827;
    background: white;
    white-space: pre-wrap;
  }
}
