@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

/* ===== CSS Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }

/* ===== Theme Variables ===== */
:root {
  --primary: #0058be;
  --primary-container: #006fee;
  --on-primary: #ffffff;
  --on-primary-container: #fefcff;
  --surface: #f9f9ff;
  --on-surface: #121c2c;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f0f3ff;
  --surface-container: #e7eeff;
  --surface-container-high: #dfe8ff;
  --surface-container-highest: #d9e3fa;
  --on-surface-variant: #414755;
  --outline: #717786;
  --outline-variant: #c1c6d7;
  --error: #ba1a1a;
  --error-container: #ffdad6;
  --secondary: #595f6a;
  --secondary-container: #dde2f1;
  --on-secondary-container: #5f6471;
  --primary-fixed: #d8e2ff;
  --on-primary-fixed: #001a42;
  --secondary-fixed: #dde2f1;
  --on-secondary-fixed: #161c26;
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== Base ===== */
body {
  font-family: var(--font);
  background: var(--surface);
  color: var(--on-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Layout ===== */
.page-wrapper {
  max-width: 448px;
  margin: 0 auto;
  background: var(--surface);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  overflow-x: hidden;
  padding-bottom: 96px;
}

/* ===== Top App Bar ===== */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(249,249,255,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(193,198,215,0.3);
}
.top-bar-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 700;
  font-size: 16px;
}
.top-bar-btn {
  padding: 8px;
  border-radius: 50%;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.top-bar-btn:hover { background: rgba(0,0,0,0.05); }
.top-bar-btn svg { width: 24px; height: 24px; }

/* ===== Bottom Nav Bar ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 448px;
  margin: 0 auto;
  background: var(--surface);
  border-top: 1px solid rgba(193,198,215,0.3);
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 50;
}
.bottom-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bottom-nav-btn {
  flex: 1;
  background: var(--primary);
  color: var(--on-primary);
  padding: 14px 0;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  transition: background 0.15s, transform 0.1s;
  display: block;
}
.bottom-nav-btn:hover { background: var(--primary-container); }
.bottom-nav-btn:active { transform: scale(0.98); }

/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 320px;
  background: #000;
  overflow: hidden;
}
.hero-tall { height: 480px; }
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2) 50%, transparent);
}
.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  color: #fff;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero h1 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}
.hero-tall h1 { font-size: 36px; }
.hero p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

/* ===== Section ===== */
.section {
  padding: 20px;
}
.section-bg { background: var(--surface-container-lowest); }
.section-border { border-top: 1px solid rgba(193,198,215,0.3); }
.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}
.section-title-lg {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}
.section-subtitle {
  font-size: 14px;
  color: var(--on-surface-variant);
  margin-top: 8px;
}

/* ===== Cards ===== */
.card {
  background: var(--surface-container-lowest);
  border-radius: 16px;
  border: 1px solid rgba(193,198,215,0.3);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  overflow: hidden;
}
.card-body { padding: 16px; }
.card + .card { margin-top: 16px; }

/* Feature Card (Home) */
.feature-card {
  display: block;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, transform 0.1s;
}
.feature-card:hover { box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.feature-card:active { transform: scale(0.98); }
.feature-card-img {
  height: 280px;
  width: 100%;
}
.feature-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.feature-card:hover .feature-card-img img { opacity: 0.8; }
.feature-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4) 50%, transparent);
}
.feature-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  color: #fff;
}
.feature-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.feature-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card-icon svg { width: 20px; height: 20px; color: #fff; }
.feature-card h3 {
  font-size: 24px;
  font-weight: 700;
}
.feature-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
}
.feature-card li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.feature-card li svg { width: 16px; height: 16px; flex-shrink: 0; }
.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 8px 16px;
  border-radius: 9999px;
  margin-top: 16px;
  transition: background 0.15s;
}
.feature-card:hover .cta-pill { background: rgba(255,255,255,0.3); }
.cta-pill svg { width: 16px; height: 16px; }

/* ===== List Item (Home services) ===== */
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-container-lowest);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(193,198,215,0.3);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: transform 0.1s;
}
.list-item:active { transform: scale(0.98); }
.list-item + .list-item { margin-top: 16px; }
.list-item-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.list-item-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.list-item-icon svg { width: 28px; height: 28px; }
.list-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.list-item p { font-size: 14px; color: var(--on-surface-variant); }
.list-item-arrow { color: var(--outline); }
.list-item-arrow svg { width: 24px; height: 24px; }

/* ===== Grid ===== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.grid-2.gap-lg { gap: 16px; }

/* ===== Highlight Card ===== */
.highlight-card {
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.highlight-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.highlight-card-icon svg { width: 20px; height: 20px; }
.highlight-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.highlight-card p { font-size: 14px; line-height: 1.6; }

/* ===== Stat Card (centered icon) ===== */
.stat-card {
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}
.stat-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.stat-card-icon svg { width: 20px; height: 20px; }
.stat-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.stat-card p { font-size: 12px; }

/* ===== Carousel ===== */
.carousel-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 16px;
  padding-bottom: 16px;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}
