/* ============================================================
   PriaDoc — Landing page styles
   Built on css/colors_and_type.css (design tokens are the source of truth).
   Brand rules: two-tone flat (navy + orange on cream), no gradients,
   Montserrat, tracked-caps eyebrows, navy-tinted shadows, calm motion.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; }

img { max-width: 100%; display: block; }

::selection { background: var(--orange-100); color: var(--navy-700); }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 32px;
}

.section { padding-block: clamp(56px, 8vw, 96px); background: var(--cream-50); }
.section--muted { background: var(--cream-100); }

.section__head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 640px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head h2 { margin: 12px 0 0; }
.section__head .eyebrow { color: var(--orange-600); }

.eyebrow--sm { font-size: 11px; }

.accent { color: var(--orange-500); }
.lead { font-size: var(--fs-body-lg); color: var(--fg-2); line-height: 1.6; }
.link-muted { color: var(--fg-2); font-size: 14px; font-weight: 500; border: 0; }
.link-muted:hover { color: var(--navy-600); }

/* ---------- icons ---------- */
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon--success { color: var(--color-success); }
.icon--accent  { color: var(--orange-500); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: 14px;
  line-height: 1;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-base) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard);
}
.btn:hover { border-bottom-color: transparent; }
.btn:active { transform: scale(0.98); }
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--lg { padding: 16px 28px; font-size: 16px; }

.btn--primary { background: var(--orange-500); color: var(--cream-50); }
.btn--primary:hover { background: var(--orange-600); box-shadow: var(--shadow-accent); }

.btn--ghost { background: transparent; color: var(--navy-600); }
.btn--ghost:hover { background: rgba(36, 55, 87, 0.04); }

.btn--outline { background: transparent; color: var(--navy-600); border-color: var(--navy-600); }
.btn--outline:hover { background: var(--navy-600); color: var(--cream-50); }

.btn--onDarkGhost { background: transparent; color: var(--cream-50); border-color: rgba(255,253,243,0.4); }
.btn--onDarkGhost:hover { background: rgba(255,253,243,0.1); }

/* ============================================================ NAV ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 243, 0.88);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border-1);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-block: 14px;
}
.nav__brand { display: inline-flex; border: 0; }
.nav__brand img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 28px; flex: 1; }
.nav__links a {
  color: var(--fg-2);
  font-size: 14px;
  font-weight: 500;
  border: 0;
}
.nav__links a:hover { color: var(--navy-600); }
.nav__actions { display: flex; align-items: center; gap: 18px; }
.nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--navy-600);
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav__mobile { display: none; }

/* ============================================================ HERO ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream-50);
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 9vw, 104px);
}
.hero__watermark {
  position: absolute;
  right: -120px;
  top: -80px;
  height: 640px;
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero__grid > * { min-width: 0; } /* let tracks shrink; no content-driven overflow */
.hero__eyebrow { color: var(--navy-600); margin: 0 0 20px; }
.hero__title {
  font-size: clamp(32px, 6.2vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: var(--fw-bold);
  color: var(--navy-600);
  margin: 0 0 20px;
  overflow-wrap: break-word;
}
.hero__sub {
  font-size: var(--fs-body-lg);
  color: var(--fg-2);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 0 32px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 0;
  margin: 32px 0 0;
  font-size: 13px;
  color: var(--fg-3);
}
.hero__trust li { display: inline-flex; align-items: center; gap: 6px; }

/* ----- hero Q1 panel: pertanyaan pertama skrining ----- */
.hero__panel { position: relative; }
.q1card {
  position: relative;
  overflow: hidden;
  background: var(--navy-600);
  border-radius: var(--radius-xl);
  padding: 28px 24px 22px;
  color: var(--cream-50);
  box-shadow: var(--shadow-lg);
}
.q1card__watermark {
  position: absolute;
  right: -60px;
  bottom: -70px;
  height: 360px;
  opacity: 0.1;
  pointer-events: none;
}
.q1card__kicker {
  position: relative;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--orange-300);
}
.q1card__title {
  position: relative;
  margin: 0 0 18px;
  font-size: clamp(22px, 2.4vw, 26px);
  line-height: 1.25;
  color: var(--cream-50);
}
.q1card__chips { position: relative; display: flex; flex-direction: column; gap: 10px; }
.q1chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 13px 16px;
  border: 1.5px solid rgba(255, 253, 243, 0.28);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 243, 0.06);
  color: var(--cream-50);
  font-size: 15px;
  font-weight: var(--fw-medium);
  line-height: 1.35;
  transition: border-color var(--duration-fast) var(--ease-standard),
              background var(--duration-fast) var(--ease-standard);
}
.q1chip .icon { color: var(--orange-300); }
.q1chip:hover,
.q1chip:focus-visible { border-color: var(--orange-400); background: rgba(230, 118, 18, 0.16); border-bottom-color: var(--orange-400); }
.q1chip:focus-visible { outline: 2px solid var(--cream-50); outline-offset: 2px; }
.q1card__note {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 253, 243, 0.72);
}
.q1card__note .icon { margin-top: 2px; color: var(--orange-300); }

