/* ═══════════════════════════════════════════
   FlipForm Landing Page — styles.css
   ═══════════════════════════════════════════ */

/* ─── RESET & VARIABLES ─── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root {
  --blue: #2563EB;
  --blue-dark: #0F172A;
  --blue-light: #EFF6FF;
  --blue-50: #DBEAFE;
  --gray: #475569;
  --gray-light: #94A3B8;
  --gray-border: #E2E8F0;
  --white: #FFFFFF;
  --green: #10B981;
  --green-light: #D1FAE5;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05);
  --shadow: 0 4px 16px rgba(15,23,42,.08);
  --shadow-lg: 0 8px 32px rgba(15,23,42,.12);
  --max-w: 1180px;
  --section-py: clamp(64px, 10vw, 112px);
}

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

body {
  font-family: var(--font-body);
  color: var(--gray);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--blue-dark);
  line-height: 1.2;
  letter-spacing: -.02em;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 40px; }
}


/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .938rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  padding: 14px 28px;
  box-shadow: 0 2px 8px rgba(37,99,235,.25);
}

.btn-primary:hover {
  background: #1D4ED8;
  box-shadow: 0 4px 16px rgba(37,99,235,.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--blue);
  padding: 13px 27px;
  border: 1.5px solid var(--blue);
}

.btn-secondary:hover { background: var(--blue-light); }

.btn-ghost {
  background: transparent;
  color: var(--blue);
  padding: 13px 24px;
}

.btn-ghost:hover {
  background: var(--blue-light);
  border-radius: 10px;
}

.btn-sm { padding: 10px 20px; font-size: .875rem; }

.btn-green {
  background: var(--green);
  color: #fff;
  padding: 14px 28px;
  box-shadow: 0 2px 8px rgba(16,185,129,.25);
}

.btn-green:hover {
  background: #059669;
  transform: translateY(-1px);
}


/* ─── HEADER ─── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-border);
  transition: box-shadow .3s;
}

.header.scrolled { box-shadow: 0 2px 20px rgba(15,23,42,.08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg { width: 18px; height: 18px; }

.nav { display: none; gap: 4px; }
@media (min-width: 900px) { .nav { display: flex; } }

.nav a {
  font-size: .875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--gray);
  transition: color .2s, background .2s;
}

.nav a:hover {
  color: var(--blue-dark);
  background: var(--blue-light);
}

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .btn-secondary { display: none; }
@media (min-width: 900px) { .header-actions .btn-secondary { display: inline-flex; } }

.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
}

.mobile-toggle:hover { background: var(--blue-light); }
@media (min-width: 900px) { .mobile-toggle { display: none; } }
.mobile-toggle svg { width: 24px; height: 24px; color: var(--blue-dark); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 99;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
  animation: slideDown .25s ease;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 16px;
  border-radius: 10px;
  color: var(--blue-dark);
}

.mobile-menu a:hover { background: var(--blue-light); }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ─── HERO ─── */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 var(--section-py);
  background: linear-gradient(180deg, var(--blue-light) 0%, #fff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 20px;
  max-width: 560px;
}

.hero h1 span { color: var(--blue); }

.hero p {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  max-width: 500px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }


/* ─── HERO MOCKUP ─── */
.hero-mockup { position: relative; display: flex; justify-content: center; }
.mockup-wrapper { position: relative; width: 100%; max-width: 520px; }

.mock-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  border: 1px solid var(--gray-border);
}

.mock-form-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--blue-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-form-title .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.mock-field {
  height: 38px;
  background: var(--blue-light);
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid var(--gray-border);
  position: relative;
  overflow: hidden;
}

.mock-field::after {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 40%;
  height: 10px;
  background: var(--gray-border);
  border-radius: 4px;
}

.mock-field.short::after { width: 28%; }

.mock-field-btn {
  height: 38px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
}

.mock-field-btn span {
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  font-family: var(--font-display);
}

