/* ====================================================
   Base & Reset
==================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ====================================================
   Film Grain Overlay
==================================================== */
.film-grain {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 50; opacity: 0.05; mix-blend-mode: overlay;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23n)"/></svg>');
}

/* ====================================================
   Background Boxes — Hero
==================================================== */
#hero-boxes {
  transform: translate(-40%, -60%) skewX(-48deg) skewY(14deg) scale(0.675) translateZ(0);
  position: absolute;
  left: 25%;
  top: -25%;
  display: flex;
  pointer-events: auto;
}

.hero-box-col {
  flex-shrink: 0;
  width: 64px;
  border-left: 1px solid rgb(51 65 85 / 0.9);
  position: relative;
}

.hero-box-cell {
  width: 64px;
  height: 32px;
  border-right: 1px solid rgb(51 65 85 / 0.9);
  border-top: 1px solid rgb(51 65 85 / 0.9);
  position: relative;
  transition: background-color 1s ease;
}

.hero-box-plus {
  position: absolute;
  top: -14px;
  left: -22px;
  width: 40px;
  height: 24px;
  color: rgb(51 65 85 / 0.9);
  pointer-events: none;
  stroke-width: 1px;
}

.hero-boxes-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse 65% 65% at 50% 50%, transparent 0%, rgb(10 10 10) 80%);
}

/* ====================================================
   Text Effects
==================================================== */
.text-silver-matte {
  background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.45) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: translateZ(0);
  filter:
    drop-shadow(0px 10px 20px rgba(255,255,255,0.12))
    drop-shadow(0px 2px 4px rgba(255,255,255,0.08));
}

.text-card-silver {
  background: linear-gradient(180deg, #FFFFFF 0%, #A1A1AA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: translateZ(0);
  filter:
    drop-shadow(0px 12px 24px rgba(0,0,0,0.8))
    drop-shadow(0px 4px 8px rgba(0,0,0,0.6));
}

/* ====================================================
   Premium Deep Blue Card
==================================================== */
.premium-card {
  background: linear-gradient(145deg, #192E7A 0%, #091019 100%);
  box-shadow:
    0 40px 100px -20px rgba(0,0,0,0.95),
    0 20px 40px -20px rgba(0,0,0,0.85),
    0 0 0 1px rgba(255,255,255,0.06),
    inset 0 1px 2px rgba(255,255,255,0.22),
    inset 0 -2px 4px rgba(0,0,0,0.85);
  border: 1px solid rgba(255,255,255,0.05);
}

/* Dynamic mouse-follow sheen */
.card-sheen {
  position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; z-index: 2;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.05) 0%, transparent 40%);
  mix-blend-mode: screen;
  transition: opacity 0.3s ease;
}

/* ====================================================
   Glass Card (dark variant) — solid bg, no backdrop-filter
   to prevent bleed-through from pinned card layer
==================================================== */
.glass-dark {
  background: linear-gradient(145deg, #121519 0%, #0e1117 100%);
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}
.glass-dark:hover {
  border-color: rgba(255,255,255,0.15);
  background: linear-gradient(145deg, #181c24 0%, #131720 100%);
  box-shadow: 0 28px 56px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.06);
}

/* ====================================================
   Glass Floating Badge
==================================================== */
.glass-badge {
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.01) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1),
    0 25px 50px -12px rgba(0,0,0,0.8),
    inset 0 1px 1px rgba(255,255,255,0.2),
    inset 0 -1px 1px rgba(0,0,0,0.5);
}

/* ====================================================
   iPhone Mockup Hardware
==================================================== */
.iphone-bezel {
  background-color: #111;
  box-shadow:
    inset 0 0 0 2px #52525B,
    inset 0 0 0 7px #000,
    0 40px 80px -15px rgba(0,0,0,0.95),
    0 15px 25px -5px rgba(0,0,0,0.7);
  transform-style: preserve-3d;
}

.hardware-btn {
  background: linear-gradient(90deg, #404040 0%, #171717 100%);
  box-shadow:
    -2px 0 5px rgba(0,0,0,0.8),
    inset -1px 0 1px rgba(255,255,255,0.15),
    inset 1px 0 2px rgba(0,0,0,0.8);
  border-left: 1px solid rgba(255,255,255,0.05);
}

.screen-glare {
  background: linear-gradient(110deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 45%);
}

.widget-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  box-shadow:
    0 10px 20px rgba(0,0,0,0.3),
    inset 0 1px 1px rgba(255,255,255,0.05),
    inset 0 -1px 1px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.03);
}

