:root {
  --ink: #15181c;
  --ink-2: #4a5158;
  --line: #e3e6e9;
  --bg: #fafbfb;
  --card: #fff;
  --accent: #1f6f4a;
  --accent-2: #e9f4ee;
  --warn: #a3530d;
  --warn-2: #fdf1e4;
  --bad: #b3261e;
  --bad-2: #fdeceb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.66 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  word-break: keep-all;
}

.wrap { width: min(760px, 100% - 32px); margin: 0 auto; }

.skip { position: absolute; left: -9999px; }

.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 9; }

header.site { background: #fff; border-bottom: 1px solid var(--line); }

header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 0 10px; }

.brand { font-weight: 800; font-size: 17px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }

nav.site { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }

nav.site::-webkit-scrollbar { display: none; }

nav.site a { padding: 6px 10px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 14px; white-space: nowrap; }

nav.site a[aria-current="page"] { background: var(--accent-2); color: var(--accent); font-weight: 700; }

main { padding: 22px 0 46px; }

h1 { font-size: clamp(25px, 6.3vw, 33px); line-height: 1.28; letter-spacing: -0.025em; margin: 0 0 12px; }

h2 { font-size: 20px; letter-spacing: -0.015em; margin: 34px 0 12px; }

h3 { font-size: 17px; margin: 22px 0 8px; }

p { margin: 0 0 12px; }

.lead { font-size: 17px; color: var(--ink-2); }

.muted { color: var(--ink-2); font-size: 13.5px; }

.accent { color: var(--accent); }

a { color: var(--accent); }

.crumb { font-size: 13px; color: var(--ink-2); margin: 0 0 10px; }

.crumb a { color: var(--ink-2); }

section { margin-top: 28px; }

.hero .eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-2);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
}

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }

.card.tool { border-color: #cfe3d8; box-shadow: 0 10px 28px -20px rgba(31, 111, 74, 0.55); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.field { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }

.field select,
.field input {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 10px 11px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.field input[type="number"]::-webkit-inner-spin-button,
.field input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.field input[type="number"] { appearance: textfield; }

.field select:focus, .field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.check { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }

.result { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }

.rcell { background: var(--accent-2); border-radius: 12px; padding: 12px; }

.rcell b { display: block; font-size: 21px; letter-spacing: -0.02em; }

.rcell span { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }

.rcell.wide { grid-column: 1 / -1; }

.rcell.warn { background: var(--warn-2); }

.rcell.warn b { color: var(--warn); }

.rcell.bad { background: var(--bad-2); }

.rcell.bad b { color: var(--bad); }

.badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--accent-2); color: var(--accent); }

.badge.warn { background: var(--warn-2); color: var(--warn); }

.badge.bad { background: var(--bad-2); color: var(--bad); }

.tablewrap { overflow-x: auto; }

table.t { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 14px; }

table.t th, table.t td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); }

table.t th { background: #f5f7f6; font-size: 12.5px; color: var(--ink-2); font-weight: 700; }

table.t tr:last-child td { border-bottom: 0; }

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

.pcard { display: block; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }

.pcard b { display: block; font-size: 15.5px; margin-bottom: 4px; }

.pcard span { font-size: 13px; color: var(--ink-2); }

details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 10px; }

details summary { cursor: pointer; font-weight: 700; font-size: 15.5px; }

details div { margin-top: 8px; font-size: 15px; color: var(--ink-2); }

.btn { display: inline-block; margin-top: 8px; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none; font-size: 14.5px; font-weight: 700; }

