/* topalba — mobile-first, clean white */
:root {
  --bg: #ffffff;
  --panel: #f5f7f8;
  --panel-2: #eef2f3;
  --line: #e6ebed;
  --text: #171d21;
  --muted: #6a757c;
  --brand: #15968f;
  --brand-2: #0f726c;
  --kakao: #fee500;
  --kakao-ink: #191919;
  --font: "Pretendard Variable", Pretendard, "Noto Sans KR", system-ui, sans-serif;
  --max: 440px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.wrap {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 0 1.1rem;
}

/* topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.logo-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #1db3aa, #0f726c);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}
.logo-text {
  display: grid;
  min-width: 0;
}
.logo-text strong {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.logo-text small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  margin-top: 0.08rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 0;
  border-radius: 12px;
  padding: 0.85rem 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, opacity .12s ease, background .12s ease;
  -webkit-tap-highlight-color: transparent;
  min-height: 46px;
}
.btn:active { transform: scale(0.98); opacity: 0.92; }
.btn-cta {
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  min-height: 38px;
  font-size: 0.86rem;
  background: var(--text);
  color: #fff;
}
.btn-teal {
  flex: 1;
  background: var(--brand);
  color: #fff;
}
.btn-teal.is-copied {
  background: #0f726c;
}
.btn-kakao {
  flex: 1;
  background: var(--kakao);
  color: var(--kakao-ink);
}

/* full-bleed story images */
.story { background: #fff; }
.story-strip {
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
}
.story-block {
  position: relative;
  margin: 0;
  padding: 0;
}
.story-block img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
}
.story-hit {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: transparent;
}
.story-hit-1 {
  bottom: 4.2%;
  width: 78%;
  height: 7%;
  min-height: 44px;
}
.story-hit-4 {
  bottom: 8%;
  width: 72%;
  height: 16%;
  min-height: 48px;
}

/* bridge between audience (3) and coupon (4) */
.bridge {
  width: 100%;
  margin: 0;
  padding: 1.65rem 1.1rem 1.75rem;
  background:
    linear-gradient(180deg, #f7f4ef 0%, #fff 55%, #fff 100%);
  border-top: 1px solid #efeae2;
  border-bottom: 1px solid #efeae2;
  text-align: center;
  line-height: 1.45;
  font-size: 1rem;
}
.bridge-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}
.bridge-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #b8862d;
  background: rgba(232, 165, 75, 0.14);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}
.bridge-title {
  font-size: clamp(1.2rem, 4.8vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.bridge-sub {
  font-size: clamp(1.05rem, 4.2vw, 1.2rem);
  font-weight: 600;
  color: #3d4850;
  margin-bottom: 0.35rem;
}
.bridge-sub strong {
  color: #c9842d;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.bridge-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.bridge-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0c56a, #e0a53a);
  color: #1a1205;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 8px 20px rgba(200, 140, 40, 0.22);
  -webkit-tap-highlight-color: transparent;
}
.bridge-cta:active { transform: scale(0.98); opacity: 0.92; }

/* kakao section */
.section {
  padding: 2.1rem 0 1.6rem;
  background: #fff;
}
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand);
  margin-bottom: 0.45rem;
}
.section h2 {
  font-size: clamp(1.35rem, 5.2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.lead {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.kakao-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.1rem 1.2rem;
}
.kakao-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.95rem;
}
.kakao-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--kakao-ink);
  background: var(--kakao);
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
}
.kakao-status {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-2);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.kakao-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.phone-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.85rem;
}
.phone-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.phone-num {
  font-size: clamp(1.55rem, 7vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.action-row {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.howto h3 {
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}
.steps {
  display: grid;
  gap: 0.45rem;
  list-style: none;
}
.steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: #4b575e;
  line-height: 1.4;
}
.steps span {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand-2);
  font-size: 0.72rem;
  font-weight: 800;
}

.footer {
  padding: 1.5rem 0 5.8rem;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}
.footer-brand {
  font-weight: 700;
  color: #3d4850;
  margin-bottom: 0.35rem;
}
.footer-line + .footer-line { margin-top: 0.2rem; }

/* float kakao — animated like reference */
.float-kakao {
  position: fixed;
  right: max(1.1rem, env(safe-area-inset-right));
  bottom: max(1.15rem, calc(1rem + env(safe-area-inset-bottom)));
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  pointer-events: none;
}
.float-tip {
  pointer-events: auto;
  position: relative;
  max-width: calc(100vw - 2.5rem);
  border: 1px solid #fee500;
  border-radius: 1rem;
  background: #fff;
  color: #3c1e1e;
  padding: 0.75rem 1.7rem 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 8px 28px -6px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  animation: kakaofab-tip-bounce 1.8s ease-in-out infinite;
}
.float-tip.is-hidden { display: none; }
.float-tip-x {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  font-size: 0.7rem;
  color: rgba(60, 30, 30, 0.4);
  line-height: 1;
}
.float-tip-arrow {
  position: absolute;
  right: 1.5rem;
  bottom: -0.4rem;
  width: 0.7rem;
  height: 0.7rem;
  background: #fff;
  border-right: 1px solid #fee500;
  border-bottom: 1px solid #fee500;
  transform: rotate(45deg);
}
.float-btn {
  pointer-events: auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1.15rem 0.55rem 0.5rem;
  border-radius: 999px;
  background: #3c1e1e;
  color: #fee500;
  box-shadow:
    0 14px 34px -6px rgba(0, 0, 0, 0.45),
    0 0 0 3px rgba(60, 30, 30, 0.18),
    0 0 0 4px rgba(254, 229, 0, 0.55);
  -webkit-tap-highlight-color: transparent;
  animation:
    kakaofab-pop 1.6s ease-in-out infinite,
    kakaofab-wiggle 2.5s ease-in-out 1.2s 2;
}
.float-btn:active { transform: scale(0.95); }
.float-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #fee500;
  z-index: -1;
  pointer-events: none;
  animation: kakaofab-ring 1.5s ease-out infinite;
}
.float-icon-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: #fee500;
  color: #3c1e1e;
  flex-shrink: 0;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.45);
}
.float-ico {
  width: 1.55rem;
  height: 1.55rem;
  display: block;
}
.float-dot {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  width: 1rem;
  height: 1rem;
}
.float-dot-ping,
.float-dot-core {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #ef4444;
}
.float-dot-ping {
  opacity: 0.75;
  animation: kakaofab-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.float-dot-core {
  border: 2px solid #3c1e1e;
}
.float-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  padding-right: 0.1rem;
}
.float-copy-sub {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(254, 229, 0, 0.8);
}
.float-copy-main {
  font-size: 1rem;
  font-weight: 900;
  color: #fee500;
  letter-spacing: -0.02em;
}

@keyframes kakaofab-pop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes kakaofab-ring {
  0% { transform: scale(1); opacity: 0.65; }
  100% { transform: scale(2.1); opacity: 0; }
}
@keyframes kakaofab-wiggle {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(-6deg); }
  20% { transform: rotate(6deg); }
  30% { transform: rotate(-4deg); }
  40% { transform: rotate(4deg); }
  50% { transform: rotate(0deg); }
}
@keyframes kakaofab-tip-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes kakaofab-ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .float-btn,
  .float-tip,
  .float-ring,
  .float-dot-ping {
    animation: none !important;
  }
}

@media (min-width: 720px) {
  :root { --max: 480px; }
  .story-strip {
    width: min(560px, 100%);
    margin: 0 auto;
  }
  .section { padding: 2.4rem 0 2rem; }
}
