:root {
  --bg: #FAFAFA;
  --bg-sub: #EDEDED;
  --ink: #0F0F0F;
  --ink-70: rgba(15, 15, 15, 0.7);
  --ink-40: rgba(15, 15, 15, 0.4);
  --ink-15: rgba(15, 15, 15, 0.15);
  --accent: #4DC5E5;
  --accent-deep: #1B9EC1;
  --glow-1: #4DC5E5;
  --glow-2: #63AD45;
  --glow-3: #E9D352;
  --violet: #6A55F0;
  --coral: #F4563C;
  --radius-media: clamp(1.8rem, 2.4vw + 1rem, 3.6rem);
  --radius-pill: 999px;
  --pad-inline: min(96px, max(24px, calc(24px + 72 * (100vw - 375px) / 1425)));
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1.8rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* display 를 다시 정의한 요소도 확실하게 숨긴다 */
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--ink); color: var(--bg); }

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 8px;
}

.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

.display-xl,
.display-lg,
.display-md {
  font-weight: 650;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.display-xl {
  font-size: min(118px, max(42px, calc(42px + 76 * (100vw - 375px) / 1425)));
  line-height: 1.02;
}

.display-lg {
  font-size: min(76px, max(34px, calc(34px + 42 * (100vw - 375px) / 1425)));
  line-height: 1.05;
}

.display-md {
  font-size: min(56px, max(30px, calc(30px + 26 * (100vw - 375px) / 1425)));
  line-height: 1.08;
}

.line-mask {
  display: block;
  overflow: hidden;
  padding: 0.08em 0;
  margin: -0.08em 0;
}

.line-mask .line {
  display: block;
  transform: translateY(112%);
  transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.in-view .line-mask:nth-child(1) .line { transition-delay: 0s; }
.in-view .line-mask:nth-child(2) .line { transition-delay: 0.12s; }
.in-view .line-mask:nth-child(3) .line { transition-delay: 0.24s; }
.in-view .line-mask .line { transform: translateY(0); }

.line--accent {
  color: transparent;
  background: linear-gradient(94deg, var(--accent-deep), var(--accent) 55%, #7BD9A6);
  -webkit-background-clip: text;
  background-clip: text;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.53s linear, transform 0.85s cubic-bezier(0, 0, 0, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 34px;
  border-radius: var(--radius-pill);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
  isolation: isolate;
  transition: transform 0.25s cubic-bezier(0.2, 0.72, 0.21, 0.99), box-shadow 0.3s ease, color 0.3s ease;
}

.btn--dark { background: #1E1E1E; color: #EBEBEB; }

.btn--ghost { border: 1px solid var(--ink-15); }
.btn--ghost:hover { background: rgba(15, 15, 15, 0.05); }

.btn--glow { background: #1E1E1E; color: #EBEBEB; }

.btn--glow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--glow-1);
  opacity: 0;
  transform: scaleY(0.9);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.72, 0.21, 0.99);
}

@media (hover: hover) {
  .btn--glow:hover::before {
    opacity: 1;
    transform: scaleY(1);
    animation: hue-spin 2s linear infinite;
    box-shadow:
      0 0 4px var(--glow-1),
      1px 1px 2px var(--glow-2),
      1px 4px 6px var(--glow-3),
      1px 6px 10px var(--glow-1);
  }
  .btn--glow:hover { color: #0F0F0F; }
  .btn:hover { transform: translateY(-2px); }
}

@keyframes hue-spin {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(360deg); }
}

.btn--sm { min-height: 44px; padding: 8px 22px; font-size: 1.6rem; font-weight: 500; }
.btn--lg { min-height: 60px; padding: 18px 44px; font-size: 2rem; }
.btn--full { width: 100%; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #D6D6D6 0%, var(--bg) 100%);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__logo {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  animation: loader-pulse 1.4s ease infinite alternate;
}

@keyframes loader-pulse {
  from { opacity: 0.35; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  pointer-events: none;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cursor.is-active { opacity: 1; }

.cursor__label {
  display: inline-block;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: 600;
  white-space: nowrap;
  translate: 50% -140%;
  scale: 0.6;
  opacity: 0;
  transition: scale 0.25s cubic-bezier(0.2, 0.72, 0.21, 0.99), opacity 0.2s ease;
}

.cursor__label::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.cursor.is-hover .cursor__label {
  scale: 1;
  opacity: 1;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 14px clamp(14px, 3vw, 40px) 0;
}

.header__pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1320px;
  margin-inline: auto;
  padding: 8px 12px 8px 26px;
  border-radius: var(--radius-pill);
  background: rgba(237, 237, 237, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(15, 15, 15, 0.04);
}

.header__logo {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.header__nav ul { display: flex; gap: 4px; }

.header__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 1.6rem;
  transition: background 0.25s ease;
}

.header__nav a:hover { background: rgba(255, 255, 255, 0.8); }

.header__right { display: flex; align-items: center; gap: 8px; }

.header__auth-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 1.6rem;
  transition: background 0.25s ease;
}

.header__auth-link:hover { background: rgba(255, 255, 255, 0.8); }

.header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 12px;
}

.header__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease;
}

.header__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.header__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  max-width: 1320px;
  margin: 8px auto 0;
  border-radius: 24px;
  background: var(--bg-sub);
  padding: 16px;
}

.mobile-menu li + li { margin-top: 4px; }

.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 10px 18px;
  border-radius: 16px;
  font-size: 1.8rem;
  font-weight: 500;
}

.mobile-menu a:hover { background: rgba(255, 255, 255, 0.75); }

.mobile-menu__cta { background: var(--ink); color: var(--bg); justify-content: center; }

