/* =============================================
   SHERPA IN — Premium SaaS Landing Page
   기준: Pretendard + Deep Navy + Blue Accent + White SaaS Layout
   HTML/CSS/JS 분리 원칙 유지
   ============================================= */

:root {
  --navy: #0f172a;
  --navy-deep: #020617;
  --navy-soft: #1e293b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #dbeafe;
  --accent-bg: #eef2ff;
  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --success: #16a34a;
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 34px 90px rgba(15, 23, 42, 0.16);
}

body {
  font-family: var(--font-base);
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===========================
   SCROLL REVEAL
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.72s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.persona-grid .reveal:nth-child(2),
.flow-grid .reveal:nth-child(2),
.core-feature-grid .reveal:nth-child(2),
.pricing-grid .reveal:nth-child(2) { transition-delay: 0.08s; }

.persona-grid .reveal:nth-child(3),
.flow-grid .reveal:nth-child(3),
.core-feature-grid .reveal:nth-child(3),
.pricing-grid .reveal:nth-child(3) { transition-delay: 0.16s; }

.flow-grid .reveal:nth-child(4),
.core-feature-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.core-feature-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.core-feature-grid .reveal:nth-child(6) { transition-delay: 0.4s; }

/* ===========================
   HEADER
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(22px) saturate(160%);
}

.header-inner {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  min-height: 72px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 3px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.13;
}

.brand-text strong {
  font-size: 14px;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.brand-text span {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 650;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.site-nav a {
  position: relative;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -24px;
  width: 0;
  height: 2px;
  border-radius: 3px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width 0.22s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--navy);
}

.site-nav a.active::after { width: 20px; }

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 750;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.header-cta:hover { background: var(--bg); color: var(--navy); }

.header-cta.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.header-cta.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.header-cta.outline {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
}

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 68px 0 60px;
  background:
    radial-gradient(circle at 15% 12%, rgba(37, 99, 235, 0.10), transparent 30%),
    radial-gradient(circle at 85% 18%, rgba(15, 23, 42, 0.07), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 52% 12%, black 0%, transparent 72%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(470px, 1.08fr);
  align-items: center;
  gap: 62px;
}

.hero-copy { max-width: 560px; }

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.1);
}

.hero h1 {
  margin-bottom: 24px;
  color: var(--navy);
  font-size: clamp(36px, 4.8vw, 58px);
  line-height: 1.04;
  font-weight: 850;
  letter-spacing: -0.06em;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  max-width: 510px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: -0.01em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 800;
  transition: all 0.24s ease;
}

.btn-primary {
  color: white;
  background: var(--accent);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.26);
}

.btn-secondary {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  color: var(--accent);
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-secondary .arrow { transition: transform 0.2s ease; }
.btn-secondary:hover .arrow { transform: translateX(3px); }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(37, 99, 235, 0.13);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.74);
  color: #1e40af;
  font-size: 12px;
  font-weight: 750;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
}

/* Hero visual mockup */
.hero-visual {
  position: relative;
  min-height: 520px;
}

.dashboard-window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(16px);
}

.window-topbar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 50px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border-light);
  background: rgba(248, 250, 252, 0.88);
}

.window-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.window-topbar span:first-child { background: #f87171; }
.window-topbar span:nth-child(2) { background: #fbbf24; }
.window-topbar span:nth-child(3) { background: #34d399; }
.window-topbar strong {
  margin-left: 10px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 84px 1fr;
  min-height: 420px;
}

.mock-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  background: linear-gradient(180deg, var(--navy) 0%, #111827 100%);
}

.mock-logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  border-radius: 3px;
  background: white;
  color: var(--navy);
  font-size: 12px;
  font-weight: 850;
}

.mock-nav {
  width: 42px;
  height: 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
}

.mock-nav.active { background: var(--accent); }
.mock-nav.short { width: 28px; }

.mock-main { padding: 28px; }

.mock-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.mock-label {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.mock-head strong {
  display: block;
  color: var(--navy);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.mock-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 3px;
  background: #ecfdf5;
  color: #15803d;
  font-size: 12px;
  font-weight: 850;
}

.mock-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.mock-kpi {
  min-height: 116px;
  padding: 15px;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
}

.mock-kpi span,
.mock-kpi em {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.mock-kpi strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--navy);
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -0.05em;
}

.mock-kpi em { color: var(--success); }

.mock-chart {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 132px;
  padding: 18px;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.06), rgba(37, 99, 235, 0)),
    #ffffff;
}

