/*
 * SakuKasir — halaman publik.
 *
 * Palet dan tipografi mengikuti aplikasinya (src/css/quasar.variables.scss), supaya
 * tangkapan layar di halaman ini menyatu dengan halamannya, bukan menempel di atasnya.
 *
 * Tanpa framework dan tanpa permintaan ke luar: satu berkas CSS, satu SVG, beberapa
 * gambar. Halaman pemasaran dinilai dari seberapa cepat ia muncul di jaringan seluler,
 * dan setiap permintaan ke CDN adalah satu perjalanan bolak-balik lagi sebelum teks
 * pertama terlihat.
 */

:root {
  --primary: #1a237e;
  --secondary: #283593;
  --accent: #5c6bc0;
  --positive: #2e7d32;
  --warning: #ef6c00;

  --ink: #10132b;
  --body: #454a67;
  --muted: #6e7391;
  --line: #e3e8f3;
  --wash: #f5f7fb;
  --wash-deep: #eef1f9;
  --white: #ffffff;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 19, 43, 0.04), 0 8px 24px rgba(16, 19, 43, 0.06);
  --shadow-lg: 0 2px 4px rgba(16, 19, 43, 0.05), 0 24px 60px rgba(16, 19, 43, 0.14);

  --page: 1140px;

  /* Inter is named in the application's stylesheet but never actually loaded, so the
     product really renders in the system stack below. Matching it here — rather than
     fetching a webfont — keeps the screenshots and the page around them consistent. */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

/* Anchors land under the sticky header otherwise. */
section[id] {
  scroll-margin-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}
h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}
h3 {
  font-size: 1.12rem;
  font-weight: 650;
}

p {
  margin: 0 0 1em;
}

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

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

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

.narrow {
  max-width: 760px;
}

section {
  padding: 88px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.lede {
  font-size: 1.14rem;
  color: var(--muted);
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.16rem;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

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

.site-nav a {
  color: var(--body);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
}

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

/* `.site-nav a` is one specificity point above `.btn-primary`, so without this the
   header's call to action renders dark text on its own dark background. */
.site-nav a.btn-primary {
  color: var(--white);
}

/* The language switcher: a flag, and nothing else.
   The anchor carries the language in `aria-label` and `title`, so the meaning is
   available to a screen reader and on hover without putting a word in the header. */
.site-nav a.lang-link {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 5px;
  line-height: 0;
}

.lang-link .flag {
  /* A fixed height rather than a fixed width: the two flags have different
     proportions (1:2 and 2:3), and matching their heights is what makes them look
     like the same control on either page. */
  height: 15px;
  width: auto;
  display: block;
  border-radius: 2px;
  /* Both flags are half white, and the header is white. Without an edge the
     Indonesian one would appear to be a red bar floating on nothing. */
  box-shadow: 0 0 0 1px var(--line);
}

.site-nav a.lang-link:hover .flag,
.site-nav a.lang-link:focus-visible .flag {
  box-shadow: 0 0 0 1px var(--accent);
}

/* Below the fold on a phone the nav links would wrap onto three lines and push the
   headline off screen; the sections are all reachable by scrolling. */
@media (max-width: 820px) {
  .site-nav a:not(.btn) {
    display: none;
  }
  /* Except the language switcher. Somebody who cannot read the page is precisely the
     visitor who most needs this, and a phone is where most of them arrive — hiding it
     there would leave them with no way out of a language they do not read. */
  .site-nav a.lang-link {
    /* inline-flex, matching the rule above — `inline-block` here would win on
       specificity and drop the flag's vertical centring on exactly the screens
       where the header is tightest. */
    display: inline-flex;
  }
  .site-nav {
    gap: 12px;
  }
}

/* -------------------------------------------------------------------- knop */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  /* The class is worn by <a> and by <button>, and a form control does not inherit the
     page's typeface. Without this the two contact buttons rendered in the browser's own
     UI font beside identical-looking links. */
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 650;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(26, 35, 126, 0.24);
}

.btn-primary:hover {
  background: var(--secondary);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: #c6cde6;
}

.btn-ghost:hover {
  background: var(--wash);
}

.btn-light {
  background: var(--white);
  color: var(--primary);
}

.btn-light:hover {
  transform: translateY(-1px);
}

/* The two contact buttons have nowhere to go yet (see index.html). They keep the shape of
   the call to action so the section still reads as one, and give up the pointer and the
   hover lift, which would otherwise promise something the click does not deliver. */
.btn[aria-disabled="true"] {
  cursor: default;
}

.btn[aria-disabled="true"]:hover {
  transform: none;
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.92rem;
}

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

.hero {
  padding: 76px 0 0;
  background:
    radial-gradient(1100px 460px at 12% -8%, #e8ecfa 0%, rgba(232, 236, 250, 0) 62%),
    linear-gradient(180deg, var(--wash) 0%, var(--white) 78%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

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

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 .hl {
  color: var(--primary);
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--body);
  max-width: 640px;
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 0.92rem;
  color: var(--muted);
}

.hero-shot {
  margin-top: 56px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  border-bottom: 0;
}

/* ------------------------------------------------------------------- pilar */

.pillars {
  padding: 34px 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.pillar-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pillar-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.94rem;
  font-weight: 550;
  color: var(--body);
}

.tick {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e6f0e7;
  color: var(--positive);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

/* -------------------------------------------------------------------- alur */

.flow {
  background: var(--wash);
}

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

.flow-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  position: relative;
}

.flow-step .num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.flow-step p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
}

.flow-note {
  margin-top: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
}

.flow-note p {
  margin: 0;
  font-size: 0.98rem;
}

/* ------------------------------------------------------------------- fitur */

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

.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  background: var(--white);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.feature:hover {
  border-color: #c6cde6;
  box-shadow: var(--shadow);
}

.feature .ic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--wash-deep);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.feature .ic svg {
  width: 21px;
  height: 21px;
}

.feature h3 {
  margin-bottom: 6px;
}

.feature p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------------------------------------------------------------- showcase */

.showcase {
  background: var(--wash);
}

.showcase + .showcase {
  padding-top: 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.split.flip .split-media {
  order: -1;
}

.split-copy h2 {
  margin-bottom: 14px;
}

.split-media img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--white);
}

