/* Parifin landing. Measurements: .reference/SPEC.md (taken from the Framer site). */

@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/inter-500-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/inter-500-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/inter-600-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/inter-600-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --grey: rgb(120, 120, 120);
  --brand: #2c64e5;
  --surface: #fafafa;
  --divider: #f2f2f2;
  /* Framer springs sampled to linear() */
  --spring-appear: linear(0, 0.0996, 0.3177, 0.5616, 0.7757, 0.9345, 1.034, 1.0828, 1.0947, 1.0841, 1.0631, 1.04, 1.02, 1.0054, 0.9963, 0.992, 0.991, 0.9921, 0.9942, 0.9964, 0.9982, 0.9996, 1.0004, 1.0008, 1);
  --spring-device: linear(0, 0.0518, 0.1677, 0.3065, 0.4442, 0.5684, 0.674, 0.76, 0.8275, 0.8791, 0.9175, 0.9454, 0.9651, 0.9787, 0.9879, 0.9938, 0.9975, 0.9997, 1.0008, 1.0014, 1.0015, 1.0015, 1.0013, 1.0011, 1);
  --spring-press: linear(0, 0.0606, 0.1966, 0.3583, 0.516, 0.6542, 0.7667, 0.853, 0.9157, 0.9587, 0.9865, 1.0029, 1.0114, 1.0148, 1.015, 1.0134, 1.0111, 1.0086, 1.0064, 1.0044, 1.0029, 1.0018, 1.001, 1.0004, 1);
  --spring-ui: linear(0, 0.0575, 0.1803, 0.3208, 0.4551, 0.5729, 0.6711, 0.7501, 0.8122, 0.8601, 0.8966, 0.924, 0.9445, 0.9596, 0.9708, 0.9789, 0.9848, 0.9891, 0.9922, 0.9944, 0.996, 0.9972, 0.998, 0.9986, 1);
  --btn-shadow: rgba(0,0,0,.02) -0.2px .78px .81px -.54px, rgba(0,0,0,.02) -.48px 1.92px 1.98px -1.07px, rgba(0,0,0,.02) -.91px 3.64px 3.75px -1.61px, rgba(0,0,0,.02) -1.59px 6.35px 6.55px -2.14px, rgba(0,0,0,.02) -2.76px 11.05px 11.39px -2.68px, rgba(0,0,0,.01) -5.06px 20.24px 20.87px -3.21px, rgba(0,0,0,.01) -10px 40px 41.23px -3.75px;
  --fs-body: 16px;
  --fs-btn: 15.04px;
  --fs-small: 14.08px;
  --fs-tag: 16px;
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: Inter, system-ui, sans-serif; font-weight: 500; font-feature-settings: "cv03", "cv04", "cv09", "cv11"; color: #000; background: #fff; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 12px; }

/* Type */
h1 { font-size: 48px; line-height: 1.2; letter-spacing: -.04em; font-weight: 600; }
h2 { font-size: 32px; line-height: 1.3; letter-spacing: -.04em; font-weight: 600; }
h1 span, h2 span { color: var(--grey); }
h3 { font-size: var(--fs-tag); line-height: 1.4; letter-spacing: -.02em; font-weight: 500; }
.tag { font-size: var(--fs-tag); line-height: 1.4; letter-spacing: -.02em; color: var(--grey); }
.body { font-size: var(--fs-body); line-height: 1.6; letter-spacing: -.04em; color: var(--grey); }
.small { font-size: var(--fs-small); line-height: 1.5; letter-spacing: -.04em; color: var(--grey); }
/* Framer balances almost every text block; the hero note, the Kenapa paragraph and the copyright wrap normally */
h2, h3, p { text-wrap: balance; }
.note, .why h2, .footer hr + p { text-wrap: wrap; }

