/* Toss Securities 톤: 화이트 + #3182F6 */
:root {
  --blue: #3182f6;
  --blue-deep: #1b64da;
  --blue-soft: #e8f3ff;
  --ink: #191f28;
  --ink-2: #4e5968;
  --ink-3: #6b7684;
  --line: #e5e8eb;
  --bg: #ffffff;
  --bg-soft: #f2f4f6;
  --bg-blue: #f5f9ff;
  --radius: 14px;
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #dfe3e8;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
}

.app {
  width: min(480px, 100%);
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  box-shadow: 0 0 40px rgba(25, 31, 40, 0.08);
}

/* Topbar + logo */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 14px 0 8px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.topbar-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 5px 11px;
  border-radius: 999px;
}

/* Hero */
.hero {
  padding: 28px 20px 24px;
  background: linear-gradient(180deg, var(--bg-blue) 0%, var(--bg) 72%);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-2);
}

.sub {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

.hero-title {
  margin: 0;
  font-size: clamp(34px, 9.5vw, 42px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.04em;
  min-height: 2.5em;
}

.type-line {
  display: inline;
}

.type-line--accent {
  color: var(--blue);
}

.type-cursor {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-left: 2px;
  background: var(--blue);
  vertical-align: -0.08em;
  animation: blink 0.8s steps(1) infinite;
}

.type-cursor.is-done {
  opacity: 0;
  animation: none;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-visual {
  margin: 18px 0 0;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(49, 130, 246, 0.16), transparent 55%),
    #f3f8ff;
  border: 1px solid rgba(49, 130, 246, 0.18);
  box-shadow:
    0 18px 40px rgba(49, 130, 246, 0.16),
    0 4px 12px rgba(25, 31, 40, 0.06);
  position: relative;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  border-radius: inherit;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.02);
}

.disclaimer {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-3);
}

.benefit-cards {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.benefit-cards li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.benefit-cards img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.benefit-cards p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

/* Form */
.form-section {
  padding: 28px 20px 32px;
  background: var(--bg);
  border-top: 8px solid var(--bg-soft);
}

.form-section h2 {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
}

.form-lead {
  margin: -6px 0 20px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}

.form-lead strong {
  display: inline-block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 16px;
}

.lead-form {
  display: grid;
  gap: 14px;
}

.gender {
  margin: 0;
  padding: 0;
  border: 0;
}

.gender legend {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}

.gender-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gender-btn {
  cursor: pointer;
}

.gender-btn input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gender-btn span {
  display: grid;
  place-items: center;
  height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-2);
  transition: 0.15s ease;
}

.gender-btn input:checked + span {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.input-field {
  display: grid;
  gap: 6px;
}

.input-field > span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}

.input-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-field input::placeholder {
  color: #b0b8c1;
}

.input-field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.18);
}

.agreements {
  display: grid;
  gap: 8px;
}

.agree {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
}

.agree input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  flex-shrink: 0;
}

.view-btn {
  border: 0;
  padding: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  height: 54px;
  margin-top: 4px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(110deg, #0b4fd9 0%, #3182f6 38%, #7ab3ff 50%, #3182f6 62%, #1b64da 100%);
  background-size: 220% 100%;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow:
    0 8px 22px rgba(49, 130, 246, 0.42),
    0 0 0 0 rgba(49, 130, 246, 0.35);
  animation: ctaGlow 2.4s ease-in-out infinite, ctaShift 3.2s linear infinite;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.55) 48%,
    transparent 66%
  );
  transform: translateX(-120%);
  animation: ctaShine 2.4s ease-in-out infinite;
  pointer-events: none;
}

.cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.cta:active {
  transform: scale(0.985);
}

@keyframes ctaShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes ctaGlow {
  0%, 100% {
    box-shadow:
      0 8px 22px rgba(49, 130, 246, 0.38),
      0 0 0 0 rgba(49, 130, 246, 0.28);
  }
  50% {
    box-shadow:
      0 12px 32px rgba(49, 130, 246, 0.58),
      0 0 24px 4px rgba(122, 179, 255, 0.35);
  }
}

@keyframes ctaShine {
  0% { transform: translateX(-120%); }
  55%, 100% { transform: translateX(140%); }
}

/* Reviews marquee */
.reviews {
  padding: 32px 20px 28px;
  background: var(--bg-soft);
}

