* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #111827;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 90, 31, 0.14), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(14, 165, 233, 0.1), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #eef3f7 100%);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  word-break: keep-all;
}

body,
body * {
  letter-spacing: 0;
}

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

.detail-shell {
  display: grid;
  grid-template-columns: minmax(420px, 560px) minmax(360px, 620px);
  justify-content: center;
  min-height: 100vh;
}

.detail-rail {
  position: sticky;
  top: 0;
  display: flex;
  min-height: 100vh;
  align-items: flex-start;
  justify-content: center;
  padding: 16px 52px 42px;
}

.detail-promo {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 18px;
  width: min(420px, 100%);
}

.detail-poster {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 76% 12%, rgba(255, 255, 255, 0.32), transparent 19%),
    radial-gradient(circle at 18% 88%, rgba(255, 255, 255, 0.2), transparent 26%),
    linear-gradient(145deg, #ffb63f 0%, #ff6f21 46%, #9f4f2f 100%);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 24px;
  box-shadow:
    0 34px 74px rgba(104, 64, 24, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.detail-poster::before,
.detail-poster::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.detail-poster::before {
  width: 330px;
  height: 330px;
  right: -120px;
  bottom: -105px;
  background: rgba(17, 24, 39, 0.16);
}

.detail-poster::after {
  width: 240px;
  height: 240px;
  left: -82px;
  bottom: 54px;
  background: rgba(255, 255, 255, 0.14);
}

.detail-poster-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  color: rgba(55, 37, 20, 0.72);
  font-size: 24px;
  font-weight: 950;
}

.detail-poster-top span {
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.44);
}

.detail-poster-title {
  position: relative;
  z-index: 1;
  margin: 34px 0 0;
  font-size: 66px;
  line-height: 0.9;
  font-weight: 950;
  text-shadow: 0 12px 28px rgba(78, 39, 14, 0.2);
}

.detail-poster-title strong {
  display: block;
}

.detail-poster-card {
  position: relative;
  z-index: 1;
  margin-top: 46px;
  padding: 22px;
  color: #21160e;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  box-shadow:
    0 18px 36px rgba(75, 38, 15, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

.detail-poster-card span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #ed4b12;
  font-size: 14px;
  font-weight: 950;
}

.detail-poster-card span::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #ff5a1f;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255, 90, 31, 0.12);
}

.detail-poster-card p {
  margin: 0;
  font-size: 26px;
  line-height: 1.22;
  font-weight: 950;
}

.detail-poster-payments {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.detail-poster-payments span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.detail-poster-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  padding: 8px 12px;
  color: #2b170b;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(75, 38, 15, 0.1);
  backdrop-filter: blur(8px);
}

.detail-promo-links {
  display: grid;
  gap: 12px;
}

.detail-promo-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 18px;
  color: #101828;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #dfe5eb;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  font-size: 16px;
  font-weight: 950;
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.detail-promo-label {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-promo-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ff5a1f;
  background: rgba(255, 90, 31, 0.12);
  border-radius: 12px;
}

.detail-promo-main .detail-promo-icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.detail-promo-icon i,
.detail-promo-icon svg {
  width: 18px;
  height: 18px;
}

.detail-promo-button:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 90, 31, 0.55);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
}

.detail-promo-main {
  color: #fff;
  background: linear-gradient(135deg, #ff5a1f, #ed4b12);
  border-color: transparent;
}

.detail-promo-arrow {
  font-size: 24px;
  line-height: 1;
}

.page {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0 0 112px;
  background: #fff;
  border-inline: 1px solid #dde2e7;
  box-shadow: 0 0 34px rgba(15, 23, 42, 0.1);
}

.app-header,
.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
  margin-bottom: 0;
  padding: 0 26px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(229, 231, 235, 0.78);
  backdrop-filter: blur(14px);
}

.logo,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff5a1f;
  font-size: 20px;
  font-weight: 950;
}

.header-leading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.page-back {
  display: inline-grid;
  flex: none;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #111827;
  background: #fff;
  border: 1px solid #d7dee7;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page-back:hover {
  color: #ff5a1f;
  border-color: rgba(255, 90, 31, 0.45);
  transform: translateX(-2px);
}

.page-back i,
.page-back svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.logo-text {
  display: grid;
  gap: 1px;
  line-height: 1.05;
}

