:root {
  --ink: #182018;
  --muted: #647064;
  --paper: #f5f4eb;
  --paper-deep: #e8e8db;
  --card: #fffef8;
  --line: #d2d8c9;
  --signal: #d9ff45;
  --green: #215b45;
  --orange: #c95d2a;
  --blue: #2556bf;
  --shadow: 0 20px 60px rgba(24, 32, 24, 0.1);
  color: var(--ink);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--paper);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 90% 5%, rgba(217, 255, 69, 0.45), transparent 24rem),
    linear-gradient(180deg, var(--paper) 0%, #eef0e6 100%);
  color: var(--ink);
}

button, input, textarea { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  transform: translateY(-200%);
  border-radius: 10px;
  background: var(--ink);
  color: var(--card);
  padding: 10px 14px;
}

.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid rgba(24, 32, 24, 0.11); background: rgba(245, 244, 235, 0.78); backdrop-filter: blur(15px); }

.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; text-decoration: none; letter-spacing: -0.04em; }

.brand-mark { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--ink); border-radius: 50%; background: var(--signal); font-size: 0.9rem; }

.header-status, .hero-actions, .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.status-pill { display: inline-flex; align-items: center; min-height: 27px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; color: var(--muted); font-size: 0.76rem; font-weight: 750; letter-spacing: -0.02em; }

.status-pill-safe { border-color: var(--green); background: rgba(217, 255, 69, 0.5); color: #183d30; }

.hero { padding: clamp(56px, 10vw, 126px) 0 64px; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr); align-items: end; gap: clamp(30px, 7vw, 100px); }

.eyebrow, .panel-label { margin: 0 0 12px; color: var(--green); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; }

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

h1 { max-width: 800px; margin-bottom: 22px; font-size: clamp(2.5rem, 6.5vw, 5.4rem); line-height: 0.98; letter-spacing: -0.082em; word-break: keep-all; }

h2 { margin-bottom: 0; font-size: clamp(1.55rem, 3.2vw, 2.5rem); line-height: 1.08; letter-spacing: -0.055em; word-break: keep-all; }

h3 { font-size: 1.12rem; line-height: 1.3; letter-spacing: -0.035em; word-break: keep-all; }

.hero-copy { max-width: 660px; margin-bottom: 28px; color: var(--muted); font-size: 1.03rem; line-height: 1.7; word-break: keep-all; }

.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 14px; padding: 10px 16px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease; }

.button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(24, 32, 24, 0.13); }

.button:focus-visible, input:focus-visible, textarea:focus-visible, .text-button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.button-primary { background: var(--signal); color: var(--ink); }

.button-secondary { background: var(--card); color: var(--ink); }

.safety-panel, .review-panel { border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); padding: 26px; }

.safety-panel strong { display: block; margin-bottom: 10px; font-size: 1.2rem; letter-spacing: -0.04em; }

.safety-panel p, .review-panel p { color: var(--muted); line-height: 1.6; word-break: keep-all; }

dl { display: grid; gap: 0; margin: 22px 0 0; border-top: 1px solid var(--line); }

dl div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 0.86rem; }

dt { color: var(--muted); }

dd { margin: 0; font-weight: 800; }

.section { padding: 42px 0; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }

.section-heading > p { max-width: 390px; margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.55; word-break: keep-all; }

.section-heading.compact { align-items: center; }

.text-button { border: 0; border-bottom: 1px solid currentColor; background: transparent; padding: 4px 0; color: var(--green); font-weight: 800; cursor: pointer; }

.pipeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }

.pipeline li { min-height: 164px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 254, 248, 0.74); padding: 18px; }

.pipeline span { display: block; margin-bottom: 26px; color: var(--green); font-size: 0.75rem; font-weight: 850; }

.pipeline strong { display: block; margin-bottom: 7px; font-size: 1rem; letter-spacing: -0.04em; word-break: keep-all; }

.pipeline p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.5; word-break: keep-all; }

.split-section { border-top: 1px solid var(--line); }

.status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.status-grid article { min-height: 150px; border-radius: 18px; background: var(--ink); color: var(--card); padding: 20px; box-shadow: var(--shadow); }

.status-grid span { color: rgba(255, 254, 248, 0.7); font-size: 0.82rem; }

.status-grid strong { display: block; margin: 14px 0 8px; color: var(--signal); font-size: 2.5rem; line-height: 1; }

.status-grid p { margin: 0; color: rgba(255, 254, 248, 0.72); font-size: 0.82rem; word-break: keep-all; }

.comparison-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.comparison-card, .empty-state { border: 1px solid var(--line); border-radius: 20px; background: var(--card); padding: 20px; box-shadow: 0 12px 35px rgba(24, 32, 24, 0.07); }

.comparison-card h3 { margin: 16px 0 9px; }

.score-line { margin-bottom: 18px; color: var(--orange); font-weight: 800; }

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

.candidate-list li { display: grid; gap: 3px; border-top: 1px solid var(--line); padding-top: 10px; }

.candidate-list strong { font-size: 0.91rem; letter-spacing: -0.03em; overflow-wrap: anywhere; }

.candidate-list span { color: var(--muted); font-size: 0.82rem; }

.empty-state { grid-column: 1 / -1; min-height: 170px; display: grid; align-content: center; }

.empty-state strong { font-size: 1.12rem; letter-spacing: -0.03em; }

.empty-state p { max-width: 500px; margin: 8px 0 0; color: var(--muted); line-height: 1.65; word-break: keep-all; }

.workbench { margin-top: 42px; padding: 44px 0 72px; border-top: 1px solid var(--line); }

.workbench-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr); align-items: start; gap: 18px; }

.draft-form { display: grid; gap: 16px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 254, 248, 0.72); padding: clamp(18px, 3vw, 30px); }

label { display: grid; gap: 7px; color: var(--ink); font-size: 0.86rem; font-weight: 800; }

input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); padding: 12px; font-size: 0.95rem; font-weight: 500; }

textarea { min-height: 220px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.8rem; line-height: 1.55; }

.two-columns { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 12px; }

.review-panel { position: sticky; top: 18px; min-height: 250px; }

.review-panel h3 { margin: 10px 0; font-size: 1.36rem; }

.review-panel .microcopy { margin: 26px 0 0; border-top: 1px solid var(--line); padding-top: 15px; font-size: 0.8rem; }

.site-footer { border-top: 1px solid var(--line); padding: 24px 0 34px; color: var(--muted); font-size: 0.82rem; }

@media (max-width: 920px) {
  .hero-grid, .workbench-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .comparison-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-panel { position: static; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 28px, 1180px); }
  .header-inner, .section-heading { align-items: flex-start; flex-direction: column; }
  .header-inner { justify-content: center; padding: 15px 0; }
  .pipeline, .status-grid, .comparison-grid, .two-columns { grid-template-columns: 1fr; }
  .pipeline li { min-height: auto; }
  .pipeline span { margin-bottom: 14px; }
  .hero { padding-top: 54px; }
  h1 { font-size: clamp(2.35rem, 13vw, 4rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