/* ============================================================ GRIDS ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

/* ---------- card base ---------- */
.card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-base) var(--ease-standard),
              transform var(--duration-base) var(--ease-standard);
}

/* ---------- feature (kenapa) ---------- */
.feature { display: flex; flex-direction: column; gap: 12px; }
.feature:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: var(--orange-50);
  color: var(--orange-500);
  display: grid; place-items: center;
  margin-bottom: 4px;
}
.feature .eyebrow { color: var(--orange-600); }
.feature h3 { margin: 0; }
.feature p { margin: 0; }

/* ============================================================ STEPS ============================================================ */
.steps {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: none;
}
.step {
  position: relative;
  padding: 28px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
}
.step__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--cream-50);
  background: var(--navy-600);
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  text-align: center;
  line-height: 38px;
  margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: var(--fs-h5); }
.step p { margin: 0; font-size: 14px; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 47px;
  right: -13px;
  width: 14px; height: 2px;
  background: var(--orange-200);
}

/* ============================================================ STATS ============================================================ */
.stats {
  position: relative;
  overflow: hidden;
  background: var(--navy-600);
  color: var(--cream-50);
  padding-block: clamp(48px, 7vw, 72px);
}
.stats__watermark {
  position: absolute;
  left: -100px; top: -60px;
  height: 480px;
  opacity: 0.08;
  pointer-events: none;
}
.stats__grid { position: relative; }
.stat__num {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: var(--fw-extrabold, 800);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--orange-300);
}
.stat__a { font-size: 15px; font-weight: var(--fw-semibold); margin-top: 12px; }
.stat__b { font-size: 13px; color: rgba(255, 253, 243, 0.7); margin-top: 4px; line-height: 1.45; }

/* ============================================================ SPLIT (yang kami bantu) ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split__copy h2 { margin: 12px 0 16px; }
.split__copy .eyebrow { color: var(--orange-600); }
.checklist {
  list-style: none;
  padding: 0;
  margin: 28px 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy-700);
}

.assure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  background: var(--cream-100);
  border: 1px solid var(--cream-200);
  display: grid;
  place-items: center;
  padding: 40px;
}
.assure__watermark {
  position: absolute;
  height: 78%;
  opacity: 0.1;
  pointer-events: none;
}
.assure__corner {
  position: absolute;
  font-size: 11px;
  color: var(--navy-600);
}
.assure__corner--tl { top: 24px; left: 24px; }
.assure__corner--br { bottom: 24px; right: 24px; }
.assure__center {
  position: relative;
  text-align: center;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.assure__shield { color: var(--orange-500); }
.assure__center p { margin: 0; color: var(--navy-700); font-weight: 500; font-size: 15px; }

/* ============================================================ DID YOU KNOW ============================================================ */
.dyk {
  border: 1px solid var(--cream-200);
  box-shadow: none;
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px;
}
.dyk:hover { box-shadow: var(--shadow-sm); }
.dyk__num { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--orange-500); }
.dyk h3 { margin: 0; font-size: var(--fs-h5); }
.dyk p { margin: 0; font-size: 14px; }

/* ============================================================ TESTIMONIALS ============================================================ */
.quote {
  background: var(--cream-100);
  border: 1px solid var(--cream-200);
  box-shadow: none;
  padding: 28px;
  margin: 0;
}
.quote__stars { display: flex; gap: 2px; color: var(--orange-500); margin-bottom: 16px; }
.quote blockquote {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--fg-1);
}
.quote__by {
  display: flex; align-items: center; gap: 12px;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--cream-200);
}
.quote__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--orange-500);
  color: var(--cream-50);
  display: grid; place-items: center;
  font-weight: var(--fw-bold);
  font-size: 14px;
}
.quote__by strong { display: block; color: var(--navy-600); font-size: 14px; }
.quote__role { font-size: 12px; color: var(--fg-3); }

