/* ============================================================
   Web Tahfidzku — Promotional Website & Request Fitur Stylesheet
   Matches Tahfidzku's Modern Islamic SaaS palette (#0f766e)
   ============================================================ */

:root {
  --p-primary: #0f766e;
  --p-primary-hover: #115e59;
  --p-primary-dark: #134e4a;
  --p-primary-soft: #f0fdfa;
  --p-primary-border: #99f6e4;
  --p-ink: #0f172a;
  --p-ink-2: #334155;
  --p-muted: #64748b;
  --p-bg: #f8fafc;
  --p-surface: #ffffff;
  --p-border: #e2e8f0;
  --p-gold: #d97706;
  --p-gold-soft: #fffbeb;
  --p-success: #10b981;
  --p-success-soft: #ecfdf5;
  --p-danger: #ef4444;
  --p-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --p-shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.07), 0 4px 10px -4px rgba(15, 23, 42, 0.04);
  --p-shadow-lg: 0 20px 45px -12px rgba(15, 118, 110, 0.16);
  --p-radius-lg: 18px;
  --p-radius-md: 12px;
  --p-radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--p-bg);
  color: var(--p-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .p-brand-title {
  font-family: 'Poppins', 'Inter', sans-serif;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

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

/* ---------- Navbar ---------- */
.p-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--p-border);
}
.p-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 70px;
}
.p-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.p-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--p-border);
  padding: 2px;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.12);
  flex-shrink: 0;
}
.p-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.p-brand-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--p-ink);
}
.p-brand-sub {
  font-size: 11px;
  color: var(--p-muted);
  display: block;
  line-height: 1.1;
}
.p-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--p-ink-2);
}
.p-nav-links a:hover, .p-nav-links a.active {
  color: var(--p-primary);
}
.p-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.p-menu-btn {
  display: none;
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--p-ink);
}

/* ---------- Buttons ---------- */
.p-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.p-btn-lg { padding: 13px 24px; font-size: 15px; border-radius: 12px; }
.p-btn-sm { padding: 7px 13px; font-size: 12.5px; border-radius: 8px; }
.p-btn-primary {
  background: var(--p-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.22);
}
.p-btn-primary:hover {
  background: var(--p-primary-hover);
  transform: translateY(-1px);
}
.p-btn-outline {
  background: #fff;
  color: var(--p-ink);
  border-color: var(--p-border);
}
.p-btn-outline:hover {
  border-color: var(--p-primary);
  color: var(--p-primary);
  background: var(--p-primary-soft);
}
.p-btn-soft {
  background: var(--p-primary-soft);
  color: var(--p-primary-dark);
  border-color: var(--p-primary-border);
}
.p-btn-soft:hover {
  background: #ccfbf1;
}
.p-count-pill {
  background: rgba(255, 255, 255, 0.22);
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 12px;
}

