/* ===========================================================
   K-마켓 인사이트 · Korean Editorial Mint Landing Page
   Palette : #93E9BE / #A7E9D6 / #17202A
   Typography : Nanum Gothic + Nanum Myeongjo
   =========================================================== */

:root {
  --mint: #93E9BE;
  --mint-soft: #A7E9D6;
  --mint-deep: #2EBE7E;
  --ink: #17202A;
  --ink-soft: #2C3A47;
  --cream: #F7F2E7;
  --paper: #FBF8F1;
  --white: #FFFFFF;
  --line: rgba(23, 32, 42, 0.08);
  --line-strong: rgba(23, 32, 42, 0.18);
  --shadow-sm: 0 4px 16px rgba(23, 32, 42, 0.06);
  --shadow-md: 0 18px 48px rgba(23, 32, 42, 0.12);
  --shadow-lg: 0 36px 80px rgba(23, 32, 42, 0.18);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --font-sans: 'Nanum Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-serif: 'Nanum Myeongjo', 'Noto Serif KR', serif;
  --max-w: 1240px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

section, .wrap { max-width: 100%; }

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }

/* ---------- TYPOGRAPHY ---------- */
.serif { font-family: var(--font-serif); font-weight: 800; letter-spacing: -0.01em; }

h1, h2, h3 { letter-spacing: -0.015em; word-break: keep-all; overflow-wrap: break-word; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4.2rem); line-height: 1.18; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.9rem); line-height: 1.28; font-weight: 800; }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 700; }
p, li, span { word-break: keep-all; overflow-wrap: break-word; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mint-deep);
}
.eyebrow::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--mint-deep);
  border-radius: 2px;
}

.lead { font-size: clamp(1rem, 1.15vw, 1.08rem); color: var(--ink-soft); }