.hero {
  position: relative;
  padding-top: clamp(110px, 16vh, 170px);
  overflow: clip;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.orb--cyan { width: 46vw; height: 46vw; top: -12vw; right: -10vw; background: radial-gradient(circle at 30% 30%, #BDEBFA, #4DC5E5 60%, transparent 75%); }
.orb--violet { width: 38vw; height: 38vw; bottom: -6vw; left: -12vw; background: radial-gradient(circle at 60% 40%, #DCD4FF, #9B8CFF 60%, transparent 78%); opacity: 0.4; }
.orb--lemon { width: 22vw; height: 22vw; top: 34%; left: 8%; background: radial-gradient(circle at 40% 40%, #FFF0C2, #F2CE58 65%, transparent 80%); opacity: 0.32; }

.hero__inner {
  max-width: 1160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero__sub {
  margin-top: 28px;
  font-size: min(27px, max(18px, calc(18px + 9 * (100vw - 375px) / 1425)));
  line-height: 1.5;
  color: var(--ink-70);
}

.br-mobile { display: none; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.hero__meta { margin-top: 18px; font-size: 1.4rem; color: var(--ink-40); }

.hero__stage {
  position: relative;
  max-width: 1240px;
  margin-top: clamp(48px, 7vw, 88px);
}

.hero__app {
  width: 100%;
  border-radius: clamp(14px, 1.8vw, 26px);
  border: 1px solid rgba(15, 15, 15, 0.1);
  box-shadow: 0 50px 100px -40px rgba(15, 15, 15, 0.35);
}

.float-chip {
  position: absolute;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 14px;
  font-size: 1.5rem;
  font-weight: 600;
  box-shadow: 0 16px 34px -12px rgba(15, 15, 15, 0.35);
  animation: float-y 5s ease-in-out infinite;
}

.float-chip--1 { top: 6%; right: 4%; color: #8FE8C0; }
.float-chip--2 { bottom: 22%; left: -1%; animation-delay: 0.8s; }
.float-chip--3 { bottom: 4%; right: 10%; color: var(--accent); animation-delay: 1.6s; }

@keyframes float-y {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

.rounded-top { border-radius: 6rem 6rem 0 0; }

.marquee-section {
  background: var(--bg-sub);
  padding: clamp(52px, 6vw, 84px) 0;
  overflow: hidden;
}

.marquee-label {
  text-align: center;
  font-size: 1.5rem;
  color: var(--ink-40);
  margin-bottom: 30px;
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  gap: clamp(36px, 5vw, 80px);
  width: max-content;
  animation: marquee 26s linear infinite;
  padding-right: clamp(36px, 5vw, 80px);
}

.marquee__track li {
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: rgba(15, 15, 15, 0.5);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.statement { padding: clamp(90px, 12vw, 160px) 0; }

.statement__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.statement__grid--flip { direction: rtl; }
.statement__grid--flip > * { direction: ltr; }

.statement__title { max-width: 16ch; }

.statement__desc {
  margin-top: 26px;
  max-width: 44ch;
  font-size: min(23px, max(17px, calc(17px + 6 * (100vw - 375px) / 1425)));
  line-height: 1.6;
  color: var(--ink-70);
}

.statement__media img {
  width: 100%;
  border-radius: var(--radius-media);
  border: 1px solid rgba(15, 15, 15, 0.1);
  box-shadow: 0 40px 80px -36px rgba(15, 15, 15, 0.35);
}

.statement--alt {
  background: var(--bg-sub);
  border-radius: 6rem;
}

.section-title { max-width: 24ch; }
.section-desc { margin-top: 18px; color: var(--ink-70); max-width: 52ch; }

.rounded-block {
  background: var(--bg-sub);
  border-radius: 6rem;
}

.flow { padding: clamp(80px, 10vw, 140px) 0; }

.flow__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 24px);
  margin-top: clamp(40px, 5vw, 64px);
}

.flow-card {
  position: relative;
  background: #FFFFFF;
  border-radius: 28px;
  padding: clamp(24px, 2.6vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 230px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.72, 0.21, 0.99), box-shadow 0.35s ease;
}

.flow-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -55% auto;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 197, 229, 0.16), transparent 70%);
  transition: transform 0.4s ease;
}

.flow-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -20px rgba(15, 15, 15, 0.18); }
.flow-card:hover::after { transform: scale(1.4); }

.flow-card__num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.flow-card h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 700; letter-spacing: -0.01em; }

.flow-card p { font-size: 1.6rem; line-height: 1.65; color: var(--ink-70); }

.tabs {
  margin-top: clamp(64px, 8vw, 104px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tabs__label {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
  text-align: center;
}

.tabs__list {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  background: #FFFFFF;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 28px -22px rgba(15, 15, 15, 0.25);
}

.tabs__list button {
  min-height: 46px;
  padding: 10px 26px;
  border-radius: var(--radius-pill);
  font-size: 1.6rem;
  font-weight: 500;
  transition: background 0.25s ease, color 0.25s ease;
}

.tabs__list button[aria-selected="true"] { background: var(--ink); color: var(--bg); }

.tab-cards {
  margin-top: clamp(26px, 3.5vw, 40px);
  width: 100%;
  max-width: 880px;
}

.tab-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  background: #FFFFFF;
  border-radius: 32px;
  padding: clamp(34px, 5vw, 56px) clamp(26px, 4vw, 56px);
  box-shadow: 0 34px 70px -34px rgba(15, 15, 15, 0.22);
  text-align: center;
}

/* 보이는 패널만 살짝 떠오르게 — 툭 튀지 않게 한 번 부드럽게 올린다 */
.tab-card:not([hidden]) { animation: idx-tab-in 0.35s cubic-bezier(0, 0, 0, 1) both; }

@keyframes idx-tab-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.tab-card svg {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  color: var(--accent-deep);
  background: rgba(77, 197, 229, 0.12);
  border-radius: 50%;
  padding: 18px;
  box-sizing: border-box;
}

.tab-card p {
  font-size: clamp(1.7rem, 2vw, 2rem);
  line-height: 1.65;
  color: var(--ink-70);
  max-width: 46ch;
}

.features { padding: clamp(84px, 10vw, 150px) 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
  margin-top: clamp(40px, 5vw, 64px);
}

.feature-card {
  position: relative;
  background: var(--bg-sub);
  border-radius: 28px;
  padding: clamp(24px, 2.6vw, 36px);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.72, 0.21, 0.99), background 0.3s ease;
}

.feature-card__icon {
  width: 34px;
  height: 34px;
  color: var(--accent-deep);
  margin-bottom: 18px;
}

.feature-card h3 { font-size: clamp(20px, 2.1vw, 24px); font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }

.feature-card p { font-size: 1.6rem; line-height: 1.65; color: var(--ink-70); }

@media (hover: hover) {
  .feature-card:hover { transform: translateY(-6px); background: #E4E4E4; }
}

.sites { padding: clamp(84px, 10vw, 150px) 0; }

.sites__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-deep);
}

.live-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2FA36A;
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #2FA36A;
  animation: live-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes live-ping {
  0% { transform: scale(1); opacity: 0.7; }
  80%, 100% { transform: scale(2.6); opacity: 0; }
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  margin-top: clamp(36px, 4vw, 56px);
}

.site-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 80px;
  padding: 16px 22px;
  background: #FFFFFF;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1.7rem;
  transition: transform 0.35s cubic-bezier(0.2, 0.72, 0.21, 0.99), box-shadow 0.35s ease;
}

.site-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(15, 15, 15, 0.18); }

.site-card__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-card:nth-child(2n) .site-card__flag { background: linear-gradient(135deg, #9B8CFF, var(--violet)); }
.site-card:nth-child(3n) .site-card__flag { background: linear-gradient(135deg, #FF9A8B, var(--coral)); }

.site-card--more {
  border: 1.5px dashed rgba(15, 15, 15, 0.25);
  background: transparent;
  color: rgba(15, 15, 15, 0.55);
  flex-direction: row;
}

.site-card--more > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.site-card--more small {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink-40);
}

.sites__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: clamp(28px, 3.5vw, 44px);
}

.sites__note {
  font-size: 1.4rem;
  color: var(--ink-40);
}

.site-card__flag--plus { background: transparent; border: 1.5px dashed rgba(15, 15, 15, 0.3); color: rgba(15, 15, 15, 0.5); font-size: 2rem; font-weight: 400; }

.pricing { padding: clamp(84px, 10vw, 150px) 0; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
  margin-top: clamp(40px, 5vw, 64px);
}

.price-card {
  position: relative;
  background: var(--bg-sub);
  border-radius: 28px;
  padding: clamp(26px, 2.8vw, 40px);
  transition: transform 0.35s cubic-bezier(0.2, 0.72, 0.21, 0.99);
}

.price-card:hover { transform: translateY(-6px); }

.price-card--featured {
  background: #161616;
  color: #FAFAFA;
  box-shadow: 0 30px 60px -24px rgba(15, 15, 15, 0.4);
}

.price-card__badge {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #06232C;
  font-size: 1.3rem;
  font-weight: 700;
}

.price-card h3 { font-size: 1.7rem; font-weight: 600; opacity: 0.7; }

.price-card__value {
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 14px 0 18px;
}

.price-card p:last-child { font-size: 1.6rem; line-height: 1.75; opacity: 0.7; }

.faq {
  background: var(--bg-sub);
  padding: clamp(80px, 10vw, 130px) 0 clamp(100px, 11vw, 150px);
}

.faq__inner { max-width: 920px; }

.faq-list { margin-top: clamp(30px, 4vw, 48px); }

.faq-list details {
  background: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
}

.faq-list details + details { margin-top: 12px; }

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 20px 24px;
  font-size: 1.7rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-sub);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 12px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease;
}

.faq-icon::after { transform: rotate(90deg); }

details[open] .faq-icon::after { transform: rotate(0deg); }

.faq-a {
  padding: 0 24px 22px;
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--ink-70);
  max-width: 68ch;
}

.download {
  position: relative;
  background: var(--bg-sub);
  padding: clamp(90px, 11vw, 160px) 0 clamp(100px, 12vw, 180px);
  margin-top: -6rem;
  overflow: clip;
}

.download__bg { position: absolute; inset: 0; pointer-events: none; }

.download__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
}

