﻿:root {
  --bg: #f3efe7;
  --paper: #fffaf2;
  --surface: #fffdf9;
  --text: #182230;
  --muted: #5b6574;
  --line: #d9d1c2;
  --accent: #0f766e;
  --accent-strong: #0b5f58;
  --accent-soft: #e1f2ef;
  --shadow: 0 24px 60px rgba(25, 39, 52, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.14), transparent 28%),
    radial-gradient(circle at bottom left, rgba(16, 37, 66, 0.08), transparent 24%),
    linear-gradient(180deg, #f8f3ea 0%, var(--bg) 100%);
}

a {
  color: inherit;
}

button,
select,
input {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 24px;
  align-items: center;
  padding: 34px;
  margin-bottom: 24px;
  border: 1px solid rgba(16, 37, 66, 0.08);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 239, 0.9)),
    var(--paper);
  box-shadow: var(--shadow);
}

.hero-mark {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 32px;
  color: #f8fffe;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #0f766e, #102542);
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-head h2 {
  margin: 0;
  line-height: 1.1;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 4.4rem);
}

.hero-text {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.1fr);
  gap: 24px;
}

.assistant-panel,
.steps-panel {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 249, 0.88);
  border: 1px solid rgba(16, 37, 66, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

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

.assistant-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(225, 242, 239, 0.78), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(15, 118, 110, 0.12);
}

.assistant-card-alt {
  background: linear-gradient(180deg, rgba(16, 37, 66, 0.08), rgba(255, 255, 255, 0.92));
}

.assistant-card h3 {
  margin: 0;
  font-size: 1.28rem;
}

.card-copy,
.response-status,
.step-subtitle,
.site-footer,
.field-label,
.comparison-copy,
.comparison-status,
.result-main p {
  color: var(--muted);
}

.field-label {
  font-size: 0.92rem;
  font-weight: 600;
}

.select-field,
.comparison-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
}

.primary-button,
.secondary-button,
.ghost-button,
.text-link {
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.primary-button,
.secondary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.primary-button,
.secondary-button {
  min-height: 52px;
  padding: 12px 20px;
  font-weight: 700;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #effcf9;
}

.secondary-button {
  background: #102542;
  color: #f2f5f9;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.response-panel {
  margin-top: 20px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: #fdfcf8;
  border: 1px solid rgba(16, 37, 66, 0.1);
}

.response-panel.is-hidden {
  display: none;
}

.response-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.response-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.ghost-button {
  padding: 8px 14px;
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(16, 37, 66, 0.12);
}

.response-status {
  margin: 14px 0 10px;
  font-size: 0.95rem;
}

.response-text {
  margin: 0;
  max-height: 420px;
  overflow: auto;
  padding: 16px;
  border-radius: var(--radius-md);
  background: white;
  border: 1px solid rgba(16, 37, 66, 0.08);
  font-family: inherit;
  white-space: pre-wrap;
  line-height: 1.8;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.step-card {
  overflow: clip;
  border: 1px solid rgba(16, 37, 66, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
}

.step-toggle {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: right;
  cursor: pointer;
}

.step-index {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #102542;
  color: white;
  font-weight: 800;
}

.step-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step-title {
  font-size: 1.08rem;
  font-weight: 800;
}

.step-indicator {
  width: 12px;
  height: 12px;
  margin-top: 12px;
  border-left: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
}

.step-toggle[aria-expanded="true"] .step-indicator {
  transform: rotate(135deg);
}

.step-panel {
  padding: 0 20px 20px;
  border-top: 1px solid rgba(16, 37, 66, 0.06);
  color: #32404f;
  line-height: 1.8;
}

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

.info-box,
.highlight-box,
.comparison-tool {
  padding: 16px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(16, 37, 66, 0.08);
}

.info-box h4,
.comparison-head h4,
.result-main h5 {
  margin: 0 0 8px;
}

.highlight-box {
  background: #fff5e6;
  border-color: rgba(201, 122, 31, 0.26);
  color: #7a4b14;
  font-weight: 700;
}

.clean-list,
.metric-grid {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.clean-list li,
.metric-grid li {
  position: relative;
  padding-right: 18px;
  margin-bottom: 8px;
}

.clean-list li::before,
.metric-grid li::before {
  content: "";
  position: absolute;
  top: 0.8em;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

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

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(16, 37, 66, 0.12);
  text-decoration: none;
  font-weight: 700;
}

.comparison-tool {
  margin-top: 22px;
  background: linear-gradient(180deg, rgba(225, 242, 239, 0.42), rgba(255, 255, 255, 0.96));
}

.comparison-head {
  margin-bottom: 14px;
}

.comparison-copy,
.comparison-status {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1500px;
}

.comparison-table th,
.comparison-table td {
  padding: 8px;
  border-bottom: 1px solid rgba(16, 37, 66, 0.08);
  text-align: right;
  vertical-align: top;
}

.comparison-table th {
  font-size: 0.88rem;
  color: var(--muted);
}

.table-action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.comparison-status {
  margin-top: 14px;
  font-weight: 600;
}

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

.result-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(16, 37, 66, 0.08);
}

.result-card.is-top {
  border-color: rgba(15, 118, 110, 0.35);
  background: rgba(225, 242, 239, 0.72);
}

.result-rank,
.result-score {
  font-weight: 800;
}

.result-rank {
  color: var(--accent-strong);
}

.result-score {
  font-size: 1.2rem;
}

.result-main h5 {
  margin-bottom: 2px;
}

.result-main p {
  margin: 0;
  font-size: 0.92rem;
}

.site-footer {
  margin-top: 24px;
  padding: 20px 8px 0;
  text-align: center;
  font-size: 0.94rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 8px;
}

@media (max-width: 920px) {
  .layout,
  .assistant-grid,
  .info-grid,
  .comparison-results {
    grid-template-columns: 1fr;
  }

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

  .hero-mark {
    width: 84px;
    height: 84px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100vw - 20px, 100%);
    padding-top: 18px;
  }

  .hero,
  .assistant-panel,
  .steps-panel {
    padding: 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  .step-toggle {
    grid-template-columns: auto 1fr;
  }

  .step-indicator {
    display: none;
  }

  .table-action-row {
    flex-direction: column;
  }
}


.comparison-tool {
  margin-top: 24px;
  padding: 22px;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 246, 0.96));
}

.comparison-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-bottom: 16px;
}

