/* ============================================================
   QR Menu - Landing Page
   Design tokens, light + dark theme, sections.
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/outfit-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/outfit-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/outfit-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/outfit-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/outfit-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --text: #18181b;
  --text-soft: #3f3f46;
  --muted: #6b7280;
  --line: #e4e4e7;
  --accent: #059669;
  --accent-strong: #047857;
  --accent-soft: #d1fae5;
  --accent-ink: #ffffff;
  --shadow: 0 1px 2px rgba(24,24,27,.05), 0 8px 24px -8px rgba(24,24,27,.12);
  --radius-card: 16px;
  --radius-input: 12px;
  --radius-pill: 999px;
}

[data-theme="dark"] {
  --bg: #09090b;
  --surface: #17171a;
  --surface-2: #1f1f23;
  --text: #fafafa;
  --text-soft: #d4d4d8;
  --muted: #a1a1aa;
  --line: #2a2a2e;
  --accent: #10b981;
  --accent-strong: #34d399;
  --accent-soft: rgba(16,185,129,.16);
  --accent-ink: #06281d;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 12px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .18s cubic-bezier(.16,1,.3,1), box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.98); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 20px -8px rgba(5,150,105,.55);
}
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(5,150,105,.6); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--muted); background: var(--surface); }

.btn-light {
  background: #ffffff;
  color: #064e3b;
}
.btn-light:hover { background: #ecfdf5; transform: translateY(-1px); }

.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 34px; font-size: 17px; }

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.site-nav.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); }

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

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
}

.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color .15s ease; }
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}
.theme-toggle:hover { border-color: var(--muted); }
.theme-toggle:active { transform: scale(.94); }

[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(52% 60% at 88% 4%, var(--accent-soft), transparent 70%),
    var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -160px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 56px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 96px;
}

.hero-copy { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5vw, 3.55rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  font-weight: 700;
  max-width: 13ch;
}
.hero-title em { font-style: italic; font-weight: 700; color: var(--accent); }

.hero-sub {
  margin: 0 0 30px;
  font-size: 18px;
  color: var(--muted);
  max-width: 46ch;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }

.hero-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hero-meta li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-soft);
  font-weight: 500;
}
.hero-meta li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ---------- Phone mockup ---------- */
.hero-visual { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }

