:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #647078;
  --line: #dbe2e5;
  --surface: #ffffff;
  --soft: #f4f7f5;
  --mint: #0f8b6f;
  --green: #16a274;
  --coral: #d75f48;
  --yellow: #d69b25;
  --teal: #2b8ea6;
  --charcoal: #25313a;
  --shadow: 0 18px 50px rgba(23, 32, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  line-height: 1.5;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--charcoal);
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav-links,
.site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-links a,
.site-footer a {
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--ink);
  background: #edf2ef;
}

.dashboard-band,
.content-band,
.split-band,
.roadmap-band,
.control-band {
  padding-inline: clamp(18px, 4vw, 54px);
}

.dashboard-band {
  padding-block: clamp(28px, 5vw, 64px);
  background:
    radial-gradient(circle at 18% 28%, rgba(15, 139, 111, 0.14), transparent 28%),
    linear-gradient(135deg, #fbfdfb 0%, #eef5f1 42%, #fff8f0 100%);
  border-bottom: 1px solid var(--line);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  max-width: 1220px;
  margin: 0 auto;
}

.dashboard-copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: #3f4c53;
  font-size: 18px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.action-button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
}

.action-button.primary {
  color: #fff;
  background: var(--mint);
  border-color: var(--mint);
}

.action-button:hover,
.copy-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(23, 32, 38, 0.12);
}

.signal-panel {
  min-width: 0;
  padding: 16px;
  background: #10191d;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.signal-panel canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 760 / 460;
}

.signal-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 10px;
  color: #d8e2e2;
  font-size: 13px;
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 50%;
}

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

.legend-dot.coral {
  background: var(--coral);
}

.legend-dot.yellow {
  background: var(--yellow);
}

.control-band {
  padding-block: 22px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 1220px;
  margin: 0 auto 16px;
}

.metric-strip article {
  padding: 16px;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-strip strong,
.metric-strip span {
  display: block;
}

.metric-strip strong {
  font-size: 28px;
}

.metric-strip span {
  color: var(--muted);
  font-size: 13px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) minmax(160px, 220px);
  gap: 10px;
  max-width: 1220px;
  margin: 0 auto;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.search-box input,
.toolbar select,
.calculator input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
}

.toolbar select {
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.content-band,
.split-band,
.roadmap-band {
  padding-block: clamp(36px, 5vw, 64px);
}

.section-heading {
  max-width: 1220px;
  margin: 0 auto 22px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.13;
}

.section-heading p:not(.eyebrow) {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--muted);
}

.tool-grid,
.template-grid,
.page-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1220px;
  margin: 0 auto;
}

.tool-card,
.template-card,
.page-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23, 32, 38, 0.06);
}

.tool-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tool-name {
  margin: 0;
  font-size: 20px;
}

.price {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: #fff;
  background: var(--charcoal);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.tool-card p,
.template-card p {
  color: var(--muted);
}

.score-row {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.score-item {
  display: grid;
  grid-template-columns: 86px 1fr 28px;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.bar-track {
  height: 8px;
  overflow: hidden;
  background: #e7edeb;
  border-radius: 8px;
}

.bar-fill {
  height: 100%;
  width: var(--score);
  background: var(--green);
}

.score-item:nth-child(2) .bar-fill {
  background: var(--coral);
}

.score-item:nth-child(3) .bar-fill {
  background: var(--yellow);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}

.tag-list span {
  padding: 5px 7px;
  color: #425058;
  background: #eef3f0;
  border-radius: 8px;
  font-size: 12px;
}

.split-band {
  background: #fdfaf4;
  border-block: 1px solid #eadfcb;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 16px;
  max-width: 1220px;
  margin: 0 auto;
}

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

.calculator label {
  display: grid;
  gap: 8px;
  padding: 14px;
  color: #41505a;
  background: #fff;
  border: 1px solid #eadfcb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.calculator input {
  padding-inline: 2px;
  font-size: 20px;
  font-weight: 800;
}

.result-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 24px;
  color: #fff;
  background: var(--charcoal);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.result-label {
  margin: 0;
  color: #cbd8dd;
  font-size: 14px;
}

.result-panel strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(32px, 4vw, 48px);
}

.result-breakdown {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: #e7eeee;
  font-size: 14px;
}

.recommendation {
  margin-top: 18px;
  padding: 12px;
  color: #10211d;
  background: #b9f2d3;
  border-radius: 8px;
  font-weight: 800;
}

.template-card pre {
  flex: 1;
  min-height: 178px;
  margin: 10px 0 16px;
  padding: 12px;
  overflow: auto;
  color: #203038;
  background: #f5f8f6;
  border: 1px solid var(--line);
  border-radius: 8px;
  white-space: pre-wrap;
}

.copy-button {
  width: 100%;
  min-height: 40px;
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

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

.page-card {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.page-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(23, 32, 38, 0.12);
}

.page-card span {
  align-self: flex-start;
  padding: 5px 8px;
  color: #fff;
  background: var(--mint);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.page-card strong {
  margin-top: 14px;
  font-size: 20px;
  line-height: 1.25;
}

.page-card p {
  color: var(--muted);
}

.roadmap-band {
  background: #fff;
  border-top: 1px solid var(--line);
}

.roadmap-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.roadmap-list li {
  position: relative;
  min-height: 190px;
  padding: 52px 18px 18px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  counter-increment: step;
}

.roadmap-list li::before {
  content: counter(step);
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #fff;
  background: var(--coral);
  border-radius: 50%;
  font-weight: 800;
}

.roadmap-list strong,
.roadmap-list span {
  display: block;
}

.roadmap-list span {
  margin-top: 8px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 54px);
  color: #d6e0df;
  background: #10191d;
}

.site-footer p {
  max-width: 560px;
  margin: 6px 0 0;
  color: #9fb0b0;
}

.site-footer a {
  color: #d6e0df;
}

.text-page {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 78px) clamp(18px, 4vw, 34px);
}

.text-page h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
}

.text-page h2 {
  margin-top: 34px;
}

.text-page p,
.text-page li {
  color: #45545d;
}

.text-page a {
  color: var(--mint);
  font-weight: 800;
}

.article-page {
  padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 54px);
  background: linear-gradient(180deg, #fbfdfb 0%, #f4f7f5 42%, #fff 100%);
}

.article-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 42px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 45px rgba(23, 32, 38, 0.08);
}