.split-media.receipt {
  display: flex;
  justify-content: center;
}

.split-media.receipt img {
  max-width: 340px;
}

.ticks {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.ticks li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.98rem;
}

.ticks .tick {
  margin-top: 4px;
}

/* --------------------------------------------------------------- untuk siapa */

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

.audience {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  background: var(--white);
}

.audience h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.audience p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--muted);
}

/* ----------------------------------------------------------------- roadmap */

.roadmap {
  background: var(--wash);
}

/* Four across, on one row — the same shape as the audience grid below it.
   Pinned rather than auto-fit: auto-fit drops to three the moment the container falls
   under about 1060px, which is an ordinary laptop window, and the fourth card then sits
   alone on a row of its own. The breakpoints below take it to two and then to one. */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.roadmap-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.roadmap-item h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.roadmap-item p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--muted);
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fdf0e3;
  color: var(--warning);
  margin-bottom: 10px;
}

/* Half-built is not the same news as not-started, and a reader scanning the tags should
   be able to tell them apart without reading the paragraph. */
.tag-partial {
  background: #e6f0e7;
  color: var(--positive);
}

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

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 44px 22px 0;
  font-weight: 650;
  color: var(--ink);
  font-size: 1.03rem;
  position: relative;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}

.faq[open] summary::after {
  content: "−";
}

.faq-body {
  padding: 0 44px 24px 0;
  font-size: 0.98rem;
  color: var(--muted);
}

.faq-body p:last-child {
  margin-bottom: 0;
}

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

.cta {
  background: linear-gradient(135deg, var(--primary) 0%, #2f3aa0 55%, var(--accent) 100%);
  color: var(--white);
  text-align: center;
}

.cta h2 {
  color: var(--white);
}

.cta p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 28px;
}

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

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

.site-footer {
  background: var(--ink);
  color: #a8adc9;
  padding: 56px 0 32px;
  font-size: 0.93rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 30px;
  height: 30px;
}

.footer-top p {
  margin: 0;
  max-width: 320px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.footer-col a {
  color: #a8adc9;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

/* ------------------------------------------------------------------ layar kecil */

@media (max-width: 980px) {
  .flow-grid,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .audience-grid,
  .roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  /* The picture belongs under its explanation on one column, whichever side it took
     on two — otherwise every other block opens with an unexplained screenshot. */
  .split.flip .split-media {
    order: 0;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  section {
    padding: 60px 0;
  }
  .hero {
    padding-top: 52px;
  }
  .hero-shot {
    margin-top: 40px;
  }
  .flow-grid,
  .feature-grid,
  .audience-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-cta .btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
