:root {
  --kakao-yellow: #fee500;
  --kakao-bubble-me: #fee500;
  --kakao-bubble-you: #ffffff;
  --kakao-header: #a8c0d8;
  --kakao-bg: #abc1d1;
  --ink: #191919;
  --muted: #5c6b7a;
  --accent: #0f766e;
  --red: #dc2626;
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: "Outfit", "Pretendard", sans-serif;
}

* {
  box-sizing: border-box;
}

body.review-page {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 40% at 10% 0%, rgba(15, 118, 110, 0.1), transparent 50%),
    linear-gradient(180deg, #e8eef4 0%, #f4f7fa 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.review-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 14px 56px;
}

.review-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.seo-breadcrumb {
  margin-bottom: 10px;
}

.seo-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.seo-breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 6px;
  color: #94a3b8;
}

.seo-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.seo-breadcrumb a:hover {
  text-decoration: underline;
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-list li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.related-list a {
  color: #0f766e;
  font-weight: 700;
  text-decoration: none;
}

.related-list a:hover {
  text-decoration: underline;
  color: #b91c1c;
}

.related-list span {
  font-size: 0.84rem;
  color: var(--muted);
}

.review-nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.review-nav a:hover {
  text-decoration: underline;
}

.review-intro {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 18px;
  margin-bottom: 16px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

.review-kicker {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.review-intro h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.review-intro .lead {
  margin: 0;
  color: #334155;
  font-size: 0.98rem;
}

.review-meta {
  margin-top: 12px;
  font-size: 0.84rem;
  color: var(--muted);
}

/* KakaoTalk phone frame */
.kakao-frame {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #8aa4bc;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  margin-bottom: 18px;
  background: #fff;
}

.kakao-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px 4px;
  background: var(--kakao-header);
  color: #1e293b;
  font-size: 0.72rem;
  font-weight: 650;
}

.kakao-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 12px;
  background: var(--kakao-header);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.kakao-back {
  font-size: 1.2rem;
  line-height: 1;
  color: #1e293b;
}

.kakao-profile {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: linear-gradient(145deg, #fde68a, #f59e0b);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #78350f;
  flex-shrink: 0;
}

.kakao-title {
  flex: 1;
  min-width: 0;
}

.kakao-title strong {
  display: block;
  font-size: 0.98rem;
  color: #0f172a;
}

.kakao-title span {
  display: block;
  font-size: 0.72rem;
  color: #475569;
}

.kakao-room {
  position: relative;
  min-height: 520px;
  padding: 16px 12px 18px;
  background-color: var(--kakao-bg);
  background-image: url("../images/kakaotalk-bg.jpg");
  background-size: cover;
  background-position: center;
}

.kakao-room::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(171, 193, 209, 0.35);
  pointer-events: none;
}

.kakao-room > * {
  position: relative;
  z-index: 1;
}

.day-chip {
  display: block;
  width: fit-content;
  margin: 0 auto 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.28);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
}

.msg-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 10px;
}

.msg-row.is-me {
  justify-content: flex-end;
}

.msg-row.is-you {
  justify-content: flex-start;
}

.msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background: linear-gradient(145deg, #fde68a, #f59e0b);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #78350f;
  flex-shrink: 0;
  margin-bottom: 2px;
}

.msg-stack {
  max-width: min(78%, 360px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.msg-row.is-me .msg-stack {
  align-items: flex-end;
}

.msg-name {
  font-size: 0.72rem;
  color: #334155;
  margin-left: 4px;
  margin-bottom: 2px;
}

.bubble {
  position: relative;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  word-break: keep-all;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.06);
}

.msg-row.is-you .bubble {
  background: var(--kakao-bubble-you);
  border-top-left-radius: 4px;
}

.msg-row.is-me .bubble {
  background: var(--kakao-bubble-me);
  border-top-right-radius: 4px;
}

.bubble a,
.chat-link {
  color: #0369a1;
  font-weight: 800;
  text-decoration: underline;
  word-break: break-all;
}

.chat-link {
  display: inline-block;
  padding: 1px 4px;
  border-radius: 6px;
  background: rgba(254, 229, 0, 0.55);
  animation: chat-link-pulse 1.4s ease-in-out infinite;
}

.chat-link:hover {
  background: #fee500;
  color: #b91c1c;
}

.bubble .em {
  font-weight: 700;
  color: #b45309;
}

.msg-meta {
  font-size: 0.66rem;
  color: rgba(15, 23, 42, 0.55);
  white-space: nowrap;
  margin-bottom: 2px;
}

.msg-row.is-me .msg-meta {
  text-align: right;
}

.link-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #fee500;
  max-width: min(78%, 300px);
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow:
    0 2px 8px rgba(15, 23, 42, 0.08),
    0 0 0 0 rgba(254, 229, 0, 0.55);
  animation: link-card-glow 1.8s ease-in-out infinite;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-card.is-clickable::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 40%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0.15) 60%,
    transparent 100%
  );
  transform: skewX(-18deg);
  animation: link-card-shine 2s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

