/* KasTara landing — design tokens & layout.
   Dial: variance 6 / motion 3 / density 4. Satu elemen berani: mockup dashboard hero. */
:root {
  --teal: #00b583;
  --teal-deep: #00906a;
  --teal-ink: #00755a;
  --teal-soft: #e2f7ee;
  --teal-faint: #f0fbf6;
  --navy: #001e3a;
  --navy-2: #0b2c50;
  --ink: #12293f;
  --muted: #54687e;
  --faint: #8494a7;
  --bg: #f7f8fa;
  --card: #ffffff;
  --line: #e3e9f1;
  --amber: #e8a13c;
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 30, 58, 0.22);
  --shadow-s: 0 10px 30px -12px rgba(0, 30, 58, 0.16);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 72px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-ink); }
::selection { background: var(--teal-soft); }

.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }
section { padding: 96px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal-ink); background: var(--teal-soft);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
h1, h2, h3 { color: var(--navy); line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 16px; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 700; font-size: 16px;
  padding: 14px 28px; border-radius: 14px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--teal); color: var(--navy); box-shadow: 0 12px 28px -12px rgba(0, 181, 131, 0.65); }
.btn-primary:hover { background: #0cc490; }
.btn-ghost { background: var(--card); color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-outline-light:hover { border-color: #fff; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 38px; width: auto; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 10px 14px; border-radius: 10px;
}
.nav-links a:hover { background: var(--bg); color: var(--navy); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .btn { padding: 10px 20px; font-size: 15px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle svg { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; padding: 72px 0 96px; background: #fff; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(640px 420px at 82% 30%, rgba(0, 181, 131, 0.14), transparent 65%),
    radial-gradient(480px 360px at 8% 85%, rgba(0, 30, 58, 0.05), transparent 60%);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center;
}
.hero h1 { font-size: clamp(36px, 5.2vw, 58px); font-weight: 800; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 12px;
  background: rgba(0, 181, 131, 0.28); border-radius: 6px; z-index: -1;
}
.hero .lead { margin: 0 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--muted); font-weight: 600; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { flex: none; }

/* Dashboard mockup — the one bold element */
.hero-visual { position: relative; }
.dash {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); overflow: hidden;
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
  transition: transform 0.5s ease;
}
.hero-visual:hover .dash { transform: perspective(1400px) rotateY(-2deg) rotateX(0deg); }
.dash-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fbfcfd; }
.dash-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.dash-url {
  margin-left: 8px; flex: 1; font-size: 12px; color: var(--faint);
  background: var(--bg); border-radius: 8px; padding: 5px 12px; font-weight: 600;
}
.dash-body { padding: 18px; display: grid; gap: 14px; }
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { background: var(--bg); border-radius: var(--radius-s); padding: 12px 14px; }
.kpi .k-label { font-size: 11px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }
.kpi .k-value { font-size: 19px; font-weight: 800; color: var(--navy); margin-top: 2px; }
.kpi .k-delta { font-size: 12px; font-weight: 700; color: var(--teal-ink); }
.chart-card { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 14px 6px; }
.chart-card .c-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.chart-card .c-title { font-size: 13px; font-weight: 700; color: var(--navy); }
.chart-card .c-badge { font-size: 11px; font-weight: 700; color: var(--teal-ink); background: var(--teal-soft); padding: 3px 10px; border-radius: 999px; }
.dash-mini { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.mini { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; }
.mini .m-title { font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.pay-row { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.pay-row .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.pay-row b { margin-left: auto; color: var(--navy); }
.top-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.top-row .bar { grid-column: 1 / -1; height: 6px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.top-row .bar i { display: block; height: 100%; background: var(--teal); border-radius: 4px; }
.top-row b { color: var(--navy); }

.float-card {
  position: absolute; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-s); padding: 12px 16px;
  display: flex; gap: 12px; align-items: center; font-size: 13px;
}
.float-card .fc-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float-card b { display: block; color: var(--navy); font-size: 13px; }
.float-card span { color: var(--muted); font-size: 12px; }
.fc-struk { left: -36px; bottom: 44px; animation: float 6s ease-in-out infinite; }
.fc-struk .fc-icon { background: var(--navy); }
.fc-wa { right: -24px; top: 36px; animation: float 7s ease-in-out 1s infinite; }
.fc-wa .fc-icon { background: #25d366; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ---------- Feature rows (alternating) ---------- */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 40px 0; }
.feat:nth-child(even) .feat-text { order: 2; }
.feat-text h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.feat-text p { color: var(--muted); margin: 0 0 20px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; font-size: 15px; color: var(--ink); }
.checks svg { flex: none; margin-top: 2px; }
.feat-visual { display: grid; place-items: center; }
.mock {
  width: min(380px, 100%); background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-s); padding: 20px;
}
.mock .mock-title { font-size: 13px; font-weight: 800; color: var(--navy); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.tag-diff {
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy); background: #ffe9a8; padding: 4px 10px; border-radius: 999px;
}
/* kasir mock */
.pos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.pos-item { background: var(--bg); border-radius: 10px; padding: 10px 6px; text-align: center; font-size: 12px; font-weight: 700; color: var(--navy); }
.pos-item small { display: block; color: var(--teal-ink); font-size: 11px; margin-top: 2px; }
.pos-total { display: flex; justify-content: space-between; align-items: center; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.pos-pay { width: 100%; background: var(--teal); color: var(--navy); font-weight: 800; border: 0; border-radius: 10px; padding: 12px; font-family: var(--font); font-size: 15px; }
/* inventory mock */
.inv-row { margin-bottom: 12px; font-size: 13px; }
.inv-row .inv-head { display: flex; justify-content: space-between; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.inv-row .inv-head .low { color: #b97a1a; }
.inv-bar { height: 8px; background: var(--bg); border-radius: 5px; overflow: hidden; }
.inv-bar i { display: block; height: 100%; border-radius: 5px; background: var(--teal); }
.inv-bar i.low { background: var(--amber); }
/* store mock */
.store-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.store-head .avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--teal-soft); display: grid; place-items: center; font-weight: 800; color: var(--teal-ink); }
.store-head b { color: var(--navy); font-size: 14px; display: block; }
.store-head span { font-size: 12px; color: var(--faint); }
.store-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.store-item b { color: var(--navy); }
.wa-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #25d366; color: #08351f; font-weight: 800; font-size: 14px;
  border-radius: 10px; padding: 12px; margin-top: 12px; text-decoration: none; font-family: var(--font);
}

/* ---------- Cards: kenapa & untuk siapa ---------- */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-s); }
.card .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--teal-soft); display: grid; place-items: center; margin-bottom: 20px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.card ul li { display: flex; gap: 8px; align-items: flex-start; }
.card ul svg { flex: none; margin-top: 3px; }

/* ---------- Pricing ---------- */
.pricing { background: #fff; border-block: 1px solid var(--line); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; align-items: stretch; }
.price-card {
  position: relative; background: var(--card); border: 1.5px solid var(--line);
  border-radius: 22px; padding: 36px 32px; display: flex; flex-direction: column;
}
.price-card.popular { border-color: var(--teal); box-shadow: var(--shadow); transform: scale(1.03); }
.price-card .p-name { font-size: 15px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.price-card .p-price { font-size: 40px; font-weight: 800; color: var(--navy); margin: 12px 0 4px; }
.price-card .p-price small { font-size: 15px; font-weight: 600; color: var(--faint); }
.price-card .p-desc { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.price-card ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; font-size: 15px; }
.price-card ul li { display: flex; gap: 10px; align-items: flex-start; }
.price-card ul svg { flex: none; margin-top: 3px; }
.price-card .btn { margin-top: auto; width: 100%; }
.flag {
  position: absolute; top: -14px; left: 50%; translate: -50% 0;
  background: var(--teal); color: var(--navy); font-size: 12px; font-weight: 800;
  letter-spacing: 0.08em; padding: 6px 16px; border-radius: 999px; white-space: nowrap;
}
.compare { margin-top: 64px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.compare table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.compare th, .compare td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--bg); font-size: 14px; color: var(--navy); }
.compare thead th:not(:first-child), .compare td:not(:first-child) { text-align: center; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:first-child { font-weight: 600; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 40px auto 0; display: grid; gap: 12px; }
.faq-list details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 4px 22px; }
.faq-list summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 16px; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .plus { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--teal-soft); display: grid; place-items: center; transition: transform 0.2s ease; font-size: 18px; color: var(--teal-ink); font-weight: 800; }
.faq-list details[open] summary .plus { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 20px; color: var(--muted); }

/* ---------- Doubt / final CTA ---------- */
.doubt { background: var(--navy); color: #dbe6f2; border-radius: 28px; padding: 64px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.doubt h2 { color: #fff; }
.doubt p { color: #a9bcd4; }
.doubt ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.doubt ul li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.doubt ul svg { flex: none; margin-top: 2px; }
.doubt .btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.final { text-align: center; }
.final .panel {
  background: linear-gradient(135deg, var(--teal) 0%, #0bc98e 60%, #12d69a 100%);
  border-radius: 28px; padding: 80px 32px; color: var(--navy); box-shadow: var(--shadow);
}
.final h2 { color: var(--navy); }
.final p { color: #06382a; font-weight: 600; max-width: 520px; margin: 0 auto 32px; }
.final .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: #a9bcd4; padding: 64px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.foot-grid img { height: 40px; width: auto; margin-bottom: 16px; }
.foot-grid p { font-size: 14px; max-width: 320px; }
.foot-grid h4 { color: #fff; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 16px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.foot-grid a { color: #a9bcd4; text-decoration: none; }
.foot-grid a:hover { color: #fff; }
.foot-base { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; translate: 0 26px; transition: opacity 0.7s ease, translate 0.7s ease; }
.reveal.in { opacity: 1; translate: 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 48px 0 72px; }
  .dash { transform: none; }
  .fc-struk { left: 8px; }
  .fc-wa { right: 8px; }
  .feat { grid-template-columns: 1fr; gap: 32px; }
  .feat:nth-child(even) .feat-text { order: 0; }
  .cards3 { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .price-card.popular { transform: none; }
  .doubt { grid-template-columns: 1fr; padding: 40px 28px; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  section { padding: 64px 0; }
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px; gap: 2px;
  }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .kpi:last-child { grid-column: 1 / -1; }
  .dash-mini { grid-template-columns: 1fr; }
  .float-card { position: static; margin-top: 12px; animation: none; }
  .hero-visual .float-wrap { display: grid; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; translate: none; }
}
