:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #52615a;
  --paper: #f5f3ed;
  --panel: #fffdf8;
  --green: #236b52;
  --green-dark: #174b3a;
  --lime: #d5ef9f;
  --amber: #f3c873;
  --rose: #f1a891;
  --line: #d8d6cc;
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 10%, rgb(213 239 159 / .38), transparent 28rem),
    var(--paper);
  line-height: 1.6;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--ink);
  color: white;
}
.skip-link:focus { transform: none; }

.masthead,
main,
footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.masthead {
  display: grid;
  grid-template-columns: 1.5fr .8fr;
  gap: 48px;
  padding: 76px 0 42px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--green);
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.06em;
}

.lede {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.status-cluster {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.status {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-radius: 99px;
  padding: 7px 13px;
  font-weight: 800;
  font-size: .86rem;
}
.status.safe { background: var(--lime); color: var(--green-dark); }
.status.blocked { background: #fee2d9; color: #7d2f1d; }

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

.product-card,
.control-panel,
.evidence-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgb(255 253 248 / .9);
  box-shadow: 0 22px 60px rgb(43 52 47 / .08);
}

.product-card { padding: clamp(26px, 5vw, 48px); }
.product-card h2,
.control-panel h2,
.evidence-panel h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.product-card > p:not(.eyebrow) { min-height: 86px; color: var(--muted); }
.audit-card { border-top: 8px solid var(--green); }
.support-card { border-top: 8px solid #cf6448; }

dl { margin: 24px 0; }
.product-card dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.product-card dl div,
.runtime-grid div {
  padding: 14px;
  border-radius: 14px;
  background: #f2f0e8;
}
dt { color: var(--muted); font-size: .78rem; }
dd { margin: 3px 0 0; font-weight: 900; }

.primary-link,
button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  background: var(--green);
  color: white;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.primary-link:hover,
button:hover { background: var(--green-dark); }
.primary-link:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 4px solid var(--amber);
  outline-offset: 3px;
}

.control-panel,
.evidence-panel {
  margin-top: 18px;
  padding: clamp(28px, 6vw, 56px);
}
.control-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 46px;
}
.control-panel > button,
.control-panel > #ownership-result { align-self: center; }
#ownership-result { margin: 0; color: var(--muted); }
.runtime-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
}

.evidence-panel { margin-bottom: 18px; }
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 30px 0;
}
.evidence-grid article {
  display: grid;
  gap: 6px;
  padding: 22px;
  border-left: 3px solid var(--green);
  background: #f2f0e8;
}
.evidence-grid strong { font-size: 2rem; letter-spacing: -.04em; }
.evidence-grid span { color: var(--muted); }
details { border-top: 1px solid var(--line); padding-top: 20px; }
summary { cursor: pointer; font-weight: 800; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: .84rem;
}

@media (max-width: 780px) {
  .masthead,
  .hero-grid,
  .control-panel {
    grid-template-columns: 1fr;
  }
  .masthead { gap: 26px; padding-top: 48px; }
  .product-card > p:not(.eyebrow) { min-height: 0; }
  .evidence-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 430px) {
  .masthead,
  main,
  footer { width: min(100% - 22px, 1180px); }
  .product-card dl,
  .runtime-grid,
  .evidence-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}
