:root {
  --ink: #19302c;
  --muted: #63726d;
  --cream: #f7f3ea;
  --paper: #fffdf8;
  --line: #dedbd0;
  --orange: #ff6e40;
  --orange-dark: #e8542a;
  --green: #0d6659;
  --yellow: #f7ca4b;
  --shadow: 0 18px 45px rgba(28, 51, 45, 0.12);
}

* { box-sizing: border-box; }

html { background: var(--cream); }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 231, 178, 0.72), transparent 30rem),
    radial-gradient(circle at 95% 100%, rgba(153, 213, 194, 0.48), transparent 26rem),
    var(--cream);
  font-family: "Gowun Dodum", sans-serif;
}

button { font: inherit; }

.app-shell { width: min(100% - 40px, 1080px); margin: 0 auto; padding: 26px 0 64px; }

.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(48px, 9vw, 94px); }

.brand { display: inline-flex; gap: 9px; align-items: center; padding: 0; color: var(--ink); background: transparent; border: 0; cursor: pointer; font-family: "Manrope", sans-serif; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; line-height: 1.1; text-align: left; }
.brand-mark { display: grid; width: 33px; height: 33px; place-items: center; color: var(--paper); background: var(--ink); border-radius: 50%; font-size: 20px; font-weight: 400; }
.prototype-badge { margin: 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: 0.04em; }

.screen { animation: rise 360ms ease both; }
.screen[hidden] { display: none; }
.screen.is-active { display: block; }