.mock-lead {
  position: absolute;
  top: 20px;
  right: -20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  border: 1px solid var(--gray-border);
  min-width: 200px;
  z-index: 2;
  animation: floatLead 4s ease-in-out infinite;
}

@media (max-width: 899px) {
  .mock-lead { right: 0; top: -10px; transform: scale(.85); transform-origin: top right; }
}

.mock-lead-label {
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-light);
  margin-bottom: 6px;
  font-family: var(--font-display);
}

.mock-lead-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  color: var(--blue-dark);
}

.mock-lead-tag {
  display: inline-block;
  background: var(--green-light);
  color: #059669;
  font-size: .7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 6px;
  font-family: var(--font-display);
}

.mock-pipeline {
  position: absolute;
  bottom: -16px;
  left: -16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  border: 1px solid var(--gray-border);
  z-index: 2;
  animation: floatPipeline 5s ease-in-out infinite;
}

@media (max-width: 899px) {
  .mock-pipeline { left: 0; bottom: -24px; transform: scale(.85); transform-origin: bottom left; }
}

.mock-pipeline-label {
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-light);
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.pipe-cols { display: flex; gap: 6px; }

.pipe-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.pipe-col-title {
  font-size: .6rem;
  font-weight: 600;
  color: var(--gray);
  font-family: var(--font-display);
}

.pipe-dot { width: 28px; height: 6px; border-radius: 3px; }
.pipe-dot.d1 { background: var(--blue-50); }
.pipe-dot.d2 { background: var(--blue); opacity: .4; }
.pipe-dot.d3 { background: var(--blue); opacity: .7; }
.pipe-dot.d4 { background: var(--green); }

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

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

@media (max-width: 899px) {
  @keyframes floatLead {
    0%, 100% { transform: scale(.85) translateY(0); }
    50%      { transform: scale(.85) translateY(-6px); }
  }
  @keyframes floatPipeline {
    0%, 100% { transform: scale(.85) translateY(0); }
    50%      { transform: scale(.85) translateY(-4px); }
  }
}


/* ─── SECTIONS ─── */
section { padding: var(--section-py) 0; }

.section-label {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
  max-width: 680px;
}

.section-sub {
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.section-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-cta { margin-top: 48px; }


/* ─── PROBLEM ─── */
.problem { background: var(--blue-dark); color: rgba(255,255,255,.78); }
.problem .section-title { color: #fff; }
.problem .section-label { color: var(--blue-50); }

.problem-grid { display: grid; gap: 16px; margin-bottom: 0; }
@media (min-width: 640px) { .problem-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .problem-grid { grid-template-columns: repeat(3, 1fr); } }

.problem-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.problem-card .icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(239,68,68,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.problem-card .icon-wrap svg { width: 18px; height: 18px; color: #F87171; }
.problem-card p { font-size: .9rem; line-height: 1.55; }

.problem .btn-primary { background: #fff; color: var(--blue-dark); }
.problem .btn-primary:hover { background: var(--blue-light); }


/* ─── SOLUTION ─── */
.solution-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .solution-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .solution-grid { grid-template-columns: repeat(3, 1fr); } }

.sol-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow .25s, transform .25s;
}

.sol-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.sol-card .icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.sol-card .icon-wrap svg { width: 22px; height: 22px; color: var(--blue); }
.sol-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.sol-card p { font-size: .875rem; line-height: 1.6; }


/* ─── HOW IT WORKS ─── */
.how { background: var(--blue-light); }

.steps-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .steps-grid { grid-template-columns: repeat(5, 1fr); } }

.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--gray-border);
  position: relative;
}

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--blue);
  opacity: .18;
  margin-bottom: 8px;
  line-height: 1;
}

.step-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.step-card p { font-size: .82rem; line-height: 1.55; }


/* ─── BENEFITS ─── */
.benefits-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); } }

