/* ============================================================
   XAURA — public site
   Dark brand surface, green accent, editorial spacing.
   ============================================================ */

:root {
  --ink: #f3f6f4;
  --ink-soft: #c8d2cc;
  --muted: #8d9a94;
  --bg: #080a09;
  --surface: #0f1211;
  --surface-2: #121615;
  --line: #222825;
  --line-soft: #1a201d;
  --accent: #22c55e;
  --accent-ink: #05230f;
  --accent-dim: #1a7a3f;
  --radius: 12px;
  --wrap: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.site {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- nav ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 10, 9, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0d100f;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-word {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.16em;
}
.brand-sub {
  font-size: 9.5px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.nav-links a { padding: 6px 0; border-bottom: 1px solid transparent; }
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--accent-dim); }
.nav-links a.on { color: var(--ink); border-bottom-color: var(--accent); }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { background: #2fdc6c; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: #3a453f; background: #111514; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 14.5px; }

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% 20% auto 20%;
  height: 620px;
  background: radial-gradient(closest-side, rgba(34, 197, 94, 0.16), transparent 72%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: center;
  padding: 84px 0 88px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent-dim);
}

.hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 15ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-lead {
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.65;
  max-width: 52ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note {
  margin-top: 22px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  max-width: 46ch;
}
.hero-note svg { flex: 0 0 auto; margin-top: 2px; opacity: 0.7; }

.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #101413, #0c0f0e);
  padding: 22px;
}
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.panel-head strong { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.panel-head span { font-size: 11px; color: var(--muted); }

.journey { list-style: none; margin: 0; padding: 4px 0 0; }
.journey li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}
.journey li:last-child { border-bottom: 0; padding-bottom: 2px; }
.journey .n {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #2b3a32;
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.journey strong { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
.journey p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ---------------- sections ---------------- */

.section { padding: 88px 0; border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head-tight { margin-bottom: 26px; }
.section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 12px;
  font-weight: 700;
}
.section-head p { color: var(--ink-soft); font-size: 15px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
}
.feature .ico {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid #26302b;
  color: var(--accent);
  margin-bottom: 16px;
}
.feature h3 { font-size: 15px; font-weight: 650; margin-bottom: 6px; letter-spacing: -0.005em; }
.feature p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ---------------- tiers ---------------- */

.tier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px 24px 24px;
}
.tier.feat { border-color: #2c6a45; background: linear-gradient(180deg, #0f1712, #0d1210); }
.tier-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid #2c6a45;
  border-radius: 999px;
  padding: 3px 9px;
}
.tier-name { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.tier-rate { display: flex; align-items: baseline; gap: 7px; margin: 14px 0 4px; }
.tier-rate b { font-size: 40px; letter-spacing: -0.03em; font-weight: 700; line-height: 1; }
.tier-rate span { font-size: 12.5px; color: var(--muted); }
.tier-min { font-size: 12px; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.tier ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; flex: 1; }
.tier li { display: grid; grid-template-columns: 14px 1fr; gap: 9px; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.tier li svg { margin-top: 4px; color: var(--accent); }
.tier .btn { margin-top: 22px; width: 100%; }

/* ---------------- rebate explainer ---------------- */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 16px;
  padding: 0 0 22px;
  position: relative;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  counter-increment: s;
  content: counter(s);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #2b3a32;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.steps strong { font-size: 14px; display: block; margin-bottom: 3px; }
.steps p { font-size: 13.5px; color: var(--muted); }

.note-box {
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent-dim);
  border-radius: 10px;
  background: #0d1110;
  padding: 20px 22px;
}
.note-box h3 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.note-box p { font-size: 13px; color: var(--ink-soft); line-height: 1.7; }
.note-box p + p { margin-top: 10px; }

/* ---------------- faq ---------------- */

.faq { max-width: 820px; }
.faq details {
  border-bottom: 1px solid var(--line-soft);
  padding: 18px 0;
}
.faq details:first-child { border-top: 1px solid var(--line-soft); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 14.5px;
  font-weight: 550;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  flex: 0 0 auto;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; font-size: 13.5px; color: var(--muted); max-width: 72ch; line-height: 1.7; }

/* ---------------- cta band ---------------- */

.band { padding: 76px 0; }
.band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(120deg, #101614, #0b0e0d);
  padding: 36px 40px;
}
.band h2 { font-size: 26px; letter-spacing: -0.025em; margin-bottom: 6px; }
.band p { color: var(--muted); font-size: 13.5px; max-width: 52ch; }

/* ---------------- footer ---------------- */

.foot { background: #070908; }
.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 24px 28px;
}
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand strong { font-size: 13px; letter-spacing: 0.16em; }
.foot-brand p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.foot-links { display: flex; gap: 20px; font-size: 12.5px; color: var(--ink-soft); }
.foot-links a:hover { color: var(--ink); }
.disclaimer { padding: 0 24px 44px; }
.disclaimer p { font-size: 11.5px; line-height: 1.7; color: #6f7d76; max-width: 96ch; }
.disclaimer .copy { margin-top: 14px; color: #57635d; }

/* ---------------- auth pages ---------------- */

.auth {
  min-height: calc(100dvh - 68px);
  display: grid;
  place-items: center;
  padding: 56px 24px 72px;
  position: relative;
}
.auth::before {
  content: "";
  position: absolute;
  inset: -20% 30% auto 30%;
  height: 480px;
  background: radial-gradient(closest-side, rgba(34, 197, 94, 0.10), transparent 70%);
  pointer-events: none;
}
.auth-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 32px;
}
.auth-card.wide { max-width: 560px; }
.auth-head { margin-bottom: 24px; }
.auth-head .eyebrow { margin-bottom: 14px; }
.auth-head h1 { font-size: 24px; letter-spacing: -0.02em; }
.auth-head p { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.auth-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); text-align: center; }
.auth-foot a { color: var(--accent); font-weight: 550; }

.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field { display: block; }
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  color: var(--ink-soft);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.field-label .req { color: var(--accent); font-style: normal; margin-left: 3px; }
.input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  background: #0a0d0c;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus { border-color: var(--accent-dim); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12); }
.input::placeholder { color: #5c6963; }
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238d9a94' d='M6 8.5 1.5 4h9z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.textarea { height: auto; padding: 10px 12px; line-height: 1.55; resize: vertical; }
.field-hint { display: block; font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.5; }

.flash-stack { display: grid; gap: 10px; margin-bottom: 18px; }
.flash {
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 13px;
  background: #0d1210;
  color: var(--ink-soft);
}
.flash-error { border-left-color: #ef4444; background: #150e0e; color: #f3c6c6; }
.flash-ok { border-left-color: var(--accent); }

.risk-list { margin: 14px 0 0; padding: 0 0 0 18px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* ---------------- responsive ---------------- */

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding: 64px 0 68px; }
  .hero h1 { max-width: 18ch; }
  .grid-3, .tier-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .band-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-inner { height: 62px; gap: 12px; }
  .nav-actions .btn { height: 36px; padding: 0 14px; font-size: 12.5px; }
  .nav-actions .btn-ghost { padding: 0 10px; }
  .wrap { padding: 0 18px; }
  .section { padding: 64px 0; }
  .hero-inner { padding: 48px 0 56px; }
  .hero h1 { font-size: clamp(32px, 9vw, 42px); }
  .hero-lead { font-size: 15px; }
  .tier-rate b { font-size: 34px; }
  .form-row { grid-template-columns: 1fr; }
  .auth-card { padding: 24px 20px; }
  .foot-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .foot-links { flex-wrap: wrap; gap: 14px; }
  .band-inner { padding: 28px 22px; }
}

/* Menu ringkas untuk layar kecil */
.nav-mobile { display: none; position: relative; }
.nav-mobile > summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  user-select: none;
}
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile[open] > summary { color: var(--ink); border-color: var(--accent-dim); }
.nav-mobile-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 200px;
  display: grid;
  gap: 2px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
  z-index: 60;
}
.nav-mobile-panel a {
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--ink-soft);
}
.nav-mobile-panel a:hover { background: var(--surface-2); color: var(--ink); }
.nav-mobile-panel .btn { justify-content: center; margin-top: 6px; }

@media (max-width: 760px) {
  .nav-actions { display: none; }
  .nav-mobile { display: block; }
}