/* ---------- Badges & Pills ---------- */
.p-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}
.p-badge-teal { background: var(--p-primary-soft); color: var(--p-primary); border: 1px solid var(--p-primary-border); }
.p-badge-slate { background: #f1f5f9; color: #475569; }
.p-badge-kritis { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.p-badge-penting { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.p-badge-menengah { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.p-badge-pendukung { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }

/* ---------- Hero ---------- */
.p-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 64px;
  background:
    radial-gradient(circle at 88% 12%, rgba(20, 184, 166, 0.12), transparent 38%),
    radial-gradient(circle at 8% 85%, rgba(245, 158, 11, 0.08), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--p-border);
}
.p-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 40px;
  align-items: center;
}
.p-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--p-primary-soft);
  color: var(--p-primary-dark);
  border: 1px solid var(--p-primary-border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 18px;
}
.p-hero h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 700;
  color: var(--p-ink);
  margin-bottom: 16px;
}
.p-hero h1 span {
  color: var(--p-primary);
}
.p-hero-lead {
  font-size: 16.5px;
  color: var(--p-ink-2);
  margin-bottom: 26px;
  max-width: 580px;
}
.p-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}
.p-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--p-muted);
}
.p-hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Hero Mockup ---------- */
.p-mockup-card {
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: 20px;
  box-shadow: var(--p-shadow-lg);
  overflow: hidden;
}
.p-mockup-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 12px;
}
.p-mockup-dots { display: flex; gap: 6px; }
.p-mockup-dots i { width: 9px; height: 9px; border-radius: 50%; display: block; background: #475569; }
.p-mockup-dots i:first-child { background: #ef4444; }
.p-mockup-dots i:nth-child(2) { background: #f59e0b; }
.p-mockup-dots i:nth-child(3) { background: #10b981; }
.p-mockup-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--p-border);
}
.p-mockup-tab {
  flex: 1;
  border: 1px solid transparent;
  background: transparent;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--p-muted);
  cursor: pointer;
}
.p-mockup-tab.active {
  background: #fff;
  border-color: var(--p-border);
  color: var(--p-primary);
  box-shadow: var(--p-shadow-sm);
}
.p-mockup-body { padding: 18px; }
.p-mini-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.p-mini-kpi {
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  border-radius: 10px;
  padding: 10px;
}
.p-mini-kpi b { display: block; font-size: 18px; color: var(--p-ink); }
.p-mini-kpi span { font-size: 11px; color: var(--p-muted); }

.p-mushaf-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  margin: 10px 0 12px;
}
.p-mushaf-cell {
  aspect-ratio: 1;
  border-radius: 4px;
  background: #e2e8f0;
  font-size: 9px;
  display: grid;
  place-items: center;
  color: #475569;
  font-weight: 600;
}
.p-mushaf-cell.full { background: #10b981; color: #fff; }
.p-mushaf-cell.part { background: #facc15; color: #1e293b; }

.p-wa-bubble {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #14532d;
  white-space: pre-line;
  font-family: 'Inter', monospace;
}

/* ---------- Stats Strip ---------- */
.p-stats-strip {
  background: var(--p-surface);
  border-bottom: 1px solid var(--p-border);
  padding: 26px 0;
}
.p-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.p-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.p-stat-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--p-primary-soft);
  color: var(--p-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 700;
}
.p-stat-item b { display: block; font-size: 18px; color: var(--p-ink); }
.p-stat-item span { font-size: 12.5px; color: var(--p-muted); }

/* ---------- Section Layout ---------- */
.p-section { padding: 68px 0; }
.p-section-alt { background: #ffffff; border-top: 1px solid var(--p-border); border-bottom: 1px solid var(--p-border); }
.p-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 38px;
}
.p-section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  color: var(--p-ink);
  margin: 10px 0 10px;
}
.p-section-head p {
  color: var(--p-muted);
  font-size: 15.5px;
}

/* ---------- Core Foundation Cards ---------- */
.p-core-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.p-core-card {
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-md);
  padding: 18px;
  box-shadow: var(--p-shadow-sm);
}
.p-core-card h4 { font-size: 14.5px; margin-bottom: 6px; color: var(--p-ink); }
.p-core-card p { font-size: 13px; color: var(--p-muted); }

/* ---------- Filter Pills ---------- */
.p-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.p-pill-btn {
  border: 1px solid var(--p-border);
  background: #fff;
  color: var(--p-ink-2);
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.p-pill-btn:hover { border-color: var(--p-primary); color: var(--p-primary); }
.p-pill-btn.active {
  background: var(--p-primary);
  border-color: var(--p-primary);
  color: #fff;
  box-shadow: 0 3px 10px rgba(15, 118, 110, 0.2);
}

/* ---------- Feature Cards Grid (Promo) ---------- */
.p-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.p-feat-card {
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--p-shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.p-feat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--p-shadow-md);
  border-color: #cbd5e1;
}
.p-feat-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.p-feat-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--p-primary);
  white-space: nowrap;
}
.p-feat-price small { font-size: 11.5px; font-weight: 500; color: var(--p-muted); }
.p-feat-card h3 { font-size: 17px; color: var(--p-ink); margin-top: 8px; }
.p-feat-desc { font-size: 13.5px; color: var(--p-ink-2); margin-top: 6px; }
.p-feat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.p-feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12.5px;
  color: var(--p-muted);
}
.p-feat-list li svg { flex-shrink: 0; margin-top: 2px; color: var(--p-success); }
.p-feat-foot {
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* ---------- Role Showcase ---------- */
.p-role-panel {
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-lg);
  padding: 28px;
  box-shadow: var(--p-shadow-md);
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 28px;
  align-items: center;
}
.p-role-caps {
  list-style: none;
  display: grid;
  gap: 12px;
}
.p-role-caps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--p-ink-2);
}
.p-role-caps li svg { color: var(--p-primary); flex-shrink: 0; margin-top: 2px; }

