/* =========================================================
   Trips4U - Japanese Modern Minimalism
   ========================================================= */

/* ---------- 1. Design Tokens ---------- */
:root {
  --bg: #FAFAFA;
  --text: #1E1E1E;
  --indigo: #1D3557;
  --indigo-dark: #14263F;
  --indigo-soft: #EEF1F6;
  --red: #E63946;
  --red-dark: #B82A36;
  --red-soft: #FDECEE;
  --muted: #5B6270;
  --line: #E3E6EB;
  --card: #FFFFFF;

  --font-sans: 'Noto Sans KR', 'Hiragino Sans', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(29, 53, 87, 0.06);
  --shadow-md: 0 14px 36px rgba(29, 53, 87, 0.14);

  --header-h: 72px;
  --container: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

body.nav-locked {
  overflow: hidden;
}

h1, h2, h3, h4, h5, p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

button,
select {
  font-family: inherit;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--indigo);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s, color 0.25s, border-color 0.25s;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.92rem;
}

.btn-primary {
  background: var(--indigo);
  color: #fff;
}

.btn-primary:hover {
  background: var(--indigo-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(230, 57, 70, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--indigo);
  border-color: var(--indigo);
}

.btn-ghost:hover {
  color: var(--red-dark);
  border-color: var(--red);
  transform: translateY(-2px);
}

/* ---------- 4. Header & Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--indigo);
}
/* -------------로고
.logo-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px var(--red-soft);
  transition: transform 0.4s var(--ease);
}
--------- */
.logo-mark {
  width: 36px;
  height: 36px;
  color: var(--indigo);
  overflow: visible;
}

/* 바깥 궤도 링이 천천히 회전 */
.logo-mark .ring {
  transform-origin: 24px 24px;
  animation: logo-orbit 20s linear infinite;
}

/* 바늘: 평소엔 살짝 기울어져 있다가 호버 시 방향 탐색 */
.logo-mark .needle {
  transform-origin: 24px 24px;
  transform: rotate(35deg);
  transition: transform 0.8s var(--ease);
}

.logo:hover .logo-mark .needle {
  transform: rotate(395deg);
}

@keyframes logo-orbit {
  to { transform: rotate(360deg); }
}

.logo-light {
  color: #fff;
}

.logo-light .logo-mark {
  color: var(--indigo);
}

@media (prefers-reduced-motion: reduce) {
  .logo-mark .ring { animation: none; }
}

.logo:hover .logo-mark {
  transform: scale(1.15);
}

.logo-light {
  color: #fff;
}


.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav ul {
  display: flex;
  gap: 28px;
}

.site-nav li a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}

.site-nav li a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-nav li a:hover,
.site-nav li a.is-active {
  color: var(--indigo);
}

.site-nav li a:hover::after,
.site-nav li a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--indigo);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle-bar:nth-child(1) { top: 15px; }
.nav-toggle-bar:nth-child(2) { top: 21px; }
.nav-toggle-bar:nth-child(3) { top: 27px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 5. Section Common ---------- */
.section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.section-tint {
  background: var(--indigo-soft);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-dark);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--red);
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.section-desc {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

.sub-title {
  margin: 8px 0 24px;
  font-size: 1.25rem;
  color: var(--indigo);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

/* ---------- 6. Hero ---------- */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 112px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  margin: 4px 0 22px;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.accent {
  color: var(--indigo);
  background: linear-gradient(transparent 62%, rgba(230, 57, 70, 0.22) 62%);
}

.lead {
  max-width: 560px;
  font-size: 1.1rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.shift-list {
  display: grid;
  gap: 10px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 560px;
}

.shift-list li {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.shift-list .from {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
}

.shift-list .arrow {
  color: var(--red);
  font-weight: 700;
}

.shift-list .to {
  color: var(--indigo);
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 440px;
  display: grid;
  place-items: center;
}

.concept {
  position: absolute;
  top: 10%;
  right: 2%;
  width: 100%;
  aspect-ratio: 5 / 5;               /* 이미지 비율에 맞게 조정 */
  border-radius: 12%;
  background: url("../images/concept-image.png") center / contain no-repeat;
  animation: float 8s ease-in-out infinite;
}
.kanji {
  position: absolute;
  top: 50%;
  left: 2%;
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-size: clamp(72px, 10vw, 120px);
  font-weight: 70;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--indigo);
}
.device {
  position: relative;
  width: min(100%, 320px);
  margin-top: -450px;
  padding: 10px;
  background: #fff;
  background: rgba(255, 255, 255, 0.7);
  border: 5px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-md);
  transform: rotate(-3deg);
  transition: transform 0.5s var(--ease);
}

.hero-visual:hover .device {
  transform: rotate(0deg) translateY(-4px);
}

.device-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1px;
  font-weight: 100;
  color: var(--indigo);
}

.pill {
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red-dark);
  font-size: 0.75rem;
  font-weight: 700;
}

