/* ==========================================================================
   KerjaRemote.Real — High-Conversion Direct-Response Landing Page
   Mobile-First • Ultra-Fast • Cloudflare Pages Ready
   ========================================================================== */

:root {
  --bg-dark: #070D1D;
  --bg-dark-2: #0F172A;
  --bg-light: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --ink: #0F172A;
  --ink-muted: #475569;
  --ink-light: #94A3B8;
  --emerald: #059669;
  --emerald-bright: #10B981;
  --emerald-soft: #ECFDF5;
  --amber: #D97706;
  --amber-bright: #F59E0B;
  --amber-soft: #FFFBEB;
  --rose: #DC2626;
  --rose-soft: #FEF2F2;
  --border: #E2E8F0;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 60px rgba(2, 6, 23, 0.35);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px; /* space for mobile sticky bar */
  overflow-x: clip;
  width: 100%;
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== ANNOUNCEMENT BAR ==================== */
.top-banner {
  background: linear-gradient(90deg, #047857 0%, #059669 50%, #047857 100%);
  color: #FFFFFF;
  text-align: center;
  padding: 9px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.top-banner span {
  background: rgba(255,255,255,0.18);
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 6px;
  font-size: 0.72rem;
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 13, 29, 0.90);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.3px;
}
.brand span { color: #34D399; }

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #CBD5E1;
}
.nav-links a:hover { color: #FFFFFF; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: inherit;
  font-weight: 800;
  border-radius: 11px;
  cursor: pointer;
  border: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  text-align: center;
  max-width: 100%;
}

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

.btn-primary {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  padding: 15px 26px;
  font-size: 1rem;
  box-shadow: 0 10px 26px rgba(16, 185, 129, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(16, 185, 129, 0.45);
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #F8FAFC;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 14px 22px;
  font-size: 0.95rem;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.14);
}

.btn-nav {
  background: #10B981;
  color: #022C22;
  padding: 9px 16px;
  font-size: 0.85rem;
  border-radius: 9px;
}
.btn-nav:hover { background: #34D399; }

.btn-block { width: 100%; }

/* ==================== HERO SECTION ==================== */
.hero {
  background: radial-gradient(circle at 80% 15%, rgba(16,185,129,0.20) 0%, rgba(7,13,29,0) 45%),
              radial-gradient(circle at 12% 85%, rgba(245,158,11,0.12) 0%, rgba(7,13,29,0) 42%),
              linear-gradient(165deg, #070D1D 0%, #0F172A 60%, #052E24 100%);
  color: #FFFFFF;
  padding: 44px 0 64px;
  overflow: hidden;
}

@media (min-width: 960px) {
  .hero { padding: 68px 0 84px; }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.hero-grid > * { min-width: 0; }

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6EE7B7;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  max-width: 100%;
  line-height: 1.35;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 4px rgba(52,211,153,0.25);
}

.hero h1 {
  font-size: clamp(1.95rem, 4.2vw, 3.05rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}

.hero h1 .hl { color: #34D399; }
.hero h1 .gold { color: #FBBF24; }

.hero-lead {
  font-size: 1.05rem;
  color: #CBD5E1;
  margin: 0 0 26px;
  max-width: 580px;
}

.hero-lead strong { color: #FFFFFF; }

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 540px) {
  .hero-cta-group {
    flex-direction: row;
    align-items: center;
  }
}

.price-strike {
  opacity: 0.75;
  text-decoration: line-through;
  font-weight: 600;
  font-size: 0.88em;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  font-size: 0.84rem;
  color: #94A3B8;
  font-weight: 600;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-trust .chk { color: #34D399; font-weight: 900; }

/* 3D Fanned PDF Showcase */
.book-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 290px;
  padding: 16px 0;
  overflow: hidden;
}

@media (min-width: 960px) {
  .book-stage { min-height: 410px; overflow: visible; }
}

.book-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
  background: #0F172A;
}

.book-main {
  position: relative;
  z-index: 3;
  width: 175px;
  transform: translateY(-6px);
}

.book-side-left {
  position: absolute;
  z-index: 2;
  width: 132px;
  left: calc(50% - 154px);
  transform: rotate(-7deg) translateY(14px);
  opacity: 0.94;
}

.book-side-right {
  position: absolute;
  z-index: 2;
  width: 132px;
  right: calc(50% - 154px);
  transform: rotate(7deg) translateY(14px);
  opacity: 0.94;
}

@media (min-width: 540px) {
  .book-main { width: 245px; }
  .book-side-left { width: 190px; left: calc(50% - 235px); }
  .book-side-right { width: 190px; right: calc(50% - 235px); }
}

.book-stage:hover .book-main { transform: translateY(-12px) scale(1.02); }
.book-stage:hover .book-side-left { transform: rotate(-11deg) translate(-8px, 12px); }
.book-stage:hover .book-side-right { transform: rotate(11deg) translate(8px, 12px); }

.book-caption {
  text-align: center;
  font-size: 0.8rem;
  color: #94A3B8;
  margin-top: 8px;
}

/* ==================== METRIC STRIP ==================== */
.metric-strip {
  background: #0B132B;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  color: #FFFFFF;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: center;
}

@media (min-width: 768px) {
  .metric-grid { grid-template-columns: repeat(4, 1fr); }
}

.metric-val {
  font-size: 1.45rem;
  font-weight: 900;
  color: #34D399;
  line-height: 1.2;
}
.metric-lbl {
  font-size: 0.8rem;
  color: #CBD5E1;
  margin-top: 3px;
}

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

.section.subtle {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section.dark {
  background: linear-gradient(160deg, #070D1D 0%, #0F172A 100%);
  color: #FFFFFF;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.section-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--emerald);
  background: var(--emerald-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.section-tag.amber {
  color: #B45309;
  background: var(--amber-soft);
}

.section-tag.rose {
  color: #B91C1C;
  background: var(--rose-soft);
}

.section-header h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.section-header p {
  color: var(--ink-muted);
  margin: 0;
  font-size: 1rem;
}

.section.dark .section-header p { color: #CBD5E1; }

/* ==================== PAIN CARDS ==================== */
.pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .pain-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

.pain-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-left: 4px solid var(--rose);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.pain-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--ink);
}

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

/* ==================== ANTI-HYPE HONESTY BOX ==================== */
.honesty-box {
  background: #FFFBEB;
  border: 1.5px solid #FCD34D;
  border-radius: 16px;
  padding: 26px 28px;
  margin-top: 32px;
}

.honesty-box h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  font-weight: 900;
  color: #92400E;
}

.honesty-box p {
  margin: 0 0 10px;
  color: #451A03;
  font-size: 0.96rem;
}
.honesty-box p:last-child { margin-bottom: 0; }

/* ==================== INTERACTIVE TABS (INTIP ISI PAKET) ==================== */
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.tab-btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #FFFFFF;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.16s ease;
}

.tab-btn:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

.tab-btn.active {
  background: var(--bg-dark-2);
  color: #FFFFFF;
  border-color: var(--bg-dark-2);
  box-shadow: var(--shadow-sm);
}

.tab-panel {
  display: none;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: var(--shadow-md);
}

.tab-panel.active { display: block; }

.panel-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

@media (min-width: 820px) {
  .panel-split { grid-template-columns: 220px 1fr; }
}

.panel-thumb {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  max-width: 220px;
  margin: 0 auto;
}

.chapter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

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

.chapter-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.chapter-item .ch-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.chapter-item h4 {
  margin: 3px 0 4px;
  font-size: 0.92rem;
  font-weight: 800;
}

.chapter-item p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.code-preview {
  background: #0F172A;
  color: #E2E8F0;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.55;
  padding: 16px 18px;
  border-radius: 12px;
  overflow-x: auto;
  border-left: 4px solid #10B981;
  margin-top: 14px;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
  margin-top: 14px;
}
.mini-table th {
  background: #0F172A;
  color: #FFFFFF;
  text-align: left;
  padding: 9px 10px;
  font-size: 0.78rem;
}
.mini-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.mini-table tr:nth-child(even) { background: var(--bg-subtle); }

.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}
.pill-green { background: #D1FAE5; color: #065F46; }
.pill-amber { background: #FEF3C7; color: #92400E; }
.pill-red   { background: #FEE2E2; color: #991B1B; }

/* ==================== FIT COMPARISON ==================== */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .fit-grid { grid-template-columns: 1fr 1fr; }
}

.fit-card {
  border-radius: 16px;
  padding: 24px;
  border: 1.5px solid var(--border);
  background: #FFFFFF;
}

.fit-card.yes { border-color: #86EFAC; background: #F0FDF4; }
.fit-card.no  { border-color: #FECACA; background: #FEF2F2; }

.fit-card h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  font-weight: 900;
}
.fit-card.yes h3 { color: #065F46; }
.fit-card.no h3  { color: #991B1B; }

.fit-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fit-list li {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.93rem;
  color: var(--ink);
}
.fit-list li:last-child { margin-bottom: 0; }

/* ==================== VALUE STACK & PRICING ==================== */
.pricing-card {
  background: #FFFFFF;
  color: var(--ink);
  border-radius: 22px;
  padding: 32px 24px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  border: 2px solid #10B981;
  position: relative;
}

@media (min-width: 640px) {
  .pricing-card { padding: 40px 42px; }
}

.save-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #F59E0B;
  color: #451A03;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.6px;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  max-width: calc(100% - 24px);
  text-align: center;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}

.stack-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 26px;
  border-top: 1px solid var(--border);
}

.stack-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed #CBD5E1;
}

.stack-item strong { display: block; font-size: 0.96rem; }
.stack-item small { color: var(--ink-muted); font-size: 0.82rem; }
.stack-val {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--ink-muted);
  white-space: nowrap;
}
.stack-val .free {
  display: block;
  color: var(--emerald);
  font-size: 0.75rem;
  text-align: right;
}

.price-block {
  text-align: center;
  background: var(--bg-subtle);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 22px;
}

.price-normal {
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.price-normal del { font-weight: 700; color: var(--rose); }

.price-now {
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.price-note {
  font-size: 0.83rem;
  color: var(--emerald);
  font-weight: 700;
  margin-top: 6px;
}

.qris-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.qris-strip span {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
}

/* ==================== FAQ ACCORDION ==================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 20px;
  text-align: left;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--emerald);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
  display: none;
  padding: 0 20px 18px;
  font-size: 0.93rem;
  color: var(--ink-muted);
  border-top: 1px solid #F1F5F9;
  padding-top: 12px;
}

.faq-item.open .faq-a { display: block; }

/* ==================== MODAL CHECKOUT PREVIEW ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open { display: flex; }

.modal {
  background: #FFFFFF;
  border-radius: 18px;
  width: 100%;
  max-width: 460px;
  padding: 26px 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: popIn 0.18s ease-out;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--bg-subtle);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
}

.modal h3 { margin: 0 0 6px; font-size: 1.2rem; font-weight: 900; }
.modal-sub { margin: 0 0 16px; font-size: 0.86rem; color: var(--ink-muted); }

.order-summary {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.order-summary-row.total {
  border-top: 1px dashed #CBD5E1;
  padding-top: 8px;
  margin-bottom: 0;
  font-weight: 900;
  font-size: 0.98rem;
  color: var(--emerald);
}

.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--ink);
}
.field input {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid #CBD5E1;
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.92rem;
}
.field input:focus {
  outline: none;
  border-color: var(--emerald);
}

.gateway-notice {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
  font-size: 0.8rem;
  padding: 10px 12px;
  border-radius: 9px;
  margin-top: 12px;
  display: none;
}
.gateway-notice.show { display: block; }

/* ==================== MOBILE STICKY BAR ==================== */
.mobile-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #FFFFFF;
}

@media (min-width: 768px) {
  .mobile-sticky { display: none; }
}

.mobile-sticky-price {
  line-height: 1.2;
}
.mobile-sticky-price small {
  display: block;
  font-size: 0.72rem;
  color: #94A3B8;
  text-decoration: line-through;
}
.mobile-sticky-price strong {
  font-size: 1.05rem;
  color: #34D399;
}

/* ==================== FOOTER ==================== */
footer {
  background: #070D1D;
  color: #94A3B8;
  padding: 36px 0;
  font-size: 0.83rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}
footer .brand { display: inline-block; margin-bottom: 8px; }
footer p { max-width: 640px; margin: 6px auto 0; line-height: 1.6; }
