﻿:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #17212b;
  --muted: #5e6b78;
  --primary: #006c9a;
  --primary-dark: #005276;
  --border: #dce4ec;
  --danger: #b62020;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  background: linear-gradient(180deg, #f8fbff 0%, #eef3f8 100%);
  color: var(--text);
}

.app {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px;
}

.top-nav {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.nav-link {
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #1e3a4a;
  font-weight: 700;
  padding: 8px 12px;
  text-decoration: none;
}

.nav-link.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-top: 12px;
  box-shadow: 0 4px 12px rgba(23, 33, 43, 0.06);
}

.hero h1 {
  margin: 0;
  font-size: 1.8rem;
}

.hero p {
  margin: 8px 0 0;
  color: var(--muted);
}

.disclaimer {
  font-size: 0.92rem;
  line-height: 1.5;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.mode-grid,
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 14px 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.mode-btn,
.category-btn {
  background: #eef4f9;
  color: #153041;
  border: 1px solid #d6e2ec;
}

.mode-btn.active,
.category-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary {
  border: 0;
  border-radius: 8px;
  background: #007bff;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: #0056b3;
}

.btn-secondary {
  background: #fff;
  border: 1px solid #b9c9d7;
  border-radius: 8px;
  color: #234258;
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #f3f8fc;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font-size: 1rem;
}

.status {
  margin: 10px 0 0;
  min-height: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.hidden {
  display: none;
}

.step-header h2 {
  margin: 0 0 12px;
}

.step-group {
  margin-bottom: 14px;
}

.step-group h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.step-grid {
  margin-top: 10px;
}

.step-nav {
  margin-top: 12px;
}

.step-back {
  background: #edf3f7;
  border: 1px solid #d6e2ec;
  color: #25455a;
}

.emergency-group {
  margin-top: 14px;
}

.emergency-group h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.result-item {
  padding: 10px 0;
  border-bottom: 1px solid #eef2f6;
}

.result-item:last-child {
  border-bottom: 0;
}

.result-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.decision-status {
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 10px;
  padding: 12px;
}

.decision-status p {
  font-size: 1.08rem;
  font-weight: 800;
  margin: 0;
}

.decision-status .decision-sub {
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 8px;
}

.decision-status .decision-action {
  font-size: 0.96rem;
  font-weight: 800;
  margin-top: 6px;
}

.decision-status .decision-urgency {
  color: #173042;
  font-size: 0.93rem;
  font-weight: 800;
  margin-top: 6px;
}

.decision-status.risk-low {
  background: #e9f6ec;
  border-color: #bde5c8;
}

.decision-status.risk-medium {
  background: #fff2df;
  border-color: #f3d8ab;
}

.decision-status.risk-high {
  background: #fde9e9;
  border-color: #f2b9b9;
}

.danger {
  color: var(--danger);
  font-weight: 700;
}

.risk-line {
  margin: 8px 0 6px;
}

.risk-badge {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 3px 10px;
}

.risk-low {
  background: #e9f6ec;
  color: #165a2c;
}

.risk-medium {
  background: #fff2df;
  color: #915d00;
}

.risk-high {
  background: #fde9e9;
  color: #9f1f1f;
}

.trust-card {
  margin-top: 14px;
}

.trust-source-list {
  line-height: 1.6;
  margin: 0 0 10px;
  padding-left: 18px;
}

.trust-disclaimer {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 12px;
}

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

.trust-badge {
  background: #eef5f8;
  border: 1px solid #d8e7ef;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 10px;
}

.product-card {
  margin-top: 16px;
}

.context-highlight {
  background: #fff5e8;
  border: 1px solid #f3d8ab;
  border-radius: 12px;
  margin-top: 12px;
  padding: 12px;
}

.context-highlight .context-title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
}

.context-highlight .context-sub {
  color: #5f6972;
  font-size: 0.92rem;
  font-weight: 700;
  margin: 8px 0 0;
}

.featured-product {
  background: #eef7ff;
  border: 1px solid #cfe5f7;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  padding: 14px;
}

.featured-product .featured-cta {
  font-size: 0.95rem;
  padding: 11px 16px;
}

.decision-cta-row {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.decision-cta-row a {
  text-align: center;
}

.more-products-label {
  color: #51606d;
  font-size: 0.92rem;
  font-weight: 700;
  margin: 14px 0 8px;
}

.product-list {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.secondary-products {
  margin-top: 0;
}

.product {
  flex: 1;
  background: #f5f5f5;
  padding: 14px 12px;
  border-radius: 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product p {
  font-size: 14px;
  margin: 0;
}

.product .product-name {
  font-size: 15px;
  font-weight: 800;
  color: #1f2f3a;
}

.product .product-desc {
  font-size: 13px;
  color: #6b7680;
  line-height: 1.45;
}

.product-secondary .btn-primary {
  font-size: 13px;
  padding: 9px 12px;
}

.store-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.store-item {
  background: #f7fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.store-item h3 {
  margin: 10px 0 8px;
}

.store-image {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: #e9eff5;
  border-radius: 10px;
  color: #4d6372;
  display: flex;
  font-weight: 700;
  justify-content: center;
}

.coming-label {
  background: #eef4f9;
  border: 1px solid #d6e2ec;
  border-radius: 999px;
  color: #3c566a;
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 4px 10px;
}

.store-search-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

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

.situation-chip {
  background: #eef4f9;
  border: 1px solid #d6e2ec;
  border-radius: 999px;
  color: #153041;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 12px;
}

.situation-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.product-store-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.store-product-name {
  color: #1c2f3e;
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
}

.store-product-desc {
  color: #66717b;
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

.product-store-item .btn-primary {
  align-self: flex-start;
}

@media (min-width: 640px) {
  .mode-grid,
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .decision-cta-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 639px) {
  .product-list {
    flex-direction: column;
  }

  .top-nav {
    justify-content: flex-start;
  }
}