.comparison-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-chip {
  border: 1px solid rgba(16, 37, 66, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.profile-chip:hover {
  transform: translateY(-1px);
}

.profile-chip.is-active {
  border-color: rgba(15, 118, 110, 0.5);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.92), rgba(11, 95, 88, 0.92));
  color: #f7fffe;
}

.comparison-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(16, 37, 66, 0.05);
  color: var(--muted);
}

.comparison-table th {
  position: sticky;
  top: 0;
  background: #fffdf9;
  z-index: 1;
}

.comparison-input:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.comparison-insight {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(16, 37, 66, 0.92), rgba(15, 118, 110, 0.88));
  color: #f4fbfa;
}

.comparison-insight.is-empty {
  background: rgba(16, 37, 66, 0.06);
  color: var(--muted);
}

.comparison-insight-title {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.comparison-bullet-list {
  margin: 0;
  padding-right: 18px;
}

.comparison-bullet-list li {
  margin-bottom: 6px;
}

.comparison-status {
  margin-top: 14px;
  font-weight: 700;
}

.comparison-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.result-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(16, 37, 66, 0.08);
  box-shadow: 0 18px 36px rgba(16, 37, 66, 0.08);
}

.result-card.is-top {
  border-color: rgba(15, 118, 110, 0.35);
  background: linear-gradient(180deg, rgba(225, 242, 239, 0.78), rgba(255, 255, 255, 0.96));
}

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

.result-rank {
  color: var(--accent-strong);
  font-weight: 800;
}

.result-score-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 68px;
  border-radius: 999px;
  background: #102542;
  color: #f4fbfa;
  font-size: 1.25rem;
  font-weight: 800;
}

.result-meta {
  margin: 0;
  color: var(--muted);
}

.result-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

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

.pillar-row {
  display: grid;
  grid-template-columns: 92px 1fr 38px;
  align-items: center;
  gap: 10px;
}

.pillar-row span,
.pillar-row strong {
  font-size: 0.88rem;
}

.pillar-track {
  position: relative;
  height: 9px;
  border-radius: 999px;
  background: rgba(16, 37, 66, 0.08);
  overflow: hidden;
}

.pillar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--accent), #102542);
  border-radius: inherit;
}

@media (max-width: 640px) {
  .profile-group {
    display: grid;
    grid-template-columns: 1fr;
  }

  .result-score-bubble {
    min-width: 56px;
    min-height: 56px;
    font-size: 1.05rem;
  }

  .pillar-row {
    grid-template-columns: 78px 1fr 32px;
  }
}

.comparison-input.metric-best {
  border-color: rgba(15, 118, 110, 0.45);
  background: rgba(225, 242, 239, 0.72);
}

.comparison-input.metric-worst {
  border-color: rgba(190, 24, 93, 0.32);
  background: rgba(255, 228, 235, 0.82);
}