.download p:last-child { font-size: 1.4rem; color: var(--ink-40); }

.footer { background: var(--bg); padding: clamp(48px, 6vw, 80px) 0 130px; }

.footer__inner { display: grid; gap: 24px; }

.footer__brand { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.04em; }

.footer__links { display: flex; flex-wrap: wrap; gap: 8px 26px; }

.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.5rem;
  color: var(--ink-40);
  transition: color 0.25s ease;
}

.footer__links a:hover { color: var(--ink); }

.footer__copy { font-size: 1.4rem; color: var(--ink-40); }

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(15, 15, 15, 0.06);
  display: none;
}

@media (max-width: 1199px) and (min-width: 768px) {
  .statement__grid { grid-template-columns: 1fr; }
  .statement__media { order: -1; }
}

@media (max-width: 1023px) {
  .flow__grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  body { font-size: 1.6rem; }
  .br-mobile { display: inline; }
  .header { padding: 10px 12px 0; }
  .header__nav, .header__cta { display: none; }
  .header__pill { padding-left: 18px; }
  .header__toggle { display: flex; }
  .hero { padding-top: 108px; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .float-chip--2 { left: 2%; }
  .float-chip--3 { right: 3%; }
  .statement__grid { grid-template-columns: 1fr; }
  .statement__grid--flip > * { direction: ltr; }
  .statement__media { order: -1; }
  .flow__grid { grid-template-columns: 1fr; }
  .flow-card { min-height: auto; }
  .feature-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .site-grid { grid-template-columns: repeat(2, 1fr); }
  .tab-card { flex-direction: column; }
  .rounded-top { border-radius: 3.2rem 3.2rem 0 0; }
  .rounded-block, .statement--alt { border-radius: 3.2rem; }
  .marquee-section, .faq, .download { border-radius: 3.2rem 3.2rem 0 0; }
  .sticky-cta { display: block; }
  .footer { padding-bottom: 150px; }
  .cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .line-mask .line { transform: none; }
  .reveal { opacity: 1; transform: none; }
  .float-chip, [data-parallax] { transform: none !important; }
  .cursor { display: none; }
}

.auth {
  position: relative;
  min-height: 100svh;
  padding: clamp(110px, 16vh, 160px) 0 clamp(60px, 8vh, 100px);
  overflow: clip;
}

.auth__bg { position: absolute; inset: 0; pointer-events: none; }

.auth__inner {
  position: relative;
  max-width: 480px;
  margin-inline: auto;
}

.auth__title { text-align: center; }

.auth__sub {
  margin-top: 12px;
  text-align: center;
  font-size: 1.7rem;
  color: var(--ink-70);
}

.auth-form {
  margin-top: 36px;
  background: #FFFFFF;
  border: 1px solid rgba(15, 15, 15, 0.06);
  border-radius: 28px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 30px 60px -30px rgba(15, 15, 15, 0.18);
}

.field + .field { margin-top: 18px; }

/*
 * 칸 이름표.
 *
 * `:not(.check)` 가 중요하다. 이게 없으면 체크박스 줄(label.check)까지
 * 잡아서 display 를 block 으로 덮는데, 그러면 .check 의 inline-flex 가 깨져
 * .check__box 가 inline 이 된다. inline 은 width 를 무시하므로 22px 짜리
 * 네모가 **테두리만 남은 2px** 로 찌그러져 화면에서 사라진다.
 *
 * 회원가입 약관 칸이 실제로 그렇게 안 보였다. 이름표 규칙은 이름표에만 닿게 한다.
 */
.field label:not(.check) {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: 14px;
  background: var(--bg);
  font: inherit;
  font-size: 1.6rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(77, 197, 229, 0.2);
}

.field input[aria-invalid="true"] { border-color: #D64533; }

.field__wrap { position: relative; }

.field__wrap input { padding-right: 76px; }

.field__eye {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--bg-sub);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink-70);
}