/* ============================================================ CTA BAND ============================================================ */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--navy-700);
  color: var(--cream-50);
  padding-block: clamp(56px, 8vw, 88px);
  text-align: center;
}
.cta__watermark {
  position: absolute;
  right: -80px; bottom: -100px;
  height: 420px;
  opacity: 0.08;
  pointer-events: none;
}
.cta__inner { position: relative; max-width: 720px; }
.cta__inner h2 { color: var(--cream-50); margin: 14px 0 16px; }
.cta__sub { color: rgba(255, 253, 243, 0.78); font-size: var(--fs-body-lg); margin: 0 auto 32px; max-width: 560px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ============================================================ FAQ ============================================================ */
.faq { max-width: 800px; }
.faq h2 { margin: 12px 0 32px; }
.faq .eyebrow { color: var(--orange-600); }
.accordion { display: flex; flex-direction: column; gap: 8px; }
.qa { background: var(--bg-surface); border: 1px solid var(--border-1); border-radius: var(--radius-md); overflow: hidden; }
.qa__q {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: var(--fw-semibold);
  font-size: 16px;
  color: var(--navy-600);
}
.qa__q:focus-visible { outline: 2px solid var(--navy-400); outline-offset: -2px; }
.qa__chev { color: var(--navy-600); transition: transform var(--duration-base) var(--ease-standard); }
.qa[open] .qa__chev,
.qa.is-open .qa__chev { transform: rotate(180deg); }
.qa__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--duration-slow) var(--ease-standard);
}
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa__a > p {
  overflow: hidden;
  margin: 0;
  padding: 0 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  transition: padding var(--duration-slow) var(--ease-standard);
}
.qa.is-open .qa__a > p { padding: 0 24px 20px; }

/* ============================================================ FOOTER ============================================================ */
.footer {
  background: var(--navy-700);
  color: var(--cream-50);
  padding: clamp(48px, 7vw, 64px) 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand img { height: 28px; width: auto; margin-bottom: 18px; }
.footer__brand p { color: rgba(255, 253, 243, 0.7); font-size: 14px; line-height: 1.55; max-width: 340px; margin: 0; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__h { color: var(--orange-300); margin: 0 0 4px; }
.footer__col a { color: rgba(255, 253, 243, 0.82); font-size: 14px; border: 0; }
.footer__col a:hover { color: var(--cream-50); }
.footer__disclaimer {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 253, 243, 0.55);
  border-top: 1px solid rgba(255, 253, 243, 0.12);
  padding-top: 24px;
  margin: 0 0 20px;
  max-width: 760px;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 253, 243, 0.6);
}
.footer__bottom .eyebrow { color: inherit; display: inline; }
.footer__legal { display: flex; gap: 20px; }
.footer__legal a { color: inherit; border: 0; }
.footer__legal a:hover { color: var(--cream-50); }

/* ============================================================ RESPONSIVE ============================================================ */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__panel { max-width: 460px; }
  /* Chip Q1 langsung setelah judul di layar sempit, supaya pertanyaan pertama terlihat tanpa menggulir jauh. */
  .hero__grid { gap: 0; }
  .hero__copy { display: contents; }
  .hero__eyebrow, .hero__title, .hero__sub { order: 0; }
  .hero__sub { margin-bottom: 24px; }
  .hero__panel { order: 1; margin-bottom: 28px; }
  .hero__cta { order: 2; }
  .hero__trust { order: 3; }
  .grid-4, .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .assure { aspect-ratio: 16 / 10; max-width: 520px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav__links, .nav__signin { display: none; }
  .nav__actions .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__inner { gap: 16px; }
  .nav__mobile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 32px 20px;
    border-top: 1px solid var(--border-1);
    background: var(--cream-50);
  }
  .nav__mobile[hidden] { display: none; }
  .nav__mobile a { padding: 12px 0; color: var(--navy-600); font-weight: 500; font-size: 15px; border: 0; }
  .nav__mobile .btn { margin-top: 8px; }
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding-inline: 20px; }
  .grid-4, .stats__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .hero__cta .btn, .cta__actions .btn { width: 100%; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .q1chip { transition: none; }
  .qa__a, .qa__a > p, .qa__chev { transition: none; }
}


/* ---- P0 fixes: sticky mobile CTA + sumber statistik ---- */
.sticky-cta{display:none}
.stats__source{margin:18px auto 0;max-width:640px;font-size:12px;line-height:1.5;color:inherit;opacity:.6;text-align:center}
.stat__src{font-size:.7em;vertical-align:super;opacity:.75}
@media (max-width:640px){
  .sticky-cta{position:fixed;left:12px;right:12px;bottom:12px;z-index:60;display:flex;align-items:center;justify-content:center;gap:8px;padding:14px 18px;border-radius:12px;background:#E67612;color:#FFFDF3;font-weight:700;text-decoration:none;box-shadow:0 8px 24px rgba(36,55,87,.22)}
  body{padding-bottom:78px}
}