.mock-chart span {
  flex: 1;
  min-width: 16px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent) 0%, #93c5fd 100%);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
}

.mock-flow {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.mock-flow span {
  display: inline-flex;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 3px;
  background: var(--accent-bg);
  color: #1e40af;
  font-size: 12px;
  font-weight: 850;
}

.mock-flow i {
  height: 1px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.15), rgba(37, 99, 235, 0.55));
}

.floating-card {
  position: absolute;
  z-index: 2;
  width: 214px;
  padding: 17px 18px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.floating-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.floating-card strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.42;
}

.card-rank { left: -26px; bottom: 84px; }
.card-report { right: -20px; top: 88px; }

/* ===========================
   COMMON SECTION
   =========================== */
.section { padding: 64px 0; }

.section-heading {
  max-width: 650px;
  margin: 0 auto 32px;
}

.section-heading.center { text-align: center; }

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: end;
  gap: 40px;
  max-width: none;
}

.section-heading h2 {
  color: var(--navy);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -0.05em;
}

.section-heading p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
}

/* ===========================
   FLOW
   =========================== */
.stack-section { background: var(--white); }

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.flow-card {
  position: relative;
  min-height: 230px;
  padding: 28px 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.045);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.flow-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: var(--shadow-soft);
}

.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: 3px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.flow-card h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.flow-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ===========================
   PERSONA
   =========================== */
.persona-section {
  background:
    radial-gradient(circle at 20% 10%, rgba(37, 99, 235, 0.06), transparent 28%),
    var(--bg);
}

.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.persona-card {
  padding: 30px 24px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.04);
  transition: all 0.3s ease;
}

.persona-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.persona-card.featured {
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.09);
}

.speech-bubble {
  position: relative;
  min-height: 86px;
  margin-bottom: 22px;
  padding: 19px 20px;
  border-radius: 3px;
  background: var(--accent-bg);
  color: var(--navy);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.55;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 24px;
  width: 14px;
  height: 14px;
  background: var(--accent-bg);
  transform: rotate(45deg);
}

.persona-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.persona-card > p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ===========================
   MAKERS
   =========================== */
.makers-section { background: var(--white); }

.makers-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  align-items: center;
  gap: 48px;
}

.makers-content h2 {
  margin-bottom: 22px;
  color: var(--navy);
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.makers-content p {
  max-width: 660px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.82;
}

.quote-panel {
  position: relative;
  padding: 34px 30px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--navy) 0%, #172554 100%);
  color: white;
  box-shadow: var(--shadow-strong);
}

.quote-panel::before {
  content: '“';
  position: absolute;
  top: 12px;
  right: 26px;
  color: rgba(255, 255, 255, 0.12);
  font-size: 98px;
  font-weight: 850;
  line-height: 1;
}

.quote-panel strong {
  position: relative;
  display: block;
  margin-bottom: 18px;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.45;
  letter-spacing: -0.04em;
}

.quote-panel span {
  position: relative;
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.7;
}

/* ===========================
   FEATURES
   =========================== */
.features { background: var(--bg); }

.platform-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.platform-logos span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--white);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 750;
}

.core-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.core-feature-card {
  min-height: 178px;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--white);
  transition: all 0.28s ease;
}

.core-feature-card:hover {
  border-color: rgba(37, 99, 235, 0.32);
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.core-feature-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.core-feature-card h3 {
  margin-bottom: 9px;
  color: var(--navy);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.core-feature-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ===========================
   PRICING
   =========================== */
.pricing { background: var(--white); }

.pricing-toggle {
  display: flex;
  width: fit-content;
  margin: 0 auto 28px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg);
}

.toggle-btn {
  min-height: 38px;
  padding: 0 24px;
  border-radius: 3px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
  transition: all 0.2s ease;
}

.toggle-btn.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 530px;
  padding: 34px 28px 28px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.04);
  transition: all 0.3s ease;
}

