/* Justipers landing page
   Colors come from the app's Figma palette (orange 50–700, neutral 50–900).
   Fonts match the app: Poppins for display/marketing, Inter for UI text. */

:root {
  --orange-50: #fff0e5;
  --orange-100: #ffe1cb;
  --orange-200: #ffc294;
  --orange-400: #ff770f;
  --orange-500: #e36200;
  --orange-600: #a74800;
  --orange-700: #6f3000;
  --neutral-50: #fafafa;
  --neutral-300: #e5e7eb;
  --neutral-600: #6b7280;
  --neutral-700: #4b5563;
  --neutral-800: #2d3748;
  --neutral-900: #1f2937;

  --bg: #ffffff;
  --surface: #f7f7f8;
  --line: var(--neutral-300);
  --ink: var(--neutral-800);
  --ink-soft: var(--neutral-700);
  --good: #1f8a4c;
  --good-bg: #e3f5ea;
  --warn: #b45309;
  --warn-bg: #fff1dc;
  --bad: #c2410c;
  --bad-bg: #ffe4d6;
  --shadow: 0 10px 30px rgba(45, 55, 72, 0.12);
  --display: "Poppins", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-arch: 110px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; color: var(--neutral-900); }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--ink-soft); }
.small { font-size: 13px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange-500); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-500); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; transition: transform .15s ease, background-color .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--orange-500); color: var(--neutral-50); }
.btn-primary:hover { background: var(--orange-600); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--bg); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--neutral-50); color: var(--orange-500); }
.btn-ghost-light { border-color: rgba(255,255,255,.7); color: var(--neutral-50); }
.btn-ghost-light:hover { border-color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand img { width: 120px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link { font-size: 14px; font-weight: 500; text-decoration: none; padding: 8px 10px; border-radius: 8px; color: var(--ink-soft); }
.nav-link:hover { color: var(--ink); background: var(--surface); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--bg); cursor: pointer; font: 600 12px var(--body); color: var(--ink-soft); }
.lang span { padding: 4px 9px; border-radius: 999px; }
html[lang="id"] .lang [data-lang-opt="id"], html[lang="en"] .lang [data-lang-opt="en"] { background: var(--orange-500); color: #fff; }
@media (max-width: 900px) { .hide-md { display: none; } }
@media (max-width: 520px) { .hide-sm { display: none; } .brand img { width: 104px; } }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding-block: 40px 72px; }
.hero > * { min-width: 0; }
.hero h1 { margin-top: 14px; font-size: clamp(40px, 6.2vw, 68px); font-weight: 800; font-style: italic; letter-spacing: -0.01em; text-transform: uppercase; }
.hero h1 .accent { color: var(--orange-500); }
.lede { margin-top: 20px; font-size: 18px; color: var(--ink-soft); max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.note { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }
.hero-art { position: relative; }
.arch { position: relative; border-radius: var(--radius-arch) var(--radius-arch) 24px 24px; background: var(--orange-500); aspect-ratio: 4 / 5; overflow: hidden; }
.arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 18%; }
.chip { position: absolute; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; font-size: 13px; line-height: 1.4; }
.chip strong { font-family: var(--display); font-size: 15px; color: var(--neutral-900); }
.chip .muted { font-size: 12px; }
.chip-order { left: -28px; bottom: 34%; min-width: 220px; }
.chip-new { right: -20px; top: 10%; min-width: 240px; }
.chip-new .row .muted { font-size: 11px; }
.chip-profit { right: -16px; bottom: 8%; }
.chip-profit strong { color: var(--orange-500); font-size: 22px; display: block; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; gap: 36px; }
  .hero-art { max-width: 420px; width: 100%; margin: 0 auto; }
  .chip-order { left: -8px; }
  .chip-profit { right: -8px; }
  .chip-new { right: -8px; min-width: 0; }
}

