:root {
  --emerald: #10b981;
  --emerald-dark: #059669;
  --emerald-light: #d1fae5;
  --emerald-glow: rgba(16, 185, 129, 0.18);
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f8fafc;
  --white: #ffffff;
  --max: 1080px;
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.25rem;
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 48px rgba(16, 185, 129, 0.12);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--emerald-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.site-header.is-scrolled,
.site-header--solid {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding-block: 0.5rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.nav a.is-active {
  color: var(--emerald-dark);
  font-weight: 700;
}

.nav .nav-cta {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--emerald-dark);
  text-decoration: none;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--emerald-dark);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo span {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), background 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
  color: white;
  box-shadow: 0 8px 20px var(--emerald-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #14c38e 0%, var(--emerald-dark) 100%);
  text-decoration: none;
  color: white;
  box-shadow: 0 12px 28px var(--emerald-glow);
}

.btn-outline {
  background: white;
  color: var(--emerald-dark);
  border: 1px solid var(--emerald);
}

.btn-outline:hover {
  background: var(--emerald-light);
  text-decoration: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, #ecfdf5 0%, var(--bg) 72%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: float 12s ease-in-out infinite;
}

.hero-blob-1 {
  width: 320px;
  height: 320px;
  top: -80px;
  right: -60px;
  background: #6ee7b7;
}

.hero-blob-2 {
  width: 260px;
  height: 260px;
  bottom: -40px;
  left: -40px;
  background: #a7f3d0;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(0, -18px) scale(1.04); }
}

.hero-h1-line2 {
  display: inline-block;
  padding-left: clamp(1.75rem, 9vw, 4.5rem);
}

.hero-eyebrow,
.section-eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}


.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: normal;
  margin: 0 0 1rem;
}

.hero .lead {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(16, 185, 129, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 56px rgba(16, 185, 129, 0.16);
}

.hero-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.925rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: white;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  letter-spacing: normal;
}

.section-title p {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--muted);
}

.section-sublead {
  margin-top: 0.75rem !important;
  margin-bottom: 0 !important;
  font-size: 0.95rem;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.section-sublead + .section-sublead {
  margin-top: 0.35rem !important;
}

.section-title strong {
  color: var(--emerald-dark);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.75s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(16, 185, 129, 0.22);
}

.card-centered {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
}

.card-centered p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.card .icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.925rem;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: 0.925rem;
}

.pricing-table th,
.pricing-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.pricing-table th {
  background: #f3f4f6;
  font-weight: 600;
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.policy-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
  width: 9rem;
}

.note-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: #92400e;
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.note-box-spaced {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.company-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  font-size: 0.925rem;
  box-shadow: var(--shadow-sm);
}

.company-box dl {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.5rem 1rem;
  margin: 0;
}

.company-box dt {
  color: var(--muted);
  font-weight: 500;
}

.company-box dd {
  margin: 0;
}

.site-footer {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: #d1d5db;
  padding: 2.75rem 0;
  font-size: 0.875rem;
}

.footer-brand {
  color: white;
  font-size: 1.1rem;
}

.site-footer p {
  margin: 0.75rem 0 0;
}

.footer-copy {
  margin-top: 0.5rem !important;
  color: #9ca3af;
}

.site-footer a {
  color: #a7f3d0;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.legal-page {
  padding: 2.5rem 0 4rem;
}

.legal-page h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.legal-page .updated {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.05rem;
  margin: 2rem 0 0.75rem;
}

.legal-page p,
.legal-page li {
  color: #374151;
  font-size: 0.925rem;
}

.legal-page ul {
  padding-left: 1.25rem;
}

.badge-promo {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  vertical-align: middle;
}

.footer-meta {
  margin-top: 0.35rem !important;
  color: #9ca3af;
  font-size: 0.8rem;
}