.pricing-card.is-popular {
  border-color: rgba(37, 99, 235, 0.46);
  box-shadow: 0 24px 55px rgba(37, 99, 235, 0.12);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.plan-badge {
  position: absolute;
  top: 18px;
  right: 20px;
  padding: 6px 11px;
  border-radius: 3px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 850;
}

.plan-name {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-price {
  display: block;
  margin: 10px 0 5px;
  color: var(--navy);
  font-size: 32px;
  font-weight: 850;
  letter-spacing: -0.05em;
}

.plan-price small {
  font-size: 14px;
  font-weight: 650;
  color: var(--text-muted);
  letter-spacing: -0.02em;
}

.plan-period {
  display: block;
  margin-bottom: 22px;
  color: var(--text-faint);
  font-size: 13px;
  font-weight: 650;
}

.yearly-price { display: none; }

.pricing-card ul {
  margin: 0 0 26px;
}

.pricing-card li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.pricing-card li::before {
  content: '✓';
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.plan-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: auto;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  transition: all 0.22s ease;
}

.plan-button:hover {
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--accent);
  transform: translateY(-1px);
}

.plan-button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.18);
}

.plan-button.primary:hover {
  background: var(--accent-hover);
  color: white;
}

.pricing-note {
  margin-top: 18px;
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
}


.payment-policy-summary {
  max-width: 1000px;
  margin: 28px auto 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg);
}

.payment-policy-head {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.payment-policy-head h3 {
  color: var(--navy);
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.payment-policy-head p {
  color: var(--text-muted);
  font-size: 14px;
}

.payment-policy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.payment-policy-grid article {
  padding: 18px;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  background: var(--white);
}

.payment-policy-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 850;
}

.payment-policy-grid p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
}

