:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #65726f;
  --line: #dbe4df;
  --surface: #ffffff;
  --surface-raised: rgba(255, 255, 255, 0.88);
  --soft: #f3f7f1;
  --green: #1c5d50;
  --green-strong: #123f37;
  --mint: #b9ddc4;
  --coral: #f26d5b;
  --gold: #e3aa35;
  --blue: #4f7dbd;
  --rose: #b84d6c;
  --shadow: 0 16px 48px rgba(23, 33, 31, 0.12);
  --focus: 0 0 0 3px rgba(79, 125, 189, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(238, 244, 239, 0.1) 360px),
    #eef4ef;
  color: var(--ink);
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a,
button,
select,
input,
.intent-tab {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
.intent-tab:focus-within {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--green-strong);
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

button,
select,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(28, 93, 80, 0.42), rgba(16, 44, 40, 0.2)),
    #102c28;
  color: #f5fbf7;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand,
.service-health {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: #102c28;
  font-weight: 900;
}

.brand strong,
.service-health strong {
  display: block;
  font-size: 15px;
}

.brand span,
.service-health span {
  display: block;
  color: #c6d9d2;
  font-size: 12px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-list a {
  color: #d9e9e3;
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 11px 12px;
  border-radius: 8px;
}

.nav-list a:hover,
.nav-list a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.service-health {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #72d986;
  box-shadow: 0 0 0 5px rgba(114, 217, 134, 0.16);
  flex: 0 0 auto;
}

main {
  min-width: 0;
}

.hero {
  padding: 28px 32px 0;
}

.hero-content {
  min-height: 460px;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  align-items: stretch;
  gap: 24px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px 8px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 16px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-copy p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-actions a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.hero-actions a:first-child {
  background: var(--green);
  color: #ffffff;
}

.hero-actions a:last-child {
  background: #ffffff;
  color: var(--green-strong);
  border: 1px solid var(--line);
}

.map-panel {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.28)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='650' viewBox='0 0 900 650'%3E%3Crect width='900' height='650' fill='%23d9e8dc'/%3E%3Cpath d='M-20 466 C116 408 154 514 287 456 C399 408 376 286 496 265 C631 242 657 356 782 324 C849 307 878 258 935 274' fill='none' stroke='%2398c7aa' stroke-width='74' stroke-linecap='round' opacity='.9'/%3E%3Cpath d='M42 152 L296 74 L416 161 L658 92 L875 171' fill='none' stroke='%23ffffff' stroke-width='28' stroke-linecap='round' opacity='.95'/%3E%3Cpath d='M78 586 L236 412 L394 470 L557 360 L826 522' fill='none' stroke='%23ffffff' stroke-width='24' stroke-linecap='round' opacity='.95'/%3E%3Cpath d='M-12 304 L186 255 L351 316 L496 255 L697 272 L930 224' fill='none' stroke='%23f5f2df' stroke-width='32' stroke-linecap='round' opacity='.95'/%3E%3Ccircle cx='655' cy='402' r='82' fill='%23b9ddc4' opacity='.82'/%3E%3Ccircle cx='210' cy='212' r='68' fill='%23f2c879' opacity='.72'/%3E%3C/svg%3E");
  background-size: cover;
  box-shadow: var(--shadow);
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 44, 40, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 44, 40, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
}

.map-panel svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.route-line {
  fill: none;
  stroke: var(--green-strong);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 14 14;
  animation: route-flow 1.8s linear infinite;
}

@keyframes route-flow {
  to {
    stroke-dashoffset: -28;
  }
}

.map-pin {
  position: absolute;
  z-index: 2;
  min-width: 64px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid rgba(16, 44, 40, 0.12);
  box-shadow: 0 10px 24px rgba(16, 44, 40, 0.14);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.pin-food {
  left: 13%;
  bottom: 24%;
  color: var(--coral);
}

.pin-cafe {
  left: 49%;
  top: 42%;
  color: var(--blue);
}

.pin-walk {
  right: 12%;
  top: 18%;
  color: var(--green);
}

.workspace,
.content-grid,
.automation-band {
  padding: 24px 32px;
}

.workspace {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.planner-card,
.results-panel,
.content-grid > article,
.automation-band {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(23, 33, 31, 0.06);
  backdrop-filter: blur(16px);
}

.planner-card,
.results-panel,
.content-grid > article {
  padding: 22px;
}

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

.planner-card {
  display: grid;
  gap: 18px;
}

label,
legend {
  color: var(--green-strong);
  font-size: 14px;
  font-weight: 800;
}

select,
input[type="range"] {
  width: 100%;
}

select {
  margin-top: 7px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  color: var(--ink);
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.chips,
.intent-tabs,
.activity-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.chips label,
.intent-tab,
.activity-chip {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  font-size: 12px;
}

.intent-tab,
.activity-chip {
  cursor: pointer;
  color: var(--green-strong);
}

.intent-tab input,
.activity-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.intent-tab span,
.activity-chip span {
  width: 100%;
  text-align: center;
  font-weight: 900;
}

.intent-tab:has(input:checked),
.activity-chip:has(input:checked) {
  border-color: var(--green);
  background: #e6f3e9;
  box-shadow: inset 0 0 0 1px var(--green);
}

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

.activity-chip {
  min-height: 46px;
}

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

.range-row {
  display: grid;
  gap: 8px;
}

.range-row label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

input[type="range"] {
  accent-color: var(--green);
}

.primary-action {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
  font-weight: 900;
}

.primary-action:hover {
  background: var(--green-strong);
}

.route-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.route-summary div {
  min-height: 84px;
  padding: 16px;
  border-radius: 8px;
  background: var(--soft);
  border: 1px solid #e3ece6;
}

.route-summary span,
.course-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.route-summary strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
}

.insight-box {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 8px;
  background: #f6fbf7;
  border: 1px solid #dcebe0;
}

.insight-box strong {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 8px;
  background: #dcf4e2;
  color: var(--green-strong);
  font-size: 12px;
}

.insight-box p,
.insight-box span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.insight-box b {
  color: var(--green-strong);
}

.route-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.route-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.route-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}

.route-meta strong {
  color: var(--green);
  font-size: 13px;
}

.route-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--green);
  font-weight: 900;
}