.field__hint {
  margin-top: 7px;
  font-size: 1.3rem;
  color: var(--ink-40);
}

.field__error {
  margin-top: 7px;
  font-size: 1.3rem;
  font-weight: 500;
  color: #C03A28;
}

.auth-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 22px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 1.5rem;
  cursor: pointer;
}

.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.check__box {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid rgba(15, 15, 15, 0.25);
  background: #FFFFFF;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.check input:checked + .check__box {
  background: var(--ink);
  border-color: var(--ink);
}

.check input:checked + .check__box::after {
  content: "";
  position: absolute;
  top: 45%;
  left: 50%;
  translate: -50% -50% rotate(-45deg);
  transform: translate(-50%, -50%) rotate(-45deg);
  width: 10px;
  height: 5px;
  border-left: 2px solid #FAFAFA;
  border-bottom: 2px solid #FAFAFA;
}

.check input:focus-visible + .check__box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.check--sub { font-size: 1.4rem; color: var(--ink-70); }

.check--sub em { font-style: normal; font-weight: 600; }

.check--sub a {
  margin-left: 6px;
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.field--agree {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--bg);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.field--agree .check { min-height: 40px; }

.auth-form .btn { margin-top: 6px; }

.auth-form__error {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #FBE9E6;
  color: #A03A2C;
  font-size: 1.4rem;
  font-weight: 500;
  text-align: center;
}

.auth__switch {
  margin-top: 26px;
  text-align: center;
  font-size: 1.6rem;
  color: var(--ink-70);
}

.auth__switch a {
  margin-left: 8px;
  font-weight: 700;
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth__app-hint {
  margin-top: 14px;
  text-align: center;
  font-size: 1.4rem;
  color: var(--ink-40);
}

.footer--auth { padding-bottom: 40px; }

@media (max-width: 767px) {
  .auth { padding-top: 100px; }
  .auth-form { border-radius: 22px; }
  .account-card { border-radius: 22px; margin-top: 20px; }
}

/* ── 내 계정 ─────────────────────────────────────────
   로그인해서 보는 화면. 로그인·회원가입과 같은 무드를 유지하되,
   '읽는 표'가 중심이라 값이 잘 보이게 둔다. */

.auth--account {
  min-height: auto;
}

.account__inner {
  position: relative;
  max-width: 960px;
}

.account-card {
  margin-top: 28px;
  background: #FFFFFF;
  border: 1px solid rgba(15, 15, 15, 0.06);
  border-radius: 28px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 30px 60px -30px rgba(15, 15, 15, 0.18);
}

.account-card h2 {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.account__count {
  font-size: 1.4rem;
  color: var(--accent-deep);
  font-weight: 600;
}

.account__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px 16px;
  margin: 0;
}

.account__grid dt {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink-40);
  margin-bottom: 5px;
}

.account__grid dd {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  /* 열린 몰이 길어지면 줄을 넘겨야 한다. 잘라내면 뭐가 열렸는지 모른다. */
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 한도 — 쓴 만큼과 상한을 함께 본다. */
.usage {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.usage__label {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink-70);
}

.usage__value {
  float: right;
  font-size: 1.5rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.usage__bar {
  clear: both;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-sub);
  margin-top: 9px;
  overflow: hidden;
}

.usage__bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  border-radius: var(--radius-pill);
  transition: width 0.8s cubic-bezier(0, 0, 0, 1);
}

/* 다 써 가면 눈에 띄어야 한다. */
.usage__bar i.is-full {
  background: linear-gradient(90deg, #E04B36, var(--coral));
}

.account__table-wrap {
  /* 표가 넓어도 페이지가 옆으로 흐르면 안 된다. */
  overflow-x: auto;
  margin-inline: calc(clamp(24px, 3vw, 36px) * -1);
  padding-inline: clamp(24px, 3vw, 36px);
}

.account__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.5rem;
}

.account__table th,
.account__table td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(15, 15, 15, 0.08);
  white-space: nowrap;
}

.account__table tbody tr {
  transition: background 0.2s ease;
}

@media (hover: hover) {
  .account__table tbody tr:hover { background: rgba(77, 197, 229, 0.05); }
}

.account__table th {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-40);
  border-bottom-color: var(--ink-15);
}

/* 상품명은 길다. 이것만 줄바꿈을 허용한다. */
.account__table td:first-child {
  white-space: normal;
  min-width: 260px;
  word-break: keep-all;
}

.account__table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ── 주문 ─────────────────────────────────────────── */

/*
   상품표는 첫 칸이 상품명이라 거기서 줄바꿈을 허용했다. 주문표는 첫 칸이
   주문일이다 — 날짜가 두 줄로 접히면 표가 어지럽다. 줄바꿈을 상품 칸으로
   옮긴다.
*/
.orders__table td:first-child {
  white-space: nowrap;
  min-width: 0;
}

.orders__table td:nth-child(3) {
  white-space: normal;
  /* 칸이 일곱이라 자리가 빠듯하다. 상품명은 접혀도 읽히니 여기서 줄인다. */
  min-width: 200px;
  word-break: keep-all;
}

/* 줄 전체가 누르는 자리다 — 눌러야 배송 정보가 열린다. */
.order-row { cursor: pointer; }

.order-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.order-row td:first-child::before {
  content: "▸";
  display: inline-block;
  margin-right: 8px;
  color: var(--ink-40);
  transition: transform 0.2s ease;
}

.order-row.is-open td:first-child::before {
  transform: rotate(90deg);
}

.order-state {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 1.25rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--ink-08, rgba(15, 15, 15, 0.06));
  color: var(--ink-70);
}

