/* MineERP SEM Landing Pages — Shared Design System
 * MATCHES QUIZ CI (1-projects/roi-owner-quiz/deploy/index.html)
 * Phone-frame 540px container, sparkle-decorated hero, btn system, animated screens.
 */

:root {
  --brand: #2167D3;
  --brand-dark: #1852B5;
  --orange: #F07020;
  --gold: #FBB13C;
  --ink: #0F1F3C;
  --mute: #6B7A99;
  --soft: #F7F9FC;
  --line: #06C755;
  --line-dark: #05B04E;
  --ok: #059669;
  --warn: #DC2626;
  --border: #E6ECF5;
}

@font-face {
  font-family: 'Sukhumvit Set';
  src: local('Sukhumvit Set');
  font-weight: 400 700;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Sukhumvit Set', 'Inter', system-ui, -apple-system, sans-serif;
  background: #F3F6FB;
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ===== APP CONTAINER (phone-frame) ===== */
.app {
  max-width: 540px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(15,31,60,.06);
}

.screen {
  padding: 24px 20px 32px;
  animation: fadeUp .5s cubic-bezier(.2,.7,.2,1);
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes sparkle { 0%,100% { opacity: .3; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes popBig { 0% { transform: scale(.8); opacity: 0; } 60% { transform: scale(1.05); } 100% { transform: scale(1); opacity: 1; } }
@keyframes shimmerBg { 0%,100% { background-position:0% 50%; } 50% { background-position:100% 50%; } }

/* ===== HEADER ===== */
.hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.hdr-logo img { height: 28px; }
.hdr-pill { font-size: 12px; color: var(--mute); background: var(--soft); padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.hdr-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.hdr-url { font-size: 11px; font-weight: 800; letter-spacing: 0.04em; color: var(--ink); opacity: 0.55; }

/* ===== INTRO HERO (gradient + sparkles) ===== */
.intro-hero {
  background: linear-gradient(135deg, #EEF4FF 0%, #FFF5EB 100%);
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  background-size: 200% 200%;
  animation: shimmerBg 6s ease-in-out infinite;
}
.intro-hero .sparkle { position: absolute; font-size: 20px; animation: sparkle 2s ease-in-out infinite; pointer-events: none; }
.intro-hero .sparkle.s1 { top: 16px; left: 20px; color: var(--gold); }
.intro-hero .sparkle.s2 { top: 30px; right: 22px; color: var(--brand); animation-delay: .5s; }
.intro-hero .sparkle.s3 { bottom: 22px; left: 32px; color: var(--orange); animation-delay: 1s; }
.intro-hero .sparkle.s4 { bottom: 30px; right: 28px; color: var(--gold); animation-delay: 1.5s; }
.intro-hero .hero-emoji {
  font-size: 64px; line-height: 1; display: inline-block;
  animation: bob 3s ease-in-out infinite;
  filter: drop-shadow(0 6px 12px rgba(15,31,60,.12));
}

.intro-title { font-size: 28px; font-weight: 800; line-height: 1.25; margin-bottom: 12px; letter-spacing: -0.5px; color: var(--ink); }
.intro-sub { color: var(--mute); font-size: 15px; margin-bottom: 20px; line-height: 1.55; }

/* DEPA URGENCY BANNER (orange gradient — matches quiz) */
.depa-banner {
  background: linear-gradient(135deg, #FBB13C, #F07020);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(240,112,32,.25);
}
.depa-banner .icon { font-size: 22px; flex-shrink: 0; }
.depa-banner .body { flex: 1; line-height: 1.35; }
.depa-banner .title { font-weight: 800; font-size: 14px; }
.depa-banner .sub { font-size: 12px; opacity: .95; margin-top: 2px; }
.depa-banner .badge { background: rgba(255,255,255,.25); padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }

/* INTRO BULLETS (proof row replacement) */
.intro-bullets { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.intro-bullet { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); }
.intro-bullet .ico { width: 28px; height: 28px; background: var(--soft); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.intro-bullet strong { color: var(--ink); font-weight: 700; }

/* ===== BUTTONS ===== */
.btn {
  display: block; width: 100%; padding: 16px;
  font-family: inherit; font-size: 16px; font-weight: 700;
  border-radius: 14px; border: none; cursor: pointer;
  transition: all .15s ease; letter-spacing: 0.2px;
  text-decoration: none; text-align: center;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(33,103,211,.25); }
.btn-line { background: var(--line); color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-line:hover { background: var(--line-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(6,199,85,.25); }
.btn-ghost { background: transparent; color: var(--brand); border: 2px solid var(--border); }
.btn-ghost:hover { border-color: var(--brand); background: var(--soft); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #D9601A; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(240,112,32,.25); }
.btn-sm { padding: 10px 14px; font-size: 14px; width: auto; display: inline-block; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

/* ===== SECTION CARDS (gauge-card style) ===== */
.section { margin-top: 22px; }
.section-title { font-size: 20px; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.3px; line-height: 1.3; display: flex; align-items: center; gap: 8px; }

.card {
  background: #fff; border-radius: 16px; padding: 18px 16px;
  box-shadow: 0 4px 16px rgba(15,23,42,.05);
  border: 1px solid var(--border);
}
.card-soft { background: var(--soft); border-radius: 16px; padding: 18px 16px; }

/* Pain checklist */
.pain-list { display: flex; flex-direction: column; gap: 10px; }
.pain-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; background: #FEF2F2; border-radius: 12px;
  border-left: 3px solid var(--warn);
}
.pain-item .x { color: var(--warn); font-weight: 800; font-size: 18px; flex-shrink: 0; }
.pain-item span { font-size: 14px; color: var(--ink); line-height: 1.5; }
.pain-item strong { font-weight: 700; }

/* DEPA worked example calc */
.depa-calc {
  background: linear-gradient(135deg, #EEF4FF 0%, #FFF5EB 100%);
  border-radius: 16px; padding: 18px;
  border: 1px solid var(--border);
}
.depa-calc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.depa-calc td { padding: 8px 0; border-bottom: 1px dashed rgba(15,31,60,.12); }
.depa-calc td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.depa-calc tr.total td {
  border-bottom: none; border-top: 2px solid var(--ink); padding-top: 12px;
  font-weight: 900; font-size: 18px; color: var(--brand);
  letter-spacing: -0.3px;
}
.depa-calc .note { font-size: 11px; color: var(--mute); margin-top: 12px; line-height: 1.6; }
.depa-calc .note strong { color: var(--ink); font-weight: 700; }

/* Testimonial (gauge-card variant) */
.testimonial {
  background: #fff; border-radius: 16px; padding: 16px;
  box-shadow: 0 4px 16px rgba(15,23,42,.05);
  border-left: 4px solid var(--brand);
  margin-bottom: 12px;
}
.testimonial p { font-style: italic; font-size: 15px; color: var(--ink); margin-bottom: 8px; line-height: 1.55; }
.testimonial .by { font-size: 13px; color: var(--mute); font-weight: 700; font-style: normal; }

/* Customer logos row */
.logos {
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
  font-size: 13px; color: var(--mute); padding: 14px 0;
  border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border);
}
.logos strong { color: var(--ink); font-weight: 700; }

/* Feature list */
.feat-list { display: flex; flex-direction: column; gap: 10px; }
.feat-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; background: var(--soft); border-radius: 12px;
}
.feat-item .check { color: var(--ok); font-weight: 800; font-size: 18px; flex-shrink: 0; }
.feat-item span { font-size: 14px; color: var(--ink); line-height: 1.5; }
.feat-item strong { font-weight: 700; }

/* Migration steps */
.steps { display: flex; flex-direction: column; gap: 12px; }
.step {
  display: flex; gap: 14px; padding: 14px;
  background: #fff; border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
}
.step .num {
  flex-shrink: 0; width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--brand), #3B82F6);
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 15px;
  box-shadow: 0 4px 10px rgba(33,103,211,.25);
}
.step .body h4 { font-weight: 800; font-size: 15px; margin-bottom: 4px; color: var(--ink); }
.step .body p { font-size: 13px; color: var(--mute); margin: 0; line-height: 1.55; }

/* Before/after */
.ba-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
@media (min-width: 480px) { .ba-grid { grid-template-columns: 1fr auto 1fr; align-items: center; } }
.ba-card { border-radius: 14px; padding: 14px; font-size: 14px; }
.ba-card h3 { font-size: 14px; font-weight: 800; margin-bottom: 10px; }
.ba-card ul { list-style: none; padding: 0; }
.ba-card li { padding: 5px 0; line-height: 1.5; }
.ba-before { background: #FEF2F2; border: 1px solid #FCA5A5; }
.ba-before h3 { color: var(--warn); }
.ba-after { background: #F0FDF4; border: 1px solid #86EFAC; }
.ba-after h3 { color: var(--ok); }
.ba-arrow { font-size: 24px; text-align: center; color: var(--brand); font-weight: 800; }
@media (max-width: 479px) { .ba-arrow { display: none; } }

/* FAQ */
.faq details {
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 8px; background: #fff; cursor: pointer;
}
.faq details[open] { border-color: var(--brand); background: var(--soft); }
.faq summary {
  font-weight: 700; font-size: 15px; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--mute); font-weight: 400; font-size: 22px; flex-shrink: 0; }
.faq details[open] summary::after { content: '−'; color: var(--brand); }
.faq details p { margin-top: 10px; font-size: 14px; color: var(--mute); line-height: 1.65; }

/* Final CTA card (blue gradient — matches quiz) */
.final-card {
  background: linear-gradient(135deg, var(--brand), #3B82F6);
  color: #fff; border-radius: 20px; padding: 22px 20px;
  text-align: center; margin-bottom: 14px;
  box-shadow: 0 10px 30px rgba(33,103,211,.25);
}
.final-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; line-height: 1.3; }
.final-card p { font-size: 14px; opacity: .95; margin-bottom: 4px; line-height: 1.55; }

/* Final CTA card — orange variant (DEPA page) */
.final-card.orange {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 10px 30px rgba(240,112,32,.25);
}

/* Process numbered list */
.process { display: flex; flex-direction: column; gap: 10px; }
.process-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.process-item .num {
  flex-shrink: 0; width: 28px; height: 28px;
  background: var(--soft); color: var(--brand);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
}
.process-item .body { flex: 1; font-size: 14px; line-height: 1.55; }
.process-item .body strong { color: var(--ink); font-weight: 800; }

/* Footer note (matches quiz) */
.footer-note {
  text-align: center; font-size: 12px; color: var(--mute);
  margin-top: 24px; line-height: 1.7;
}
.footer-note a { color: var(--brand); text-decoration: none; font-weight: 600; }
.footer-note a:hover { text-decoration: underline; }
.footer-note .divider { margin: 0 6px; opacity: .5; }

/* ===== REAL IMAGES (product shots + customer logos) ===== */

/* Product screenshot (laptop/dashboard hero) — replaces emoji-only hero */
.product-shot {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 12px 24px rgba(15,31,60,.15));
}
.intro-hero.with-shot {
  padding: 20px 14px 12px;
  background: linear-gradient(135deg, #EEF4FF 0%, #FFF5EB 100%);
}
.intro-hero.with-shot .product-shot { max-width: 480px; margin: 8px auto 4px; }

/* Inline product screenshot in a section */
.product-frame {
  background: var(--soft);
  border-radius: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  margin: 12px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.product-frame img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 8px; margin: 0 auto; }
.product-caption { font-size: 12px; color: var(--mute); margin-top: 10px; font-weight: 600; }

/* Customer logo grid — real branded logos in grayscale-on-rest, color-on-hover */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px 8px;
  background: var(--soft);
  border-radius: 14px;
  margin-bottom: 10px;
}
.logo-grid img {
  display: block;
  width: 100%;
  height: 48px;
  object-fit: contain;
  transition: transform .2s ease;
}
.logo-grid img:hover { transform: scale(1.05); }
@media (max-width: 420px) {
  .logo-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

.logo-count {
  text-align: center;
  font-size: 13px;
  color: var(--mute);
  margin-top: 8px;
}
.logo-count strong { color: var(--ink); font-weight: 700; }

/* Mobile-shot inline (phone in hand) */
.mobile-shot-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: linear-gradient(135deg, #EEF4FF 0%, #FFF5EB 100%);
  border-radius: 16px;
  margin-bottom: 14px;
}
.mobile-shot-row img { width: 100%; height: auto; max-height: 200px; object-fit: contain; }
.mobile-shot-row .body { font-size: 14px; line-height: 1.55; }
.mobile-shot-row .body strong { display: block; font-weight: 800; font-size: 15px; margin-bottom: 4px; color: var(--ink); }
@media (max-width: 380px) {
  .mobile-shot-row { grid-template-columns: 110px 1fr; gap: 12px; }
}

/* Before/after with images */
.ba-card.with-image { padding: 0; overflow: hidden; }
.ba-card.with-image img { display: block; width: 100%; height: 120px; object-fit: cover; }
.ba-card.with-image .ba-body { padding: 12px 14px; }

/* iOS form zoom fix — inputs ≥ 16px */
input, select, textarea, button { font-size: 16px; font-family: inherit; }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 540px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(15,31,60,.08);
  z-index: 100;
  display: flex; gap: 10px;
}
.sticky-cta .btn { padding: 12px 14px; font-size: 15px; }
.sticky-cta .btn-line { flex: 1; }
.sticky-cta .btn-ghost { flex: 0 0 auto; padding: 12px 16px; }
body { padding-bottom: 80px; }
@media (min-width: 720px) {
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
}
