:root {
  --paper: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-muted: #f1f5f9;
  --primary: #007fff;
  --primary-hover: #0066cc;
  --primary-soft: #eef6ff;
  --primary-border: #bfdbfe;
  --navy: #0f172a;
  --navy-soft: #1e293b;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --success: #10b981;
  --amber: #f59e0b;
  --danger: #ef4444;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 18px 45px rgba(0, 127, 255, 0.09);
  --shadow-btn: 0 8px 20px rgba(0, 127, 255, 0.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-full: 9999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

.hero h1 .word,
.hero .lead,
.hero-actions .btn,
.preview,
.mini,
.section .container > h2,
.section .container > .sub,
.features,
.pricing-grid,
.steps,
.faq {
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .screen-top span.is-online::before {
    animation: none;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* ==================== NAVIGATION ==================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-in {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand b {
  color: var(--primary);
  margin-left: 2px;
}

.links {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.links a,
.btn,
.faq summary,
.modal-close {
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.links a:hover {
  color: var(--primary);
}

.actions,
.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* ==================== BUTTONS ==================== */
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-btn);
}

.primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 127, 255, 0.32);
}

.ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--navy);
}

.ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-2px);
}

/* ==================== HERO SECTION ==================== */
.hero {
  padding: 84px 0 92px;
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
}

.hero-container {
  max-width: 820px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 5px 14px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.hero h1 span,
.hero h1 .highlight {
  color: var(--primary);
}

.lead {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
}

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

.section.alt {
  background: var(--surface-soft);
  border-block: 1px solid var(--line);
}

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

h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.sub {
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

/* ==================== FEATURES ==================== */
.features {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.feature {
  grid-column: span 2;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  border-color: rgba(0, 127, 255, 0.28);
}

.features .feature:nth-child(4) {
  grid-column: 1 / span 3;
}

.features .feature.feature-wide {
  grid-column: 4 / span 3;
}

.feature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1.3rem;
  line-height: 1;
}

.feat-blue {
  background: #eff6ff;
  border: 1px solid #dbeafe;
}

.feat-sky {
  background: #f0f9ff;
  border: 1px solid #e0f2fe;
}

.feat-emerald {
  background: #ecfdf5;
  border: 1px solid #d1fae5;
}

.feat-amber {
  background: #fffbeb;
  border: 1px solid #fef3c7;
}

.feat-purple {
  background: #f5f3ff;
  border: 1px solid #ede9fe;
}

.feature-num {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: 0.02em;
}

.feature h3 {
  margin: 14px 0 6px;
  color: var(--navy);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ==================== PRICING SECTION (DESKTOP BERDAMPINGAN, MOBILE ATAS BAWAH) ==================== */
#paket, #fitur, #cara, #faq {
  scroll-margin-top: 90px;
}

.plans-error {
  grid-column: 1 / -1;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  font-weight: 700;
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 960px;
  margin: 44px auto 0;
  align-items: stretch;
}

.pricing-grid.single-plan {
  grid-template-columns: 1fr;
  max-width: 480px;
  margin: 44px auto 0;
}

.pricing-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.pricing-card:hover {
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.1);
}

/* Free Trial Card (Kiri) */
.trial-card {
  border: 1.5px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.trial-card:hover {
  border-color: #cbd5e1;
}

/* Basic Plan Card (Kanan - Rekomendasi) */
.basic-card {
  border: 2px solid #3b82f6;
  box-shadow: 0 16px 45px rgba(59, 130, 246, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  position: relative;
}

.basic-card:hover {
  border-color: #2563eb;
  box-shadow: 0 26px 60px rgba(37, 99, 235, 0.18);
}

.card-head {
  display: flex;
  flex-direction: column;
}

.card-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.plan-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@keyframes tagPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.25); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(37, 99, 235, 0); }
}

.plan-tag.featured {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  animation: tagPulse 2.8s ease-in-out infinite;
}