.reviews-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.reviews-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.reviews-viewport {
  height: 540px;
  overflow: hidden;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.reviews-track {
  will-change: transform;
}

.reviews-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reviews-viewport:hover .reviews-track {
  animation-play-state: paused;
}

.review {
  background: var(--bg);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.review-top {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  background: var(--blue-soft);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
  flex-shrink: 0;
}

.score {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

.score strong {
  color: var(--blue);
  font-size: 20px;
}

.stars {
  color: #f5a524;
  letter-spacing: -1px;
}

.who {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.pay {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}

.cover {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--ink-3);
}

.text {
  margin: 0;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.meta {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--ink-3);
}

/* Info */
.info {
  padding: 36px 20px 32px;
  background: var(--bg);
}

.info-kicker {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
}

.info h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.3;
}

.info-source {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--ink-3);
}

.info-box {
  margin-top: 20px;
  padding: 18px 16px;
  background: var(--bg-soft);
  border-radius: var(--radius);
}

.info-box p {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.45;
}

.stat-visual {
  margin: 16px 0 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-blue);
}

.stat-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.stat-visual figcaption {
  padding: 14px 16px 16px;
  background: linear-gradient(145deg, #3182f6 0%, #1b64da 100%);
  color: #fff;
  text-align: center;
}

.stat-label {
  margin: 0;
  font-size: 13px;
  opacity: 0.92;
}

.stat-title {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 600;
}

.stat-title strong {
  font-size: 22px;
  font-weight: 900;
}

.info-h3 {
  margin: 28px 0 14px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.35;
  text-align: center;
}

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

.feature-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-list img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.form-section--bottom {
  background: var(--bg-blue);
  border-top: 0;
}

/* Footer */
.footer {
  padding: 28px 20px 40px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-logo {
  width: 112px;
  height: 112px;
  object-fit: contain;
  background: transparent;
}

.footer-name {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.footer-note {
  margin: 0;
  font-size: 11px;
  line-height: 1.65;
  color: var(--ink-3);
  text-align: left;
}

/* Reveal / count animations */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.benefit-cards .reveal:nth-child(2),
.feature-list .reveal:nth-child(2) { transition-delay: 0.08s; }

/* Emoji motion */
.emoji-bob,
.emoji-wiggle,
.emoji-spin,
.emoji-pulse {
  display: inline-block;
  transform-origin: center;
}

.emoji-bob {
  animation: emojiBob 2.2s ease-in-out infinite;
}

.emoji-wiggle {
  animation: emojiWiggle 1.8s ease-in-out infinite;
}

.emoji-spin {
  animation: emojiSpin 2.6s ease-in-out infinite;
}

.emoji-pulse {
  animation: emojiPulse 1.6s ease-in-out infinite;
}

@keyframes emojiBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes emojiWiggle {
  0%, 100% { transform: rotate(-12deg); }
  50% { transform: rotate(12deg); }
}

@keyframes emojiSpin {
  0%, 70%, 100% { transform: rotate(0) scale(1); }
  80% { transform: rotate(-18deg) scale(1.12); }
  90% { transform: rotate(18deg) scale(1.12); }
}

@keyframes emojiPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

@keyframes reviewMarquee {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.reviews-track.is-ready {
  animation: reviewMarquee 38s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .type-cursor {
    animation: none;
    display: none;
  }

  .emoji-bob,
  .emoji-wiggle,
  .emoji-spin,
  .emoji-pulse,
  .cta,
  .cta::after,
  .reviews-track.is-ready {
    animation: none;
  }
}

/* Modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: end center;
}

.modal-dim {
  position: absolute;
  inset: 0;
  background: rgba(25, 31, 40, 0.45);
}

.modal-sheet {
  position: relative;
  width: min(480px, 100%);
  max-height: 75vh;
  overflow: auto;
  padding: 24px 20px 28px;
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  z-index: 1;
  animation: sheetUp 0.25s ease;
}

@keyframes sheetUp {
  from {
    transform: translateY(24px);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-x {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: var(--ink-3);
  cursor: pointer;
}

.modal-sheet h3 {
  margin: 0 28px 12px 0;
  font-size: 18px;
  font-weight: 800;
}

.modal-body {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
  white-space: pre-line;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 110;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.toast[hidden] {
  display: none;
}

@media (min-width: 481px) {
  body {
    padding: 24px 0;
  }

  .app {
    border-radius: 16px;
    overflow: hidden;
  }

  .modal {
    place-items: center;
  }

  .modal-sheet {
    border-radius: 16px;
    max-height: 70vh;
  }
}