.carousel-wrapper::-webkit-scrollbar { display: none; }
.carousel-wrapper { -ms-overflow-style: none; scrollbar-width: none; }
.carousel-item {
  scroll-snap-align: center;
  flex-shrink: 0;
  width: 260px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-container-lowest);
  border: 1px solid rgba(193,198,215,0.3);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.carousel-item-img {
  height: 160px;
  overflow: hidden;
}
.carousel-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-item-body { padding: 16px; }
.carousel-item-step {
  font-size: 12px;
  font-weight: 700;
  color: #ea580c;
  margin-bottom: 4px;
}
.carousel-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.carousel-item p { font-size: 12px; color: var(--on-surface-variant); }

/* ===== Icon Carousel Image (Care process) ===== */
.carousel-icon-img {
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.carousel-icon-img svg { width: 48px; height: 48px; }
.carousel-icon-img span { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; }

/* ===== Step / Timeline ===== */
.step-list { display: flex; flex-direction: column; gap: 12px; }
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--surface-container-lowest);
  border-radius: 12px;
  border: 1px solid rgba(193,198,215,0.3);
}
.step-item svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--primary); }
.step-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.step-item p { font-size: 14px; color: var(--on-surface-variant); }

/* ===== Product Card (CarSeat) ===== */
.product-card {
  background: var(--surface-container-lowest);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(193,198,215,0.3);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.product-card + .product-card { margin-top: 16px; }
.product-card-img {
  height: 192px;
  background: var(--surface-container-low);
  overflow: hidden;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card-body { padding: 16px; }
.product-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.product-card-age { font-size: 12px; font-weight: 700; color: #db2777; margin-bottom: 4px; }
.product-card h3 { font-size: 18px; font-weight: 700; }
.product-card-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.product-card ul { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.product-card li { font-size: 14px; color: var(--on-surface-variant); }

/* ===== Shuttle Schedule ===== */
.shuttle-card {
  background: var(--surface-container-lowest);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(193,198,215,0.3);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.shuttle-card + .shuttle-card { margin-top: 16px; }
.shuttle-route {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.shuttle-route::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: #dbeafe;
}
.shuttle-stop {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.shuttle-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: #3b82f6;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.shuttle-label { font-size: 14px; font-weight: 700; color: #3b82f6; width: 32px; }
.shuttle-name { font-size: 18px; font-weight: 700; }
.shuttle-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(193,198,215,0.3);
  padding-top: 16px;
}
.shuttle-times { display: flex; gap: 20px; }
.shuttle-time-label { font-size: 12px; color: var(--on-surface-variant); margin-bottom: 2px; }
.shuttle-time-value { font-size: 18px; font-weight: 700; }
.shuttle-time-value span { font-size: 12px; font-weight: 400; color: var(--on-surface-variant); }
.shuttle-interval {
  background: #3b82f6;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* ===== Comparison Grid ===== */
.compare-card {
  border-radius: 16px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.compare-card-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
}
.compare-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.compare-card h3 svg { width: 16px; height: 16px; }
.compare-card ul { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }

/* ===== FAQ Button ===== */
.faq-btn {
  margin-top: 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(193,198,215,0.5);
  color: var(--on-surface-variant);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, transform 0.1s;
}
.faq-btn:hover { background: var(--surface-container-low); }
.faq-btn:active { transform: scale(0.98); }
.faq-btn svg { width: 16px; height: 16px; }

/* ===== Utility ===== */
.space-y > * + * { margin-top: 16px; }
.space-y-sm > * + * { margin-top: 12px; }
.space-y-lg > * + * { margin-top: 24px; }
.text-primary { color: var(--primary); }
.text-on-surface-variant { color: var(--on-surface-variant); }
.text-outline { color: var(--outline); }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.w-full { width: 100%; }
.rounded-2xl { border-radius: 16px; }
.hidden { display: none; }

/* ===== Badge Colors ===== */
.badge-orange { background: rgba(249,115,22,0.2); border: 1px solid rgba(249,115,22,0.3); color: #fdba74; }
.badge-teal { background: rgba(20,184,166,0.2); border: 1px solid rgba(20,184,166,0.3); color: #5eead4; }
.badge-pink { background: rgba(236,72,153,0.2); border: 1px solid rgba(236,72,153,0.3); color: #f9a8d4; }
.badge-green { background: rgba(34,197,94,0.2); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }
.badge-blue { background: rgba(59,130,246,0.2); border: 1px solid rgba(59,130,246,0.3); color: #93c5fd; }
.badge-white { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.1); color: #fff; }
.badge-primary { background: rgba(0,88,190,0.2); border: 1px solid rgba(0,88,190,0.3); color: var(--primary-fixed); }

/* ===== Accent Cards ===== */
.accent-orange { background: #fff7ed; border: 1px solid #fed7aa; }
.accent-orange h3 { color: #7c2d12; }
.accent-orange p { color: rgba(124,45,18,0.8); }
.accent-orange .icon-wrap { background: #ffedd5; color: #ea580c; }

.accent-teal { background: #f0fdfa; border: 1px solid #99f6e4; }
.accent-teal h3 { color: #134e4a; }

.accent-blue { background: #eff6ff; border: 1px solid #bfdbfe; }

.icon-wrap {
  width: 24px; height: 24px;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-wrap svg { width: 24px; height: 24px; }

/* ===== SVG Icons inline ===== */
/* Lucide icons are inlined as SVG in HTML */