.device-list {
  display: grid;
  gap: 10px;
}

.device-list li {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 3px;
  border-radius: var(--radius-sm);
<!--ORG -->
  background: var(--indigo-soft);
<!--ORG -->
  background: rgba(255, 255, 255, 0.7);
}

.device-list time {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--indigo);
}

.device-list strong {
  display: block;
  font-size: 0.93rem;
  line-height: 1.35;
}

.device-list small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1;
}

.device-list em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--indigo);
}

.device-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1px;
  padding-top: 14px;
  border-top: -5px dashed var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

.device-foot strong {
  font-size: 1.15rem;
  color: var(--indigo);
}

/* ---------- 7. Problem & Solution ---------- */
.compare-list {
  display: grid;
  gap: 44px;
}

.compare-topic {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.compare-topic .num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--red);
}

.compare-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: stretch;
}

.compare-arrow {
  display: grid;
  place-items: center;
  color: var(--red);
  font-size: 1.5rem;
  font-weight: 700;
}

.compare-arrow::before {
  content: '↓';
}

.card-problem {
  border-top: 3px solid var(--red);
}

.card-solution {
  border-top: 3px solid var(--indigo);
  background: linear-gradient(180deg, var(--indigo-soft) 0%, #fff 70%);
}

.compare-pair .card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.compare-pair h4 {
  margin: 14px 0 8px;
  font-size: 1.1rem;
  line-height: 1.4;
}

.compare-pair p {
  color: var(--muted);
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tag-analog {
  background: var(--red-soft);
  color: var(--red-dark);
}

.tag-digital {
  background: var(--indigo);
  color: #fff;
}

/* ---------- 8. Interactive Demo ---------- */
.demo-controls {
  display: grid;
  gap: 28px 36px;
  padding: clamp(22px, 3vw, 36px);
}

.demo-controls:hover {
  transform: none;
}

.field legend {
  margin-bottom: 12px;
  padding: 0;
  font-weight: 700;
  color: var(--indigo);
}

.chip-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.chip {
  position: relative;
}

.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.chip label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 68px;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s, background-color 0.25s, color 0.25s;
}

.chip-title {
  font-weight: 700;
  line-height: 1.3;
}

.chip-sub {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.chip label:hover {
  transform: translateY(-2px);
  border-color: var(--indigo);
}

.chip input:checked + label {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #fff;
  box-shadow: 0 8px 20px rgba(29, 53, 87, 0.25);
}

.chip input:checked + label .chip-sub {
  color: rgba(255, 255, 255, 0.8);
}

.chip input:focus-visible + label {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.field-options {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.select-field {
  display: grid;
  gap: 8px;
  min-width: 160px;
}

.select-field label {
  font-weight: 700;
  color: var(--indigo);
}

.select-field select {
  appearance: none;
  -webkit-appearance: none;
  padding: 12px 44px 12px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231D3557' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.25s;
}

.select-field select:hover,
.select-field select:focus {
  border-color: var(--indigo);
}

.result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  margin: 44px 0 20px;
}

.result-head h3 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--indigo);
}

.result-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.demo-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

/* Summary */
.summary {
  order: -1;
}

.summary:hover {
  transform: none;
}

.summary-title {
  font-size: 1.05rem;
  color: var(--indigo);
}

.summary-label {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.summary-total {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--indigo);
}

.summary-per {
  margin-top: 4px;
  color: var(--muted);
}

.summary-per strong {
  color: var(--red-dark);
}

.breakdown {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
}

.breakdown-row small {
  margin-left: 6px;
  color: var(--muted);
}

.bar {
  height: 6px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--indigo-soft);
  overflow: hidden;
}

.bar > span {
  display: block;
  width: var(--w, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--indigo);
  animation: grow 0.7s var(--ease) both;
}

.breakdown-item.is-accent .bar > span {
  background: var(--red);
}

.summary-note {
  margin-top: 22px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Itinerary */
.itinerary {
  display: grid;
  gap: 32px;
}

.day-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.day-badge {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.day-head h4 {
  font-size: 1rem;
}

.day-sum {
  font-size: 0.88rem;
  color: var(--muted);
}

.spot-list {
  position: relative;
  display: grid;
  gap: 14px;
  padding-left: 22px;
  border-left: 2px dashed #C9CFD9;
}

.spot {
  position: relative;
  display: grid;
  gap: 8px 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.spot::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 26px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--indigo-soft);
}

.spot:hover {
  transform: translateX(4px);
  border-color: var(--indigo);
  box-shadow: var(--shadow-md);
}

.spot-slot {
  display: inline-block;
  justify-self: start;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--indigo-soft);
  color: var(--indigo);
  font-size: 0.78rem;
  font-weight: 700;
}

