/* ===== Ronsen Bisnis — fondasi desain ===== */
/* Palet: biru malam pekat + emas sampanye + gading. Font: Playfair Display (judul) + Inter (teks). */
:root {
  --night: #0B1220;
  --night-2: #111A2C;
  --night-3: #1A263D;
  --ink: #131B2C;
  --ink-2: #384257;
  --muted: #5F6878;
  --line: #E7E1D6;
  --line-2: #D5CCBC;
  --paper: #F8F5EF;
  --white: #FFFFFF;
  --cyan: #8FD0E3;
  --cyan-2: #2F7C94;
  --cyan-soft: rgba(143,208,227, .12);
  --gold: #9C7A33;
  --gold-2: #DCC08A;
  --gold-3: #F6EEDC;
  --ok: #16A34A;
  --warn: #CA8A04;
  --sick: #EA580C;
  --crit: #DC2626;
  --r: 18px;
  --r-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(19, 27, 44, .05), 0 2px 8px rgba(19, 27, 44, .04);
  --shadow: 0 12px 32px -14px rgba(19, 27, 44, .2), 0 2px 6px rgba(19, 27, 44, .05);
  --shadow-lg: 0 30px 80px -30px rgba(9,13,24, .45);
  --f-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  /* Label kecil memakai Inter (lebih mudah dibaca); --f-code khusus kode/token */
  --f-mono: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-code: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--f-sans); color: var(--ink); background: var(--paper);
  font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01"; font-variant-numeric: lining-nums tabular-nums;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan-2); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--cyan); color: var(--night); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }

/* Tipografi */
.display { font-family: var(--f-serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.1; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.015em; }
h2.title { font-family: var(--f-serif); font-weight: 500; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
h2.title em, h1 em { font-style: italic; color: var(--gold); }
.lead { font-size: clamp(17.5px, 1.6vw, 20px); line-height: 1.7; color: var(--ink-2); max-width: 660px; }
.eyebrow {
  font-family: var(--f-sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  color: var(--gold); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }

/* Tombol */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer;
  padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; white-space: nowrap;
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-gold { background: linear-gradient(135deg, #EEDBB0 0%, #CDAE6C 55%, #A3803A 100%); color: #1B1204; box-shadow: 0 10px 30px -10px rgba(205,174,108, .8), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-gold:hover { box-shadow: 0 16px 40px -12px rgba(205,174,108, .95), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--night-3); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost-light { background: rgba(255,255,255,.06); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); backdrop-filter: blur(8px); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn-soft { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-soft:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; min-height: 38px; }
.btn-block { width: 100%; }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(4px); }

.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--cyan); box-shadow: 0 0 0 4px rgba(143,208,227,.18); }
.dot.live { animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* Form */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.field > label .opt { font-weight: 500; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; padding: 14px 16px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); background: #fff;
  font-size: 16px; transition: border-color .15s, box-shadow .15s; min-height: 50px; appearance: none;
}
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235B6B82' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.input:focus { outline: none; border-color: var(--cyan-2); box-shadow: 0 0 0 4px rgba(47,124,148,.14); }
.input.is-err { border-color: var(--crit); }
textarea.input { min-height: 96px; resize: vertical; }
.hint { font-size: 12.5px; color: var(--muted); }

/* Kartu */
.card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }

/* Status */
.st { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.st::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-sehat { color: var(--ok); background: #DCFCE7; }
.st-waspada { color: #A16207; background: #FEF9C3; }
.st-sakit { color: #C2410C; background: #FFEDD5; }
.st-kritis { color: #B91C1C; background: #FEE2E2; }

/* Viz bersama */
.rb-lbl { font: 600 11px var(--f-sans); letter-spacing: .01em; }
.rb-lbl-sc { font: 600 10px var(--f-mono); }
.rb-rlbl { font: 600 11.5px var(--f-sans); }
.rb-rsc { font: 700 11px var(--f-mono); }
.rb-gnum { font: 400 64px var(--f-serif); letter-spacing: -.02em; }
.rb-gsub { font: 600 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.rb-body .rb-halo { animation: halo 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.rb-body .rb-organ:nth-child(2n) .rb-halo { animation-delay: -1.3s; }
@keyframes halo { 0%, 100% { opacity: .28; transform: scale(.9); } 50% { opacity: .55; transform: scale(1.12); } }
.rb-body .rb-scan { animation: scan 4.2s cubic-bezier(.45,.05,.55,.95) infinite; }
@keyframes scan { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { transform: translateY(640px); opacity: 0; } }
.rb-bar { position: relative; height: 8px; border-radius: 99px; background: #EEF2F7; overflow: hidden; }
.rb-bar span { position: absolute; inset: 0 auto 0 0; border-radius: 99px; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.rb-bar i { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; }

/* Banner demo */
.demo-banner { position: fixed; left: 50%; bottom: 14px; white-space: nowrap; pointer-events: none; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; font-size: 12.5px; padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow); display: flex; gap: 8px; align-items: center; max-width: calc(100% - 24px); }
.demo-banner.top { top: 78px; bottom: auto; }
.demo-banner b { color: var(--gold-2); }

/* Toast */
.toast { position: fixed; top: 18px; left: 50%; transform: translate(-50%, -140%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 200; box-shadow: var(--shadow-lg); font-size: 14px; transition: transform .35s cubic-bezier(.2,.8,.2,1); max-width: calc(100% - 24px); }
.toast.show { transform: translate(-50%, 0); }
.toast.err { background: #7F1D1D; }

/* Reveal */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .02em; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #223352, #080D18); box-shadow: inset 0 0 0 1px rgba(143,208,227,.4), 0 0 18px rgba(143,208,227,.25); }
.logo-txt { display: flex; flex-direction: column; line-height: 1.05; }
.logo-txt b { font-size: 15px; letter-spacing: .14em; }
.logo-txt small { font: 600 11px var(--f-mono); letter-spacing: .09em; opacity: .65; text-transform: uppercase; }

/* Angka tegak (bukan gaya kuno) pada font judul */
.display, h1, h2, h3, h4, .rb-gnum, [class*="big"], .hero-meta b, .symptom .n, .step .k, .prog i, .counter b, .kpi b { font-variant-numeric: lining-nums proportional-nums; }

/* ===== Logo Lampung Cerdas Grup & Positif Sukses ===== */
.lg { display: inline-flex; align-items: center; }
.lg img { display: block; height: 100%; width: auto; }
.lg .lg-txt { display: none; }
.lg.lg-miss img { display: none; }
.lg.lg-miss .lg-txt { display: inline; }
.brand-band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brand-band-in { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 22px; padding-top: 26px; padding-bottom: 26px; }
.bb-label { font: 600 13px var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bb-logo { height: 64px; }
.bb-logo .lg-txt { font: 600 22px var(--f-serif); color: var(--ink); }
.bb-sep { width: 1px; height: 44px; background: var(--line-2); }
.hero-by { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.hero-by > span:first-child { font: 600 12.5px var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: rgba(232,235,242,.6); }
.hb-logo { height: 56px; padding: 6px 14px; border-radius: 12px; background: #fff; }
.hb-logo .lg-txt { font: 700 14px var(--f-sans); color: var(--ink); }
@media (max-width: 640px) {
  .bb-sep { display: none; }
  .brand-band-in { flex-direction: column; gap: 10px; }
  .bb-logo { height: 54px; }
}