.logo-text small {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
}

.logo-mark,
.brand-mark {
  width: 18px;
  height: 18px;
  background: #ff5a1f;
  border-radius: 5px 5px 5px 1px;
  transform: rotate(45deg);
}

.login-btn,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  color: #111827;
  background: #fff;
  border: 1px solid #b8c1cc;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.login-btn:hover,
.nav-cta:hover {
  border-color: #ff5a1f;
  transform: translateY(-1px);
}

.page-search {
  padding: 16px 26px 0;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 50px 0 20px;
  border: 1.5px solid #ff5a1f;
  border-radius: 999px;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.search-box:focus-within {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(255, 90, 31, 0.16);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #374151;
  font-size: 16px;
  font-weight: 600;
}

.search-icon {
  position: absolute;
  right: 8px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: #ff5a1f;
  border: 0;
  border-radius: 50%;
  font-size: 17px;
  font-weight: 950;
  cursor: pointer;
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  pointer-events: none;
  background: transparent;
}

.search-modal.is-open {
  display: block;
  pointer-events: auto;
}

.search-panel {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(620px, 100%);
  height: 100vh;
  padding: 64px 26px 42px;
  overflow-y: auto;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
  transform: translateX(calc(-50% + 280px));
}

.search-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #4b5563;
  background: transparent;
  border: 0;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.modal-search-box {
  margin-bottom: 26px;
}

.search-section {
  margin-top: 28px;
}

.search-section h2 {
  margin: 0 0 18px;
  font-size: 18px;
}

.concern-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 14px;
  margin-bottom: 24px;
}

.concern-link {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
}

.concern-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: #fff3eb;
  border-radius: 12px;
  color: #ff5a1f;
  box-shadow: inset 0 0 0 1px rgba(255, 90, 31, 0.08);
}

.concern-icon i,
.concern-icon svg {
  width: 21px;
  height: 21px;
  color: currentColor;
  stroke-width: 1.8;
}

.more-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  color: #111827;
  background: #f4f4f5;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
}

.popular-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.popular-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  color: #111827;
  background: #f4f4f5;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

.popular-tag:hover {
  transform: translateY(-2px);
  background: #fff3eb;
}

.article {
  overflow: hidden;
  margin: 16px 26px 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.article-inner {
  padding: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  color: #ff5a1f;
  background: #fff3eb;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
}

h1 {
  margin: 18px 0 10px;
  font-size: 44px;
  line-height: 1.18;
}

.updated {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  margin: 30px 0 18px;
  padding: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.22), transparent 28%),
    radial-gradient(circle at 18% 92%, rgba(255, 90, 31, 0.44), transparent 34%),
    linear-gradient(135deg, #111827, #2f2f2f 54%, #0f172a);
  border-radius: 20px;
  display: grid;
  align-content: end;
}

.hero-visual::before {
  content: "";
  position: absolute;
  right: -72px;
  top: -70px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 36px rgba(255, 255, 255, 0.04);
}

.hero-visual::after {
  content: "QR";
  position: absolute;
  right: 36px;
  top: 34px;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, #19e68a, #fff);
  border-radius: 24px;
  font-size: 34px;
  font-weight: 950;
  transform: rotate(-7deg);
}

.visual-title {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0;
  font-size: 52px;
  line-height: 1.12;
  font-weight: 950;
}

.caption {
  margin: 0 0 28px;
  color: #94a3b8;
  text-align: center;
  font-size: 13px;
}

.content {
  display: grid;
  gap: 18px;
  color: #1f2937;
  font-size: 17px;
  line-height: 1.8;
}

.content h2 {
  margin: 24px 0 0;
  font-size: 25px;
  line-height: 1.3;
}

.highlight {
  padding: 18px;
  background: #fff7f1;
  border: 1px solid #ffe1cf;
  border-radius: 16px;
  color: #9a3412;
  font-weight: 850;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #edf0f3;
  border-radius: 14px;
  font-weight: 750;
}

.faq {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

details {
  background: #fff;
  border: 1px solid #edf0f3;
  border-radius: 14px;
}

summary {
  padding: 17px;
  cursor: pointer;
  font-weight: 950;
}

details p {
  margin: 0;
  padding: 0 17px 17px;
  color: #64748b;
  line-height: 1.7;
}

.cta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 14px;
  font-weight: 950;
}

