:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-soft: #f8f5ef;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e7e1d5;
  --brand: #2e3b2f;
  --brand-dark: #465a3a;
  --accent: #a57a43;
  --accent-soft: #d9bf95;
  --radius: 22px;
  --shadow: 0 14px 34px rgba(46, 59, 47, 0.08);
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.96), rgba(246,244,239,1) 42%),
    var(--bg);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 28px, var(--max));
  margin: 0 auto;
}

.hidden { display: none !important; }
.mb8 { margin-bottom: 8px; }
.brand-block-right { text-align: right; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.05em;
  flex: 0 0 auto;
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.mini-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
}

.logo.brand {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.eyebrow {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 2px;
}

.brand-name {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.hero {
  padding: 34px 0 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 42px 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-card h1 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
  max-width: 22ch;
}

.hero-copy {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 62ch;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf2e8;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 6px;
}

.btn {
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  padding: 0 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  transition: transform 0.16s ease, opacity 0.16s ease, background 0.16s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}

.app-wrap {
  padding: 10px 0 54px;
}

.app-grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 92px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.soft-box {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 16px;
  padding: 16px;
}

.soft-box p {
  color: var(--muted);
  font-size: 14px;
}

.progress-track {
  width: 100%;
  height: 10px;
  background: rgba(46, 59, 47, 0.10);
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 8px;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-dark) 100%);
  transition: width 0.25s ease;
}

.step-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.step-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.65);
  color: var(--muted);
  font-size: 14px;
}

.step-chip.active {
  background: #fff;
  color: var(--text);
  font-weight: 700;
  border: 1px solid var(--line);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c9d0c4;
  flex: 0 0 auto;
}

.step-chip.active .dot { background: var(--accent); }

.flow {
  padding: 30px;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.flow-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.flow-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

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

.meta-pill {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.grid-2,
.answer-grid,
.results-grid {
  display: grid;
  gap: 14px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.answer-grid { grid-template-columns: repeat(2, 1fr); }
.results-grid { grid-template-columns: 1fr 1fr; }

.info-card,
.section-card,
.score-card,
.report-card,
.success-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 22px;
}

.success-card {
  background: linear-gradient(180deg, #faf8f4 0%, #f4ede3 100%);
  border-color: #e0d5c5;
}

.info-list,
.package-list,
.report-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.info-list li,
.package-list li,
.report-list li { margin: 6px 0; }

.answer {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 18px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.answer:hover {
  transform: translateY(-2px);
  border-color: rgba(46, 59, 47, 0.30);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.answer.active {
  border-color: var(--brand);
  background: #faf8f4;
  box-shadow: 0 10px 22px rgba(46, 59, 47, 0.08);
}

.answer strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.answer span { color: var(--muted); font-size: 14px; }

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 14px;
  font-weight: 800;
}

.field input,
.field textarea {
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 13px 14px;
  color: var(--text);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.upload-zone {
  border: 2px dashed #d9cfc3;
  border-radius: 20px;
  background: #faf8f4;
  padding: 28px;
  text-align: center;
  display: grid;
  gap: 10px;
}

.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}

.file-pill,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.score-ring {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  margin: 8px auto 18px;
  background: conic-gradient(var(--brand) 0 48%, #ece5d9 48% 100%);
  display: grid;
  place-items: center;
}

.score-core {
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  text-align: center;
}

.score-core strong {
  display: block;
  font-size: 2.1rem;
  line-height: 1;
}

.score-core span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.score-band {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.value-range {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 14px 0 6px;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mini-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.mini-logo.brand {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
}

.nav-row {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 980px) {
  .app-grid,
  .results-grid {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }
}

@media (max-width: 720px) {
  .topbar-inner,
  .flow-head,
  .report-header,
  .nav-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .grid-2,
  .answer-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }
  .hero-card,
  .sidebar,
  .flow { padding: 22px; }
  .pill { white-space: normal; }
}