.policy-link {
  display: flex;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  margin: 0 auto;
  padding: 11px 18px;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 3px;
  background: var(--white);
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.policy-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ===========================
   FAQ
   =========================== */
.faq {
  background:
    radial-gradient(circle at 85% 0%, rgba(37, 99, 235, 0.06), transparent 28%),
    var(--bg);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  padding: 0 22px;
  color: var(--text);
  text-align: left;
  font-size: 15px;
  font-weight: 800;
}

.faq-question:hover { background: var(--bg); }

.faq-question::after {
  content: '+';
  flex: 0 0 auto;
  margin-left: 18px;
  color: var(--text-faint);
  font-size: 19px;
  font-weight: 500;
}

.faq-item.active .faq-question::after { content: '−'; }

.faq-answer {
  display: none;
  padding: 0 22px 22px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
}

.faq-item.active .faq-answer { display: block; }

.inquiry-cta {
  margin-top: 18px;
  padding: 32px 28px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0) 60%),
    var(--white);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.inquiry-cta h3 {
  margin-bottom: 9px;
  color: var(--navy);
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.inquiry-cta p {
  max-width: 560px;
  margin: 0 auto 22px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 16px;
  color: var(--text-faint);
  font-size: 12px;
}

.footer-inner a { color: rgba(255,255,255,0.72); font-weight: 750; }
.footer-inner a:hover { color: #ffffff; }

.footer-inner strong {
  color: var(--navy);
  font-size: 13px;
  letter-spacing: 0.06em;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: 190px 1fr;
  }

  .site-nav {
    justify-content: flex-end;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-bottom: 10px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-copy {
    max-width: 760px;
    text-align: center;
    margin: 0 auto;
  }

  .hero-description { margin: 0 auto; }
  .hero-actions, .hero-tags { justify-content: center; }
  .hero-visual { min-height: auto; max-width: 720px; margin: 0 auto; }
  .makers-layout,
  .section-heading.split { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .persona-grid,
  .core-feature-grid,
  .pricing-grid { grid-template-columns: 1fr; }
  .payment-policy-grid { grid-template-columns: 1fr; }

  .pricing-card { min-height: auto; }
  .makers-layout { gap: 28px; }
}

@media (max-width: 768px) {
  .container,
  .container-narrow {
    padding: 0 18px;
  }

  .site-header { position: sticky; }

  .header-inner {
    display: flex;
    flex-wrap: wrap;
    min-height: auto;
    padding: 12px 0;
    gap: 10px;
  }

  .brand { flex: 1 0 auto; }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 0 2px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a::after { display: none; }

  .header-actions {
    grid-column: auto;
    padding-bottom: 0;
    gap: 6px;
  }

  .header-cta {
    min-height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }

  .hero {
    padding: 48px 0 48px;
  }

  .hero h1 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 310px;
    margin-left: auto;
    margin-right: auto;
  }

  .dashboard-shell { grid-template-columns: 58px 1fr; }
  .mock-main { padding: 20px 16px; }
  .mock-kpis { grid-template-columns: 1fr; }
  .mock-chart { height: 100px; }
  .mock-flow { grid-template-columns: 1fr; }
  .mock-flow i { display: none; }
  .floating-card { display: none; }

  .section { padding: 46px 0; }
  .flow-grid { grid-template-columns: 1fr; }
  .flow-card { min-height: auto; }
  .flow-num { margin-bottom: 28px; }
  .footer-inner { flex-direction: column; justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .brand-mark { width: 34px; height: 34px; border-radius: 3px; }
  .brand-text strong { font-size: 13px; }
  .brand-text span { font-size: 10px; }
  .header-actions { width: 100%; justify-content: flex-start; }
  .header-cta { flex: 1; }
  .window-topbar strong { display: none; }
  .dashboard-window { border-radius: 3px; }
  .quote-panel,
  .inquiry-cta,
  .pricing-card,
  .persona-card,
  .core-feature-card,
  .flow-card { border-radius: 3px; }
}

/* ===========================
   HERO AD DEMO — animated carousel + expandable report
   =========================== */
.ad-demo {
  position: relative;
  display: block;
  width: 100%;
  min-height: 520px;
  padding: 0;
  border: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.ad-demo:focus-visible .ad-demo-frame {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 6px;
}

.ad-demo-click-hint {
  position: absolute;
  top: -12px;
  right: 24px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
  animation: demoHintFloat 2.8s ease-in-out infinite;
}

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

.ad-demo-frame {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 3px;
  background:
    radial-gradient(circle at 18% 16%, rgba(37, 99, 235, 0.18), transparent 32%),
    radial-gradient(circle at 86% 26%, rgba(15, 23, 42, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(248,250,252,0.82));
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
  transform: translateZ(0);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.ad-demo:hover .ad-demo-frame {
  transform: translateY(-4px) scale(1.006);
  box-shadow: 0 38px 100px rgba(15, 23, 42, 0.18);
}

.ad-demo-frame::before {
  content: '';
  position: absolute;
  inset: 50px 0 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.8), transparent 78%);
  pointer-events: none;
}

.ad-demo-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.72);
  background: rgba(248, 250, 252, 0.78);
}

.ad-demo-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.ad-demo-topbar span:first-child { background: #fb7185; }
.ad-demo-topbar span:nth-child(2) { background: #fbbf24; }
.ad-demo-topbar span:nth-child(3) { background: #34d399; }
.ad-demo-topbar strong {
  margin-left: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
}
.ad-demo-topbar em {
  margin-left: auto;
  color: var(--accent);
  font-style: normal;
  font-size: 12px;
  font-weight: 850;
}

.ad-demo-stage {
  position: relative;
  z-index: 1;
  min-height: 410px;
}

.ad-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 22px;
  padding: 42px 38px 54px;
  opacity: 0;
  transform: translateX(24px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.58s ease, transform 0.58s ease;
}

.ad-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.ad-slide-copy span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ad-slide-copy h3 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.06em;
}

.ad-slide-copy p {
  max-width: 300px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.72;
}

.ad-demo-progress {
  position: absolute;
  left: 38px;
  right: 38px;
  bottom: 24px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.ad-demo-progress span {
  height: 4px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.28);
}

.ad-demo-progress span::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.ad-demo-progress span.is-active::before {
  animation: adProgress 4.2s linear forwards;
}

@keyframes adProgress {
  to { transform: scaleX(1); }
}

.rank-animation,
.mindmap-animation,
.cpc-animation,
.seo-animation,
.report-animation {
  position: relative;
  min-height: 290px;
}

.rank-animation {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  animation: rankFloat 3.2s ease-in-out infinite;
}

.rank-row:nth-child(2) { animation-delay: 0.18s; }
.rank-row:nth-child(3) { animation-delay: 0.32s; }
.rank-row.is-target {
  border-color: rgba(37, 99, 235, 0.36);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(255,255,255,0.94));
}
.rank-row b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 3px;
  background: var(--navy);
  color: white;
  font-size: 16px;
}
.rank-row span { color: var(--navy); font-weight: 850; }
.rank-row em { color: var(--success); font-style: normal; font-weight: 900; }
.rank-pulse {
  position: absolute;
  top: 28px;
  right: 12px;
  padding: 9px 13px;
  border-radius: 3px;
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.22);
  animation: pulseBadge 1.8s ease-in-out infinite;
}

@keyframes rankFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.mindmap-animation {
  min-height: 310px;
}
.map-node {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 72px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  animation: nodePop 3s ease-in-out infinite;
}
.map-node.main {
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  border-radius: 3px;
  background: var(--accent);
  color: white;
  transform: translate(-50%, -50%);
}
.map-node.n1 { left: 7%; top: 22%; animation-delay: .2s; }
.map-node.n2 { right: 6%; top: 18%; animation-delay: .4s; }
.map-node.n3 { left: 12%; bottom: 18%; animation-delay: .6s; }
.map-node.n4 { right: 10%; bottom: 16%; animation-delay: .8s; }
.map-node.n5 { left: 50%; top: 8%; transform: translateX(-50%); animation-delay: 1s; }
.map-line {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 170px;
  height: 1px;
  background: linear-gradient(90deg, rgba(37,99,235,0), rgba(37,99,235,.52), rgba(37,99,235,0));
  transform-origin: left;
  animation: lineGlow 2.2s ease-in-out infinite;
}
.map-line.l1 { transform: rotate(210deg); }
.map-line.l2 { transform: rotate(325deg); }
.map-line.l3 { transform: rotate(145deg); }
.map-line.l4 { transform: rotate(35deg); }
.map-line.l5 { transform: rotate(270deg); width: 118px; }
@keyframes nodePop {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}
@keyframes lineGlow {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}

.cpc-animation {
  display: grid;
  grid-template-columns: 1fr 150px;
  align-items: end;
  gap: 18px;
}
.cpc-meter {
  display: flex;
  align-items: end;
  gap: 14px;
  height: 260px;
  padding: 20px;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  background: rgba(255,255,255,.78);
}
.cpc-meter span {
  flex: 1;
  min-width: 28px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), #bfdbfe);
  transform-origin: bottom;
  animation: cpcBars 2.6s ease-in-out infinite;
}
.cpc-meter span:nth-child(2) { animation-delay: .18s; }
.cpc-meter span:nth-child(3) { animation-delay: .36s; }
.cpc-meter span:nth-child(4) { animation-delay: .54s; }
.cpc-card {
  align-self: center;
  padding: 20px 18px;
  border-radius: 3px;
  background: var(--navy);
  color: white;
  box-shadow: var(--shadow-soft);
  animation: pulseBadge 2.4s ease-in-out infinite;
}
.cpc-card small,
.cpc-card em { display: block; color: rgba(255,255,255,.72); font-style: normal; font-weight: 750; }
.cpc-card strong { display: block; margin: 6px 0; font-size: 34px; font-weight: 900; letter-spacing: -0.06em; }
@keyframes cpcBars {
  0%, 100% { transform: scaleY(.86); }
  50% { transform: scaleY(1); }
}