/* ====================================================
   Progress Ring
==================================================== */
.progress-ring {
  transition: stroke-dashoffset 2s ease;
}

/* ====================================================
   Buttons
==================================================== */
.btn-glass {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.3),
    inset 0 1px 1px rgba(255,255,255,0.2),
    inset 0 -1px 1px rgba(0,0,0,0.2);
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  text-decoration: none;
  cursor: pointer;
}
.btn-glass:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-3px);
  box-shadow:
    0 16px 40px rgba(0,0,0,0.4),
    inset 0 1px 1px rgba(255,255,255,0.25),
    inset 0 -1px 1px rgba(0,0,0,0.2);
}
.btn-glass:active {
  transform: translateY(1px);
  background: rgba(255,255,255,0.07);
}

.btn-kakao-glass {
  background: rgba(254,229,0,0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #FEE500;
  border: 1px solid rgba(254,229,0,0.35);
  box-shadow:
    0 8px 32px rgba(254,229,0,0.12),
    inset 0 1px 1px rgba(255,255,255,0.15),
    inset 0 -1px 1px rgba(0,0,0,0.15);
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  text-decoration: none;
  cursor: pointer;
}
.btn-kakao-glass:hover {
  background: rgba(254,229,0,0.22);
  border-color: rgba(254,229,0,0.55);
  transform: translateY(-3px);
  box-shadow:
    0 16px 40px rgba(254,229,0,0.2),
    inset 0 1px 1px rgba(255,255,255,0.2),
    inset 0 -1px 1px rgba(0,0,0,0.15);
}
.btn-kakao-glass:active {
  transform: translateY(1px);
  background: rgba(254,229,0,0.1);
}

.btn-kakao {
  background: linear-gradient(180deg, #FEE500 0%, #F5D800 100%);
  color: #3A1D1D;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.08),
    0 2px 4px rgba(0,0,0,0.15),
    0 12px 24px -4px rgba(254,229,0,0.35),
    inset 0 1px 1px rgba(255,255,255,0.6),
    inset 0 -3px 6px rgba(0,0,0,0.08);
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  text-decoration: none;
  cursor: pointer;
}
.btn-kakao:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.08),
    0 6px 12px -2px rgba(0,0,0,0.1),
    0 20px 32px -6px rgba(254,229,0,0.5),
    inset 0 1px 1px rgba(255,255,255,0.6),
    inset 0 -3px 6px rgba(0,0,0,0.08);
}
.btn-kakao:active {
  transform: translateY(1px);
  background: linear-gradient(180deg, #F5D800 0%, #EDD000 100%);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.1), inset 0 3px 6px rgba(0,0,0,0.1);
}

/* ====================================================
   Pulse animation for Dynamic Island dot
==================================================== */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ====================================================
   Reveal animations (scroll-triggered via GSAP)
==================================================== */
.reveal-block {
  opacity: 0;
  transform: translateY(28px);
}

/* ====================================================
   Feature card hover
==================================================== */
.feature-card {
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.1);
}

/* ====================================================
   Bottom Navigation Bar
==================================================== */
.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  min-width: 44px;
  height: 40px;
  text-decoration: none;
  gap: 0;
  transition: background 0.22s ease, color 0.22s ease;
}
.nav-btn:hover {
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.05);
}
.nav-btn.active {
  background: rgba(59, 130, 246, 0.15);
  color: #93C5FD;
  gap: 7px;
}
.nav-btn.nav-kakao:hover {
  background: rgba(254, 229, 0, 0.1);
  color: #FEE500;
}
.nav-btn.nav-kakao.active {
  background: rgba(254, 229, 0, 0.14);
  color: #FEE500;
}
.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.nav-label {
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition:
    max-width 0.38s cubic-bezier(0.34, 1.2, 0.64, 1),
    opacity 0.2s ease;
}
.nav-btn.active .nav-label {
  max-width: 96px;
  opacity: 1;
}

/* ====================================================
   Responsive tweaks
==================================================== */
@media (max-width: 768px) {
  .iphone-bezel {
    transform: scale(0.75);
    transform-origin: center center;
  }
}

/* ====================================================
   Step row hover
==================================================== */
.step-row {
  transition: background 0.3s ease;
  border-radius: 20px;
}
.step-row:hover {
  background: rgba(255,255,255,0.02);
}