.order-state--confirmed { background: rgba(77, 197, 229, 0.16); color: #1b6b82; }
.order-state--preparing { background: rgba(255, 176, 32, 0.18); color: #8a5a00; }
.order-state--shipping  { background: rgba(120, 120, 255, 0.16); color: #3b3b9e; }
.order-state--delivered { background: rgba(56, 176, 96, 0.16); color: #1d6b3a; }

/* 손이 더 가야 하는 것들은 눈에 띄어야 한다. */
.order-state--unmapped,
.order-state--waiting,
.order-state--unknown { background: rgba(226, 76, 76, 0.14); color: #9c2626; }

/*
   펼친 배송 정보.

   ⚠️ 남의 손님 이름·연락처·주소와 개인통관고유번호가 여기 있다. 목록에
      늘어놓지 않고 눌러야 열리게 한 이유다.
*/
.order-detail > td {
  background: var(--bg);
  padding: 0;
  white-space: normal;
}

/*
   펼친 칸은 표 전체 너비를 따라간다. 표가 화면보다 넓은 좁은 화면(휴대폰)
   에서는 그 절반이 잘려 보이지 않는다 — 주소가 "서울특별시 강남구" 에서
   끊긴다.

   보이는 폭(--order-wrap, account.js 가 넣는다)에 맞추고 왼쪽에 붙여
   두면, 표를 옆으로 밀어도 펼친 칸은 늘 제자리에 있다.
*/
.order-detail__panel {
  position: sticky;
  left: 0;
  width: var(--order-wrap, 100%);
  max-width: 100%;
  padding: 18px 20px;
  box-sizing: border-box;
}

.order-detail__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 28px;
  margin: 0;
}

.order-detail__grid > div {
  display: flex;
  gap: 10px;
  align-items: baseline;
  /* 이게 없으면 긴 주소가 칸을 뚫고 나가 옆 칸 글자를 덮는다.
     flex 항목의 기본 min-width 는 auto 라서 줄어들지 않는다. */
  min-width: 0;
}

/* 주소는 한 줄이 길다. 한 줄을 통째로 준다. */
.order-detail__grid > div.is-wide {
  grid-column: 1 / -1;
}

.order-detail__grid dt {
  flex: 0 0 auto;
  min-width: 110px;
  font-size: 1.3rem;
  color: var(--ink-40);
}

.order-detail__grid dd {
  margin: 0;
  min-width: 0;
  font-size: 1.45rem;
  color: var(--ink);
  /* 주소·이메일은 띄어쓰기 없이 길 수 있다. 칸 안에서 접히게 둔다. */
  overflow-wrap: anywhere;
}

.hint--empty {
  margin: 18px 0 0;
  padding: 18px 20px;
  text-align: center;
  background: var(--bg);
  border-radius: 16px;
  color: var(--ink-70);
}

/* select · textarea 도 필드 무드를 따른다 */
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: 14px;
  background: var(--bg);
  font: inherit;
  font-size: 1.6rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(77, 197, 229, 0.2);
}

.field textarea { resize: vertical; min-height: 96px; }

.account__form {
  margin-top: 24px;
}

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

.sub-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.5rem;
  color: var(--ink-70);
  padding: 13px 4px;
  border-top: 1px solid rgba(15, 15, 15, 0.08);
}

.sub-list li strong {
  color: var(--ink);
  font-weight: 600;
}

.sub-state {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 1.3rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink-15);
  background: var(--bg);
}

.sub-state--open {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-weight: 600;
}

/* ── 안내·오류 ───────────────────────────────────── */

.hint {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--ink-40);
  margin: 0 0 14px;
}

.hint strong { color: var(--ink-70); }

.error {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.55;
  color: #A03A2C;
  border: 1px solid rgba(214, 69, 51, 0.25);
  background: #FBE9E6;
  border-radius: 14px;
  padding: 13px 16px;
  margin: 20px 0 0;
}

#subError { margin-top: 14px; }

.notice {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.55;
  color: #1E6B45;
  border: 1px solid rgba(47, 163, 106, 0.3);
  background: #E8F6EE;
  border-radius: 14px;
  padding: 13px 16px;
  margin: 14px 0 0;
}

/* ── 내 계정 탭 ───────────────────────────────────────
   한 화면에 다 쌓지 않고 나눠 본다. 카드와 같은 결(흰 알약)로 두되
   그림자는 얕게 — 탭은 내용이 아니라 길잡이다. */

/* ⚠️ 인덱스 '담기 방식' 섹션도 .tabs 를 쓴다 — 이름이 겹치지 않게
   어카운트 쪽은 .account-tabs 로 분리한다. */
.account-tabs {
  display: flex;
  gap: 6px;
  margin-top: 32px;
  padding: 6px;
  background: #FFFFFF;
  border: 1px solid rgba(15, 15, 15, 0.06);
  border-radius: 999px;
  box-shadow: 0 12px 28px -20px rgba(15, 15, 15, 0.18);
  /* 좁은 화면에서 탭이 많아지면 옆으로 민다 — 줄바꿈보다 낫다. */
  overflow-x: auto;
  scrollbar-width: none;
}

.account-tabs::-webkit-scrollbar { display: none; }

.tabs__btn {
  flex: 1 0 auto;
  padding: 11px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-70);
  font: inherit;
  font-size: 1.45rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.tabs__btn:hover { color: var(--ink); }

.tabs__btn.is-on {
  background: var(--ink);
  color: var(--bg);
}

/* 키보드로 옮길 때 어디 있는지 보여야 한다. */
.tabs__btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/*
  탭을 바꿀 때 내용이 툭 튀어나오지 않게 한 번 부드럽게 올린다.
  카드에 걸린 reveal 은 처음 한 번만 도므로 여기서 따로 준다.
*/
.tabs__panel:not([hidden]) {
  animation: tab-in 0.24s ease both;
}

@keyframes tab-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* 움직임을 원치 않는 사람에게는 움직이지 않는다. */
@media (prefers-reduced-motion: reduce) {
  .tabs__panel:not([hidden]) { animation: none; }
}

/* ── CS 문의 단추 ─────────────────────────────────── */

/*
   화면 오른쪽 아래에 떠 있다. 스크롤과 무관하게 늘 같은 자리다.

   z-index 는 헤더보다 위여야 한다 — 스크롤해서 헤더가 겹칠 때 단추가
   그 아래로 숨으면 누를 수 없다.

   safe-area 를 더하는 이유: 아이폰 홈 인디케이터에 단추가 물린다.
*/
.cs-launcher {
  position: fixed;
  /* 안 읽은 개수 뱃지가 이 단추를 기준으로 붙는다. */
  right: clamp(16px, 3vw, 28px);
  bottom: calc(clamp(16px, 3vw, 28px) + env(safe-area-inset-bottom, 0px));
  z-index: 900;

  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #FFFFFF;
  font: inherit;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 15, 15, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cs-launcher:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 15, 15, 0.28); }
.cs-launcher:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.cs-launcher__icon { font-size: 1.8rem; line-height: 1; }