.link-card:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.25);
  border-color: #dc2626;
  animation: none;
}

.link-card .tap-hint {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.35);
  animation: tap-hint-bounce 1.2s ease-in-out infinite;
}

.link-card .thumb {
  position: relative;
  height: 88px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.9), rgba(3, 105, 161, 0.8)),
    #0f766e;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  font-weight: 700;
  font-size: 0.92rem;
}

.link-card .body {
  padding: 10px 12px 12px;
}

.link-card .body strong {
  display: block;
  font-size: 0.86rem;
  margin-bottom: 3px;
}

.link-card .body span {
  display: block;
  font-size: 0.74rem;
  color: #b91c1c;
  font-weight: 700;
}

@keyframes link-card-glow {
  0%,
  100% {
    box-shadow:
      0 2px 8px rgba(15, 23, 42, 0.08),
      0 0 0 0 rgba(254, 229, 0, 0.5);
    transform: translateY(0);
  }
  50% {
    box-shadow:
      0 8px 20px rgba(220, 38, 38, 0.22),
      0 0 0 6px rgba(254, 229, 0, 0.18);
    transform: translateY(-1px);
  }
}

@keyframes link-card-shine {
  0% { left: -60%; }
  55%,
  100% { left: 130%; }
}

@keyframes tap-hint-bounce {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes chat-link-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(254, 229, 0, 0.55);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(254, 229, 0, 0.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .link-card,
  .link-card.is-clickable::after,
  .link-card .tap-hint,
  .chat-link {
    animation: none !important;
  }
}

.kakao-inputbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f3f4f6;
  border-top: 1px solid #e5e7eb;
}

.kakao-inputbar .plus {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #94a3b8;
  display: grid;
  place-items: center;
  color: #64748b;
  font-weight: 700;
}

.kakao-inputbar .field {
  flex: 1;
  background: #fff;
  border-radius: 20px;
  padding: 8px 14px;
  color: #94a3b8;
  font-size: 0.86rem;
  border: 1px solid #e2e8f0;
}

.kakao-inputbar .send {
  background: var(--kakao-yellow);
  border: none;
  border-radius: 16px;
  padding: 7px 12px;
  font-weight: 700;
  font-size: 0.8rem;
  color: #191919;
}

.review-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 18px;
  margin-bottom: 14px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

.review-card h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.review-card p {
  margin: 0 0 10px;
  color: #334155;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding: 10px 12px 10px 36px;
  margin-bottom: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #334155;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 10px;
  color: var(--accent);
  font-weight: 700;
}

.cta-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.28);
}

.cta-btn::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -140%;
  width: 70%;
  height: 140%;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 32%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.12) 68%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: cta-shine 1.6s ease-in-out infinite;
  pointer-events: none;
}

.cta-btn:hover {
  background: #b91c1c;
}

@keyframes cta-shine {
  0% { left: -140%; }
  55%, 100% { left: 160%; }
}

.faq details {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: #f8fafc;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
}

.faq details p {
  margin: 10px 0 0;
}

.review-footer {
  margin-top: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

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

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  width: 56px;
  height: 56px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.scroll-top__track {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 3.5;
}

.scroll-top__progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3.5;
  stroke-linecap: round;
}

.scroll-top__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.scroll-top__pct {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
}

.scroll-top__label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--accent);
}

@media (max-width: 480px) {
  .review-wrap {
    padding: 12px 10px 48px;
  }

  .kakao-room {
    min-height: 460px;
  }

  .msg-stack,
  .link-card {
    max-width: 82%;
  }
}