.plan-days-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.trial-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trial-badge.status-full {
  border: 1px solid rgba(245, 158, 11, 0.6);
  background: #fffbeb;
  color: #d97706;
}

.trial-badge.status-available {
  border: 1px solid rgba(16, 185, 129, 0.6);
  background: #ecfdf5;
  color: #059669;
}

.card-title {
  margin: 0;
  color: var(--navy);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.card-desc {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.card-price-wrap {
  margin-top: 24px;
}

.card-price {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.03em;
}

.basic-card .card-price {
  color: var(--primary);
}

.card-duration {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 5px;
}

.card-subnote {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 5px;
}

.card-renewal-badge {
  display: inline-block;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 6px;
  line-height: 1.3;
}

.fee-accent {
  color: var(--primary);
  font-weight: 800;
}

.trial-status-highlight.status-full {
  color: #d97706;
  font-weight: 700;
}

.trial-status-highlight.status-available {
  color: #059669;
  font-weight: 700;
}

.card-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 22px 0 20px;
}

.features-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.features-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: #1e293b;
  line-height: 1.5;
}

.features-checklist code {
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.84rem;
  color: #0369a1;
  font-weight: 700;
}

.chk-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
  background: #eff6ff;
  color: #2563eb;
  transition: transform 0.25s ease, background 0.25s ease;
}

.trial-card .chk-icon {
  background: #ecfdf5;
  color: #059669;
}

.pricing-card:hover .chk-icon {
  transform: scale(1.15);
}

.chk-icon-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 800;
  margin-right: 6px;
}

.card-action {
  margin-top: 28px;
}

.trial-btn {
  width: 100%;
  min-height: 48px;
  border-radius: var(--radius-md);
  font-size: 0.94rem;
  font-weight: 700;
  text-align: center;
}

.trial-btn:disabled {
  background: var(--surface-muted);
  color: #94a3b8;
  border: 1px solid var(--line);
  cursor: not-allowed;
}

.trial-btn:not(:disabled) {
  background: var(--primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
}

.trial-btn:not(:disabled):hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 127, 255, 0.32);
}

.btn-choose-basic {
  width: 100%;
  min-height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #ffffff;
  border: none;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
}

.btn-choose-basic:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 127, 255, 0.32);
}

/* ==================== STEPS & FAQ ==================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.step {
  display: flex;
  gap: 16px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  font-size: 1rem;
}

.step h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 800;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.faq {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin: 40px auto 0;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  padding: 18px 22px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--primary);
}

.faq details[open] summary::after {
  content: "−";
}

.faq p {
  padding: 0 22px 20px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.faq p a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.faq p a:hover {
  color: var(--primary-dark);
}

/* ==================== MODAL (CLEAN & ROUNDED) ==================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal[aria-hidden="true"] {
  pointer-events: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 490px);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.modal-close:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary-border);
}

.order-modal-title {
  color: var(--navy);
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}

.order-modal-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 6px 0 20px;
  line-height: 1.45;
}

/* Order Summary Box */
.order-summary-box {
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.summary-left {
  display: flex;
  flex-direction: column;
}

.summary-plan-name {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
}

.summary-plan-days {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

.summary-right {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.summary-currency {
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
}

.summary-plan-price {
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 800;
}

/* Order Form */
.order-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy-soft);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--navy);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control::placeholder {
  color: #94a3b8;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 127, 255, 0.15);
}

.slug-preview-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.82rem;
}

.slug-preview-label {
  color: var(--muted);
  font-weight: 500;
}

.slug-badge {
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  font-weight: 700;
}

.field-hint {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.4;
}

.btn-order-submit {
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 0.96rem;
  font-weight: 800;
  width: 100%;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: var(--shadow-btn);
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-order-submit:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 127, 255, 0.32);
}

.error {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 0.85rem;
  font-weight: 600;
}