/* ====================================================
   Global smooth scrollbar & selection color
==================================================== */
::selection {
  background: rgba(147,197,253,0.25);
  color: #ffffff;
}

/* ====================================================
   FAQ — left column offset
==================================================== */
.faq-left-col { margin-top: 0; }
@media (min-width: 1024px) {
  .faq-left-col { margin-top: 90px; }
}

/* ====================================================
   FAQ — KakaoTalk glass badge CTA
==================================================== */
.faq-kakao-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px 11px 16px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #FEE500;
  background: rgba(254, 229, 0, 0.08);
  border: 1px solid rgba(254, 229, 0, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(254, 229, 0, 0.08), inset 0 1px 0 rgba(255,255,255,0.06);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.faq-kakao-badge:hover {
  background: rgba(254, 229, 0, 0.14);
  border-color: rgba(254, 229, 0, 0.4);
  box-shadow: 0 4px 24px rgba(254, 229, 0, 0.15), inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateY(-1px);
}
.faq-kakao-icon {
  flex-shrink: 0;
  opacity: 0.9;
}

/* ====================================================
   FAQ — Portrait phone mockup (large)
==================================================== */

/* Phone frame */
.faq-phone-frame {
  position: relative;
  width: 320px;
  height: 648px;
  will-change: transform;
  /* Titanium Natural finish — multi-stop gradient for realistic metal look */
  background: linear-gradient(158deg,
    #3e3e40 0%,
    #2c2c2e 12%,
    #1c1c1e 40%,
    #0e0e10 72%,
    #1a1a1c 100%
  );
  border-radius: 52px;
  padding: 12px;
  box-shadow:
    /* Outer edge highlight (titanium chamfer) */
    0 0 0 1px rgba(255,255,255,0.13),
    0 0 0 2px rgba(0,0,0,0.75),
    /* Inner face lighting */
    inset 0 1.5px 3px rgba(255,255,255,0.18),
    inset 1px 0 2px rgba(255,255,255,0.06),
    inset 0 -1.5px 2px rgba(0,0,0,0.75),
    inset -1px 0 1px rgba(0,0,0,0.45),
    /* Drop shadows */
    0 80px 140px -24px rgba(0,0,0,0.95),
    0 32px 64px -16px rgba(0,0,0,0.8),
    0 8px 24px rgba(0,0,0,0.55);
  flex: none;
}

/* Remove old pseudo-element buttons — replaced with HTML elements */
.faq-phone-frame::before,
.faq-phone-frame::after {
  content: none;
}

/* ── Side hardware buttons ── */
/* Action button (top-left, iPhone 15 style) */
.faq-btn-action {
  position: absolute;
  left: -3.5px;
  top: 95px;
  width: 3.5px;
  height: 34px;
  border-radius: 1.5px 0 0 1.5px;
  background: linear-gradient(to right, #3e3e40, #2a2a2c);
  box-shadow: -1px 0 4px rgba(0,0,0,0.65), inset 0 0.5px 0 rgba(255,255,255,0.14);
}
/* Volume up */
.faq-btn-vol-up {
  position: absolute;
  left: -3.5px;
  top: 148px;
  width: 3.5px;
  height: 52px;
  border-radius: 1.5px 0 0 1.5px;
  background: linear-gradient(to right, #3e3e40, #2a2a2c);
  box-shadow: -1px 0 4px rgba(0,0,0,0.65), inset 0 0.5px 0 rgba(255,255,255,0.14);
}
/* Volume down */
.faq-btn-vol-down {
  position: absolute;
  left: -3.5px;
  top: 214px;
  width: 3.5px;
  height: 52px;
  border-radius: 1.5px 0 0 1.5px;
  background: linear-gradient(to right, #3e3e40, #2a2a2c);
  box-shadow: -1px 0 4px rgba(0,0,0,0.65), inset 0 0.5px 0 rgba(255,255,255,0.14);
}
/* Power / sleep-wake button */
.faq-btn-power {
  position: absolute;
  right: -3.5px;
  top: 168px;
  width: 3.5px;
  height: 80px;
  border-radius: 0 1.5px 1.5px 0;
  background: linear-gradient(to left, #3e3e40, #2a2a2c);
  box-shadow: 1px 0 4px rgba(0,0,0,0.65), inset 0 0.5px 0 rgba(255,255,255,0.14);
}

/* Screen surface glare — sits above screen content */
.faq-screen-glare {
  position: absolute;
  inset: 12px;
  border-radius: 41px;
  background: linear-gradient(130deg,
    rgba(255,255,255,0.09) 0%,
    rgba(255,255,255,0.03) 30%,
    transparent 55%
  );
  pointer-events: none;
  z-index: 20;
}

.faq-phone-screen {
  width: 100%;
  height: 100%;
  background: #05050a;
  border-radius: 41px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Dynamic island */
.faq-phone-island {
  width: 110px;
  height: 30px;
  background: #000;
  border-radius: 15px;
  margin: 11px auto 0;
  flex: none;
}

/* Status bar */
.faq-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 22px 7px;
  flex-none;
}
.faq-status-time {
  font-size: 12px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
}
.faq-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  color: white;
}
.faq-battery {
  position: relative;
  width: 22px;
  height: 11px;
  border: 1.2px solid rgba(255,255,255,0.55);
  border-radius: 3px;
  padding: 1.5px;
}
.faq-battery-nub {
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5px;
  height: 6px;
  background: rgba(255,255,255,0.55);
  border-radius: 0 1px 1px 0;
}
.faq-battery-level {
  width: 72%;
  height: 100%;
  background: white;
  border-radius: 1px;
}

/* Chat header */
.faq-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 11px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.32);
  flex-none;
}
.faq-chat-back {
  flex-none;
  display: flex;
  align-items: center;
}
.faq-chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(59,130,246,0.22);
  border: 1px solid rgba(147,197,253,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8.5px;
  font-weight: 900;
  color: #93C5FD;
  letter-spacing: -0.02em;
  flex-none;
}
.faq-chat-info { flex: 1; min-width: 0; }
.faq-chat-name {
  font-size: 12px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}
.faq-chat-online {
  font-size: 9px;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 1px;
}
.faq-online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-none;
}
.faq-chat-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

/* Messages */
.faq-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: none;
}
.faq-messages::-webkit-scrollbar { display: none; }