/* 열려 있을 때는 '닫기'로 읽히게 눌린 모양을 준다. */
.cs-launcher.is-open { background: var(--accent-deep); }

/* 좁은 화면에서는 글자를 빼고 동그란 단추만 남긴다 — 본문을 가리지 않게. */
@media (max-width: 480px) {
  .cs-launcher { padding: 14px; }
  .cs-launcher__label { display: none; }
}

/*
   문의 칸.

   화면을 덮는 창이 아니라 단추 위에 붙어 열리는 칸이다 — 요금제를 보면서
   물어볼 수 있어야 하기 때문이다. 그래서 바깥을 눌러도 닫지 않는다.
*/
.cs-panel {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: calc(clamp(16px, 3vw, 28px) + 64px + env(safe-area-inset-bottom, 0px));
  z-index: 901;

  width: min(380px, calc(100vw - 32px));
  /* 화면이 낮아도 넘치지 않게. 안쪽이 스크롤된다. */
  max-height: min(640px, calc(100vh - 130px));
  display: flex;
  flex-direction: column;

  background: #FFFFFF;
  border: 1px solid rgba(15, 15, 15, 0.08);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(15, 15, 15, 0.18);
  overflow: hidden;
}

.cs-panel[hidden] { display: none; }

.cs-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(15, 15, 15, 0.06);
}

.cs-panel__title { margin: 0; font-size: 1.7rem; font-weight: 700; }

.cs-panel__close {
  border: 0;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-40);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
}
.cs-panel__close:hover { color: var(--ink); background: var(--bg); }
.cs-panel__close:focus-visible { outline: 2px solid var(--accent); }



.cs-panel__foot {
  margin: 0;
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(15, 15, 15, 0.06);
  font-size: 1.25rem;
  color: var(--ink-40);
}

/* 상태 줄 — 연결됐는지 알려준다. */
.cs-state { margin: 2px 0 0; font-size: 1.2rem; color: var(--ink-40); }
.cs-state--ok { color: #3C6B24; }
.cs-state--bad { color: #B0301B; }

/* 안 읽은 답 개수 */
.cs-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--coral);
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}
.cs-badge[hidden] { display: none; }

/* 말이 쌓이는 자리 */
.cs-log {
  flex: 1;
  min-height: 220px;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-greet { padding: 4px 0 8px; }
.cs-greet p { margin: 0; font-size: 1.45rem; }
.cs-greet__sub { margin-top: 4px !important; font-size: 1.3rem !important; color: var(--ink-40); }

.cs-day,
.cs-ended {
  align-self: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  font-size: 1.2rem;
  color: var(--ink-40);
}

.cs-msg { display: flex; align-items: flex-end; gap: 6px; max-width: 84%; }
/* 내가 한 말은 오른쪽, 상담원 말은 왼쪽. 채팅에서 익은 배치다. */
.cs-msg--me { align-self: flex-end; flex-direction: row-reverse; }
.cs-msg--agent { align-self: flex-start; }

.cs-msg__body {
  margin: 0;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 1.4rem;
  line-height: 1.5;
  /* 손으로 친 줄바꿈을 살리고, 띄어쓰기 없는 긴 글도 접는다. */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.cs-msg--me .cs-msg__body { background: var(--ink); color: #FFFFFF; border-bottom-right-radius: 5px; }
.cs-msg--agent .cs-msg__body { background: var(--bg-sub); color: var(--ink); border-bottom-left-radius: 5px; }

.cs-msg__at { font-size: 1.1rem; color: var(--ink-40); flex: 0 0 auto; }

/* 쓰는 자리 */
.cs-compose {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(15, 15, 15, 0.06);
}

.cs-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: 14px;
  background: var(--bg);
  font: inherit;
  font-size: 1.45rem;
  color: var(--ink);
  resize: none;
  max-height: 120px;
  overflow-y: auto;
}
.cs-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(77, 197, 229, 0.2); }

.cs-send {
  flex: 0 0 auto;
  padding: 11px 16px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: #FFFFFF;
  font: inherit;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
}
.cs-send:hover { background: #000000; }
.cs-send:disabled { opacity: 0.55; cursor: default; }
.cs-send:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.cs-error {
  margin: 0;
  padding: 9px 18px;
  background: rgba(244, 86, 60, 0.1);
  color: #B0301B;
  font-size: 1.3rem;
}
.cs-error[hidden] { display: none; }

/* 화면을 넘기는 애니메이션을 끄고 쓰는 사람도 있다. */
@media (prefers-reduced-motion: reduce) {
  .cs-launcher { transition: none; }
  .cs-launcher:hover { transform: none; }
}

/* ── 상담 콘솔 ────────────────────────────────────── */

.agent-body { background: var(--bg); min-height: 100vh; }

.agent-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px clamp(16px, 3vw, 28px);
  border-bottom: 1px solid rgba(15, 15, 15, 0.08);
  background: #FFFFFF;
}
.agent-logo { font-weight: 800; font-size: 1.7rem; color: var(--ink); text-decoration: none; }
.agent-title { font-size: 1.5rem; color: var(--ink-70); }
.agent-conn { margin-left: auto; font-size: 1.3rem; color: var(--ink-40); }
.agent-conn.is-ok { color: #3C6B24; }
.agent-who { font-size: 1.35rem; color: var(--ink-70); }

.agent-gate { padding: 60px 24px; text-align: center; font-size: 1.6rem; color: var(--ink-70); }
.agent-gate[hidden] { display: none; }

/* 목록과 대화를 나란히. 좁으면 위아래로 쌓는다. */
.agent-main {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  height: calc(100vh - 58px);
}
.agent-main[hidden] { display: none; }

@media (max-width: 760px) {
  .agent-main { grid-template-columns: 1fr; grid-template-rows: 220px 1fr; }
}

.agent-list {
  border-right: 1px solid rgba(15, 15, 15, 0.08);
  background: #FFFFFF;
  overflow-y: auto;
}
.agent-list__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px;
}
.agent-list__head h2 { margin: 0; font-size: 1.45rem; }
.agent-list__head button {
  border: 1px solid rgba(15, 15, 15, 0.12); background: var(--bg);
  border-radius: 10px; padding: 5px 10px; font: inherit; font-size: 1.25rem; cursor: pointer;
}
.agent-list ul { list-style: none; margin: 0; padding: 0 8px 12px; }

.agent-thread {
  width: 100%;
  display: flex; flex-direction: column; gap: 3px;
  text-align: left;
  padding: 10px 12px;
  border: 0; border-radius: 12px;
  background: none; font: inherit; cursor: pointer;
}
.agent-thread:hover { background: var(--bg); }
.agent-thread.is-on { background: rgba(77, 197, 229, 0.14); }
.agent-thread__top { display: flex; align-items: center; gap: 8px; }
.agent-thread__top strong { font-size: 1.4rem; }
.agent-thread__at,
.agent-thread__contact { font-size: 1.2rem; color: var(--ink-40); }

.agent-dot {
  padding: 1px 8px; border-radius: var(--radius-pill);
  font-size: 1.1rem; font-weight: 600;
  background: rgba(15, 15, 15, 0.07); color: var(--ink-40);
}
.agent-dot--open { background: rgba(99, 173, 69, 0.16); color: #3C6B24; }

.agent-room { display: flex; flex-direction: column; min-width: 0; }
.agent-room__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(15, 15, 15, 0.08);
  background: #FFFFFF;
}
.agent-room__head strong { font-size: 1.5rem; }
.agent-room__contact { margin-left: 8px; font-size: 1.3rem; color: var(--ink-40); }
.agent-room__head button {
  border: 1px solid rgba(15, 15, 15, 0.12); background: #FFFFFF;
  border-radius: 10px; padding: 6px 12px; font: inherit; font-size: 1.3rem; cursor: pointer;
}
.agent-room__head button[hidden] { display: none; }

/* 말풍선은 손님 위젯과 같은 규칙(.cs-msg)을 쓴다 — 두 벌을 따로 두면 어긋난다. */
.agent-log {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 8px;
}

.agent-compose {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(15, 15, 15, 0.08);
  background: #FFFFFF;
}
.agent-compose[hidden] { display: none; }
.agent-compose textarea {
  flex: 1; min-width: 0;
  padding: 10px 14px;
  border: 1px solid rgba(15, 15, 15, 0.12); border-radius: 14px;
  background: var(--bg); font: inherit; font-size: 1.45rem; color: var(--ink);
  resize: none; max-height: 140px;
}
.agent-compose textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(77, 197, 229, 0.2);
}
.agent-compose button {
  flex: 0 0 auto;
  padding: 11px 18px; border: 0; border-radius: 14px;
  background: var(--ink); color: #FFFFFF; font: inherit; font-size: 1.4rem; font-weight: 600;
  cursor: pointer;
}
.agent-compose button:disabled { opacity: 0.55; cursor: default; }