/* ---------- Presets & Tech Grid ---------- */
.p-presets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.p-preset-card {
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--p-shadow-sm);
}
.p-preset-card.featured {
  border: 2px solid var(--p-primary);
  box-shadow: var(--p-shadow-lg);
}
.p-preset-price {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--p-ink);
}
.p-preset-price small { font-size: 13px; font-weight: 500; color: var(--p-muted); }

/* ---------- FAQ ---------- */
.p-faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.p-faq-item {
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-md);
  overflow: hidden;
}
.p-faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--p-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}
.p-faq-a {
  display: none;
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--p-ink-2);
}
.p-faq-item.open .p-faq-a { display: block; }
.p-faq-item.open .p-faq-q { color: var(--p-primary); }

/* ---------- CTA Banner ---------- */
.p-cta-box {
  background: linear-gradient(135deg, #0f766e 0%, #134e4a 100%);
  color: #fff;
  border-radius: 22px;
  padding: 40px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--p-shadow-lg);
}
.p-cta-box h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 8px; }
.p-cta-box p { color: #ccfbf1; max-width: 600px; font-size: 15px; }

/* ============================================================
   Request Fitur Page Styles
   ============================================================ */
.rf-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--p-border);
  padding: 34px 0 28px;
}
.rf-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 26px;
  align-items: start;
  padding: 30px 0 80px;
}
.rf-controls {
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-lg);
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: var(--p-shadow-sm);
}
.rf-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.rf-filter-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
}
.rf-input, .rf-select, .rf-textarea {
  width: 100%;
  border: 1px solid var(--p-border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  background: #fff;
  color: var(--p-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.rf-input:focus, .rf-select:focus, .rf-textarea:focus {
  outline: none;
  border-color: var(--p-primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.rf-feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rf-item {
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.16s ease;
  box-shadow: var(--p-shadow-sm);
}
.rf-item:hover { border-color: #94a3b8; }
.rf-item.selected {
  background: #f0fdfa;
  border-color: var(--p-primary);
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.08);
}
.rf-item-info { flex: 1; min-width: 0; }
.rf-item-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.rf-item-head h3 { font-size: 15.5px; color: var(--p-ink); }
.rf-item-tagline { font-size: 13.5px; color: var(--p-ink-2); }
.rf-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.rf-price-tag {
  text-align: right;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--p-primary-dark);
}
.rf-price-tag small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--p-muted);
}

/* Toggle Switch */
.rf-switch {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
  transition: background 0.18s ease;
  padding: 0;
}
.rf-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease;
}
.rf-switch.on { background: var(--p-primary); }
.rf-switch.on::after { transform: translateX(20px); }

/* Sticky Summary Sidebar */
.rf-summary-card {
  position: sticky;
  top: 88px;
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-lg);
  padding: 22px;
  box-shadow: var(--p-shadow-md);
}
.rf-selected-list {
  max-height: 240px;
  overflow-y: auto;
  margin: 12px 0;
  border-top: 1px solid var(--p-border);
  border-bottom: 1px solid var(--p-border);
  padding: 8px 0;
}
.rf-selected-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
}
.rf-remove-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 2px 5px;
}
.rf-remove-btn:hover { color: var(--p-danger); }
.rf-total-box {
  background: var(--p-primary-soft);
  border: 1px solid var(--p-primary-border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}
.rf-total-val {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--p-primary-dark);
}
.rf-form-group { margin-bottom: 11px; }
.rf-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--p-ink-2);
  margin-bottom: 4px;
}

/* Modal */
.rf-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.rf-modal-backdrop.open { display: flex; }
.rf-modal {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.25);
}
.rf-code-box {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  font-family: monospace;
  font-size: 12px;
  overflow-x: auto;
  margin: 12px 0;
  white-space: pre-wrap;
}

.rf-cycle-wrap {
  margin: 12px 0;
}
.rf-cycle-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 6px;
}
.rf-cycle-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid var(--p-border);
  background: #fff;
  color: var(--p-ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}