.faq-bot-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.faq-msg-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(59,130,246,0.2);
  border: 1px solid rgba(147,197,253,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 900;
  color: #93C5FD;
  flex-none;
}
.faq-bot-bubble {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  padding: 9px 12px;
  max-width: calc(100% - 38px);
}
.faq-user-row { display: flex; justify-content: flex-end; }
.faq-user-bubble {
  background: rgba(59,130,246,0.22);
  border: 1px solid rgba(147,197,253,0.2);
  border-radius: 16px;
  border-bottom-right-radius: 4px;
  padding: 9px 12px;
  max-width: 82%;
}
.faq-bubble-text {
  font-size: 11.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.88);
}

/* Q/A fade (템플릿 행 숨김용) */
#faq-phone-q.faq-msg-out,
#faq-phone-a.faq-msg-out {
  display: none;
}

/* 새 메시지 등장 */
.faq-msg-appear {
  animation: faq-appear 0.2s ease forwards;
}
@keyframes faq-appear {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Typing cursor */
.faq-cursor {
  display: inline-block;
  color: rgba(255,255,255,0.55);
  font-size: 0.85em;
  line-height: 1;
  margin-left: 1px;
  animation: faq-blink 0.65s steps(1) infinite;
}
@keyframes faq-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Typing indicator dots */
.faq-typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 3px 0;
}
.faq-typing-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  animation: faq-dot 1.1s ease-in-out infinite;
}
.faq-typing-dots span:nth-child(2) { animation-delay: 0.18s; }
.faq-typing-dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes faq-dot {
  0%, 80%, 100% { transform: scale(0.75); opacity: 0.35; }
  40%           { transform: scale(1.2);  opacity: 1; }
}


/* ====================================================
   FAQ — Accordion (replaces suggestion chips)
==================================================== */
.faq-accordion {
  border-top: 1px solid rgba(255,255,255,0.06);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 6px;
  padding: 12px 12px;
}

.faq-acc-item {
  display: contents;
}
.faq-acc-q {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  color: rgba(255,255,255,0.65);
  font-size: 10.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.faq-acc-q:hover {
  background: rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.9);
}
.faq-acc-item.faq-acc-open .faq-acc-q {
  color: #93C5FD;
  background: rgba(59,130,246,0.12);
  border-color: rgba(147,197,253,0.35);
}
.faq-acc-chevron {
  display: none;
}
.faq-acc-body {
  display: none;
}