/* Tags */
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; line-height: 1.6; }
.tag-good { color: var(--good); background: var(--good-bg); }
.tag-warn { color: var(--warn); background: var(--warn-bg); }
.tag-bad { color: var(--bad); background: var(--bad-bg); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Strip */
.strip { background: var(--orange-500); color: var(--neutral-50); }
.strip-list { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 22px; }
.strip-list li { display: grid; gap: 2px; text-align: center; justify-items: center; }
.strip-list b { font-family: var(--display); font-size: 17px; }
.strip-list span { font-size: 14px; opacity: .88; }
@media (max-width: 760px) { .strip-list { grid-template-columns: repeat(2, 1fr); row-gap: 18px; } }

/* Sections */
section { padding-block: 80px; }
.hero-section, .strip { padding-block: 0; }
section.alt { background: var(--orange-50); }
.section-head { max-width: 680px; display: grid; gap: 10px; margin: 0 auto 44px; text-align: center; justify-items: center; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 700; letter-spacing: -0.025em; }
.section-head p { color: var(--ink-soft); font-size: 17px; }
@media (max-width: 560px) { section { padding-block: 56px; } }

/* Flow */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.flow li { counter-increment: step; background: var(--surface); border-radius: 18px; padding: 22px; display: grid; gap: 8px; align-content: start; }
.flow li::before { content: counter(step); font-family: var(--display); font-weight: 700; font-size: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-500); color: #fff; }
.flow h3 { font-size: 18px; font-weight: 700; }
.flow p { color: var(--ink-soft); font-size: 15px; }
@media (max-width: 860px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

/* Paste demo */

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 36px; }
.feature { display: grid; gap: 8px; align-content: start; padding-top: 20px; border-top: 2px solid var(--orange-200); }
.feature h3 { font-size: 19px; font-weight: 700; }
.feature p { color: var(--ink-soft); font-size: 15px; }
.eg { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Pricing */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.price-grid > * { min-width: 0; }
.price-uses, .bundles { background: var(--bg); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.free { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.free strong { display: block; font-family: var(--display); font-size: 22px; color: var(--orange-500); }
.free span { color: var(--ink-soft); font-size: 14px; }
.uses { list-style: none; margin: 0; padding: 0; }
.uses li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.uses li:last-child { border-bottom: 0; padding-bottom: 0; }
.uses b { font-weight: 600; text-align: right; }
.bundles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bundle { position: relative; border: 1.5px solid var(--line); border-radius: 14px; padding: 18px 16px; display: grid; gap: 2px; }
.bundle .qty { font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.bundle .amt { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--neutral-900); font-variant-numeric: tabular-nums; }
.bundle .per { font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; margin-top: 2px; }
.bundle.best { border-color: var(--orange-500); background: var(--orange-50); }
.badge { position: absolute; top: -11px; right: 12px; background: var(--orange-500); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.fine { grid-column: 1 / -1; font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
@media (max-width: 820px) { .price-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; background: var(--bg); }
.faq details[open] { border-color: var(--orange-200); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 22px; line-height: 1; color: var(--orange-500); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--ink-soft); }

/* Closing */
.closing { padding-top: 0; }
.closing-card { background: linear-gradient(160deg, var(--orange-500), var(--orange-600)); color: var(--neutral-50); border-radius: var(--radius-arch) var(--radius-arch) 28px 28px; padding: 64px 28px 56px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.closing-card h2 { color: #fff; font-size: clamp(28px, 4.4vw, 44px); font-style: italic; font-weight: 800; text-transform: uppercase; max-width: 16em; }
.closing-card p { max-width: 32em; opacity: .92; }
.closing-card .ctas { justify-content: center; margin-top: 10px; }
@media (max-width: 560px) { .closing-card { border-radius: 64px 64px 24px 24px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer { display: grid; gap: 8px; padding-block: 36px; justify-items: start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; font-weight: 500; }
.footer-links a { text-decoration: none; color: var(--orange-600); }
.footer-links a:hover { text-decoration: underline; }


/* ===================== Glass cards (hero) ===================== */
.chip.glass {
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 14px 36px rgba(45, 55, 72, .16);
}

/* ===================== Connector between sections ===================== */
section:has(> .wrap > .connector) { padding-top: 36px; }
.connector { position: relative; width: 9px; height: 60px; margin: 0 auto 28px; }
.connector::before { content: ""; position: absolute; left: 4px; top: 4px; bottom: 4px; width: 1px; background: var(--orange-200); transform-origin: top; }
.connector i { position: absolute; left: 2px; top: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--orange-500); }
.connector i:last-child { transform: translateY(55px); }

/* ===================== Comparison table ===================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 4px 2px 8px; }
.compare { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; font-size: 14px; line-height: 1.45; }
.compare th, .compare td { padding: 15px 18px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--neutral-900); border-bottom: 0; padding-bottom: 16px; }
.compare thead th.us { background: var(--orange-500); border-radius: 22px 22px 0 0; padding: 22px 18px 16px; }
.compare thead th.us img { width: 104px; height: auto; }
.compare tbody th { width: 22%; font-weight: 600; color: var(--neutral-900); background: var(--orange-50); border-left: 1px solid var(--line); }
.compare tbody td { color: var(--ink-soft); background: var(--surface); }
.compare tbody td:last-child { border-right: 1px solid var(--line); }
.compare tbody td.us { background: var(--orange-500); color: #fff; font-weight: 500; border-bottom-color: rgba(255, 255, 255, .2); }
.compare tbody tr:first-child th, .compare tbody tr:first-child td:not(.us) { border-top: 1px solid var(--line); }
.compare tbody tr:first-child th { border-top-left-radius: 16px; }
.compare tbody tr:first-child td:last-child { border-top-right-radius: 16px; }
.compare tbody tr:last-child th { border-bottom-left-radius: 16px; }
.compare tbody tr:last-child td:last-child { border-bottom-right-radius: 16px; }
.compare tbody tr:last-child td.us { border-radius: 0 0 22px 22px; }

/* ===================== Typewriter caret ===================== */
.caret { color: var(--orange-500); font-weight: 700; margin-left: 1px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ===================== Intro (orange split wipe) ===================== */
#intro { display: none; }
html.intro #intro { display: block; position: fixed; inset: 0; z-index: 200; pointer-events: none; }
html.intro body { overflow: hidden; }
.intro-half { position: absolute; top: 0; bottom: 0; width: 50.5%; background: var(--orange-500); transition: transform .85s cubic-bezier(.7, 0, .2, 1); }
.intro-l { left: 0; box-shadow: inset -1px 0 0 rgba(255, 255, 255, .45); }
.intro-r { right: 0; }
.intro-logo { position: absolute; left: 50%; top: 50%; width: min(200px, 50vw); height: auto; animation: introLogoIn .6s cubic-bezier(.2, .8, .2, 1) both; }
html.intro-open .intro-l { transform: translateX(-101%); }
html.intro-open .intro-r { transform: translateX(101%); }
html.intro-open .intro-logo { animation: introLogoOut .35s ease forwards; }
@keyframes introLogoIn { from { opacity: 0; filter: blur(8px); transform: translate(-50%, -38%) scale(.94); } to { opacity: 1; filter: blur(0); transform: translate(-50%, -50%); } }
@keyframes introLogoOut { from { opacity: 1; transform: translate(-50%, -50%); } to { opacity: 0; transform: translate(-50%, -50%) scale(1.08); } }

/* ===================== Motion states (only with html.motion) ===================== */
.motion [data-split] .w { display: inline-block; }
.motion [data-split="chars"] .word { display: inline-block; white-space: nowrap; }

/* Hero H1: word-by-word blur rise */
.motion .hero h1 .w {
  opacity: 0; filter: blur(8px); transform: translateY(16px);
  transition: opacity .7s ease, filter .8s ease, transform 1.2s cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(var(--i) * 60ms + 150ms);
}
.hero-in .hero h1 .w { opacity: 1; filter: blur(0); transform: none; }

/* Hero supporting elements */
.motion .hero-copy .eyebrow, .motion .hero-copy .lede, .motion .hero-copy .ctas, .motion .hero-copy .note {
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s ease, transform 1s cubic-bezier(.16, 1, .3, 1);
}
.motion .hero-copy .lede { transition-delay: .55s; }
.motion .hero-copy .ctas { transition-delay: .7s; }
.motion .hero-copy .note { transition-delay: .85s; }
.hero-in .hero-copy .eyebrow, .hero-in .hero-copy .lede, .hero-in .hero-copy .ctas, .hero-in .hero-copy .note { opacity: 1; transform: none; }

.motion .arch { opacity: 0; transition: opacity 1s ease .1s; }
.motion .arch img { transform: scale(1.14); transition: transform 1.8s cubic-bezier(.16, 1, .3, 1) .1s; }
.hero-in .arch { opacity: 1; }
.hero-in .arch img { transform: none; }

.motion .chip { opacity: 0; transform: translateY(36px) scale(.96); transition: opacity .6s ease, transform .9s cubic-bezier(.2, 1.25, .35, 1); }
.motion .chip-new { transition-delay: .9s; }
.motion .chip-order { transition-delay: 1.15s; }
.motion .chip-profit { transition-delay: 1.4s; }
.hero-in .chip { opacity: 1; transform: none; }

/* Section H2: letter-by-letter orange ink sweep */
.motion [data-split="chars"] .ch { color: var(--neutral-300); }
.motion [data-split="chars"].in .ch { animation: ink .75s cubic-bezier(.3, .6, .3, 1) both; animation-delay: calc(var(--i) * 28ms); }
.motion [data-split="chars"].instant .ch { animation: none; color: inherit; }
@keyframes ink {
  0%   { color: var(--neutral-300); }
  18%  { color: var(--orange-500); }
  45%  { color: var(--orange-500); }
  100% { color: var(--neutral-900); }
}

/* Closing H2: word blur rise on scroll */
.motion [data-split="words-view"] .w {
  opacity: 0; filter: blur(8px); transform: translateY(16px);
  transition: opacity .7s ease, filter .8s ease, transform 1.2s cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(var(--i) * 70ms + 200ms);
}
.motion [data-split="words-view"].in .w { opacity: 1; filter: blur(0); transform: none; }
.motion .instant .w { transition: none; }

/* Scroll reveal: from dim to full */
.motion [data-reveal] {
  opacity: .12; transform: translateY(28px);
  transition: opacity .8s ease, transform 1s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--d, 0ms);
}
.motion [data-reveal].in { opacity: 1; transform: none; }

/* Connector draws on scroll */
.motion .connector::before { transform: scaleY(0); transition: transform 1s cubic-bezier(.65, 0, .35, 1); }
.motion .connector i:last-child { transform: translateY(0); transition: transform 1s cubic-bezier(.65, 0, .35, 1); }
.motion .connector.in::before { transform: scaleY(1); }
.motion .connector.in i:last-child { transform: translateY(55px); }

/* Paste demo: form fills field by field after the chat is typed */
@keyframes fieldFlash { 0% { border-color: var(--orange-400); background: var(--orange-50); } 100% { border-color: var(--line); background: var(--surface); } }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

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

/* ===================== Order form link section (dark) ===================== */
section.dark { position: relative; background: #17120e; color: #e9e2dc; overflow: hidden; }
section.dark::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 45% at 50% 0%, rgba(227, 98, 0, .30), transparent 70%); pointer-events: none; }
section.dark > .wrap { position: relative; }
.dark .eyebrow { color: var(--orange-400); }
.dark .section-head h2 { color: #fff; }
.dark .section-head p { color: #b8aca1; }
.dark .connector::before { background: rgba(255, 194, 148, .45); }
.motion .dark [data-split="chars"] .ch { color: rgba(255, 255, 255, .16); }
.motion .dark [data-split="chars"].in .ch { animation-name: inkLight; }
@keyframes inkLight { 0% { color: rgba(255, 255, 255, .16); } 18%, 45% { color: var(--orange-400); } 100% { color: #fff; } }

.of-stage { display: grid; grid-template-columns: 1fr auto 1.05fr auto 1fr; gap: 18px; align-items: start; }
.of-stage > * { min-width: 0; }
.of-col { display: grid; gap: 22px; justify-items: center; }
.of-arrow { align-self: center; margin-top: -90px; font-family: var(--display); font-weight: 700; font-size: 30px; color: var(--orange-400); }

/* step captions */
.of-step { display: flex; gap: 12px; align-items: flex-start; max-width: 300px; transition: opacity .5s ease; }
.of-num { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 14px var(--display); background: var(--orange-500); color: #fff; transition: background .4s, color .4s; }
.of-step h3 { color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.of-step p { color: #b8aca1; font-size: 14px; line-height: 1.55; }

/* shared card */
.of-card { width: 100%; max-width: 320px; background: #fff; color: var(--ink); border-radius: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); overflow: hidden; }

/* 1. WhatsApp group */
.of-wa-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #075e54; color: #fff; }
.of-wa-head small { display: block; font-size: 11px; opacity: .8; }
.of-wa-head b { font-size: 14px; }
.of-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-500); font: 700 15px var(--display); }
.of-wa-body { background: #efe7de; padding: 18px 14px 22px; min-height: 250px; }
.of-bubble { position: relative; background: #dcf8c6; border-radius: 12px 12px 4px 12px; padding: 10px 12px 22px; margin-left: 18px; font-size: 13px; line-height: 1.5; color: #1f2a1a; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.of-link { display: inline-block; margin-top: 4px; color: #0b6ec2; text-decoration: underline; word-break: break-all; border-radius: 4px; transition: background .2s; }
.of-preview { display: flex; gap: 10px; align-items: center; margin-top: 8px; padding: 8px; background: rgba(255, 255, 255, .7); border-radius: 8px; }
.of-preview img { width: 56px; height: auto; }
.of-preview b { display: block; font-size: 12px; }
.of-preview small { font-size: 11px; color: var(--ink-soft); }
.of-time { position: absolute; right: 10px; bottom: 5px; font-size: 10px; color: #6b7a63; }

/* 2. phone with the customer form */
.of-phone { width: 270px; max-width: 100%; padding: 8px; background: #0b0b0b; border-radius: 38px; box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .6s cubic-bezier(.16, 1, .3, 1), opacity .5s; }
.of-screen { position: relative; background: #fff; border-radius: 30px; overflow: hidden; color: var(--ink); }
.of-top { background: var(--orange-500); color: #fff; padding: 22px 18px 16px; display: grid; gap: 1px; }
.of-top small { font-size: 11px; opacity: .85; text-transform: uppercase; letter-spacing: .06em; }
.of-top b { font: 700 18px var(--display); }
.of-top span { font-size: 11px; opacity: .9; }
.of-form { padding: 14px 16px 18px; display: grid; gap: 9px; }
.of-hint { font-size: 12px; color: var(--ink-soft); }
.of-f { display: grid; gap: 3px; }
.of-f > span { font-size: 10.5px; font-weight: 600; color: var(--ink-soft); }
.of-f i, .of-item i { font-style: normal; display: block; min-height: 30px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font-size: 12px; background: var(--surface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: border-color .2s, background .2s; }
.of-f i.typing, .of-item i.typing { border-color: var(--orange-400); background: #fff; box-shadow: 0 0 0 3px var(--orange-50); }
.of-f i.typing::after, .of-item i.typing::after { content: "|"; color: var(--orange-500); margin-left: 1px; animation: blink 1s step-end infinite; }
.of-item { display: grid; grid-template-columns: 1fr 38px; gap: 6px; margin-top: 2px; }
.of-item .qty { text-align: center; }
.of-btn { margin-top: 4px; display: grid; place-items: center; min-height: 38px; border-radius: 10px; background: var(--orange-500); color: #fff; font-weight: 600; font-size: 13px; transition: transform .15s, background .15s; }
.of-btn.press { transform: scale(.95); background: var(--orange-600); }
.of-done { position: absolute; inset: 0; display: none; place-items: center; align-content: center; gap: 8px; padding: 24px; text-align: center; background: rgba(255, 255, 255, .97); }
.of-done b { font: 700 17px var(--display); color: var(--neutral-900); }
.of-done small { font-size: 12px; color: var(--ink-soft); }
.of-check { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--good-bg); color: var(--good); }

/* 3. jastiper's order list */
.of-inbox-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.of-inbox-h small { display: block; font-size: 11px; color: var(--ink-soft); }
.of-inbox-h b { font: 700 16px var(--display); color: var(--neutral-900); }
.of-count { font-size: 12px; color: var(--ink-soft); background: var(--surface); padding: 4px 10px; border-radius: 999px; }
.of-count b { font: 700 13px var(--body); color: var(--orange-500); }
.of-inbox ul { list-style: none; margin: 0; padding: 8px; display: grid; gap: 6px; min-height: 226px; align-content: start; }
.of-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; background: var(--surface); }
.of-row b { font-size: 13.5px; color: var(--neutral-900); }
.of-row small { display: block; font-size: 11.5px; color: var(--ink-soft); }
.of-new { background: var(--orange-50); box-shadow: inset 0 0 0 1px var(--orange-200); }

@media (max-width: 980px) {
  .of-stage { grid-template-columns: 1fr; gap: 14px; justify-items: center; }
  .of-arrow { margin: 0; transform: rotate(90deg); }
  .of-col { width: 100%; max-width: 360px; }
  .of-step { max-width: 100%; }
}

/* Motion states for the order-flow demo (JS drives classes p1..p4 on the stage) */
.motion [data-orderflow] .of-step { opacity: .35; }
.motion [data-orderflow] .of-step.on { opacity: 1; }
.motion [data-orderflow] .of-step:not(.on) .of-num { background: rgba(255, 255, 255, .12); color: #b8aca1; }
.motion [data-orderflow] .of-bubble { opacity: 0; transform: translateY(14px) scale(.96); transform-origin: bottom right; transition: opacity .45s ease, transform .6s cubic-bezier(.2, 1.3, .35, 1); }
.motion [data-orderflow].p1 .of-bubble { opacity: 1; transform: none; }
.motion [data-orderflow] .of-link.tap { background: rgba(11, 110, 194, .18); }
.motion [data-orderflow] .of-phone { opacity: .45; transform: translateY(16px) scale(.97); }
.motion [data-orderflow].p2 .of-phone { opacity: 1; transform: none; }
.motion [data-orderflow].p3 .of-done { display: grid; animation: doneIn .5s cubic-bezier(.2, 1.2, .35, 1) both; }
@keyframes doneIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.motion [data-orderflow] .of-new { opacity: 0; max-height: 0; padding-block: 0; margin-top: -6px; transform: translateY(-10px); transition: opacity .5s ease, max-height .6s cubic-bezier(.16, 1, .3, 1), padding .6s, margin .6s, transform .6s cubic-bezier(.16, 1, .3, 1); overflow: hidden; }
.motion [data-orderflow].p4 .of-new { opacity: 1; max-height: 80px; padding-block: 11px; margin-top: 0; transform: none; animation: newGlow 2.2s ease .2s; }
@keyframes newGlow { 0%, 30% { box-shadow: inset 0 0 0 2px var(--orange-500), 0 0 0 4px rgba(227, 98, 0, .15); } 100% { box-shadow: inset 0 0 0 1px var(--orange-200); } }

/* ===================== Pricing currency switch (IDR / USD) ===================== */
.cur-wrap { display: grid; justify-items: center; gap: 10px; margin: -12px 0 28px; }
.cur-toggle { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--orange-200); box-shadow: 0 6px 18px rgba(167, 72, 0, .10); }
.cur-toggle button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 108px; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: none; font: 600 14px var(--body); color: var(--ink-soft); cursor: pointer; transition: color .25s ease; }
.cur-toggle button[aria-checked="true"] { color: #fff; }
.cur-toggle button svg { flex: none; border-radius: 2px; }
.cur-pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--orange-500); box-shadow: 0 4px 12px rgba(227, 98, 0, .35); transition: transform .45s cubic-bezier(.3, 1.3, .4, 1); }
.cur-toggle[data-cur="usd"] .cur-pill { transform: translateX(100%); }
.cur-note { font-size: 13px; font-weight: 500; color: var(--orange-600); }
.motion .amt.swap, .motion .per.swap { animation: priceSwap .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes priceSwap { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
.bundle .amt, .bundle .per { display: inline-block; }

/* ===================== Problem video (wooden frame + dialog) ===================== */
.problem { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 380px); gap: 48px; justify-content: center; align-items: center; }
.problem-frame { margin: 0; padding: 14px; border-radius: 8px;
  background:
    repeating-linear-gradient(92deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 9px, rgba(60, 30, 10, .08) 9px 11px, transparent 11px 19px),
    linear-gradient(135deg, #b9834f 0%, #9a6535 35%, #b07842 60%, #8a5a2e 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 230, 200, .25), inset 0 2px 0 rgba(255, 235, 210, .35), inset 0 -3px 6px rgba(60, 30, 10, .35), 0 22px 40px -22px rgba(70, 35, 10, .55); }
.problem-video { position: relative; border-radius: 3px; overflow: hidden; background: #f3e6d8; box-shadow: 0 0 0 3px #6e4523, inset 0 0 0 1px rgba(0, 0, 0, .2); }
.problem-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.problem-toggle { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 999px; border: 0; display: grid; place-items: center; background: rgba(23, 18, 14, .72); color: #fff; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, transform .15s; }
.problem-toggle:hover { background: var(--orange-500); }
.problem-toggle:active { transform: scale(.94); }
.problem-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.problem-toggle .i-pause, .problem-toggle.is-playing .i-play { display: none; }
.problem-toggle.is-playing .i-pause { display: block; }

.problem-dialog { position: relative; padding: 22px 24px 18px; background: #fff; border: 2px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--orange-200, #ffc294); }
/* speech tail pointing at the video */
.problem-dialog::before, .problem-dialog::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border-style: solid; }
.problem-dialog::before { left: -16px; margin-top: -12px; border-width: 12px 16px 12px 0; border-color: transparent var(--ink) transparent transparent; }
.problem-dialog::after { left: -12px; margin-top: -10px; border-width: 10px 13px 10px 0; border-color: transparent #fff transparent transparent; }
.problem-dialog-label { display: flex; justify-content: space-between; margin: 0 0 10px; font: 700 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--orange-500); }
.problem-step { color: var(--neutral-500, #8a8f98); font-variant-numeric: tabular-nums; }
.problem-dialog-text { margin: 0; min-height: 4.8em; font: 500 18px/1.6 var(--body); color: var(--ink); }
.problem-dialog-text.swap { animation: dialogIn .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.problem-dots { display: flex; gap: 6px; margin-top: 14px; }
.problem-dot { width: 22px; height: 6px; padding: 0; border: 0; border-radius: 99px; background: var(--neutral-300, #e2e2e2); cursor: pointer; transition: background .25s, width .25s; }
.problem-dot.on { width: 34px; background: var(--orange-500); }
.problem-dot:focus-visible { outline: 2px solid var(--orange-500); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .problem-dialog-text.swap { animation: none; } }
@media (max-width: 900px) {
  .problem { grid-template-columns: minmax(0, 560px); gap: 28px; }
  .problem-dialog::before { top: -16px; left: 50%; margin: 0 0 0 -12px; border-width: 0 12px 16px 12px; border-color: transparent transparent var(--ink) transparent; }
  .problem-dialog::after { top: -12px; left: 50%; margin: 0 0 0 -10px; border-width: 0 10px 13px 10px; border-color: transparent transparent #fff transparent; }
  .problem-dialog-text { font-size: 16px; min-height: 5.2em; }
}
@media (max-width: 640px) { .problem-frame { padding: 10px; } }

/* ===================== Paste demo (mirrors the app's Tambah pesanan screen) ===================== */
.pd { display: grid; grid-template-columns: minmax(0, 360px) auto minmax(0, 320px); gap: 36px; justify-content: center; align-items: start; }
.pd-col { display: grid; gap: 22px; justify-items: center; min-width: 0; }
.pd-arrow { align-self: center; margin-top: -60px; }
.pd-step { display: flex; gap: 12px; align-items: flex-start; max-width: 320px; transition: opacity .5s ease; }
.pd-step h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.pd-step p { color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.motion .pd-step { opacity: .4; }
.motion .pd-step.on { opacity: 1; }

/* WhatsApp chat */
.pd-wa { width: 100%; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: var(--shadow); margin-top: 60px; }
.pd-wa-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #075e54; color: #fff; }
.pd-wa-head b { font-size: 14px; display: block; }
.pd-wa-head small { font-size: 11px; opacity: .8; }
.pd-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #f3a6c0; color: #fff; font: 700 15px var(--display); }
.pd-wa-body { position: relative; background: #efe7de; padding: 16px 12px 20px; display: grid; gap: 8px; }
.pd-msg { max-width: 88%; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; line-height: 1.5; color: #1f2a1a; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.pd-out { justify-self: end; background: #dcf8c6; border-top-right-radius: 3px; }
.pd-recv { justify-self: start; background: #fff; border-top-left-radius: 3px; white-space: pre-line; position: relative; padding-bottom: 18px; }
.pd-sel { transition: background .3s; border-radius: 2px; }
.pd-time { position: absolute; right: 8px; bottom: 3px; font-size: 10px; color: #8a8f98; }
.pd-copied { position: absolute; left: 50%; bottom: 10px; transform: translate(-50%, 8px); padding: 6px 12px; border-radius: 99px; background: rgba(32, 32, 32, .88); color: #fff; font-size: 11.5px; opacity: 0; transition: opacity .3s, transform .4s cubic-bezier(.16, 1, .3, 1); pointer-events: none; }
.motion .pd.s1:not(.s2) .pd-sel { background: rgba(37, 211, 102, .28); }
.motion .pd.s1:not(.s2) .pd-copied { opacity: 1; transform: translate(-50%, 0); }

/* Phone with the app screen */
.pd-phone { width: 300px; }
.pd-screen { height: 560px; }
.pd-scroll { padding: 30px 16px 24px; display: grid; gap: 10px; font-family: var(--body); color: #2d3748; transition: transform 1.1s cubic-bezier(.65, 0, .35, 1); }
.pd.s4 .pd-scroll { transform: translateY(-340px); }
.pd-scroll small { font-size: 11px; color: #2d3748; display: block; }
.pd-back { display: flex; align-items: center; gap: 6px; font: 700 14px var(--body); color: #5d5d5d; }
.pd-caret { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #5d5d5d; display: grid; place-items: center; font-size: 15px; line-height: 1; padding-bottom: 2px; }
.pd-meta b { font: italic 700 13px var(--body); }
.pd-block { display: grid; gap: 8px; }
.pd-h { font: 700 13px var(--body); }
.pd-scroll .pd-help { font-size: 10px; color: #6b7280; line-height: 1.45; margin-top: -4px; }
.pd-ghost { width: 150px; text-align: center; padding: 8px; border: 1px solid #2d3748; border-radius: 8px; background: #fafafa; font-size: 11px; }
.pd-area { position: relative; height: 104px; border: 1px solid #d1d5db; border-radius: 8px; padding: 8px 9px; font-size: 10.5px; line-height: 1.45; white-space: pre-line; overflow: hidden; transition: border-color .3s, background .6s; }
.pd-ph { color: #9ca3af; }
.pd-pasted { position: absolute; inset: 8px 9px; background: #fff; }
.pd-pasted:empty { display: none; }
.pd.s2 .pd-area { animation: pdFlash 1s ease; }
.pd-apply { text-align: center; padding: 8px; border-radius: 8px; border: 1px solid #ffc294; color: #ffa058; font-size: 11px; background: #fff; transition: background .3s, border-color .3s, color .3s, transform .15s; }
.pd.s3 .pd-apply, .pd.done .pd-apply { border-color: #ff770f; background: #fff0e5; color: #e36200; }
.pd-apply.press { transform: scale(.96); background: #ffe1cb; }
.pd-scroll .pd-note { font-size: 9.5px; color: #9ca3af; line-height: 1.4; opacity: 0; transition: opacity .4s; }
.pd.s4 .pd-note { opacity: 1; }
.pd-scroll hr { border: 0; height: 1px; background: #e5e7eb; margin: 4px 0; }
.pd-f { display: grid; gap: 4px; min-width: 0; }
.pd-in { display: flex; align-items: flex-start; gap: 4px; min-height: 33px; padding: 8px 9px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 11px; line-height: 1.4; background: #fff; overflow: hidden; }
.pd-in i { font-style: normal; }
.pd-tall { min-height: 58px; }
.pd-in.ph, .pd-v.ph { color: #9ca3af; }
.pd-in.flash, .pd-in:has(.pd-v.flash) { animation: pdFlash 1s ease; }
.pd-row { display: grid; grid-template-columns: 1fr 58px; gap: 4px; }
@keyframes pdFlash { 0% { border-color: #ff770f; background: #fff0e5; } 100% { border-color: #d1d5db; background: #fff; } }

@media (max-width: 860px) {
  .pd { grid-template-columns: minmax(0, 360px); gap: 24px; }
  .pd-arrow { margin: 0; transform: rotate(90deg); justify-self: center; }
  .pd-wa { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .pd-scroll { transition: none; } }