.rf-cycle-btn:hover {
  border-color: var(--p-primary);
  background: var(--p-primary-soft);
}
.rf-cycle-btn.active {
  background: var(--p-primary);
  border-color: var(--p-primary);
  color: #fff;
}
.rf-cycle-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
}
.rf-cycle-btn.active .rf-cycle-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.rf-addon-section {
  margin-top: 22px;
}
.rf-addon-card {
  border-color: #cbd5e1;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.rf-addon-card.selected {
  background: #f0fdfa;
  border-color: var(--p-primary);
}
.rf-bank-box {
  background: #f8fafc;
  border: 1px solid var(--p-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--p-ink);
  margin-bottom: 14px;
}

/* Toast */
.p-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 120;
  background: #0f172a;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.2s ease;
}
.p-toast.show { opacity: 1; transform: translateY(0); }

/* Mobile Sticky Total Bar on Request Fitur */
.rf-mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: #fff;
  border-top: 1px solid var(--p-border);
  padding: 10px 16px;
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.08);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Footer */
.p-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 40px 0;
  font-size: 13.5px;
}
.p-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 1024px) {
  .p-hero-grid { grid-template-columns: 1fr; }
  .p-features-grid { grid-template-columns: repeat(2, 1fr); }
  .p-presets-grid { grid-template-columns: repeat(2, 1fr); }
  .p-role-panel { grid-template-columns: 1fr; }
  .rf-layout { grid-template-columns: 1fr; }
  .rf-summary-card { position: static; }
  .rf-mobile-bar { display: flex; }
}

@media (max-width: 720px) {
  .p-nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--p-border);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px;
    gap: 12px;
  }
  .p-nav-links.open { display: flex; }
  .p-menu-btn { display: inline-flex; }
  .p-nav-actions .p-btn-outline { display: none; }
  .p-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .p-features-grid { grid-template-columns: 1fr; }
  .p-presets-grid { grid-template-columns: 1fr; }
  .rf-filter-row { grid-template-columns: 1fr; }
  .rf-item { flex-direction: column; }
  .rf-item-actions { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
  .rf-price-tag { text-align: left; }
}

/* ============================================================
   Guided Registration Steps & Official Invoice UI
   ============================================================ */
.p-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.p-step-card {
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-md);
  padding: 20px;
  box-shadow: var(--p-shadow-sm);
}
.p-step-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--p-primary);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.p-step-card h4 { font-size: 15.5px; margin-bottom: 6px; color: var(--p-ink); }
.p-step-card p { font-size: 13px; color: var(--p-muted); }

.rf-stepper {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}
.rf-step-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--p-border);
  background: #fff;
  cursor: pointer;
  transition: all 0.16s ease;
}
.rf-step-btn:disabled { cursor: not-allowed; opacity: 0.65; }
.rf-step-btn b { display: block; font-size: 13.5px; color: var(--p-ink); }
.rf-step-btn small { display: block; font-size: 11.5px; color: var(--p-muted); }
.rf-step-num {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--p-ink-2);
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.rf-step-tab.active .rf-step-btn {
  border-color: var(--p-primary);
  background: var(--p-primary-soft);
  box-shadow: var(--p-shadow-sm);
}
.rf-step-tab.active .rf-step-num {
  background: var(--p-primary);
  color: #fff;
}
.rf-step-tab.done .rf-step-num {
  background: var(--p-success);
  color: #fff;
}

.rf-layout.rf-layout-full {
  grid-template-columns: 1fr;
  max-width: 960px;
}
.rf-step-panel { display: none; }
.rf-step-panel.active { display: block; }

.rf-card-block {
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-lg);
  padding: 22px;
  box-shadow: var(--p-shadow-sm);
}
.rf-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.rf-block-head h2 { font-size: 19px; margin-top: 8px; margin-bottom: 4px; }
.rf-block-head p { font-size: 13.5px; color: var(--p-muted); max-width: 650px; }