/* Buttons: the background is a layer so hover can shrink it without moving the label */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; font-size: var(--fs-btn); line-height: 1.6; letter-spacing: -.04em; white-space: nowrap; }
.btn.sm { height: 36px; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 16px; transition: scale .4s var(--spring-press); }
.btn:hover::before { scale: .96; }
.btn.primary { color: #fff; }
.btn.primary::before { background: var(--brand); box-shadow: inset 0 6px 10px rgba(255,255,255,.5), var(--btn-shadow); }
.btn.secondary::before { background: var(--surface); box-shadow: inset 0 14px 10px #fff, var(--btn-shadow); }

/* Navbar */
.nav { position: fixed; z-index: 10; top: 20px; left: 20px; right: 20px; display: flex; justify-content: center; }
.nav-inner { width: 100%; max-width: 800px; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 24px; background: rgba(0,0,0,.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav-top { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 6px; font-size: 20px; line-height: 1; letter-spacing: -.04em; font-weight: 600; }
.brand img { width: 34px; height: 34px; margin: 2px; border-radius: 12px; }
.nav .brand { color: #fff; }
.nav-menu { flex: 1; }
.nav-menu > div { display: flex; align-items: center; gap: 10px; }
.nav-links { flex: 1; display: flex; justify-content: center; gap: 20px; color: #fff; font-size: var(--fs-btn); line-height: 1.6; letter-spacing: -.04em; }
.menu-btn { display: none; position: relative; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.menu-btn span { position: absolute; height: 2px; border-radius: 220px; background: var(--surface); transition: all .45s var(--spring-ui); }
.menu-btn span:first-child { left: 16px; top: 16.6px; width: 16px; }
.menu-btn span:last-child { left: 18.8px; top: 25.4px; width: 13px; }

/* Layout */
main { display: flex; flex-direction: column; align-items: center; gap: 120px; }
main > section { width: 100%; display: flex; justify-content: center; }
.container { width: 100%; max-width: 1160px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 38px; }
.heading { max-width: 400px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.heading.w500 { max-width: 500px; }

/* Device mockup */
.device { aspect-ratio: 1266 / 2582; padding: 12px; background: url(/assets/img/phone-frame.png) 0 0 / 100% 100% no-repeat; }
.device img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: var(--r, 44px); }

/* 1. Hero */
.hero .container { gap: 60px; }
.hero-text { max-width: 500px; padding-top: 120px; display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.hero-heading { display: flex; flex-direction: column; gap: 18px; }
.actions { display: flex; justify-content: center; gap: 10px; }
.note { max-width: 420px; font-size: 13px; line-height: 1.4; letter-spacing: -.02em; color: var(--grey); }
.hero-screens { position: relative; width: 100%; max-width: 700px; height: 640px; -webkit-mask-image: linear-gradient(#000 46.4%, transparent 77.5%); mask-image: linear-gradient(#000 46.4%, transparent 77.5%); }
.hero-screens .device { position: absolute; top: 333px; width: 300px; animation: device-in .8s var(--spring-device) both; }
.d-back { --r: 52px; left: calc(50% - 77px); transform: translate(-50%, -50%) rotate(-13deg); --from: -50px; }
.hero-screens .d-back { animation-delay: .1s; }
.d-front { --r: 60px; left: calc(50% + 119px); transform: translate(-50%, -50%) rotate(5deg); --from: 50px; }
@keyframes device-in { from { opacity: 0; translate: var(--from) 50px; scale: .8; } }

/* 2. Kenapa Parifin */
.why { padding: 20px; }
.why .heading { padding-bottom: 120px; }
.why h2 { font-size: 26px; line-height: 1.4; }

/* 3. Manfaat */
.cards { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { height: 420px; display: flex; flex-direction: column; align-items: center; overflow: hidden; border-radius: 40px; background: var(--surface); }
.card-text { width: 100%; max-width: 400px; padding: 40px; display: flex; flex-direction: column; gap: 8px; }
.card-shot { position: relative; flex: 1; width: 100%; min-height: 0; overflow: hidden; -webkit-mask-image: linear-gradient(#000 66.7%, transparent); mask-image: linear-gradient(#000 66.7%, transparent); }
.card-shot .device { position: absolute; top: 0; left: 50%; width: 273px; transform: translateX(-50%); }
.card.flip .card-shot { -webkit-mask-image: linear-gradient(transparent, #000 33.3%); mask-image: linear-gradient(transparent, #000 33.3%); }
.card.flip .device { top: auto; bottom: 0; }

/* 4. Fitur */
.features-row { width: 100%; padding: 9px 0; display: flex; align-items: center; justify-content: center; gap: 40px; }
.fgroup { width: 280px; display: flex; flex-direction: column; gap: 20px; }
.fgroup.left { align-items: flex-end; }
.fgroup.right { align-items: flex-start; }
.fcard { width: 250px; padding: 20px; display: flex; flex-direction: column; justify-content: center; gap: 10px; border-radius: 40px; background: var(--surface); }
.fcard:nth-child(2) { width: 280px; }
.ftext, .place-text, .step-text { display: flex; flex-direction: column; gap: 6px; }
.icon { display: block; width: 36px; height: 36px; background: var(--brand); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.features-shot { flex: none; width: 320px; -webkit-mask-image: linear-gradient(0deg, transparent 10%, #000 40%); mask-image: linear-gradient(0deg, transparent 10%, #000 40%); }
.features-shot .device { --r: 60px; }

/* 5. Pontianak */
#pontianak .container, #faqs .container { gap: 32px; }
.places { width: 100%; display: flex; align-items: center; gap: 18px; }
.place { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.place img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 40px; }
.place-text { gap: 8px; }

/* 6. Tanya jawab */
.faq { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.faq-list { width: 100%; max-width: 600px; display: flex; flex-direction: column; gap: 4px; }
.faq-list details { padding: 20px; border-radius: 24px; background: var(--surface); }
.faq-list summary { position: relative; display: block; padding-right: 40px; list-style: none; cursor: pointer; font-size: var(--fs-btn); line-height: 1.6; letter-spacing: -.04em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 0; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; opacity: .3; transition: rotate .45s var(--spring-ui);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z'/%3E%3C/svg%3E") center / 14px no-repeat; }
.faq-list details[open] summary::after { rotate: 180deg; }
.faq-list details::details-content { height: 0; overflow: clip; transition: height .45s var(--spring-ui), content-visibility .45s allow-discrete; }
.faq-list details[open]::details-content { height: auto; }
.answer { padding-top: 10px; font-size: var(--fs-body); line-height: 1.6; letter-spacing: -.04em; color: rgba(0,0,0,.6); }
.faq-note { max-width: 500px; text-align: center; }
.faq-note a { color: #000; }

/* 7. Uji coba */
.download { gap: 36px; }
.steps { width: 100%; display: flex; align-items: flex-start; gap: 18px; }
.step { flex: 1; padding: 30px; display: flex; flex-direction: column; gap: 24px; border-radius: 40px; background: var(--surface); }
.step .icon { width: 50px; height: 50px; }
.step-text { max-width: 240px; gap: 8px; }

/* 8. Footer */
.footer { margin-top: 120px; padding: 100px 20px; display: flex; justify-content: center; border-top: 1px solid var(--divider); }
.f-inner { width: 100%; max-width: 1160px; display: flex; flex-direction: column; gap: 30px; }
.f-row { display: flex; justify-content: space-between; gap: 40px; }
.f-left { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.f-left .brand { color: rgb(23, 23, 23); }
.f-left .small { max-width: 400px; }
.f-links { display: flex; justify-content: flex-end; gap: 80px; }
.f-links div { display: flex; flex-direction: column; gap: 6px; }
.f-links p { font-size: var(--fs-btn); line-height: 1.6; letter-spacing: -.04em; }
.f-links a { font-size: var(--fs-small); line-height: 1.5; letter-spacing: -.04em; color: var(--grey); }
.f-links a:hover, .faq-note a:hover { color: #000; }
.footer hr { height: 1px; border: 0; background: var(--divider); }

/* Scroll-in (main.js adds .in once 50% is visible; without JS everything just shows) */
.js [data-appear] { opacity: 0; translate: 0 var(--y, 20px); transition: opacity .8s var(--spring-appear) var(--d, 0s), translate .8s var(--spring-appear) var(--d, 0s); }
.js [data-appear].in { opacity: 1; translate: none; }

/* Tablet */
@media (max-width: 1199.98px) {
  .container.narrow { max-width: 700px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card { height: 391px; }
  .card.flip { grid-column: 1 / -1; grid-row: 2; }
  .features-row { flex-direction: column; padding: 0; }
  .fgroup { width: auto; max-width: 600px; display: grid; grid-template-columns: repeat(2, 290px); }
  .fcard, .fcard:nth-child(2) { width: auto; height: 200px; }
  .fcard:nth-child(3) { grid-column: 1 / -1; }
  .features-shot { width: 100%; max-width: 460px; -webkit-mask-image: none; mask-image: none; }
  .features-shot .device { --r: 100px; }
  .places { flex-direction: column; }
  .place { width: 100%; }
  .steps { display: grid; grid-template-columns: repeat(2, 321px); justify-content: center; }
  .step { min-height: 271px; justify-content: center; align-items: center; text-align: center; }
}

/* Phone */
@media (max-width: 809.98px) {
  :root { --fs-body: 15px; --fs-btn: 14.1px; --fs-small: 13.2px; --fs-tag: 15px; }
  h1 { font-size: 37.5px; }
  h2 { font-size: 30px; }
  .brand { font-size: 18.75px; }

  .nav-inner { flex-direction: column; align-items: stretch; gap: 0; padding: 5px 8px; transition: padding .45s var(--spring-ui), background-color .45s var(--spring-ui); }
  .menu-btn { display: block; }
  .nav-menu { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--spring-ui); }
  .nav-menu > div { min-height: 0; overflow: hidden; flex-direction: column; align-items: stretch; gap: 10px; visibility: hidden; transition: visibility 0s .45s; }
  .nav-links { flex-direction: column; gap: 0; padding: 30px 20px 20px; font-size: 22px; line-height: 1.4; }
  .nav-menu .btn { width: 100%; }
  .nav.open .nav-inner { padding: 8px; background: rgba(0,0,0,.8); }
  .nav.open .nav-menu { grid-template-rows: 1fr; }
  .nav.open .nav-menu > div { visibility: visible; transition-delay: 0s; }
  .nav.open .menu-btn span { left: 13px; top: 21px; width: 18px; rotate: 45deg; }
  .nav.open .menu-btn span:last-child { rotate: -45deg; }

  .hero .container { gap: 20px; padding: 0; }
  .hero-text { padding: 120px 20px 0; }
  .hero-screens .device { width: 270px; left: 50%; }
  .hero-screens .d-back { top: 289px; transform: translate(-50%, -50%) rotate(2deg); }
  .hero-screens .d-front { top: 339px; transform: translate(-50%, -50%) rotate(-5deg); }

  .cards { grid-template-columns: 1fr; }
  .card { height: 421px; }
  .card.flip { grid-column: auto; grid-row: auto; }

  .fgroup { display: flex; width: 100%; max-width: 320px; }
  .fcard, .fcard:nth-child(2) { width: 100%; height: auto; }
  .features-shot { max-width: 320px; }
  .features-shot .device { --r: 60px; }

  .places { gap: 32px; }
  .features-row { gap: 20px; }

  .steps { display: flex; flex-direction: column; max-width: 360px; margin-inline: auto; align-items: stretch; }
  .step { min-height: 0; }

  .footer { padding: 60px 20px; }
  .f-row { flex-direction: column; }
  .f-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-appear] { opacity: 1; translate: none; }
}