/* ── Mobile nav ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
}

@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.65rem 0.25rem;
    border-bottom: 1px solid var(--border);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .nav .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
  }

  .site-header .inner {
    position: relative;
    flex-wrap: wrap;
  }
}

@media (max-width: 639px) {
  .nav:not(.is-open) {
    display: none;
  }
}

/* ── App screenshots ── */
.section-screenshots {
  background: linear-gradient(180deg, #ecfdf5 0%, var(--bg) 100%);
}

.section-screenshots code {
  font-size: 0.85em;
  background: #e5e7eb;
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
}

.screenshot-groups {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.shot-group {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(16, 185, 129, 0.1);
  box-shadow: var(--shadow-sm);
}

.shot-group-head h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.shot-group-head p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.shot-row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shot-row-2 {
  grid-template-columns: repeat(2, minmax(0, 220px));
}

@media (max-width: 768px) {
  .shot-row,
  .shot-row-2 {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.75rem;
    padding-inline-end: 0.25rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(16, 185, 129, 0.35) transparent;
  }

  .shot-row::-webkit-scrollbar,
  .shot-row-2::-webkit-scrollbar {
    height: 6px;
  }

  .shot-row::-webkit-scrollbar-thumb,
  .shot-row-2::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.35);
  }

  .shot-frame {
    flex: 0 0 min(68vw, 200px);
    scroll-snap-align: start;
  }

  .shot-screen {
    max-width: 100%;
  }
}

.shot-frame {
  margin: 0;
  text-align: center;
}

.shot-trigger {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: default;
}

.shot-trigger:not(:disabled) {
  cursor: zoom-in;
}

.shot-trigger:not(:disabled):hover .shot-screen img,
.shot-trigger:not(:disabled):focus-visible .shot-screen img {
  transform: scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.shot-trigger:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 4px;
  border-radius: 1.85rem;
}

.shot-screen {
  position: relative;
  max-width: 220px;
  margin-inline: auto;
  aspect-ratio: 390 / 844;
}

.shot-frame .shot-empty {
  position: absolute;
  inset: 0;
  border-radius: 1.75rem;
  border: 3px solid #1f2937;
  background: linear-gradient(165deg, #f3f4f6 0%, #e5e7eb 100%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem;
  position: relative;
}

.shot-frame .shot-empty::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 4px;
  border-radius: 999px;
  background: #9ca3af;
}

.shot-frame .shot-empty span {
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7280;
  font-family: ui-monospace, monospace;
  word-break: break-all;
}

.shot-frame .shot-empty small {
  font-size: 0.75rem;
  color: var(--muted);
}

.shot-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 1.75rem;
  border: 3px solid #1f2937;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  background: #fff;
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shot-screen.loaded .shot-empty {
  display: none;
}

.shot-frame img[hidden] {
  display: none !important;
}

.shot-frame figcaption {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

/* ── Screenshot lightbox ── */
html.lightbox-open,
body.lightbox-open {
  overflow: hidden;
}

.shot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}

.shot-lightbox[hidden] {
  display: none;
}

.shot-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.82);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.28s var(--ease-out);
}

.shot-lightbox.is-active .shot-lightbox-backdrop {
  opacity: 1;
}

.shot-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 420px);
  max-height: 92vh;
  opacity: 0;
  transform: scale(0.94) translateY(12px);
  transition: opacity 0.32s var(--ease-out), transform 0.32s var(--ease-out);
}

.shot-lightbox.is-active .shot-lightbox-panel {
  opacity: 1;
  transform: none;
}

.shot-lightbox-img {
  display: block;
  width: 100%;
  max-height: calc(92vh - 3rem);
  object-fit: contain;
  border-radius: 1.25rem;
  border: 3px solid #1f2937;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.shot-lightbox-caption {
  margin: 0.75rem 0 0;
  text-align: center;
  color: #f9fafb;
  font-size: 0.9rem;
  font-weight: 500;
}

.shot-lightbox-close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.shot-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.05);
}

/* ── Homepage copy & layout ── */
.hero-diff {
  margin: 0 0 1.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 0.925rem;
  color: #374151;
  line-height: 1.55;
}

.feature-split {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 480px) {
  .feature-split {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-split-col h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  color: var(--emerald-dark);
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--muted);
}

.check-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--emerald-dark);
  font-weight: 700;
}

.hero-card-note {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.cta-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.cta-panel {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: white;
  box-shadow: var(--shadow-lg);
}

.cta-panel h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
}

.cta-panel p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
}

.cta-panel .hero-actions {
  justify-content: center;
}

.cta-panel .btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.7);
}

.cta-panel .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.company-note {
  font-size: 0.8rem;
  color: var(--muted);
}
