/*
 * Angkasaham — situs publik statis (tanpa build step).
 * Token warna & bentuk disalin dari .prototype/frontend/src/styles/tokens.css supaya situs
 * publik dan aplikasi terlihat sebagai satu produk. Sudut siku (radius 0), Inter + JetBrains
 * Mono, hijau #089981. Situs ini hanya dark theme — tidak ada pemilih tema di sini.
 */
:root {
  color-scheme: dark;

  --bg-main: #0a0a0b;
  --bg-surface: #141416;
  --bg-surface-hover: #212125;
  --bg-table-header: #1b1b1e;

  --border-grid: #262629;
  --border-grid-strong: #34343a;

  --text-primary: #f3f3f4;
  --text-secondary: #a4a4ab;
  --text-muted: #6c6c74;

  --brand: #089981;
  --brand-hover: #067c69;
  --loss: #f23645;
  --warning: #f59e0b;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius: 0px;
  --transition-fast: 100ms ease-out;
}

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

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

body {
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--border-grid-strong); }

a { color: var(--brand); }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.25; }
.mono { font-family: var(--font-mono); letter-spacing: -0.02em; }

/* ---------- Header ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 60px;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-grid);
}

.nav-inner {
  max-width: 1120px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand img { width: 22px; height: 22px; }

.brand span {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-links { display: flex; align-items: center; gap: 1.5rem; }

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-links a:hover { color: var(--text-primary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-grid);
}
.btn-secondary:hover { background: var(--bg-surface-hover); border-color: var(--border-grid-strong); }

.btn-block { width: 100%; padding: 0.75rem 1rem; }

/* ---------- Layout ---------- */
.page {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.page-narrow { max-width: 820px; }

section { padding: 3.5rem 0; }
section + section { border-top: 1px solid var(--border-grid); }

.section-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-lede {
  color: var(--text-secondary);
  font-size: 0.92rem;
  max-width: 620px;
  margin-bottom: 2rem;
}

.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
}

.panel-head {
  padding: 0.6rem 1rem;
  background: var(--bg-table-header);
  border-bottom: 1px solid var(--border-grid);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.panel-body { padding: 1.25rem; }

/* ---------- Hero ---------- */
.hero { padding: 4rem 0 3.5rem; }

.hero h1 {
  font-size: 2.35rem;
  font-weight: 800;
  max-width: 780px;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 660px;
  margin-bottom: 1.75rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-note {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Grid kartu ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  padding: 1.25rem;
}

.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.card p { color: var(--text-secondary); font-size: 0.88rem; }

/* ---------- Harga ---------- */
.price-box {
  max-width: 460px;
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  padding: 1.75rem;
}

.price-plan {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.price-amount {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0.35rem 0 0.15rem;
}

.price-term { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1.25rem; }

.list { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }

.list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.list li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

.price-box .btn { margin-top: 1.5rem; }

/* ---------- Tabel ringkasan ---------- */
.summary { width: 100%; border-collapse: collapse; font-size: 0.9rem; }

.summary th, .summary td {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-grid);
  text-align: left;
  font-weight: 400;
  color: var(--text-secondary);
}

.summary td { text-align: right; color: var(--text-primary); font-family: var(--font-mono); }

.summary tr:last-child th, .summary tr:last-child td {
  border-bottom: none;
  padding-bottom: 0;
  font-weight: 700;
  color: var(--text-primary);
}

.summary tr:last-child td { color: var(--brand); font-size: 1.05rem; }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }

.field label { font-size: 0.82rem; color: var(--text-secondary); }

.field input, .field select, .field textarea {
  background: #101011;
  border: 1px solid var(--border-grid);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.6rem 0.7rem;
  width: 100%;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
}

.field small { font-size: 0.75rem; color: var(--text-muted); }

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.25rem;
  align-items: start;
}

.notice {
  border: 1px solid var(--border-grid);
  border-left: 2px solid var(--warning);
  background: var(--bg-surface);
  padding: 0.75rem 0.9rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.notice-error { border-left-color: var(--loss); color: var(--loss); }
.notice-ok { border-left-color: var(--brand); }

/* ---------- Halaman legal ---------- */
.legal { padding: 3rem 0 4rem; }
.legal h1 { font-size: 1.7rem; font-weight: 700; margin-bottom: 0.35rem; }
.legal .updated { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); margin-bottom: 2rem; }
.legal h2 { font-size: 1.05rem; font-weight: 700; margin: 2rem 0 0.6rem; }
.legal p, .legal li { color: var(--text-secondary); font-size: 0.92rem; }
.legal p { margin-bottom: 0.75rem; }
.legal ul, .legal ol { margin: 0 0 0.75rem 1.15rem; display: flex; flex-direction: column; gap: 0.4rem; }

/* ---------- Kontak ---------- */
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-grid);
  font-size: 0.9rem;
}

.contact-row:last-child { border-bottom: none; }
.contact-row dt { min-width: 150px; color: var(--text-muted); }
.contact-row dd { color: var(--text-primary); font-family: var(--font-mono); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-grid);
  background: var(--bg-surface);
  margin-top: auto;
  padding: 2.5rem 1.25rem 1.5rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-inner p { font-size: 0.85rem; color: var(--text-secondary); max-width: 320px; margin-top: 0.6rem; }

.footer-col { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.82rem; }

.footer-col strong {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer-col a { color: var(--text-secondary); text-decoration: none; }
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-grid);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

@media (max-width: 860px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 1.75rem; }
}