.benefit-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-border);
  background: var(--white);
}

.benefit-item .check {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-item .check svg { width: 14px; height: 14px; color: var(--green); }

.benefit-item p {
  font-size: .9rem;
  line-height: 1.5;
  color: var(--blue-dark);
  font-weight: 500;
}


/* ─── USE CASES ─── */
.cases { background: var(--blue-light); }

.cases-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .cases-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .cases-grid { grid-template-columns: repeat(4, 1fr); } }

.case-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: box-shadow .25s, transform .25s;
}

.case-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.case-card .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.case-card .icon-wrap svg { width: 24px; height: 24px; color: var(--blue); }
.case-card h3 { font-size: .9rem; font-weight: 700; }


/* ─── PLANS ─── */
.plans-grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .plans-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .plans-grid { grid-template-columns: repeat(4, 1fr); } }

.plan-card {
  background: var(--white);
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow .25s;
}

.plan-card:hover { box-shadow: var(--shadow); }
.plan-card.featured { border-color: var(--blue); box-shadow: 0 4px 24px rgba(37,99,235,.15); }

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.plan-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 4px;
}

.plan-desc { font-size: .82rem; color: var(--gray); margin-bottom: 20px; line-height: 1.5; }

.plan-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 4px;
}

.plan-price span { font-size: .85rem; font-weight: 500; color: var(--gray); }
.plan-price.custom { font-size: 1.3rem; }
.plan-divider { height: 1px; background: var(--gray-border); margin: 20px 0; }

.plan-section-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-light);
  margin-bottom: 10px;
  font-family: var(--font-display);
}

.plan-limits { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.plan-limit {
  background: var(--blue-light);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--blue-dark);
  font-family: var(--font-display);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  flex: 1;
}

.plan-features li {
  font-size: .84rem;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.plan-features li svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }
.plan-card .btn { width: 100%; }


/* ─── COMPARE TABLE ─── */
.compare-wrapper {
  overflow-x: auto;
  margin-top: 48px;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  min-width: 700px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .84rem;
}

.compare-table thead th {
  font-family: var(--font-display);
  font-weight: 700;
  text-align: center;
  padding: 14px 12px;
  background: var(--blue-dark);
  color: #fff;
  position: sticky;
  top: 0;
}

.compare-table thead th:first-child { text-align: left; border-radius: var(--radius) 0 0 0; }
.compare-table thead th:last-child  { border-radius: 0 var(--radius) 0 0; }
.compare-table thead th.featured-col { background: var(--blue); }

.compare-table tbody td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid var(--gray-border);
}

.compare-table tbody td:first-child { text-align: left; font-weight: 600; color: var(--blue-dark); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: var(--blue-light); }
.compare-table .check-icon { color: var(--green); font-weight: 700; }
.compare-table .dash { color: var(--gray-light); }


/* ─── FAQ ─── */
.faq { background: var(--blue-light); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  color: var(--blue-dark);
  text-align: left;
  gap: 16px;
  transition: background .2s;
}

.faq-q:hover { background: var(--blue-light); }
.faq-q svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform .25s; color: var(--gray); }
.faq-item.open .faq-q svg { transform: rotate(45deg); color: var(--blue); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-inner { padding: 0 24px 20px; font-size: .9rem; line-height: 1.7; color: var(--gray); }


/* ─── CTA FINAL ─── */
.cta-final { background: var(--blue-dark); text-align: center; color: rgba(255,255,255,.78); }
.cta-final .section-title { color: #fff; }

.cta-final-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}


/* ─── FOOTER ─── */
.footer {
  background: var(--blue-dark);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 48px 0 32px;
  color: rgba(255,255,255,.55);
  font-size: .84rem;
}

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

.footer h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: .95rem;
  margin-bottom: 12px;
}

.footer p { line-height: 1.6; max-width: 340px; }

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a { transition: color .2s; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  font-size: .78rem;
}
