/* Landing page Lockone: putih minimalis, biru (#155EEF, warna seed aplikasi)
   hanya untuk tombol dan aksen. Mode gelap mengikuti setelan perangkat. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --surface: #ffffff;
  --text: #101828;
  --muted: #475467;
  --border: #e4e7ec;
  --primary: #155eef;
  --primary-hover: #0e4fd1;
  --on-primary: #ffffff;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --bg-alt: #151922;
    --surface: #181c25;
    --text: #f2f4f7;
    --muted: #a9b2c3;
    --border: #2a3040;
    --primary: #5b8cff;
    --primary-hover: #7aa2ff;
    --on-primary: #0b1020;
  }
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.narrow {
  max-width: 760px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.brand img {
  border-radius: 9px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--text);
}

@media (max-width: 560px) {
  .nav-link {
    display: none;
  }
}

/* Tombol */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
}

.button:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.button-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.95rem;
}

.button-outline {
  background: transparent;
  color: var(--primary);
}

.button-outline:hover {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px dashed var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Hero */

.hero {
  padding: 72px 0 40px;
  text-align: center;
}

.hero-inner {
  max-width: 760px;
}

.hero-logo {
  border-radius: 24px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 auto 32px;
  max-width: 600px;
  color: var(--muted);
  font-size: 1.15rem;
}

/* Screenshot: strip geser horizontal (tanpa JavaScript) */

.screens {
  padding: 24px 0 56px;
}

.screens-hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.screens-strip {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  /* Gambar pertama sejajar dengan isi halaman, gambar terakhir bisa digeser
     sampai tepi kanan. */
  padding: 4px max(16px, calc((100% - 1080px) / 2 + 16px)) 16px;
  scroll-padding: 0 max(16px, calc((100% - 1080px) / 2 + 16px));
  /* Scrollbar tetap terlihat sebagai petunjuk di desktop. */
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.screens-strip:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: -3px;
}

.screens-strip::-webkit-scrollbar {
  height: 8px;
}

.screens-strip::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

.screen {
  flex: 0 0 auto;
  width: 240px;
  margin: 0;
  scroll-snap-align: start;
  text-align: center;
}

.screen img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg-alt);
}

.screen figcaption {
  font-weight: 600;
}

@media (max-width: 600px) {
  .screen {
    width: 70vw;
    max-width: 260px;
  }
}

/* Bagian umum */

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  text-align: center;
}

.section-lead {
  margin: 0 auto 40px;
  color: var(--muted);
  text-align: center;
}

/* Manfaat */

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

.feature {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature h3 {
  font-size: 1.1rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.icon {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* FAQ */

#faq h2 {
  margin-bottom: 32px;
}

details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 12px;
}

summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 48px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 400;
}

details[open] summary::after {
  content: "\2212";
}

details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}

/* Dukung */

.support {
  text-align: center;
}

.support p {
  color: var(--muted);
  margin: 0 0 24px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}
