/* ngejual.com — landing page. Palet diambil dari pandiva.id (ngejual): */
:root {
  --orange: #ff7a1a;
  --orange-dark: #c2540a;
  --orange-subtle: #fff3ea;
  --navy: #14122b;
  --canvas: #f8fafc;
  --card: #ffffff;
  --text: #0b1c30;
  --muted: #45464d;
  --line: #e4e7ee;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.container { width: min(1120px, 92vw); margin: 0 auto; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-tint { background: var(--orange-subtle); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--muted); }

/* Tombol */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .85rem 1.4rem; border-radius: 12px;
  font: 700 1rem/1 var(--font); text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: background .15s, color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .card-link:focus-visible, a:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px -8px rgba(255, 122, 26, .6); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { border-color: var(--line); color: var(--text); background: #fff; }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-dark); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--orange-subtle); }
.btn-sm { padding: .6rem 1rem; font-size: .9rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.brand img { height: 36px; width: auto; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--orange-dark); }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); background: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.eyebrow {
  display: inline-block; padding: .35rem .8rem; border-radius: 999px;
  background: var(--orange-subtle); color: var(--orange-dark);
  font-size: .8rem; font-weight: 700; margin-bottom: 1.25rem;
}
.accent { color: var(--orange); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1.5rem; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 0; margin: 0; color: var(--muted); font-size: .9rem; font-weight: 600; }
.trust li::before { content: "✓ "; color: var(--orange); }

/* Visual chat */
.hero-visual { display: flex; justify-content: center; }
.chat {
  width: min(360px, 100%); padding: 1.1rem; border-radius: 22px;
  background: #e5ddd5; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: .6rem;
}
.bubble {
  max-width: 85%; padding: .7rem .9rem; border-radius: 12px;
  background: #fff; font-size: .9rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.06);
}
.bubble.out { align-self: flex-end; background: #dcf8c6; }
.bubble.in { align-self: flex-start; }
.bubble.done { border-left: 4px solid #16a34a; }
.pay {
  display: block; margin-top: .45rem; padding: .35rem .6rem; border-radius: 8px;
  background: var(--orange-subtle); color: var(--orange-dark); font-weight: 700; font-size: .8rem; text-align: center;
}

/* Kartu produk */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(15,23,42,.04);
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--orange-subtle); font-size: 1.4rem; margin-bottom: 1rem;
}
.card-link { color: var(--orange-dark); font-weight: 700; text-decoration: none; margin-top: .5rem; }
.card-link:hover { text-decoration: underline; }

/* Langkah */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: none; }
.steps li {
  background: #fff; border-radius: var(--radius); padding: 1.5rem;
  border: 1px solid var(--line);
}
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }
.step-no {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--orange); color: #fff; font-weight: 800; margin-bottom: .9rem;
}

/* CTA band */
.cta-band { background: var(--navy); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .25rem; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta-band p { margin: 0; color: #c7cbe0; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 3rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.footer-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.footer-grid a { display: block; text-decoration: none; color: var(--text); margin-bottom: .4rem; font-weight: 500; }
.footer-grid a:hover { color: var(--orange-dark); }
.footer-grid .muted { font-size: .95rem; margin-top: .75rem; max-width: 36ch; }
.copy {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  border-top: 1px solid var(--line); padding: 1.1rem 0; color: var(--muted); font-size: .85rem;
}

/* Responsif */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .nav .btn-sm { padding: .55rem .8rem; font-size: .8rem; }
}

/* Form checkout dan status */
.narrow { max-width: 560px; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); display: grid; gap: 1rem; margin-top: 1.25rem; }
.form-card label { display: grid; gap: .4rem; font-weight: 600; font-size: .95rem; }
.form-card input, .form-card select {
  font: 500 1rem/1.4 var(--font); padding: .7rem .8rem; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--text); width: 100%;
}
.form-card input:focus, .form-card select:focus { outline: 3px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
.hint { font-size: .85rem; color: var(--muted); font-weight: 400; margin: 0; }
.center { text-align: center; }
.alert { background: #ffdad6; color: #93000a; border-radius: 10px; padding: .75rem 1rem; font-weight: 600; margin: 0; }
.btn-block { width: 100%; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.25rem; margin: 0; }
.details dt { color: var(--muted); font-weight: 600; }
.details dd { margin: 0; font-weight: 600; word-break: break-all; }

/* Halaman order: checkout dan status (desain Stitch, disesuaikan dengan palet logo) */
.page-narrow { padding-top: clamp(2rem, 5vw, 3.5rem); }
.page-narrow h1 { font-size: clamp(1.7rem, 3.4vw, 2.25rem); margin-top: .75rem; }
.eyebrow-sm { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-dark); margin-bottom: .25rem; }
.label-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.tag { font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--orange-dark); }
.summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: var(--orange-subtle); border-radius: 12px; padding: 1rem 1.1rem;
}
.summary-name { margin: 0; font-weight: 700; }
.summary-total { text-align: right; }
.summary-total strong { display: block; font-size: 1.35rem; color: var(--orange-dark); font-weight: 800; }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.75rem; }
.trust-row > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .9rem; text-align: center; }
.trust-row strong { display: block; font-size: .9rem; }
.trust-row span { font-size: .8rem; color: var(--muted); }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.page-head h1 { margin: 0; font-size: 1.6rem; }
.pill { font-size: .75rem; font-weight: 800; padding: .3rem .7rem; border-radius: 999px; background: var(--orange-subtle); color: var(--orange-dark); }
.status-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); display: grid; gap: .75rem; }
.status-card p { margin: 0; }
.status-title { font-size: 1.4rem; font-weight: 800; }
.badge { display: inline-block; font-size: .8rem; font-weight: 800; padding: .3rem .75rem; border-radius: 999px; }
.badge-ok { background: #dcfce7; color: #166534; }
.badge-warn { background: #fff0d9; color: #9a4a00; }
.badge-info { background: #e0ecff; color: #1e40af; }
.badge-err { background: #ffdad6; color: #93000a; }
.token-block {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: #f1f5f9; border-radius: 12px; padding: .9rem 1rem;
}
.token { margin: .15rem 0 0; font-size: 1.15rem; font-weight: 800; letter-spacing: .04em; word-break: break-all; }
.status-card .details { margin-top: .5rem; }
#refresh { margin-top: 1rem; }

/* Pilihan produk berbentuk kartu (pengganti dropdown) */
.field { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.field legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: .4rem; }
.product-list { display: grid; gap: .5rem; max-height: 340px; overflow-y: auto; padding-right: .25rem; }
.product-option {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem;
  border: 1px solid var(--line); border-radius: 10px; padding: .7rem .85rem; cursor: pointer; background: #fff;
  font-weight: 500;
}
.product-option:hover { border-color: var(--orange); }
.product-option:has(input:checked) { border-color: var(--orange); background: var(--orange-subtle); box-shadow: 0 0 0 1px var(--orange) inset; }
.product-option input { accent-color: var(--orange); width: 18px; height: 18px; margin: 0; }
.po-name { font-weight: 600; }
.po-price { font-weight: 800; color: var(--orange-dark); white-space: nowrap; }

.pln-check { display: grid; gap: .5rem; justify-items: start; margin-top: -.4rem; }
.pln-check .hint { font-weight: 600; color: var(--text); margin: 0; }