/* ---------- BUTTONS ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-weight: 700;
  font-size: 0.98rem;
  border-radius: 999px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn .channel-icon {
  width: 22px; height: 22px;
  border-radius: 6px;
  object-fit: contain;
  background: var(--white);
  padding: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.btn-primary {
  background: var(--ink);
  color: var(--mint);
  box-shadow: 0 14px 30px rgba(23,32,42,.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 44px rgba(23,32,42,.32); }
.btn-primary::after {
  content: '\f061';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: .82rem;
  margin-left: 2px;
  transition: transform .25s ease;
}
.btn-primary:hover::after { transform: translateX(4px); }

.btn-ghost {
  color: var(--ink);
  border: 1.5px solid var(--ink);
  background: transparent;
}
.btn-ghost:hover { background: var(--ink); color: var(--mint); }

/* ---------- LOGO (used in footer) ---------- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--ink);
  border-radius: 12px;
  color: var(--mint);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 800;
  position: relative;
  overflow: hidden;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: auto -10% -40% auto;
  width: 60%; height: 60%;
  background: var(--mint);
  border-radius: 50%;
  filter: blur(8px);
  opacity: .5;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 88px 0 120px;
  overflow: hidden;
}
.hero-bg-blob {
  position: absolute;
  top: -10%; right: -8%;
  width: 620px; height: 620px;
  background: radial-gradient(circle at 30% 30%, var(--mint) 0%, var(--mint-soft) 40%, transparent 70%);
  filter: blur(60px);
  opacity: .55;
  z-index: 0;
  animation: float-blob 14s ease-in-out infinite alternate;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  z-index: 0;
  opacity: .8;
}
@keyframes float-blob {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(-40px,30px) scale(1.08); }
}

.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy h1 .accent {
  position: relative;
  display: inline-block;
  color: var(--ink);
}
.hero-copy h1 .accent::before {
  content: '';
  position: absolute;
  left: -4px; right: -4px;
  bottom: 6px; height: 16px;
  background: var(--mint);
  border-radius: 4px;
  z-index: -1;
  transform: skew(-8deg);
}
.hero-copy h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 800;
  color: var(--mint-deep);
}
.hero-copy .lead { margin-bottom: 36px; max-width: 480px; }

.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.hero-trust {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.avatar-stack { display: flex; }
.avatar-stack img {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 3px solid var(--paper);
  margin-left: -12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.avatar-stack img:first-child { margin-left: 0; }
.hero-trust .text strong { display: block; font-size: .95rem; font-weight: 700; }
.hero-trust .text small { color: var(--ink-soft); font-size: .82rem; }
.hero-trust .text .stars i { color: #f7c948; font-size: .78rem; margin-right: 1px; }

/* hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 5/6;
}
.hero-frame {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.4deg);
  transition: transform .5s ease;
}
.hero-frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease, filter .8s ease;
}
.hero-visual:hover .hero-frame { transform: rotate(0deg); }
.hero-visual:hover .hero-frame img { transform: scale(1.06); }

.hero-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 50%, rgba(147,233,190,.18) 100%);
  pointer-events: none;
}

.hero-tag {
  position: absolute;
  background: var(--white);
  border-radius: 18px;
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  z-index: 3;
  animation: float-tag 5s ease-in-out infinite alternate;
}
.hero-tag.t1 {
  top: 6%; left: -8%;
  animation-delay: .2s;
}
.hero-tag.t2 {
  bottom: 8%; right: -6%;
  animation-delay: .8s;
}
.hero-tag .icon {
  width: 40px; height: 40px;
  background: var(--mint);
  color: var(--ink);
  display: grid; place-items: center;
  border-radius: 12px;
  font-size: 1rem;
}
.hero-tag .text small { color: var(--ink-soft); font-size: .72rem; letter-spacing: 0.05em; }
.hero-tag .text strong { display: block; font-size: .98rem; font-weight: 800; }
.hero-tag.t1 .icon { background: var(--ink); color: var(--mint); }

@keyframes float-tag {
  from { transform: translateY(-6px); }
  to   { transform: translateY(8px); }
}

.hero-deco-line {
  position: absolute;
  width: 220px; height: 80px;
  bottom: -30px; left: -30px;
  z-index: 4;
  opacity: .85;
  pointer-events: none;
  transform: rotate(-10deg);
}

/* ---------- STATS STRIP ---------- */
.stats {
  position: relative;
  z-index: 4;
  margin-top: -60px;
  margin-bottom: 80px;
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 30px 36px;
  box-shadow: var(--shadow-lg);
  color: var(--white);
  align-items: center;
}
.stat-cell {
  position: relative;
  padding: 8px 14px;
  text-align: center;
}
.stat-cell + .stat-cell::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; height: 60%; width: 1px;
  background: rgba(255,255,255,.15);
}
.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--mint);
  line-height: 1;
}
.stat-num .plus { font-size: .65em; vertical-align: super; margin-left: 2px; }
.stat-label { display: block; margin-top: 8px; font-size: .82rem; color: rgba(255,255,255,.7); font-weight: 600; }

/* ---------- SECTION GENERIC ---------- */
section { padding: 90px 0; position: relative; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head .eyebrow { justify-content: center; margin-bottom: 18px; }
.section-head .eyebrow::before { display: none; }
.section-head .eyebrow { padding: 6px 16px; background: var(--white); border-radius: 999px; border: 1px solid var(--line); }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--ink-soft); }

/* ---------- FEATURES ---------- */
.features {
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 26px 30px;
  border: 1px solid var(--line);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: var(--mint-soft);
  border-radius: 50%;
  opacity: 0;
  transition: opacity .4s ease, transform .4s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--mint);
}
.feature-card:hover::before { opacity: .35; transform: scale(1.2); }

.feature-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--ink);
  color: var(--mint);
  font-size: 1.25rem;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.feature-card h3 { margin-bottom: 10px; position: relative; z-index: 1; }