/* Small screen: scale down phone frame */
@media (max-width: 374px) {
  .faq-phone-frame {
    width: 280px;
    height: 566px;
  }
  .faq-screen-glare {
    inset: 12px;
    border-radius: 36px;
  }
  .faq-phone-screen {
    border-radius: 36px;
  }
  .faq-phone-island {
    width: 95px;
    height: 26px;
  }
}

/* Home indicator */
.faq-home-bar {
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-none;
}
.faq-home-bar::after {
  content: '';
  width: 90px;
  height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
}

/* ====================================================
   Pricing Card — Spotlight Follow Effect
==================================================== */
[data-glow] {
  --border-size: calc(var(--border, 2) * 1px);
  --spotlight-size: calc(var(--size, 200) * 1px);
  --hue: calc(var(--base, 220) + (var(--xp, 0) * var(--spread, 180)));
}

#pricing-spotlight-card {
  border: var(--border-size) solid rgba(147,197,253,0.22);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.06), 0 40px 80px -16px rgba(0,0,0,0.95);
  background-image: radial-gradient(
    var(--spotlight-size) var(--spotlight-size) at 50% 50%,
    hsl(var(--hue) 100% 70% / 0.05),
    transparent
  );
  background-size: calc(var(--spotlight-size) * 2) calc(var(--spotlight-size) * 2);
  background-position:
    calc(var(--x, -9999) * 1px - var(--spotlight-size))
    calc(var(--y, -9999) * 1px - var(--spotlight-size));
  background-repeat: no-repeat;
  transition: border-color 0.8s ease, box-shadow 0.8s ease;
}

#pricing-spotlight-card:hover {
  border-color: rgba(147,197,253,0.46);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.07), 0 40px 80px -16px rgba(0,0,0,0.95), 0 0 35px rgba(147,197,253,0.24);
}

[data-glow]::before,
[data-glow]::after {
  pointer-events: none;
  content: "";
  position: absolute;
  inset: calc(var(--border-size) * -1);
  border: var(--border-size) solid transparent;
  border-radius: calc(var(--radius, 24) * 1px);
  background-repeat: no-repeat;
  -webkit-mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
  mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
  -webkit-mask-clip: padding-box, border-box;
  mask-clip: padding-box, border-box;
  -webkit-mask-composite: destination-in;
  mask-composite: intersect;
}

[data-glow]::before {
  background-image: radial-gradient(
    calc(var(--spotlight-size) * 0.75) calc(var(--spotlight-size) * 0.75) at 50% 50%,
    hsl(var(--hue) 100% 50% / 1),
    transparent 100%
  );
  background-size: calc(var(--spotlight-size) * 1.5) calc(var(--spotlight-size) * 1.5);
  background-position:
    calc(var(--x, -9999) * 1px + var(--border-size) - var(--spotlight-size) * 0.75)
    calc(var(--y, -9999) * 1px + var(--border-size) - var(--spotlight-size) * 0.75);
  filter: brightness(1.4);
}

[data-glow]::after {
  background-image: radial-gradient(
    calc(var(--spotlight-size) * 0.5) calc(var(--spotlight-size) * 0.5) at 50% 50%,
    hsl(0 100% 100% / 0.7),
    transparent 100%
  );
  background-size: calc(var(--spotlight-size) * 1) calc(var(--spotlight-size) * 1);
  background-position:
    calc(var(--x, -9999) * 1px + var(--border-size) - var(--spotlight-size) * 0.5)
    calc(var(--y, -9999) * 1px + var(--border-size) - var(--spotlight-size) * 0.5);
}

[data-glow] [data-glow] {
  position: absolute;
  inset: 0;
  will-change: filter;
  opacity: var(--outer, 1);
  border-radius: calc(var(--radius, 24) * 1px);
  filter: blur(calc(var(--border-size) * 10));
  background: none;
  pointer-events: none;
  border: none;
}

/* ====================================================
   Consulting — Tablet Scroll Animation
==================================================== */

