/* Tambahan khusus sales-website — dasar tampilan dari app.css/modules.css main-app. */
.flash { display: flex; align-items: center; gap: 9px; border-radius: 14px; padding: 11px 14px; font-size: 12.5px; margin-bottom: 14px; }
.flash.ok { background: var(--color-ok-soft); color: var(--color-ok); }
.flash.err { background: var(--color-danger-soft); color: var(--color-accent-dark); }

.pub-wrap { max-width: 1040px; margin: 0 auto; padding: 22px 20px 60px; position: relative; z-index: 1; }
.pub-nav { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 18px; background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.87); border-radius: 16px; box-shadow: 0 8px 28px rgba(18,24,36,.07); }
.pub-nav .brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 800; font-size: 16px; letter-spacing: -.02em; color: inherit; text-decoration: none; }
.pub-nav .grow { flex: 1; }
.hero { padding: 54px 0 34px; }
.hero h1 { font-family: var(--font-heading); font-weight: 800; font-size: clamp(30px, 6vw, 46px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 14px; }
.hero h1 em { font-style: normal; color: var(--color-accent); }
.hero p { font-size: 16px; line-height: 1.6; color: var(--color-text-muted); max-width: 560px; margin: 0 0 24px; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 8px 0 34px; }
.step { padding: 20px; border-radius: 20px; background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.94); box-shadow: 0 10px 30px rgba(18,24,36,.06); }
.step .n { width: 30px; height: 30px; border-radius: 10px; background: var(--color-accent); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.step .t { font-weight: 700; margin-bottom: 4px; }
.step .d { font-size: 13px; color: var(--color-text-muted); line-height: 1.5; }
.pub-card { padding: 24px; border-radius: 22px; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.94); box-shadow: 0 12px 34px rgba(18,24,36,.07); margin-bottom: 18px; }
.pub-card h2 { font-family: var(--font-heading); font-size: 20px; margin: 0 0 6px; letter-spacing: -.02em; }
.rules { margin: 10px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.75; color: var(--color-text-muted); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.94); box-shadow: 0 8px 24px rgba(18,24,36,.05); }
.stat .l { font-size: 11.5px; color: var(--color-text-muted); font-weight: 600; }
.stat .v { font-family: var(--font-heading); font-weight: 800; font-size: 22px; letter-spacing: -.02em; margin-top: 4px; }
.stat .s { font-size: 11px; color: var(--color-text-faint); margin-top: 2px; }

.linkbox { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.linkbox .input { flex: 1; min-width: 220px; }
.code-pill { display: inline-block; padding: 6px 14px; border-radius: 12px; background: var(--color-accent-soft-2); color: var(--color-accent-active); font-weight: 800; letter-spacing: .08em; font-size: 15px; }
.msgbox { background: rgba(32,30,29,.04); border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
.faq dt { font-weight: 700; margin-top: 12px; }
.faq dd { margin: 4px 0 0; font-size: 13.5px; color: var(--color-text-muted); line-height: 1.6; }
.tbl-empty { text-align: center; padding: 30px 0; color: var(--color-text-muted); }
.otp-input { letter-spacing: .5em; font-size: 22px; text-align: center; font-weight: 700; }

/* Tombol sedang memproses: tetap terang (bukan "mati") supaya spinner jelas terlihat. */
.btn.is-loading, .btn.is-loading:disabled { opacity: .88; cursor: progress; }
.btn.is-loading { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

/* Layar HP: huruf isian 16px mencegah browser (Chrome/Android, Safari) memperbesar halaman otomatis saat kolom difokus. */
@media (max-width: 640px) {
  .input, input.input, textarea.input, select.input { font-size: 16px; }
  input.input.otp-input { font-size: 22px; }
}

/* ==========================================================================
   Warna GearSales — mengikuti logo: oranye panah (#FF6E1D), abu cincin (#777C82), abu tua tulisan (#454E55).
   Menimpa variabel aksen main-app (merah) supaya seluruh tombol/lencana/menu aktif ikut oranye.
   Oranye dipilih sedikit lebih dalam dari logo agar teks putih di atas tombol tetap terbaca.
   ========================================================================== */
:root {
  --color-text: #22282d;
  --color-text-muted: rgba(34, 40, 45, .6);
  --color-text-faint: rgba(34, 40, 45, .45);
  --color-divider: rgba(34, 40, 45, .1);
  --color-divider-strong: rgba(34, 40, 45, .16);

  --color-accent: #f26a1b;
  --color-accent-hover: #e05a0d;
  --color-accent-active: #b84509;
  --color-accent-dark: #7a2e06;
  --color-accent-rgb: 242, 106, 27;
  --color-accent-soft: rgba(242, 106, 27, .1);
  --color-accent-soft-2: rgba(242, 106, 27, .16);
  --color-accent-light: #ffb27f;

  /* Galat tetap MERAH (makna semantik), terpisah dari aksen oranye. */
  --color-danger: #b42318;
  --color-danger-soft: rgba(220, 38, 38, .11);
}
.flash.err { background: var(--color-danger-soft); color: #991b1b; }
.bg-blobs .b2 { background: radial-gradient(circle at 50% 50%, rgba(119, 124, 130, .30), rgba(119, 124, 130, 0) 68%); }
.bg-blobs .b3 { background: radial-gradient(circle at 50% 50%, rgba(69, 78, 85, .10), rgba(69, 78, 85, 0) 70%); }
.login-aside { background: linear-gradient(165deg, rgba(242, 106, 27, .14), rgba(69, 78, 85, .07)); }
.login-fact .ic { background: rgba(242, 106, 27, .13); }
.sidebar-brand .logo { width: 44px; height: 44px; }
.sidebar-brand .name, #mobile-topbar .name, .pub-nav .brand { letter-spacing: -.02em; }

/* Halaman publik di HP: navigasi tidak boleh meluber (dulu tombol keluar dari kartu dan melebarkan halaman). */
@media (max-width: 640px) {
  .pub-wrap { padding: 14px 16px 44px; }
  .pub-nav { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .pub-nav .brand { font-size: 15px; }
  .pub-nav .brand img { width: 32px !important; height: 32px !important; }
  .pub-nav .btn { padding: 8px 14px; font-size: 13px; }
  .hero { padding: 30px 0 22px; }
  .hero p { font-size: 15px; }
  .hero .cta { flex-direction: column; align-items: stretch; }
  .hero .cta .btn { width: 100%; justify-content: center; text-align: center; }
  .hero .cta .btn-ghost { border: 1px solid var(--color-divider); background: rgba(255,255,255,.7); }
  .steps { margin-bottom: 22px; }
  .pub-card { padding: 18px; }
}
