/* =========================================================
   KWIQREPLY — Product page extras
   ========================================================= */

/* Subtle WhatsApp-green accent in KwiqReply nav badge */
.kr-name {
  letter-spacing: 0.12em !important;
}
.kr-dot {
  background: #25d366 !important;
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.7) !important;
}

/* Hero grid: phone mockup is taller than terminal */
.kr-hero-grid .hero-right { min-height: 600px; }

/* =========================================================
   Phone mockup
   ========================================================= */
.phone {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  border: 1px solid var(--line-2);
  border-radius: 28px;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  font-family: var(--f-body);
  transform: perspective(1400px) rotateY(-8deg) rotateX(4deg);
  transition: transform 0.6s var(--ease);
}
.hero-right:hover .phone {
  transform: perspective(1400px) rotateY(-3deg) rotateX(2deg);
}

.phone-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.ph-avatar {
  width: 36px; height: 36px;
  border-radius: 99px;
  background: linear-gradient(135deg, #2a2a2a, #555);
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.ph-name {
  display: flex;
  flex-direction: column;
  flex: 1;
  line-height: 1.2;
}
.ph-name b {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.ph-name span {
  font-size: 10px;
  color: var(--ink-mute);
  font-family: var(--f-mono);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.ph-tick {
  width: 22px; height: 22px;
  border-radius: 99px;
  background: #25d366;
  color: #000;
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.phone-body {
  padding: 18px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background:
    radial-gradient(ellipse at top, rgba(255, 255, 255, 0.02), transparent 50%),
    rgba(0, 0, 0, 0.25);
  min-height: 420px;
}

.bubble {
  max-width: 78%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  position: relative;
  animation: bubble-in 0.5s var(--ease) backwards;
}
.bubble.in {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.bubble.out {
  align-self: flex-end;
  background: rgba(37, 211, 102, 0.18);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: var(--ink);
  border-bottom-right-radius: 4px;
}
.bubble.short { font-size: 12.5px; }
.bubble:nth-child(1) { animation-delay: 0.6s; }
.bubble:nth-child(2) { animation-delay: 1.1s; }
.bubble:nth-child(3) { animation-delay: 1.6s; }
.bubble:nth-child(4) { animation-delay: 2.1s; }
.bubble:nth-child(5) { animation-delay: 2.6s; }
.bubble:nth-child(6) { animation-delay: 3.1s; }
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ph-link {
  color: #25d366;
  border-bottom: 1px solid rgba(37, 211, 102, 0.5);
  text-decoration: none;
  font-weight: 500;
  cursor: none;
}
.ph-chips {
  display: inline-flex;
  gap: 6px;
  margin-left: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-mute);
}
.bubble.typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  width: fit-content;
  max-width: none;
}
.bubble.typing span {
  width: 6px; height: 6px;
  border-radius: 99px;
  background: var(--ink-dim);
  display: inline-block;
  animation: typing 1.4s var(--ease) infinite;
}
.bubble.typing span:nth-child(2) { animation-delay: 0.2s; }
.bubble.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* =========================================================
   On main page: sister-product strip
   ========================================================= */
.sister {
  padding: 120px var(--pad-x);
  border-top: 1px solid var(--line);
  position: relative;
}
.sister-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}
.sister-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  margin-bottom: 24px;
}
.sister-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 99px;
  background: #25d366;
  box-shadow: 0 0 8px rgba(37, 211, 102, 0.6);
}
.sister-h {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(48px, 6vw, 84px);
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.sister p {
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.6;
  color: var(--ink-dim);
  margin-bottom: 32px;
  max-width: 520px;
}
.sister-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.sister-card {
  width: 100%;
  max-width: 380px;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at top right, rgba(37, 211, 102, 0.08), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.3));
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}
.sister-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}
.sister-card > * { position: relative; z-index: 1; }
.sister-card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-family: var(--f-mono);
  font-size: 12px;
}
.sister-card-row:last-child { border-bottom: 0; }
.sister-card-row span { color: var(--ink-mute); letter-spacing: 0.04em; }
.sister-card-row b {
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0;
}

/* Mobile */
@media (max-width: 1100px) {
  .sister-grid { grid-template-columns: 1fr; gap: 40px; }
  .sister-visual { min-height: 220px; }
  .kr-hero-grid .hero-right { min-height: 460px; }
  .phone { max-width: 300px; }
}