.rf-preset-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.rf-preset-card {
  text-align: left;
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.16s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rf-preset-card:hover { border-color: var(--p-primary); background: #fff; }
.rf-preset-card.active {
  background: var(--p-primary-soft);
  border: 2px solid var(--p-primary);
  box-shadow: var(--p-shadow-sm);
}
.rf-preset-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rf-preset-count { font-size: 11.5px; font-weight: 600; color: var(--p-muted); }
.rf-preset-name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 15px; color: var(--p-ink); }
.rf-preset-desc { font-size: 12.5px; color: var(--p-ink-2); }
.rf-preset-price { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 18px; color: var(--p-primary-dark); margin-top: 2px; }
.rf-preset-price small { font-size: 12px; font-weight: 500; color: var(--p-muted); }

.rf-cycle-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.rf-cycle-card {
  text-align: left;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--p-border);
  background: var(--p-bg);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.16s ease;
}
.rf-cycle-card:hover { border-color: var(--p-primary); background: #fff; }
.rf-cycle-card.active {
  border: 2px solid var(--p-primary);
  background: var(--p-primary-soft);
  box-shadow: var(--p-shadow-sm);
}
.rf-cycle-card-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.rf-cycle-card-top b { font-size: 14px; color: var(--p-ink); }
.rf-cycle-card-desc { font-size: 12px; color: var(--p-muted); }
.rf-cycle-card-price { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 17px; color: var(--p-primary-dark); margin-top: 4px; }
.rf-cycle-card-price small { display: block; font-family: 'Inter', sans-serif; font-size: 11.5px; font-weight: 600; color: #047857; }

.rf-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.rf-form-span2 { grid-column: span 2; }
.rf-input.invalid { border-color: var(--p-danger); box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12); }
.rf-field-hint { font-size: 11.5px; color: var(--p-muted); margin-top: 4px; }
.rf-field-err { font-size: 12px; color: var(--p-danger); font-weight: 500; margin-top: 4px; min-height: 16px; }
.rf-input-addon {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--p-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.rf-input-addon .rf-input { border: none; border-radius: 0; box-shadow: none; flex: 1; }
.rf-input-addon span {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: #f1f5f9;
  color: var(--p-muted);
  font-size: 12.5px;
  border-left: 1px solid var(--p-border);
  white-space: nowrap;
}

.rf-assurance-box {
  margin-top: 14px;
  background: var(--p-primary-soft);
  border: 1px solid var(--p-primary-border);
  border-radius: 12px;
  padding: 14px 16px;
}
.rf-assurance-title { font-size: 13px; font-weight: 700; color: var(--p-primary-dark); margin-bottom: 6px; }
.rf-assurance-box ul { list-style: none; display: grid; gap: 4px; font-size: 12.5px; color: var(--p-ink-2); }

.rf-step-footer {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.rf-step-footer-info { font-size: 13px; color: var(--p-muted); font-weight: 500; }

.rf-free-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--p-border);
  font-size: 12px;
  color: var(--p-ink-2);
}
.rf-trust-list {
  list-style: none;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--p-border);
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: var(--p-muted);
}

/* Official Invoice (Step 3) */
.rf-invoice-card {
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--p-shadow-md);
}
.rf-invoice-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--p-border);
  margin-bottom: 18px;
}
.rf-invoice-status { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.rf-invoice-head h2 { font-size: 23px; margin-bottom: 4px; }
.rf-invoice-sub { font-size: 13.5px; color: var(--p-muted); }
.rf-invoice-refbox {
  background: var(--p-primary-soft);
  border: 1px solid var(--p-primary-border);
  border-radius: 12px;
  padding: 12px 16px;
  text-align: right;
  min-width: 210px;
}
.rf-invoice-refbox small { display: block; font-size: 11px; color: var(--p-muted); text-transform: uppercase; letter-spacing: .04em; }
.rf-invoice-refbox strong { display: block; font-family: 'Poppins', sans-serif; font-size: 17px; color: var(--p-primary-dark); margin: 2px 0; }
.rf-invoice-refbox span { font-size: 12px; color: var(--p-ink-2); }

.rf-invoice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.rf-invoice-panel {
  background: #f8fafc;
  border: 1px solid var(--p-border);
  border-radius: 14px;
  padding: 16px;
}
.rf-invoice-panel h3 { font-size: 14.5px; margin-bottom: 10px; color: var(--p-ink); }
.rf-dl { display: grid; gap: 7px; font-size: 13px; }
.rf-dl > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed #e2e8f0; padding-bottom: 5px; }
.rf-dl > div:last-child { border-bottom: none; padding-bottom: 0; }
.rf-dl dt { color: var(--p-muted); }
.rf-dl dd { font-weight: 600; color: var(--p-ink); text-align: right; }

.rf-bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 13px;
}
.rf-bank-row:last-of-type { border-bottom: none; }
.rf-mini-copy {
  margin-left: 6px;
  border: 1px solid var(--p-border);
  background: #fff;
  color: var(--p-primary-dark);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.rf-mini-copy:hover { border-color: var(--p-primary); background: var(--p-primary-soft); }

.rf-inv-table-wrap { overflow-x: auto; }
.rf-inv-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rf-inv-table th { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--p-border); color: var(--p-muted); font-size: 12px; }
.rf-inv-table td { padding: 9px 6px; border-bottom: 1px solid #e2e8f0; }
.rf-inv-table tfoot td { border-bottom: none; padding-top: 10px; font-weight: 600; }
.rf-inv-grand td { font-size: 16px; font-weight: 700 !important; color: var(--p-primary-dark); border-top: 2px solid var(--p-border) !important; padding-top: 12px !important; }
.rf-inv-free-note { margin-top: 10px; font-size: 12px; color: var(--p-muted); }

.rf-next-steps {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--p-primary-soft);
  border: 1px solid var(--p-primary-border);
}
.rf-next-steps h3 { font-size: 14.5px; color: var(--p-primary-dark); margin-bottom: 8px; }
.rf-next-steps ol { padding-left: 18px; display: grid; gap: 5px; font-size: 13px; color: var(--p-ink-2); }