code { background: #f1f3f4; border-radius: 5px; padding: 1px 5px; font-size: 0.92em; }

ol, ul { padding-left: 20px; }

ol li, ul li { margin-bottom: 6px; }

footer.site { border-top: 1px solid var(--line); padding: 22px 0 40px; font-size: 13px; color: var(--ink-2); }

footer.site a { color: var(--ink-2); }

@media (max-width: 560px) {
  .grid, .cards, .result { grid-template-columns: 1fr; }
  table.t th, table.t td { padding: 8px; font-size: 13.5px; }
}

.items { margin: 14px 0 6px; }

.qty-row {
  display: grid;
  grid-template-columns: 1fr 84px;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.qty-name { color: var(--ink); }

.qty-m3, .qty-hint { color: var(--ink-2); font-size: 12px; margin-left: 6px; }

.qty-row input,
.qty-row select {
  width: 84px;
  padding: 7px 9px;
  font: inherit;
  font-size: 14px;
  text-align: right;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qty-row select { width: 100%; text-align: left; }

.tabs { display: flex; gap: 6px; margin: 4px 0 14px; flex-wrap: wrap; }

.tabs button {
  font: inherit;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
}

.tabs button.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.panel[hidden] { display: none; }

.tablewide { width: 100%; }

.bars { display: grid; gap: 8px; margin: 12px 0; }

.bar-row { display: grid; grid-template-columns: 92px 1fr 76px; align-items: center; gap: 8px; font-size: 13.5px; }

.bar-track { background: #eef1f3; border-radius: 6px; height: 14px; overflow: hidden; }

.bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 6px; }

.bar-value { text-align: right; font-weight: 700; }

.legend { font-size: 12.5px; color: var(--ink-2); }

@media (max-width: 420px) {
  .qty-row { font-size: 13.5px; }
  .bar-row { grid-template-columns: 78px 1fr 68px; }
}

[hidden] { display: none !important; }

/* SaaS landing patterns: split hero + product card, stat strip, step flow, feature grid, price card, CTA band */

.saas-hero {
  display: grid;
  gap: 30px;
  padding: 8px 0 4px;
}

.saas-hero .copy h1 { margin-bottom: 10px; }

.saas-hero .cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.saas-hero .cta-row .btn { margin-top: 0; }

.saas-hero .fineprint { margin: 12px 0 0; font-size: 12.5px; color: #7b867f; }

.product-card {
  background: #fff;
  border: 1px solid #e6e3da;
  border-radius: 20px;
  box-shadow: 0 30px 60px -40px rgba(16, 26, 22, 0.55), 0 2px 6px rgba(16, 26, 22, 0.04);
  overflow: hidden;
}

.product-card .pc-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid #eeece4;
  background: #faf9f4;
}

.product-card .pc-dot { width: 9px; height: 9px; border-radius: 50%; background: #dcd8cc; }

.product-card .pc-title { margin-left: 8px; font-size: 12px; color: #8a938c; }

.product-card .pc-body { padding: 18px; display: grid; gap: 10px; }

.pc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid #eeece4;
  border-radius: 12px;
  background: #fcfcfa;
  font-size: 14px;
}

.pc-row b { font-size: 14.5px; }

.pc-row .pill { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--accent-2, #e9f1ec); color: var(--accent, #17603c); }

.pc-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 15px;
  border-radius: 14px;
  background: #101a2b;
  color: #fff;
}

.pc-total span { font-size: 12px; opacity: 0.7; }

.pc-total b { font-size: 20px; letter-spacing: -0.02em; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.stat-strip li {
  margin: 0;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #eae7de;
  border-radius: 16px;
}

.stat-strip b { display: block; font-size: 22px; letter-spacing: -0.03em; }

.stat-strip span { font-size: 12.5px; color: #747f78; }

.step-flow { display: grid; gap: 12px; margin-top: 8px; counter-reset: flow; }

.step-flow .step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 15px 16px;
  background: #fff;
  border: 1px solid #eae7de;
  border-radius: 16px;
}

.step-flow .step::before {
  counter-increment: flow;
  content: counter(flow);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-2, #e9f1ec);
  color: var(--accent, #17603c);
  font-weight: 800;
  font-size: 13px;
}

.step-flow .step b { display: block; font-size: 15px; margin-bottom: 2px; }

.step-flow .step p { margin: 0; font-size: 13.5px; color: #6a756e; line-height: 1.6; }

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

.feature {
  padding: 18px;
  background: #fff;
  border: 1px solid #eae7de;
  border-radius: 16px;
}

.feature .fi {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--accent-2, #e9f1ec);
  color: var(--accent, #17603c);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
}

.feature b { display: block; font-size: 15px; margin-bottom: 4px; }

.feature p { margin: 0; font-size: 13.5px; color: #6a756e; line-height: 1.62; }

.price-card {
  background: #101a2b;
  color: #fff;
  border-radius: 20px;
  padding: 26px;
  display: grid;
  gap: 14px;
}

.price-card .plabel { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.65; }

.price-card .pamount { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }

.price-card .pamount small { font-size: 13px; font-weight: 600; opacity: 0.7; margin-left: 6px; }

.price-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }

.price-card li { margin: 0; font-size: 13.5px; opacity: 0.85; padding-left: 18px; position: relative; }

.price-card li::before { content: "✓"; position: absolute; left: 0; opacity: 0.8; }

.price-card .btn { background: #fff; color: #101a2b; border-color: #fff; }

.cta-band {
  margin-top: 34px;
  padding: 28px 26px;
  border-radius: 20px;
  background: linear-gradient(135deg, #101a2b 0%, #1d3a2c 100%);
  color: #fff;
  display: grid;
  gap: 10px;
  justify-items: start;
}

.cta-band h2 { color: #fff; margin: 0; }

.cta-band h2::after { display: none; }

.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.72); font-size: 14.5px; max-width: 46ch; }

.cta-band .btn { background: #fff; color: #101a2b; border-color: #fff; }

footer.site .wrap { display: block; }

@media (min-width: 861px) {
  .saas-hero { grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr); align-items: center; gap: 44px; }
  .step-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step-flow .step { grid-template-columns: 1fr; }
  .step-flow .step::before { margin-bottom: 8px; }
}

@media (max-width: 760px) {
  .stat-strip { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .price-card { padding: 20px; }
  .product-card .pc-body { padding: 14px; }
}

:root {
  --accent: #1d4ed8;
  --accent-2: #e8eefc;
  --accent-3: #0f172a;
}

.hero h1, .saas-hero h1 { letter-spacing: -0.02em; }
.result { display: block; }
.result .t { width: 100%; }
.result .t td:last-child { text-align: right; white-space: nowrap; }