.agent-empty { padding: 20px 16px; text-align: center; font-size: 1.3rem; color: var(--ink-40); }
.agent-empty[hidden] { display: none; }

/* 상담 콘솔에는 손님용 문의 단추가 뜨면 안 된다. */
.agent-body .cs-launcher,
.agent-body .cs-panel { display: none; }

/* ── 관리자: 탭·현황·표·창 ────────────────────────── */

.agent-nav { display: flex; gap: 4px; margin-left: 8px; }
.agent-nav__btn {
  position: relative;
  border: 0; background: none;
  padding: 7px 13px; border-radius: var(--radius-pill);
  font: inherit; font-size: 1.4rem; color: var(--ink-40);
  cursor: pointer;
}
.agent-nav__btn:hover { color: var(--ink); }
.agent-nav__btn.is-on { background: var(--ink); color: #FFFFFF; }
.agent-nav__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 손이 필요한 개수. 없으면 안 뜬다. */
.agent-nav__n {
  margin-left: 6px; padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--coral); color: #FFFFFF;
  font-size: 1.1rem; font-weight: 700;
}
.agent-nav__n[hidden] { display: none; }

.agent-panel { padding: 24px clamp(16px, 3vw, 28px) 60px; }
.agent-panel[hidden] { display: none; }
/* 상담 화면은 스스로 높이를 다 쓴다. */
.agent-panel--flush { padding: 0; }

.agent-err {
  margin: 0; padding: 12px clamp(16px, 3vw, 28px);
  background: rgba(244, 86, 60, 0.1); color: #B0301B; font-size: 1.35rem;
}
.agent-err[hidden] { display: none; }

/* 현황 카드 */
.agent-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.agent-card {
  background: #FFFFFF;
  border: 1px solid rgba(15, 15, 15, 0.06);
  border-radius: 18px;
  padding: 18px 20px;
}
.agent-card h2 { margin: 0; font-size: 1.3rem; font-weight: 600; color: var(--ink-40); }
.agent-card strong { display: block; margin: 6px 0 2px; font-size: 3rem; font-weight: 700; }
.agent-card p { margin: 0; font-size: 1.25rem; color: var(--ink-40); }

.agent-block { margin-top: 28px; }
.agent-block h2 { font-size: 1.6rem; margin: 0 0 12px; }
.agent-block__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.agent-block__head h2 { margin: 0; font-size: 1.8rem; }
.agent-count { font-size: 1.35rem; color: var(--accent-deep); font-weight: 600; }

.agent-todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.agent-todo__none { font-size: 1.4rem; color: var(--ink-40); }
.agent-todo__go {
  width: 100%; text-align: left;
  padding: 13px 16px;
  border: 1px solid rgba(15, 15, 15, 0.08); border-radius: 14px;
  background: #FFFFFF; font: inherit; font-size: 1.45rem; cursor: pointer;
}
.agent-todo__go:hover { border-color: var(--accent); }