.article-shell h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
}

.article-shell h2 {
  margin: 36px 0 12px;
  font-size: clamp(22px, 3vw, 30px);
}

.article-shell h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.article-shell p,
.article-shell li {
  color: #45545d;
}

.article-lead {
  margin: 18px 0 0;
  font-size: 18px;
}

.article-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.article-meta div {
  padding: 14px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.article-meta dd {
  margin: 6px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.summary-box {
  margin: 28px 0;
  padding: 18px;
  background: #edf7f2;
  border: 1px solid #cce7da;
  border-radius: 8px;
}

.summary-box strong {
  display: block;
  margin-bottom: 6px;
}

.summary-box p {
  margin: 0;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-shell {
  overflow-x: hidden;
}

.compare-table th,
.compare-table td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  color: #fff;
  background: var(--charcoal);
}

.compare-table tr:nth-child(even) td {
  background: #f8faf9;
}

.prompt-block {
  margin: 12px 0;
  padding: 16px;
  overflow: auto;
  color: #21323a;
  background: #f5f8f6;
  border: 1px solid var(--line);
  border-radius: 8px;
  white-space: pre-wrap;
}

.next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.embedded-calculator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 14px;
  margin: 30px 0;
}

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

.mini-tool label {
  display: grid;
  gap: 8px;
  padding: 14px;
  color: #41505a;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.mini-tool input {
  width: 100%;
  min-height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 20px;
  font-weight: 800;
}

.mini-result {
  grid-column: 1 / -1;
  padding: 22px;
  color: #fff;
  background: var(--charcoal);
  border-radius: 8px;
}

.mini-result span,
.mini-result strong,
.mini-result p {
  display: block;
}

.mini-result strong {
  margin-top: 4px;
  font-size: clamp(30px, 4vw, 44px);
}

.mini-result p {
  margin: 8px 0 0;
  color: #d6e0df;
}

.check-list {
  padding-left: 20px;
}

.prompt-list {
  display: grid;
  gap: 20px;
}

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

.decision-grid article {
  padding: 16px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.decision-grid strong {
  display: block;
  margin-bottom: 8px;
}

.decision-grid p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-grid,
  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .tool-grid,
  .template-grid,
  .page-grid,
  .article-meta,
  .decision-grid,
  .roadmap-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand {
    min-width: 0;
  }

  .dashboard-copy h1 {
    font-size: 34px;
  }

  .metric-strip,
  .tool-grid,
  .template-grid,
  .page-grid,
  .calculator,
  .embedded-calculator,
  .mini-tool,
  .article-meta,
  .decision-grid,
  .roadmap-list {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }

  .compare-table {
    display: block;
    overflow: hidden;
  }

  .compare-table thead {
    display: none;
  }

  .compare-table tbody,
  .compare-table tr,
  .compare-table td {
    display: block;
    width: 100%;
  }

  .compare-table tr {
    border-bottom: 1px solid var(--line);
  }

  .compare-table td {
    border-bottom: 0;
  }

  .compare-table td:first-child {
    color: #fff;
    background: var(--charcoal);
    font-weight: 800;
  }
}