.feature-card p { color: var(--ink-soft); font-size: .94rem; line-height: 1.65; position: relative; z-index: 1; }
.feature-num {
  position: absolute;
  top: 22px; right: 26px;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 800;
  color: var(--mint-deep);
  letter-spacing: 0.06em;
}

/* ---------- SPLIT SECTION (image + text) ---------- */
.split { padding: 110px 0; }
.split .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split.reverse .split-text { order: 2; }
.split.reverse .split-visual { order: 1; }

.split-text .eyebrow { margin-bottom: 18px; }
.split-text h2 { margin-bottom: 22px; }
.split-text .lead { margin-bottom: 28px; }
.split-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.split-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--line);
  transition: border-color .2s ease, transform .2s ease;
}
.split-list li:hover { border-color: var(--mint); transform: translateX(4px); }
.split-list .check {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  display: grid; place-items: center;
  font-size: .78rem;
}
.split-list strong { display: block; font-weight: 700; margin-bottom: 2px; font-size: .98rem; }
.split-list span { font-size: .87rem; color: var(--ink-soft); line-height: 1.55; }

/* visual */
.split-visual { position: relative; aspect-ratio: 5/6; }
.split-visual .img-main {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.2deg);
  transition: transform .5s ease;
}
.split-visual .img-main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}
.split-visual:hover .img-main { transform: rotate(0deg); }
.split-visual:hover .img-main img { transform: scale(1.05); }

.split-visual .deco-card {
  position: absolute;
  bottom: -28px; left: -28px;
  background: var(--white);
  padding: 18px 22px;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  display: flex; gap: 12px; align-items: center;
  z-index: 3;
  border: 1px solid var(--line);
}
.split.reverse .split-visual .deco-card { left: auto; right: -28px; }
.deco-card .ic {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--mint);
  display: grid; place-items: center;
  color: var(--ink);
}
.deco-card small { font-size: .7rem; color: var(--ink-soft); letter-spacing: 0.1em; }
.deco-card strong { display: block; font-size: .95rem; font-weight: 800; }

.split-visual .deco-tape {
  position: absolute;
  top: -16px; right: 16%;
  background: var(--ink);
  color: var(--mint);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transform: rotate(4deg);
  z-index: 4;
  box-shadow: 0 8px 18px rgba(23,32,42,.2);
}

/* ---------- REVIEWS ---------- */
.reviews {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.reviews::before {
  content: '';
  position: absolute;
  top: -20%; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(147,233,190,.25), transparent 60%);
  filter: blur(60px);
}
.reviews .section-head { color: var(--paper); position: relative; z-index: 1; }
.reviews .section-head .eyebrow { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15); color: var(--mint); }
.reviews .section-head p { color: rgba(255,255,255,.7); }

.review-slider {
  position: relative;
  overflow: hidden;
  padding: 10px 4px 30px;
}
.review-track {
  display: flex;
  gap: 22px;
  transition: transform .6s cubic-bezier(.4,.2,.2,1);
}
.review-card {
  flex: 0 0 calc((100% - 66px) / 4);
}
.phone {
  background: linear-gradient(180deg, #1f2a36 0%, #131a23 100%);
  border-radius: 38px;
  padding: 10px;
  box-shadow: 0 24px 48px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  position: relative;
}
.phone::before {
  content: '';
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px;
  background: #0d131a;
  border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  background: var(--paper);
  border-radius: 30px;
  padding: 50px 22px 26px;
  color: var(--ink);
  min-height: 380px;
  display: flex;
  flex-direction: column;
}
.phone-meta {
  display: flex;
  justify-content: space-between;
  font-size: .68rem;
  color: var(--ink-soft);
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 14px;
}
.phone-meta .dots i { margin-left: 3px; color: var(--ink-soft); }
.review-stars { color: #f7c948; font-size: .82rem; margin-bottom: 10px; }
.review-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.review-quote::before {
  content: '\201C';
  font-size: 2.2rem;
  color: var(--mint-deep);
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: 4px;
}
.review-author {
  display: flex; gap: 12px; align-items: center;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
}
.review-author img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--mint);
}
.review-author strong { display: block; font-size: .9rem; }
.review-author small { display: block; font-size: .76rem; color: var(--ink-soft); }

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
  position: relative;
  z-index: 2;
}
.slider-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--paper);
  display: grid; place-items: center;
  transition: background .2s ease, color .2s ease;
  border: 1px solid rgba(255,255,255,.12);
}
.slider-btn:hover { background: var(--mint); color: var(--ink); }
.slider-dots { display: flex; gap: 10px; }
.slider-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  transition: background .2s ease, transform .2s ease;
}
.slider-dots button.active { background: var(--mint); transform: scale(1.4); }