.agent-primary {
  padding: 10px 16px; border: 0; border-radius: 12px;
  background: var(--ink); color: #FFFFFF; font: inherit; font-size: 1.4rem; font-weight: 600;
  cursor: pointer;
}
.agent-primary:hover { background: #000000; }
.agent-primary:disabled { opacity: 0.55; cursor: default; }

.agent-mini {
  padding: 5px 11px; border: 1px solid rgba(15, 15, 15, 0.14); border-radius: 10px;
  background: #FFFFFF; font: inherit; font-size: 1.25rem; cursor: pointer;
}
.agent-mini:hover { border-color: var(--accent); }
.agent-mini:disabled { opacity: 0.5; cursor: default; }

/* 표는 넓어도 페이지가 옆으로 흐르면 안 된다. */
.agent-table-wrap { overflow-x: auto; }
.agent-table { width: 100%; border-collapse: collapse; font-size: 1.4rem; background: #FFFFFF; }
.agent-table th, .agent-table td {
  text-align: left; padding: 11px 14px; white-space: nowrap;
  border-bottom: 1px solid rgba(15, 15, 15, 0.07);
}
.agent-table th { font-size: 1.25rem; font-weight: 600; color: var(--ink-40); }
.agent-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.agent-table td:first-child { white-space: normal; min-width: 140px; }

.agent-dot--active { background: rgba(99, 173, 69, 0.16); color: #3C6B24; }
.agent-dot--suspended,
.agent-dot--expired { background: rgba(244, 86, 60, 0.14); color: #B0301B; }
.agent-dot--done { background: rgba(99, 173, 69, 0.16); color: #3C6B24; }
.agent-dot--canceled { background: rgba(15, 15, 15, 0.07); color: var(--ink-40); }

/* 요금제 */
.agent-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.agent-plan { background: #FFFFFF; border: 1px solid rgba(15, 15, 15, 0.06); border-radius: 18px; padding: 18px 20px; }
.agent-plan__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.agent-plan__head strong { font-size: 1.6rem; }
.agent-plan__head code { font-size: 1.2rem; color: var(--ink-40); }
.agent-plan__head button { margin-left: auto; }
.agent-plan__grid { margin: 0; display: flex; flex-direction: column; gap: 5px; }
.agent-plan__grid > div { display: flex; gap: 10px; }
.agent-plan__grid dt { flex: 0 0 90px; font-size: 1.25rem; color: var(--ink-40); }
.agent-plan__grid dd { margin: 0; font-size: 1.35rem; }

/* 구독 신청 */
.agent-subs { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.agent-sub { background: #FFFFFF; border: 1px solid rgba(15, 15, 15, 0.06); border-radius: 16px; padding: 14px 16px; }
.agent-sub__top { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.agent-sub__top strong { font-size: 1.45rem; }
.agent-sub__at { margin-left: auto; font-size: 1.2rem; color: var(--ink-40); }
.agent-sub__contact { margin: 0; font-size: 1.35rem; }
.agent-sub__note { margin: 4px 0 0; font-size: 1.3rem; color: var(--ink-70); white-space: pre-wrap; overflow-wrap: anywhere; }
.agent-sub__acts { display: flex; gap: 8px; margin-top: 10px; }

/* 고치는 창 */
.agent-modal {
  position: fixed; inset: 0; z-index: 950;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(15, 15, 15, 0.45);
}
.agent-modal[hidden] { display: none; }

.agent-modal__box {
  width: min(480px, 100%);
  max-height: min(86vh, 720px);
  display: flex; flex-direction: column;
  background: #FFFFFF; border-radius: 20px;
  box-shadow: 0 20px 60px rgba(15, 15, 15, 0.3);
  overflow: hidden;
}
.agent-modal__box > header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px; border-bottom: 1px solid rgba(15, 15, 15, 0.07);
}
.agent-modal__box > header h2 { margin: 0; font-size: 1.7rem; }
.agent-modal__box > header button {
  border: 0; background: none; font-size: 1.6rem; color: var(--ink-40); cursor: pointer;
}
.agent-modal__box > form { padding: 16px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.agent-modal__box > footer {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 14px 20px; border-top: 1px solid rgba(15, 15, 15, 0.07);
}
.agent-modal__box > footer button:not(.agent-primary) {
  padding: 10px 16px; border: 1px solid rgba(15, 15, 15, 0.14); border-radius: 12px;
  background: #FFFFFF; font: inherit; font-size: 1.4rem; cursor: pointer;
}

.agent-field { display: flex; flex-direction: column; gap: 4px; }
.agent-field > span { font-size: 1.3rem; color: var(--ink-70); }
.agent-field input, .agent-field select {
  padding: 10px 13px; border: 1px solid rgba(15, 15, 15, 0.12); border-radius: 12px;
  background: var(--bg); font: inherit; font-size: 1.45rem; color: var(--ink);
}
.agent-field input:focus, .agent-field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(77, 197, 229, 0.2);
}
.agent-field input[readonly] { background: var(--bg-sub); color: var(--ink-40); }
.agent-hint { font-size: 1.2rem; color: var(--ink-40); }

/* 칸 묶음 사이의 제목 줄 */
.agent-field--sep {
  margin-top: 8px; padding-top: 12px;
  border-top: 1px solid rgba(15, 15, 15, 0.08);
}
.agent-field--sep strong { font-size: 1.35rem; }

/* 상담 탭은 머리(58)를 뺀 높이를 다 쓴다. */
.agent-panel--flush .agent-main { height: calc(100vh - 58px); }

/* 로그인 아이디. 이름보다 눈에 덜 띄되 읽을 수는 있게. */
.agent-table td.agent-id { color: var(--ink-70); font-size: 1.3rem; }

/* 소싱처 고르기. 이름을 손으로 치면 오타 하나로 안 열린다. */
.agent-sites {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 260px; overflow-y: auto;
  padding: 8px 10px;
  border: 1px solid rgba(15, 15, 15, 0.12); border-radius: 12px;
  background: var(--bg);
}
.agent-site { display: flex; align-items: center; gap: 8px; padding: 3px 2px; cursor: pointer; }
.agent-site input { width: 16px; height: 16px; flex: 0 0 auto; }
.agent-site span { font-size: 1.4rem; }
.agent-site code { margin-left: auto; font-size: 1.15rem; color: var(--ink-40); }

/* 나라별 묶음. 소싱처가 늘면 이름만 늘어놓아서는 못 찾는다. */
.agent-site-group { display: flex; flex-direction: column; gap: 2px; }
.agent-site-head {
  display: flex; align-items: center; gap: 8px;
  padding: 3px 2px 5px;
  border-bottom: 1px solid rgba(15, 15, 15, 0.08);
  margin-bottom: 3px;
}
.agent-site-head input { width: 16px; height: 16px; flex: 0 0 auto; }
.agent-site-head strong { font-size: 1.3rem; }
.agent-site-head .agent-hint { margin-left: auto; }
/* 나라 안의 소싱처는 한 칸 들여쓴다. */
.agent-site-group .agent-site { padding-left: 22px; }

/* 몰 연동 인증키 */
.agent-integ { display: flex; flex-direction: column; gap: 14px; max-width: 460px; margin-top: 16px; }
.agent-integ__acts { display: flex; align-items: center; gap: 10px; }
.agent-integ__acts button:not(.agent-primary) {
  padding: 10px 16px; border: 1px solid rgba(15, 15, 15, 0.14); border-radius: 12px;
  background: #FFFFFF; font: inherit; font-size: 1.4rem; cursor: pointer;
}
.agent-integ__acts button[hidden] { display: none; }
.agent-panel h2.spaced { margin-top: 34px; }