.seo-animation {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 24px;
}
.score-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 82%, #e2e8f0 82% 100%);
  box-shadow: var(--shadow-soft);
}
.score-ring::after {
  content: '';
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: white;
}
.score-ring strong,
.score-ring span { position: relative; z-index: 1; display: block; text-align: center; }
.score-ring strong { color: var(--navy); font-size: 34px; font-weight: 900; line-height: 1; }
.score-ring span { margin-top: 6px; color: var(--text-muted); font-size: 11px; font-weight: 850; }
.seo-animation ul { display: grid; gap: 15px; }
.seo-animation li { display: grid; gap: 8px; color: var(--navy); font-size: 13px; font-weight: 850; }
.seo-animation li i { display: block; height: 10px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), #93c5fd); animation: seoFill 2.5s ease-in-out infinite; }
@keyframes seoFill {
  0% { transform: scaleX(.65); transform-origin: left; }
  50%, 100% { transform: scaleX(1); transform-origin: left; }
}

.report-animation {
  display: grid;
  place-items: center;
}
.report-sheet {
  width: min(100%, 300px);
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-soft);
  animation: reportIn 2.8s ease-in-out infinite;
}
.report-sheet strong { display: block; margin-bottom: 16px; color: var(--navy); font-size: 18px; font-weight: 900; }
.report-sheet > span { display: block; height: 9px; margin: 9px 0; border-radius: 3px; background: #e2e8f0; }
.report-sheet > span:nth-child(3) { width: 78%; }
.report-sheet > span:nth-child(4) { width: 62%; }
.report-bars { display: flex; align-items: end; gap: 8px; height: 70px; margin-top: 18px; }
.report-bars i { flex: 1; border-radius: 3px; background: var(--accent); }
.report-bars i:nth-child(1) { height: 38%; }
.report-bars i:nth-child(2) { height: 62%; }
.report-bars i:nth-child(3) { height: 82%; }
.report-bars i:nth-child(4) { height: 54%; }
.report-send {
  position: absolute;
  right: 18px;
  bottom: 44px;
  padding: 10px 14px;
  border-radius: 3px;
  background: #ecfdf5;
  color: #15803d;
  font-size: 12px;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}
@keyframes reportIn {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

.hero-demo-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.hero-demo-modal.is-open { display: flex; }
.hero-demo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.68);
  backdrop-filter: blur(12px);
}
.hero-demo-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1060px);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 3px;
  background:
    radial-gradient(circle at 18% 12%, rgba(37,99,235,.24), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 48px 140px rgba(2, 6, 23, 0.38);
}
.hero-demo-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-size: 22px;
  line-height: 1;
}
.hero-demo-expanded {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 34px;
  padding: 58px;
}
.demo-ad-copy span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
}
.demo-ad-copy h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.06em;
}
.demo-ad-copy p {
  margin-bottom: 26px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.78;
}
.demo-report-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-soft);
}
.demo-report-head span { color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.demo-report-head strong { display: block; margin-top: 8px; color: var(--navy); font-size: 21px; font-weight: 900; letter-spacing: -0.04em; }
.demo-report-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 24px 0; }
.demo-report-kpis div { padding: 16px; border-radius: 3px; background: var(--bg); }
.demo-report-kpis span { display: block; color: var(--text-muted); font-size: 11px; font-weight: 800; }
.demo-report-kpis strong { display: block; margin-top: 5px; color: var(--navy); font-size: 25px; font-weight: 900; }
.demo-report-list { display: grid; gap: 12px; margin: 0; padding-left: 22px; color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

body.demo-modal-open { overflow: hidden; }

@media (max-width: 1100px) {
  .ad-demo { min-height: 500px; }
  .ad-slide { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .ad-demo { min-height: 620px; }
  .ad-demo-frame { min-height: 620px; border-radius: 3px; }
  .ad-slide {
    grid-template-columns: 1fr;
    align-content: start;
    padding: 34px 22px 58px;
  }
  .ad-slide-copy h3 { font-size: 25px; }
  .rank-animation,
  .mindmap-animation,
  .cpc-animation,
  .seo-animation,
  .report-animation { min-height: 260px; }
  .cpc-animation,
  .seo-animation { grid-template-columns: 1fr; }
  .cpc-card { justify-self: start; }
  .ad-demo-click-hint { right: 16px; }
  .hero-demo-expanded { grid-template-columns: 1fr; padding: 38px 22px; }
  .demo-report-kpis { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ad-demo-click-hint,
  .rank-row,
  .rank-pulse,
  .map-node,
  .map-line,
  .cpc-meter span,
  .cpc-card,
  .seo-animation li i,
  .report-sheet,
  .ad-demo-progress span.is-active::before {
    animation: none !important;
  }
}

/* ===========================
   HERO AD DEMO — app-like feature UI refinement
   실제 앱 기능 페이지의 카드/검색/지표/표 감각에 맞춘 미리보기
   =========================== */
.feature-ui-demo {
  display: block;
  min-height: 310px;
}

.feature-ui-card {
  position: relative;
  width: min(100%, 360px);
  margin-left: auto;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.feature-ui-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #93c5fd);
}

.feature-ui-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.feature-ui-head strong {
  color: var(--navy);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.feature-ui-head span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 3px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
}

.feature-search-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
}

.feature-search-row span,
.feature-search-row em,
.feature-search-row b {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 3px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.feature-search-row span,
.feature-search-row em {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
}

.feature-search-row b {
  background: var(--accent);
  color: white;
}

.feature-stat-grid,
.feature-report-sheet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 13px;
}

.feature-stat-grid div,
.feature-report-sheet div {
  padding: 11px 10px;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  background: var(--bg);
}

.feature-stat-grid small,
.feature-report-sheet small {
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 850;
}

.feature-stat-grid strong,
.feature-report-sheet strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.feature-table {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}

.feature-table p {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  background: white;
  animation: featureRowFloat 3.2s ease-in-out infinite;
}

.feature-table p:nth-child(2) { animation-delay: .12s; }
.feature-table p:nth-child(3) { animation-delay: .24s; }
.feature-table p.is-target {
  border-color: rgba(37, 99, 235, .34);
  background: linear-gradient(90deg, rgba(37, 99, 235, .09), white);
}

.feature-table b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 3px;
  background: var(--navy);
  color: white;
  font-size: 12px;
}

.feature-table span {
  color: var(--navy);
  font-size: 12px;
  font-weight: 850;
}

.feature-table em {
  color: var(--accent);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

@keyframes featureRowFloat {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.feature-mindmap-panel {
  position: relative;
  height: 215px;
  margin-top: 14px;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  background:
    radial-gradient(circle at 50% 50%, rgba(37,99,235,.08), transparent 34%),
    var(--bg);
}

.ui-node {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 64px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(37, 99, 235, .22);
  border-radius: 3px;
  background: white;
  color: var(--navy);
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(15,23,42,.07);
  animation: nodePop 3s ease-in-out infinite;
}

.ui-node.main {
  left: 50%;
  top: 50%;
  width: 76px;
  height: 50px;
  border-radius: 3px;
  background: var(--accent);
  color: white;
  transform: translate(-50%, -50%);
}

.ui-node.n1 { left: 8%; top: 20%; }
.ui-node.n2 { right: 8%; top: 18%; animation-delay: .15s; }
.ui-node.n3 { left: 12%; bottom: 18%; animation-delay: .3s; }
.ui-node.n4 { right: 12%; bottom: 18%; animation-delay: .45s; }
.ui-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 125px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,.48), transparent);
  transform-origin: left;
  animation: lineGlow 2.2s ease-in-out infinite;
}
.ui-line.l1 { transform: rotate(210deg); }
.ui-line.l2 { transform: rotate(330deg); }
.ui-line.l3 { transform: rotate(145deg); }
.ui-line.l4 { transform: rotate(35deg); }