.consulting-tablet-frame {
  width: 100%;
  border-radius: 36px;
  border: 8px solid transparent;
  background:
    linear-gradient(170deg, #28282c 0%, #1c1c20 45%, #141416 100%) padding-box,
    linear-gradient(145deg,
      rgba(255,255,255,0.30) 0%,
      rgba(255,255,255,0.12) 18%,
      rgba(255,255,255,0.05) 48%,
      rgba(0,0,0,0.18) 78%,
      rgba(255,255,255,0.10) 100%
    ) border-box;
  position: relative;
  transform-origin: center top;
  will-change: transform;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.6),
    -4px 8px 0 rgba(0,0,0,0.55),
    4px 8px 0 rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 20px 40px rgba(0,0,0,0.5),
    0 60px 80px rgba(0,0,0,0.35),
    0 120px 160px rgba(0,0,0,0.18);
}

/* Physical side buttons */
/* Power button — left short edge, upper area */
.consulting-btn-power {
  position: absolute;
  left: -10px; right: auto;
  top: 28px;
  width: 3px; height: 36px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(to left, rgba(255,255,255,0.20), rgba(255,255,255,0.08));
  box-shadow: -1px 0 2px rgba(0,0,0,0.5);
}
/* Home button — right bezel, center, recessed */
.consulting-btn-home {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 40%, #1a1a1f, #111115);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow:
    inset 0 2px 5px rgba(0,0,0,0.85),
    inset 0 1px 3px rgba(0,0,0,0.7),
    inset 0 -1px 1px rgba(255,255,255,0.04),
    0 1px 0 rgba(255,255,255,0.06);
}
/* Volume buttons — top long edge */
.consulting-btn-vol-up,
.consulting-btn-vol-down {
  position: absolute;
  top: -9px; left: auto; right: auto;
  width: 38px; height: 3px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(to top, rgba(255,255,255,0.20), rgba(255,255,255,0.08));
  box-shadow: 0 -1px 2px rgba(0,0,0,0.5);
}
.consulting-btn-vol-up   { left: 108px; }
.consulting-btn-vol-down { left: 159px; }


/* Landscape: top/bottom = long edges → thin */
.consulting-bezel-top {
  height: 18px;
}
.consulting-bezel-bottom {
  height: 18px;
}

/* Face ID — left short edge, vertical pill */
.consulting-faceid {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 46px;
  border-radius: 3px;
  background: #0a0a0e;
  border: 1px solid rgba(80,80,88,0.6);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
/* Camera dot below Face ID */
.consulting-faceid::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 110%; top: auto;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #0a0a0e;
  border: 1px solid rgba(80,80,90,0.5);
  box-shadow: 0 0 5px rgba(59,130,246,0.18);
}

/* Speaker grille — left short edge */
.consulting-screen {
  display: flex;
  border-radius: 13px;
  overflow: hidden;
  background: #07070b;
  height: 510px;
  margin: 0 54px 0 36px;
}