.hero-copy { max-width: 690px; }
.eyebrow { margin: 0 0 13px; color: var(--orange-dark); font-family: "DM Mono", monospace; font-size: 12px; letter-spacing: 0.08em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Manrope", sans-serif; letter-spacing: -0.06em; }
h1 { margin-bottom: 22px; font-size: clamp(43px, 7.3vw, 78px); line-height: 0.99; }
h1 em { color: var(--orange); font-style: normal; }
.hero-description, .screen-description { color: var(--muted); font-size: 17px; line-height: 1.7; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: clamp(42px, 6vw, 66px); }
.travel-choice { position: relative; min-height: 304px; overflow: hidden; padding: 26px; color: var(--ink); border: 0; border-radius: 24px; cursor: pointer; text-align: left; transition: transform 180ms ease, box-shadow 180ms ease; }
.travel-choice:hover, .travel-choice:focus-visible { outline: 0; transform: translateY(-6px) rotate(-0.5deg); box-shadow: var(--shadow); }
.value-choice { background: #ffcb4c; }
.relaxed-choice { color: #fffdf7; background: var(--green); }
.choice-number { display: block; color: rgba(25, 48, 44, 0.62); font-family: "DM Mono", monospace; font-size: 12px; }
.relaxed-choice .choice-number { color: rgba(255,255,255,0.64); }
.choice-icon { display: block; margin: 25px 0 20px; font-size: 47px; line-height: 1; }
.choice-title { display: block; font-family: "Manrope", sans-serif; font-size: clamp(27px, 3vw, 36px); font-weight: 800; letter-spacing: -0.065em; }
.choice-caption { display: block; margin-top: 10px; font-size: 14px; }
.choice-arrow { position: absolute; right: 25px; bottom: 18px; font-family: "Manrope", sans-serif; font-size: 33px; transition: transform 180ms ease; }
.travel-choice:hover .choice-arrow { transform: translateX(7px); }
.home-note { margin: 24px 0 0; color: var(--muted); font-size: 13px; }

.screen-heading { max-width: 650px; margin-bottom: 30px; }
.back-button { margin: 0 0 32px; padding: 0; color: var(--ink); border: 0; background: none; cursor: pointer; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
h2 { margin-bottom: 14px; font-size: clamp(35px, 5vw, 56px); line-height: 1; }
.screen-description { margin-bottom: 0; font-size: 15px; }

.mock-alert { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; padding: 13px 15px; border: 1px solid #f3cfaa; border-radius: 14px; background: #fff2df; color: #804727; font-size: 13px; line-height: 1.45; }
.mock-alert span { display: grid; flex: 0 0 auto; width: 18px; height: 18px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: serif; font-weight: 700; }
.mock-alert p { margin: 0; }

.city-list { display: grid; gap: 12px; }
.city-card { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: center; width: 100%; padding: 18px; color: var(--ink); border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 253, 248, 0.78); cursor: pointer; text-align: left; transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.city-card:hover, .city-card:focus-visible { outline: 0; border-color: var(--green); box-shadow: 0 10px 30px rgba(28, 51, 45, 0.09); transform: translateX(5px); }
.city-emoji { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: #e6f0e9; font-size: 26px; }
.city-name { display: block; margin-bottom: 4px; font-family: "Manrope", sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -0.05em; }
.city-meta { color: var(--muted); font-size: 13px; }
.city-arrow { font-family: "Manrope", sans-serif; font-size: 27px; }

.detail-heading { margin-bottom: 24px; }
.detail-city { display: flex; gap: 14px; align-items: center; margin-bottom: 24px; }
.detail-city > span { display: grid; width: 60px; height: 60px; place-items: center; border-radius: 18px; background: var(--ink); color: var(--paper); font-size: 29px; }
.detail-city p { margin-bottom: 3px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: 0.06em; }
.detail-city h3 { margin: 0; font-size: 31px; }
.cost-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cost-card { display: flex; flex-direction: column; min-height: 220px; padding: 20px; border-radius: 20px; }
.flight-card { background: #ffd7c8; }
.stay-card { background: #cce5db; }
.food-card { background: #ffe8a2; }
.cost-icon { display: block; margin-bottom: 20px; font-size: 25px; }
.cost-card p { margin-bottom: 8px; color: rgba(25, 48, 44, 0.7); font-size: 14px; }
.cost-card strong { display: block; font-family: "Manrope", sans-serif; font-size: 21px; letter-spacing: -0.05em; }
.cost-card small { display: block; margin-top: 9px; color: rgba(25, 48, 44, 0.72); font-size: 12px; line-height: 1.4; }
.reservation-link { display: inline-flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding: 10px 11px; color: var(--ink); border: 1px solid rgba(25, 48, 44, 0.34); border-radius: 10px; background: rgba(255, 253, 248, 0.58); font-family: "Manrope", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: -0.03em; text-decoration: none; transition: background 180ms ease, transform 180ms ease; }
.reservation-link:hover, .reservation-link:focus-visible { outline: 0; background: var(--paper); transform: translateY(-2px); }
.total-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 14px; padding: 23px 24px; border-radius: 20px; color: var(--paper); background: var(--ink); }
.total-card p { margin-bottom: 5px; font-family: "Manrope", sans-serif; font-size: 17px; font-weight: 700; }
.total-card small { color: rgba(255,255,255,0.64); font-size: 12px; }
.total-card strong { font-family: "Manrope", sans-serif; font-size: clamp(21px, 3vw, 28px); letter-spacing: -0.05em; }
.source-placeholder { margin-top: 16px; padding: 22px; border: 1px dashed #b8bdb5; border-radius: 19px; }
.source-placeholder .eyebrow { margin-bottom: 9px; }
.source-placeholder h3 { margin-bottom: 7px; font-size: 21px; }
.source-placeholder p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.source-list { display: grid; gap: 10px; }
.source-item { padding: 11px 12px; border-radius: 12px; background: rgba(255, 253, 248, 0.76); color: var(--muted); font-size: 12px; line-height: 1.55; }
.source-item strong { color: var(--ink); }
.source-item a { color: var(--green); font-weight: 700; text-underline-offset: 3px; }
.city-price { display: block; margin-top: 6px; color: var(--green); font-family: "Manrope", sans-serif; font-size: 13px; font-weight: 800; }
.city-price.is-loading, .city-price.is-error { color: var(--muted); font-family: "Gowun Dodum", sans-serif; font-weight: 400; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 640px) {
  .app-shell { width: min(100% - 28px, 1080px); padding-top: 18px; }
  .topbar { margin-bottom: 47px; }
  .prototype-badge { font-size: 9px; }
  .hero-description br { display: none; }
  .choice-grid { grid-template-columns: 1fr; margin-top: 38px; }
  .travel-choice { min-height: 217px; }
  .choice-icon { margin: 16px 0; }
  .cost-grid { grid-template-columns: 1fr; }
  .cost-card { min-height: 180px; }
  .total-card { align-items: flex-start; flex-direction: column; }
  .city-card { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 14px; }
  .city-emoji { width: 44px; height: 44px; }
}