.feature-chart-row {
  display: flex;
  align-items: end;
  gap: 9px;
  height: 118px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  background: var(--bg);
}

.feature-chart-row i {
  flex: 1;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), #bfdbfe);
  animation: cpcBars 2.6s ease-in-out infinite;
}
.feature-chart-row i:nth-child(2) { animation-delay: .15s; }
.feature-chart-row i:nth-child(3) { animation-delay: .3s; }
.feature-chart-row i:nth-child(4) { animation-delay: .45s; }
.feature-chart-row i:nth-child(5) { animation-delay: .6s; }

.feature-recommend {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  border-radius: 3px;
  background: var(--accent-bg);
  color: #1e40af;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.feature-score-layout {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
}

.feature-score {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 82%, #e2e8f0 82% 100%);
  color: var(--navy);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.feature-score strong { display: block; font-size: 28px; font-weight: 900; line-height: 1; }
.feature-score span { display: block; margin-top: 4px; color: var(--text-muted); font-size: 10px; font-weight: 850; }
.feature-score-bars { display: grid; gap: 9px; }
.feature-score-bars p { margin: 0; }
.feature-score-bars b { display: block; margin-bottom: 5px; color: var(--navy); font-size: 11px; font-weight: 850; }
.feature-score-bars i { display: block; height: 8px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), #93c5fd); animation: seoFill 2.5s ease-in-out infinite; }

.report-list p { grid-template-columns: 28px 1fr 48px; }

@media (max-width: 768px) {
  .feature-ui-card {
    width: 100%;
    margin: 0;
  }
  .feature-search-row,
  .feature-stat-grid,
  .feature-report-sheet,
  .feature-score-layout {
    grid-template-columns: 1fr;
  }
  .feature-score {
    width: 88px;
    height: 88px;
  }
}

/* ===========================
   PAYMENT POLICY PAGE
   =========================== */
.policy-page {
  padding-top: 138px;
  background: var(--bg);
}

.policy-panel {
  margin-top: 18px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
}

.policy-panel h2 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.policy-panel p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
}