.rf-invoice-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.p-btn-wa {
  background: #16a34a;
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
  flex: 1;
  min-width: 240px;
}
.p-btn-wa:hover { background: #15803d; transform: translateY(-1px); }
.p-btn-wa-outline {
  background: #f0fdf4;
  color: #15803d;
  border-color: #86efac;
}
.p-btn-wa-outline:hover {
  background: #dcfce7;
  border-color: #16a34a;
  color: #14532d;
}
.p-steps-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.rf-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.rf-alt-contact {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--p-border);
  text-align: center;
  display: grid;
  gap: 8px;
}
.rf-alt-contact span {
  font-size: 12px;
  color: var(--p-muted);
}

/* Compact Checklist Modules Block */
.rf-checklist-block {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1.5px solid #cbd5e1;
}
.rf-check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.rf-check-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  cursor: pointer;
  user-select: none;
  transition: all 0.16s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.rf-check-tile:hover {
  border-color: #2563eb;
  background: #eff6ff;
}
.rf-check-tile:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
}
.rf-check-tile.selected {
  background: #ecfdf5;
  border-color: #0d9488;
  box-shadow: 0 3px 10px rgba(13, 148, 136, 0.14);
}
.rf-check-tile.selected:hover {
  background: #d1fae5;
  border-color: #0f766e;
}
.rf-check-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.rf-check-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #94a3b8;
  background: #f8fafc;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.rf-check-tile.selected .rf-check-box {
  background: #0d9488;
  border-color: #0d9488;
}
.rf-check-title {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--p-ink);
  line-height: 1.3;
}
.rf-check-tile.selected .rf-check-title {
  color: #065f46;
}
.rf-check-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.rf-check-price {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--p-primary-dark);
  white-space: nowrap;
}
.rf-check-price small {
  font-weight: 500;
  font-size: 10.5px;
  color: var(--p-muted);
}
.rf-info-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.rf-info-btn:hover {
  background: #dbeafe;
  border-color: #60a5fa;
}

@media (max-width: 1024px) {
  .p-steps-grid { grid-template-columns: repeat(2, 1fr); }
  .p-steps-grid.p-steps-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .p-steps-grid, .p-steps-grid.p-steps-grid-3 { grid-template-columns: 1fr; }
  .rf-check-grid { grid-template-columns: 1fr; }
  .rf-stepper { grid-template-columns: 1fr; }
  .rf-preset-cards { grid-template-columns: 1fr; }
  .rf-cycle-cards { grid-template-columns: 1fr; }
  .rf-form-grid { grid-template-columns: 1fr; }
  .rf-form-span2 { grid-column: span 1; }
  .rf-invoice-grid { grid-template-columns: 1fr; }
  .rf-invoice-refbox { text-align: left; width: 100%; }
}