.consulting-panel-left {
  width: 247px;
  flex-shrink: 0;
  padding: 1.25rem;
  background: linear-gradient(160deg, #10101a 0%, #0c0c12 100%);
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
}
.consulting-panel-right {
  flex: 1;
  min-width: 0;
  padding: 1.125rem 1.25rem 1rem;
  background: #07070b;
  display: flex;
  flex-direction: column;
}

/* ---- Gmail redesign ---- */
.consulting-screen { background: #f6f8fc; }

.gmail-sidebar {
  background: #fff;
  padding: 0;
  border-right: 1px solid #e0e0e0;
  overflow-y: auto;
}
.gmail-logo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 18px;
}
.gmail-wordmark {
  font-size: 22px;
  font-weight: 400;
  color: #5f6368;
  letter-spacing: -0.3px;
}
.gmail-compose-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 8px 12px;
  padding: 14px 18px;
  border-radius: 28px;
  background: #fff;
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 4px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  font-size: 14px;
  color: #202124;
  font-weight: 500;
  font-family: inherit;
  width: calc(100% - 16px);
}
.gmail-compose-btn:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.25), 0 6px 12px rgba(0,0,0,0.12);
}
.gmail-nav { margin-top: 4px; }
.gmail-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 16px 4px 22px;
  height: 32px;
  border-radius: 0 16px 16px 0;
  cursor: pointer;
  font-size: 13px;
  color: #202124;
  font-weight: 400;
  margin-right: 16px;
  transition: background 0.15s;
}
.gmail-nav-item:hover { background: #f1f3f4; }
.gmail-nav-active { background: #d3e3fd !important; font-weight: 600; }
.gmail-nav-active svg { color: #0b57d0; }
.gmail-badge { margin-left: auto; font-size: 12px; color: #202124; }
.gmail-sidebar-sep { height: 1px; background: #e0e0e0; margin: 10px 16px; }
.gmail-sidebar-section-label {
  font-size: 11px;
  font-weight: 500;
  color: #444746;
  padding: 8px 24px 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Right main */
.gmail-main {
  background: #f6f8fc;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.gmail-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #f6f8fc;
  height: 52px;
  flex-shrink: 0;
}
.gmail-hamburger-btn {
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gmail-search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #eaf1fb;
  border-radius: 24px;
  padding: 9px 18px;
  color: #5f6368;
  font-size: 14px;
  max-width: 340px;
}
.gmail-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.gmail-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
}

/* Inbox background */
.gmail-content-area {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.gmail-inbox {
  position: absolute;
  inset: 0;
  background: #fff;
  overflow: hidden;
}
.gmail-inbox-toolbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 16px;
  border-bottom: 1px solid #e0e0e0;
  height: 40px;
}
.gmail-inbox-check {
  width: 16px; height: 16px;
  border: 1.5px solid #bbb;
  border-radius: 3px;
  flex-shrink: 0;
}
.gmail-inbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 44px;
  border-bottom: 1px solid #f1f3f4;
  cursor: pointer;
  background: #fff;
  transition: background 0.15s;
}
.gmail-inbox-row:hover { background: #f6f8fc; }
.gmail-inbox-unread { font-weight: 600; }
.gmail-inbox-star-icon { flex-shrink: 0; }
.gmail-inbox-sender {
  width: 80px;
  flex-shrink: 0;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #202124;
}
.gmail-inbox-subject {
  flex: 1;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #5f6368;
}
.gmail-inbox-unread .gmail-inbox-subject { color: #202124; }
.gmail-inbox-time {
  font-size: 12px;
  color: #5f6368;
  flex-shrink: 0;
  white-space: nowrap;
}
.gmail-inbox-unread .gmail-inbox-time { color: #202124; font-weight: 600; }

/* Compose window — top-anchored so toolbar stays above the clipped tablet bottom */
.gmail-compose-window {
  position: absolute;
  top: 10px;
  bottom: 50px;
  right: 16px;
  width: 460px;
  height: auto;
  background: #fff;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 8px 10px 1px rgba(0,0,0,0.14), 0 3px 14px 2px rgba(0,0,0,0.12), 0 5px 5px -3px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.gmail-compose-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 8px 16px;
  background: #404040;
  border-radius: 12px 12px 0 0;
  flex-shrink: 0;
  cursor: pointer;
}
.gmail-compose-title { font-size: 14px; font-weight: 500; color: #fff; }
.gmail-compose-header-btns { display: flex; align-items: center; gap: 2px; }
.gmail-compose-header-btn {
  width: 28px; height: 28px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gmail-compose-header-btn:hover { background: rgba(255,255,255,0.15); }

/* To / Subject rows */
.gmail-compose-to-row {
  display: flex;
  align-items: center;
  padding: 4px 12px;
  min-height: 30px;
  gap: 6px;
  flex-shrink: 0;
}
.gmail-compose-field-label {
  font-size: 11px;
  color: #444746;
  min-width: 48px;
  flex-shrink: 0;
}
.gmail-to-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #e8e8e8;
  border-radius: 16px;
  padding: 2px 4px 2px 10px;
  font-size: 13px;
  color: #202124;
  font-weight: 500;
}
.gmail-to-chip-x {
  width: 20px; height: 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  color: #5f6368;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gmail-to-chip-x:hover { background: rgba(0,0,0,0.1); }
.gmail-cc-bcc {
  margin-left: auto;
  font-size: 12px;
  color: #444746;
  cursor: pointer;
  flex-shrink: 0;
}
.gmail-compose-divider { height: 1px; background: #e0e0e0; margin: 0 12px; flex-shrink: 0; }
.gmail-subject-static {
  font-size: 15px;
  font-weight: 500;
  color: #202124;
  padding: 6px 12px;
  flex-shrink: 0;
}

/* Body area */
.gmail-compose-body-area {
  flex: 1;
  min-height: 0;
  padding: 6px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.gmail-compose-body-area > div[style] {
  gap: 6px !important;
  margin-bottom: 5px !important;
}
.gmail-form-label { font-size: 11px; color: #5f6368; margin-bottom: 2px; font-weight: 500; }
.gmail-form-input {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  color: #202124;
  outline: none;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.gmail-form-input:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26,115,232,0.2);
}
.gmail-form-select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%235f6368'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 26px;
}
.gmail-form-textarea {
  flex: 1;
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  color: #202124;
  outline: none;
  font-family: inherit;
  resize: none;
  min-height: 40px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.gmail-form-textarea:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26,115,232,0.2);
}

/* Toolbar */
.gmail-compose-toolbar-row {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 12px 12px;
  border-top: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.gmail-send-btn {
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  margin-right: 8px;
  transition: background 0.15s;
}
.gmail-send-btn:hover { background: #1765cc; }
.gmail-send-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.gmail-addon-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.gmail-addon-checkbox { display: none; }
.gmail-addon-box {
  width: 16px;
  height: 16px;
  border: 1.5px solid #c5c8cc;
  border-radius: 3px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
  color: transparent;
}
.gmail-addon-checkbox:checked + .gmail-addon-box {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #fff;
}
.gmail-addon-label {
  font-size: 12px;
  color: #202124;
}
.gmail-toolbar-icon-btn {
  width: 30px; height: 30px;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444746;
  transition: background 0.15s;
}
.gmail-toolbar-icon-btn:hover { background: #f1f3f4; }
.gmail-toolbar-divider { width: 1px; height: 16px; background: #e0e0e0; margin: 0 4px; }
.gmail-toolbar-trash-btn {
  margin-left: auto;
  width: 30px; height: 30px;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444746;
  transition: background 0.15s, color 0.15s;
}
.gmail-toolbar-trash-btn:hover { background: #fce8e6; color: #c5221f; }

/* Success state */
.gmail-success-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #fff;
}

/* ---- KakaoTalk channel CTA in consulting sidebar ---- */
.gmail-kakao-channel-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 8px 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #FEE500;
  color: #3A1D1D;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  border: none;
}
.gmail-kakao-channel-btn:hover {
  background: #F5D800;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.16);
}
.gmail-kakao-icon-bg {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Mobile: disable scroll trick, stack panels */
@media (max-width: 767px) {
  #consulting-scroll  { height: auto !important; }
  #consulting-sticky  {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    overflow: visible !important;
    padding: 4.5rem 1rem 2rem !important;
  }
  .consulting-screen  { flex-direction: column; height: auto; }
  .consulting-panel-left {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 1rem;
  }
  .consulting-panel-right { padding: 1rem; }
  .consulting-tablet-frame { border-radius: 14px; border-width: 2px; }
  .consulting-bezel-top  { height: 12px; }
  .consulting-bezel-bottom { height: 10px; }

  /* Consulting — 모바일에서 compose 창 정상 흐름으로 */
  .consulting-screen      { margin: 0 !important; }
  .consulting-faceid,
  .consulting-btn-home    { display: none; }
  .gmail-topbar           { display: none; }
  .gmail-inbox            { display: none; }
  .gmail-content-area     { position: static; height: auto; overflow: visible; }
  .gmail-compose-window   {
    position: static;
    width: 100%;
    height: auto;
    right: auto;
    top: auto;
    border-radius: 0;
    box-shadow: none;
  }
  .gmail-compose-body-area > div[style] { grid-template-columns: 1fr !important; }
  .gmail-form-textarea    { min-height: 100px; }
}

[data-glow] > [data-glow]::before {
  inset: -10px;
  border-width: 10px;
}

/* ====================================================
   Pricing Event Badges — float + hover
==================================================== */

@keyframes badge-float-1 {
  0%, 100% { transform: rotate(4deg) translateY(0px); }
  50%       { transform: rotate(4deg) translateY(-10px); }
}

@keyframes badge-float-2 {
  0%, 100% { transform: rotate(-4deg) translateY(0px); }
  50%       { transform: rotate(-4deg) translateY(-10px); }
}

/* 외부 wrapper: float 애니메이션 */
.pricing-badge-1 {
  animation: badge-float-1 3.2s ease-in-out infinite;
}
.pricing-badge-2 {
  animation: badge-float-2 3.2s ease-in-out infinite;
  animation-delay: 1.6s;
}

/* 내부 badge: hover scale (float와 독립) */
.pricing-badge-inner {
  position: relative;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}
.pricing-badge-inner .badge-event-label {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.pricing-badge-inner .badge-desc-label {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  text-align: center;
}
.pricing-badge-inner:hover {
  transform: scale(1.5);
}