.phone {
  width: 300px;
  height: 600px;
  border-radius: 42px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 10px var(--surface), 0 0 0 11px var(--line), 0 30px 60px -20px rgba(9,9,11,.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.phone-top { background: var(--accent); color: #fff; padding: 14px 14px 12px; flex: none; }
[data-theme="dark"] .phone-top { color: #f0fdf4; }

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 22px;
  background: var(--surface);
  border-radius: 12px;
  z-index: 2;
}

.phone-header { display: flex; align-items: flex-start; justify-content: space-between; padding-top: 6px; }
.phone-store { margin: 0; font-weight: 700; font-size: 15px; }
.phone-table { margin: 2px 0 0; font-size: 12px; opacity: .82; }

.phone-cart {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 0;
  background: rgba(255,255,255,.18);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.phone-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  background: #ef4444;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.phone-cart-count.is-hidden { display: none; }

.phone-cats { display: flex; gap: 6px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.phone-cats::-webkit-scrollbar { display: none; }

.cat-chip {
  flex: none;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,.16);
  color: rgba(255,255,255,.9);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.cat-chip.is-active { background: #fff; color: var(--accent-strong); }

.phone-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: var(--bg);
  scrollbar-width: thin;
}

.phone-cat-title { margin: 10px 2px 8px; font-size: 12.5px; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: .06em; }

.phone-item {
  display: flex;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 8px;
}
.phone-item-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--surface-2);
  flex: none;
  overflow: hidden;
}
.phone-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.phone-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.phone-item-name { font-size: 13.5px; font-weight: 600; margin: 0; }
.phone-item-desc { font-size: 11.5px; color: var(--muted); margin: 2px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-item-price { margin-top: auto; font-family: "JetBrains Mono", monospace; font-size: 12.5px; font-weight: 500; color: var(--accent); }
.phone-item-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.phone-item-actions { display: flex; align-items: center; gap: 6px; }
.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .12s ease;
}
.qty-btn:active { transform: scale(.9); }
.qty-minus { background: var(--surface-2); color: var(--text); }
.qty-plus { background: var(--accent); color: #fff; }
.qty-val { min-width: 18px; text-align: center; font-size: 13px; font-weight: 600; font-family: "JetBrains Mono", monospace; }

.phone-cartbar {
  flex: none;
  padding: 10px 12px 14px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.phone-cartbar.is-hidden { display: none; }
.phone-cartbtn {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}
.phone-total { font-family: "JetBrains Mono", monospace; font-weight: 500; }

.hero-note { margin-top: 26px; text-align: center; }
.hero-note p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Sections common ---------- */
section { scroll-margin-top: 72px; }

.section-title {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 700;
  max-width: 24ch;
}

.section-lead {
  margin: 0 0 48px;
  font-size: 17px;
  color: var(--muted);
  max-width: 56ch;
}

.eyebrow {
  margin: 0 0 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Flow (cara kerja) ---------- */
.flow { padding: 104px 0 40px; }

.flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}
.flow-steps::before {
  content: "";
  position: absolute;
  top: 60px;
  left: 16%;
  right: 16%;
  border-top: 1.5px dashed var(--line);
}

.flow-step { position: relative; }

.flow-num {
  position: absolute;
  top: -6px;
  right: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}

.flow-qr, .flow-visual {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 22px;
  box-shadow: var(--shadow);
}
.flow-qr img { width: 92px; height: 92px; border-radius: 8px; }
.flow-visual { color: var(--accent); }

.flow-step h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.01em; }
.flow-step p { margin: 0; font-size: 15px; color: var(--muted); max-width: 34ch; }

/* ---------- Features bento ---------- */
.features { padding: 104px 0; }

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

.bento-cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s ease;
}
.bento-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.bento-wide { grid-column: span 2; padding: 0; }
.bento-tall { grid-row: span 2; padding: 0; }

.bento-img {
  height: 168px;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.bento-wide .bento-img { height: 190px; }
.bento-img-cover { height: 100%; }

.bento-body { padding: 4px 24px 24px; }
.bento-wide .bento-body, .bento-tall .bento-body { position: relative; }
.bento-tall .bento-img { border-radius: var(--radius-card) var(--radius-card) 0 0; }

.bento-accent {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bento-cell h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.01em; }
.bento-cell p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ---------- Owner ---------- */
.owner { padding: 40px 0 104px; }

.owner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.owner-visual { position: relative; }
.owner-visual img {
  width: 100%;
  aspect-ratio: 9/10;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.owner-chip {
  position: absolute;
  right: -14px;
  bottom: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 36px -12px rgba(5,150,105,.6);
}
.owner-chip-price { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.owner-chip-label { font-size: 12.5px; opacity: .85; }

.owner-copy .section-title { max-width: 20ch; }

.owner-list { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 20px; }
.owner-list li { display: flex; gap: 14px; align-items: flex-start; }
.owner-list li > svg { color: var(--accent); flex: none; margin-top: 3px; }
.owner-list strong { display: block; font-size: 16px; }
.owner-list span { font-size: 14.5px; color: var(--muted); }

.owner-pay { margin: 0 0 28px; }
.owner-pay p { margin: 0 0 10px; font-size: 14px; color: var(--muted); }

.pay-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-badge {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}

/* ---------- Offer ---------- */
.offer { padding: 0 0 104px; }

.offer-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #fff;
  padding: 56px 60px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
}
[data-theme="dark"] .offer-card { background: linear-gradient(120deg, #065f46, #047857); }

.offer-copy .section-title { margin-bottom: 14px; color: #fff; max-width: 20ch; }
.offer-copy p { margin: 0 0 26px; font-size: 16px; color: rgba(255,255,255,.88); max-width: 50ch; }

.offer-art { color: rgba(255,255,255,.5); flex: none; display: flex; }

/* ---------- FAQ ---------- */
.faq { padding: 0 0 104px; }

.faq-list { margin-top: 36px; border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  font-size: 24px;
  font-weight: 400;
  color: var(--muted);
  transition: transform .2s ease;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  margin: 0;
  padding: 0 40px 24px 0;
  font-size: 15.5px;
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- CTA band ---------- */
.cta-band {
  padding: 24px 0 112px;
  text-align: center;
}
.cta-title {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -.025em;
  font-weight: 700;
}
.cta-sub { margin: 0 0 30px; font-size: 17px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  background: var(--surface);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand p { margin: 16px 0 0; font-size: 14.5px; color: var(--muted); max-width: 30ch; }

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-head { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--text); }
.footer-col a { font-size: 14.5px; color: var(--muted); transition: color .15s ease; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 72px; padding-bottom: 72px; gap: 44px; }
  .hero-title { max-width: 16ch; }
  .hero-visual { order: -1; }
  .flow-steps { grid-template-columns: 1fr; gap: 40px; }
  .flow-steps::before { display: none; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .bento-wide { grid-column: span 2; }
  .bento-tall { grid-row: auto; }
  .bento-img, .bento-wide .bento-img { height: 200px; }
  .owner-grid { grid-template-columns: 1fr; gap: 48px; }
  .offer-card { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .bento { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }
  .hero { padding-top: 12px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .phone { width: 280px; height: 560px; }
  .container { padding: 0 18px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