.success {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ==================== FOOTER ==================== */
.footer {
  padding: 44px 0 36px;
  border-top: 1px solid var(--line);
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 10px;
}

.footer-desc {
  margin: 0 0 12px;
  line-height: 1.6;
  color: #64748b;
  max-width: 380px;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.footer-heading {
  margin: 0 0 14px;
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
}

.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #475569;
  line-height: 1.5;
}

.footer-contact-list a {
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  word-break: break-word;
}

.footer-contact-list a:hover {
  color: #4f46e5;
}

.footer-contact-icon {
  width: 20px;
  height: 20px;
  color: #4f46e5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

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

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.btn:focus-visible,
.links a:focus-visible,
.faq summary:focus-visible,
.modal-close:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

/* ==================== RESPONSIVE LAYOUT ==================== */
@media (max-width: 900px) {
  .links {
    display: none;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .feature {
    grid-column: auto;
  }

  .features .feature:nth-child(4) {
    grid-column: auto;
  }

  .features .feature.feature-wide {
    grid-column: 1 / -1;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

/* Side-by-side (sampingan) di tablet & mobile untuk paket sewa (Trial & Basic) */
@media (max-width: 820px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .pricing-grid.single-plan {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 24px auto 0;
  }

  .pricing-card {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .card-badges {
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 4px;
  }

  .plan-tag,
  .trial-badge,
  .plan-days-badge {
    font-size: 0.65rem;
    padding: 2px 7px;
  }

  .card-title {
    font-size: 1.15rem;
  }

  .card-desc {
    font-size: 0.74rem;
    line-height: 1.35;
    margin-top: 3px;
  }

  .card-price-wrap {
    margin-top: 14px;
  }

  .card-price {
    font-size: 1.45rem;
  }

  .card-duration {
    font-size: 0.76rem;
    margin-top: 2px;
  }

  .card-renewal-badge {
    font-size: 0.67rem;
    padding: 2px 6px;
    margin-top: 4px;
    line-height: 1.25;
    border-radius: 5px;
  }

  .card-subnote {
    font-size: 0.7rem;
    line-height: 1.3;
    margin-top: 3px;
  }

  .card-divider {
    margin: 12px 0 10px;
  }

  .features-checklist {
    gap: 8px;
  }

  .features-checklist li {
    font-size: 0.74rem;
    line-height: 1.35;
    gap: 6px;
  }

  .features-checklist li code {
    font-size: 0.7rem;
    padding: 1px 3px;
  }

  .chk-icon {
    font-size: 0.7rem;
  }

  .card-action {
    margin-top: 14px;
  }

  .btn.trial-btn,
  .btn.btn-choose-basic {
    padding: 9px 6px;
    font-size: 0.78rem;
    border-radius: 8px;
    width: 100%;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
  }

  .section {
    padding: 50px 0;
  }

  .hero {
    padding: 50px 0 60px;
  }
}

@media (max-width: 480px) {
  .pricing-grid {
    gap: 8px;
  }

  .pricing-card {
    padding: 14px 10px;
    border-radius: 14px;
  }

  .card-title {
    font-size: 1.05rem;
  }

  .card-price {
    font-size: 1.3rem;
  }

  .features-checklist li {
    font-size: 0.7rem;
  }
}

/* Tampilan Ponsel (Mobile Clean Navbar & Layout) */
@media (max-width: 640px) {
  .nav-home-link {
    display: none !important;
  }

  .nav-in {
    min-height: 58px;
    gap: 8px;
  }

  .brand {
    font-size: 0.96rem;
    flex-shrink: 0;
  }

  .actions {
    flex-wrap: nowrap;
    gap: 6px;
    flex-shrink: 0;
  }

  .actions .btn {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
  }

  .hero {
    padding: 48px 0 54px;
  }

  .hero h1 {
    font-size: 2.1rem;
    line-height: 1.15;
  }

  .lead {
    font-size: 0.95rem;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 24px;
  }

  .feature {
    grid-column: auto;
    padding: 14px 12px;
    border-radius: 14px;
  }

  .features .feature:nth-child(4) {
    grid-column: auto;
  }

  .features .feature.feature-wide {
    grid-column: 1 / -1;
    padding: 16px 14px;
  }

  .feature-icon {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
    border-radius: 10px;
  }

  .feature-num {
    font-size: 0.68rem;
    padding: 1px 6px;
  }

  .feature h3 {
    margin: 10px 0 4px;
    font-size: 0.86rem;
    line-height: 1.3;
  }

  .feature p {
    font-size: 0.75rem;
    line-height: 1.4;
  }
}

/* ==================== BOT WORKFLOW SHOWCASE ==================== */
.nav-brand-logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: contain;
  margin-right: 8px;
  vertical-align: middle;
}

.bot-showcase-section {
  padding: 64px 0;
  background: #F8FAFC;
}

.showcase-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 20px 45px -15px rgba(15, 23, 42, 0.08);
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 48px;
  align-items: center;
}

.showcase-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.showcase-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 0.76rem;
  font-weight: 800;
  color: #2563EB;
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  padding: 6px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.showcase-info h2 {
  font-size: 2.1rem;
  font-weight: 900;
  color: #0F172A;
  line-height: 1.25;
  letter-spacing: -0.8px;
  margin: 0;
}

.showcase-info h2 span {
  background: linear-gradient(135deg, #2563EB 0%, #4F46E5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.showcase-lead {
  font-size: 0.96rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.feature-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
}

.f-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.f-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #EEF2FF;
  color: #4338CA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.f-text h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

.f-text p {
  font-size: 0.82rem;
  color: #64748B;
  margin: 2px 0 0;
  line-height: 1.45;
}

/* Phone Container & Mockup */
.phone-container {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  padding-top: 24px;
}

.owner-toast-pill {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 0.74rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
  z-index: 10;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.owner-toast-pill.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FEF08A;
}

.phone-mockup {
  width: 100%;
  height: 620px;
  background: #1E293B;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-screen {
  flex: 1;
  background: #F1F5F9;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.phone-notch {
  height: 26px;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 20px 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: #0F172A;
  z-index: 5;
}

.notch-icons {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 0.65rem;
}

/* Telegram Header */
.tg-header {
  background: #FFFFFF;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.tg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB 0%, #10B981 100%);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.tg-bot-info {
  flex: 1;
  min-width: 0;
}

.tg-bot-name {
  font-size: 0.84rem;
  font-weight: 800;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tg-bot-name .badge-bot {
  font-size: 0.58rem;
  background: #E2E8F0;
  color: #475569;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}

.tg-bot-status {
  font-size: 0.67rem;
  color: #10B981;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tg-status-dot {
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: 50%;
}

/* Chat Messages Body */
.tg-chat-body {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #F8FAFC;
  scroll-behavior: smooth;
}

.sim-date-badge {
  align-self: center;
  background: rgba(148, 163, 184, 0.22);
  color: #64748B;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 99px;
  margin-bottom: 4px;
}

.sim-chat-bubble {
  display: none;
  opacity: 0;
}

.chat-bubble {
  max-width: 90%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.77rem;
  line-height: 1.45;
  position: relative;
}

.sim-typing-bubble {
  display: none;
  align-self: flex-start;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-bottom-left-radius: 4px;
  padding: 10px 14px;
  border-radius: 16px;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  width: fit-content;
}

.sim-typing-bubble.is-active {
  display: flex;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: #94A3B8;
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
    background: #2563EB;
  }
}

.chat-bubble.user {
  align-self: flex-end;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E3A8A;
  border-bottom-right-radius: 4px;
  font-weight: 600;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #1E293B;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.bubble-time {
  font-size: 0.6rem;
  color: #94A3B8;
  text-align: right;
  margin-top: 4px;
}

.bot-catalog-sub {
  margin-top: 2px;
  font-size: 0.71rem;
  color: #64748B;
}

.bot-product-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.btn-tg-product {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  color: #1E293B;
  font-size: 0.71rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.btn-tg-product.selected {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #1D4ED8;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}

.btn-tg-product .price {
  color: #059669;
  font-weight: 800;
}

.btn-tg-product.selected .price {
  color: #FEF08A;
}

.inv-head {
  font-weight: 800;
  color: #0F172A;
}

.inv-sub {
  font-size: 0.69rem;
  color: #64748B;
}

/* Invoice Box with QR */
.invoice-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.qr-box {
  width: 95px;
  height: 95px;
  background: #FFFFFF;
  border: 1.5px solid #0F172A;
  border-radius: 8px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.qr-mock {
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(45deg, #0F172A 25%, transparent 25%), 
    linear-gradient(-45deg, #0F172A 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #0F172A 75%), 
    linear-gradient(-45deg, transparent 75%, #0F172A 75%);
  background-size: 10px 10px;
  background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
  opacity: 0.85;
  border-radius: 4px;
}

.scan-line {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  height: 2px;
  background: #2563EB;
  box-shadow: 0 0 8px #2563EB;
  animation: scanAnim 1.8s infinite ease-in-out;
}

@keyframes scanAnim {
  0%, 100% { top: 6px; opacity: 0.8; }
  50% { top: 86px; opacity: 1; }
}

.invoice-nominal {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0F172A;
  text-align: center;
}

.invoice-status-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: #FEF3C7;
  color: #B45309;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
}

.invoice-status-badge.status-paid {
  background: #ECFDF5;
  color: #059669;
}

.success-title {
  color: #059669;
}

.account-sub {
  font-size: 0.69rem;
  color: #475569;
  margin-top: 2px;
}

/* Account Delivery Box */
.account-box {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 10px;
  padding: 8px 10px;
  margin-top: 6px;
  font-family: monospace;
  font-size: 0.68rem;
  color: #14532D;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px dashed #DCFCE7;
  padding-bottom: 3px;
}

.account-row span:first-child {
  font-weight: 700;
  color: #166534;
  min-width: 60px;
}

.account-row.no-border {
  border-bottom: 0;
}

.warranty-active {
  color: #059669;
  font-weight: 700;
}

/* Simulation Control */
.sim-footer {
  padding: 8px 10px;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  display: flex;
  justify-content: center;
}

.btn-sim-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.71rem;
  font-weight: 700;
  color: #2563EB;
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-sim-reset:hover {
  background: #DBEAFE;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .showcase-card {
    grid-template-columns: 1fr;
    padding: 32px 20px;
    gap: 36px;
  }
  .phone-container {
    max-width: 340px;
  }
  .phone-mockup {
    height: 580px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

.turnstile-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 14px 0;
  min-height: 65px;
  overflow: hidden;
  border-radius: 8px;
}

/* ==========================================================================
   NATIVE INTERSECTION OBSERVER ANIMATIONS (SCROLL REVEAL & ACTIVE NAV)
   ========================================================================== */
.reveal-init {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-init.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for cards */
.features .feature:nth-child(1) { transition-delay: 0.04s; }
.features .feature:nth-child(2) { transition-delay: 0.12s; }
.features .feature:nth-child(3) { transition-delay: 0.20s; }
.features .feature:nth-child(4) { transition-delay: 0.28s; }
.features .feature:nth-child(5) { transition-delay: 0.36s; }

.pricing-grid .pricing-card:nth-child(1) { transition-delay: 0.05s; }
.pricing-grid .pricing-card:nth-child(2) { transition-delay: 0.15s; }

.steps .step:nth-child(1) { transition-delay: 0.05s; }
.steps .step:nth-child(2) { transition-delay: 0.14s; }
.steps .step:nth-child(3) { transition-delay: 0.23s; }

/* Active Nav Links */
.links a.nav-active {
  color: var(--primary) !important;
  font-weight: 700;
  position: relative;
}

.links a.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Bubble fade-in for bot simulation */
.chat-bubble.bubble-animate {
  animation: bubbleFadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bubbleFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
