:root {
  color-scheme: light;
  --green: #03c75a;
  --green-dark: #039d48;
  --ink: #17212b;
  --soft-ink: #4f5f6f;
  --line: #dbe3ea;
  --surface: #ffffff;
  --muted: #f4f7fb;
  --mint: #e8f8ef;
  --yellow: #fff3c4;
  --red: #ff5c5c;
  --blue: #2272eb;
  --shadow: 0 18px 44px rgba(21, 39, 57, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  letter-spacing: 0;
}

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

.hero {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(3, 199, 90, 0.98), rgba(0, 146, 88, 0.96)),
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.24), transparent 30%);
  min-height: 86vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: var(--green);
  font-weight: 900;
}

.nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-grid {
  width: min(1180px, calc(100% - 40px));
  margin: auto auto 0;
  padding: 42px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  gap: 44px;
  align-items: center;
}

.hero-copy,
.hero-board,
.hero-grid > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--green-dark);
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.84);
}

h1,
h2,
h3,
p {
  word-break: keep-all;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h2 {
  margin: 0;
  font-size: clamp(27px, 3.8vw, 43px);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
}

.hero-lead,
.section-heading p,
.plain-explain p,
.field-panel li,
.mistake-list p,
.mobile-card dd,
.detail-flow span,
.platform-row span,
.condition-grid li,
.condition-grid p,
.workflow span,
.footer {
  line-height: 1.72;
}

.hero-lead {
  margin: 24px 0 0;
  max-width: 660px;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-button,
.ghost-button {
  border: 0;
  border-radius: 8px;
  padding: 14px 18px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.primary-button {
  color: #fff;
  background: #121a22;
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.09);
}

.hero-board {
  width: 100%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.board-top {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: #f7fafc;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.green {
  background: var(--green);
}

.dot.yellow {
  background: #ffd75a;
}

.dot.red {
  background: #ff6262;
}

.mock-field,
.mini-table {
  margin: 22px;
}

.mock-field {
  border: 2px solid var(--green);
  padding: 18px;
  display: grid;
  gap: 8px;
}

.field-label {
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 800;
}

.mock-field strong {
  font-size: 23px;
  overflow-wrap: anywhere;
}

.score {
  width: max-content;
  padding: 6px 9px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}

.score.good {
  color: var(--green-dark);
  background: var(--mint);
}

.token-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 0 22px 4px;
}

.token-row span {
  min-width: 0;
  padding: 10px 6px;
  text-align: center;
  background: #edf4f7;
  border-radius: 6px;
}

.token-row b,
.token-row small {
  display: block;
  overflow-wrap: anywhere;
}

.token-row b {
  font-size: 16px;
}

.token-row small {
  margin-top: 5px;
  color: var(--green-dark);
  font-weight: 800;
  font-size: 12px;
}

.mini-table {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fbfcfd;
}

.mini-table div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.mini-table span {
  color: var(--soft-ink);
  font-size: 13px;
}

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

.muted {
  width: 100%;
  padding-left: max(20px, calc((100% - 1180px) / 2));
  padding-right: max(20px, calc((100% - 1180px) / 2));
  background: var(--muted);
}

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

.section-heading p {
  margin: 16px 0 0;
  color: var(--soft-ink);
  font-size: 17px;
}

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

.priority-grid article,
.condition-grid article,
.conversion-main,
.mobile-card,
.detail-flow,
.plain-explain,
.field-layout,
.platform-table,
.checker,
.workflow li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.priority-grid article,
.condition-grid article {
  padding: 22px;
}

.rank {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-weight: 900;
}

.priority-grid p,
.condition-grid p {
  color: var(--soft-ink);
}

.priority-grid p {
  margin: 10px 0 0;
  line-height: 1.62;
}

.plain-explain {
  margin-top: 18px;
  padding: 26px;
  background: #101820;
  color: #fff;
}

.plain-explain p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.plain-explain strong {
  color: #7effb5;
}

.field-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  overflow: hidden;
}

.field-nav {
  display: grid;
  align-content: start;
  padding: 14px;
  gap: 8px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.field-tab {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 14px;
  background: transparent;
  color: var(--soft-ink);
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.field-tab.active {
  color: #fff;
  background: var(--green);
}

.field-panel {
  display: none;
  min-height: 390px;
  padding: 34px;
}

.field-panel.active {
  display: block;
}

.check-list,
.condition-grid ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.condition-grid li {
  position: relative;
  padding-left: 26px;
  margin: 12px 0;
}

.check-list li::before,
.condition-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.good-bad {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding: 18px;
  background: #f9fbfc;
  border: 1px solid var(--line);
}

.good-bad p {
  margin: 0;
}

.good-bad strong {
  display: inline-block;
  min-width: 46px;
  color: var(--green-dark);
}

.formula {
  margin-top: 24px;
  padding: 18px;
  border-left: 5px solid var(--green);
  background: var(--mint);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.conversion-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.conversion-main,
.mobile-card,
.detail-flow {
  padding: 26px;
}

.mistake-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.mistake-list div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.mistake-list span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--green-dark);
  font-weight: 900;
}

.mistake-list strong,
.mistake-list p {
  display: block;
}

.mistake-list p {
  margin: 8px 0 0;
  color: var(--soft-ink);
}

.mobile-card {
  background: #101820;
  color: #fff;
}

.mobile-card dl {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
}

.mobile-card div {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.mobile-card div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.mobile-card dt {
  font-weight: 900;
  color: #7effb5;
}

.mobile-card dd {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.detail-flow {
  margin-top: 18px;
}

.detail-flow ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: detail-step;
}

.detail-flow li {
  counter-increment: detail-step;
  padding: 18px;
  border-radius: 8px;
  background: var(--muted);
}

.detail-flow li::before {
  content: counter(detail-step);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin-bottom: 13px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.detail-flow strong,
.detail-flow span {
  display: block;
}

.detail-flow span {
  margin-top: 7px;
  color: var(--soft-ink);
}

.platform-table {
  overflow: hidden;
}

.platform-row {
  display: grid;
  grid-template-columns: 150px repeat(3, minmax(0, 1fr));
}

.platform-row span {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.platform-row span:last-child {
  border-right: 0;
}

.platform-row:last-child span {
  border-bottom: 0;
}

.platform-row.head {
  color: #fff;
  background: #101820;
  font-weight: 900;
}

.platform-row:not(.head) span:first-child {
  color: var(--green-dark);
  font-weight: 900;
  background: var(--mint);
}

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

.condition-grid article {
  min-height: 260px;
}

.condition-grid p {
  margin: 8px 0 0;
}

.condition-grid ul {
  margin-top: 16px;
}

.checker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  padding: 24px;
}

.input-panel {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--soft-ink);
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

input:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(34, 114, 235, 0.28);
  outline-offset: 2px;
}

.input-panel .primary-button {
  width: max-content;
  background: var(--green);
}

.result-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.score-card {
  display: grid;
  place-items: center;
  min-height: 160px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #101820, #1f6f4a);
}

.score-card span {
  font-weight: 800;
}

.score-card strong {
  font-size: 58px;
}

.result-list {
  display: grid;
  gap: 10px;
}

.result-item {
  padding: 13px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  line-height: 1.55;
}

.result-item.good {
  border-color: rgba(3, 199, 90, 0.4);
  background: var(--mint);
}

.result-item.warn {
  border-color: rgba(255, 190, 40, 0.6);
  background: var(--yellow);
}

.result-item.bad {
  border-color: rgba(255, 92, 92, 0.55);
  background: #fff1f1;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.workflow li {
  counter-increment: step;
  padding: 22px;
}

.workflow li::before {
  content: counter(step);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.workflow strong,
.workflow span {
  display: block;
}

.workflow span {
  margin-top: 8px;
  color: var(--soft-ink);
}

.footer {
  padding: 34px 20px;
  text-align: center;
  color: #617181;
  background: #101820;
}

.footer p {
  margin: 7px 0;
}

.footer a {
  color: #7effb5;
  font-weight: 800;
}

.source-list {
  width: min(900px, 100%);
  margin: 18px auto 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.source-list a {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 980px) {
  .hero-grid,
  .checker,
  .conversion-layout,
  .field-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-top: 24px;
  }

  .hero-board {
    max-width: 680px;
  }

  .priority-grid,
  .condition-grid,
  .mistake-list,
  .detail-flow ol,
  .workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .field-tab {
    text-align: center;
  }
}

@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  h1 {
    font-size: 34px;
    line-height: 1.17;
  }

  .hero-lead,
  .section-heading p,
  .plain-explain p,
  .field-panel li,
  .mistake-list p,
  .mobile-card dd,
  .detail-flow span,
  .platform-row span,
  .condition-grid li,
  .condition-grid p,
  .workflow span {
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .hero,
  .section {
    min-height: auto;
  }

  .topbar {
    width: min(100% - 28px, 1180px);
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-links a {
    flex: 1 1 calc(50% - 6px);
    text-align: center;
  }

  .hero-grid,
  .section {
    width: min(100% - 28px, 1180px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-bottom: 44px;
  }

  .hero-actions a {
    flex: 1 1 100%;
  }

  .mock-field,
  .mini-table {
    margin: 14px;
  }

  .conversion-main,
  .mobile-card,
  .detail-flow {
    padding: 20px;
  }

  .token-row,
  .mini-table div,
  .priority-grid,
  .condition-grid,
  .mistake-list,
  .detail-flow ol,
  .workflow {
    grid-template-columns: 1fr;
  }

  .platform-row,
  .platform-row.head {
    display: block;
  }

  .platform-row.head {
    display: none;
  }

  .platform-row {
    border-bottom: 1px solid var(--line);
  }

  .platform-row:last-child {
    border-bottom: 0;
  }

  .platform-row span {
    display: block;
    border-right: 0;
  }

  .platform-row span:first-child {
    font-size: 14px;
  }

  .platform-row:not(.head) span:nth-child(n + 2)::before {
    display: block;
    margin-bottom: 6px;
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 900;
  }

  .platform-row:not(.head) span:nth-child(2)::before {
    content: "네이버";
  }

  .platform-row:not(.head) span:nth-child(3)::before {
    content: "쿠팡";
  }

  .platform-row:not(.head) span:nth-child(4)::before {
    content: "11번가";
  }

  .token-row {
    padding: 0 14px 4px;
  }

  .muted {
    padding-left: 14px;
    padding-right: 14px;
  }

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

  .field-panel,
  .checker {
    padding: 20px;
  }

  .input-panel .primary-button {
    width: 100%;
  }
}