.spot-title {
  font-size: 1.05rem;
  line-height: 1.4;
}

.spot-area {
  font-size: 0.82rem;
  color: var(--red-dark);
  font-weight: 700;
}

.spot-desc {
  font-size: 0.92rem;
  color: var(--muted);
}

.spot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.mini-tag {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--indigo-soft);
  color: var(--indigo);
  font-size: 0.74rem;
}

.mini-tag.is-match {
  background: var(--red-soft);
  color: var(--red-dark);
  font-weight: 700;
}

.spot-cost {
  font-weight: 700;
  color: var(--indigo);
}

.spot-cost small {
  margin-left: 6px;
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--muted);
}

.spot-free {
  background: #F6F7F9;
  border-style: dashed;
  box-shadow: none;
}

/* ---------- 9. Tech & Workflow ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 64px;
}

.tech-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--indigo);
}

.tech-badge {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--indigo);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background-color 0.3s;
}

.tech-card:hover .tech-badge {
  background: var(--red);
}

.tech-card h4 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.tech-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.steps {
  display: grid;
  gap: 16px;
  margin-bottom: 40px;
  counter-reset: none;
}

.step {
  position: relative;
  padding: 24px 24px 24px 76px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-num {
  position: absolute;
  left: 20px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 700;
}

.step h4 {
  margin-bottom: 4px;
  font-size: 1.05rem;
  color: var(--indigo);
}

.step p {
  font-size: 0.92rem;
  color: var(--muted);
}

.terminal {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--indigo-dark);
  box-shadow: var(--shadow-md);
}

.terminal-title {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.06);
  color: #C9D3E3;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.terminal pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  color: #E8EDF5;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.8;
}

.terminal .prompt {
  margin-right: 10px;
  color: var(--red);
  font-weight: 700;
}

.terminal .comment {
  color: #8FA0BA;
}

/* ---------- 10. Footer ---------- */
.site-footer {
  background: var(--indigo);
  color: #E6EAF1;
  padding-top: clamp(48px, 7vw, 72px);
}

.footer-grid {
  display: grid;
  gap: 36px;
  padding-bottom: 40px;
}

.footer-brand p {
  max-width: 340px;
  margin-top: 14px;
  font-size: 0.92rem;
  color: #C9D3E3;
}

.footer-title {
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.footer-list {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}

.footer-list a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: color 0.2s, border-color 0.2s;
}

.footer-list a:hover {
  color: #fff;
  border-color: var(--red);
}

.copyright {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 0.82rem;
  color: #C9D3E3;
}

.footer-brand .logo:focus-visible {
  outline: 2px solid #fff;      /* 흰색으로 */
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .logo-mark {
  display: block;
  flex-shrink: 0;
}

/* ---------- 11. Animations ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

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

@keyframes grow {
  from { width: 0; }
}

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 12. Responsive ---------- */
@media (min-width: 600px) {
  .spot {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .spot-slot {
    grid-column: 1 / -1;
  }

  .spot-cost {
    grid-column: 2;
    grid-row: 2 / span 3;
    text-align: right;
  }

  .spot-body {
    grid-column: 1;
  }

  .step {
    padding-left: 80px;
  }
}

@media (min-width: 860px) {
  .compare-pair {
    grid-template-columns: 1fr 56px 1fr;
    gap: 0;
  }

  .compare-arrow::before {
    content: '→';
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .demo-controls {
    grid-template-columns: repeat(12, 1fr);
  }

  .field-city { grid-column: span 7; }
  .field-style { grid-column: span 5; }
  .field-options { grid-column: 1 / -1; }

  .demo-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  }

  .summary {
    order: 0;
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
  }

  .step {
    padding: 70px 20px 24px;
  }

  .step-num {
    left: 20px;
    top: 20px;
  }

  .step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -17px;
    top: 26px;
    z-index: 1;
    color: var(--red);
    font-weight: 700;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 8px 20px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav li a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav li a::after {
    display: none;
  }

  .nav-cta {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .hero-visual {
    min-height: 400px;
  }

  .shift-list li {
    grid-template-columns: 1fr;
    gap: 2px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--line);
  }

  .shift-list .arrow {
    display: none;
  }

  .card {
    padding: 22px;
  }
}

/* ---------- 13. Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}