:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --hero: #1c2433;
  --hero-text: #f8fafc;
  --hero-muted: #cbd5e1;
  --accent: #2563eb;
  --live: #059669;
  --live-bg: #ecfdf5;
  --radius: 1rem;
  --radius-lg: 1.25rem;
  --shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    "Pretendard",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

.page {
  width: min(40rem, 100%);
  margin: 0 auto;
  padding: max(1.25rem, env(safe-area-inset-top)) 1.1rem
    calc(1.5rem + env(safe-area-inset-bottom));
}

.hero {
  margin: 0 0 1.75rem;
  padding: 1.65rem 1.35rem 1.45rem;
  border-radius: var(--radius-lg);
  background: var(--hero);
  color: var(--hero-text);
  box-shadow: var(--shadow);
}

.hero-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.85rem, 3.5vw, 1.5rem);
}

.hero-copy {
  min-width: 0;
  max-width: none;
}

.hero-brand {
  --hero-lockup-size: clamp(2.35rem, 10vw, 3.15rem);
  --hero-lockup-gap: 0.72rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  flex-shrink: 0;
  margin: 0;
  font-size: var(--hero-lockup-size);
  font-weight: 800;
  line-height: 1;
  gap: var(--hero-lockup-gap);
}

.hero-ux {
  font-size: 1em;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--hero-text);
}

/* pwa 글자 폭 기준 — 아이콘(바 전체 ≈ 글자+8%)과 동일 */
.hero-brand-pwa-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* gap: var(--hero-lockup-gap); */
  font-size: calc(1em * 120 / 132);
  line-height: 1;
}

.hero-brand-bars {
  display: flex;
  align-items: center;
  gap: 0.125em;
  width: calc(100% + 0.22em);
  margin: 0;
}

.hero-brand-bars span {
  flex: 1 1 0;
  min-width: 0;
  height: 0.19em;
  border-radius: 999px;
  background: #2dd4bf;
}

.hero-brand-bars span:nth-child(1) {
  opacity: 0.45;
}

.hero-brand-bars span:nth-child(2) {
  opacity: 0.75;
}

.hero-brand-bars span:nth-child(3) {
  opacity: 1;
}

.hero-pwa {
  font-size: inherit;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--hero-text);
  text-transform: lowercase;
}

.hero-headline {
  margin: 0 0 0.65rem;
  font-size: clamp(1.2rem, 4.2vw, 1.5rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--hero-text);
}

.hero-body {
  margin: 0;
  font-size: clamp(0.92rem, 3.2vw, 1.02rem);
  line-height: 1.55;
  color: var(--hero-muted);
}

@media (max-width: 22rem) {
  .hero-intro {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
}

.hero-tagline {
  margin: 1.15rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: clamp(0.88rem, 3vw, 0.95rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: #e2e8f0;
  text-align: center;
}

.section {
  margin-bottom: 1.75rem;
}

.section-title {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.section-title-support {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.heart {
  color: #e11d48;
  font-size: 1.1rem;
}

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 100%;
  padding: 1.1rem 1.05rem;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}

.service-card:hover {
  border-color: #bfdbfe;
  transform: translateY(-1px);
}

.service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-width: 0;
}

.service-head-main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.service-icon {
  display: block;
  flex-shrink: 0;
  width: 2.625rem;
  height: 2.625rem;
}

.service-icon img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
  object-fit: cover;
}

.service-url {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
  word-break: break-all;
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.service-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.service-desc {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.45;
  text-align: left;
}

.badge {
  flex-shrink: 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-live {
  color: var(--live);
  background: var(--live-bg);
}

.badge-soon {
  color: #c2410c;
  background: #fff7ed;
}

.section-support {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.support-lede {
  margin: -0.35rem 0 1rem;
  font-size: 0.98rem;
  color: var(--muted);
}

.support-grid {
  grid-template-columns: 1fr;
}

.support-grid .service-name {
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.card-cta {
  margin-top: 0.15rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
}

.site-footer {
  margin-top: 0.5rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0.25rem 0;
}

.footer-contact a {
  color: var(--muted);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--accent);
}

.app-update-banner[hidden] {
  display: none !important;
}

.app-update-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 2200;
  display: block;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
  background: var(--hero);
  color: #fff;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
}

.app-update-banner-text {
  margin: 0;
  font-size: clamp(1.25rem, 4.5vw, 1.45rem);
  font-weight: 800;
}

.app-update-banner-sub {
  margin: 0.35rem 0 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--hero-muted);
}

.app-update-banner .big-btn {
  max-width: 20rem;
  margin: 0 auto;
}

.big-btn {
  display: block;
  width: 100%;
  min-height: 3rem;
  border-radius: 0.85rem;
  border: 2px solid transparent;
  padding: 0.85rem 1.1rem;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
  font-family: inherit;
}

.big-btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: #1d4ed8;
}

.app-update-complete-dialog {
  width: min(22rem, calc(100% - 2rem));
  padding: 1.25rem;
  border: none;
  border-radius: var(--radius-lg);
}

.app-update-complete-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.dialog-title {
  margin: 0 0 0.55rem;
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
}

.dialog-help {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--muted);
}