.route-item h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.route-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.signal-row span {
  padding: 5px 8px;
  border-radius: 8px;
  background: #eef4ff;
  color: #294d82;
  font-size: 12px;
  font-weight: 900;
}

.route-item a {
  display: inline-block;
  margin-top: 7px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.route-item a:hover,
.source-list a:hover,
.coverage-list a:hover {
  text-decoration: underline;
}

.score-pill {
  min-width: 64px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #fff7e6;
  color: #835b05;
  font-weight: 900;
  text-align: center;
}

.source-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.source-panel h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.source-list a {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  background: #fbfdfb;
}

.source-list strong {
  font-size: 13px;
}

.source-list span {
  color: var(--muted);
  font-size: 12px;
}

.source-list em {
  color: var(--blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.signal-band {
  margin: 0 32px 24px;
  padding: 22px;
  background: #132f2a;
  border-radius: 8px;
  color: #f6fbf8;
  box-shadow: var(--shadow);
}

.signal-band .eyebrow {
  color: #aee3bc;
}

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

.signal-card {
  min-height: 148px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.signal-card div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.signal-card strong {
  font-size: 16px;
}

.signal-card span {
  flex: 0 0 auto;
  padding: 5px 7px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
}

.signal-card .connected {
  background: #dff6e4;
  color: #164b2c;
}

.signal-card .pending {
  background: #fff1cc;
  color: #6b4a00;
}

.signal-card p {
  margin: 0;
  color: #d4e7df;
  font-size: 13px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

.course-list,
.review-list {
  display: grid;
  gap: 12px;
}

.course-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.course-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.course-card strong {
  color: var(--green);
  white-space: nowrap;
}

blockquote {
  min-height: 80px;
  margin: 0;
  padding: 16px;
  border-left: 4px solid var(--green);
  background: #fbfdfb;
  color: #384541;
  border-radius: 0 8px 8px 0;
}

.engine-list,
.coverage-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.engine-list li,
.coverage-list li {
  min-height: 64px;
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.engine-list strong,
.coverage-list span {
  color: var(--green-strong);
  font-size: 13px;
}

.engine-list span,
.coverage-list a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.coverage-band {
  margin: 0 32px 24px;
  padding: 22px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(23, 33, 31, 0.06);
}

.coverage-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.automation-band {
  margin: 0 32px 32px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
  align-items: center;
}

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

.automation-grid span {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--green-strong);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 16px 20px;
  }

  .nav-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .service-health {
    display: none;
  }

  .hero-content,
  .workspace,
  .content-grid,
  .automation-band,
  .signal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero,
  .workspace,
  .content-grid {
    padding: 18px;
  }

  .hero-content {
    min-height: auto;
  }

  .hero-copy {
    padding: 18px 0 4px;
  }

  h1 {
    font-size: 38px;
  }

  .hero-copy p:last-child {
    font-size: 16px;
  }

  .map-panel {
    min-height: 270px;
  }

  .nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chips,
  .intent-tabs,
  .activity-chips,
  .route-summary,
  .source-list,
  .automation-grid,
  .coverage-list {
    grid-template-columns: 1fr;
  }

  .route-item,
  .course-card,
  .control-grid {
    grid-template-columns: 1fr;
  }

  .route-summary div {
    min-height: 74px;
  }

  .score-pill {
    width: 100%;
  }

  .automation-band {
    margin: 0 18px 18px;
    padding: 18px;
  }

  .coverage-band {
    margin: 0 18px 18px;
    padding: 18px;
  }

  .signal-band {
    margin: 0 18px 18px;
    padding: 18px;
  }
}

@media (max-width: 420px) {
  .hero,
  .workspace,
  .content-grid {
    padding: 14px;
  }

  .planner-card,
  .results-panel,
  .content-grid > article,
  .coverage-band,
  .signal-band,
  .automation-band {
    padding: 16px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 21px;
  }

  .hero-actions a,
  .primary-action {
    width: 100%;
  }
}
