:root {
  --navy: #002366;
  --navy-2: #0c3d91;
  --navy-pale: #e8eef8;
  --gold: #e8a020;
  --ink: #172033;
  --muted: #5f6b7d;
  --line: #dce4ef;
  --bg: #f6f8fc;
  --white: #fff;
  --green: #16734b;
  --red: #b42318;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, .button { cursor: pointer; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.site-header-inner, .content-width {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
.site-header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  color: var(--navy);
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--navy);
  font-size: 12px;
}
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.site-nav a:hover { color: var(--navy); background: var(--navy-pale); }
.site-nav .button { color: #fff; background: var(--navy); }
.site-nav .button:hover { color: #fff; background: var(--navy-2); }
.hero {
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 80% 12%, rgba(232,160,32,.32), transparent 28%),
    linear-gradient(135deg, #00194b, #0b3a8a 65%, #1555a8);
}
.hero-inner {
  min-height: 540px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 56px;
  padding: 80px 0;
}
.eyebrow {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}
.hero h1 {
  max-width: 680px;
  margin: 18px 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.2;
  letter-spacing: -.06em;
}
.hero h1 em { color: #ffd978; font-style: normal; }
.hero p { max-width: 610px; margin: 0; color: #e2eafb; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 800;
}
.button.primary { color: var(--navy); background: #fff; }
.button.primary:hover { background: #f8f3e6; }
.button.outline { color: #fff; border-color: rgba(255,255,255,.55); background: transparent; }
.button.outline:hover { background: rgba(255,255,255,.12); }
.hero-note { margin-top: 16px !important; color: #bccbea !important; font-size: 13px !important; }
.hero-panel {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 22px;
  background: rgba(255,255,255,.1);
  box-shadow: 0 24px 70px rgba(0,0,0,.18);
}
.hero-panel-label { color: #cbd8ef; font-size: 13px; font-weight: 700; }
.hero-price { margin: 8px 0 2px; font-size: 37px; font-weight: 900; letter-spacing: -.06em; }
.hero-price small { font-size: 15px; font-weight: 700; letter-spacing: 0; }
.hero-panel hr { margin: 18px 0; border: 0; border-top: 1px solid rgba(255,255,255,.2); }
.hero-panel ul { padding: 0; margin: 0; list-style: none; color: #e8eef9; }
.hero-panel li { display: flex; gap: 9px; margin: 9px 0; font-size: 14px; }
.hero-panel li::before { content: "✓"; color: #ffd978; font-weight: 900; }
.section { padding: 88px 0; }
.section.alt { background: #fff; }
.section-heading { max-width: 690px; margin-bottom: 36px; }
.section-heading h2 { margin: 8px 0 10px; color: var(--navy); font-size: clamp(27px, 4vw, 40px); line-height: 1.25; letter-spacing: -.06em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 16px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(28,52,90,.05);
}
.card h3 { margin: 13px 0 7px; color: var(--navy); font-size: 19px; line-height: 1.35; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--navy);
  background: var(--navy-pale);
  font-size: 19px;
}
.pricing {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(290px, .95fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  padding: 30px;
  border: 1px solid #c9d7ef;
  border-radius: 18px;
  background: linear-gradient(145deg, #f8fbff, #eef3fb);
}
.price-card h3 { margin: 0; color: var(--navy); font-size: 21px; }
.price-total { margin: 17px 0 3px; color: var(--navy); font-size: 42px; font-weight: 900; letter-spacing: -.06em; }
.price-total small { font-size: 16px; letter-spacing: 0; }
.price-breakdown { color: var(--muted); font-size: 14px; }
.price-list { display: grid; gap: 10px; padding: 0; margin: 22px 0 0; list-style: none; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 15px; }
.price-list li::before { content: "✓"; color: var(--green); font-weight: 900; }
.price-aside {
  padding: 26px;
  border-radius: 18px;
  color: #fff;
  background: var(--navy);
}
.price-aside h3 { margin: 0 0 9px; font-size: 20px; }
.price-aside p { margin: 0; color: #d8e2f4; font-size: 14px; }
.price-aside .muted-box { margin-top: 19px; padding: 14px; border: 1px solid rgba(255,255,255,.19); border-radius: 10px; color: #e1e8f4; font-size: 13px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; counter-reset: step; }
.step { position: relative; padding: 22px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.step-num { color: var(--gold); font-size: 13px; font-weight: 900; letter-spacing: .06em; }
.step h3 { margin: 8px 0 6px; color: var(--navy); font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 13px; }
.cta-section { padding: 64px 0; color: #fff; background: linear-gradient(135deg, #062b70, #002366); }
.cta-section h2 { margin: 0 0 9px; font-size: 31px; letter-spacing: -.05em; }
.cta-section p { margin: 0; color: #d9e4f8; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer { padding: 30px 0; color: #7a879b; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.footer a { color: var(--navy); font-weight: 700; text-decoration: none; }
.form-page { padding: 42px 0 70px; }
.form-shell { width: min(780px, calc(100% - 40px)); margin: 0 auto; }
.form-shell-wide { width: min(1360px, calc(100% - 40px)); }
.apply-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(360px, 1fr); align-items: start; gap: 22px; }
.apply-form-column { min-width: 0; }
.live-preview-panel { position: sticky; top: 88px; min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: #e9edf3; box-shadow: 0 8px 24px rgba(28,52,90,.08); }
.live-preview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.live-preview-heading h2 { margin: 4px 0 0; color: var(--navy); font-size: 20px; line-height: 1.25; letter-spacing: -.05em; }
.live-preview-status { flex: 0 0 auto; margin-top: 3px; color: var(--green); font-size: 11px; font-weight: 800; }
.live-preview-help { margin: 10px 0 12px; color: var(--muted); font-size: 12px; line-height: 1.55; }
#applyPreviewFrame { display: block; width: 100%; height: min(860px, 76vh); min-height: 620px; border: 1px solid #d3d9e3; border-radius: 10px; background: #f8f9fa; }
.form-head { margin-bottom: 22px; }
.form-head h1 { margin: 9px 0; color: var(--navy); font-size: 34px; line-height: 1.25; letter-spacing: -.06em; }
.form-head p { margin: 0; color: var(--muted); }
.notice {
  padding: 14px 16px;
  border: 1px solid #f4d891;
  border-radius: 10px;
  color: #79580a;
  background: #fff9e8;
  font-size: 14px;
}
.error-list { margin: 14px 0; padding: 13px 17px; border-radius: 10px; color: #8b1e16; background: #fff1f0; }
.form-card { margin-top: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.form-card h2 { margin: 0 0 4px; color: var(--navy); font-size: 20px; }
.form-card > p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-top: 14px; }
.field label { display: block; margin-bottom: 6px; color: var(--ink); font-size: 14px; font-weight: 800; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #cdd7e5;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid rgba(0,35,102,.12); border-color: var(--navy); }
.hint { margin-top: 4px; color: var(--muted); font-size: 12px; }
.staff-row { position: relative; margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcff; }
.staff-row:first-of-type { margin-top: 0; }
.staff-row h3 { margin: 0 0 4px; color: var(--navy); font-size: 15px; }
.staff-remove { float: right; color: var(--red); border: 0; background: transparent; font-size: 12px; font-weight: 800; }
.staff-add { margin-top: 13px; color: var(--navy); border: 1px dashed #91a7c8; background: #f7faff; }
.listing-row { position: relative; margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcff; }
.listing-row:first-of-type { margin-top: 0; }
.listing-row h3 { margin: 0 0 4px; color: var(--navy); font-size: 15px; }
.listing-remove { float: right; color: var(--red); border: 0; background: transparent; font-size: 12px; font-weight: 800; }
.check-line { display: flex; align-items: flex-start; gap: 9px; margin-top: 17px; color: var(--muted); font-size: 13px; }
.check-line input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.form-actions .button.primary { color: #fff; background: var(--navy); }
.form-actions .button.primary:hover { background: var(--navy-2); }
.form-actions .button.secondary { color: var(--navy); border-color: var(--line); background: #fff; }
.preview-page { min-height: 100vh; background: #f2f4f8; }
.preview-bar { color: #e5edf9; background: var(--navy); }
.preview-bar-inner { width: min(1120px, calc(100% - 40px)); min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 auto; }
.preview-bar strong { color: #fff; }
.preview-bar small { display: block; color: #b9c9e4; font-size: 11px; }
.preview-nav { display: flex; gap: 7px; }
.preview-nav .save-state { min-height: 0; margin: 0; color: #b9d6bc; white-space: nowrap; }
.preview-nav a, .preview-nav button { min-height: 38px; display: inline-flex; align-items: center; padding: 7px 11px; border: 1px solid rgba(255,255,255,.3); border-radius: 7px; color: #fff; background: transparent; text-decoration: none; font-size: 12px; font-weight: 800; }
.preview-nav button { cursor: pointer; }
.preview-main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 32px 0 60px; }
.final-customer-preview { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #e9edf3; box-shadow: 0 8px 24px rgba(28,52,90,.08); }
.final-preview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.final-preview-heading h2 { margin: 4px 0 0; color: var(--navy); font-size: 22px; line-height: 1.25; letter-spacing: -.05em; }
.final-customer-preview > p { margin: 9px 0 12px; color: var(--muted); font-size: 13px; }
.final-preview-status { color: var(--green); font-size: 12px; font-weight: 800; }
#finalPreviewFrame { display: block; width: min(620px, 100%); height: 980px; margin: 0 auto; border: 1px solid #d3d9e3; border-radius: 10px; background: #f8f9fa; }
.tenant-hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 25px; align-items: stretch; padding: 30px; border-radius: 19px; color: #fff; background: linear-gradient(135deg, #972d35, #b44b43); }
.tenant-hero h1 { margin: 8px 0; font-size: 35px; line-height: 1.2; letter-spacing: -.06em; }
.tenant-hero p { margin: 0; color: #ffe8e5; }
.tenant-contact { align-self: center; padding: 18px; border: 1px solid rgba(255,255,255,.25); border-radius: 13px; background: rgba(255,255,255,.12); }
.tenant-contact strong { display: block; margin-bottom: 9px; font-size: 18px; }
.tenant-contact div { color: #ffe8e5; font-size: 13px; overflow-wrap: anywhere; }
.staff-switcher { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.staff-switcher button { min-height: 42px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #fff; font-weight: 800; }
.staff-switcher button.active { color: #fff; border-color: #a43e3c; background: #a43e3c; }
.preview-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(250px, .7fr); gap: 17px; }
.preview-card { padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.preview-card h2 { margin: 0 0 5px; color: var(--navy); font-size: 21px; }
.preview-card > p { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.listing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.listing { padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcff; }
.listing h3 { margin: 0 0 6px; color: var(--ink); font-size: 16px; }
.listing .listing-price { color: #a43e3c; font-size: 18px; font-weight: 900; }
.listing small { display: block; margin-top: 5px; color: var(--muted); }
.empty-list { padding: 28px 15px; border: 1px dashed #b6c3d6; border-radius: 10px; color: var(--muted); text-align: center; font-size: 14px; }
.profile-card { display: flex; gap: 13px; align-items: flex-start; }
.profile-bubble { width: 54px; height: 54px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: #b44b43; font-size: 20px; font-weight: 900; }
.profile-card h3 { margin: 0 0 2px; font-size: 17px; }
.profile-card p { margin: 0; color: var(--muted); font-size: 13px; }
.profile-card .profile-detail { margin-top: 10px; color: var(--ink); font-size: 13px; }
.editor { margin-top: 17px; }
.editor summary { cursor: pointer; color: var(--navy); font-weight: 900; }
.editor-form { display: grid; gap: 11px; margin-top: 15px; }
.editor-form .button.primary { justify-self: start; color: #fff; background: var(--navy); }
.save-state { min-height: 20px; margin-top: 8px; color: var(--green); font-size: 12px; }
.payment-note { margin-top: 17px; padding: 15px; border: 1px solid #f3d491; border-radius: 10px; color: #73520c; background: #fff9e8; font-size: 13px; }
.payment-note strong { display: block; margin-bottom: 4px; color: #644500; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 800px) {
  .hero-inner, .pricing, .tenant-hero, .preview-grid, .apply-layout { grid-template-columns: 1fr; }
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .tenant-contact { max-width: 430px; }
  .live-preview-panel { position: static; }
  #applyPreviewFrame { height: 760px; }
  #finalPreviewFrame { height: 880px; }
}
@media (max-width: 620px) {
  .site-header-inner, .content-width, .form-shell, .form-shell-wide, .preview-bar-inner, .preview-main { width: min(100% - 28px, 1120px); }
  .site-nav a:not(.button) { display: none; }
  .hero-inner { min-height: 0; padding: 58px 0; gap: 30px; }
  .hero p { font-size: 16px; }
  .section { padding: 60px 0; }
  .cards, .steps, .field-grid, .listing-grid { grid-template-columns: 1fr; }
  .form-page { padding-top: 28px; }
  .form-card { padding: 18px; }
  .form-head h1 { font-size: 29px; }
  .footer-inner { display: block; }
  .footer-inner > * + * { margin-top: 9px; }
  .tenant-hero { padding: 22px; }
  .tenant-hero h1 { font-size: 29px; }
  .preview-bar-inner { flex-wrap: wrap; padding: 10px 0; }
  .preview-main { padding-top: 20px; }
}
#addStaff[hidden] { display: none !important; }