.kakao {
  color: #191600;
  background: #fee500;
}

.phone {
  color: #fff;
  background: linear-gradient(135deg, #ff5a1f, #ed4b12);
}

.footer {
  padding: 34px 26px 106px;
  color: #64748b;
  background: #fafafa;
  border-top: 1px solid #eee;
  font-size: 13px;
  line-height: 1.7;
}

.footer strong {
  color: #111827;
  font-size: 16px;
}

.footer p {
  margin: 4px 0 0;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(620px, 100%);
  height: 72px;
  transform: translateX(calc(-50% + 280px));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #e6e6e6;
  backdrop-filter: blur(12px);
}

.bottom-nav a {
  display: grid;
  place-items: center;
  gap: 4px;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
}

.bottom-nav a.active {
  color: #111;
}

.bottom-nav .nav-icon {
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 1080px) {
  .detail-shell {
    grid-template-columns: minmax(360px, 420px) minmax(360px, 620px);
  }

  .detail-rail {
    padding-inline: 28px;
  }

  .detail-poster {
    min-height: 460px;
    padding: 28px;
  }

  .detail-poster-title {
    font-size: 56px;
  }
}

@media (max-width: 980px) {
  body {
    background: #fff;
  }

  .detail-shell {
    display: block;
  }

  .detail-rail {
    display: none;
  }

  .page {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    border-inline: 0;
  }

  .bottom-nav {
    left: 0;
    transform: none;
    width: 100%;
  }

  .search-panel {
    left: 0;
    width: 100%;
    transform: none;
  }
}

@media (max-width: 560px) {
  .page {
    width: 100%;
  }

  .app-header,
  .top-nav {
    height: 58px;
    padding: 0 14px;
    gap: 10px;
  }

  .header-leading {
    gap: 8px;
  }

  .page-back {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }

  .logo {
    gap: 7px;
    font-size: 18px;
  }

  .logo-text small {
    font-size: 10px;
  }

  .login-btn,
  .nav-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .article {
    margin: 12px 14px 0;
    border-radius: 16px;
  }

  .page-search {
    padding: 12px 14px 0;
  }

  .search-box {
    height: 48px;
    padding-left: 16px;
  }

  .search-box input::placeholder {
    color: #7b8794;
  }

  .search-panel {
    padding: 66px 18px 36px;
  }

  .concern-grid {
    gap: 20px 8px;
  }

  .concern-link {
    font-size: 12px;
  }

  .popular-tags {
    gap: 8px;
  }

  .popular-tag {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  .article-inner {
    padding: 22px 18px;
  }

  .eyebrow {
    min-height: 30px;
    font-size: 12px;
  }

  h1 {
    margin-top: 16px;
    font-size: 30px;
    line-height: 1.26;
  }

  .updated {
    font-size: 13px;
  }

  .hero-visual {
    min-height: 270px;
    margin: 24px 0 16px;
    padding: 22px;
    border-radius: 18px;
  }

  .hero-visual::after {
    right: 20px;
    top: 20px;
    width: 84px;
    height: 84px;
    border-radius: 18px;
    font-size: 28px;
  }

  .visual-title {
    max-width: 300px;
    font-size: 34px;
    line-height: 1.16;
  }

  .caption {
    margin-bottom: 22px;
    font-size: 12px;
    line-height: 1.5;
  }

  .content {
    gap: 16px;
    font-size: 16px;
    line-height: 1.85;
  }

  .content h2 {
    margin-top: 22px;
    font-size: 22px;
    line-height: 1.38;
  }

  .highlight {
    padding: 16px;
    border-radius: 14px;
    line-height: 1.65;
  }

  .check-list li {
    padding: 15px;
    line-height: 1.65;
  }

  summary {
    padding: 17px 15px;
    font-size: 15px;
    line-height: 1.55;
  }

  details p {
    padding: 0 15px 17px;
    font-size: 15px;
    line-height: 1.75;
  }

  .cta a {
    min-height: 54px;
    font-size: 15px;
  }

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

  .footer {
    padding-inline: 18px;
    font-size: 13px;
  }

  .bottom-nav {
    height: 74px;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .bottom-nav a {
    font-size: 12px;
  }
}