.policy-table-wrap {
  overflow-x: auto;
  margin: 14px 0 16px;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  color: var(--text-secondary);
  font-size: 13px;
}

.policy-table th,
.policy-table td {
  padding: 13px 14px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.policy-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 850;
}

.policy-list {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
}

.policy-example {
  margin-top: 14px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: var(--bg);
  color: var(--navy) !important;
  font-weight: 750;
}


/* ===========================
   PRODUCT / CHECKOUT PAGES
   =========================== */
.policy-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.policy-link-grid.compact {
  justify-content: center;
  margin-top: 14px;
}

.policy-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.policy-flow-grid div {
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg);
}

.policy-flow-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 850;
}

.policy-flow-grid span {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.65;
  font-weight: 650;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.7fr);
  gap: 20px;
  align-items: start;
}

.checkout-tabs {
  display: inline-flex;
  gap: 4px;
  margin: 16px 0 18px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg);
}

.checkout-tabs button {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 3px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 850;
}

.checkout-tabs button.is-active {
  background: var(--navy);
  color: var(--white);
}

.checkout-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.checkout-product-card {
  display: block;
  width: 100%;
  min-height: 156px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--white);
  text-align: left;
  cursor: pointer;
}

.checkout-product-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.checkout-product-card strong {
  display: block;
  color: var(--navy);
  font-size: 16px;
  font-weight: 850;
}

