/* ============================================================
   TOS Developer -- gaya bersama seluruh halaman.
   Warna diambil PERSIS dari app_colors.dart TOKKO POS supaya
   identitas visual website konsisten dengan aplikasinya.
   ============================================================ */

:root {
  --primary: #2F6FED;
  --primary-dark: #1D4FB8;
  --primary-light: #E8F0FE;
  --secondary: #10B981;
  --secondary-dark: #047857;
  --text-primary: #1A1D23;
  --text-secondary: #6B7280;
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --border: #E2E5EA;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(30, 41, 59, 0.06);
  --shadow-lg: 0 12px 40px rgba(30, 41, 59, 0.10);
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.brand:hover { text-decoration: none; }

.brand .brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

nav.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

nav.main-nav a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.94rem;
  white-space: nowrap;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--primary);
  text-decoration: none;
}

/* Tombol hamburger -- disembunyikan di layar lebar, cuma muncul di mobile */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--text-primary);
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero.small { padding: 48px 0 32px; text-align: left; }

.eyebrow {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 28px;
}

.hero.small p.lead { margin: 0 0 8px; }

.btn-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.96rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 8px 24px rgba(47, 111, 237, 0.28);
}

.btn-outline {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--border);
}

.btn-outline:hover { border-color: var(--primary); }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 12px; font-weight: 800; letter-spacing: -0.01em; }
.section-head p { color: var(--text-secondary); margin: 0; }

/* ---------- Cards / grid ---------- */
.grid {
  display: grid;
  gap: 22px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 820px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 36px; }

  .nav-toggle { display: flex; }

  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }

  nav.main-nav.open { display: flex; }

  nav.main-nav a {
    padding: 13px 24px;
    border-bottom: 1px solid var(--border);
  }
  nav.main-nav a:last-child { border-bottom: none; }

  header.site-header { position: sticky; }
  .nav-inner { position: relative; }

  .app-card { flex-direction: column; text-align: center; }
  .app-card .badge-list, .app-card .btn-row { justify-content: center; }

  .contact-card { flex-direction: row; text-align: left; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.card .icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.card h3 { margin: 0 0 8px; font-size: 1.08rem; font-weight: 700; }
.card p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }

/* App card (dipakai di beranda -- daftar aplikasi) */
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 20px;
  align-items: center;
}

.app-card img.app-logo { width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0; }

.app-card .app-info { flex: 1; min-width: 0; }
.app-card h3 { margin: 0 0 4px; font-size: 1.2rem; }
.app-card .tagline { color: var(--secondary-dark); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 6px; }
.app-card p.desc { color: var(--text-secondary); margin: 0 0 14px; font-size: 0.95rem; }

.badge-list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pill {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
}

/* ---------- Feature list with icon ---------- */
.feature-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-row .num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem; flex-shrink: 0;
}
.feature-row h4 { margin: 0 0 4px; font-size: 1rem; }
.feature-row p { margin: 0; color: var(--text-secondary); font-size: 0.93rem; }

/* ---------- Contact ---------- */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.contact-card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary-light); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-card .label { font-size: 0.82rem; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.contact-card .value { font-weight: 700; font-size: 1.02rem; }

/* ---------- Prose (privacy policy dll) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-secondary); font-size: 0.98rem; }
.prose ul { padding-left: 20px; }
.prose .updated { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 8px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 20px;
  padding: 48px 36px;
  text-align: center;
  color: #fff;
}
.cta-banner h2 { margin: 0 0 12px; font-size: 1.7rem; }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 520px; margin: 0 auto 26px; }
.cta-banner .btn-primary { background: #fff; color: var(--primary-dark); box-shadow: none; }
.cta-banner .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}
footer.site-footer .foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer.site-footer .foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site-footer a { color: var(--text-secondary); font-size: 0.9rem; }
footer.site-footer .copyright { color: var(--text-secondary); font-size: 0.85rem; }
