:root {
  color-scheme: light;
  --ink: #0d3b31;
  --body: #243d37;
  --muted: #64736e;
  --surface: #ffffff;
  --background: #fffdf8;
  --mist: #eef6f1;
  --line: #cfe0d7;
  --forest: #124d3c;
  --deep-forest: #0d3b31;
  --coral: #df5f43;
  --coral-dark: #b94631;
  --coral-soft: #fff0e8;
  --teal: #277e86;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

a { color: var(--deep-forest); }

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  padding: 6px 0 20px;
  font-size: .95rem;
}

.site-nav a {
  color: var(--deep-forest);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible { text-decoration: underline; }

.site-nav a[aria-current="page"] { color: var(--coral-dark); }

.hero,
.section,
.support {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
}

.support {
  padding: clamp(30px, 5vw, 58px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  min-height: 620px;
  overflow: hidden;
}

.hero-copy {
  padding: clamp(38px, 6vw, 76px);
  align-self: center;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  background: linear-gradient(160deg, var(--mist), #f8eee7);
  overflow: hidden;
}

.app-icon {
  position: absolute;
  top: 54px;
  right: 54px;
  width: 108px;
  height: 108px;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(13, 59, 49, .18);
  z-index: 2;
}

.journey-art {
  width: 115%;
  max-width: 760px;
  transform: translate(4%, 6%);
}

.hero-compact {
  grid-template-columns: 1fr;
  min-height: 0;
}

.hero-compact .hero-copy { max-width: 900px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.2;
}

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 7rem);
  letter-spacing: -.055em;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  letter-spacing: -.04em;
}

h3 {
  margin: 14px 0 8px;
  font-size: 1.25rem;
}

.hero-line {
  margin: 18px 0 0;
  color: var(--coral-dark);
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  font-weight: 800;
  line-height: 1.35;
}

.hero-line span { display: block; word-break: keep-all; overflow-wrap: break-word; }

.lede {
  word-break: keep-all;
  overflow-wrap: break-word;
  max-width: 650px;
  margin: 22px 0 0;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.notice {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 17px;
  border-radius: 12px;
  background: var(--forest);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.button:hover,
.button:focus-visible { background: var(--deep-forest); }

.button-secondary {
  border: 1px solid var(--line);
  background: var(--mist);
  color: var(--deep-forest);
}

.button-secondary:hover,
.button-secondary:focus-visible { background: #e4f0e9; }

.section {
  margin-top: 24px;
  padding: clamp(30px, 5vw, 58px);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.feature-grid,
.roadmap-grid,
.platform-grid,
.contact-panel {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

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

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

.feature-grid article,
.roadmap-grid article,
.platform-grid article,
.contact-panel > div {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.number {
  color: var(--coral-dark);
  font-weight: 900;
  font-size: .9rem;
}

.feature-grid p,
.roadmap-grid p,
.platform-grid p,
.contact-panel p {
  margin: 0;
}

.visual-section {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: 28px;
  overflow: hidden;
}

.visual-section img {
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  border-radius: 22px;
  background: var(--mist);
}

.visual-copy p:last-child {
  max-width: 520px;
  margin: 20px 0 0;
  font-size: 1.08rem;
}

.status {
  display: inline-flex;
  width: max-content;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--mist);
  color: var(--deep-forest);
  font-size: .8rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-live {
  background: #e5f3ea;
  color: var(--forest);
}

.status-next {
  background: var(--coral-soft);
  color: var(--coral-dark);
}

.roadmap-current article {
  border-top: 4px solid var(--coral);
}

.roadmap-list {
  display: grid;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.roadmap-list > div {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) 1.5fr;
  gap: 24px;
  padding: 20px 2px;
  border-bottom: 1px solid var(--line);
}

.roadmap-list strong { color: var(--ink); }

.support-callout {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  background: var(--mist);
}

.support-callout p { margin: 10px 0 0; }

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

.contact-panel h2 {
  margin-top: 16px;
  font-size: 1.45rem;
  letter-spacing: -.02em;
}

.contact-panel a {
  font-size: 1.08rem;
  font-weight: 800;
}

.support-grid ul { margin-bottom: 0; }

.safety-note {
  margin: 20px auto 0;
  max-width: 920px;
  color: var(--muted);
  text-align: center;
  font-size: .9rem;
}

footer {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 34px 0 0;
  font-size: .92rem;
}

footer a { font-weight: 700; }

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
}

.privacy-content h2 {
  margin: 38px 0 12px;
  font-size: 1.45rem;
  letter-spacing: -.02em;
}

.privacy-content p + p { margin-top: 16px; }

ul { padding-left: 1.2em; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
}

.skip-link:focus {
  left: 8px;
  z-index: 10;
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.button:focus-visible,
.site-nav a:focus-visible,
footer a:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  main {
    width: min(100% - 24px, 720px);
    padding-top: 12px;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
  }

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

  .hero-art {
    min-height: 390px;
    order: -1;
  }

  .app-icon {
    width: 84px;
    height: 84px;
    top: 24px;
    right: 24px;
    border-radius: 19px;
  }

  .hero-copy { padding: 34px 26px 40px; }

  h1 { font-size: clamp(3.1rem, 18vw, 5rem); }

  .feature-grid,
  .roadmap-grid,
  .platform-grid,
  .contact-panel,
  .visual-section {
    grid-template-columns: 1fr;
  }

  .visual-section img { order: -1; }

  .roadmap-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .section-heading,
  .support-callout {
    flex-direction: column;
  }

  .section,
  .support { border-radius: 20px; padding: 30px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Fallback if a public image temporarily fails to load. */
.hero-art.asset-fallback {
  min-height: 520px;
  background: linear-gradient(150deg, var(--mist), #f8eee7);
}
.hero-art.asset-fallback::before {
  content: "TRIP119";
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  border-radius: 34px;
  background: var(--forest);
  color: #fff;
  font-weight: 900;
  letter-spacing: -.04em;
  box-shadow: 0 18px 50px rgba(13,59,49,.16);
}
.hero-art.asset-fallback::after {
  content: "계획이 바뀌어도, 다음 선택은 이어집니다.";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 58px;
  color: var(--deep-forest);
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
}
.visual-section.asset-fallback::after {
  content: "상황 변화 → 조건 확인 → 후보 비교 → 여행 이어가기";
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 32px;
  border-radius: 22px;
  background: linear-gradient(150deg, var(--mist), #f8eee7);
  color: var(--deep-forest);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 800;
  text-align: center;
}

.app-download { position: absolute; top: 32px; right: 32px; z-index: 3; display: grid; justify-items: center; gap: 10px; text-decoration: none; }
.app-download .app-icon { position: static; display: block; width: 80px; height: 80px; border-radius: 18px; box-shadow: 0 8px 24px rgba(13,59,49,.12); }
.download-label { display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--background); color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.app-download:hover .download-label { background: var(--mist); }
.app-download:focus-visible { outline: 3px solid var(--coral); outline-offset: 6px; border-radius: 18px; }
@media (max-width: 820px) {
 .app-download { top: 24px; right: 24px; gap: 8px; }
 .app-download .app-icon { width: 64px; height: 64px; border-radius: 14px; }
 .download-label { padding: 6px 9px; }
}