.checkout-product-card span {
  display: block;
  margin-top: 8px;
  color: var(--accent);
  font-size: 20px;
  font-weight: 900;
}

.checkout-product-card p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.checkout-summary {
  position: sticky;
  top: 94px;
}

.checkout-summary-row {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

.checkout-summary-row span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.checkout-summary-row strong {
  color: var(--navy);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.45;
}

.checkout-agree {
  margin: 18px 0 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.checkout-pay-btn {
  width: 100%;
  min-height: 50px;
  border-radius: 3px;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 850;
}

.checkout-note {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.65;
}

.policy-panel a:not(.policy-link),
.faq-answer a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 960px) {
  .checkout-layout,
  .checkout-product-grid,
  .policy-flow-grid {
    grid-template-columns: 1fr;
  }
  .checkout-summary { position: static; }
}


/* Bank transfer account line formatting */
.checkout-bank-box,
.payment-bank-info,
.policy-bank-box {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 3px;
  background: #eff6ff;
  color: var(--text-body, #334155);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 750;
}
.checkout-bank-box > *,
.payment-bank-info > *,
.policy-bank-box > * {
  display: block;
  margin: 0;
  color: inherit;
  font-style: normal;
}

/* Deposit confirmation form */
.deposit-form-card {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--white);
}
.deposit-form-card h2 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 850;
}
.deposit-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.deposit-form-grid label,
.deposit-full {
  display: grid;
  gap: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 850;
}
.deposit-form-grid input,
.deposit-full textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0 12px;
  color: var(--text);
  font: inherit;
}
.deposit-full { margin-top: 12px; }
.deposit-full textarea { min-height: 88px; padding-top: 10px; resize: vertical; }
.deposit-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 750;
}
.tax-fields {
  margin: 12px 0 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg);
}
@media (max-width: 720px) { .deposit-form-grid { grid-template-columns: 1fr; } }

/* Deposit confirmation form refinement */
.policy-page #order-box {
  min-height: 360px;
}
.deposit-form-card {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.035);
}
.deposit-form-card h2 {
  line-height: 1.35;
}
.deposit-form-grid label,
.deposit-full {
  align-content: start;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.deposit-form-grid input,
.deposit-full textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--white);
  padding: 0 12px;
  color: var(--text);
  font-family: var(--font-base), "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.02em;
  outline: none;
  appearance: auto;
}
.deposit-form-grid input::placeholder,
.deposit-full textarea::placeholder {
  color: var(--text-faint);
  font-weight: 500;
}
.deposit-form-grid input:focus,
.deposit-full textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}
.deposit-full textarea {
  min-height: 92px;
  padding: 11px 12px;
  resize: vertical;
}
.deposit-check {
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  background: var(--bg);
}
.deposit-check input {
  margin-top: 4px;
  flex: 0 0 auto;
}
.tax-fields .deposit-form-grid {
  margin-top: 0;
}
.deposit-form-card .checkout-pay-btn {
  margin-top: 4px;
}

.checkout-hours-notice {
  margin: 14px 0;
  padding: 13px 15px;
  border: 1px solid rgba(217, 119, 6, 0.24);
  border-radius: 3px;
  background: #fffbeb;
  color: #92400e;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 750;
}