/* ---------- FINAL CTA ---------- */
.final-cta {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta-card {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 36px;
  padding: 70px 48px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.final-cta-card::before, .final-cta-card::after {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .55;
  z-index: 0;
}
.final-cta-card::before { background: var(--mint); top: -120px; left: -90px; }
.final-cta-card::after { background: var(--mint-soft); bottom: -140px; right: -90px; opacity: .7; }
.final-cta-card > * { position: relative; z-index: 2; }
.final-cta-card .eyebrow { margin-bottom: 18px; }
.final-cta-card h2 { margin-bottom: 18px; }
.final-cta-card p { color: var(--ink-soft); margin-bottom: 36px; max-width: 540px; margin-left: auto; margin-right: auto; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 70px 0 28px;
  position: relative;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo { color: var(--paper); }
.footer-brand .logo-mark { background: var(--mint); color: var(--ink); }
.footer-brand p { margin-top: 16px; font-size: .9rem; max-width: 360px; line-height: 1.7; }
.footer-col h4 {
  color: var(--paper);
  font-size: .82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: .92rem; transition: color .2s ease; cursor: pointer; }
.footer-col a:hover { color: var(--mint); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- FIXED FLOATING CTA ---------- */
.float-cta {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 28px 10px 10px;
  background: var(--ink);
  color: var(--mint);
  border-radius: 999px;
  box-shadow: 0 18px 38px rgba(23,32,42,.35), 0 0 0 6px rgba(147,233,190,.18);
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  animation: bob 2.4s ease-in-out infinite;
  white-space: nowrap;
  max-width: calc(100% - 28px);
  overflow: visible;
}
.float-cta::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 2px solid var(--mint);
  animation: ring 2.4s ease-out infinite;
  pointer-events: none;
  z-index: 0;
}
.float-cta::after {
  content: '\f061';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: .85rem;
  position: relative;
  z-index: 1;
}
.float-cta .float-label { position: relative; z-index: 1; }
.float-cta .float-icon {
  position: relative;
  z-index: 1;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--mint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.float-cta .float-icon img.channel-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-8px); }
}
@keyframes ring {
  0%   { opacity: .9; transform: scale(1); }
  80%  { opacity: 0; transform: scale(1.18); }
  100% { opacity: 0; transform: scale(1.18); }
}

/* ---------- MODAL ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23,32,42,.55);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 22px;
}
.modal-backdrop.active { display: flex; animation: fade-in .3s ease; }
.modal {
  background: var(--paper);
  max-width: 640px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  border-radius: 26px;
  padding: 40px 38px 32px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.modal p, .modal li { font-size: .92rem; color: var(--ink-soft); line-height: 1.75; margin-bottom: 12px; }
.modal ul { padding-left: 22px; }
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--mint);
  display: grid; place-items: center;
  font-size: .9rem;
}
@keyframes fade-in {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---------- REVEAL ANIMATION ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s ease;
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — MOBILE / TABLET
   ============================================================ */

@media (max-width: 1024px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .split .wrap { grid-template-columns: 1fr; gap: 56px; }
  .split.reverse .split-text { order: 1; }
  .split.reverse .split-visual { order: 2; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats .wrap { grid-template-columns: repeat(4, 1fr); padding: 22px; }
  .review-card { flex: 0 0 calc((100% - 22px) / 2); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  body { font-size: 14.5px; }
  .logo-mark { width: 30px; height: 30px; font-size: 0.95rem; }

  /* HERO — compact */
  .hero { padding: 36px 0 56px; }
  .hero .wrap { gap: 36px; }
  .hero-bg-blob { width: 320px; height: 320px; top: -8%; right: -22%; opacity: .45; }
  .hero-copy .eyebrow { font-size: .68rem; letter-spacing: .18em; margin-bottom: 14px; }
  .hero-copy h1 { font-size: 1.85rem; line-height: 1.22; margin-bottom: 14px; }
  .hero-copy h1 .accent::before { height: 12px; bottom: 4px; }
  .hero-copy .lead { font-size: .92rem; margin-bottom: 22px; line-height: 1.55; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .btn { justify-content: center; padding: 13px 20px; font-size: .95rem; }
  .hero-trust { margin-top: 22px; gap: 10px; }
  .avatar-stack img { width: 34px; height: 34px; border-width: 2px; }
  .hero-trust .text strong { font-size: .82rem; }
  .hero-trust .text small,
  .hero-trust .stars i { font-size: .72rem; }

  .hero-visual { aspect-ratio: 4/4.4; }
  .hero-tag { padding: 8px 11px; gap: 8px; border-radius: 14px; }
  .hero-tag .icon { width: 30px; height: 30px; font-size: .8rem; border-radius: 9px; }
  .hero-tag .text small { font-size: .6rem; letter-spacing: .03em; }
  .hero-tag .text strong { font-size: .76rem; }
  .hero-tag.t1 { top: 3%; left: -2%; }
  .hero-tag.t2 { bottom: 5%; right: 0; }
  .hero-deco-line { width: 100px; bottom: -10px; left: -4px; }

  /* STATS — tighter */
  .stats { margin-top: -34px; margin-bottom: 44px; }
  .stats .wrap {
    grid-template-columns: repeat(2, 1fr);
    padding: 16px 12px;
    gap: 6px 0;
    border-radius: 20px;
  }
  .stat-cell { padding: 11px 6px; }
  .stat-cell + .stat-cell::before { display: none; }
  .stat-cell:nth-child(2)::after,
  .stat-cell:nth-child(4)::after { display: none; }
  .stat-cell:nth-child(odd)::after {
    content: '';
    position: absolute;
    right: 0; top: 14%; height: 72%; width: 1px;
    background: rgba(255,255,255,.14);
  }
  .stat-cell:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 14px; }
  .stat-cell:nth-child(n+3) { padding-top: 14px; }
  .stat-num { font-size: 1.55rem; }
  .stat-label { font-size: .7rem; margin-top: 3px; }

  /* SECTIONS — tighter */
  section { padding: 44px 0; }
  .section-head { margin-bottom: 26px; }
  .section-head h2 { font-size: 1.55rem; line-height: 1.3; }
  .section-head p { font-size: .88rem; }
  .section-head .eyebrow { font-size: .66rem; letter-spacing: .18em; padding: 5px 12px; margin-bottom: 12px; }
  .eyebrow { font-size: .66rem; letter-spacing: .18em; }

  /* FEATURES */
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feature-card { padding: 20px 16px 18px; border-radius: 18px; }
  .feature-icon { width: 40px; height: 40px; font-size: 1rem; margin-bottom: 12px; border-radius: 12px; }
  .feature-card h3 { font-size: .98rem; margin-bottom: 6px; }
  .feature-card p { font-size: .8rem; line-height: 1.55; }
  .feature-num { font-size: .8rem; top: 14px; right: 16px; }

  /* SPLIT */
  .split { padding: 54px 0; }
  .split .wrap { gap: 34px; }
  .split-text .eyebrow { margin-bottom: 12px; }
  .split-text h2 { font-size: 1.55rem; margin-bottom: 14px; }
  .split-text .lead { font-size: .9rem; margin-bottom: 18px; }
  .split-list { gap: 10px; margin-bottom: 22px; }
  .split-list li { padding: 12px 14px; border-radius: 12px; gap: 12px; }
  .split-list .check { width: 24px; height: 24px; font-size: .7rem; }
  .split-list strong { font-size: .88rem; margin-bottom: 1px; }
  .split-list span { font-size: .78rem; line-height: 1.5; }
  .split-text .btn { padding: 13px 22px; font-size: .92rem; }

  .split-visual { aspect-ratio: 5/5.4; }
  .split-visual .img-main { border-radius: 22px; }
  .split-visual .deco-card { left: 10px; bottom: -14px; padding: 10px 14px; border-radius: 14px; }
  .split.reverse .split-visual .deco-card { right: 10px; left: auto; }
  .deco-card .ic { width: 30px; height: 30px; font-size: .82rem; border-radius: 9px; }
  .deco-card small { font-size: .58rem; }
  .deco-card strong { font-size: .8rem; }
  .split-visual .deco-tape { right: 8%; font-size: .64rem; padding: 5px 11px; top: -12px; }

  /* REVIEWS */
  .reviews { padding: 44px 0 52px; }
  .review-card { flex: 0 0 100%; }
  .phone { padding: 8px; border-radius: 34px; }
  .phone::before { width: 76px; height: 18px; top: 12px; }
  .phone-screen { min-height: 280px; padding: 40px 16px 18px; border-radius: 28px; }
  .phone-meta { font-size: .62rem; margin-bottom: 10px; }
  .review-stars { font-size: .76rem; margin-bottom: 8px; }
  .review-quote { font-size: .88rem; line-height: 1.55; margin-bottom: 12px; }
  .review-quote::before { font-size: 1.8rem; }
  .review-author { padding-top: 10px; gap: 10px; }
  .review-author img { width: 34px; height: 34px; border-width: 1.5px; }
  .review-author strong { font-size: .82rem; }
  .review-author small { font-size: .7rem; }
  .slider-controls { gap: 14px; margin-top: 20px; }
  .slider-btn { width: 40px; height: 40px; }
  .slider-dots button { width: 8px; height: 8px; }

  /* FINAL CTA */
  .final-cta { padding: 50px 0; }
  .final-cta-card { padding: 38px 22px; border-radius: 24px; }
  .final-cta-card h2 { font-size: 1.5rem; }
  .final-cta-card p { font-size: .86rem; margin-bottom: 24px; }
  .final-cta-card .btn { padding: 13px 22px; font-size: .94rem; }

  /* FOOTER */
  .site-footer { padding: 48px 0 22px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; padding-bottom: 24px; }
  .footer-brand p { font-size: .82rem; line-height: 1.6; }
  .footer-col h4 { font-size: .74rem; margin-bottom: 12px; }
  .footer-col ul { gap: 8px; }
  .footer-col a { font-size: .85rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding-top: 22px; font-size: .72rem; }

  /* FLOATING CTA */
  .float-cta {
    bottom: 14px;
    font-size: .86rem;
    padding: 8px 22px 8px 8px;
    gap: 10px;
  }
  .float-cta .float-icon { width: 34px; height: 34px; }

  /* MODAL */
  .modal { padding: 28px 20px 22px; border-radius: 20px; }
  .modal h3 { font-size: 1.15rem; padding-bottom: 14px; margin-bottom: 14px; }
  .modal p, .modal li { font-size: .85rem; line-height: 1.65; }

  /* Push content above floating CTA on mobile */
  body { padding-bottom: 68px; }
}

@media (max-width: 380px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 1.7rem; }
  .section-head h2,
  .split-text h2 { font-size: 1.4rem; }
  .float-cta { font-size: .8rem; padding: 7px 18px 7px 7px; }
  .float-cta .float-icon { width: 30px; height: 30px; }
}

/* ensure relative positioning for stat dividers */
.stat-cell { position: relative; }
